diff --git a/src/stepper/README.md b/src/stepper/README.md index 9e808df39..b6467231f 100644 --- a/src/stepper/README.md +++ b/src/stepper/README.md @@ -107,15 +107,15 @@ export default { | name | Stepper name | *string \| number* | - | 2.0.3 | | integer | Whether to allow only integers | *boolean* | `false` | - | | disabled | Disable value change | *boolean* | `false` | - | -| disable-input | Disable input | *boolean* | `false` | - | +| disable-plus | Whether to disable plus button | *boolean* | `false` | 2.2.16 | +| disable-minus | Whether to disable minus button | *boolean* | `false` | 2.2.16 | +| disable-input | Whether to disable input | *boolean* | `false` | - | | async-change | Whether to enable async change | *boolean* | `false` | - | - | | input-width | Input width | *string \| number* | `32px` | - | | button-size | Button size | *string \| number* | `28px` | 2.0.5 | | show-plus | Whether to show plus button | *boolean* | `true` | 2.1.2 | | show-minus | Whether to show minus button | *boolean* | `true` | 2.1.2 | | decimal-length | Decimal length | *number* | - | 2.2.1 | -| disable-plus | Whether to disable plus button | *boolean* | - | 2.3.0 | -| disable-minus | Whether to disable minus button | *boolean* | - | 2.3.0 | ### Events diff --git a/src/stepper/README.zh-CN.md b/src/stepper/README.zh-CN.md index fb6211ff4..5f0aa4c94 100644 --- a/src/stepper/README.zh-CN.md +++ b/src/stepper/README.zh-CN.md @@ -129,6 +129,8 @@ export default { | name | 标识符,可以在`change`事件回调参数中获取 | *string \| number* | - | 2.2.11 | | integer | 是否只允许输入整数 | *boolean* | `false` | - | | disabled | 是否禁用步进器 | *boolean* | `false` | - | +| disable-plus | 是否禁用增加按钮 | *boolean* | `false` | 2.2.16 | +| disable-minus | 是否禁用减少按钮 | *boolean* | `false` | 2.2.16 | | disable-input | 是否禁用输入框 | *boolean* | `false` | - | | async-change | 是否开启异步变更,开启后需要手动控制输入值 | *boolean* | `false` | - | | input-width | 输入框宽度,默认单位为`px` | *string \| number* | `32px` | - | @@ -136,8 +138,6 @@ export default { | show-plus | 是否显示增加按钮 | *boolean* | `true` | 2.1.2 | | show-minus | 是否显示减少按钮 | *boolean* | `true` | 2.1.2 | | decimal-length | 固定显示的小数位数 | *number* | - | 2.2.1 | -| disable-plus | 是否禁用增加按钮 | *boolean* | - | 2.3.0 | -| disable-minus | 是否禁用减少按钮 | *boolean* | - | 2.3.0 | ### Events diff --git a/src/stepper/index.js b/src/stepper/index.js index 3e61ea496..21d2abc14 100644 --- a/src/stepper/index.js +++ b/src/stepper/index.js @@ -25,6 +25,8 @@ export default createComponent({ inputWidth: [Number, String], buttonSize: [Number, String], asyncChange: Boolean, + disablePlus: Boolean, + disableMinus: Boolean, disableInput: Boolean, decimalLength: Number, name: { @@ -54,12 +56,6 @@ export default createComponent({ showMinus: { type: Boolean, default: true - }, - disablePlus: { - type: Boolean - }, - disableMinus: { - type: Boolean } }, @@ -259,6 +255,7 @@ export default createComponent({