tenghui-ui 1.6.6 → 1.6.7
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 +68 -20
- 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/packages/form-item/src/defaultAttrsConfig.js +2 -0
- package/packages/search/src/Record.vue +14 -13
- package/packages/search/src/index.vue +15 -4
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-8706549c]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-8706549c]{min-width:unset}.el-submenu__title i[data-v-8706549c]{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-b52aa694]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-b52aa694]{margin-right:10px;font-size:12px;width:70px;text-align:right}[data-v-b52aa694].el-select .el-select__caret:first-child:before{content:"\e6e1"}[data-v-b52aa694].el-select .is-focus .el-select__caret:first-child{transform:rotate(0)}.ui-input__range[data-v-b52aa694]{max-width:240px;display:flex}.ui-input__range>span[data-v-b52aa694]{line-height:28px}.el-date-editor[data-v-b52aa694]{width:100%!important}.inline_form[data-v-b52aa694]{display:flex;margin-bottom:10px}.inline_label[data-v-b52aa694]{display:inline-block;height:32px;line-height:32px;font-size:12px;text-align:right;padding-right:10px}.inline_content[data-v-b52aa694]{flex:1}.el-button--mini[data-v-63ab7472]{padding:5px 8px;font-size:12px!important;box-shadow:0 0 5px 1px #b0ccf2}.ui-operation[data-v-f868d414]{padding:5px 10px}.ui-record[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-8706549c]{width:100%;height:60px!important}.el-submenu .el-menu-item[data-v-8706549c]{min-width:unset}.el-submenu__title i[data-v-8706549c]{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-b52aa694]{display:flex;align-items:center;margin-right:15px}.ui-item__label[data-v-b52aa694]{margin-right:10px;font-size:12px;width:70px;text-align:right}[data-v-b52aa694].el-select .el-select__caret:first-child:before{content:"\e6e1"}[data-v-b52aa694].el-select .is-focus .el-select__caret:first-child{transform:rotate(0)}.ui-input__range[data-v-b52aa694]{max-width:240px;display:flex}.ui-input__range>span[data-v-b52aa694]{line-height:28px}.el-date-editor[data-v-b52aa694]{width:100%!important}.inline_form[data-v-b52aa694]{display:flex;margin-bottom:10px}.inline_label[data-v-b52aa694]{display:inline-block;height:32px;line-height:32px;font-size:12px;text-align:right;padding-right:10px}.inline_content[data-v-b52aa694]{flex:1}.el-button--mini[data-v-63ab7472]{padding:5px 8px;font-size:12px!important;box-shadow:0 0 5px 1px #b0ccf2}.ui-operation[data-v-f868d414]{padding:5px 10px}.ui-record[data-v-177af441]{align-self:flex-end}.ui-record__temps[data-v-177af441],.ui-record__saves[data-v-177af441]{display:flex;flex-wrap:wrap;width:100%;border:1px solid #f1f1f1;border-radius:4px;padding:20px 10px 0;position:relative;box-sizing:border-box}.ui-record__temps[data-v-177af441]:before,.ui-record__saves[data-v-177af441]:before{content:"\5386\53f2\7b5b\9009";display:block;position:absolute;top:-10px;left:10px;background-color:#fff;font-size:12px;padding:0 10px;color:#999}.ui-record__saves[data-v-177af441]{margin-bottom:20px}.ui-record__saves[data-v-177af441]:before{content:"\5e38\7528\7b5b\9009"}.ui-record__item[data-v-177af441]{font-size:12px;margin-right:8px;margin-bottom:8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:1px solid #f1f1f1;padding:5px;background:#fefefe;border-radius:4px;color:#666;align-self:flex-end;cursor:pointer;position:relative}.ui-record__item span[data-v-177af441]{background-color:#f1f1f1;padding:2px 4px;margin-left:5px;border-radius:4px}.ui-record__item span[data-v-177af441]:first-child{margin-left:0}.ui-record__item[data-v-177af441]:hover{border-color:#b2d8ff}.ui-record__item:hover span[data-v-177af441]{background-color:#b2d8ff;color:#fff}.ui-record__item:hover .ui-flag--icon[data-v-177af441]{display:block}.ui-record__item .ui-flag--icon[data-v-177af441]{position:absolute;right:5px;top:50%;margin-top:-8px;font-size:16px;color:#409eff;display:none;background-color:#fff;height:18px;line-height:18px;width:18px;border-radius:50%;text-align:center;box-shadow:0 0 4px 1px #409eff}.ui-search__button--more[data-v-177af441]{padding:0 0 4px;vertical-align:bottom;border-bottom:1px solid #409EFF!important;border-radius:0;margin-right:10px;align-self:flex-end;margin-bottom:2px}.ui-search[data-v-5321f186]{margin:10px 10px 0;padding:20px;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;box-shadow:0 0 10px 2px #eee;position:relative}.ui-search[data-v-5321f186] .el-drawer__wrapper{position:absolute}.ui-search__main[data-v-5321f186]{display:flex}.ui-search__footer[data-v-5321f186]{display:flex;margin-top:10px;align-items:center}.ui-search__cache[data-v-5321f186]{font-size:12px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:1px solid #f1f1f1;padding:5px;background:#fefefe;border-radius:4px;color:#666;align-self:flex-end;cursor:pointer}.ui-search__cache span[data-v-5321f186]{background-color:#f1f1f1;padding:2px 4px;margin-left:5px;border-radius:4px}.ui-search__cache span[data-v-5321f186]:first-child{margin-left:0}.ui-search .ui-search__button--more[data-v-5321f186]{padding:0 0 4px;vertical-align:bottom;border-bottom:1px solid #409EFF;border-radius:0;margin-right:10px;align-self:flex-end;margin-bottom:2px}.ui-search[data-v-5321f186] .ui-form__item{display:block;min-width:150px}.ui-search[data-v-5321f186] .ui-form__item--inputrange{min-width:160px}.ui-search[data-v-5321f186] .ui-form__item--hide{display:none!important}.ui-search[data-v-5321f186] .ui-form__item--daterange{min-width:200px}.ui-search[data-v-5321f186] .ui-item__label{width:unset;text-align:left;margin-bottom:5px}.ui-search[data-v-5321f186] .el-cascader .el-input{display:flex}.ui-search[data-v-5321f186] .ui-input__range{max-width:unset}.ui-search--sort[data-v-5321f186]{padding:10px;height:100%;display:flex;flex-direction:column}.ui-search .ui-sort__content[data-v-5321f186]{flex:1;margin-bottom:10px;border-bottom:1px solid #f1f1f1}.ui-search .ui-sort__content .el-checkbox[data-v-5321f186]{margin-right:10px;margin-left:0!important;margin-bottom:10px}.ui-more__select .el-col[data-v-5321f186]{margin-bottom:10px}.ui-more__select[data-v-5321f186] .ui-input__range{max-width:unset}.ui-more__select[data-v-5321f186] .el-cascader .el-input{display:flex}.ui-dragmove[data-v-5321f186]{background-color:#fff}.ui-table_config[data-v-3581a06c]{display:flex;align-items:center;margin-left:auto;height:32px}.el-icon-s-operation[data-v-3581a06c]{font-size:18px;color:#333;cursor:pointer;border-left:1px solid #dedede;padding-left:5px}.el-icon-s-operation[data-v-3581a06c]:hover{color:#777}[data-v-3581a06c] .el-drawer__wrapper,[data-v-3581a06c] .v-modal{position:absolute}.ui-draggable[data-v-3581a06c]{padding:10px;box-sizing:border-box}.ui-draggable .el-checkbox[data-v-3581a06c]{margin:0 0 5px!important;width:100%}.ui-draggable .el-checkbox[data-v-3581a06c]:hover{border-color:#9ccdff}.ui-sort__footer[data-v-3581a06c]{border-top:1px solid #f1f1f1;padding:10px}.ui-sort__footer .el-button[data-v-3581a06c]{padding-left:10px;padding-right:10px}.ui-sort__content[data-v-3581a06c]{overflow:auto}[data-v-3581a06c] .el-drawer__header{border-bottom:1px solid #f1f1f1;padding:10px;margin-bottom:10px}.ui-table[data-v-973b80d0]{padding:0 10px;position:relative}.ui-table[data-v-973b80d0] .el-table-column--selection .el-checkbox{display:block}.ui-table[data-v-973b80d0] .el-tabs__header{margin-bottom:0;border-bottom:0 none;background:#fff}.ui-table[data-v-973b80d0] .el-tabs__header .el-tabs__item{height:32px;line-height:32px;font-size:12px}.ui-table[data-v-973b80d0] .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:#409eff}.ui-pagination[data-v-973b80d0]{text-align:right;padding:10px 0;display:flex}.ui-table__tab[data-v-973b80d0]{background-color:#fff;display:flex}.ui-summary--data[data-v-973b80d0]{margin-right:auto;display:flex;font-size:12px;align-items:center}.ui-tab--loading[data-v-973b80d0]{padding-left:10px;height:32px;line-height:32px}.ui-tab--loading span[data-v-973b80d0]{font-size:12px;color:#999;display:inline-block;margin-left:5px}[data-v-973b80d0] .el-table .cell{line-height:16px}[data-v-973b80d0] .el-tabs__nav-scroll,[data-v-973b80d0] .el-tabs__nav-wrap{overflow:unset!important}[data-v-973b80d0] .el-badge__content.is-fixed{z-index:1}.ui-page__main>.ui-table[data-v-973b80d0]{background:#FFF;box-shadow:0 0 10px 1px #eee;margin-left:10px;border-radius:4px;padding-left:10px;margin-right:10px}.ui-image--error[data-v-b81bcc3a]{text-align:center;color:#999;background-color:#efefef}
|
package/dist/tenghui-ui.es.js
CHANGED
|
@@ -361,11 +361,13 @@ const daterangeDefaultAttrs = __spreadProps(__spreadValues({}, datePickerCommonA
|
|
|
361
361
|
const datetimeDefaultAttrs = {
|
|
362
362
|
type: "datetime",
|
|
363
363
|
"default-time": "00:00:00",
|
|
364
|
-
format: "yyyy-MM-dd HH:mm:ss"
|
|
364
|
+
format: "yyyy-MM-dd HH:mm:ss",
|
|
365
|
+
"value-format": "yyyy-MM-dd HH:mm:ss"
|
|
365
366
|
};
|
|
366
367
|
const dateDefaultAttrs = {
|
|
367
368
|
type: "date",
|
|
368
|
-
format: "yyyy-MM-dd"
|
|
369
|
+
format: "yyyy-MM-dd",
|
|
370
|
+
"value-format": "yyyy-MM-dd"
|
|
369
371
|
};
|
|
370
372
|
const defaultAttrsMap = {
|
|
371
373
|
input: {
|
|
@@ -5186,28 +5188,24 @@ var render$5 = function() {
|
|
|
5186
5188
|
_vm.showPropover = $$v;
|
|
5187
5189
|
}, expression: "showPropover" } }, [_c("div", { staticClass: "ui-record__list" }, [_c("div", { staticClass: "ui-record__saves" }, _vm._l(_vm.recordData.saves, function(item, index2) {
|
|
5188
5190
|
return _c("div", { key: index2, staticClass: "ui-record__item", attrs: { "title": item.map(function(v) {
|
|
5189
|
-
return v.label + "\uFF1A" + v.value;
|
|
5191
|
+
return v.label + "\uFF1A" + (v.valueLabel || v.value);
|
|
5190
5192
|
}).join("\uFF1B") }, on: { "click": function($event) {
|
|
5191
5193
|
return _vm.handleShortcut(item);
|
|
5192
5194
|
} } }, [_vm._l(item, function(v, index3) {
|
|
5193
|
-
return _c("span", { key: index3 }, [_vm._v(_vm._s(v.label) + "\uFF1A" + _vm._s(v.value))]);
|
|
5195
|
+
return _c("span", { key: index3 }, [_vm._v(_vm._s(v.label) + "\uFF1A" + _vm._s(v.valueLabel || v.value))]);
|
|
5194
5196
|
}), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u79FB\u9664\u5E38\u7528\u7B5B\u9009", "placement": "top-start" } }, [_c("i", { staticClass: "el-icon-remove ui-flag--icon", on: { "click": function($event) {
|
|
5195
|
-
|
|
5196
|
-
return null;
|
|
5197
|
-
}
|
|
5197
|
+
$event.stopPropagation();
|
|
5198
5198
|
return _vm.handleOperation(index2, "saves");
|
|
5199
5199
|
} } })])], 2);
|
|
5200
5200
|
}), 0), _c("div", { staticClass: "ui-record__temps" }, _vm._l(_vm.recordData.temps, function(item, index2) {
|
|
5201
5201
|
return _c("div", { key: index2, staticClass: "ui-record__item", attrs: { "title": item.map(function(v) {
|
|
5202
|
-
return v.label + "\uFF1A" + v.value;
|
|
5202
|
+
return v.label + "\uFF1A" + (v.valueLabel || v.value);
|
|
5203
5203
|
}).join("\uFF1B") }, on: { "click": function($event) {
|
|
5204
5204
|
return _vm.handleShortcut(item);
|
|
5205
5205
|
} } }, [_vm._l(item, function(v, i) {
|
|
5206
|
-
return _c("span", { key: i }, [_vm._v(_vm._s(v.label) + "\uFF1A" + _vm._s(v.value))]);
|
|
5206
|
+
return _c("span", { key: i }, [_vm._v(_vm._s(v.label) + "\uFF1A" + _vm._s(v.valueLabel || v.value))]);
|
|
5207
5207
|
}), _c("el-tooltip", { staticClass: "item", attrs: { "effect": "dark", "content": "\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009", "placement": "top-start" } }, [_c("i", { staticClass: "el-icon-circle-plus ui-flag--icon", on: { "click": function($event) {
|
|
5208
|
-
|
|
5209
|
-
return null;
|
|
5210
|
-
}
|
|
5208
|
+
$event.stopPropagation();
|
|
5211
5209
|
return _vm.handleOperation(index2, "temps");
|
|
5212
5210
|
} } })])], 2);
|
|
5213
5211
|
}), 0)]), _c("el-button", { staticClass: "ui-search__button--more", attrs: { "slot": "reference", "type": "text" }, slot: "reference" }, [_vm._v("\u7B5B\u9009\u5386\u53F2 "), _c("i", { staticClass: "el-icon-caret-right" })])], 1)], 1);
|
|
@@ -5251,6 +5249,7 @@ const __vue2_script$5 = {
|
|
|
5251
5249
|
} else {
|
|
5252
5250
|
this.recordData.saves.splice(index2, 1);
|
|
5253
5251
|
}
|
|
5252
|
+
this.handelSaveRecord();
|
|
5254
5253
|
},
|
|
5255
5254
|
async handleShortcut(item) {
|
|
5256
5255
|
this.$parent.$children.forEach((ref2) => {
|
|
@@ -5259,7 +5258,12 @@ const __vue2_script$5 = {
|
|
|
5259
5258
|
ref2.modelForm = findItem.value;
|
|
5260
5259
|
} else if (ref2.label) {
|
|
5261
5260
|
if (ref2.$el.style.display !== "none") {
|
|
5262
|
-
ref2.modelForm
|
|
5261
|
+
if (Array.isArray(ref2.modelForm))
|
|
5262
|
+
ref2.modelForm = [];
|
|
5263
|
+
else if (typeof ref2.modelForm == "number")
|
|
5264
|
+
ref2.modelForm = void 0;
|
|
5265
|
+
else
|
|
5266
|
+
ref2.modelForm = "";
|
|
5263
5267
|
}
|
|
5264
5268
|
}
|
|
5265
5269
|
});
|
|
@@ -5268,6 +5272,9 @@ const __vue2_script$5 = {
|
|
|
5268
5272
|
this.$parent.handleQuery();
|
|
5269
5273
|
},
|
|
5270
5274
|
handelSaveRecord() {
|
|
5275
|
+
if (this.recordData.temps.length > 10) {
|
|
5276
|
+
this.recordData.temps.splice(10);
|
|
5277
|
+
}
|
|
5271
5278
|
localStorage.setItem(`SaveRecord_${this.configKey}`, JSON.stringify(this.recordData));
|
|
5272
5279
|
}
|
|
5273
5280
|
},
|
|
@@ -5291,7 +5298,7 @@ const __vue2_script$5 = {
|
|
|
5291
5298
|
}
|
|
5292
5299
|
};
|
|
5293
5300
|
const __cssModules$5 = {};
|
|
5294
|
-
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "
|
|
5301
|
+
var __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$5, staticRenderFns$5, false, __vue2_injectStyles$5, "177af441", null, null);
|
|
5295
5302
|
function __vue2_injectStyles$5(context) {
|
|
5296
5303
|
for (let o in __cssModules$5) {
|
|
5297
5304
|
this[o] = __cssModules$5[o];
|
|
@@ -5338,10 +5345,10 @@ var render$3 = function() {
|
|
|
5338
5345
|
return _c("DefaultItem", { key: index2, attrs: { "vnode": vnode } });
|
|
5339
5346
|
}) : _vm._e()], 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", { staticStyle: { "margin-right": "10px" }, attrs: { "size": "small", "icon": "el-icon-search", "type": "primary" }, on: { "click": _vm.handleQuery } }, [_vm._v("\u67E5\u8BE2")]), _c("div", { staticStyle: { "align-self": "flex-end" } }, [_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(vnode, index2) {
|
|
5340
5347
|
return _c("el-col", _vm._b({ key: index2 }, "el-col", Object.assign({}, { sm: 6, lg: 4 }, vnode.$attrs, vnode.$options.propsData), false), [!_vm.loadSearch ? [_c("DefaultItem", { attrs: { "vnode": vnode } })] : _vm._e()], 2);
|
|
5341
|
-
}), 1)], 1), _c("el-button", { staticClass: "ui-search__button--more", attrs: { "slot": "reference", "type": "text" }, slot: "reference" }, [_vm._v("\u66F4\u591A\u7B5B\u9009 "), _c("i", { staticClass: "el-icon-caret-right" })])], 1) : _vm._e()], 1), _vm.useConfig ? _c("el-button", { staticClass: "ui-search__button--more", attrs: { "type": "text" }, on: { "click": _vm.handleShowConfig } }, [_vm._v("\u7B5B\u9009\u914D\u7F6E "), _c("i", { staticClass: "el-icon-setting" })]) : _vm._e(), _c("Record", { attrs: { "config-key": _vm.configKey, "current": _vm.searchLoc } }), _vm._t("footer"), _c("div", { staticClass: "ui-search__cache", attrs: { "title": _vm.searchLoc.map(function(v) {
|
|
5342
|
-
return v.label + "\uFF1A" + v.value;
|
|
5348
|
+
}), 1)], 1), _c("el-button", { staticClass: "ui-search__button--more", attrs: { "slot": "reference", "type": "text" }, slot: "reference" }, [_vm._v("\u66F4\u591A\u7B5B\u9009 "), _c("i", { staticClass: "el-icon-caret-right" })])], 1) : _vm._e()], 1), _vm.useConfig ? _c("el-button", { staticClass: "ui-search__button--more", attrs: { "type": "text" }, on: { "click": _vm.handleShowConfig } }, [_vm._v("\u7B5B\u9009\u914D\u7F6E "), _c("i", { staticClass: "el-icon-setting" })]) : _vm._e(), _c("Record", { attrs: { "config-key": _vm.configKey, "current": _vm.searchLoc } }), _vm._t("footer"), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.searchLoc.length, expression: "searchLoc.length" }], staticClass: "ui-search__cache", attrs: { "title": _vm.searchLoc.map(function(v) {
|
|
5349
|
+
return v.label + "\uFF1A" + (v.valueLabel || v.value);
|
|
5343
5350
|
}).join("\uFF1B") } }, _vm._l(_vm.searchLoc, function(item, index2) {
|
|
5344
|
-
return _c("span", { key: index2 }, [_vm._v(_vm._s(item.label) + "\uFF1A" + _vm._s(item.value))]);
|
|
5351
|
+
return _c("span", { key: index2 }, [_vm._v(_vm._s(item.label) + "\uFF1A" + _vm._s(item.valueLabel || item.value))]);
|
|
5345
5352
|
}), 0)], 2), _c("el-drawer", { attrs: { "title": "\u7B5B\u9009\u914D\u7F6E", "direction": "btt", "size": "100%", "withHeader": false, "modal": false, "modal-append-to-body": false, "visible": _vm.showConfig }, on: { "update:visible": function($event) {
|
|
5346
5353
|
_vm.showConfig = $event;
|
|
5347
5354
|
} } }, [_c("div", { staticClass: "ui-search--sort" }, [_c("div", { staticClass: "ui-sort__content" }, [_c("el-checkbox-group", { attrs: { "size": "mini" }, model: { value: _vm.checkItems, callback: function($$v) {
|
|
@@ -5415,12 +5422,25 @@ const __vue2_script$3 = {
|
|
|
5415
5422
|
return true;
|
|
5416
5423
|
};
|
|
5417
5424
|
this.searchLoc = this.$children.reduce((temp, item) => {
|
|
5425
|
+
var _a;
|
|
5418
5426
|
if (item.label && !empty(item.modelForm)) {
|
|
5427
|
+
let valueLabel;
|
|
5428
|
+
if (item.options && Object.entries(item.options).length > 0) {
|
|
5429
|
+
if (Array.isArray(item.modelForm)) {
|
|
5430
|
+
valueLabel = item.modelForm.map((iv) => {
|
|
5431
|
+
var _a2;
|
|
5432
|
+
return ((_a2 = item.selectOption.find((v) => v.value == iv)) == null ? void 0 : _a2.label) || iv;
|
|
5433
|
+
});
|
|
5434
|
+
} else {
|
|
5435
|
+
valueLabel = ((_a = item.selectOption.find((v) => v.value == item.modelForm)) == null ? void 0 : _a.label) || item.modelForm;
|
|
5436
|
+
}
|
|
5437
|
+
}
|
|
5419
5438
|
return [
|
|
5420
5439
|
...temp,
|
|
5421
5440
|
{
|
|
5422
5441
|
label: item.label,
|
|
5423
|
-
value: item.modelForm
|
|
5442
|
+
value: item.modelForm,
|
|
5443
|
+
valueLabel
|
|
5424
5444
|
}
|
|
5425
5445
|
];
|
|
5426
5446
|
} else {
|
|
@@ -5547,7 +5567,7 @@ const __vue2_script$3 = {
|
|
|
5547
5567
|
}
|
|
5548
5568
|
};
|
|
5549
5569
|
const __cssModules$3 = {};
|
|
5550
|
-
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "
|
|
5570
|
+
var __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, render$3, staticRenderFns$3, false, __vue2_injectStyles$3, "5321f186", null, null);
|
|
5551
5571
|
function __vue2_injectStyles$3(context) {
|
|
5552
5572
|
for (let o in __cssModules$3) {
|
|
5553
5573
|
this[o] = __cssModules$3[o];
|
|
@@ -12845,6 +12865,35 @@ ComComponent.install = (app) => {
|
|
|
12845
12865
|
app.component(ComComponent.name, ComComponent);
|
|
12846
12866
|
};
|
|
12847
12867
|
const InComComponent = ComComponent;
|
|
12868
|
+
Vue.directive("request-loading", {
|
|
12869
|
+
bind(el, binding, { context }) {
|
|
12870
|
+
if (!context.$store)
|
|
12871
|
+
return;
|
|
12872
|
+
const textExr = el.getAttribute("element-loading-text");
|
|
12873
|
+
const spinnerExr = el.getAttribute("element-loading-spinner");
|
|
12874
|
+
const backgroundExr = el.getAttribute("element-loading-background");
|
|
12875
|
+
const customClassExr = el.getAttribute("element-loading-custom-class");
|
|
12876
|
+
const mask = new Mask({
|
|
12877
|
+
el: document.createElement("div"),
|
|
12878
|
+
data: {
|
|
12879
|
+
text: textExr,
|
|
12880
|
+
spinner: spinnerExr,
|
|
12881
|
+
background: backgroundExr,
|
|
12882
|
+
customClass: customClassExr,
|
|
12883
|
+
fullscreen: false
|
|
12884
|
+
}
|
|
12885
|
+
});
|
|
12886
|
+
el.instance = mask;
|
|
12887
|
+
el.mask = mask.$el;
|
|
12888
|
+
el.maskStyle = {};
|
|
12889
|
+
el.flagId = `Loading_${new Date().getTime()}`;
|
|
12890
|
+
context.$store.commit("SAVE_HTTP_LOADINGS", {
|
|
12891
|
+
el,
|
|
12892
|
+
name: binding.arg,
|
|
12893
|
+
id: el.flagId
|
|
12894
|
+
});
|
|
12895
|
+
}
|
|
12896
|
+
});
|
|
12848
12897
|
const components = [
|
|
12849
12898
|
InComTemplate,
|
|
12850
12899
|
InComComponent$8,
|
|
@@ -12897,7 +12946,6 @@ const install = (Vue2, ops = { config: {} }) => {
|
|
|
12897
12946
|
}
|
|
12898
12947
|
};
|
|
12899
12948
|
Vue2.prototype.$UICONFIG = __spreadValues(__spreadValues({}, UIDefaultConfig), ops.config);
|
|
12900
|
-
console.log(Vue2);
|
|
12901
12949
|
};
|
|
12902
12950
|
const defaultConfig = {
|
|
12903
12951
|
version: "dev",
|