-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from TDesignOteam/feat/mobile-vue/stepper
feat(Stepper): update API
- Loading branch information
Showing
5 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
packages/products/tdesign-mobile-vue/src/stepper/stepper.en-US.md
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,29 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### Stepper Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
disableInput | Boolean | false | \- | N | ||
disabled | Boolean | false | \- | N | ||
inputWidth | Number | - | \- | N | ||
max | Number | 100 | \- | N | ||
min | Number | 0 | \- | N | ||
size | String | medium | options:small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
step | Number | 1 | \- | N | ||
theme | String | normal | stylish。options:normal/filled/outline | N | ||
value | String / Number | 0 | `v-model` and `v-model:value` is supported | N | ||
defaultValue | String / Number | 0 | uncontrolled property | N | ||
onBlur | Function | | Typescript:`(value: string \| number) => void`<br/> | N | ||
onChange | Function | | Typescript:`(value: string \| number) => void`<br/> | N | ||
onOverlimit | Function | | Typescript:`(type: 'minus' \| 'plus') => void`<br/> | N | ||
|
||
### Stepper Events | ||
|
||
name | params | description | ||
-- | -- | -- | ||
blur | `(value: string \| number)` | \- | ||
change | `(value: string \| number)` | \- | ||
overlimit | `(type: 'minus' \| 'plus')` | \- |
29 changes: 29 additions & 0 deletions
29
packages/products/tdesign-mobile-vue/src/stepper/stepper.md
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,29 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### Stepper Props | ||
|
||
名称 | 类型 | 默认值 | 说明 | 必传 | ||
-- | -- | -- | -- | -- | ||
disableInput | Boolean | false | 禁用输入框 | N | ||
disabled | Boolean | false | 禁用全部操作 | N | ||
inputWidth | Number | - | 输入框宽度 | N | ||
max | Number | 100 | 最大值 | N | ||
min | Number | 0 | 最小值 | N | ||
size | String | medium | 组件尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
step | Number | 1 | 步长 | N | ||
theme | String | normal | 组件风格。可选项:normal/filled/outline | N | ||
value | String / Number | 0 | 值。支持语法糖 `v-model` 或 `v-model:value` | N | ||
defaultValue | String / Number | 0 | 值。非受控属性 | N | ||
onBlur | Function | | TS 类型:`(value: string \| number) => void`<br/>输入框失去焦点时触发 | N | ||
onChange | Function | | TS 类型:`(value: string \| number) => void`<br/>数值发生变更时触发 | N | ||
onOverlimit | Function | | TS 类型:`(type: 'minus' \| 'plus') => void`<br/>数值超出限制时触发 | N | ||
|
||
### Stepper Events | ||
|
||
名称 | 参数 | 描述 | ||
-- | -- | -- | ||
blur | `(value: string \| number)` | 输入框失去焦点时触发 | ||
change | `(value: string \| number)` | 数值发生变更时触发 | ||
overlimit | `(type: 'minus' \| 'plus')` | 数值超出限制时触发 |
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