@94ai/nf-table 3.3.42 → 3.3.45

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.
@@ -6863,7 +6863,13 @@ var _sfc_render = function render3() {
6863
6863
  "height": _vm.elTableHeight
6864
6864
  }
6865
6865
  }, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
6866
- return [_vm.isShow(column) ? [column.type ? _c("el-table-column", _vm._b({
6866
+ return [_vm.isShow(column) ? [column.type ? [column.type !== "expand" ? _c("el-table-column", _vm._b({
6867
+ key: column.key || column.prop || column.type,
6868
+ attrs: {
6869
+ "type": column.type,
6870
+ "label": column.label
6871
+ }
6872
+ }, "el-table-column", column.attr, false)) : _c("el-table-column", _vm._b({
6867
6873
  key: column.key || column.prop || column.type,
6868
6874
  attrs: {
6869
6875
  "type": column.type,
@@ -6872,13 +6878,13 @@ var _sfc_render = function render3() {
6872
6878
  scopedSlots: _vm._u([{
6873
6879
  key: "default",
6874
6880
  fn: function(scope) {
6875
- return column.type === "expand" ? [column.slot ? _vm._t(column.slot, null, {
6881
+ return column.slot ? [_vm._t(column.slot, null, {
6876
6882
  "row": scope.row,
6877
6883
  "index": scope.$index
6878
- }) : _vm._e()] : void 0;
6884
+ })] : void 0;
6879
6885
  }
6880
6886
  }], null, true)
6881
- }, "el-table-column", column.attr, false)) : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6887
+ }, "el-table-column", column.attr, false))] : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6882
6888
  key: column.key || column.prop,
6883
6889
  attrs: {
6884
6890
  "prop": column.prop,
@@ -6861,7 +6861,13 @@ var _sfc_render = function render3() {
6861
6861
  "height": _vm.elTableHeight
6862
6862
  }
6863
6863
  }, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
6864
- return [_vm.isShow(column) ? [column.type ? _c("el-table-column", _vm._b({
6864
+ return [_vm.isShow(column) ? [column.type ? [column.type !== "expand" ? _c("el-table-column", _vm._b({
6865
+ key: column.key || column.prop || column.type,
6866
+ attrs: {
6867
+ "type": column.type,
6868
+ "label": column.label
6869
+ }
6870
+ }, "el-table-column", column.attr, false)) : _c("el-table-column", _vm._b({
6865
6871
  key: column.key || column.prop || column.type,
6866
6872
  attrs: {
6867
6873
  "type": column.type,
@@ -6870,13 +6876,13 @@ var _sfc_render = function render3() {
6870
6876
  scopedSlots: _vm._u([{
6871
6877
  key: "default",
6872
6878
  fn: function(scope) {
6873
- return column.type === "expand" ? [column.slot ? _vm._t(column.slot, null, {
6879
+ return column.slot ? [_vm._t(column.slot, null, {
6874
6880
  "row": scope.row,
6875
6881
  "index": scope.$index
6876
- }) : _vm._e()] : void 0;
6882
+ })] : void 0;
6877
6883
  }
6878
6884
  }], null, true)
6879
- }, "el-table-column", column.attr, false)) : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6885
+ }, "el-table-column", column.attr, false))] : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6880
6886
  key: column.key || column.prop,
6881
6887
  attrs: {
6882
6888
  "prop": column.prop,
@@ -49,17 +49,27 @@
49
49
  >
50
50
  <template v-for="column in tableColumns">
51
51
  <template v-if="isShow(column)">
52
- <el-table-column
53
- v-if="column.type"
54
- :key="column.key || column.prop || column.type"
55
- :type="column.type"
56
- :label="column.label"
57
- v-bind="column.attr"
58
- >
59
- <template slot-scope="scope" v-if="column.type==='expand'">
60
- <slot v-if="column.slot" :name="column.slot" :row="scope.row" :index="scope.$index" />
61
- </template>
62
- </el-table-column>
52
+ <template v-if="column.type">
53
+ <el-table-column
54
+ v-if="column.type!=='expand'"
55
+ :key="column.key || column.prop || column.type"
56
+ :type="column.type"
57
+ :label="column.label"
58
+ v-bind="column.attr"
59
+ >
60
+ </el-table-column>
61
+ <el-table-column
62
+ v-else
63
+ :key="column.key || column.prop || column.type"
64
+ :type="column.type"
65
+ :label="column.label"
66
+ v-bind="column.attr"
67
+ >
68
+ <template slot-scope="scope" v-if="column.slot">
69
+ <slot :name="column.slot" :row="scope.row" :index="scope.$index" />
70
+ </template>
71
+ </el-table-column>
72
+ </template>
63
73
  <template v-else>
64
74
  <el-table-column
65
75
  v-if="column.attr&&column.attr.formatter"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.3.42",
3
+ "version": "3.3.45",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,12 +14,12 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^3.3.42",
18
- "@94ai/nf-button": "^3.3.42",
19
- "@94ai/nf-drawer": "^3.3.42",
20
- "@94ai/nf-message": "^3.3.42",
21
- "@94ai/nf-search-form": "^3.3.42",
22
- "@94ai/nf-theme-chalk": "^3.3.42",
17
+ "@94ai/common-utils": "^3.3.45",
18
+ "@94ai/nf-button": "^3.3.45",
19
+ "@94ai/nf-drawer": "^3.3.45",
20
+ "@94ai/nf-message": "^3.3.45",
21
+ "@94ai/nf-search-form": "^3.3.45",
22
+ "@94ai/nf-theme-chalk": "^3.3.45",
23
23
  "idb-keyval": "^6.2.1",
24
24
  "vue-demi": "^0.14.5",
25
25
  "vuedraggable": "^2.24.3"
@@ -37,5 +37,5 @@
37
37
  "types": "lib/index.d.ts",
38
38
  "main": "lib/nf-table.cjs.js",
39
39
  "module": "lib/nf-table.esm-bundler.js",
40
- "gitHead": "23e6c5029f8afcae7d837fa6d73b26f1cbc78471"
40
+ "gitHead": "dff35e1dac073742a91b656449c9d4ed833a6258"
41
41
  }