tenghui-ui 1.3.24 → 1.3.25
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 +51 -22
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +4 -4
- package/dist/tenghui-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ui-search__popover{padding:20px 15px 10px!important}.ui-search__popover .ui-form__item{display:block!important}.ui-search__popover .ui-form__item .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-search__popover .el-select,.ui-search__popover .el-cascader{width:100%}.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
|
+
.ui-search__popover{padding:20px 15px 10px!important}.ui-search__popover .ui-form__item{display:block!important}.ui-search__popover .ui-form__item .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-search__popover .el-select,.ui-search__popover .el-cascader{width:100%}.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-2cb0a7c0]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-2cb0a7c0]{margin-right:10px;font-size:12px;width:70px;text-align:right}[data-v-2cb0a7c0].el-select .el-select__caret:first-child:before{content:"\e6e1"}[data-v-2cb0a7c0].el-select .is-focus .el-select__caret:first-child{transform:rotate(0)}.ui-input__range[data-v-2cb0a7c0]{max-width:240px;display:flex}.ui-input__range>span[data-v-2cb0a7c0]{line-height:28px}.el-date-editor[data-v-2cb0a7c0]{width:100%!important}.inline_form[data-v-2cb0a7c0]{display:flex;margin-bottom:10px}.inline_label[data-v-2cb0a7c0]{display:inline-block;height:32px;line-height:32px;font-size:12px;text-align:right;padding-right:10px}.inline_content[data-v-2cb0a7c0]{flex:1}.ui-operation[data-v-3c6cb9f6]{padding:0 10px}.ui-search[data-v-63470b68]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px}.ui-search__main[data-v-63470b68]{display:flex}.ui-search__footer[data-v-63470b68]{margin-top:10px}.ui-search .ui-search__button--more[data-v-63470b68]{padding:0 0 4px;vertical-align:bottom;border-bottom:1px solid #409EFF;border-radius:0;margin-left:15px}.ui-search[data-v-63470b68] .ui-form__item{display:block;min-width:150px}.ui-search[data-v-63470b68] .ui-form__item--inputrange{min-width:160px}.ui-search[data-v-63470b68] .ui-form__item--hide{display:none}.ui-search[data-v-63470b68] .ui-form__item--daterange{min-width:200px}.ui-search[data-v-63470b68] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-more__select .el-col[data-v-63470b68]{margin-bottom:10px}.ui-table[data-v-f002a4ce]{padding:0 10px}.ui-table[data-v-f002a4ce] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-f002a4ce] .el-tabs__header{margin-bottom:0;border-bottom:0 none;background:#fff}.ui-table[data-v-f002a4ce] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-table[data-v-f002a4ce] .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#409eff}.ui-pagination[data-v-f002a4ce]{text-align:center;padding:10px 0}.ui-table__tab[data-v-f002a4ce]{background-color:#fff}.ui-tab--loading[data-v-f002a4ce]{padding-left:10px;height:32px;line-height:32px}.ui-tab--loading span[data-v-f002a4ce]{font-size:12px;color:#999;display:inline-block;margin-left:5px}[data-v-f002a4ce] .el-table .cell{line-height:16px}.ui-image--error[data-v-b81bcc3a]{text-align:center;color:#999;background-color:#efefef}
|
package/dist/tenghui-ui.es.js
CHANGED
|
@@ -359,7 +359,8 @@ const defaultAttrsMap = {
|
|
|
359
359
|
},
|
|
360
360
|
select: {
|
|
361
361
|
size: "small",
|
|
362
|
-
clearable: true
|
|
362
|
+
clearable: true,
|
|
363
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
363
364
|
},
|
|
364
365
|
textarea: {
|
|
365
366
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
@@ -380,13 +381,13 @@ var render$4 = function() {
|
|
|
380
381
|
var _vm = this;
|
|
381
382
|
var _h = _vm.$createElement;
|
|
382
383
|
var _c = _vm._self._c || _h;
|
|
383
|
-
return _c("div", { staticClass: "ui-form__item", class: "ui-form__item--" + _vm.type }, [_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) {
|
|
384
|
+
return _c("div", { staticClass: "ui-form__item", class: "ui-form__item--" + _vm.type }, [_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", class: _vm.inlineLabel ? "inline_form" : "" }, [_vm.type === "input" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-input", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, scopedSlots: _vm._u([_vm._l(_vm.getComponentSlots(_vm.$slots), function(item, key) {
|
|
384
385
|
return { key, fn: function() {
|
|
385
386
|
return [_vm._t(key)];
|
|
386
387
|
}, proxy: true };
|
|
387
388
|
})], null, true), model: { value: _vm.modelForm, callback: function($$v) {
|
|
388
389
|
_vm.modelForm = $$v;
|
|
389
|
-
}, 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: { "multiple": _vm.multiple, "collapseTags": _vm.collapseTags, "filterable": _vm.filterable, "remote": _vm.remote, "reserve-keyword": _vm.reserveKeyword, "
|
|
390
|
+
}, expression: "modelForm" } }, "el-input", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners))] : _vm.type === "select" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-select", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, attrs: { "multiple": _vm.multiple, "collapseTags": _vm.collapseTags, "filterable": _vm.filterable, "remote": _vm.remote, "reserve-keyword": _vm.reserveKeyword, "remote-method": _vm.remoteMethod }, scopedSlots: _vm._u([_vm._l(_vm.getComponentSlots(_vm.$slots), function(item, key) {
|
|
390
391
|
return { key, fn: function() {
|
|
391
392
|
return [_vm._t(key)];
|
|
392
393
|
}, proxy: true };
|
|
@@ -394,17 +395,17 @@ var render$4 = function() {
|
|
|
394
395
|
_vm.modelForm = $$v;
|
|
395
396
|
}, expression: "modelForm" } }, "el-select", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners), _vm._l(_vm.selectOption, function(item) {
|
|
396
397
|
return _c("el-option", { key: item.value, attrs: { "value": item.value.toString(), "label": item.label } });
|
|
397
|
-
}), 1)] : _vm.type === "textarea" ? [_c("el-input", _vm._g(_vm._b({ ref: _vm.type, attrs: { "type": "textarea" }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
398
|
+
}), 1)] : _vm.type === "textarea" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-input", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, attrs: { "type": "textarea" }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
398
399
|
_vm.modelForm = $$v;
|
|
399
|
-
}, 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) {
|
|
400
|
+
}, expression: "modelForm" } }, "el-input", _vm.setDefaultAttrs(_vm.polyfillAttrs(_vm.$attrs)), false), _vm.$listeners))] : _vm.type === "input-number" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-input-number", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
400
401
|
_vm.modelForm = $$v;
|
|
401
|
-
}, 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) {
|
|
402
|
+
}, expression: "modelForm" } }, "el-input-number", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "cascader" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-cascader", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, attrs: { "options": _vm.options, "props": _vm.props }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
402
403
|
_vm.modelForm = $$v;
|
|
403
|
-
}, 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) {
|
|
404
|
+
}, expression: "modelForm" } }, "el-cascader", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "daterange" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-date-picker", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
404
405
|
_vm.modelForm = $$v;
|
|
405
|
-
}, 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) {
|
|
406
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "datetimerange" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("el-date-picker", _vm._g(_vm._b({ ref: _vm.type, class: { inline_content: _vm.inlineLabel }, model: { value: _vm.modelForm, callback: function($$v) {
|
|
406
407
|
_vm.modelForm = $$v;
|
|
407
|
-
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "inputrange" ? [_c("div", { staticClass: "ui-input__range" }, [_c("el-input", { staticStyle: { "width": "50%" }, model: { value: _vm.modelForm[0], callback: function($$v) {
|
|
408
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "inputrange" ? [_vm.inlineLabel ? _c("span", { staticClass: "inline_label", style: { width: _vm.labelWidth } }, [_vm._v(_vm._s(_vm.inlineLabel))]) : _vm._e(), _c("div", { staticClass: "ui-input__range", class: { inline_content: _vm.inlineLabel } }, [_c("el-input", { staticStyle: { "width": "50%" }, model: { value: _vm.modelForm[0], callback: function($$v) {
|
|
408
409
|
_vm.$set(_vm.modelForm, 0, $$v);
|
|
409
410
|
}, expression: "modelForm[0]" } }), _c("span", { staticStyle: { "color": "#dcdfe6" } }, [_vm._v("-")]), _c("el-input", { staticStyle: { "width": "50%" }, model: { value: _vm.modelForm[1], callback: function($$v) {
|
|
410
411
|
_vm.$set(_vm.modelForm, 1, $$v);
|
|
@@ -464,14 +465,18 @@ const __vue2_script$4 = {
|
|
|
464
465
|
type: Boolean,
|
|
465
466
|
default: false
|
|
466
467
|
},
|
|
467
|
-
placeholder: {
|
|
468
|
-
type: String,
|
|
469
|
-
default: "\u8BF7\u9009\u62E9"
|
|
470
|
-
},
|
|
471
468
|
remoteMethod: {
|
|
472
469
|
type: Function,
|
|
473
470
|
default() {
|
|
474
471
|
}
|
|
472
|
+
},
|
|
473
|
+
inlineLabel: {
|
|
474
|
+
type: String,
|
|
475
|
+
default: ""
|
|
476
|
+
},
|
|
477
|
+
labelWidth: {
|
|
478
|
+
type: String,
|
|
479
|
+
default: "120px"
|
|
475
480
|
}
|
|
476
481
|
},
|
|
477
482
|
data() {
|
|
@@ -556,7 +561,7 @@ const __vue2_script$4 = {
|
|
|
556
561
|
}
|
|
557
562
|
};
|
|
558
563
|
const __cssModules$4 = {};
|
|
559
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
564
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "2cb0a7c0", null, null);
|
|
560
565
|
function __vue2_injectStyles$4(context) {
|
|
561
566
|
for (let o in __cssModules$4) {
|
|
562
567
|
this[o] = __cssModules$4[o];
|
|
@@ -603,9 +608,9 @@ var render$2 = function() {
|
|
|
603
608
|
var _h = _vm.$createElement;
|
|
604
609
|
var _c = _vm._self._c || _h;
|
|
605
610
|
return _c("div", { ref: "Search", staticClass: "ui-search" }, [_c("div", { staticClass: "ui-search__main" }, [_vm._t("default")], 2), _c("div", { staticClass: "ui-search__footer" }, [_c("el-button", { attrs: { "size": "small", "icon": "el-icon-refresh" }, on: { "click": _vm.handleReset } }, [_vm._v("\u91CD\u7F6E")]), _c("el-button", { attrs: { "size": "small", "icon": "el-icon-search", "type": "primary" }, on: { "click": _vm.handleQuery } }, [_vm._v("\u67E5\u8BE2")]), _vm.showMore ? _c("el-popover", { attrs: { "placement": "bottom-start", "trigger": "click", "popper-class": "ui-search__popover", "offset": -172, "width": _vm.containerWidth } }, [_c("div", { staticClass: "ui-more__select" }, [_c("el-row", _vm._l(_vm.hideItems, function(item) {
|
|
606
|
-
return _c("el-col", _vm._b({ key: item._uid }, "el-col", Object.assign({}, { sm: 6, lg: 4 }, item.$options.propsData), false), [_c(item.constructor, _vm._b({ tag: "component", attrs: { "options": item.options },
|
|
611
|
+
return _c("el-col", _vm._b({ key: item._uid }, "el-col", Object.assign({}, { sm: 6, lg: 4 }, item.$options.propsData), false), [_c(item.constructor, _vm._g(_vm._b({ tag: "component", attrs: { "options": item.options }, model: { value: item.modelForm, callback: function($$v) {
|
|
607
612
|
_vm.$set(item, "modelForm", $$v);
|
|
608
|
-
}, expression: "item.modelForm" } }, "component", item.$options.propsData, false))], 1);
|
|
613
|
+
}, expression: "item.modelForm" } }, "component", item.$options.propsData, false), _vm.$listeners))], 1);
|
|
609
614
|
}), 1)], 1), _c("el-button", { staticClass: "ui-search__button--more", attrs: { "slot": "reference", "type": "text" }, slot: "reference" }, [_vm._v("\u66F4\u591A\u9009\u9879 "), _c("i", { staticClass: "el-icon-caret-right" })])], 1) : _vm._e()], 1)]);
|
|
610
615
|
};
|
|
611
616
|
var staticRenderFns$2 = [];
|
|
@@ -663,7 +668,7 @@ const __vue2_script$2 = {
|
|
|
663
668
|
}
|
|
664
669
|
};
|
|
665
670
|
const __cssModules$2 = {};
|
|
666
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "
|
|
671
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "63470b68", null, null);
|
|
667
672
|
function __vue2_injectStyles$2(context) {
|
|
668
673
|
for (let o in __cssModules$2) {
|
|
669
674
|
this[o] = __cssModules$2[o];
|
|
@@ -7546,9 +7551,9 @@ var render$1 = function() {
|
|
|
7546
7551
|
_vm.checkTab = $$v;
|
|
7547
7552
|
}, expression: "checkTab" } }, _vm._l(_vm.tabList, function(item) {
|
|
7548
7553
|
return _c("el-tab-pane", { key: item.value, attrs: { "label": item.label, "name": item.value } });
|
|
7549
|
-
}), 1) : _vm._e(), _vm.showTab ? _c("div", { staticClass: "ui-tab--loading" }, [_c("i", { staticClass: "el-icon-loading" }), _c("span", [_vm._v("\u52A0\u8F7D\u4E2D...")])]) : _vm._e()])], 2), _c("el-table", _vm._g(_vm._b(_vm._b({ ref: "myTable", attrs: { "highlightRow": "", "stripe": "", "border": true, "data": _vm.tableData, "span-method": _vm.spanMethod, "row-class-name": _vm.rowClassName }, on: { "
|
|
7554
|
+
}), 1) : _vm._e(), _vm.showTab ? _c("div", { staticClass: "ui-tab--loading" }, [_c("i", { staticClass: "el-icon-loading" }), _c("span", [_vm._v("\u52A0\u8F7D\u4E2D...")])]) : _vm._e()])], 2), _c("el-table", _vm._g(_vm._b(_vm._b({ ref: "myTable", attrs: { "highlightRow": "", "stripe": "", "border": true, "data": _vm.tableData, "span-method": _vm.spanMethod, "row-class-name": _vm.rowClassName }, on: { "select": _vm.manualSelectchange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
|
|
7550
7555
|
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()];
|
|
7551
|
-
}, proxy: true }]) }, "el-table", _vm._d({}, [_vm.isBindHeight, _vm.tableHeight, _vm.isBindMaxHeight, _vm.maxHeight])), "el-table", _vm.$attrs, false), _vm.$listeners), [_vm.showSelect ? _c("el-table-column", { attrs: { "type": "selection", "width": "35", "selectable": _vm.selectable } }) : _vm._e(), _vm._l(_vm.tableTitle, function(item, index2) {
|
|
7556
|
+
}, proxy: true }]) }, "el-table", _vm._d({}, [_vm.isBindHeight, _vm.tableHeight, _vm.isBindMaxHeight, _vm.maxHeight])), "el-table", _vm.$attrs, false), _vm.polyfillListeners(_vm.$listeners)), [_vm.showSelect ? _c("el-table-column", { attrs: { "type": "selection", "width": "35", "selectable": _vm.selectable } }) : _vm._e(), _vm._l(_vm.tableTitle, function(item, index2) {
|
|
7552
7557
|
return _c("el-table-column", { key: _vm.tableProps[index2], attrs: { "minWidth": "60px", "label": item, "show-overflow-tooltip": _vm.tooltips.includes(_vm.tableProps[index2]), "prop": _vm.tableProps[index2], "width": _vm.tableProps[index2] === "index" ? "60px" : _vm.tableColsWidth[index2] || "" }, scopedSlots: _vm._u([{ key: "header", fn: function(scope) {
|
|
7553
7558
|
return [_vm._t(_vm.tableProps[index2] + "Title", [_c("span", [_vm._v(_vm._s(item))])], { "row": item, "$index": scope.$index })];
|
|
7554
7559
|
} }, !_vm.multiHeaderKey.includes(_vm.tableProps[index2]) ? { key: "default", fn: function(scope) {
|
|
@@ -7573,6 +7578,10 @@ const __vue2_script$1 = {
|
|
|
7573
7578
|
};
|
|
7574
7579
|
}
|
|
7575
7580
|
},
|
|
7581
|
+
isSingleSelection: {
|
|
7582
|
+
type: Boolean,
|
|
7583
|
+
default: false
|
|
7584
|
+
},
|
|
7576
7585
|
spanMethod: {
|
|
7577
7586
|
type: Function
|
|
7578
7587
|
},
|
|
@@ -7686,8 +7695,24 @@ const __vue2_script$1 = {
|
|
|
7686
7695
|
this.$emit("pageChange", type, val);
|
|
7687
7696
|
}
|
|
7688
7697
|
},
|
|
7689
|
-
|
|
7690
|
-
|
|
7698
|
+
polyfillListeners(listeners) {
|
|
7699
|
+
const polyfillMap = {
|
|
7700
|
+
selectionChange: "selection-change"
|
|
7701
|
+
};
|
|
7702
|
+
return Object.entries(listeners).reduce((pre, [key, value]) => {
|
|
7703
|
+
const listenerKey = polyfillMap[key];
|
|
7704
|
+
pre[listenerKey || key] = value;
|
|
7705
|
+
return pre;
|
|
7706
|
+
}, {});
|
|
7707
|
+
},
|
|
7708
|
+
manualSelectchange(selection, row) {
|
|
7709
|
+
if (!this.isSingleSelection)
|
|
7710
|
+
return;
|
|
7711
|
+
const table = this.$refs.myTable;
|
|
7712
|
+
table.clearSelection();
|
|
7713
|
+
this.$nextTick(() => {
|
|
7714
|
+
table.toggleRowSelection(row, true);
|
|
7715
|
+
});
|
|
7691
7716
|
}
|
|
7692
7717
|
},
|
|
7693
7718
|
created() {
|
|
@@ -7702,6 +7727,10 @@ const __vue2_script$1 = {
|
|
|
7702
7727
|
this.tableHeight = this.height;
|
|
7703
7728
|
this.$refs["myTable"] && this.$refs["myTable"].doLayout();
|
|
7704
7729
|
}
|
|
7730
|
+
if (this.isSingleSelection) {
|
|
7731
|
+
const checkboxEl = this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");
|
|
7732
|
+
checkboxEl.style = "display:none";
|
|
7733
|
+
}
|
|
7705
7734
|
},
|
|
7706
7735
|
watch: {
|
|
7707
7736
|
async tableMap() {
|
|
@@ -7714,7 +7743,7 @@ const __vue2_script$1 = {
|
|
|
7714
7743
|
}
|
|
7715
7744
|
};
|
|
7716
7745
|
const __cssModules$1 = {};
|
|
7717
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
7746
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "f002a4ce", null, null);
|
|
7718
7747
|
function __vue2_injectStyles$1(context) {
|
|
7719
7748
|
for (let o in __cssModules$1) {
|
|
7720
7749
|
this[o] = __cssModules$1[o];
|