diff --git a/src/config.json b/src/config.json index 3391f0aace..7b6f8b8f5d 100644 --- a/src/config.json +++ b/src/config.json @@ -543,6 +543,7 @@ "cName": "数字输入框", "type": "component", "show": true, + "setup": true, "desc": "数字输入框组件", "author": "szg2008" }, diff --git a/src/packages/__VUE/animate/doc.en-US.md b/src/packages/__VUE/animate/doc.en-US.md index 00bfe8ca77..f6638fa7a4 100644 --- a/src/packages/__VUE/animate/doc.en-US.md +++ b/src/packages/__VUE/animate/doc.en-US.md @@ -61,7 +61,7 @@ app.use(Animate); | 10 | twinkle | twinkle,It is recommended that loop be true | | 11 | flicker | Polish button,It is recommended that loop be true | -### Types 4.3.2 +### Types v4.3.2 The component exports the following type definitions: diff --git a/src/packages/__VUE/animate/doc.md b/src/packages/__VUE/animate/doc.md index f783bd7bf8..7abd50869d 100644 --- a/src/packages/__VUE/animate/doc.md +++ b/src/packages/__VUE/animate/doc.md @@ -61,7 +61,7 @@ app.use(Animate); | 10 | twinkle | 水波,建议 loop 为 true | | 11 | flicker | 擦亮按钮,建议 loop 为 true | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/animate/doc.taro.md b/src/packages/__VUE/animate/doc.taro.md index a2c9e9fbc4..ec9e8e5b7f 100644 --- a/src/packages/__VUE/animate/doc.taro.md +++ b/src/packages/__VUE/animate/doc.taro.md @@ -61,7 +61,7 @@ app.use(Animate); | 10 | twinkle | 水波,建议 loop 为 true | | 11 | flicker | 擦亮按钮,建议 loop 为 true | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/ecard/index.taro.vue b/src/packages/__VUE/ecard/index.taro.vue index ff40c0e7ed..f36ae67eb0 100644 --- a/src/packages/__VUE/ecard/index.taro.vue +++ b/src/packages/__VUE/ecard/index.taro.vue @@ -33,7 +33,7 @@ diff --git a/src/packages/__VUE/inputnumber/index.ts b/src/packages/__VUE/inputnumber/index.ts new file mode 100644 index 0000000000..57dd125f79 --- /dev/null +++ b/src/packages/__VUE/inputnumber/index.ts @@ -0,0 +1,11 @@ +import InputNumber from './input-number.vue'; +import type { ComponentPublicInstance } from 'vue'; +import { withInstall } from '@/packages/utils'; + +withInstall(InputNumber); + +export type { InputNumberProps } from './input-number.vue'; + +export type InputNumberInstance = ComponentPublicInstance & InstanceType; + +export { InputNumber, InputNumber as default }; diff --git a/src/packages/__VUE/inputnumber/index.vue b/src/packages/__VUE/inputnumber/index.vue deleted file mode 100644 index 3606b7908a..0000000000 --- a/src/packages/__VUE/inputnumber/index.vue +++ /dev/null @@ -1,187 +0,0 @@ - - diff --git a/src/packages/__VUE/inputnumber/input-number.taro.vue b/src/packages/__VUE/inputnumber/input-number.taro.vue new file mode 100644 index 0000000000..416fd59256 --- /dev/null +++ b/src/packages/__VUE/inputnumber/input-number.taro.vue @@ -0,0 +1,164 @@ + + diff --git a/src/packages/__VUE/inputnumber/input-number.vue b/src/packages/__VUE/inputnumber/input-number.vue new file mode 100644 index 0000000000..9f017b9a57 --- /dev/null +++ b/src/packages/__VUE/inputnumber/input-number.vue @@ -0,0 +1,159 @@ + + diff --git a/src/packages/__VUE/layout/doc.en-US.md b/src/packages/__VUE/layout/doc.en-US.md index 6eb9e857ec..9fef106177 100644 --- a/src/packages/__VUE/layout/doc.en-US.md +++ b/src/packages/__VUE/layout/doc.en-US.md @@ -60,7 +60,7 @@ The Layout component provides a 24-column grid, by adding the span attribute on | --- | --- | --- | | click | Triggered when clicked | `event: MouseEvent` | -### Types 4.3.2 +### Types v4.3.2 The component exports the following type definitions: diff --git a/src/packages/__VUE/layout/doc.md b/src/packages/__VUE/layout/doc.md index f05b86ceec..579d71affa 100644 --- a/src/packages/__VUE/layout/doc.md +++ b/src/packages/__VUE/layout/doc.md @@ -60,7 +60,7 @@ Layout 组件提供 24 列栅格,通过在 Col 上添加 span 属性设置列 | --- | --- | --- | | click | 点击时触发 | `event: MouseEvent` | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/layout/doc.taro.md b/src/packages/__VUE/layout/doc.taro.md index c028ce52e3..fd6aa0acd1 100644 --- a/src/packages/__VUE/layout/doc.taro.md +++ b/src/packages/__VUE/layout/doc.taro.md @@ -60,7 +60,7 @@ Layout 组件提供 24 列栅格,通过在 Col 上添加 span 属性设置列 | --- | --- | --- | | click | 点击时触发 | `event: MouseEvent` | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/price/doc.en-US.md b/src/packages/__VUE/price/doc.en-US.md index 042c24b944..6c9874767e 100644 --- a/src/packages/__VUE/price/doc.en-US.md +++ b/src/packages/__VUE/price/doc.en-US.md @@ -63,7 +63,7 @@ size: `small`, `normal`, `large` | size | Size,`small`、`normal`、`large` | string | `normal` | | strike-through`v4.0.3` | strike-through | Boolean | false | -### Types 4.3.2 +### Types v4.3.2 The component exports the following type definitions: diff --git a/src/packages/__VUE/price/doc.md b/src/packages/__VUE/price/doc.md index eb53d336dd..bab02bf1d6 100644 --- a/src/packages/__VUE/price/doc.md +++ b/src/packages/__VUE/price/doc.md @@ -63,7 +63,7 @@ app.use(Price); | size | 价格尺寸,`small`、`normal`、`large` | string | `normal` | | strike-through`v4.0.3` | 是否展示划线价 | Boolean | false | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/price/doc.taro.md b/src/packages/__VUE/price/doc.taro.md index 8b6b5bf80e..ef833fa253 100644 --- a/src/packages/__VUE/price/doc.taro.md +++ b/src/packages/__VUE/price/doc.taro.md @@ -63,7 +63,7 @@ app.use(Price); | size | 价格尺寸,`small`、`normal`、`large` | string | `normal` | | strike-through`v4.0.3` | 是否展示划线价 | Boolean | false | -### 类型定义 4.3.2 +### 类型定义 v4.3.2 组件导出以下类型定义: diff --git a/src/packages/__VUE/sku/components/SkuStepper.taro.vue b/src/packages/__VUE/sku/components/SkuStepper.taro.vue index 069ef4992f..69503393cf 100644 --- a/src/packages/__VUE/sku/components/SkuStepper.taro.vue +++ b/src/packages/__VUE/sku/components/SkuStepper.taro.vue @@ -18,7 +18,7 @@