-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
122 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
## NumKeyboard Props | ||
|
||
| 名称 | 类型 | 默认值 | 必传 | 说明 | | ||
| ------------ | ---------------------------------------------------------------------- | ---------------------- | ---- | -------------------- | | ||
| type | `'button'`\|`'block'` | `'button'` | N | 键盘样式类型。 | | ||
| visible | `boolean` | `false` | N | 是否显示键盘。 | | ||
| height | `'8'`\|`'10'`\|`'12'`\|`'14'`\|`'16'`\|`'20'` | `'12'` | N | 按键高度。 | | ||
| space | `'0'`\|`'1'`\|`'2'`\|`'3'`\|`'4'` | `'2'` | N | 按键间距。 | | ||
| p | `'0'`\|`'1'`\|`'2'`\|`'3'`\|`'4'` | `'2'` | N | 键盘内边距。 | | ||
| reverse | `boolean` | `false` | N | 数字是否上下反向。 | | ||
| done | `boolean` | `true` | N | 是否显示完成按钮。 | | ||
| dot | `boolean` | `true` | N | 是否显示小数点。 | | ||
| close | `boolean` | `false` | N | 是否显示关闭按钮。 | | ||
| doneText | `string` | 当前语言的 common.done | N | 完成按钮文案。 | | ||
| doneDisabled | `boolean` | `false` | N | 完成按钮是否禁用。 | | ||
| radius | `'none'`\|`'base'`\|`'md'`\|`'lg'`\|`'xl'`\|`'2xl'`\|`'3xl'`\|`'full'` | `'base'` | N | 按键圆角。 | | ||
| panelClass | `string` | `''` | N | 键盘面板注入 Class。 | | ||
| keyClass | `string` | `''` | N | 按键注入 Class。 | | ||
| doneClass | `string` | `''` | N | 完成按键注入 Class。 | | ||
| popup | [`Popup`](https://stdf.design/#/components?nav=popup&tab=1) | `{}` | N | 弹出层参数。 | | ||
| 名称 | 类型 | 默认值 | 必传 | 说明 | | ||
| ------------ | ----------------------------------------------------------- | ---------------------- | ---- | -------------------- | | ||
| value | `string` | `''` | N | 输入内容。 | | ||
| type | `'button'`\|`'block'` | `'button'` | N | 键盘样式类型。 | | ||
| visible | `boolean` | `false` | N | 是否显示键盘。 | | ||
| height | `'8'\|'10'\|'12'\|'14'\|'16'\|'20'` | `'12'` | N | 按键高度。 | | ||
| space | `'0'\|'1'\|'2'\|'3'\|'4'` | `'2'` | N | 按键间距。 | | ||
| p | `'0'\|'1'\|'2'\|'3'\|'4'` | `'2'` | N | 键盘内边距。 | | ||
| reverse | `boolean` | `false` | N | 数字是否上下反向。 | | ||
| done | `boolean` | `true` | N | 是否显示完成按钮。 | | ||
| dot | `boolean` | `true` | N | 是否显示小数点。 | | ||
| close | `boolean` | `false` | N | 是否显示关闭按钮。 | | ||
| doneText | `string` | 当前语言的 common.done | N | 完成按钮文案。 | | ||
| doneDisabled | `boolean` | `false` | N | 完成按钮是否禁用。 | | ||
| radius | `'none'\|'base'\|'md'\|'lg'\|'xl'\|'2xl'\|'3xl'\|'full'` | `'base'` | N | 按键圆角。 | | ||
| clear | `boolean` | `false` | N | 打开时是否清空内容。 | | ||
| panelClass | `string` | `''` | N | 键盘面板注入 Class。 | | ||
| keyClass | `string` | `''` | N | 按键注入 Class。 | | ||
| doneClass | `string` | `''` | N | 完成按键注入 Class。 | | ||
| popup | [`Popup`](https://stdf.design/#/components?nav=popup&tab=1) | `{}` | N | 弹出层参数。 | | ||
|
||
## NumKeyboard Events | ||
|
||
| 名称 | 类型 | 参数 | 描述 | | ||
| ------- | --------------------------------------- | --------------------------------------------------------- | ---------------------- | | ||
| onclick | `(numStr: string, key: string) => void` | numStr - 输入的数字字符内容<br />key - 本次点击的键盘 key | 每次点击任意按键触发。 | | ||
| onopen | `(height: number) => void` | height - 键盘高度 | 键盘打开时触发。 | | ||
| onclose | `() => void` | - | 键盘关闭时触发。 | | ||
| 名称 | 类型 | 参数 | 描述 | | ||
| ------- | -------------------------- | ------------------------ | ---------------------- | | ||
| onclick | `(key: string) => void` | key - 本次点击的键盘 key | 每次点击任意按键触发。 | | ||
| onopen | `(height: number) => void` | height - 键盘高度 | 键盘打开时触发。 | | ||
| onclose | `() => void` | - | 键盘关闭时触发。 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
## NumKeyboard Props | ||
|
||
| Name | Type | Default | Required | Description | | ||
| ------------ | ---------------------------------------------------------------------- | ------------------------------ | -------- | -------------------------------- | | ||
| type | `'button'`\|`'block'` | `'button'` | N | Keyboard style type. | | ||
| visible | `boolean` | `false` | N | Whether to show keyboard. | | ||
| height | `'8'`\|`'10'`\|`'12'`\|`'14'`\|`'16'`\|`'20'` | `'12'` | N | Key height. | | ||
| space | `'0'`\|`'1'`\|`'2'`\|`'3'`\|`'4'` | `'2'` | N | Key spacing. | | ||
| p | `'0'`\|`'1'`\|`'2'`\|`'3'`\|`'4'` | `'2'` | N | Keyboard padding. | | ||
| reverse | `boolean` | `false` | N | Whether to reverse number order. | | ||
| done | `boolean` | `true` | N | Whether to show done button. | | ||
| dot | `boolean` | `true` | N | Whether to show decimal point. | | ||
| close | `boolean` | `false` | N | Whether to show close button. | | ||
| doneText | `string` | Current language's common.done | N | Done button text. | | ||
| doneDisabled | `boolean` | `false` | N | Whether to disable done button. | | ||
| radius | `'none'`\|`'base'`\|`'md'`\|`'lg'`\|`'xl'`\|`'2xl'`\|`'3xl'`\|`'full'` | `'base'` | N | Key border radius. | | ||
| panelClass | `string` | `''` | N | Inject class for keyboard panel. | | ||
| keyClass | `string` | `''` | N | Inject class for keys. | | ||
| doneClass | `string` | `''` | N | Inject class for done button. | | ||
| popup | [`Popup`](https://stdf.design/#/components?nav=popup&tab=1) | `{}` | N | Popup parameters. | | ||
| Name | Type | Default | Required | Description | | ||
| ------------ | ----------------------------------------------------------- | ------------------------------ | -------- | ----------------------------------- | | ||
| value | `string` | `''` | N | Input content. | | ||
| type | `'button'`\|`'block'` | `'button'` | N | Keyboard style type. | | ||
| visible | `boolean` | `false` | N | Whether to show keyboard. | | ||
| height | `'8'\|'10'\|'12'\|'14'\|'16'\|'20'` | `'12'` | N | Key height. | | ||
| space | `'0'\|'1'\|'2'\|'3'\|'4'` | `'2'` | N | Key spacing. | | ||
| p | `'0'\|'1'\|'2'\|'3'\|'4'` | `'2'` | N | Keyboard padding. | | ||
| reverse | `boolean` | `false` | N | Whether to reverse number order. | | ||
| done | `boolean` | `true` | N | Whether to show done button. | | ||
| dot | `boolean` | `true` | N | Whether to show decimal point. | | ||
| close | `boolean` | `false` | N | Whether to show close button. | | ||
| doneText | `string` | Current language's common.done | N | Done button text. | | ||
| doneDisabled | `boolean` | `false` | N | Whether to disable done button. | | ||
| radius | `'none'\|'base'\|'md'\|'lg'\|'xl'\|'2xl'\|'3xl'\|'full'` | `'base'` | N | Key border radius. | | ||
| clear | `boolean` | `false` | N | Whether to clear content when open. | | ||
| panelClass | `string` | `''` | N | Inject class for keyboard panel. | | ||
| keyClass | `string` | `''` | N | Inject class for keys. | | ||
| doneClass | `string` | `''` | N | Inject class for done button. | | ||
| popup | [`Popup`](https://stdf.design/#/components?nav=popup&tab=1) | `{}` | N | Popup parameters. | | ||
|
||
## NumKeyboard Events | ||
|
||
| Name | Type | Parameters | Description | | ||
| ------- | --------------------------------------- | ------------------------------------------------------------ | ---------------------------------- | | ||
| onclick | `(numStr: string, key: string) => void` | numStr - Input number string<br />key - Clicked keyboard key | Triggered when any key is clicked. | | ||
| onopen | `(height: number) => void` | height - Keyboard height | Triggered when keyboard opens. | | ||
| onclose | `() => void` | - | Triggered when keyboard closes. | | ||
| Name | Type | Parameters | Description | | ||
| ------- | -------------------------- | -------------------------- | ---------------------------------- | | ||
| onclick | `(key: string) => void` | key - Clicked keyboard key | Triggered when any key is clicked. | | ||
| onopen | `(height: number) => void` | height - Keyboard height | Triggered when keyboard opens. | | ||
| onclose | `() => void` | - | Triggered when keyboard closes. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## 1.0.0-next.9 | ||
|
||
- [!tag|A|0|]新增 `value` 与 `clear` 属性,关联 Issue [#36](https://github.com/any-tdf/stdf/issues/36)。[!issue|sbscan|] | ||
- [!tag|O|0|]输入值不再通过 `onclick` 事件获取,而是通过 `value` 绑定。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## 1.0.0-next.9 | ||
|
||
- [!tag|A|0|]Add `value` and `clear` properties, related to Issue [#36](https://github.com/any-tdf/stdf/issues/36). [!issue|sbscan|] | ||
- [!tag|O|0|]Input value is no longer obtained through the `onclick` event, but through the `value` binding. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.