From ea5ff93e78ba5f5ccaa1779a87b3029a882461ae Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Thu, 29 Dec 2016 20:53:33 +0800 Subject: [PATCH] unify N/A marks in docs --- examples/docs/en-US/badge.md | 2 +- examples/docs/en-US/carousel.md | 2 +- examples/docs/en-US/date-picker.md | 6 +++--- examples/docs/en-US/datetime-picker.md | 6 +++--- examples/docs/en-US/dropdown.md | 2 +- examples/docs/en-US/popover.md | 4 ++-- examples/docs/en-US/table.md | 16 ++++++++-------- examples/docs/en-US/tabs.md | 2 +- examples/docs/en-US/time-picker.md | 8 ++++---- examples/docs/en-US/tree.md | 12 ++++++------ examples/docs/zh-CN/badge.md | 2 +- examples/docs/zh-CN/carousel.md | 2 +- examples/docs/zh-CN/date-picker.md | 10 +++++----- examples/docs/zh-CN/datetime-picker.md | 10 +++++----- examples/docs/zh-CN/dropdown.md | 2 +- examples/docs/zh-CN/input.md | 8 ++++---- examples/docs/zh-CN/pagination.md | 4 ++-- examples/docs/zh-CN/popover.md | 2 +- examples/docs/zh-CN/table.md | 16 ++++++++-------- examples/docs/zh-CN/tabs.md | 2 +- examples/docs/zh-CN/time-picker.md | 10 +++++----- examples/docs/zh-CN/tooltip.md | 2 +- examples/docs/zh-CN/tree.md | 12 ++++++------ examples/docs/zh-CN/upload.md | 2 +- 24 files changed, 72 insertions(+), 72 deletions(-) diff --git a/examples/docs/en-US/badge.md b/examples/docs/en-US/badge.md index 13058d29c..35e645c8d 100644 --- a/examples/docs/en-US/badge.md +++ b/examples/docs/en-US/badge.md @@ -135,4 +135,4 @@ Use a red dot to mark content that needs to be noticed. | value | display value | string, number | — | — | | max | maximum value, shows '{max}+' when exceeded. Only works if `value` is a `Number` | number | — | — | | is-dot | if a little dot is displayed | boolean | — | false | -| hidden | hidden badge | boolean | - | false | +| hidden | hidden badge | boolean | — | false | diff --git a/examples/docs/en-US/carousel.md b/examples/docs/en-US/carousel.md index 205f1e70f..bd83a76d5 100644 --- a/examples/docs/en-US/carousel.md +++ b/examples/docs/en-US/carousel.md @@ -178,7 +178,7 @@ When a page is wide enough but has limited height, you can activate card mode fo ### Methods | Method | Description | Parameters | -|---------- |-------------- | - | +|---------- |-------------- | — | | setActiveItem | manually switch slide | index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` | | prev | switch to the previous slide | — | | next | switch to the next slide | — | diff --git a/examples/docs/en-US/date-picker.md b/examples/docs/en-US/date-picker.md index d7282018e..c30cdee2c 100644 --- a/examples/docs/en-US/date-picker.md +++ b/examples/docs/en-US/date-picker.md @@ -251,10 +251,10 @@ Picking a date range is supported. | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | whether DatePicker is read only | boolean | — | false | -| disabled | whether DatePicker is disabled | boolean | - | false | +| disabled | whether DatePicker is disabled | boolean | — | false | |size | size of Input | string | large/small/mini | — | -| editable | whether the input is editable | boolean | - | true | -| clearable | Whether to show clear button | boolean | - | true | +| editable | whether the input is editable | boolean | — | true | +| clearable | Whether to show clear button | boolean | — | true | | placeholder | placeholder | string | — | — | | type | type of the picker | string | year/month/date/datetime/ week/datetimerange/daterange | date | | format | format of the picker | string | year `yyyy` month `MM` day `dd`, hour `HH`, minute `mm`, second `ss` | yyyy-MM-dd | diff --git a/examples/docs/en-US/datetime-picker.md b/examples/docs/en-US/datetime-picker.md index e24821400..55ddf4a8a 100644 --- a/examples/docs/en-US/datetime-picker.md +++ b/examples/docs/en-US/datetime-picker.md @@ -206,9 +206,9 @@ Select date and time in one picker. | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | whether DatePicker is read only | boolean | — | false | -| disabled | whether DatePicker is disabled | boolean | - | false | -| editable | whether the input is editable | boolean | - | true | -| clearable | Whether to show clear button | boolean | - | true | +| disabled | whether DatePicker is disabled | boolean | — | false | +| editable | whether the input is editable | boolean | — | true | +| clearable | Whether to show clear button | boolean | — | true | |size | size of Input | string | large/small/mini | — | | placeholder | placeholder | string | — | — | | type | type of the picker | string | year/month/date/datetime/ week/datetimerange/daterange | date | diff --git a/examples/docs/en-US/dropdown.md b/examples/docs/en-US/dropdown.md index ad30c5a98..25d4bdd86 100644 --- a/examples/docs/en-US/dropdown.md +++ b/examples/docs/en-US/dropdown.md @@ -169,7 +169,7 @@ Clicking each dropdown item fires an event whose parameter is assigned by each i | size | component size, refer to `Button` component | string | large, small, mini | — | | menu-align | horizontal alignment | string | start/end | end | | trigger | how to trigger | string | hover/click | hover | -| hide-on-click | whether to hide menu after clicking menu-item | boolean | - | true | +| hide-on-click | whether to hide menu after clicking menu-item | boolean | — | true | ### Dropdown Events | Event Name | Description | Parameters | diff --git a/examples/docs/en-US/popover.md b/examples/docs/en-US/popover.md index 61601147f..42ff193f6 100644 --- a/examples/docs/en-US/popover.md +++ b/examples/docs/en-US/popover.md @@ -228,5 +228,5 @@ Of course, you can nest other operations. It's more light-weight than using a di ### Events | Event Name | Description | 回调参数 | |---------|--------|---------| -| show | triggers when popover shows | - | -| hide | triggers when popover hides | - | +| show | triggers when popover shows | — | +| hide | triggers when popover hides | — | diff --git a/examples/docs/en-US/table.md b/examples/docs/en-US/table.md index 6adafe9ed..ae9c9a225 100644 --- a/examples/docs/en-US/table.md +++ b/examples/docs/en-US/table.md @@ -1443,17 +1443,17 @@ When the row content is too long and you do not want to display the horizontal s | stripe | whether table is striped | boolean | — | false | | border | whether table has vertical border | boolean | — | false | | fit | whether width of column automatically fits its container | boolean | — | true | -| show-header | whether table header is visible | boolean | - | true | +| show-header | whether table header is visible | boolean | — | true | | highlight-current-row | whether current row is highlighted | boolean | — | false | -| current-row-key | key of current row, a set only prop | string,number | - | - | +| current-row-key | key of current row, a set only prop | string,number | — | — | | row-class-name | function that returns custom class names for a row, or a string assigning class names for every row | Function(row, index)/String | — | — | | row-style | function that returns custom style for a row, or a string assigning custom style for every row | Function(row, index)/Object | — | — | | row-key | key of row data, used for optimizing rendering. Required if `reserve-selection` is on | Function(row)/String | — | — | -| context | context of Table, e.g. `_self` refers to the current context, `$parent` parent context, `$root` root context, can be overridden by `context` in `el-table-column` | Object | - | current context where Table lies | -| empty-text | Displayed text when data is empty. You can customize this area with `slot="empty"` | String | - | No Data | -| default-expand-all | whether expand all rows by default, only works when the table has a column type="expand" | Boolean | - | false | -| expand-row-keys | set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop | Array | - | | -| virtual-scrollbar | Enable virtual scrollbar | Boolean | - | false | +| context | context of Table, e.g. `_self` refers to the current context, `$parent` parent context, `$root` root context, can be overridden by `context` in `el-table-column` | Object | — | current context where Table lies | +| empty-text | Displayed text when data is empty. You can customize this area with `slot="empty"` | String | — | No Data | +| default-expand-all | whether expand all rows by default, only works when the table has a column type="expand" | Boolean | — | false | +| expand-row-keys | set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop | Array | — | | +| virtual-scrollbar | Enable virtual scrollbar | Boolean | — | false | ### Table Events | Event Name | Description | Parameters | @@ -1484,7 +1484,7 @@ When the row content is too long and you do not want to display the horizontal s |---------- |-------------- |---------- |-------------------------------- |-------- | | type | type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon. | string | selection/index/expand | — | | label | column label | string | — | — | -| column-key | column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered | string | string | - | - | +| column-key | column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered | string | string | — | — | | prop | field name. You can also use its alias: `property` | string | — | — | | width | column width | string | — | — | | min-width | column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion | string | — | — | diff --git a/examples/docs/en-US/tabs.md b/examples/docs/en-US/tabs.md index 49d8e8a2b..69e3b168e 100644 --- a/examples/docs/en-US/tabs.md +++ b/examples/docs/en-US/tabs.md @@ -179,6 +179,6 @@ You can use named slot to customize the tab label content. | Attribute | Description | Type | Accepted Values | Default | |---------- |-------- |---------- |------------- |-------- | | label | title of the tab | string | — | — | -| disabled | whether Tab is disabled | boolean | - | false | +| disabled | whether Tab is disabled | boolean | — | false | | name | identifier corresponding to the activeName of Tabs, representing the alias of the tab-pane | string | — | ordinal number of the tab-pane in the sequence, i.e. the first tab-pane is '1' | | closable | whether Tab is closable | boolean | — | false | diff --git a/examples/docs/en-US/time-picker.md b/examples/docs/en-US/time-picker.md index 42d4f98a5..311eb3e47 100644 --- a/examples/docs/en-US/time-picker.md +++ b/examples/docs/en-US/time-picker.md @@ -144,9 +144,9 @@ Can pick an arbitrary time range. | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | whether DatePicker is read only | boolean | — | false | -| disabled | whether DatePicker is disabled | boolean | - | false | -| editable | whether the input is editable | boolean | - | true | -| clearable | Whether to show clear button | boolean | - | true | +| disabled | whether DatePicker is disabled | boolean | — | false | +| editable | whether the input is editable | boolean | — | true | +| clearable | Whether to show clear button | boolean | — | true | | size | size of Input | string | large/small/mini | — | | placeholder | placeholder | string | — | — | | format | format of the picker | string | hour `HH`, minute `mm`, second `ss` | HH:mm:ss | @@ -162,7 +162,7 @@ Can pick an arbitrary time range. | end | end time | string | — | 18:00 | | step | time step | string | — | 00:30 | | minTime | minimum time, any time before this time will be disabled | string | — | 00:00 | -| maxTime | maximum time, any time after this time will be disabled | string | — | - | +| maxTime | maximum time, any time after this time will be disabled | string | — | — | ### Time Picker Options | Attribute | Description | Type | Accepted Values | Default | diff --git a/examples/docs/en-US/tree.md b/examples/docs/en-US/tree.md index a5c95d5fe..9834f56ad 100644 --- a/examples/docs/en-US/tree.md +++ b/examples/docs/en-US/tree.md @@ -222,17 +222,17 @@ Used for node selection. In the following example, data for each layer is acquir | node-key | unique identity key name for nodes, its value should be unique across the whole tree | string | — | — | | props | configuration options, see the following table | object | — | — | | load | method for loading subtree data | function(node, resolve) | — | — | -| render-content | render function for tree node | Function(h, { node } | - | - | -| highlight-current | whether current node is highlighted | boolean | - | false | -| current-node-key | key of current node, a set only prop | string, number | - | - | -| default-expand-all | whether to expand all nodes by default | boolean | - | false | -| expand-on-click-node | whether to expand or collapse node when clicking on the node, if false, then expand or collapse node only when clicking on the arrow icon. | - | true | +| render-content | render function for tree node | Function(h, { node } | — | — | +| highlight-current | whether current node is highlighted | boolean | — | false | +| current-node-key | key of current node, a set only prop | string, number | — | — | +| default-expand-all | whether to expand all nodes by default | boolean | — | false | +| expand-on-click-node | whether to expand or collapse node when clicking on the node, if false, then expand or collapse node only when clicking on the arrow icon. | — | true | | auto-expand-parent | whether to expand father node when a child node is expanded | boolean | — | true | | default-expanded-keys | array of keys of initially expanded nodes | array | — | — | | show-checkbox | whether node is selectable | boolean | — | false | | check-strictly | whether checked state of a node not affects its father and child nodes when `show-checkbox` is `true` | boolean | — | false | | default-checked-keys | array of keys of initially checked nodes | array | — | — | -| filter-node-method | this function will be executed on each node when use filter method. if return `false`, tree node will be hidden. | Function(value, data, node) | - | - | +| filter-node-method | this function will be executed on each node when use filter method. if return `false`, tree node will be hidden. | Function(value, data, node) | — | — | ### props | Attribute | Description | Type | Accepted Values | Default | diff --git a/examples/docs/zh-CN/badge.md b/examples/docs/zh-CN/badge.md index 0972cdbac..d0fd49125 100644 --- a/examples/docs/zh-CN/badge.md +++ b/examples/docs/zh-CN/badge.md @@ -137,4 +137,4 @@ | value | 显示值 | string, number | — | — | | max | 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型 | number | — | — | | is-dot | 小圆点 | boolean | — | false | -| hidden | 隐藏 badge | boolean | - | false | +| hidden | 隐藏 badge | boolean | — | false | diff --git a/examples/docs/zh-CN/carousel.md b/examples/docs/zh-CN/carousel.md index 7a4d5c748..a9ff69232 100644 --- a/examples/docs/zh-CN/carousel.md +++ b/examples/docs/zh-CN/carousel.md @@ -227,7 +227,7 @@ ### Carousel Methods | 方法名 | 说明 | 参数 | -|---------- |-------------- | - | +|---------- |-------------- | — | | setActiveItem | 手动切换幻灯片 | 需要切换的幻灯片的索引,从 0 开始;或相应 `el-carousel-item` 的 `name` 属性值 | | prev | 切换至上一张幻灯片 | — | | next | 切换至下一张幻灯片 | — | diff --git a/examples/docs/zh-CN/date-picker.md b/examples/docs/zh-CN/date-picker.md index 989e4e310..85cbe8752 100644 --- a/examples/docs/zh-CN/date-picker.md +++ b/examples/docs/zh-CN/date-picker.md @@ -285,9 +285,9 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | 完全只读 | boolean | — | false | -| disabled | 禁用 | boolean | - | false | -| editable | 文本框可输入 | boolean | - | true | -| clearable | 是否显示清除按钮 | boolean | - | true | +| disabled | 禁用 | boolean | — | false | +| editable | 文本框可输入 | boolean | — | true | +| clearable | 是否显示清除按钮 | boolean | — | true | | size | 输入框尺寸 | string | large, small, mini | — | | placeholder | 占位内容 | string | — | — | | type | 显示类型 | string | year/month/date/week/ datetime/datetimerange/daterange | date | @@ -299,8 +299,8 @@ ### Picker Options | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | -| shortcuts | 设置快捷选项,需要传入 { text, onClick } 对象用法参考 demo 或下表 | Object[] | - | - | -| disabledDate | 设置禁用状态,参数为当前日期,要求返回 Boolean | Function | - | - | +| shortcuts | 设置快捷选项,需要传入 { text, onClick } 对象用法参考 demo 或下表 | Object[] | — | — | +| disabledDate | 设置禁用状态,参数为当前日期,要求返回 Boolean | Function | — | — | | firstDayOfWeek | 周起始日 | Number | 1 到 7 | 7 | ### Shortcuts diff --git a/examples/docs/zh-CN/datetime-picker.md b/examples/docs/zh-CN/datetime-picker.md index 0f4353386..b2a6f671b 100644 --- a/examples/docs/zh-CN/datetime-picker.md +++ b/examples/docs/zh-CN/datetime-picker.md @@ -229,9 +229,9 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | 完全只读 | boolean | — | false | -| disabled | 禁用 | boolean | - | false | -| editable | 文本框可输入 | boolean | - | true | -| clearable | 是否显示清除按钮 | boolean | - | true | +| disabled | 禁用 | boolean | — | false | +| editable | 文本框可输入 | boolean | — | true | +| clearable | 是否显示清除按钮 | boolean | — | true | | size | 输入框尺寸 | string | large, small, mini | — | | placeholder | 占位内容 | string | — | — | | type | 显示类型 | string | year/month/date/week/ datetime/datetimerange/daterange | date | @@ -243,8 +243,8 @@ ### Picker Options | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | -| shortcuts | 设置快捷选项,需要传入 { text, onClick } 对象用法参考 demo 或下表 | Object[] | - | - | -| disabledDate | 设置禁用状态,参数为当前日期,要求返回 Boolean | Function | - | - | +| shortcuts | 设置快捷选项,需要传入 { text, onClick } 对象用法参考 demo 或下表 | Object[] | — | — | +| disabledDate | 设置禁用状态,参数为当前日期,要求返回 Boolean | Function | — | — | ### Shortcuts | 参数 | 说明 | 类型 | 可选值 | 默认值 | diff --git a/examples/docs/zh-CN/dropdown.md b/examples/docs/zh-CN/dropdown.md index 26f6b8c45..de87ae60e 100644 --- a/examples/docs/zh-CN/dropdown.md +++ b/examples/docs/zh-CN/dropdown.md @@ -209,7 +209,7 @@ | split-button | 下拉触发元素呈现为按钮组 | boolean | — | false | | menu-align | 菜单水平对齐方向 | string | start, end | end | | trigger | 触发下拉的行为 | string | hover, click | hover | -| hide-on-click | 是否在点击菜单项后隐藏菜单 | boolean | - | true | +| hide-on-click | 是否在点击菜单项后隐藏菜单 | boolean | — | true | ### Dropdown Events | 事件名称 | 说明 | 回调参数 | diff --git a/examples/docs/zh-CN/input.md b/examples/docs/zh-CN/input.md index 751c2afee..2857f7724 100644 --- a/examples/docs/zh-CN/input.md +++ b/examples/docs/zh-CN/input.md @@ -725,11 +725,11 @@ export default { | rows | 输入框行数,只对 `type="textarea"` 有效 | number | — | 2 | | autosize | 自适应内容高度,只对 `type="textarea"` 有效,可传入对象,如,{ minRows: 2, maxRows: 6 } | boolean/object | — | false | | auto-complete | 原生属性,自动补全 | string | on, off | off | -| name | 原生属性 | string | - | -| -| max | 原生属性,设置最大值 | * | - | - | -| min | 原生属性,设置最小值 | * | - | - | +| name | 原生属性 | string | — | — | +| max | 原生属性,设置最大值 | * | — | — | +| min | 原生属性,设置最小值 | * | — | — | | autofocus | 原生属性,自动获取焦点 | boolean | true, false | false | -| form | 原生属性 | string | - | - | +| form | 原生属性 | string | — | — | ### Input Events | 事件名称 | 说明 | 回调参数 | diff --git a/examples/docs/zh-CN/pagination.md b/examples/docs/zh-CN/pagination.md index b99ad21de..791167f7f 100644 --- a/examples/docs/zh-CN/pagination.md +++ b/examples/docs/zh-CN/pagination.md @@ -203,8 +203,8 @@ |--------------------|----------------------------------------------------------|-------------------|-------------|--------| | small | 是否使用小型分页样式 | Boolean | — | false | | page-size | 每页显示条目个数 | Number | — | 10 | -| total | 总条目数 | Number | — | - | -| page-count | 总页数,total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性 | Number | — | - | +| total | 总条目数 | Number | — | — | +| page-count | 总页数,total 和 page-count 设置任意一个就可以达到显示页码的功能;如果要支持 page-sizes 的更改,则需要使用 total 属性 | Number | — | — | | current-page | 当前页数 | Number | — | 1 | | layout | 组件布局,子组件名用逗号分隔| String | `sizes`, `prev`, `pager`, `next`, `jumper`, `->`, `total`, `slot` | 'prev, pager, next, jumper, ->, total' | | page-sizes | 每页显示个数选择器的选项设置 | Number[] | — | [10, 20, 30, 40, 50, 100] | diff --git a/examples/docs/zh-CN/popover.md b/examples/docs/zh-CN/popover.md index 81b962b4e..18d136b30 100644 --- a/examples/docs/zh-CN/popover.md +++ b/examples/docs/zh-CN/popover.md @@ -244,7 +244,7 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的 | transition | 定义渐变动画 | String | — | fade-in-linear | | visible-arrow | 是否显示 Tooltip 箭头,更多参数可见[Vue-popper](https://github.com/element-component/vue-popper) | Boolean | — | true | | options | [popper.js](https://popper.js.org/documentation.html) 的参数 | Object | 参考 [popper.js](https://popper.js.org/documentation.html) 文档 | `{ boundariesElement: 'body', gpuAcceleration: false }` | -| popper-class | 为 popper 添加类名 | String | - | -| +| popper-class | 为 popper 添加类名 | String | — | — | ### Slot | 参数 | 说明 | diff --git a/examples/docs/zh-CN/table.md b/examples/docs/zh-CN/table.md index 00a72a991..f17fc1382 100644 --- a/examples/docs/zh-CN/table.md +++ b/examples/docs/zh-CN/table.md @@ -1436,17 +1436,17 @@ | stripe | 是否为斑马纹 table | boolean | — | false | | border | 是否带有纵向边框 | boolean | — | false | | fit | 列的宽度是否自撑开 | boolean | — | true | -| show-header | 是否显示表头 | boolean | - | true | +| show-header | 是否显示表头 | boolean | — | true | | highlight-current-row | 是否要高亮当前行 | boolean | — | false | -| current-row-key | 当前行的 key,只写属性 | String,Number | - | - | +| current-row-key | 当前行的 key,只写属性 | String,Number | — | — | | row-class-name | 行的 className 的回调方法,也可以使用字符串为所有行设置一个固定的 className。 | Function(row, index)/String | — | — | | row-style | 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style。 | Function(row, index)/Object | — | — | | row-key | 行数据的 Key,用来优化 Table 的渲染;在使用 reserve-selection 功能的情况下,该属性是必填的 | Function(row)/String | — | — | -| context | 设置上下文环境,例如设置当前上下文就是 `_self`,父级就是 `$parent`,根组件 `$root`。优先读取 column 的 context 属性。 | Object | - | Table 所处上下文 | -| empty-text | 空数据时显示的文本内容,也可以通过 `slot="empty"` 设置 | String | - | 暂无数据 | -| default-expand-all | 是否默认展开所有行,当 Table 中存在 type="expand" 的 Column 的时候有效 | Boolean | - | false | -| expand-row-keys | 可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。| Array | - | | -| virtual-scrollbar | 启用虚拟滚动条 | Boolean | - | false | +| context | 设置上下文环境,例如设置当前上下文就是 `_self`,父级就是 `$parent`,根组件 `$root`。优先读取 column 的 context 属性。 | Object | — | Table 所处上下文 | +| empty-text | 空数据时显示的文本内容,也可以通过 `slot="empty"` 设置 | String | — | 暂无数据 | +| default-expand-all | 是否默认展开所有行,当 Table 中存在 type="expand" 的 Column 的时候有效 | Boolean | — | false | +| expand-row-keys | 可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。| Array | — | | +| virtual-scrollbar | 启用虚拟滚动条 | Boolean | — | false | ### Table Events @@ -1477,7 +1477,7 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | | type | 对应列的类型。如果设置了 `selection` 则显示多选框;如果设置了 `index` 则显示该行的索引(从 1 开始计算);如果设置了 expand 则显示为一个可展开的按钮 | string | selection/index/expand | — | -| column-key | column 的 key,如果需要使用 filter-change 事件,则需要此属性标识是哪个 column 的筛选条件 | string | - | - | +| column-key | column 的 key,如果需要使用 filter-change 事件,则需要此属性标识是哪个 column 的筛选条件 | string | — | — | | label | 显示的标题 | string | — | — | | prop | 对应列内容的字段名,也可以使用 property 属性 | string | — | — | | width | 对应列的宽度 | string | — | — | diff --git a/examples/docs/zh-CN/tabs.md b/examples/docs/zh-CN/tabs.md index 58d8d6481..b21bca1f8 100644 --- a/examples/docs/zh-CN/tabs.md +++ b/examples/docs/zh-CN/tabs.md @@ -191,6 +191,6 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | label | 选项卡标题 | string | — | — | -| disabled | 是否禁用 | boolean | - | false | +| disabled | 是否禁用 | boolean | — | false | | name | 与选项卡 activeName 对应的标识符,表示选项卡别名 | string | — | 该选项卡在选项卡列表中的顺序值,如第一个选项卡则为'1' | | closable | 标签是否可关闭 | boolean | — | false | diff --git a/examples/docs/zh-CN/time-picker.md b/examples/docs/zh-CN/time-picker.md index 3739b0d99..f38b85831 100644 --- a/examples/docs/zh-CN/time-picker.md +++ b/examples/docs/zh-CN/time-picker.md @@ -151,13 +151,13 @@ | 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | 完全只读 | boolean | — | false | -| disabled | 禁用 | boolean | - | false | -| editable | 文本框可输入 | boolean | - | true | -| clearable | 是否显示清除按钮 | boolean | - | true | +| disabled | 禁用 | boolean | — | false | +| editable | 文本框可输入 | boolean | — | true | +| clearable | 是否显示清除按钮 | boolean | — | true | | size | 输入框尺寸 | string | large, small, mini | — | | placeholder | 占位内容 | string | — | — | | format | 时间格式化(TimePicker) | string | 小时:`HH`,分:`mm`,秒:`ss` | 'HH:mm:ss' | -| value | 绑定值 | TimePicker: DateTimeSelect: String | - | - | +| value | 绑定值 | TimePicker: DateTimeSelect: String | — | — | | align | 对齐方式 | string | left, center, right | left | | popper-class | TimePicker 下拉框的类名 | string | — | — | | picker-options | 当前时间日期选择器特有的选项参考下表 | object | — | {} | @@ -169,7 +169,7 @@ | end | 结束时间 | string | — | 18:00 | | step | 间隔时间 | string | — | 00:30 | | minTime | 最小时间,小于该时间的时间段将被禁用 | string | — | 00:00 | -| maxTime | 最大时间,大于该时间的时间段将被禁用 | string | — | - | +| maxTime | 最大时间,大于该时间的时间段将被禁用 | string | — | — | ### Time Picker Options | 参数 | 说明 | 类型 | 可选值 | 默认值 | diff --git a/examples/docs/zh-CN/tooltip.md b/examples/docs/zh-CN/tooltip.md index 3716be6a9..00a395455 100644 --- a/examples/docs/zh-CN/tooltip.md +++ b/examples/docs/zh-CN/tooltip.md @@ -209,4 +209,4 @@ Tooltip 组件提供了两个不同的主题:`dark`和`light`。 | options | [popper.js](https://popper.js.org/documentation.html) 的参数 | Object | 参考 [popper.js](https://popper.js.org/documentation.html) 文档 | `{ boundariesElement: 'body', gpuAcceleration: false }` | | openDelay | 延迟出现,单位毫秒 | Number | — | 0 | | manual | 手动控制模式,设置为 true 后,mouseenter 和 mouseleave 事件将不会生效 | Boolean | — | false | -| popper-class | 为 Tooltip 的 popper 添加类名 | String | - | -| +| popper-class | 为 Tooltip 的 popper 添加类名 | String | — | — | diff --git a/examples/docs/zh-CN/tree.md b/examples/docs/zh-CN/tree.md index 470e0f2c0..01e51da44 100644 --- a/examples/docs/zh-CN/tree.md +++ b/examples/docs/zh-CN/tree.md @@ -234,17 +234,17 @@ | node-key | 每个树节点用来作为唯一标识的属性,整颗树应该是唯一的 | String | — | — | | props | 配置选项,具体看下表 | object | — | — | | load | 加载子树数据的方法 | function(node, resolve) | — | — | -| render-content | 树节点的内容区的渲染 Function | Function(h, { node } | - | - | -| highlight-current | 是否高亮当前选中节点,默认值是 false。| boolean | - | false | -| current-node-key | 当前选中节点的 key,只写属性 | string, number | - | - | -| default-expand-all | 是否默认展开所有节点 | boolean | - | false | -| expand-on-click-node | 是否在点击节点的时候展开或者收缩节点,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。 | boolean | - | false | +| render-content | 树节点的内容区的渲染 Function | Function(h, { node } | — | — | +| highlight-current | 是否高亮当前选中节点,默认值是 false。| boolean | — | false | +| current-node-key | 当前选中节点的 key,只写属性 | string, number | — | — | +| default-expand-all | 是否默认展开所有节点 | boolean | — | false | +| expand-on-click-node | 是否在点击节点的时候展开或者收缩节点,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。 | boolean | — | false | | auto-expand-parent | 展开子节点的时候是否自动展开父节点 | boolean | — | true | | default-expanded-keys | 默认展开的节点的 key 的数组 | array | — | — | | show-checkbox | 节点是否可被选择 | boolean | — | false | | check-strictly | 在显示复选框的情况下,是否严格的遵循父子不互相关联的做法,默认为 false | boolean | — | false | | default-checked-keys | 默认勾选的节点的 key 的数组 | array | — | — | -| filter-node-method | 对树节点进行筛选时执行的方法,返回 true 表示这个节点可以显示,返回 false 则表示这个节点会被隐藏 | Function(value, data, node) | - | - | +| filter-node-method | 对树节点进行筛选时执行的方法,返回 true 表示这个节点可以显示,返回 false 则表示这个节点会被隐藏 | Function(value, data, node) | — | — | ### props | 参数 | 说明 | 类型 | 可选值 | 默认值 | diff --git a/examples/docs/zh-CN/upload.md b/examples/docs/zh-CN/upload.md index 22a67b3fd..fd6f61f47 100644 --- a/examples/docs/zh-CN/upload.md +++ b/examples/docs/zh-CN/upload.md @@ -179,5 +179,5 @@ ### Methods | 方法名 | 说明 | 参数 | -|---------- |-------------- | - | +|---------- |-------------- | — | | clearFiles | 清空已上传的文件列表 | — |