@94ai/nf-table 6.1.1 → 6.1.6
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/nf-table.cjs.js +8 -1
- package/lib/nf-table.esm-bundler.js +8 -1
- package/package/nf-table.vue +12 -3
- package/package.json +9 -9
package/lib/nf-table.cjs.js
CHANGED
|
@@ -7067,7 +7067,7 @@ var _sfc_render = function render3() {
|
|
|
7067
7067
|
"height": _vm.elTableHeight
|
|
7068
7068
|
}
|
|
7069
7069
|
}, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
|
|
7070
|
-
return [column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7070
|
+
return [column.type === "expand" && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7071
7071
|
key: column.key || column.prop || column.type,
|
|
7072
7072
|
attrs: {
|
|
7073
7073
|
"type": column.type,
|
|
@@ -7083,6 +7083,13 @@ var _sfc_render = function render3() {
|
|
|
7083
7083
|
})] : void 0;
|
|
7084
7084
|
}
|
|
7085
7085
|
}], null, true)
|
|
7086
|
+
}, "el-table-column", column.attr, false)) : column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7087
|
+
key: column.key || column.prop || column.type,
|
|
7088
|
+
attrs: {
|
|
7089
|
+
"type": column.type,
|
|
7090
|
+
"prop": column.prop,
|
|
7091
|
+
"label": column.label
|
|
7092
|
+
}
|
|
7086
7093
|
}, "el-table-column", column.attr, false), [column.singleHeadMutiColSlot ? _vm._t(column.singleHeadMutiColSlot) : _vm._e()], 2) : !column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7087
7094
|
key: column.key || column.prop || column.type,
|
|
7088
7095
|
attrs: {
|
|
@@ -7065,7 +7065,7 @@ var _sfc_render = function render3() {
|
|
|
7065
7065
|
"height": _vm.elTableHeight
|
|
7066
7066
|
}
|
|
7067
7067
|
}, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
|
|
7068
|
-
return [column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7068
|
+
return [column.type === "expand" && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7069
7069
|
key: column.key || column.prop || column.type,
|
|
7070
7070
|
attrs: {
|
|
7071
7071
|
"type": column.type,
|
|
@@ -7081,6 +7081,13 @@ var _sfc_render = function render3() {
|
|
|
7081
7081
|
})] : void 0;
|
|
7082
7082
|
}
|
|
7083
7083
|
}], null, true)
|
|
7084
|
+
}, "el-table-column", column.attr, false)) : column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7085
|
+
key: column.key || column.prop || column.type,
|
|
7086
|
+
attrs: {
|
|
7087
|
+
"type": column.type,
|
|
7088
|
+
"prop": column.prop,
|
|
7089
|
+
"label": column.label
|
|
7090
|
+
}
|
|
7084
7091
|
}, "el-table-column", column.attr, false), [column.singleHeadMutiColSlot ? _vm._t(column.singleHeadMutiColSlot) : _vm._e()], 2) : !column.type && _vm.isShow(column) ? _c("el-table-column", _vm._b({
|
|
7085
7092
|
key: column.key || column.prop || column.type,
|
|
7086
7093
|
attrs: {
|
package/package/nf-table.vue
CHANGED
|
@@ -57,19 +57,28 @@
|
|
|
57
57
|
<template v-for="column in tableColumns">
|
|
58
58
|
<!-- 特殊类型,如selection -->
|
|
59
59
|
<el-table-column
|
|
60
|
-
v-if="column.type && isShow(column)"
|
|
60
|
+
v-if="column.type === 'expand' && isShow(column)"
|
|
61
61
|
:key="column.key || column.prop || column.type"
|
|
62
62
|
:type="column.type"
|
|
63
63
|
:prop="column.prop"
|
|
64
64
|
:label="column.label"
|
|
65
65
|
v-bind="column.attr"
|
|
66
66
|
>
|
|
67
|
-
<!-- column套column -->
|
|
68
|
-
<slot v-if="column.singleHeadMutiColSlot" :name="column.singleHeadMutiColSlot" />
|
|
69
67
|
<template slot-scope="scope" v-if="column.slot">
|
|
70
68
|
<slot :name="column.slot" :row="scope.row" :index="scope.$index" />
|
|
71
69
|
</template>
|
|
72
70
|
</el-table-column>
|
|
71
|
+
<el-table-column
|
|
72
|
+
v-else-if="column.type && isShow(column)"
|
|
73
|
+
:key="column.key || column.prop || column.type"
|
|
74
|
+
:type="column.type"
|
|
75
|
+
:prop="column.prop"
|
|
76
|
+
:label="column.label"
|
|
77
|
+
v-bind="column.attr"
|
|
78
|
+
>
|
|
79
|
+
<!-- column套column -->
|
|
80
|
+
<slot v-if="column.singleHeadMutiColSlot" :name="column.singleHeadMutiColSlot" />
|
|
81
|
+
</el-table-column>
|
|
73
82
|
<el-table-column
|
|
74
83
|
v-else-if="!column.type && isShow(column)"
|
|
75
84
|
:key="column.key || column.prop || column.type"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-table",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^6.1.
|
|
18
|
-
"@94ai/nf-button": "^6.1.
|
|
19
|
-
"@94ai/nf-drawer": "^6.1.
|
|
20
|
-
"@94ai/nf-message": "^6.1.
|
|
21
|
-
"@94ai/nf-search-form": "^6.1.
|
|
22
|
-
"@94ai/nf-tag": "^6.1.
|
|
23
|
-
"@94ai/nf-theme-chalk": "^6.1.
|
|
17
|
+
"@94ai/common-utils": "^6.1.6",
|
|
18
|
+
"@94ai/nf-button": "^6.1.6",
|
|
19
|
+
"@94ai/nf-drawer": "^6.1.6",
|
|
20
|
+
"@94ai/nf-message": "^6.1.6",
|
|
21
|
+
"@94ai/nf-search-form": "^6.1.6",
|
|
22
|
+
"@94ai/nf-tag": "^6.1.6",
|
|
23
|
+
"@94ai/nf-theme-chalk": "^6.1.6",
|
|
24
24
|
"idb-keyval": "^6.2.1",
|
|
25
25
|
"vue-demi": "^0.14.5",
|
|
26
26
|
"vue-router": "3.6.4",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"types": "lib/index.d.ts",
|
|
40
40
|
"main": "lib/nf-table.cjs.js",
|
|
41
41
|
"module": "lib/nf-table.esm-bundler.js",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "3f508f12c6e83ba484c438df227a6c566aa492c2"
|
|
43
43
|
}
|