diff --git a/src/config.json b/src/config.json index 455198a7e9..3391f0aace 100644 --- a/src/config.json +++ b/src/config.json @@ -1000,6 +1000,7 @@ "cName": "价格", "type": "component", "show": true, + "setup": true, "desc": "价格组件", "author": "ailululu" }, diff --git a/src/packages/__VUE/card/index.taro.vue b/src/packages/__VUE/card/index.taro.vue index a6b602cee9..318aead9f5 100644 --- a/src/packages/__VUE/card/index.taro.vue +++ b/src/packages/__VUE/card/index.taro.vue @@ -30,7 +30,7 @@ diff --git a/src/packages/__VUE/price/index.ts b/src/packages/__VUE/price/index.ts new file mode 100644 index 0000000000..d22700e316 --- /dev/null +++ b/src/packages/__VUE/price/index.ts @@ -0,0 +1,13 @@ +import Price from './price.vue'; +import type { ComponentPublicInstance } from 'vue'; +import { withInstall } from '@/packages/utils'; + +withInstall(Price); + +export type { PriceProps } from './price.vue'; + +export type { PriceSize, PricePosition } from './types'; + +export type PriceInstance = ComponentPublicInstance & InstanceType; + +export { Price, Price as default }; diff --git a/src/packages/__VUE/price/index.vue b/src/packages/__VUE/price/index.vue deleted file mode 100644 index 3ef85cb155..0000000000 --- a/src/packages/__VUE/price/index.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - diff --git a/src/packages/__VUE/price/price.taro.vue b/src/packages/__VUE/price/price.taro.vue new file mode 100644 index 0000000000..09d2624b16 --- /dev/null +++ b/src/packages/__VUE/price/price.taro.vue @@ -0,0 +1,110 @@ + + + diff --git a/src/packages/__VUE/price/price.vue b/src/packages/__VUE/price/price.vue new file mode 100644 index 0000000000..e0e2fb0be4 --- /dev/null +++ b/src/packages/__VUE/price/price.vue @@ -0,0 +1,101 @@ + + + diff --git a/src/packages/__VUE/sku/components/SkuHeader.taro.vue b/src/packages/__VUE/sku/components/SkuHeader.taro.vue index fd17b754ef..8358d3c00d 100644 --- a/src/packages/__VUE/sku/components/SkuHeader.taro.vue +++ b/src/packages/__VUE/sku/components/SkuHeader.taro.vue @@ -17,7 +17,7 @@