diff --git a/src/config.json b/src/config.json index c1c32bab9d..65bd231a8a 100644 --- a/src/config.json +++ b/src/config.json @@ -706,6 +706,7 @@ "version": "3.0.0", "name": "Tag", "cName": "标签", + "setup": true, "desc": "标签", "author": "liqiong" }, diff --git a/src/packages/__VUE/backtop/doc.taro.md b/src/packages/__VUE/backtop/doc.taro.md index a24cad3c51..7ecb5dd425 100644 --- a/src/packages/__VUE/backtop/doc.taro.md +++ b/src/packages/__VUE/backtop/doc.taro.md @@ -48,7 +48,7 @@ app.use(Backtop); 组件导出以下类型定义: ```ts -import type { BacktopProps, BacktopInstance } from '@nutui/nutui'; +import type { BacktopProps, BacktopInstance } from '@nutui/nutui-taro'; ``` ## 主题定制 diff --git a/src/packages/__VUE/card/index.taro.vue b/src/packages/__VUE/card/index.taro.vue index 318aead9f5..0386dccebe 100644 --- a/src/packages/__VUE/card/index.taro.vue +++ b/src/packages/__VUE/card/index.taro.vue @@ -31,7 +31,7 @@ diff --git a/src/packages/__VUE/tag/index.ts b/src/packages/__VUE/tag/index.ts new file mode 100644 index 0000000000..118a1e36c1 --- /dev/null +++ b/src/packages/__VUE/tag/index.ts @@ -0,0 +1,13 @@ +import Tag from './tag.vue'; +import type { ComponentPublicInstance } from 'vue'; +import { withInstall } from '@/packages/utils'; + +withInstall(Tag); + +export type { TagProps } from './tag.vue'; + +export type { TagType } from './types'; + +export type TagInstance = ComponentPublicInstance & InstanceType; + +export { Tag, Tag as default }; diff --git a/src/packages/__VUE/tag/index.vue b/src/packages/__VUE/tag/index.vue deleted file mode 100644 index aa3426a3ad..0000000000 --- a/src/packages/__VUE/tag/index.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - diff --git a/src/packages/__VUE/tag/tag.taro.vue b/src/packages/__VUE/tag/tag.taro.vue new file mode 100644 index 0000000000..4705b5150e --- /dev/null +++ b/src/packages/__VUE/tag/tag.taro.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/packages/__VUE/tag/tag.vue b/src/packages/__VUE/tag/tag.vue new file mode 100644 index 0000000000..4705b5150e --- /dev/null +++ b/src/packages/__VUE/tag/tag.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/packages/__VUE/tag/types.ts b/src/packages/__VUE/tag/types.ts index 73adf915c5..0ff312b743 100644 --- a/src/packages/__VUE/tag/types.ts +++ b/src/packages/__VUE/tag/types.ts @@ -1 +1 @@ -export type TagType = 'primary' | 'success' | 'danger' | 'warning'; +export type TagType = 'primary' | 'success' | 'danger' | 'warning' | 'default';