@94ai/nf-table 3.3.39 → 3.3.42

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/lib/index.d.ts CHANGED
@@ -1906,6 +1906,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1906
1906
  slot: any;
1907
1907
  }) => any>> & Partial<Record<any, (_: {
1908
1908
  slot: any;
1909
+ }) => any>> & Partial<Record<any, (_: {
1910
+ row: any;
1911
+ index: any;
1909
1912
  }) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
1910
1913
  $index: any;
1911
1914
  column: any;
@@ -6868,7 +6868,16 @@ var _sfc_render = function render3() {
6868
6868
  attrs: {
6869
6869
  "type": column.type,
6870
6870
  "label": column.label
6871
- }
6871
+ },
6872
+ scopedSlots: _vm._u([{
6873
+ key: "default",
6874
+ fn: function(scope) {
6875
+ return column.type === "expand" ? [column.slot ? _vm._t(column.slot, null, {
6876
+ "row": scope.row,
6877
+ "index": scope.$index
6878
+ }) : _vm._e()] : void 0;
6879
+ }
6880
+ }], null, true)
6872
6881
  }, "el-table-column", column.attr, false)) : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6873
6882
  key: column.key || column.prop,
6874
6883
  attrs: {
@@ -6866,7 +6866,16 @@ var _sfc_render = function render3() {
6866
6866
  attrs: {
6867
6867
  "type": column.type,
6868
6868
  "label": column.label
6869
- }
6869
+ },
6870
+ scopedSlots: _vm._u([{
6871
+ key: "default",
6872
+ fn: function(scope) {
6873
+ return column.type === "expand" ? [column.slot ? _vm._t(column.slot, null, {
6874
+ "row": scope.row,
6875
+ "index": scope.$index
6876
+ }) : _vm._e()] : void 0;
6877
+ }
6878
+ }], null, true)
6870
6879
  }, "el-table-column", column.attr, false)) : [column.attr && column.attr.formatter ? _c("el-table-column", _vm._b({
6871
6880
  key: column.key || column.prop,
6872
6881
  attrs: {
@@ -421,6 +421,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
421
421
  slot: any;
422
422
  }) => any>> & Partial<Record<any, (_: {
423
423
  slot: any;
424
+ }) => any>> & Partial<Record<any, (_: {
425
+ row: any;
426
+ index: any;
424
427
  }) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
425
428
  $index: any;
426
429
  column: any;
@@ -55,7 +55,11 @@
55
55
  :type="column.type"
56
56
  :label="column.label"
57
57
  v-bind="column.attr"
58
- />
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>
59
63
  <template v-else>
60
64
  <el-table-column
61
65
  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.39",
3
+ "version": "3.3.42",
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.39",
18
- "@94ai/nf-button": "^3.3.39",
19
- "@94ai/nf-drawer": "^3.3.39",
20
- "@94ai/nf-message": "^3.3.39",
21
- "@94ai/nf-search-form": "^3.3.39",
22
- "@94ai/nf-theme-chalk": "^3.3.39",
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",
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": "f2d868b135f9015c753c9bc01f8b6e82ef77ada9"
40
+ "gitHead": "23e6c5029f8afcae7d837fa6d73b26f1cbc78471"
41
41
  }