tenghui-ui 1.4.1 → 1.4.3
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 +31 -7
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +3 -3
- 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-3bea4dea]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-3bea4dea]{margin-right:10px;font-size:12px;width:70px;text-align:right}[data-v-3bea4dea].el-select .el-select__caret:first-child:before{content:"\e6e1"}[data-v-3bea4dea].el-select .is-focus .el-select__caret:first-child{transform:rotate(0)}.ui-input__range[data-v-3bea4dea]{max-width:240px;display:flex}.ui-input__range>span[data-v-3bea4dea]{line-height:28px}.el-date-editor[data-v-3bea4dea]{width:100%!important}.inline_form[data-v-3bea4dea]{display:flex;margin-bottom:10px}.inline_label[data-v-3bea4dea]{display:inline-block;height:32px;line-height:32px;font-size:12px;text-align:right;padding-right:10px}.inline_content[data-v-3bea4dea]{flex:1}.ui-operation[data-v-3c6cb9f6]{padding:0 10px}.ui-search[data-v-5a00b9aa]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px}.ui-search__main[data-v-5a00b9aa]{display:flex}.ui-search__footer[data-v-5a00b9aa]{margin-top:10px}.ui-search .ui-search__button--more[data-v-5a00b9aa]{padding:0 0 4px;vertical-align:bottom;border-bottom:1px solid #409EFF;border-radius:0;margin-left:15px}.ui-search[data-v-5a00b9aa] .ui-form__item{display:block;min-width:150px}.ui-search[data-v-5a00b9aa] .ui-form__item--inputrange{min-width:160px}.ui-search[data-v-5a00b9aa] .ui-form__item--hide{display:none}.ui-search[data-v-5a00b9aa] .ui-form__item--daterange{min-width:200px}.ui-search[data-v-5a00b9aa] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-more__select .el-col[data-v-5a00b9aa]{margin-bottom:10px}.ui-table[data-v-476ad8b0]{padding:0 10px}.ui-table[data-v-476ad8b0] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-476ad8b0] .el-tabs__header{margin-bottom:0;border-bottom:0 none;background:#fff}.ui-table[data-v-476ad8b0] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-table[data-v-476ad8b0] .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#409eff}.ui-pagination[data-v-476ad8b0]{text-align:center;padding:10px 0}.ui-table__tab[data-v-476ad8b0]{background-color:#fff}.ui-tab--loading[data-v-476ad8b0]{padding-left:10px;height:32px;line-height:32px}.ui-tab--loading span[data-v-476ad8b0]{font-size:12px;color:#999;display:inline-block;margin-left:5px}[data-v-476ad8b0] .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
|
@@ -354,6 +354,15 @@ const daterangeDefaultAttrs = __spreadProps(__spreadValues({}, datePickerCommonA
|
|
|
354
354
|
"value-format": "yyyy-MM-dd",
|
|
355
355
|
format: "yyyy-MM-dd"
|
|
356
356
|
});
|
|
357
|
+
const datetimeDefaultAttrs = {
|
|
358
|
+
type: "datetime",
|
|
359
|
+
"default-time": "00:00:00",
|
|
360
|
+
format: "yyyy-MM-dd HH:mm:ss"
|
|
361
|
+
};
|
|
362
|
+
const dateDefaultAttrs = {
|
|
363
|
+
type: "date",
|
|
364
|
+
format: "yyyy-MM-dd"
|
|
365
|
+
};
|
|
357
366
|
const defaultAttrsMap = {
|
|
358
367
|
input: {
|
|
359
368
|
size: "small"
|
|
@@ -377,7 +386,9 @@ const defaultAttrsMap = {
|
|
|
377
386
|
clearable: true
|
|
378
387
|
},
|
|
379
388
|
daterange: daterangeDefaultAttrs,
|
|
380
|
-
datetimerange: datetimerangeDefaultAttrs
|
|
389
|
+
datetimerange: datetimerangeDefaultAttrs,
|
|
390
|
+
datetime: datetimeDefaultAttrs,
|
|
391
|
+
date: dateDefaultAttrs
|
|
381
392
|
};
|
|
382
393
|
var render$4 = function() {
|
|
383
394
|
var _vm = this;
|
|
@@ -407,6 +418,10 @@ var render$4 = function() {
|
|
|
407
418
|
_vm.modelForm = $$v;
|
|
408
419
|
}, 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) {
|
|
409
420
|
_vm.modelForm = $$v;
|
|
421
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "datetime" ? [_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) {
|
|
422
|
+
_vm.modelForm = $$v;
|
|
423
|
+
}, expression: "modelForm" } }, "el-date-picker", _vm.setDefaultAttrs(_vm.$attrs), false), _vm.$listeners))] : _vm.type === "date" ? [_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) {
|
|
424
|
+
_vm.modelForm = $$v;
|
|
410
425
|
}, 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) {
|
|
411
426
|
_vm.$set(_vm.modelForm, 0, $$v);
|
|
412
427
|
}, expression: "modelForm[0]" } }), _c("span", { staticStyle: { "color": "#dcdfe6" } }, [_vm._v("-")]), _c("el-input", { staticStyle: { "width": "50%" }, model: { value: _vm.modelForm[1], callback: function($$v) {
|
|
@@ -563,7 +578,7 @@ const __vue2_script$4 = {
|
|
|
563
578
|
}
|
|
564
579
|
};
|
|
565
580
|
const __cssModules$4 = {};
|
|
566
|
-
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "
|
|
581
|
+
var __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$4, staticRenderFns$4, false, __vue2_injectStyles$4, "3bea4dea", null, null);
|
|
567
582
|
function __vue2_injectStyles$4(context) {
|
|
568
583
|
for (let o in __cssModules$4) {
|
|
569
584
|
this[o] = __cssModules$4[o];
|
|
@@ -613,7 +628,7 @@ var render$2 = function() {
|
|
|
613
628
|
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) {
|
|
614
629
|
_vm.$set(item, "modelForm", $$v);
|
|
615
630
|
}, expression: "item.modelForm" } }, "component", item.$options.propsData, false), item.$listeners))], 1);
|
|
616
|
-
}), 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()],
|
|
631
|
+
}), 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(), _vm._t("footer")], 2)]);
|
|
617
632
|
};
|
|
618
633
|
var staticRenderFns$2 = [];
|
|
619
634
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
@@ -670,7 +685,7 @@ const __vue2_script$2 = {
|
|
|
670
685
|
}
|
|
671
686
|
};
|
|
672
687
|
const __cssModules$2 = {};
|
|
673
|
-
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "
|
|
688
|
+
var __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "5a00b9aa", null, null);
|
|
674
689
|
function __vue2_injectStyles$2(context) {
|
|
675
690
|
for (let o in __cssModules$2) {
|
|
676
691
|
this[o] = __cssModules$2[o];
|
|
@@ -7553,10 +7568,10 @@ var render$1 = function() {
|
|
|
7553
7568
|
_vm.checkTab = $$v;
|
|
7554
7569
|
}, expression: "checkTab" } }, _vm._l(_vm.tabList, function(item) {
|
|
7555
7570
|
return _c("el-tab-pane", { key: item.value, attrs: { "label": item.label, "name": item.value } });
|
|
7556
|
-
}), 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: { "data": _vm.tableData, "span-method": _vm.spanMethod, "row-class-name": _vm.rowClassName }, on: { "select": _vm.manualSelectchange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
|
|
7571
|
+
}), 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: { "data": _vm.tableData, "span-method": _vm.spanMethod, "show-summary": _vm.showSummary, "row-class-name": _vm.rowClassName, "summary-method": _vm.getSummaries }, on: { "select": _vm.manualSelectchange }, scopedSlots: _vm._u([{ key: "empty", fn: function() {
|
|
7557
7572
|
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()];
|
|
7558
7573
|
}, proxy: true }]) }, "el-table", _vm._d({}, [_vm.isBindHeight, _vm.tableHeight, _vm.isBindMaxHeight, _vm.maxHeight])), "el-table", Object.assign({}, { highlightRow: true, border: true, stripe: true }, _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) {
|
|
7559
|
-
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) {
|
|
7574
|
+
return _c("el-table-column", { key: _vm.tableProps[index2], attrs: { "minWidth": "60px", "label": item, "render-header": typeof item === "function" ? item : null, "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) {
|
|
7560
7575
|
return [_vm._t(_vm.tableProps[index2] + "Title", [_c("span", [_vm._v(_vm._s(item))])], { "row": item, "$index": scope.$index })];
|
|
7561
7576
|
} }, !_vm.multiHeaderKey.includes(_vm.tableProps[index2]) ? { key: "default", fn: function(scope) {
|
|
7562
7577
|
return [_vm.isPresetProp(_vm.tableProps[index2], _vm.$UICONFIG.tablePreset && _vm.$UICONFIG.tablePreset.separator) ? [_c("table-preset-prop", { attrs: { "tableProp": _vm.tableProps[index2], "row": scope.row } })] : _vm._t(_vm.tableProps[index2], [_c("span", [_vm._v(_vm._s(_vm.tableProps[index2] === "index" ? _vm.changeTableInx(scope.$index) : scope.row[_vm.tableProps[index2]]))])], { "row": scope.row, "$index": scope.$index })];
|
|
@@ -7587,6 +7602,10 @@ const __vue2_script$1 = {
|
|
|
7587
7602
|
spanMethod: {
|
|
7588
7603
|
type: Function
|
|
7589
7604
|
},
|
|
7605
|
+
showSummary: {
|
|
7606
|
+
type: Boolean,
|
|
7607
|
+
default: false
|
|
7608
|
+
},
|
|
7590
7609
|
tableData: {
|
|
7591
7610
|
type: Array,
|
|
7592
7611
|
default() {
|
|
@@ -7635,6 +7654,11 @@ const __vue2_script$1 = {
|
|
|
7635
7654
|
default({ row }) {
|
|
7636
7655
|
}
|
|
7637
7656
|
},
|
|
7657
|
+
getSummaries: {
|
|
7658
|
+
type: Function,
|
|
7659
|
+
default({ row }) {
|
|
7660
|
+
}
|
|
7661
|
+
},
|
|
7638
7662
|
tooltips: {
|
|
7639
7663
|
type: Array,
|
|
7640
7664
|
default() {
|
|
@@ -7745,7 +7769,7 @@ const __vue2_script$1 = {
|
|
|
7745
7769
|
}
|
|
7746
7770
|
};
|
|
7747
7771
|
const __cssModules$1 = {};
|
|
7748
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "
|
|
7772
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, "476ad8b0", null, null);
|
|
7749
7773
|
function __vue2_injectStyles$1(context) {
|
|
7750
7774
|
for (let o in __cssModules$1) {
|
|
7751
7775
|
this[o] = __cssModules$1[o];
|