docs: type highlight (#4264)
This commit is contained in:
+10
-10
@@ -46,16 +46,16 @@ Set `columns-num` with 2, you'll have a 2 level picker.
|
||||
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| value | the `code` of selected area | `string` | - | - |
|
||||
| title | Toolbar title | `string` | - | - |
|
||||
| area-list | Area data | `object` | - | - |
|
||||
| columns-num | level of picker | `string | number` | `3` | - |
|
||||
| item-height | Option height | `number` | `44` | - |
|
||||
| loading | Whether to show loading prompt | `boolean` | `false` | - |
|
||||
| visible-item-count | Count of visible columns | `number` | `5` | - |
|
||||
| confirm-button-text | Text of confirm button | `string` | `Confirm` | - |
|
||||
| cancel-button-text | Text of cancel button | `string` | `Cancel` | - |
|
||||
| is-oversea-code | The method to validate oversea code | `() => boolean` | - | 2.1.4 |
|
||||
| value | the `code` of selected area | *string* | - | - |
|
||||
| title | Toolbar title | *string* | - | - |
|
||||
| area-list | Area data | *object* | - | - |
|
||||
| columns-num | level of picker | *string \| number* | `3` | - |
|
||||
| item-height | Option height | *number* | `44` | - |
|
||||
| loading | Whether to show loading prompt | *boolean* | `false` | - |
|
||||
| visible-item-count | Count of visible columns | *number* | `5` | - |
|
||||
| confirm-button-text | Text of confirm button | *string* | `Confirm` | - |
|
||||
| cancel-button-text | Text of cancel button | *string* | `Cancel` | - |
|
||||
| is-oversea-code | The method to validate oversea code | *() => boolean* | - | 2.1.4 |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
+10
-10
@@ -45,16 +45,16 @@ Vue.use(Area);
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| value | 当前选中的省市区`code` | `string` | - | - |
|
||||
| title | 顶部栏标题 | `string` | - | - |
|
||||
| area-list | 省市区数据,格式见下方 | `object` | - | - |
|
||||
| columns-num | 显示列数,3-省市区,2-省市,1-省 | `string | number` | `3` | - |
|
||||
| loading | 是否显示加载状态 | `boolean` | `false` | - |
|
||||
| item-height | 选项高度 | `number` | `44` | - |
|
||||
| visible-item-count | 可见的选项个数 | `number` | `5` | - |
|
||||
| confirm-button-text | 确认按钮文字 | `string` | `确认` | - |
|
||||
| cancel-button-text | 取消按钮文字 | `string` | `取消` | - |
|
||||
| is-oversea-code | 根据`code`校验海外地址,海外地址会划分至单独的分类 | `() => boolean` | - | 2.1.4 |
|
||||
| value | 当前选中的省市区`code` | *string* | - | - |
|
||||
| title | 顶部栏标题 | *string* | - | - |
|
||||
| area-list | 省市区数据,格式见下方 | *object* | - | - |
|
||||
| columns-num | 显示列数,3-省市区,2-省市,1-省 | *string \| number* | `3` | - |
|
||||
| loading | 是否显示加载状态 | *boolean* | `false` | - |
|
||||
| item-height | 选项高度 | *number* | `44` | - |
|
||||
| visible-item-count | 可见的选项个数 | *number* | `5` | - |
|
||||
| confirm-button-text | 确认按钮文字 | *string* | `确认` | - |
|
||||
| cancel-button-text | 取消按钮文字 | *string* | `取消` | - |
|
||||
| is-oversea-code | 根据`code`校验海外地址,海外地址会划分至单独的分类 | *() => boolean* | - | 2.1.4 |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user