fix(components): view tag does not render (#4198)

This commit is contained in:
Aex 2021-11-04 12:46:23 +08:00 committed by GitHub
parent 598fb86627
commit 6864124d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@
class="el-input__icon el-input__clear"
@click="handlePasswordVisible"
>
<view />
<icon-view />
</el-icon>
<span v-if="isWordLimitVisible" class="el-input__count">
<span class="el-input__count-inner">
@ -146,7 +146,7 @@ import {
onUpdated,
} from 'vue'
import { ElIcon } from '@element-plus/components/icon'
import { CircleClose } from '@element-plus/icons'
import { CircleClose, View as IconView } from '@element-plus/icons'
import { ValidateComponentsMap } from '@element-plus/utils/icon'
import { elFormKey, elFormItemKey } from '@element-plus/tokens'
import { useAttrs, useFormItem } from '@element-plus/hooks'
@ -169,7 +169,7 @@ const PENDANT_MAP = {
export default defineComponent({
name: 'ElInput',
components: { ElIcon, CircleClose },
components: { ElIcon, CircleClose, IconView },
inheritAttrs: false,