From ecac87733ffacec35351123f91323d69e4350a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=A3=8A?= Date: Thu, 8 Aug 2024 18:04:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20wd-input-number=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=8C=89=E9=92=AE=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/input-number.md | 19 +++++++++++-------- .../wd-input-number/wd-input-number.vue | 8 ++++++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/component/input-number.md b/docs/component/input-number.md index b33d015e3..1d95346ad 100644 --- a/docs/component/input-number.md +++ b/docs/component/input-number.md @@ -1,7 +1,6 @@ -# InputNumber 计数器 - +# InputNumber 计数器 ## 基本用法 @@ -50,7 +49,6 @@ function handleChange1({ value }) { ``` - ## 无输入框 设置 `without-input` ,不展示输入框。 @@ -117,18 +115,23 @@ function handleChange1({ value }) { | disable-plus | 禁用增加按钮 | boolean | - | false | 0.2.14 | | disable-minus | 禁用减少按钮 | boolean | - | false | 0.2.14 | - ## Events | 事件名称 | 说明 | 参数 | 最低版本 | |---------|-----|-----|---------| -| change | 值修改事件 | ` { value }` | - | -| focus | 输入框获取焦点事件 | ` { value, height }` | - | -| blur | 输入框失去焦点事件 | ` { value }` | - | +| change | 值修改事件 | `{ value }` | - | +| focus | 输入框获取焦点事件 | `{ value, height }` | - | +| blur | 输入框失去焦点事件 | `{ value }` | - | + +## Slots + +| name | 说明 | 参数 | 最低版本 | +| ------ | -------------------- | ----------------------- | -------- | +| left-icon | 左侧图标 | `{ value }` | $LOWEST_VERSION$ | +| right-icon | 右侧图标 | `{ value }` | $LOWEST_VERSION$ | ## 外部样式类 | 类名 | 说明 | 最低版本 | |-----|------|--------| | custom-class | 根节点样式 | - | - diff --git a/src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue b/src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue index 1cef68acc..5a3ece356 100644 --- a/src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue +++ b/src/uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.vue @@ -1,7 +1,9 @@