fix: Tag type error

pull/4175/head 2.2.0-beta.2
tanjinzhou 2021-06-08 15:00:15 +08:00
parent 5d8f3fd8ee
commit 7e1301ad7f
1 changed files with 1 additions and 2 deletions

View File

@ -44,6 +44,7 @@ export type TagProps = HTMLAttributes & Partial<ExtractPropTypes<typeof tagProps
const Tag = defineComponent({
name: 'ATag',
props: tagProps,
emits: ['update:visible', 'close'],
setup(props: TagProps, { slots, emit, attrs }) {
const { getPrefixCls } = inject('configProvider', defaultConfigProvider);
@ -137,8 +138,6 @@ const Tag = defineComponent({
},
});
Tag.props = tagProps;
Tag.CheckableTag = CheckableTag;
Tag.install = function(app: App) {