Skip to content

Commit 7e1301a

Browse files
committed
fix: Tag type error
1 parent 5d8f3fd commit 7e1301a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/tag/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export type TagProps = HTMLAttributes & Partial<ExtractPropTypes<typeof tagProps
4444

4545
const Tag = defineComponent({
4646
name: 'ATag',
47+
props: tagProps,
4748
emits: ['update:visible', 'close'],
4849
setup(props: TagProps, { slots, emit, attrs }) {
4950
const { getPrefixCls } = inject('configProvider', defaultConfigProvider);
@@ -137,8 +138,6 @@ const Tag = defineComponent({
137138
},
138139
});
139140

140-
Tag.props = tagProps;
141-
142141
Tag.CheckableTag = CheckableTag;
143142

144143
Tag.install = function(app: App) {

0 commit comments

Comments
 (0)