meixioacomponent 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -43,10 +43,12 @@
43
43
  >
44
44
  <el-table
45
45
  ref="elTable"
46
+ :row-key="rowKey"
46
47
  :stripe="stripe"
47
48
  :data="tableData"
48
49
  :border="borderColu"
49
50
  :height="tableHeight"
51
+ :tree-props="treeProps"
50
52
  :class="{
51
53
  'no-row-bordel': !borderRow,
52
54
  }"
@@ -288,6 +290,21 @@ export default {
288
290
  },
289
291
  },
290
292
  props: {
293
+ // 当加载树形结构的表格时必须传入该值
294
+ rowKey: {
295
+ type: String,
296
+ },
297
+ // 树形结构传入的判断子节点与最后一级
298
+ treeProps: {
299
+ type: Object,
300
+ default: () => {
301
+ return {
302
+ children: "children",
303
+ hasChildren: "hasChildren",
304
+ };
305
+ },
306
+ },
307
+
291
308
  // 网络请求
292
309
  httpRequire: {
293
310
  type: Function,