From 4426a4ef808332588a19c44b9c9cc15771ca740e Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 21 Jul 2020 14:16:10 +0800 Subject: [PATCH] feat(Picker): adjust default value of visible-item-count to 6 (#3418) --- packages/area/README.md | 2 +- packages/datetime-picker/README.md | 2 +- packages/picker/README.md | 2 +- packages/picker/shared.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/area/README.md b/packages/area/README.md index 4935de29..5e6efab8 100644 --- a/packages/area/README.md +++ b/packages/area/README.md @@ -91,7 +91,7 @@ db.collection('region') | columns-placeholder | 列占位提示文字 | _string[]_ | `[]` | - | | loading | 是否显示加载状态 | _boolean_ | `false` | - | | item-height | 选项高度 | _number_ | `44` | - | -| visible-item-count | 可见的选项个数 | _number_ | `5` | - | +| visible-item-count | 可见的选项个数 | _number_ | `6` | - | | confirm-button-text | 确认按钮文字 | _string_ | `确认` | - | | cancel-button-text | 取消按钮文字 | _string_ | `取消` | - | diff --git a/packages/datetime-picker/README.md b/packages/datetime-picker/README.md index 5e7a03db..a1a88225 100644 --- a/packages/datetime-picker/README.md +++ b/packages/datetime-picker/README.md @@ -192,7 +192,7 @@ Page({ | item-height | 选项高度 | _number_ | `44` | - | | confirm-button-text | 确认按钮文字 | _string_ | `确认` | - | | cancel-button-text | 取消按钮文字 | _string_ | `取消` | - | -| visible-item-count | 可见的选项个数 | _number_ | `5` | - | +| visible-item-count | 可见的选项个数 | _number_ | `6` | - | ### Events diff --git a/packages/picker/README.md b/packages/picker/README.md index 317aa5bd..47333d0e 100644 --- a/packages/picker/README.md +++ b/packages/picker/README.md @@ -157,7 +157,7 @@ Page({ | item-height | 选项高度 | _number_ | `44` | - | | confirm-button-text | 确认按钮文字 | _string_ | `确认` | - | | cancel-button-text | 取消按钮文字 | _string_ | `取消` | - | -| visible-item-count | 可见的选项个数 | _number_ | `5` | - | +| visible-item-count | 可见的选项个数 | _number_ | `6` | - | | default-index | 单列选择器的默认选中项索引,
多列选择器请参考下方的 Columns 配置 | _number_ | `0` | - | ### Events diff --git a/packages/picker/shared.ts b/packages/picker/shared.ts index a8c96a8b..8531290b 100644 --- a/packages/picker/shared.ts +++ b/packages/picker/shared.ts @@ -12,7 +12,7 @@ export const pickerProps = { }, visibleItemCount: { type: Number, - value: 5, + value: 6, }, itemHeight: { type: Number,