docs: add loading prop for table, fix slot props and event payload for tabs

This commit is contained in:
Justineo 2020-11-17 19:59:41 +08:00
parent cb2b41ee09
commit 54b5f60ef4
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA
5 changed files with 70 additions and 32 deletions

View File

@ -53,6 +53,7 @@
| `order` | `string|boolean` | `false` | 排序顺序。为 `false` 时表示无序,为字符串值 `'asc'`/`'desc'` 时分别为升序/降序。 | | `order` | `string|boolean` | `false` | 排序顺序。为 `false` 时表示无序,为字符串值 `'asc'`/`'desc'` 时分别为升序/降序。 |
| `order-by` | `string` | - | 用于指定当前基于哪一列进行了排序,值必须来自内部某个 `Column` 组件的 `field` 属性。 | | `order-by` | `string` | - | 用于指定当前基于哪一列进行了排序,值必须来自内部某个 `Column` 组件的 `field` 属性。 |
| `scroll` | `number` | - | 指定滚动区域的最大高度,当超出此高度时,表格将进入固定表头和底部只允许数据区域滚动的模式。 | | `scroll` | `number` | - | 指定滚动区域的最大高度,当超出此高度时,表格将进入固定表头和底部只允许数据区域滚动的模式。 |
| `loading` | `boolean` | `false` | 指定表格是否处于加载状态。 |
^^^ui ^^^ui
预设样式。 预设样式。

View File

@ -81,7 +81,7 @@
| `panel` | 选项卡下方面板区域。 | | `panel` | 选项卡下方面板区域。 |
| `extra` | 位于标签页右侧的扩展区域。 | | `extra` | 位于标签页右侧的扩展区域。 |
| `tab-item` | [^tab-item] | | `tab-item` | [^tab-item] |
| `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽。 | | `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽`attrs`/`activate` 除外。 |
^^^tab-item ^^^tab-item
标签选项卡区域,默认内容为选项卡对应的按钮/链接。作用域参数为标签属性描述对象。 标签选项卡区域,默认内容为选项卡对应的按钮/链接。作用域参数为标签属性描述对象。
@ -93,9 +93,13 @@
| `name` | `string` | 选项卡名称。 | | `name` | `string` | 选项卡名称。 |
| `disabled` | `boolean=` | 选项卡是否禁用。 | | `disabled` | `boolean=` | 选项卡是否禁用。 |
| `to` | `string` | 选项卡路由信息。 | | `to` | `string` | 选项卡路由信息。 |
| `active` | `boolean` | 选项卡是否是激活项。 |
| `index` | `number` | 选项卡位于列表中的索引值。 |
| `native` | `boolean` | 路由模式是否强制使用原生的 `<a>` 元素。 | | `native` | `boolean` | 路由模式是否强制使用原生的 `<a>` 元素。 |
| `removable` | `boolean` | 是否可删除。 | | `removable` | `boolean` | 是否可删除。 |
| `status` | `string` | 选项卡状态。 | | `status` | `string` | 选项卡状态。 |
| `attrs` | `Object<string, string>` | 其它需要输出到选项卡元素上的 HTML 属性,例如 `role`/`aria-selected`/`aria-controls` 等。 |
| `activate` | `function(): void` | 激活当前选项卡的方法。 |
+++ +++
^^^ ^^^

View File

@ -53,6 +53,7 @@ Rows can be expanded into sub-rows.
| `order` | `string|boolean` | `false` | The order for sorting the specified column. `false` denotes no specific order, while string values of `'asc'`/`'desc'` denote ascending/descending order respectively. | | `order` | `string|boolean` | `false` | The order for sorting the specified column. `false` denotes no specific order, while string values of `'asc'`/`'desc'` denote ascending/descending order respectively. |
| `order-by` | `string` | - | The column which is currently sorted by. The value should be defined as the `field` prop for one of the children `Column` components. | | `order-by` | `string` | - | The column which is currently sorted by. The value should be defined as the `field` prop for one of the children `Column` components. |
| `scroll` | `number` | - | The maximun height of the scrollable area inside the table body. When table content exceeds the specified height, internal scroll will be enabled and the head/foot will become fixed. | | `scroll` | `number` | - | The maximun height of the scrollable area inside the table body. When table content exceeds the specified height, internal scroll will be enabled and the head/foot will become fixed. |
| `loading` | `boolean` | `false` | Whether table data is being loaded. |
^^^ui ^^^ui
Style variants. Style variants.

83
package-lock.json generated
View File

