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