Skip to content

Commit d7ae1ee

Browse files
authored
feat: new feature of miniprogram version 1.8.6 (#564)
1 parent 97ca091 commit d7ae1ee

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-miniprogram/src/input/README.en-US.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ style | Object | - | CSS(Cascading Style Sheets) | N
1010
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1111
adjust-position | Boolean | true | \- | N
1212
align | String | left | text align type。options: left/center/right | N
13+
allow-input-over-max | Boolean | false | `1.8.6`。allow to continue input on value length is over `maxlength` or `maxcharacter` | N
1314
always-embed | Boolean | false | \- | N
1415
auto-focus | Boolean | false | \- | N
1516
borderless | Boolean | false | input without border | N
@@ -34,7 +35,7 @@ placeholder | String | undefined | \- | N
3435
placeholder-class | String | input-placeholder | \- | N
3536
placeholder-style | String | - | required | Y
3637
prefix-icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
37-
readonly | Boolean | undefined | \- | N
38+
readonly | Boolean | undefined | `1.8.6` | N
3839
safe-password-cert-path | String | - | \- | N
3940
safe-password-custom-hash | String | - | \- | N
4041
safe-password-length | Number | - | \- | N

packages/products/tdesign-miniprogram/src/input/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ style | Object | - | 样式 | N
1010
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
1111
adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | N
1212
align | String | left | 文本内容位置,居左/居中/居右。可选项:left/center/right | N
13+
allow-input-over-max | Boolean | false | `1.8.6`。超出 `maxlength``maxcharacter` 之后是否允许继续输入 | N
1314
always-embed | Boolean | false | 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效) | N
1415
auto-focus | Boolean | false | (即将废弃,请直接使用 focus )自动聚焦,拉起键盘 | N
1516
borderless | Boolean | false | 是否开启无边框模式 | N
@@ -34,7 +35,7 @@ placeholder | String | undefined | 占位符 | N
3435
placeholder-class | String | input-placeholder | 指定 placeholder 的样式类 | N
3536
placeholder-style | String | - | 必需。指定 placeholder 的样式 | Y
3637
prefix-icon | String / Object / Slot | - | 组件前置图标。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon`[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
37-
readonly | Boolean | undefined | 只读状态 | N
38+
readonly | Boolean | undefined | `1.8.6`只读状态 | N
3839
safe-password-cert-path | String | - | 安全键盘加密公钥的路径,只支持包内路径 | N
3940
safe-password-custom-hash | String | - | 安全键盘计算 hash 的算法表达式,如 `md5(sha1('foo' + sha256(sm3(password + 'bar'))))` | N
4041
safe-password-length | Number | - | 安全键盘输入密码长度 | N

packages/products/tdesign-miniprogram/src/radio/README.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ max-content-row | Number | 5 | \- | N
2121
max-label-row | Number | 3 | \- | N
2222
name | String | - | \- | N
2323
placement | String | - | options: left/right | N
24-
readonly | Boolean | undefined | \- | N
24+
readonly | Boolean | undefined | `1.8.6` | N
2525
value | String / Number / Boolean | false | Typescript:`T` `type RadioValue = string \| number \| boolean`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio/type.ts) | N
2626

2727
### Radio Events
@@ -55,7 +55,7 @@ keys | Object | - | Typescript:`KeysType`。[see more ts definition](https://g
5555
name | String | - | \- | N
5656
options | Array | - | Typescript:`Array<RadioOption>` `type RadioOption = string \| number \| RadioOptionObj` `interface RadioOptionObj { label?: string; value?: string \| number; readonly?: boolean; disabled?: boolean; allowUncheck?: boolean; }`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
5757
placement | String | left | options: left/right | N
58-
readonly | Boolean | undefined | \- | N
58+
readonly | Boolean | undefined | `1.8.6` | N
5959
value | String / Number / Boolean | - | Typescript:`T` `type RadioValue = string \| number \| boolean`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
6060
default-value | String / Number / Boolean | undefined | uncontrolled property。Typescript:`T` `type RadioValue = string \| number \| boolean`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
6161

packages/products/tdesign-miniprogram/src/radio/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ max-content-row | Number | 5 | 内容最大行数限制 | N
2121
max-label-row | Number | 3 | 主文案最大行数限制 | N
2222
name | String | - | HTML 元素原生属性 | N
2323
placement | String | - | 复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定。可选项:left/right | N
24-
readonly | Boolean | undefined | 只读状态 | N
24+
readonly | Boolean | undefined | `1.8.6`只读状态 | N
2525
value | String / Number / Boolean | false | 单选按钮的值。TS 类型:`T` `type RadioValue = string \| number \| boolean`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio/type.ts) | N
2626

2727
### Radio Events
@@ -55,7 +55,7 @@ keys | Object | - | 用来定义 value / label / disabled 在 `options` 中对
5555
name | String | - | HTML 元素原生属性 | N
5656
options | Array | - | 单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同。TS 类型:`Array<RadioOption>` `type RadioOption = string \| number \| RadioOptionObj` `interface RadioOptionObj { label?: string; value?: string \| number; readonly?: boolean; disabled?: boolean; allowUncheck?: boolean; }`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
5757
placement | String | left | 复选框和内容相对位置。优先级低于 Radio.placement。可选项:left/right | N
58-
readonly | Boolean | undefined | 只读状态 | N
58+
readonly | Boolean | undefined | `1.8.6`只读状态 | N
5959
value | String / Number / Boolean | - | 选中的值。TS 类型:`T` `type RadioValue = string \| number \| boolean`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
6060
default-value | String / Number / Boolean | undefined | 选中的值。非受控属性。TS 类型:`T` `type RadioValue = string \| number \| boolean`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/radio-group/type.ts) | N
6161

packages/products/tdesign-miniprogram/src/textarea/README.en-US.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### Textarea Props
56

67
name | type | default | description | required
78
-- | -- | -- | -- | --
89
style | Object | - | CSS(Cascading Style Sheets) | N
910
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1011
adjust-position | Boolean | true | \- | N
11-
allow-input-over-max | Boolean | false | \- | N
12+
allow-input-over-max | Boolean | false | `1.8.6` | N
1213
autofocus | Boolean | false | \- | N
1314
autosize | Boolean / Object | false | Typescript:`boolean \| { maxHeight?: number, minHeight?: number }` | N
1415
bordered | Boolean | false | \- | N
@@ -28,7 +29,7 @@ maxlength | Number | -1 | \- | N
2829
placeholder | String | undefined | \- | N
2930
placeholder-class | String | textarea-placeholder | \- | N
3031
placeholder-style | String | - | \- | N
31-
readonly | Boolean | undefined | \- | N
32+
readonly | Boolean | undefined | `1.8.6` | N
3233
selection-end | Number | -1 | \- | N
3334
selection-start | Number | -1 | \- | N
3435
show-confirm-bar | Boolean | true | \- | N

packages/products/tdesign-miniprogram/src/textarea/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### Textarea Props
56

67
名称 | 类型 | 默认值 | 描述 | 必传
78
-- | -- | -- | -- | --
89
style | Object | - | 样式 | N
910
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
1011
adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | N
11-
allow-input-over-max | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
12+
allow-input-over-max | Boolean | false | `1.8.6`超出maxlength或maxcharacter之后是否还允许输入 | N
1213
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
1314
autosize | Boolean / Object | false | 是否自动增高,值为 true 时,style.height 不生效。支持传入对象,如 { maxHeight: 120, minHeight: 20 }。TS 类型:`boolean \| { maxHeight?: number, minHeight?: number }` | N
1415
bordered | Boolean | false | 是否显示外边框 | N
@@ -28,7 +29,7 @@ maxlength | Number | -1 | 用户最多可以输入的字符个数,值为 -1
2829
placeholder | String | undefined | 占位符 | N
2930
placeholder-class | String | textarea-placeholder | 指定 placeholder 的样式类,目前仅支持color,font-size和font-weight | N
3031
placeholder-style | String | - | 指定 placeholder 的样式,目前仅支持 color ,font-size和font-weight | N
31-
readonly | Boolean | undefined | 只读状态 | N
32+
readonly | Boolean | undefined | `1.8.6`只读状态 | N
3233
selection-end | Number | -1 | 光标结束位置,自动聚集时有效,需与 selection-start 搭配使用 | N
3334
selection-start | Number | -1 | 光标起始位置,自动聚集时有效,需与 selection-end 搭配使用 | N
3435
show-confirm-bar | Boolean | true | 是否显示键盘上方带有”完成“按钮那一栏 | N

packages/scripts/api.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63968,7 +63968,8 @@
6396863968
"4",
6396963969
"8",
6397063970
"16",
63971-
"32"
63971+
"32",
63972+
"64"
6397263973
],
6397363974
"component": "Input",
6397463975
"field_category": 1,
@@ -63991,7 +63992,7 @@
6399163992
"html_attribute": 0,
6399263993
"trigger_elements": "",
6399363994
"deprecated": 0,
63994-
"version": "",
63995+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
6399563996
"test_description": "{\"PC\":{\"event\":[{\"props\":{\"value\":\"Hello\",\"maxlength\":5},\"expect\":[{\"trigger\":\"simulateInputChange('input', \\\"Hello TDesign\\\")\",\"exist\":[{\"input\":{\"attribute\":{\"value\":\"Hello\"}}}]}]}]}}",
6399663997
"support_default_value": 0,
6399763998
"field_category_text": "Props",
@@ -64001,7 +64002,8 @@
6400164002
"Angular(PC)",
6400264003
"Vue(Mobile)",
6400364004
"React(Mobile)",
64004-
"Angular(Mobile)"
64005+
"Angular(Mobile)",
64006+
"Miniprogram"
6400564007
],
6400664008
"field_type_text": [
6400764009
"Boolean"
@@ -65506,7 +65508,7 @@
6550665508
"html_attribute": 0,
6550765509
"trigger_elements": "",
6550865510
"deprecated": 0,
65509-
"version": null,
65511+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
6551065512
"test_description": "{\"PC\":{\"className\":\"t-is-readonly\",\"classNameDom\":\".t-input\"}}",
6551165513
"support_default_value": 0,
6551265514
"field_category_text": "Props",
@@ -89697,7 +89699,7 @@
8969789699
"html_attribute": 0,
8969889700
"trigger_elements": "",
8969989701
"deprecated": 0,
89700-
"version": "",
89702+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
8970189703
"test_description": null,
8970289704
"support_default_value": 0,
8970389705
"field_category_text": "Props",
@@ -90737,7 +90739,7 @@
9073790739
"html_attribute": 0,
9073890740
"trigger_elements": "",
9073990741
"deprecated": 0,
90740-
"version": "",
90742+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
9074190743
"test_description": null,
9074290744
"support_default_value": 0,
9074390745
"field_category_text": "Props",
@@ -120803,7 +120805,7 @@
120803120805
"html_attribute": 0,
120804120806
"trigger_elements": "",
120805120807
"deprecated": 0,
120806-
"version": "",
120808+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
120807120809
"test_description": null,
120808120810
"support_default_value": 0,
120809120811
"field_category_text": "Props",
@@ -121811,7 +121813,7 @@
121811121813
"html_attribute": 0,
121812121814
"trigger_elements": "",
121813121815
"deprecated": 0,
121814-
"version": null,
121816+
"version": "{ \"Miniprogram\": \"1.8.6\" }",
121815121817
"test_description": null,
121816121818
"support_default_value": 0,
121817121819
"field_category_text": "Props",

0 commit comments

Comments
 (0)