@94ai/nf-table 8.0.5 → 8.0.8
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 +2244 -2244
- package/lib/nf-table.cjs.js +42 -43
- package/lib/nf-table.esm-bundler.js +42 -43
- package/lib/nf-table.vue.d.ts +632 -632
- package/lib/style/css.d.ts +1 -1
- package/lib/style/index.d.ts +1 -1
- package/lib/types.d.ts +281 -281
- package/package/nf-table.vue +42 -42
- package/package/types.ts +2 -2
- package/package.json +9 -9
package/lib/nf-table.cjs.js
CHANGED
|
@@ -6545,20 +6545,19 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6545
6545
|
}
|
|
6546
6546
|
};
|
|
6547
6547
|
const getMinWidth = (column) => {
|
|
6548
|
-
|
|
6549
|
-
if ((
|
|
6550
|
-
const value = Number(
|
|
6548
|
+
const columnLabel = commonUtils.resolveValue(column.label);
|
|
6549
|
+
if ((columnLabel == null ? void 0 : columnLabel.indexOf("$$")) === 0) {
|
|
6550
|
+
const value = Number(columnLabel.replace("$$", ""));
|
|
6551
6551
|
if (!Number.isNaN(value) && value) {
|
|
6552
6552
|
return value;
|
|
6553
6553
|
}
|
|
6554
6554
|
}
|
|
6555
6555
|
const fs = 14;
|
|
6556
|
-
const
|
|
6557
|
-
const char = label.match(/[\u2E80-\u9FFF]/g);
|
|
6556
|
+
const char = columnLabel.match(/[\u2E80-\u9FFF]/g);
|
|
6558
6557
|
const charLen = char ? char.length : 0;
|
|
6559
|
-
const num =
|
|
6558
|
+
const num = columnLabel.match(/\d|\./g);
|
|
6560
6559
|
const numLen = num ? num.length : 0;
|
|
6561
|
-
const otherLen =
|
|
6560
|
+
const otherLen = columnLabel.length - charLen - numLen;
|
|
6562
6561
|
return fs * (charLen * 1 + numLen * 0.7 + otherLen * 0.58) + 20 + (column.sortable ? 24 : 0);
|
|
6563
6562
|
};
|
|
6564
6563
|
const tableColumns = vueDemi.ref([]);
|
|
@@ -6586,7 +6585,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6586
6585
|
delete item.attr.label;
|
|
6587
6586
|
item._index = index2;
|
|
6588
6587
|
vueDemi.set(item, "initHidden", item.initHidden);
|
|
6589
|
-
vueDemi.set(item, "destory",
|
|
6588
|
+
vueDemi.set(item, "destory", item.destory);
|
|
6590
6589
|
item.__index = index2;
|
|
6591
6590
|
vueDemi.set(item, "optionsTag", {});
|
|
6592
6591
|
if (item.getOptions) {
|
|
@@ -7176,14 +7175,14 @@ var _sfc_render = function render3() {
|
|
|
7176
7175
|
attrs: {
|
|
7177
7176
|
"type": column.type,
|
|
7178
7177
|
"prop": column.prop,
|
|
7179
|
-
"label": column.label
|
|
7178
|
+
"label": _vm.resolveValue(column.label)
|
|
7180
7179
|
}
|
|
7181
7180
|
}, "el-table-column", column.attr, false)) : _c("el-table-column", _vm._b({
|
|
7182
7181
|
key: column.key || column.prop || column.type,
|
|
7183
7182
|
attrs: {
|
|
7184
7183
|
"type": column.type,
|
|
7185
7184
|
"prop": column.prop,
|
|
7186
|
-
"label": column.label
|
|
7185
|
+
"label": _vm.resolveValue(column.label)
|
|
7187
7186
|
},
|
|
7188
7187
|
scopedSlots: _vm._u([{
|
|
7189
7188
|
key: "default",
|
|
@@ -7199,7 +7198,7 @@ var _sfc_render = function render3() {
|
|
|
7199
7198
|
attrs: {
|
|
7200
7199
|
"type": column.type,
|
|
7201
7200
|
"prop": column.prop,
|
|
7202
|
-
"label": column.label
|
|
7201
|
+
"label": _vm.resolveValue(column.label)
|
|
7203
7202
|
},
|
|
7204
7203
|
scopedSlots: _vm._u([{
|
|
7205
7204
|
key: "header",
|
|
@@ -7209,7 +7208,7 @@ var _sfc_render = function render3() {
|
|
|
7209
7208
|
staticStyle: {
|
|
7210
7209
|
"white-space": "nowrap"
|
|
7211
7210
|
}
|
|
7212
|
-
}, [_vm._v(" " + _vm._s(column.label) + " ")]), _c("el-tooltip", {
|
|
7211
|
+
}, [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")]), _c("el-tooltip", {
|
|
7213
7212
|
attrs: {
|
|
7214
7213
|
"popper-class": "actionTooltipRef",
|
|
7215
7214
|
"placement": "top",
|
|
@@ -7241,10 +7240,10 @@ var _sfc_render = function render3() {
|
|
|
7241
7240
|
staticStyle: {
|
|
7242
7241
|
"white-space": "nowrap"
|
|
7243
7242
|
}
|
|
7244
|
-
}, [_vm._v(" " + _vm._s(column.label) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
|
|
7243
|
+
}, [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
|
|
7245
7244
|
"$index": scope.$index,
|
|
7246
7245
|
"column": scope.column
|
|
7247
|
-
})] : _c("span", [_vm._v(" " + _vm._s(column.label) + " ")])];
|
|
7246
|
+
})] : _c("span", [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")])];
|
|
7248
7247
|
}
|
|
7249
7248
|
}, {
|
|
7250
7249
|
key: "default",
|
|
@@ -7266,20 +7265,20 @@ var _sfc_render = function render3() {
|
|
|
7266
7265
|
}, [_vm._l(_vm.getOperationListLocal(column, scope), function(item, index2) {
|
|
7267
7266
|
return [!_vm.resolveValue(item.destroy, scope.row, scope) ? _c("nf-button", _vm._g({
|
|
7268
7267
|
key: item.key || index2,
|
|
7269
|
-
class: item.class,
|
|
7270
|
-
style: item.style,
|
|
7268
|
+
class: _vm.resolveValue(item.class, scope.row, scope),
|
|
7269
|
+
style: _vm.resolveValue(item.style, scope.row, scope),
|
|
7271
7270
|
attrs: {
|
|
7272
|
-
"size": item.size || "mini",
|
|
7273
|
-
"type": _vm.resolveValue(item.type || "primary", scope.row, scope),
|
|
7274
|
-
"text": item.text
|
|
7271
|
+
"size": _vm.resolveValue(item.size || "mini", scope.row, scope),
|
|
7272
|
+
"type": _vm.resolveValue(item.type || "primary", scope.row, scope, scope.row, scope),
|
|
7273
|
+
"text": _vm.resolveValue(item.text === void 0 ? true : item.text, scope.row, scope),
|
|
7275
7274
|
"disabled": _vm.resolveValue(item.disabled, scope.row, scope),
|
|
7276
7275
|
"loading": _vm.resolveValue(item.loading, scope.row, scope),
|
|
7277
|
-
"plain": item.plain,
|
|
7278
|
-
"icon": item.icon,
|
|
7279
|
-
"round": item.round,
|
|
7280
|
-
"circle": item.circle
|
|
7276
|
+
"plain": _vm.resolveValue(item.plain, scope.row, scope),
|
|
7277
|
+
"icon": _vm.resolveValue(item.icon, scope.row, scope),
|
|
7278
|
+
"round": _vm.resolveValue(item.round, scope.row, scope),
|
|
7279
|
+
"circle": _vm.resolveValue(item.circle, scope.row, scope)
|
|
7281
7280
|
}
|
|
7282
|
-
}, _vm.eventsOperationListBtns(item, scope)), [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
7281
|
+
}, _vm.eventsOperationListBtns(item, scope)), [_vm._v(_vm._s(_vm.resolveValue(item.name, scope.row, scope)) + " ")]) : _vm._e()];
|
|
7283
7282
|
})], 2) : ((_a2 = column.attr) == null ? void 0 : _a2.formatter) ? _c("span", [_vm._v(" " + _vm._s(column.attr.formatter(scope.row, column, scope.row[column.prop], scope.$index)) + " ")]) : column.optionsEnum ? [column.optionsTag[scope.row[column.prop]] ? _c("nf-tag", {
|
|
7284
7283
|
attrs: {
|
|
7285
7284
|
"type": column.optionsTag[scope.row[column.prop]],
|
|
@@ -7311,22 +7310,22 @@ var _sfc_render = function render3() {
|
|
|
7311
7310
|
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j;
|
|
7312
7311
|
return [item.element === "el-button" ? _c("nf-button", _vm._g({
|
|
7313
7312
|
key: item.key || index2,
|
|
7314
|
-
class: item.class,
|
|
7313
|
+
class: _vm.resolveValue(item.class),
|
|
7315
7314
|
style: _vm.getActionBarItemStyle(item, {
|
|
7316
7315
|
marginLeft: "0px"
|
|
7317
7316
|
}),
|
|
7318
7317
|
attrs: {
|
|
7319
|
-
"size": item.size || "mini",
|
|
7320
|
-
"type": item.type || "text",
|
|
7321
|
-
"text": item.text
|
|
7318
|
+
"size": _vm.resolveValue(item.size || "mini"),
|
|
7319
|
+
"type": _vm.resolveValue(item.type || "text"),
|
|
7320
|
+
"text": _vm.resolveValue(item.text === void 0 ? true : item.text),
|
|
7322
7321
|
"disabled": _vm.resolveValue(item.disabled),
|
|
7323
7322
|
"loading": _vm.resolveValue(item.loading),
|
|
7324
|
-
"plain": item.plain,
|
|
7325
|
-
"icon": item.icon,
|
|
7326
|
-
"round": item.round,
|
|
7327
|
-
"circle": item.circle
|
|
7323
|
+
"plain": _vm.resolveValue(item.plain),
|
|
7324
|
+
"icon": _vm.resolveValue(item.icon),
|
|
7325
|
+
"round": _vm.resolveValue(item.round),
|
|
7326
|
+
"circle": _vm.resolveValue(item.circle)
|
|
7328
7327
|
}
|
|
7329
|
-
}, item.events), [_vm._v(_vm._s(item.value) + " ")]) : _vm._e(), item.element === "el-checkbox" ? _c("el-checkbox", _vm._g({
|
|
7328
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.value)) + " ")]) : _vm._e(), item.element === "el-checkbox" ? _c("el-checkbox", _vm._g({
|
|
7330
7329
|
key: item.key || index2,
|
|
7331
7330
|
class: item.class,
|
|
7332
7331
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7348,7 +7347,7 @@ var _sfc_render = function render3() {
|
|
|
7348
7347
|
},
|
|
7349
7348
|
expression: "item.value"
|
|
7350
7349
|
}
|
|
7351
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-checkbox-group" ? _c("el-checkbox-group", _vm._g({
|
|
7350
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-checkbox-group" ? _c("el-checkbox-group", _vm._g({
|
|
7352
7351
|
key: item.key || index2,
|
|
7353
7352
|
class: item.class,
|
|
7354
7353
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7396,7 +7395,7 @@ var _sfc_render = function render3() {
|
|
|
7396
7395
|
},
|
|
7397
7396
|
expression: "itemChildren.value"
|
|
7398
7397
|
}
|
|
7399
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), itemChildren.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7398
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), itemChildren.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7400
7399
|
key: itemChildren.key || j,
|
|
7401
7400
|
class: itemChildren.class,
|
|
7402
7401
|
style: {
|
|
@@ -7421,7 +7420,7 @@ var _sfc_render = function render3() {
|
|
|
7421
7420
|
},
|
|
7422
7421
|
expression: "itemChildren.value"
|
|
7423
7422
|
}
|
|
7424
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e()];
|
|
7423
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e()];
|
|
7425
7424
|
})] : _vm._e()], 2) : _vm._e(), item.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7426
7425
|
key: item.key || index2,
|
|
7427
7426
|
class: item.class,
|
|
@@ -7444,7 +7443,7 @@ var _sfc_render = function render3() {
|
|
|
7444
7443
|
},
|
|
7445
7444
|
expression: "item.value"
|
|
7446
7445
|
}
|
|
7447
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-radio" ? _c("el-radio", _vm._g({
|
|
7446
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-radio" ? _c("el-radio", _vm._g({
|
|
7448
7447
|
key: item.key || index2,
|
|
7449
7448
|
class: item.class,
|
|
7450
7449
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7462,7 +7461,7 @@ var _sfc_render = function render3() {
|
|
|
7462
7461
|
},
|
|
7463
7462
|
expression: "item.value"
|
|
7464
7463
|
}
|
|
7465
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-radio-group" ? _c("el-radio-group", _vm._g({
|
|
7464
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-radio-group" ? _c("el-radio-group", _vm._g({
|
|
7466
7465
|
key: item.key || index2,
|
|
7467
7466
|
class: item.class,
|
|
7468
7467
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7501,7 +7500,7 @@ var _sfc_render = function render3() {
|
|
|
7501
7500
|
},
|
|
7502
7501
|
expression: "itemChildren.value"
|
|
7503
7502
|
}
|
|
7504
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), itemChildren.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7503
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), itemChildren.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7505
7504
|
key: itemChildren.key || j,
|
|
7506
7505
|
class: itemChildren.class,
|
|
7507
7506
|
style: {
|
|
@@ -7522,7 +7521,7 @@ var _sfc_render = function render3() {
|
|
|
7522
7521
|
},
|
|
7523
7522
|
expression: "itemChildren.value"
|
|
7524
7523
|
}
|
|
7525
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e()];
|
|
7524
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e()];
|
|
7526
7525
|
})] : _vm._e()], 2) : _vm._e(), item.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7527
7526
|
key: item.key || index2,
|
|
7528
7527
|
class: item.class,
|
|
@@ -7541,7 +7540,7 @@ var _sfc_render = function render3() {
|
|
|
7541
7540
|
},
|
|
7542
7541
|
expression: "item.value"
|
|
7543
7542
|
}
|
|
7544
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-input" ? _c("el-input", _vm._g({
|
|
7543
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-input" ? _c("el-input", _vm._g({
|
|
7545
7544
|
key: item.key || index2,
|
|
7546
7545
|
class: item.class,
|
|
7547
7546
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7649,7 +7648,7 @@ var _sfc_render = function render3() {
|
|
|
7649
7648
|
},
|
|
7650
7649
|
expression: "item.value"
|
|
7651
7650
|
}
|
|
7652
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-input-number" ? _c("el-input-number", _vm._g({
|
|
7651
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-input-number" ? _c("el-input-number", _vm._g({
|
|
7653
7652
|
key: item.key || index2,
|
|
7654
7653
|
class: item.class,
|
|
7655
7654
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7678,7 +7677,7 @@ var _sfc_render = function render3() {
|
|
|
7678
7677
|
key: item.key || index2,
|
|
7679
7678
|
class: item.class,
|
|
7680
7679
|
style: _vm.getActionBarItemStyle(item)
|
|
7681
|
-
}, "span", item.attr, false), item.events), [_vm._v(" " + _vm._s(item.value) + " ")]) : _vm._e()];
|
|
7680
|
+
}, "span", item.attr, false), item.events), [_vm._v(" " + _vm._s(_vm.resolveValue(item.value)) + " ")]) : _vm._e()];
|
|
7682
7681
|
})] : _vm._e()];
|
|
7683
7682
|
}), _vm._t("pagination", function() {
|
|
7684
7683
|
return [_vm.renderPage ? _c("el-pagination", _vm._g(_vm._b({
|
|
@@ -6543,20 +6543,19 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6543
6543
|
}
|
|
6544
6544
|
};
|
|
6545
6545
|
const getMinWidth = (column) => {
|
|
6546
|
-
|
|
6547
|
-
if ((
|
|
6548
|
-
const value = Number(
|
|
6546
|
+
const columnLabel = resolveValue(column.label);
|
|
6547
|
+
if ((columnLabel == null ? void 0 : columnLabel.indexOf("$$")) === 0) {
|
|
6548
|
+
const value = Number(columnLabel.replace("$$", ""));
|
|
6549
6549
|
if (!Number.isNaN(value) && value) {
|
|
6550
6550
|
return value;
|
|
6551
6551
|
}
|
|
6552
6552
|
}
|
|
6553
6553
|
const fs = 14;
|
|
6554
|
-
const
|
|
6555
|
-
const char = label.match(/[\u2E80-\u9FFF]/g);
|
|
6554
|
+
const char = columnLabel.match(/[\u2E80-\u9FFF]/g);
|
|
6556
6555
|
const charLen = char ? char.length : 0;
|
|
6557
|
-
const num =
|
|
6556
|
+
const num = columnLabel.match(/\d|\./g);
|
|
6558
6557
|
const numLen = num ? num.length : 0;
|
|
6559
|
-
const otherLen =
|
|
6558
|
+
const otherLen = columnLabel.length - charLen - numLen;
|
|
6560
6559
|
return fs * (charLen * 1 + numLen * 0.7 + otherLen * 0.58) + 20 + (column.sortable ? 24 : 0);
|
|
6561
6560
|
};
|
|
6562
6561
|
const tableColumns = ref([]);
|
|
@@ -6584,7 +6583,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6584
6583
|
delete item.attr.label;
|
|
6585
6584
|
item._index = index2;
|
|
6586
6585
|
set(item, "initHidden", item.initHidden);
|
|
6587
|
-
set(item, "destory",
|
|
6586
|
+
set(item, "destory", item.destory);
|
|
6588
6587
|
item.__index = index2;
|
|
6589
6588
|
set(item, "optionsTag", {});
|
|
6590
6589
|
if (item.getOptions) {
|
|
@@ -7174,14 +7173,14 @@ var _sfc_render = function render3() {
|
|
|
7174
7173
|
attrs: {
|
|
7175
7174
|
"type": column.type,
|
|
7176
7175
|
"prop": column.prop,
|
|
7177
|
-
"label": column.label
|
|
7176
|
+
"label": _vm.resolveValue(column.label)
|
|
7178
7177
|
}
|
|
7179
7178
|
}, "el-table-column", column.attr, false)) : _c("el-table-column", _vm._b({
|
|
7180
7179
|
key: column.key || column.prop || column.type,
|
|
7181
7180
|
attrs: {
|
|
7182
7181
|
"type": column.type,
|
|
7183
7182
|
"prop": column.prop,
|
|
7184
|
-
"label": column.label
|
|
7183
|
+
"label": _vm.resolveValue(column.label)
|
|
7185
7184
|
},
|
|
7186
7185
|
scopedSlots: _vm._u([{
|
|
7187
7186
|
key: "default",
|
|
@@ -7197,7 +7196,7 @@ var _sfc_render = function render3() {
|
|
|
7197
7196
|
attrs: {
|
|
7198
7197
|
"type": column.type,
|
|
7199
7198
|
"prop": column.prop,
|
|
7200
|
-
"label": column.label
|
|
7199
|
+
"label": _vm.resolveValue(column.label)
|
|
7201
7200
|
},
|
|
7202
7201
|
scopedSlots: _vm._u([{
|
|
7203
7202
|
key: "header",
|
|
@@ -7207,7 +7206,7 @@ var _sfc_render = function render3() {
|
|
|
7207
7206
|
staticStyle: {
|
|
7208
7207
|
"white-space": "nowrap"
|
|
7209
7208
|
}
|
|
7210
|
-
}, [_vm._v(" " + _vm._s(column.label) + " ")]), _c("el-tooltip", {
|
|
7209
|
+
}, [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")]), _c("el-tooltip", {
|
|
7211
7210
|
attrs: {
|
|
7212
7211
|
"popper-class": "actionTooltipRef",
|
|
7213
7212
|
"placement": "top",
|
|
@@ -7239,10 +7238,10 @@ var _sfc_render = function render3() {
|
|
|
7239
7238
|
staticStyle: {
|
|
7240
7239
|
"white-space": "nowrap"
|
|
7241
7240
|
}
|
|
7242
|
-
}, [_vm._v(" " + _vm._s(column.label) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
|
|
7241
|
+
}, [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")])])] : column.headerSlot ? [_vm._t(column.headerSlot, null, {
|
|
7243
7242
|
"$index": scope.$index,
|
|
7244
7243
|
"column": scope.column
|
|
7245
|
-
})] : _c("span", [_vm._v(" " + _vm._s(column.label) + " ")])];
|
|
7244
|
+
})] : _c("span", [_vm._v(" " + _vm._s(_vm.resolveValue(column.label)) + " ")])];
|
|
7246
7245
|
}
|
|
7247
7246
|
}, {
|
|
7248
7247
|
key: "default",
|
|
@@ -7264,20 +7263,20 @@ var _sfc_render = function render3() {
|
|
|
7264
7263
|
}, [_vm._l(_vm.getOperationListLocal(column, scope), function(item, index2) {
|
|
7265
7264
|
return [!_vm.resolveValue(item.destroy, scope.row, scope) ? _c("nf-button", _vm._g({
|
|
7266
7265
|
key: item.key || index2,
|
|
7267
|
-
class: item.class,
|
|
7268
|
-
style: item.style,
|
|
7266
|
+
class: _vm.resolveValue(item.class, scope.row, scope),
|
|
7267
|
+
style: _vm.resolveValue(item.style, scope.row, scope),
|
|
7269
7268
|
attrs: {
|
|
7270
|
-
"size": item.size || "mini",
|
|
7271
|
-
"type": _vm.resolveValue(item.type || "primary", scope.row, scope),
|
|
7272
|
-
"text": item.text
|
|
7269
|
+
"size": _vm.resolveValue(item.size || "mini", scope.row, scope),
|
|
7270
|
+
"type": _vm.resolveValue(item.type || "primary", scope.row, scope, scope.row, scope),
|
|
7271
|
+
"text": _vm.resolveValue(item.text === void 0 ? true : item.text, scope.row, scope),
|
|
7273
7272
|
"disabled": _vm.resolveValue(item.disabled, scope.row, scope),
|
|
7274
7273
|
"loading": _vm.resolveValue(item.loading, scope.row, scope),
|
|
7275
|
-
"plain": item.plain,
|
|
7276
|
-
"icon": item.icon,
|
|
7277
|
-
"round": item.round,
|
|
7278
|
-
"circle": item.circle
|
|
7274
|
+
"plain": _vm.resolveValue(item.plain, scope.row, scope),
|
|
7275
|
+
"icon": _vm.resolveValue(item.icon, scope.row, scope),
|
|
7276
|
+
"round": _vm.resolveValue(item.round, scope.row, scope),
|
|
7277
|
+
"circle": _vm.resolveValue(item.circle, scope.row, scope)
|
|
7279
7278
|
}
|
|
7280
|
-
}, _vm.eventsOperationListBtns(item, scope)), [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
7279
|
+
}, _vm.eventsOperationListBtns(item, scope)), [_vm._v(_vm._s(_vm.resolveValue(item.name, scope.row, scope)) + " ")]) : _vm._e()];
|
|
7281
7280
|
})], 2) : ((_a2 = column.attr) == null ? void 0 : _a2.formatter) ? _c("span", [_vm._v(" " + _vm._s(column.attr.formatter(scope.row, column, scope.row[column.prop], scope.$index)) + " ")]) : column.optionsEnum ? [column.optionsTag[scope.row[column.prop]] ? _c("nf-tag", {
|
|
7282
7281
|
attrs: {
|
|
7283
7282
|
"type": column.optionsTag[scope.row[column.prop]],
|
|
@@ -7309,22 +7308,22 @@ var _sfc_render = function render3() {
|
|
|
7309
7308
|
var _a3, _b2, _c2, _d, _e, _f, _g, _h, _i, _j;
|
|
7310
7309
|
return [item.element === "el-button" ? _c("nf-button", _vm._g({
|
|
7311
7310
|
key: item.key || index2,
|
|
7312
|
-
class: item.class,
|
|
7311
|
+
class: _vm.resolveValue(item.class),
|
|
7313
7312
|
style: _vm.getActionBarItemStyle(item, {
|
|
7314
7313
|
marginLeft: "0px"
|
|
7315
7314
|
}),
|
|
7316
7315
|
attrs: {
|
|
7317
|
-
"size": item.size || "mini",
|
|
7318
|
-
"type": item.type || "text",
|
|
7319
|
-
"text": item.text
|
|
7316
|
+
"size": _vm.resolveValue(item.size || "mini"),
|
|
7317
|
+
"type": _vm.resolveValue(item.type || "text"),
|
|
7318
|
+
"text": _vm.resolveValue(item.text === void 0 ? true : item.text),
|
|
7320
7319
|
"disabled": _vm.resolveValue(item.disabled),
|
|
7321
7320
|
"loading": _vm.resolveValue(item.loading),
|
|
7322
|
-
"plain": item.plain,
|
|
7323
|
-
"icon": item.icon,
|
|
7324
|
-
"round": item.round,
|
|
7325
|
-
"circle": item.circle
|
|
7321
|
+
"plain": _vm.resolveValue(item.plain),
|
|
7322
|
+
"icon": _vm.resolveValue(item.icon),
|
|
7323
|
+
"round": _vm.resolveValue(item.round),
|
|
7324
|
+
"circle": _vm.resolveValue(item.circle)
|
|
7326
7325
|
}
|
|
7327
|
-
}, item.events), [_vm._v(_vm._s(item.value) + " ")]) : _vm._e(), item.element === "el-checkbox" ? _c("el-checkbox", _vm._g({
|
|
7326
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.value)) + " ")]) : _vm._e(), item.element === "el-checkbox" ? _c("el-checkbox", _vm._g({
|
|
7328
7327
|
key: item.key || index2,
|
|
7329
7328
|
class: item.class,
|
|
7330
7329
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7346,7 +7345,7 @@ var _sfc_render = function render3() {
|
|
|
7346
7345
|
},
|
|
7347
7346
|
expression: "item.value"
|
|
7348
7347
|
}
|
|
7349
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-checkbox-group" ? _c("el-checkbox-group", _vm._g({
|
|
7348
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-checkbox-group" ? _c("el-checkbox-group", _vm._g({
|
|
7350
7349
|
key: item.key || index2,
|
|
7351
7350
|
class: item.class,
|
|
7352
7351
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7394,7 +7393,7 @@ var _sfc_render = function render3() {
|
|
|
7394
7393
|
},
|
|
7395
7394
|
expression: "itemChildren.value"
|
|
7396
7395
|
}
|
|
7397
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), itemChildren.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7396
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), itemChildren.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7398
7397
|
key: itemChildren.key || j,
|
|
7399
7398
|
class: itemChildren.class,
|
|
7400
7399
|
style: {
|
|
@@ -7419,7 +7418,7 @@ var _sfc_render = function render3() {
|
|
|
7419
7418
|
},
|
|
7420
7419
|
expression: "itemChildren.value"
|
|
7421
7420
|
}
|
|
7422
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e()];
|
|
7421
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e()];
|
|
7423
7422
|
})] : _vm._e()], 2) : _vm._e(), item.element === "el-checkbox-button" ? _c("el-checkbox-button", _vm._g({
|
|
7424
7423
|
key: item.key || index2,
|
|
7425
7424
|
class: item.class,
|
|
@@ -7442,7 +7441,7 @@ var _sfc_render = function render3() {
|
|
|
7442
7441
|
},
|
|
7443
7442
|
expression: "item.value"
|
|
7444
7443
|
}
|
|
7445
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-radio" ? _c("el-radio", _vm._g({
|
|
7444
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-radio" ? _c("el-radio", _vm._g({
|
|
7446
7445
|
key: item.key || index2,
|
|
7447
7446
|
class: item.class,
|
|
7448
7447
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7460,7 +7459,7 @@ var _sfc_render = function render3() {
|
|
|
7460
7459
|
},
|
|
7461
7460
|
expression: "item.value"
|
|
7462
7461
|
}
|
|
7463
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-radio-group" ? _c("el-radio-group", _vm._g({
|
|
7462
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-radio-group" ? _c("el-radio-group", _vm._g({
|
|
7464
7463
|
key: item.key || index2,
|
|
7465
7464
|
class: item.class,
|
|
7466
7465
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7499,7 +7498,7 @@ var _sfc_render = function render3() {
|
|
|
7499
7498
|
},
|
|
7500
7499
|
expression: "itemChildren.value"
|
|
7501
7500
|
}
|
|
7502
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), itemChildren.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7501
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), itemChildren.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7503
7502
|
key: itemChildren.key || j,
|
|
7504
7503
|
class: itemChildren.class,
|
|
7505
7504
|
style: {
|
|
@@ -7520,7 +7519,7 @@ var _sfc_render = function render3() {
|
|
|
7520
7519
|
},
|
|
7521
7520
|
expression: "itemChildren.value"
|
|
7522
7521
|
}
|
|
7523
|
-
}, itemChildren.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e()];
|
|
7522
|
+
}, itemChildren.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e()];
|
|
7524
7523
|
})] : _vm._e()], 2) : _vm._e(), item.element === "el-radio-button" ? _c("el-radio-button", _vm._g({
|
|
7525
7524
|
key: item.key || index2,
|
|
7526
7525
|
class: item.class,
|
|
@@ -7539,7 +7538,7 @@ var _sfc_render = function render3() {
|
|
|
7539
7538
|
},
|
|
7540
7539
|
expression: "item.value"
|
|
7541
7540
|
}
|
|
7542
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-input" ? _c("el-input", _vm._g({
|
|
7541
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-input" ? _c("el-input", _vm._g({
|
|
7543
7542
|
key: item.key || index2,
|
|
7544
7543
|
class: item.class,
|
|
7545
7544
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7647,7 +7646,7 @@ var _sfc_render = function render3() {
|
|
|
7647
7646
|
},
|
|
7648
7647
|
expression: "item.value"
|
|
7649
7648
|
}
|
|
7650
|
-
}, item.events), [_vm._v(_vm._s(item.text) + " ")]) : _vm._e(), item.element === "el-input-number" ? _c("el-input-number", _vm._g({
|
|
7649
|
+
}, item.events), [_vm._v(_vm._s(_vm.resolveValue(item.text)) + " ")]) : _vm._e(), item.element === "el-input-number" ? _c("el-input-number", _vm._g({
|
|
7651
7650
|
key: item.key || index2,
|
|
7652
7651
|
class: item.class,
|
|
7653
7652
|
style: _vm.getActionBarItemStyle(item),
|
|
@@ -7676,7 +7675,7 @@ var _sfc_render = function render3() {
|
|
|
7676
7675
|
key: item.key || index2,
|
|
7677
7676
|
class: item.class,
|
|
7678
7677
|
style: _vm.getActionBarItemStyle(item)
|
|
7679
|
-
}, "span", item.attr, false), item.events), [_vm._v(" " + _vm._s(item.value) + " ")]) : _vm._e()];
|
|
7678
|
+
}, "span", item.attr, false), item.events), [_vm._v(" " + _vm._s(_vm.resolveValue(item.value)) + " ")]) : _vm._e()];
|
|
7680
7679
|
})] : _vm._e()];
|
|
7681
7680
|
}), _vm._t("pagination", function() {
|
|
7682
7681
|
return [_vm.renderPage ? _c("el-pagination", _vm._g(_vm._b({
|