From 54b5f60ef4efd4e1ceca4085ba4030c72aee091d Mon Sep 17 00:00:00 2001
From: Justineo <justice360@gmail.com>
Date: Tue, 17 Nov 2020 19:59:41 +0800
Subject: [PATCH] docs: add loading prop for table, fix slot props and event
 payload for tabs

---
 one/docs/components/table.md       |  1 +
 one/docs/components/tabs.md        |  6 ++-
 one/docs/en-US/components/table.md |  1 +
 package-lock.json                  | 83 ++++++++++++++++++++----------
 package.json                       | 11 ++--
 5 files changed, 70 insertions(+), 32 deletions(-)

diff --git a/one/docs/components/table.md b/one/docs/components/table.md
index 8facb8f..baf9b6c 100644
--- a/one/docs/components/table.md
+++ b/one/docs/components/table.md
@@ -53,6 +53,7 @@
 | `order` | `string|boolean` | `false` | 排序顺序。为 `false` 时表示无序,为字符串值 `'asc'`/`'desc'` 时分别为升序/降序。 |
 | `order-by` | `string` | - | 用于指定当前基于哪一列进行了排序,值必须来自内部某个 `Column` 组件的 `field` 属性。 |
 | `scroll` | `number` | - | 指定滚动区域的最大高度,当超出此高度时,表格将进入固定表头和底部只允许数据区域滚动的模式。 |
+| `loading` | `boolean` | `false` | 指定表格是否处于加载状态。 |
 
 ^^^ui
 预设样式。
diff --git a/one/docs/components/tabs.md b/one/docs/components/tabs.md
index 879160a..446c7ed 100644
--- a/one/docs/components/tabs.md
+++ b/one/docs/components/tabs.md
@@ -81,7 +81,7 @@
 | `panel` | 选项卡下方面板区域。 |
 | `extra` | 位于标签页右侧的扩展区域。 |
 | `tab-item` | [^tab-item] |
