Skip to content

Commit 201e7a1

Browse files
Moonofweishengxuqingkai
andauthored
feat: ✨ typescript类型支持增强 (#192)
* refactor: ♻️ typescript支持增强 * refactor: ♻️ typescript支持增强 * refactor: ♻️ typescript支持增强 * refactor: ♻️ typescript支持增强 * refactor: ♻️ typescript支持增强 --------- Co-authored-by: xuqingkai <xuqingkai@hd123.com>
1 parent 8a29453 commit 201e7a1

File tree

267 files changed

+6698
-4287
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+6698
-4287
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@
658658
### ✨ Features | 新功能
659659

660660
* ✨ 新增 Table 表格组件 ([#98](https://github.com/Moonofweisheng/wot-design-uni/issues/98)) ([c8395f8](https://github.com/Moonofweisheng/wot-design-uni/commit/c8395f8a7e1ad041b003672081b715a7c755adc1))
661-
*Collpase 折叠面板组件增加分割线 ([adc6633](https://github.com/Moonofweisheng/wot-design-uni/commit/adc6633ad80b74e801a48a50917c9a2d378de9e0)), closes [#97](https://github.com/Moonofweisheng/wot-design-uni/issues/97)
661+
*Collapse 折叠面板组件增加分割线 ([adc6633](https://github.com/Moonofweisheng/wot-design-uni/commit/adc6633ad80b74e801a48a50917c9a2d378de9e0)), closes [#97](https://github.com/Moonofweisheng/wot-design-uni/issues/97)
662662

663663
### [0.1.38](https://github.com/Moonofweisheng/wot-design-uni/compare/v0.1.37...v0.1.38) (2023-10-25)
664664

build/buildThemeVars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const generateTSFileContent = (variables) => {
6969
return tsContent
7070
}
7171

72-
const tsFilePath = path.resolve(__dirname, '../src/uni_modules/wot-design-uni/components/wd-config-provider/types.ts')
72+
const tsFilePath = path.resolve(__dirname, '../src/uni_modules/wot-design-uni/components/wd-config-provider/type.ts')
7373
const scssFilePath = path.resolve(__dirname, '../src/uni_modules/wot-design-uni/components/common/abstracts/test.scss')
7474

7575
const variables = extractSCSSVariables(scssFilePath)

docs/component/calendar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ function handleConfirm4({ value }) {
393393
| before-confirm | 确定前校验函数,接收 { value, resolve } 参数,通过 resolve 继续执行,resolve 接收 1 个 boolean 参数 | function | - | - | - |
394394
| use-default-slot | 使用默认插槽时设置该选项 | boolean | - | false | - |
395395
| use-label-slot | 使用 label 插槽时设置该选项 | boolean | - | false | - |
396-
| name | form 表单中的字段名 | string | - | - | - |
397396
| close-on-click-modal | 点击遮罩是否关闭 | boolean | - | true | - |
398397
| z-index | 弹窗层级 | number | - | 15 | - |
399398
| safe-area-inset-bottom | 弹出面板是否设置底部安全距离(iphone X 类型的机型) | boolean | - | true | - |

docs/component/checkbox.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ const value = ref(['jd'])
171171
| true-value | 选中值,在 checkbox-group 中使用无效,需同 false-value 一块使用 | string / number | - | true | - |
172172
| false-value | 非选中时的值,在 checkbox-group 中使用无效,需同 true-value 一块使用 | string /number | - | false | - |
173173
| size | 设置大小 | string | large | - | - |
174-
| name | form 表单中的字段名 | string | - | - | - |
175174

176175
## CheckboxGroup Attributes
177176

@@ -186,7 +185,6 @@ const value = ref(['jd'])
186185
| max | 最大选中的数量,0 为无限数量,默认为 0 | number | - | 0 | - |
187186
| inline | 同行展示 | boolean | - | false | - |
188187
| size | 设置大小 | string | large | - | - |
189-
| name | form 表单中的字段名 | string | - | - | - |
190188

191189
## Checkbox Methods
192190

docs/component/col-picker.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ const columnChange = ({ selectedItem, resolve, finish }) => {
519519
| loading-color | loading 图标的颜色 | string | - | #4D80F0 | - |
520520
| use-default-slot | 使用默认插槽时设置该选项 | boolean | - | false | - |
521521
| use-label-slot | 使用 label 插槽时设置该选项 | boolean | - | false | - |
522-
| name | form 表单中的字段名 | string | - | - | - |
523522
| close-on-click-modal | 点击遮罩是否关闭 | boolean | - | true | - |
524523
| auto-complete | 自动触发 column-change 事件来补全数据,当 columns 为空数组或者 columns 数组长度小于 value 数组长度时,会自动触发 column-change | - | false | - |
525524
| z-index | 弹窗层级 | number | - | 15 | - |

docs/component/config-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@ const themeVars: ConfigProviderThemeVars = {
127127
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 |
128128
| ---------- | ------------------------------------------------ | ------ | -------------- | ------ | -------- |
129129
| theme | 主题风格,设置为 `dark` 来开启深色模式,全局生效 | string | `dark`/`light` | - | - |
130-
| theme-vars | 自定义主题变量 | object | - | - | - |
130+
| theme-vars | 自定义主题变量 | `ConfigProviderThemeVars` | - | - | - |
131131

docs/component/count-down.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ const onFinish = () => showToast('倒计时结束')
125125
| finish | 倒计时结束时触发 || 0.1.58 |
126126
| change | 倒计时变化时触发 | current: TimeData | 0.1.58 |
127127

128+
129+
130+
## Methods
131+
| 方法名 | 说明 | 参数 | 最低版本 |
132+
| -------- | ---------------- | --------------------- | -------- |
133+
| start | 开始倒计时 || 0.1.58 |
134+
| pause | 暂停倒计时 || 0.1.58 |
135+
| reset | 重置倒计时,若 `auto-start``true`,重设后会自动开始倒计时 || 0.1.58 |
136+
128137
## Slots
129138

130139
| 名称 | 说明 | 最低版本 |

docs/component/datetime-picker.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ const displayFormatTabLabel = (items) => {
279279
| use-label-slot | label 使用插槽 | boolean | - | false | - |
280280
| use-default-slot | 使用默认插槽 | boolean | - | false | - |
281281
| before-confirm | 确定前校验函数,接收 (value, resolve, picker) 参数,通过 resolve 继续执行 picker,resolve 接收1个boolean参数 | function | - | - | - |
282-
| name | form 表单中的字段名 | string | - | - | - |
283282
| close-on-click-modal | 点击遮罩是否关闭 | boolean | - | true | - |
284283
| z-index | 弹窗层级 | number | - | 15 | - |
285284
| safe-area-inset-bottom | 弹出面板是否设置底部安全距离(iphone X 类型的机型) | boolean | - | true | - |

docs/component/gap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 |
4141
|-----------------|---------|---------|------------|-------------| -------- |
4242
| height | 高度 | `string`/`number` | - | 15 | - |
43-
| background | 背景颜色 | string | | transparent | - |
43+
| bgColor | 背景颜色 | string | | transparent | - |
4444
| safeAreaBbottom | 底部安全区 | boolean | true/false | false | - |
4545

4646
## 外部样式类

docs/component/img-cropper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function handleCancel(event) {
6565

6666
| 参数 | 说明 | 类型 | 可选值 | 默认值| 最低版本 |
6767
|-----|------|-----|-------|-------|--------|
68-
| show | 打开图片裁剪组件 | boolean | - | false | - |
68+
| v-model | 打开图片裁剪组件 | boolean | - | false | - |
6969
| img-src | 图片资源链接 | string | - | - | - |
7070
| img-width | 截屏预览图片的初始宽度; `1、设置宽度不设置高度,按照宽度等比缩放;2、如果都不设置,预览时图片大小会根据裁剪框大小进行等比缩放,进行锁边处理;`; string 类型只支持 % 单位,number 类型时单位为 px | number / string | - | - | - |
7171
| img-height | 截屏预览图片的初始高度; `1、设置高度不设置宽度,按照高度等比缩放;2、如果都不设置,预览时图片大小会根据裁剪框大小进行等比缩放,进行锁边处理;`; string 类型只支持 % 单位,number 类型时单位为 px | number / string | - | - | - |

0 commit comments

Comments
 (0)