@ -3558,9 +3558,9 @@
} }
}, },
"babel-plugin-veui": { "babel-plugin-veui": {
"version": "2.0.0-beta.11", "version": "2.0.0-beta.16",
"resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.11.tgz", "resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.16.tgz",
"integrity": "sha512-L+mN7CAPj7aEf2hJ7duOV/Znrkw9MfmmgkeE4pU5IJfoiQKJyG+EkAkTGZA8QivDiksvuO/Npio81peIcCbMkw==", "integrity": "sha512-LOBO5l2hWELlbSslW5tUZ18Cg9X6aOLE38G+V45+cFTMXPPpFMUJcR5sG7IcNVtS9eg5oGLhP6DXfUf2/JfF8w==",
"dev": true "dev": true
}, },
"babel-runtime": { "babel-runtime": {
@ -5692,10 +5692,16 @@
"color-converters": "^0.1.1" "color-converters": "^0.1.1"
} }
}, },
"dls-graphics": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/dls-graphics/-/dls-graphics-0.1.3.tgz",
"integrity": "sha512-Wmd4JPvmg498QM8NNBlgwXNjLurs/M5Zhkl9sIc/wVcDghH+8mTbwNx5J6hA5RtlgPfc+lM4KY2Ybe/Lqs99bw==",
"dev": true
},
"dls-icons-vue": { "dls-icons-vue": {
"version": "0.12.1", "version": "0.14.0",
"resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.12.1.tgz", "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.14.0.tgz",
"integrity": "sha512-5qYuZ1b1ZAL/RG3T57lihG8OXZxJMwRFeE/FVEUnaYr9Io2OU4vV1pMZbii1Keu7KmVSuGfSLp9RV6NW5qEnPQ==", "integrity": "sha512-UXkTkzqw/FXcsb9TYoedLSJivOqQq3QAYd1cm0wak2bC1YYi1FdYkDftAcqgdtXBv/enJ6/FymOAxdY7z6RXRg==",
"dev": true "dev": true
}, },
"dlv": { "dlv": {
@ -9016,9 +9022,9 @@
} }
}, },
"less-plugin-dls": { "less-plugin-dls": {
"version": "1.0.0-alpha.32", "version": "1.0.0-alpha.33",
"resolved": "https://registry.npmjs.org/less-plugin-dls/-/less-plugin-dls-1.0.0-alpha.32.tgz", "resolved": "https://registry.npmjs.org/less-plugin-dls/-/less-plugin-dls-1.0.0-alpha.33.tgz",
"integrity": "sha512-mapBQ+t+YULRgnYWd/AdoQ9/Ggx4kURCzjM7beNBZ019+wNnBJu6lPZIxRmvaUBM7563BZpcfoaUGzLv23N/tw==", "integrity": "sha512-TqnlWqpS7yv0dxylxWygfRi15tiRzZGYPCGa2v6NfTxTbC1HNqT7diX06JlIqLMEw2IEy684m5kIh8yKatMpNg==",
"dev": true, "dev": true,
"requires": { "requires": {
"arg": "^4.1.3", "arg": "^4.1.3",
@ -9431,6 +9437,15 @@
} }
} }
}, },
"magic-string": {
"version": "0.25.7",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",
"integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",
"dev": true,
"requires": {
"sourcemap-codec": "^1.4.4"
}
},
"make-dir": { "make-dir": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
@ -14093,6 +14108,12 @@
"integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
"dev": true "dev": true
}, },
"sourcemap-codec": {
"version": "1.4.8",
"resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
"dev": true
},
"space-separated-tokens": { "space-separated-tokens": {
"version": "1.1.5", "version": "1.1.5",
"resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",
@ -15883,14 +15904,15 @@
} }
}, },
"veui": { "veui": {
"version": "2.0.0-beta.11", "version": "2.0.0-beta.16",
"resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.11.tgz", "resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.16.tgz",
"integrity": "sha512-jpE0Jv2OcGTFJr2TzK4oB2lAx3DV4T/Fzrvwh324yxpjoaNMW/ffRzfo0CgtN5eOBz3ey1drDEZMp6ahdk7QlA==", "integrity": "sha512-VYsOyuNP5S4QqGiuTZWr1sB2iNqIkKv/zm1wxbflkcMglIubml2v9S6gxn5fV1rgF8fX0KEeZEk3ZY618WoHcg==",
"dev": true, "dev": true,
"requires": { "requires": {
"bytes": "^3.0.0", "bytes": "^3.0.0",
"core-js": "^3.6.1", "core-js": "^3.6.1",
"date-fns": "^2.14.0", "date-fns": "^2.14.0",
"dls-graphics": "^0.1.2",
"lodash": "^4.17.19", "lodash": "^4.17.19",
"popper.js": "^1.16.0", "popper.js": "^1.16.0",
"resize-detector": "^0.1.6", "resize-detector": "^0.1.6",
@ -15899,20 +15921,21 @@
}, },
"dependencies": { "dependencies": {
"core-js": { "core-js": {
"version": "3.6.5", "version": "3.7.0",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.7.0.tgz",
"integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==", "integrity": "sha512-NwS7fI5M5B85EwpWuIwJN4i/fbisQUwLwiSNUWeXlkAZ0sbBjLEvLvFLf1uzAUV66PcEPt4xCGCmOZSxVf3xzA==",
"dev": true "dev": true
} }
} }
}, },
"veui-loader": { "veui-loader": {
"version": "2.0.0-beta.11", "version": "2.0.0-beta.16",
"resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.11.tgz", "resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.16.tgz",
"integrity": "sha512-MRR0EMRobnd4YQZa8ZA/wUk9UbxGmj2SEYApHIWR1DQZJl2Ojz/m7tpqVx1tZcny4MxxOBOScZW0306ERhGW4w==", "integrity": "sha512-OuYTsmLIQuVvXRWnLl+9FMPKG+OaYFfidnz4jlMfKT+GzZaJW8+c6aKpTlnxZRXBslxn/pBg+kE04bBWyM5r+w==",
"dev": true, "dev": true,
"requires": { "requires": {
"loader-utils": "^2.0.0", "loader-utils": "^2.0.0",
"magic-string": "^0.25.7",
"pkg-dir": "^4.2.0", "pkg-dir": "^4.2.0",
"slash": "^3.0.0" "slash": "^3.0.0"
}, },
@ -15998,23 +16021,31 @@
} }
}, },
"veui-theme-dls": { "veui-theme-dls": {
"version": "2.0.0-beta.11", "version": "2.0.0-beta.16",
"resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.11.tgz", "resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.16.tgz",
"integrity": "sha512-yhDooId8MXHPYDfqoCHE/TsPVMZXpAtq/qWZJ/odQsTR2Nsn1rT5O3W6/NTN/hcJrINuzsh+Hd4cbdya3Ld7Qw==", "integrity": "sha512-LBF54qRHDq1Wz7bXRxeaeCzcXXkqZ6a3nXm2OndviuUundY4sb0mD+AHsqa9GEu5OlftBOnpVqq3knh6UP3+8g==",
"dev": true, "dev": true,
"requires": { "requires": {
"classlist-polyfill": "^1.2.0", "classlist-polyfill": "^1.2.0",
"dls-icons-vue": "^0.12.0", "dls-icons-vue": "^0.12.0",
"focus-visible": "^4.1.0", "focus-visible": "^4.1.0",
"less-plugin-dls": "^1.0.0-alpha.31", "less-plugin-dls": "^1.0.0-alpha.33",
"less-plugin-est": "^3.0.0", "less-plugin-est": "^3.0.0",
"veui-theme-dls-icons": "^2.0.0-beta.11" "veui-theme-dls-icons": "^2.0.0-beta.16"
},
"dependencies": {
"dls-icons-vue": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.12.1.tgz",
"integrity": "sha512-5qYuZ1b1ZAL/RG3T57lihG8OXZxJMwRFeE/FVEUnaYr9Io2OU4vV1pMZbii1Keu7KmVSuGfSLp9RV6NW5qEnPQ==",
"dev": true
}
} }
}, },
"veui-theme-dls-icons": { "veui-theme-dls-icons": {
"version": "2.0.0-beta.11", "version": "2.0.0-beta.16",
"resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.11.tgz", "resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.16.tgz",
"integrity": "sha512-6MR75XuWgS7nc+8Twsw8pp/kS6EXtWu3GvuY0fria+06oraHyPu7B6rsHCk5uiPBwbnUjFvFAzNx12LxHWrvXA==", "integrity": "sha512-bfVJRLoYVkkZXVwFGCYi9KyqlkvMmN+ecUE+F1jsJajXaTUIVwj0/vGe1ixNa26XJQt4VzmCQQ93/AdrgKaPQQ==",
"dev": true "dev": true
}, },
"vfile": { "vfile": {

View File

@ -19,7 +19,8 @@
}, },
"devDependencies": { "devDependencies": {
"babel-plugin-lodash": "^3.3.4", "babel-plugin-lodash": "^3.3.4",
"babel-plugin-veui": "^2.0.0-beta.11", "babel-plugin-veui": "^2.0.0-beta.16",
"dls-icons-vue": "^0.14.0",
"eslint": "^5.15.1", "eslint": "^5.15.1",
"eslint-config-prettier": "^4.1.0", "eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0", "eslint-config-standard": "^12.0.0",
@ -68,10 +69,10 @@
"stylus-loader": "^3.0.2", "stylus-loader": "^3.0.2",
"unist-util-remove": "^1.0.1", "unist-util-remove": "^1.0.1",
"unist-util-visit": "^1.4.0", "unist-util-visit": "^1.4.0",
"veui": "^2.0.0-beta.11", "veui": "^2.0.0-beta.16",
"veui-loader": "^2.0.0-beta.11", "veui-loader": "^2.0.0-beta.16",
"veui-theme-dls": "^2.0.0-beta.11", "veui-theme-dls": "^2.0.0-beta.16",
"veui-theme-dls-icons": "^2.0.0-beta.11", "veui-theme-dls-icons": "^2.0.0-beta.16",
"vue-awesome": "^4.1.0", "vue-awesome": "^4.1.0",
"vue-i18n": "^8.16.0", "vue-i18n": "^8.16.0",
"vue-windows": "^0.2.4" "vue-windows": "^0.2.4"