-| `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽。 |
+| `tab-label` | 标签选项卡文本区域,默认内容为选项卡文本。作用域参数同 `tab-item` 插槽,`attrs`/`activate` 除外。 |
 
 ^^^tab-item
 标签选项卡区域,默认内容为选项卡对应的按钮/链接。作用域参数为标签属性描述对象。
@@ -93,9 +93,13 @@
 | `name` | `string` | 选项卡名称。 |
 | `disabled` | `boolean=` | 选项卡是否禁用。 |
 | `to` | `string` | 选项卡路由信息。 |
+| `active` | `boolean` | 选项卡是否是激活项。 |
+| `index` | `number` | 选项卡位于列表中的索引值。 |
 | `native` | `boolean` | 路由模式是否强制使用原生的 `<a>` 元素。 |
 | `removable` | `boolean` | 是否可删除。 |
 | `status` | `string` | 选项卡状态。 |
+| `attrs` | `Object<string, string>` | 其它需要输出到选项卡元素上的 HTML 属性,例如 `role`/`aria-selected`/`aria-controls` 等。 |
+| `activate` | `function(): void` | 激活当前选项卡的方法。 |
 +++
 ^^^
 
diff --git a/one/docs/en-US/components/table.md b/one/docs/en-US/components/table.md
index 8ea3d04..a4db8fd 100644
--- a/one/docs/en-US/components/table.md
+++ b/one/docs/en-US/components/table.md
@@ -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-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. |
+| `loading` | `boolean` | `false` | Whether table data is being loaded. |
 
 ^^^ui
 Style variants.
diff --git a/package-lock.json b/package-lock.json
index d1dbd98..a4aa691 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3558,9 +3558,9 @@
       }
     },
     "babel-plugin-veui": {
-      "version": "2.0.0-beta.11",
-      "resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.11.tgz",
-      "integrity": "sha512-L+mN7CAPj7aEf2hJ7duOV/Znrkw9MfmmgkeE4pU5IJfoiQKJyG+EkAkTGZA8QivDiksvuO/Npio81peIcCbMkw==",
+      "version": "2.0.0-beta.16",
+      "resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.0.0-beta.16.tgz",
+      "integrity": "sha512-LOBO5l2hWELlbSslW5tUZ18Cg9X6aOLE38G+V45+cFTMXPPpFMUJcR5sG7IcNVtS9eg5oGLhP6DXfUf2/JfF8w==",
       "dev": true
     },
     "babel-runtime": {
@@ -5692,10 +5692,16 @@
         "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": {
-      "version": "0.12.1",
-      "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.12.1.tgz",
-      "integrity": "sha512-5qYuZ1b1ZAL/RG3T57lihG8OXZxJMwRFeE/FVEUnaYr9Io2OU4vV1pMZbii1Keu7KmVSuGfSLp9RV6NW5qEnPQ==",
+      "version": "0.14.0",
+      "resolved": "https://registry.npmjs.org/dls-icons-vue/-/dls-icons-vue-0.14.0.tgz",
+      "integrity": "sha512-UXkTkzqw/FXcsb9TYoedLSJivOqQq3QAYd1cm0wak2bC1YYi1FdYkDftAcqgdtXBv/enJ6/FymOAxdY7z6RXRg==",
       "dev": true
     },
     "dlv": {
@@ -9016,9 +9022,9 @@
       }
     },
     "less-plugin-dls": {
-      "version": "1.0.0-alpha.32",
-      "resolved": "https://registry.npmjs.org/less-plugin-dls/-/less-plugin-dls-1.0.0-alpha.32.tgz",
-      "integrity": "sha512-mapBQ+t+YULRgnYWd/AdoQ9/Ggx4kURCzjM7beNBZ019+wNnBJu6lPZIxRmvaUBM7563BZpcfoaUGzLv23N/tw==",
+      "version": "1.0.0-alpha.33",
+      "resolved": "https://registry.npmjs.org/less-plugin-dls/-/less-plugin-dls-1.0.0-alpha.33.tgz",
+      "integrity": "sha512-TqnlWqpS7yv0dxylxWygfRi15tiRzZGYPCGa2v6NfTxTbC1HNqT7diX06JlIqLMEw2IEy684m5kIh8yKatMpNg==",
       "dev": true,
       "requires": {
         "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": {
       "version": "2.1.0",
       "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",
@@ -14093,6 +14108,12 @@
       "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
       "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": {
       "version": "1.1.5",
       "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",
@@ -15883,14 +15904,15 @@
       }
     },
     "veui": {
-      "version": "2.0.0-beta.11",
-      "resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.11.tgz",
-      "integrity": "sha512-jpE0Jv2OcGTFJr2TzK4oB2lAx3DV4T/Fzrvwh324yxpjoaNMW/ffRzfo0CgtN5eOBz3ey1drDEZMp6ahdk7QlA==",
+      "version": "2.0.0-beta.16",
+      "resolved": "https://registry.npmjs.org/veui/-/veui-2.0.0-beta.16.tgz",
+      "integrity": "sha512-VYsOyuNP5S4QqGiuTZWr1sB2iNqIkKv/zm1wxbflkcMglIubml2v9S6gxn5fV1rgF8fX0KEeZEk3ZY618WoHcg==",
       "dev": true,
       "requires": {
         "bytes": "^3.0.0",
         "core-js": "^3.6.1",
         "date-fns": "^2.14.0",
+        "dls-graphics": "^0.1.2",
         "lodash": "^4.17.19",
         "popper.js": "^1.16.0",
         "resize-detector": "^0.1.6",
@@ -15899,20 +15921,21 @@
       },
       "dependencies": {
         "core-js": {
-          "version": "3.6.5",
-          "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz",
-          "integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==",
+          "version": "3.7.0",
+          "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.7.0.tgz",
+          "integrity": "sha512-NwS7fI5M5B85EwpWuIwJN4i/fbisQUwLwiSNUWeXlkAZ0sbBjLEvLvFLf1uzAUV66PcEPt4xCGCmOZSxVf3xzA==",
           "dev": true
         }
       }
     },
     "veui-loader": {
-      "version": "2.0.0-beta.11",
-      "resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.11.tgz",
-      "integrity": "sha512-MRR0EMRobnd4YQZa8ZA/wUk9UbxGmj2SEYApHIWR1DQZJl2Ojz/m7tpqVx1tZcny4MxxOBOScZW0306ERhGW4w==",
+      "version": "2.0.0-beta.16",
+      "resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.0.0-beta.16.tgz",
+      "integrity": "sha512-OuYTsmLIQuVvXRWnLl+9FMPKG+OaYFfidnz4jlMfKT+GzZaJW8+c6aKpTlnxZRXBslxn/pBg+kE04bBWyM5r+w==",
       "dev": true,
       "requires": {
         "loader-utils": "^2.0.0",
+        "magic-string": "^0.25.7",
         "pkg-dir": "^4.2.0",
         "slash": "^3.0.0"
       },
@@ -15998,23 +16021,31 @@
       }
     },
     "veui-theme-dls": {
-      "version": "2.0.0-beta.11",
-      "resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.11.tgz",
-      "integrity": "sha512-yhDooId8MXHPYDfqoCHE/TsPVMZXpAtq/qWZJ/odQsTR2Nsn1rT5O3W6/NTN/hcJrINuzsh+Hd4cbdya3Ld7Qw==",
+      "version": "2.0.0-beta.16",
+      "resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.0.0-beta.16.tgz",
+      "integrity": "sha512-LBF54qRHDq1Wz7bXRxeaeCzcXXkqZ6a3nXm2OndviuUundY4sb0mD+AHsqa9GEu5OlftBOnpVqq3knh6UP3+8g==",
       "dev": true,
       "requires": {
         "classlist-polyfill": "^1.2.0",
         "dls-icons-vue": "^0.12.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",
-        "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": {
-      "version": "2.0.0-beta.11",
-      "resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.11.tgz",
-      "integrity": "sha512-6MR75XuWgS7nc+8Twsw8pp/kS6EXtWu3GvuY0fria+06oraHyPu7B6rsHCk5uiPBwbnUjFvFAzNx12LxHWrvXA==",
+      "version": "2.0.0-beta.16",
+      "resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.0.0-beta.16.tgz",
+      "integrity": "sha512-bfVJRLoYVkkZXVwFGCYi9KyqlkvMmN+ecUE+F1jsJajXaTUIVwj0/vGe1ixNa26XJQt4VzmCQQ93/AdrgKaPQQ==",
       "dev": true
     },
     "vfile": {
diff --git a/package.json b/package.json
index d60a42c..59b5f03 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,8 @@
   },
   "devDependencies": {
     "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-config-prettier": "^4.1.0",
     "eslint-config-standard": "^12.0.0",
@@ -68,10 +69,10 @@
     "stylus-loader": "^3.0.2",
     "unist-util-remove": "^1.0.1",
     "unist-util-visit": "^1.4.0",
-    "veui": "^2.0.0-beta.11",
-    "veui-loader": "^2.0.0-beta.11",
-    "veui-theme-dls": "^2.0.0-beta.11",
-    "veui-theme-dls-icons": "^2.0.0-beta.11",
+    "veui": "^2.0.0-beta.16",
+    "veui-loader": "^2.0.0-beta.16",
+    "veui-theme-dls": "^2.0.0-beta.16",
+    "veui-theme-dls-icons": "^2.0.0-beta.16",
     "vue-awesome": "^4.1.0",
     "vue-i18n": "^8.16.0",
     "vue-windows": "^0.2.4"