tenghui-ui 1.2.2 → 1.2.5
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/dist/style.css +1 -1
- package/dist/tenghui-ui.es.js +165 -39
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +5 -5
- package/dist/tenghui-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-menu[data-v-1a7163e6]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-1a7163e6]{min-width:unset}.el-submenu__title i[data-v-1a7163e6]{color:unset}.ui-tabs[data-v-e7fe9cfa]{border-bottom:1px solid #ebeef5;padding:0 10px;height:40px;background-color:#fff}.ui-tabs__item[data-v-e7fe9cfa]{float:left;height:31px;border-radius:6px 6px 0 0;border:1px solid #ebeef5;margin-top:10px;box-sizing:border-box;font-size:12px;line-height:30px;padding:0 10px;color:#c0c4cc;cursor:pointer;border-bottom-color:#fff;margin-right:1px;position:relative;transition:all .1s linear}.ui-tabs__item:hover .el-icon-error[data-v-e7fe9cfa]{opacity:1}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]{position:absolute;right:2px;top:50%;margin-top:-5px;opacity:0;transition:all .1s linear}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]:hover{color:#409effcc}.ui-tabs__item--active[data-v-e7fe9cfa]{color:#409effcc;padding-right:20px}.ui-tabs__item--active .el-icon-error[data-v-e7fe9cfa]{top:50%;right:5px;font-size:14px;margin-top:-5px;opacity:1}.el-icon-s-tools[data-v-575499bb]{font-size:20px;color:#fff;line-height:60px;margin-right:20px;cursor:pointer}[data-v-0a02be4b] .el-dialog__header{border-bottom:1px solid #ededed}[data-v-0a02be4b] .el-dialog__header .el-dialog__title{font-size:16px}[data-v-0a02be4b] .el-dialog__footer{border-top:1px solid #ededed}[data-v-0a02be4b] .el-dialog__body .el-form .el-select,[data-v-0a02be4b] .el-dialog__body .el-form .el-input,[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number{width:240px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number .el-input__inner{text-align:left}[data-v-0a02be4b] .el-dialog__body .el-form .ui-item__main{width:100%}[data-v-0a02be4b] .el-dialog__body .el-form .el-form-item__label{font-size:12px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input--small .el-input__icon{height:32px}.ui-form__item[data-v-
|
|
1
|
+
.el-menu[data-v-1a7163e6]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-1a7163e6]{min-width:unset}.el-submenu__title i[data-v-1a7163e6]{color:unset}.ui-tabs[data-v-e7fe9cfa]{border-bottom:1px solid #ebeef5;padding:0 10px;height:40px;background-color:#fff}.ui-tabs__item[data-v-e7fe9cfa]{float:left;height:31px;border-radius:6px 6px 0 0;border:1px solid #ebeef5;margin-top:10px;box-sizing:border-box;font-size:12px;line-height:30px;padding:0 10px;color:#c0c4cc;cursor:pointer;border-bottom-color:#fff;margin-right:1px;position:relative;transition:all .1s linear}.ui-tabs__item:hover .el-icon-error[data-v-e7fe9cfa]{opacity:1}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]{position:absolute;right:2px;top:50%;margin-top:-5px;opacity:0;transition:all .1s linear}.ui-tabs__item .el-icon-error[data-v-e7fe9cfa]:hover{color:#409effcc}.ui-tabs__item--active[data-v-e7fe9cfa]{color:#409effcc;padding-right:20px}.ui-tabs__item--active .el-icon-error[data-v-e7fe9cfa]{top:50%;right:5px;font-size:14px;margin-top:-5px;opacity:1}.el-icon-s-tools[data-v-575499bb]{font-size:20px;color:#fff;line-height:60px;margin-right:20px;cursor:pointer}[data-v-0a02be4b] .el-dialog__header{border-bottom:1px solid #ededed}[data-v-0a02be4b] .el-dialog__header .el-dialog__title{font-size:16px}[data-v-0a02be4b] .el-dialog__footer{border-top:1px solid #ededed}[data-v-0a02be4b] .el-dialog__body .el-form .el-select,[data-v-0a02be4b] .el-dialog__body .el-form .el-input,[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number{width:240px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input-number .el-input__inner{text-align:left}[data-v-0a02be4b] .el-dialog__body .el-form .ui-item__main{width:100%}[data-v-0a02be4b] .el-dialog__body .el-form .el-form-item__label{font-size:12px}[data-v-0a02be4b] .el-dialog__body .el-form .el-input--small .el-input__icon{height:32px}.ui-form__item[data-v-acc84488]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-acc84488]{margin-right:10px;font-size:12px;width:70px;text-align:right}.ui-operation[data-v-3c6cb9f6]{padding:0 10px}.ui-search[data-v-07c7d454]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px}.ui-search__main[data-v-07c7d454]{display:flex}.ui-search__footer[data-v-07c7d454]{margin-top:10px}.ui-search[data-v-07c7d454] .ui-form__item{display:block}.ui-search[data-v-07c7d454] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-table[data-v-2232b3ee]{padding:0 10px}.ui-table[data-v-2232b3ee] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-2232b3ee] .el-tabs__header{margin-bottom:0;border-bottom:0 none}.ui-table[data-v-2232b3ee] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-pagination[data-v-2232b3ee]{text-align:center;padding:10px 0}.ui-image--error[data-v-4d3de6d0]{text-align:center;color:#999;background-color:#efefef}
|
package/dist/tenghui-ui.es.js
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
var render$9 = function() {
|
|
2
21
|
var _vm = this;
|
|
3
22
|
var _h = _vm.$createElement;
|
|
@@ -318,27 +337,73 @@ ComComponent$5.install = (app) => {
|
|
|
318
337
|
app.component(ComComponent$5.name, ComComponent$5);
|
|
319
338
|
};
|
|
320
339
|
const InComComponent$5 = ComComponent$5;
|
|
340
|
+
const datePickerCommonAttrs = {
|
|
341
|
+
"range-separator": "\u81F3",
|
|
342
|
+
"start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
|
|
343
|
+
"end-placeholder": "\u7ED3\u675F\u65F6\u95F4"
|
|
344
|
+
};
|
|
345
|
+
const datetimerangeDefaultAttrs = __spreadProps(__spreadValues({}, datePickerCommonAttrs), {
|
|
346
|
+
type: "datetimerange",
|
|
347
|
+
"value-format": "yyyy-MM-dd hh:mm:ss",
|
|
348
|
+
format: "yyyy-MM-dd hh:mm:ss"
|
|
349
|
+
});
|
|
350
|
+
const daterangeDefaultAttrs = __spreadProps(__spreadValues({}, datePickerCommonAttrs), {
|
|
351
|
+
type: "daterange",
|
|
352
|
+
"value-format": "yyyy-MM-dd",
|
|
353
|
+
format: "yyyy-MM-dd"
|
|
354
|
+
});
|
|
355
|
+
const defaultAttrsMap = {
|
|
356
|
+
input: {
|
|
357
|
+
size: "small"
|
|
358
|
+
},
|
|
359
|
+
select: {
|
|
360
|
+
size: "small",
|
|
361
|
+
clearable: true
|
|
362
|
+
},
|
|
363
|
+
textarea: {
|
|
364
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
365
|
+
size: "small",
|
|
366
|
+
rows: 4
|
|
367
|
+
},
|
|
368
|
+
"input-number": {
|
|
369
|
+
"controls-position": "right",
|
|
370
|
+
size: "small"
|
|
371
|
+
},
|
|
372
|
+
cascader: {
|
|
373
|
+
size: "small"
|
|
374
|
+
},
|
|
375
|
+
daterange: daterangeDefaultAttrs,
|
|
376
|
+
datetimerange: datetimerangeDefaultAttrs
|
|
377
|
+
};
|
|
321
378
|
var render$4 = function() {
|
|
322
379
|
var _vm = this;
|
|
323
380
|
var _h = _vm.$createElement;
|
|
324
381
|
var _c = _vm._self._c || _h;
|
|
325
|
-
return _c("div", { staticClass: "ui-form__item" }, [_c("div", [_vm._t("label", [_vm.label ? _c("div", { staticClass: "ui-item__label" }, [_c("span", [_vm._v(_vm._s(_vm.label))])]) : _vm._e()])], 2), _c("div", { staticClass: "ui-item__main" }, [_vm.type === "input" ? [_c("el-input", {
|
|
382
|
+
return _c("div", { staticClass: "ui-form__item" }, [_c("div", [_vm._t("label", [_vm.label ? _c("div", { staticClass: "ui-item__label" }, [_c("span", [_vm._v(_vm._s(_vm.label))])]) : _vm._e()])], 2), _c("div", { staticClass: "ui-item__main" }, [_vm.type === "input" ? [_c("el-input", _vm._g(_vm._b({ ref: _vm.type, scopedSlots: _vm._u([_vm._l(_vm.getComponentSlots(_vm.$slots), function(item, key) {
|
|
383
|
+
return { key, fn: function() {
|
|
384
|
+
return [_vm._t(key)];
|
|
385
|
+
}, proxy: true };
|
|
386
|
+
})], null, true), model: { value: _vm.modelForm, callback: function($$v) {
|
|
326
387
|
_vm.modelForm = $$v;
|
|
327
|
-
}, expression: "modelForm" } })] : _vm.type === "select" ? [_c("el-select",
|
|
388
|
+
}, expression: "modelForm" } }, "el-input", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners))] : _vm.type === "select" ? [_c("el-select", _vm._g(_vm._b({ ref: _vm.type, attrs: { "filterable": "" }, scopedSlots: _vm._u([_vm._l(_vm.getComponentSlots(_vm.$slots), function(item, key) {
|
|
389
|
+
return { key, fn: function() {
|
|
390
|
+
return [_vm._t(key)];
|
|
391
|
+
}, proxy: true };
|
|
392
|
+
})], null, true), model: { value: _vm.modelForm, callback: function($$v) {
|
|
328
393
|
_vm.modelForm = $$v;
|
|
329
|
-
}, expression: "modelForm" } }, _vm._l(_vm.selectOption, function(item) {
|
|
394
|
+
}, expression: "modelForm" } }, "el-select", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners), _vm._l(_vm.selectOption, function(item) {
|
|
330
395
|
return _c("el-option", { key: item.value, attrs: { "value": item.value.toString(), "label": item.label } });
|
|
331
|
-
}), 1)] : _vm.type === "textarea" ? [_c("el-input", {
|
|
396
|
+
}), 1)] : _vm.type === "textarea" ? [_c("el-input", _vm._g(_vm._b({ ref: _vm.type, attrs: { "type": "textarea" }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
332
397
|
_vm.modelForm = $$v;
|
|
333
|
-
}, expression: "modelForm" } })] : _vm.type === "input-number" ? [_c("el-input-number", {
|
|
398
|
+
}, expression: "modelForm" } }, "el-input", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners))] : _vm.type === "input-number" ? [_c("el-input-number", _vm._g(_vm._b({ ref: _vm.type, model: { value: _vm.modelForm, callback: function($$v) {
|
|
334
399
|
_vm.modelForm = $$v;
|
|
335
|
-
}, expression: "modelForm" } })] : _vm.type === "cascader" ? [_c("el-cascader", {
|
|
400
|
+
}, expression: "modelForm" } }, "el-input-number", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "cascader" ? [_c("el-cascader", _vm._g(_vm._b({ ref: _vm.type, attrs: { "options": _vm.options, "props": _vm.props }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
336
401
|
_vm.modelForm = $$v;
|
|
337
|
-
}, expression: "modelForm" } })] : _vm.type === "daterange" ? [_c("el-date-picker", {
|
|
402
|
+
}, expression: "modelForm" } }, "el-cascader", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "daterange" ? [_c("el-date-picker", _vm._g(_vm._b({ ref: _vm.type, model: { value: _vm.modelForm, callback: function($$v) {
|
|
338
403
|
_vm.modelForm = $$v;
|
|
339
|
-
}, expression: "modelForm" } })] : _vm.type === "datetimerange" ? [_c("el-date-picker", {
|
|
404
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "datetimerange" ? [_c("el-date-picker", _vm._g(_vm._b({ ref: _vm.type, model: { value: _vm.modelForm, callback: function($$v) {
|
|
340
405
|
_vm.modelForm = $$v;
|
|
341
|
-
}, expression: "modelForm" } })] : _vm._e()], 2)]);
|
|
406
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm._e()], 2)]);
|
|
342
407
|
};
|
|
343
408
|
var staticRenderFns$4 = [];
|
|
344
409
|
var index_vue_vue_type_style_index_0_scoped_true_lang$4 = "";
|
|
@@ -358,26 +423,10 @@ const __vue2_script$4 = {
|
|
|
358
423
|
type: String,
|
|
359
424
|
default: ""
|
|
360
425
|
},
|
|
361
|
-
readonly: {
|
|
362
|
-
type: Boolean,
|
|
363
|
-
default: false
|
|
364
|
-
},
|
|
365
|
-
placeholder: {
|
|
366
|
-
type: String,
|
|
367
|
-
default: ""
|
|
368
|
-
},
|
|
369
|
-
maxlength: {
|
|
370
|
-
type: [Array, String],
|
|
371
|
-
default: ""
|
|
372
|
-
},
|
|
373
|
-
multiple: {
|
|
374
|
-
type: Boolean,
|
|
375
|
-
default: false
|
|
376
|
-
},
|
|
377
426
|
options: {
|
|
378
427
|
type: [Object, Array],
|
|
379
428
|
default() {
|
|
380
|
-
return {
|
|
429
|
+
return { 1: "\u9009\u9879\u4E00", 2: "\u9009\u9879\u4E8C" };
|
|
381
430
|
}
|
|
382
431
|
},
|
|
383
432
|
props: {
|
|
@@ -385,10 +434,6 @@ const __vue2_script$4 = {
|
|
|
385
434
|
default() {
|
|
386
435
|
return { value: "value", label: "label" };
|
|
387
436
|
}
|
|
388
|
-
},
|
|
389
|
-
clearable: {
|
|
390
|
-
type: Boolean,
|
|
391
|
-
default: true
|
|
392
437
|
}
|
|
393
438
|
},
|
|
394
439
|
data() {
|
|
@@ -432,8 +477,33 @@ const __vue2_script$4 = {
|
|
|
432
477
|
}
|
|
433
478
|
},
|
|
434
479
|
methods: {
|
|
435
|
-
|
|
436
|
-
|
|
480
|
+
getComponentSlots(slots) {
|
|
481
|
+
const excludeSlots = ["label"];
|
|
482
|
+
const slots_ = {};
|
|
483
|
+
Object.entries(slots).forEach(([key, value]) => {
|
|
484
|
+
if (!excludeSlots.includes(key)) {
|
|
485
|
+
slots_[key] = value;
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
return slots_;
|
|
489
|
+
},
|
|
490
|
+
getCurrentInstance() {
|
|
491
|
+
return this.$refs[this.type];
|
|
492
|
+
},
|
|
493
|
+
polyfillAttrs(attrs2) {
|
|
494
|
+
return __spreadProps(__spreadValues({}, attrs2), {
|
|
495
|
+
disabled: attrs2.readonly || attrs2.disabled
|
|
496
|
+
});
|
|
497
|
+
},
|
|
498
|
+
getformItemConfig() {
|
|
499
|
+
const { formItemConfig } = this.$UICONFIG;
|
|
500
|
+
return formItemConfig || {};
|
|
501
|
+
},
|
|
502
|
+
setDefaultAttrs(attrs2) {
|
|
503
|
+
const { type } = this;
|
|
504
|
+
const formItemConfig = this.getformItemConfig();
|
|
505
|
+
const defaultAttrs = formItemConfig[type] || defaultAttrsMap[type] || {};
|
|
506
|
+
return __spreadValues(__spreadValues({}, defaultAttrs), attrs2);
|
|
437
507
|
}
|
|
438
508
|
},
|
|
439
509
|
watch: {
|
|
@@ -446,7 +516,7 @@ const __vue2_script$4 = {
|
|
|
446
516
|
}
|
|
447
517
|
};
|
|
448
518
|
const __cssModules$4 = {};
|
|
449
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
519
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "acc84488", null, null);
|
|
450
520
|
function __vue2_injectStyles$4(context) {
|
|
451
521
|
for (let o in __cssModules$4) {
|
|
452
522
|
this[o] = __cssModules$4[o];
|
|
@@ -7386,7 +7456,6 @@ Vue.component("table-preset-prop", {
|
|
|
7386
7456
|
const { field, type, params } = processPresetProp(tableProp, separator);
|
|
7387
7457
|
return presetPropMap[type](row, { field, params });
|
|
7388
7458
|
};
|
|
7389
|
-
console.log("context.$UICONFIG", context.parent.$UICONFIG);
|
|
7390
7459
|
return createElement2(...getCurrentComponent(context));
|
|
7391
7460
|
}
|
|
7392
7461
|
});
|
|
@@ -7394,7 +7463,13 @@ var render$1 = function() {
|
|
|
7394
7463
|
var _vm = this;
|
|
7395
7464
|
var _h = _vm.$createElement;
|
|
7396
7465
|
var _c = _vm._self._c || _h;
|
|
7397
|
-
return _c("div", { staticClass: "ui-table" }, [_c("div", { staticClass: "ui-table__tab" }, [_vm._t("default"
|
|
7466
|
+
return _c("div", { staticClass: "ui-table" }, [_c("div", { staticClass: "ui-table__tab" }, [_vm._t("default", [_c("el-tabs", { attrs: { "type": "card", "size": "mini" }, on: { "tab-click": function(val) {
|
|
7467
|
+
return _vm.$emit("tabChange", val);
|
|
7468
|
+
} }, model: { value: _vm.checkTab, callback: function($$v) {
|
|
7469
|
+
_vm.checkTab = $$v;
|
|
7470
|
+
}, expression: "checkTab" } }, _vm._l(_vm.tabList, function(item) {
|
|
7471
|
+
return _c("el-tab-pane", { key: item.value, attrs: { "label": item.label, "name": item.value } });
|
|
7472
|
+
}), 1)])], 2), _c("el-table", _vm._b({ ref: "myTable", attrs: { "highlightRow": "", "border": true, "data": _vm.tableData }, on: { "selection-change": _vm.handleSelectionChange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
|
|
7398
7473
|
return [!_vm.autoHeight ? _c("div", [_c("el-empty", { directives: [{ name: "show", rawName: "v-show", value: !_vm.tableData.length, expression: "!tableData.length" }], attrs: { "description": "\u6682\u65E0\u6570\u636E" } })], 1) : _vm._e()];
|
|
7399
7474
|
}, proxy: true }]) }, "el-table", _vm._d({}, [_vm.isBindHeight, _vm.tableHeight, _vm.isBindMaxHeight, _vm.maxHeight])), [_vm.showSelect ? _c("el-table-column", { attrs: { "type": "selection", "width": "35", "selectable": _vm.selectable } }) : _vm._e(), _vm._l(_vm.tableTitle, function(item, index2) {
|
|
7400
7475
|
return _c("el-table-column", { key: _vm.tableProps[index2], attrs: { "minWidth": "60px", "label": item, "prop": _vm.tableProps[index2], "width": _vm.tableProps[index2] === "index" ? "60px" : _vm.tableColsWidth[index2] || "" }, scopedSlots: _vm._u([{ key: "header", fn: function(scope) {
|
|
@@ -7449,13 +7524,24 @@ const __vue2_script$1 = {
|
|
|
7449
7524
|
height: { type: String, default: "" },
|
|
7450
7525
|
autoHeight: { type: Boolean, default: false },
|
|
7451
7526
|
maxHeight: { type: String, default: "" },
|
|
7452
|
-
heightStatic: { type: Number, default: 0 }
|
|
7527
|
+
heightStatic: { type: Number, default: 0 },
|
|
7528
|
+
tabList: {
|
|
7529
|
+
type: Array,
|
|
7530
|
+
default() {
|
|
7531
|
+
return [];
|
|
7532
|
+
}
|
|
7533
|
+
},
|
|
7534
|
+
defaultTab: {
|
|
7535
|
+
type: [String, Number],
|
|
7536
|
+
default: ""
|
|
7537
|
+
}
|
|
7453
7538
|
},
|
|
7454
7539
|
data() {
|
|
7455
7540
|
return {
|
|
7456
7541
|
isPresetProp,
|
|
7457
7542
|
pageSizes: [20, 50, 100, 200],
|
|
7458
|
-
tableHeight: ""
|
|
7543
|
+
tableHeight: "",
|
|
7544
|
+
checkTab: ""
|
|
7459
7545
|
};
|
|
7460
7546
|
},
|
|
7461
7547
|
computed: {
|
|
@@ -7503,6 +7589,9 @@ const __vue2_script$1 = {
|
|
|
7503
7589
|
this.$emit("selectionChange", val);
|
|
7504
7590
|
}
|
|
7505
7591
|
},
|
|
7592
|
+
created() {
|
|
7593
|
+
this.checkTab = this.defaultTab;
|
|
7594
|
+
},
|
|
7506
7595
|
async mounted() {
|
|
7507
7596
|
if (!this.autoHeight && !this.height) {
|
|
7508
7597
|
await this.$nextTick();
|
|
@@ -7518,7 +7607,7 @@ const __vue2_script$1 = {
|
|
|
7518
7607
|
}
|
|
7519
7608
|
};
|
|
7520
7609
|
const __cssModules$1 = {};
|
|
7521
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
7610
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "2232b3ee", null, null);
|
|
7522
7611
|
function __vue2_injectStyles$1(context) {
|
|
7523
7612
|
for (let o in __cssModules$1) {
|
|
7524
7613
|
this[o] = __cssModules$1[o];
|
|
@@ -7630,7 +7719,44 @@ const components = [
|
|
|
7630
7719
|
];
|
|
7631
7720
|
const install = (Vue2, ops = { config: {} }) => {
|
|
7632
7721
|
components.forEach((component) => Vue2.component(component.name, component));
|
|
7633
|
-
|
|
7722
|
+
const UIDefaultConfig = {
|
|
7723
|
+
tablePreset: {
|
|
7724
|
+
separator: "@",
|
|
7725
|
+
presetPropMap: {
|
|
7726
|
+
image(row, { field, params }) {
|
|
7727
|
+
const src2 = row[field].split("|");
|
|
7728
|
+
const size = params.size || 59;
|
|
7729
|
+
return ["com-image", { attrs: { src: src2, size } }];
|
|
7730
|
+
},
|
|
7731
|
+
link(row, { field, params }) {
|
|
7732
|
+
const text = row[field];
|
|
7733
|
+
let { target: target2, href, type, underline } = params;
|
|
7734
|
+
target2 = target2 || "_blank";
|
|
7735
|
+
href = row[href] || text;
|
|
7736
|
+
type = type || "primary";
|
|
7737
|
+
underline = !!underline;
|
|
7738
|
+
return [
|
|
7739
|
+
"el-link",
|
|
7740
|
+
{
|
|
7741
|
+
attrs: {
|
|
7742
|
+
target: target2,
|
|
7743
|
+
href,
|
|
7744
|
+
type,
|
|
7745
|
+
underline
|
|
7746
|
+
}
|
|
7747
|
+
},
|
|
7748
|
+
text
|
|
7749
|
+
];
|
|
7750
|
+
}
|
|
7751
|
+
}
|
|
7752
|
+
},
|
|
7753
|
+
formItemConfig: {
|
|
7754
|
+
input: {
|
|
7755
|
+
placeholder: "placeholder in config"
|
|
7756
|
+
}
|
|
7757
|
+
}
|
|
7758
|
+
};
|
|
7759
|
+
Vue2.prototype.$UICONFIG = __spreadValues(__spreadValues({}, UIDefaultConfig), ops.config);
|
|
7634
7760
|
};
|
|
7635
7761
|
const defaultConfig = {
|
|
7636
7762
|
version: "dev",
|