xrk-components 2.0.0-beta.99 → 3.0.0
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.css +296 -185
- package/lib/index.esm.js +540 -207
- package/lib/index.umd.js +540 -207
- package/lib/packages/base/date-picker/index.d.ts +15 -2
- package/lib/packages/base/dialog/hooks/use-resize.d.ts +6 -0
- package/lib/packages/base/form/index.d.ts +2 -2
- package/lib/packages/base/input/index.d.ts +2 -2
- package/lib/packages/base/layout/index.d.ts +4 -4
- package/lib/packages/base/table/table-column.d.ts +3 -0
- package/lib/packages/base/table/types/type.d.ts +7 -7
- package/lib/packages/hooks/use-default-props.d.ts +2 -0
- package/lib/packages/xrk/search/hooks/use-resize.d.ts +2 -0
- package/lib/packages/xrk/search/index.d.ts +4 -0
- package/lib/packages/xrk/search/search.d.ts +8 -0
- package/lib/packages/xrk/slide-verify/index.d.ts +2 -2
- package/lib/packages/xrk/table/hooks/use-resize.d.ts +1 -0
- package/lib/packages/xrk/table/hooks/use-table.d.ts +1 -0
- package/lib/packages/xrk/table/index.d.ts +7 -0
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -71497,8 +71497,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71497
71497
|
script$F.__file = "packages/base/button/button.vue";
|
|
71498
71498
|
|
|
71499
71499
|
var _hoisted_1$i = /*#__PURE__*/ vue.createTextVNode("更多");
|
|
71500
|
-
var _hoisted_2$
|
|
71501
|
-
var _hoisted_3$a = ["onClick"];
|
|
71500
|
+
var _hoisted_2$c = ["onClick"];
|
|
71502
71501
|
var __default__$C = {
|
|
71503
71502
|
name: 'base-button-more'
|
|
71504
71503
|
};
|
|
@@ -71508,13 +71507,20 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71508
71507
|
trigger: { type: String, required: false, default: 'click' },
|
|
71509
71508
|
maxCount: { type: Number, required: false },
|
|
71510
71509
|
notRepeatShow: { type: Boolean, required: false, default: true },
|
|
71511
|
-
type: { type: null, required: false, default: '
|
|
71510
|
+
type: { type: null, required: false, default: 'primary' }
|
|
71512
71511
|
}, setup: function (__props) {
|
|
71513
71512
|
var props = __props;
|
|
71514
71513
|
var popoverRef = vue.ref();
|
|
71515
71514
|
var showMore = vue.ref(false);
|
|
71516
71515
|
var showMoreStartIndex = vue.ref(0);
|
|
71517
71516
|
var btnsRef = vue.ref();
|
|
71517
|
+
var btnGroupStyle = vue.computed(function () {
|
|
71518
|
+
return {
|
|
71519
|
+
style: {
|
|
71520
|
+
'--item-hover-color': "var(--xrk-color-".concat(props.type, ")")
|
|
71521
|
+
}
|
|
71522
|
+
};
|
|
71523
|
+
});
|
|
71518
71524
|
vue.onMounted(function () {
|
|
71519
71525
|
var _a, _b;
|
|
71520
71526
|
var btns = (_a = btnsRef.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.xrk-button');
|
|
@@ -71605,7 +71611,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71605
71611
|
}, 8 /* PROPS */, ["type"])
|
|
71606
71612
|
]; }),
|
|
71607
71613
|
default: vue.withCtx(function () { return [
|
|
71608
|
-
vue.createElementVNode("div",
|
|
71614
|
+
vue.createElementVNode("div", vue.mergeProps({ class: "btn-group" }, vue.unref(btnGroupStyle)), [
|
|
71609
71615
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.btns.slice(showMoreStartIndex.value), function (btn, index) {
|
|
71610
71616
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
71611
71617
|
class: vue.normalizeClass(["btn", { disabled: btn.disabled }]),
|
|
@@ -71617,9 +71623,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71617
71623
|
(_b = (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
71618
71624
|
(_c = (btn.onClick || btn.click)) === null || _c === void 0 ? void 0 : _c();
|
|
71619
71625
|
}
|
|
71620
|
-
}, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */,
|
|
71626
|
+
}, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_2$c));
|
|
71621
71627
|
}), 128 /* KEYED_FRAGMENT */))
|
|
71622
|
-
])
|
|
71628
|
+
], 16 /* FULL_PROPS */)
|
|
71623
71629
|
]; }),
|
|
71624
71630
|
_: 1 /* STABLE */
|
|
71625
71631
|
}, 8 /* PROPS */, ["trigger"]))
|
|
@@ -71829,7 +71835,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71829
71835
|
key: 0,
|
|
71830
71836
|
style: { "width": "100%", "height": "100%" }
|
|
71831
71837
|
};
|
|
71832
|
-
var _hoisted_2$
|
|
71838
|
+
var _hoisted_2$b = {
|
|
71833
71839
|
key: 0,
|
|
71834
71840
|
style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
|
|
71835
71841
|
};
|
|
@@ -72038,7 +72044,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72038
72044
|
var _a;
|
|
72039
72045
|
return [
|
|
72040
72046
|
((_a = vue.unref(slots)) === null || _a === void 0 ? void 0 : _a.default)
|
|
72041
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
72047
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
|
|
72042
72048
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
72043
72049
|
slotScope: { activeIndex: activeIndex.value }
|
|
72044
72050
|
})
|
|
@@ -72727,12 +72733,24 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72727
72733
|
if ((cellValue === null || cellValue === void 0 ? void 0 : cellValue.length) > 600)
|
|
72728
72734
|
return 'base-tool-tip-1200';
|
|
72729
72735
|
};
|
|
72736
|
+
function textFits(text, element) {
|
|
72737
|
+
var canvas = document.createElement('canvas');
|
|
72738
|
+
var ctx = canvas.getContext('2d');
|
|
72739
|
+
ctx.font = window.getComputedStyle(element, null).getPropertyValue('font');
|
|
72740
|
+
var textWidth = ctx.measureText(text).width;
|
|
72741
|
+
var elementWidth = element.offsetWidth;
|
|
72742
|
+
return textWidth <= elementWidth;
|
|
72743
|
+
}
|
|
72730
72744
|
var handleMouseMove = function () {
|
|
72731
72745
|
var _a, _b;
|
|
72732
72746
|
if (((_a = toolTipDefault.value) === null || _a === void 0 ? void 0 : _a.tagName) && ((_b = toolTipDefaultContent.value) === null || _b === void 0 ? void 0 : _b.tagName)) {
|
|
72733
|
-
|
|
72734
|
-
|
|
72735
|
-
|
|
72747
|
+
// const { offsetWidth, offsetHeight } = toolTipDefault.value;
|
|
72748
|
+
// const { offsetWidth: childOffsetWidth, offsetHeight: childOffsetHeight } =
|
|
72749
|
+
// toolTipDefaultContent.value;
|
|
72750
|
+
// _overShow.value = !(
|
|
72751
|
+
// offsetWidth < childOffsetWidth || offsetHeight < childOffsetHeight
|
|
72752
|
+
// );
|
|
72753
|
+
_overShow.value = textFits(_content.value, toolTipDefault.value);
|
|
72736
72754
|
}
|
|
72737
72755
|
};
|
|
72738
72756
|
return function (_ctx, _cache) {
|
|
@@ -73131,7 +73149,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73131
73149
|
|
|
73132
73150
|
var _withScopeId$5 = function (n) { return (vue.pushScopeId("data-v-13bddb91"), n = n(), vue.popScopeId(), n); };
|
|
73133
73151
|
var _hoisted_1$e = ["src"];
|
|
73134
|
-
var _hoisted_2$
|
|
73152
|
+
var _hoisted_2$a = /*#__PURE__*/ _withScopeId$5(function () { return vue.createElementVNode("svg", {
|
|
73135
73153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
73136
73154
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
73137
73155
|
fill: "none",
|
|
@@ -73323,7 +73341,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73323
73341
|
size: __props.imageSize
|
|
73324
73342
|
}, {
|
|
73325
73343
|
default: vue.withCtx(function () { return [
|
|
73326
|
-
_hoisted_2$
|
|
73344
|
+
_hoisted_2$a
|
|
73327
73345
|
]; }),
|
|
73328
73346
|
_: 1 /* STABLE */
|
|
73329
73347
|
}, 8 /* PROPS */, ["size"]))
|
|
@@ -73455,7 +73473,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73455
73473
|
placeholder: { type: String, required: false },
|
|
73456
73474
|
filterable: { type: Boolean, required: false },
|
|
73457
73475
|
allowCreate: { type: Boolean, required: false },
|
|
73458
|
-
fitInputWidth: { type: Boolean, required: false, default:
|
|
73476
|
+
fitInputWidth: { type: Boolean, required: false, default: false },
|
|
73459
73477
|
filterMethod: { type: Function, required: false },
|
|
73460
73478
|
maxlength: { type: Number, required: false, default: 50 },
|
|
73461
73479
|
remoteMethod: { type: Function, required: false },
|
|
@@ -73541,6 +73559,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73541
73559
|
case 1:
|
|
73542
73560
|
_b.trys.push([1, 3, , 4]);
|
|
73543
73561
|
loading.value = true;
|
|
73562
|
+
_options.value = [];
|
|
73544
73563
|
return [4 /*yield*/, ((_a = props.remoteMethod) === null || _a === void 0 ? void 0 : _a.call(props, val))];
|
|
73545
73564
|
case 2:
|
|
73546
73565
|
res = _b.sent();
|
|
@@ -74252,13 +74271,50 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74252
74271
|
script$k.__scopeId = "data-v-17eda5db";
|
|
74253
74272
|
script$k.__file = "packages/base/form/form-item.vue";
|
|
74254
74273
|
|
|
74255
|
-
|
|
74256
|
-
|
|
74257
|
-
|
|
74274
|
+
function useResponsiveColumns(identification, columnNum, fixedColumnsNum) {
|
|
74275
|
+
var resizeObserver = null;
|
|
74276
|
+
var widthToColumnMap = [
|
|
74277
|
+
{ maxWidth: 500, columns: 1 },
|
|
74278
|
+
{ maxWidth: 800, columns: 2 },
|
|
74279
|
+
{ maxWidth: 1000, columns: 3 },
|
|
74280
|
+
{ maxWidth: 1300, columns: 4 },
|
|
74281
|
+
{ maxWidth: Infinity, columns: 5 }
|
|
74282
|
+
];
|
|
74283
|
+
var updateColumns = function () {
|
|
74284
|
+
// 使用ResizeObserver替代window.resize事件
|
|
74285
|
+
var dom = document.querySelector(".xrk-search_".concat(identification));
|
|
74286
|
+
if (!dom)
|
|
74287
|
+
return;
|
|
74288
|
+
var width = dom.offsetWidth;
|
|
74289
|
+
var target = widthToColumnMap.find(function (item) { return width <= item.maxWidth; });
|
|
74290
|
+
columnNum.value = (target === null || target === void 0 ? void 0 : target.columns) || 5;
|
|
74291
|
+
};
|
|
74292
|
+
var clearResponsive = function () {
|
|
74293
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
|
|
74294
|
+
resizeObserver = null;
|
|
74295
|
+
};
|
|
74296
|
+
vue.onMounted(function () {
|
|
74297
|
+
clearResponsive();
|
|
74298
|
+
vue.nextTick(function () {
|
|
74299
|
+
if (!fixedColumnsNum) {
|
|
74300
|
+
resizeObserver = new ResizeObserver(updateColumns);
|
|
74301
|
+
var dom = document.querySelector(".xrk-search_".concat(identification));
|
|
74302
|
+
if (dom)
|
|
74303
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe(dom);
|
|
74304
|
+
}
|
|
74305
|
+
});
|
|
74306
|
+
});
|
|
74307
|
+
vue.onUnmounted(function () {
|
|
74308
|
+
clearResponsive();
|
|
74309
|
+
});
|
|
74310
|
+
}
|
|
74311
|
+
|
|
74312
|
+
var _hoisted_1$c = { class: "btn-group" };
|
|
74313
|
+
var _hoisted_2$9 = { class: "btn-group-left" };
|
|
74314
|
+
var _hoisted_3$8 = {
|
|
74258
74315
|
key: 0,
|
|
74259
74316
|
class: "btn-group-right"
|
|
74260
74317
|
};
|
|
74261
|
-
var _hoisted_3$8 = /*#__PURE__*/ _withScopeId$4(function () { return vue.createElementVNode("div", { style: { "clear": "both" } }, null, -1 /* HOISTED */); });
|
|
74262
74318
|
var __default__$h = {
|
|
74263
74319
|
name: 'xrk-search'
|
|
74264
74320
|
};
|
|
@@ -74275,28 +74331,25 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74275
74331
|
}); } },
|
|
74276
74332
|
otherComponents: { type: null, required: false },
|
|
74277
74333
|
syncQueryToSearch: { type: Boolean, required: false },
|
|
74278
|
-
syncSearchToQuery: { type: Boolean, required: false }
|
|
74334
|
+
syncSearchToQuery: { type: Boolean, required: false },
|
|
74335
|
+
fixedColumnsNum: { type: Number, required: false }
|
|
74279
74336
|
}, emits: ["search"], setup: function (__props, _a) {
|
|
74280
74337
|
var _this = this;
|
|
74281
74338
|
var expose = _a.expose, emits = _a.emit;
|
|
74282
74339
|
var _props = __props;
|
|
74283
74340
|
var props = _props;
|
|
74341
|
+
var identification = vue.ref(Date.now());
|
|
74284
74342
|
var searchFormRef = vue.ref();
|
|
74285
74343
|
var searchBtn = vue.computed(function () { return (__assign({ text: '搜索', show: true }, props.searchBtn)); });
|
|
74286
74344
|
var resetBtn = vue.computed(function () { return (__assign({ text: '重置', show: true }, props.resetBtn)); });
|
|
74287
|
-
var columnNum = vue.ref(5);
|
|
74345
|
+
var columnNum = vue.ref((props === null || props === void 0 ? void 0 : props.fixedColumnsNum) || 5);
|
|
74346
|
+
useResponsiveColumns(identification.value, columnNum, props === null || props === void 0 ? void 0 : props.fixedColumnsNum);
|
|
74288
74347
|
var searchStyle = vue.computed(function () {
|
|
74289
74348
|
return {
|
|
74290
74349
|
'--column-num': columnNum.value,
|
|
74291
74350
|
'--column-len': props.columns.length
|
|
74292
74351
|
};
|
|
74293
74352
|
});
|
|
74294
|
-
var btnsFixed = vue.computed(function () {
|
|
74295
|
-
var _a, _b;
|
|
74296
|
-
if (!((_a = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _a === void 0 ? void 0 : _a.length))
|
|
74297
|
-
return false;
|
|
74298
|
-
return (_b = props === null || props === void 0 ? void 0 : props.otherComponents) === null || _b === void 0 ? void 0 : _b.some(function (item) { return (item === null || item === void 0 ? void 0 : item.fixed) === 'right'; });
|
|
74299
|
-
});
|
|
74300
74353
|
var isExpand = vue.ref(false);
|
|
74301
74354
|
var getCurrentColumns = vue.computed(function () {
|
|
74302
74355
|
var _a;
|
|
@@ -74321,7 +74374,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74321
74374
|
placeholder: "".concat(_getPleaseText(column.type)).concat(column.label || '')
|
|
74322
74375
|
};
|
|
74323
74376
|
if (column.type === 'datePicker') {
|
|
74324
|
-
defaultConfig = __assign(__assign({}, defaultConfig), { startPlaceholder:
|
|
74377
|
+
defaultConfig = __assign(__assign({}, defaultConfig), { startPlaceholder: '开始时间', endPlaceholder: '结束时间' });
|
|
74325
74378
|
}
|
|
74326
74379
|
return defaultConfig;
|
|
74327
74380
|
};
|
|
@@ -74440,12 +74493,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74440
74493
|
handleResetClick: handleResetClick
|
|
74441
74494
|
});
|
|
74442
74495
|
return function (_ctx, _cache) {
|
|
74443
|
-
var _a
|
|
74496
|
+
var _a;
|
|
74497
|
+
var _b, _c, _d;
|
|
74444
74498
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
74445
|
-
class: vue.normalizeClass(["xrk-search", {
|
|
74446
|
-
|
|
74447
|
-
}]),
|
|
74448
|
-
style: vue.normalizeStyle(__assign({ marginBottom: ((_c = __props.columns) === null || _c === void 0 ? void 0 : _c.length) ? '16px' : 0 }, vue.unref(searchStyle)))
|
|
74499
|
+
class: vue.normalizeClass(["xrk-search", (_a = {}, _a["xrk-search_".concat(identification.value)] = true, _a)]),
|
|
74500
|
+
style: vue.normalizeStyle(__assign({ marginBottom: ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) ? '16px' : 0 }, vue.unref(searchStyle)))
|
|
74449
74501
|
}, [
|
|
74450
74502
|
vue.createVNode(script$b, {
|
|
74451
74503
|
model: searchValue,
|
|
@@ -74481,26 +74533,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74481
74533
|
]; }),
|
|
74482
74534
|
_: 1 /* STABLE */
|
|
74483
74535
|
}, 8 /* PROPS */, ["model"]),
|
|
74484
|
-
vue.createElementVNode("div",
|
|
74485
|
-
|
|
74486
|
-
fixed: vue.unref(btnsFixed)
|
|
74487
|
-
}]),
|
|
74488
|
-
style: vue.normalizeStyle({
|
|
74489
|
-
marginTop: ((_d = __props.columns) === null || _d === void 0 ? void 0 : _d.length) ? '24px' : 0
|
|
74490
|
-
})
|
|
74491
|
-
}, [
|
|
74492
|
-
vue.createElementVNode("div", _hoisted_1$c, [
|
|
74536
|
+
vue.createElementVNode("div", _hoisted_1$c, [
|
|
74537
|
+
vue.createElementVNode("div", _hoisted_2$9, [
|
|
74493
74538
|
(vue.unref(searchBtn).show)
|
|
74494
74539
|
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74495
74540
|
key: 0,
|
|
74496
|
-
click: handleSearchClick
|
|
74497
|
-
icon: vue.unref(search_default)
|
|
74541
|
+
click: handleSearchClick
|
|
74498
74542
|
}, {
|
|
74499
74543
|
default: vue.withCtx(function () { return [
|
|
74500
74544
|
vue.createTextVNode(vue.toDisplayString(vue.unref(searchBtn).text), 1 /* TEXT */)
|
|
74501
74545
|
]; }),
|
|
74502
74546
|
_: 1 /* STABLE */
|
|
74503
|
-
}
|
|
74547
|
+
}))
|
|
74504
74548
|
: vue.createCommentVNode("v-if", true),
|
|
74505
74549
|
(vue.unref(resetBtn).show)
|
|
74506
74550
|
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
@@ -74515,7 +74559,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74515
74559
|
_: 1 /* STABLE */
|
|
74516
74560
|
}))
|
|
74517
74561
|
: vue.createCommentVNode("v-if", true),
|
|
74518
|
-
(__props.columns && ((
|
|
74562
|
+
(__props.columns && ((_c = __props.columns) === null || _c === void 0 ? void 0 : _c.length) > columnNum.value * 2)
|
|
74519
74563
|
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74520
74564
|
key: 2,
|
|
74521
74565
|
type: "default",
|
|
@@ -74539,21 +74583,29 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74539
74583
|
}))
|
|
74540
74584
|
: vue.createCommentVNode("v-if", true)
|
|
74541
74585
|
]),
|
|
74542
|
-
((
|
|
74543
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
74544
|
-
|
|
74545
|
-
|
|
74546
|
-
|
|
74547
|
-
|
|
74548
|
-
|
|
74549
|
-
|
|
74550
|
-
|
|
74551
|
-
|
|
74552
|
-
|
|
74553
|
-
|
|
74586
|
+
((_d = __props.otherComponents) === null || _d === void 0 ? void 0 : _d.length)
|
|
74587
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$8, [
|
|
74588
|
+
vue.createElementVNode("div", null, [
|
|
74589
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents.filter(function (item) { return !item.fixed || item.fixed === 'left'; }), function (_a, index) {
|
|
74590
|
+
var render = _a.render;
|
|
74591
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
|
|
74592
|
+
render: render,
|
|
74593
|
+
key: index
|
|
74594
|
+
}, null, 8 /* PROPS */, ["render"]));
|
|
74595
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74596
|
+
]),
|
|
74597
|
+
vue.createElementVNode("div", null, [
|
|
74598
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents.filter(function (item) { return item.fixed === 'right'; }), function (_a, index) {
|
|
74599
|
+
var render = _a.render;
|
|
74600
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
|
|
74601
|
+
render: render,
|
|
74602
|
+
key: index
|
|
74603
|
+
}, null, 8 /* PROPS */, ["render"]));
|
|
74604
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74605
|
+
])
|
|
74554
74606
|
]))
|
|
74555
74607
|
: vue.createCommentVNode("v-if", true)
|
|
74556
|
-
]
|
|
74608
|
+
])
|
|
74557
74609
|
], 6 /* CLASS, STYLE */));
|
|
74558
74610
|
};
|
|
74559
74611
|
} }));
|
|
@@ -74725,28 +74777,31 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74725
74777
|
fitInputWidth: { type: Boolean, required: false },
|
|
74726
74778
|
popperAppendToBody: { type: Boolean, required: false }
|
|
74727
74779
|
}, emits: ["update:modelValue", "input"], setup: function (__props, _a) {
|
|
74728
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
74729
74780
|
var expose = _a.expose, emits = _a.emit;
|
|
74730
74781
|
var props = __props;
|
|
74731
74782
|
var BaseAutocompleteRef = vue.ref();
|
|
74783
|
+
vue.onMounted(function () {
|
|
74784
|
+
console.log(BaseAutocompleteRef.value, 'BaseAutocompleteRef');
|
|
74785
|
+
});
|
|
74732
74786
|
var handleInput = function (value) {
|
|
74733
74787
|
emits('update:modelValue', value);
|
|
74734
74788
|
emits('input', value);
|
|
74735
74789
|
};
|
|
74736
74790
|
expose({
|
|
74737
|
-
activated: (
|
|
74738
|
-
blur: (
|
|
74739
|
-
close: (
|
|
74740
|
-
focus: (
|
|
74741
|
-
handleSelect: (
|
|
74742
|
-
handleKeyEnter: (
|
|
74743
|
-
highlightedIndex: (
|
|
74744
|
-
highlight: (
|
|
74745
|
-
inputRef: (
|
|
74746
|
-
loading: (
|
|
74747
|
-
popperRef: (
|
|
74748
|
-
suggestions: (
|
|
74749
|
-
getData: (
|
|
74791
|
+
activated: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.activated; },
|
|
74792
|
+
blur: function () { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.blur) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
74793
|
+
close: function () { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
74794
|
+
focus: function () { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
74795
|
+
handleSelect: function (item) { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.handleSelect) === null || _b === void 0 ? void 0 : _b.call(_a, item); },
|
|
74796
|
+
handleKeyEnter: function () { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.handleKeyEnter) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
74797
|
+
highlightedIndex: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.highlightedIndex; },
|
|
74798
|
+
highlight: function (index) { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.highlight) === null || _b === void 0 ? void 0 : _b.call(_a, index); },
|
|
74799
|
+
inputRef: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.inputRef; },
|
|
74800
|
+
loading: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.loading; },
|
|
74801
|
+
popperRef: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.popperRef; },
|
|
74802
|
+
suggestions: function () { var _a; return (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.suggestions; },
|
|
74803
|
+
getData: function (queryString) { var _a, _b; return (_b = (_a = BaseAutocompleteRef.value) === null || _a === void 0 ? void 0 : _a.getData) === null || _b === void 0 ? void 0 : _b.call(_a, queryString); },
|
|
74804
|
+
getBaseAutocompleteRef: function () { return BaseAutocompleteRef.value; }
|
|
74750
74805
|
});
|
|
74751
74806
|
return function (_ctx, _cache) {
|
|
74752
74807
|
return (vue.openBlock(), vue.createBlock(vue.unref(ElAutocomplete), vue.mergeProps({
|
|
@@ -74794,7 +74849,88 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74794
74849
|
var BaseTextTitle = script$g;
|
|
74795
74850
|
var BaseTextContent = script$f;
|
|
74796
74851
|
|
|
74797
|
-
|
|
74852
|
+
function useResponsiveScroll() {
|
|
74853
|
+
var dialogDom = vue.ref();
|
|
74854
|
+
var dialogBodyDom = vue.ref();
|
|
74855
|
+
var dialogBodyContentDom = vue.ref();
|
|
74856
|
+
var identification = vue.ref(Date.now());
|
|
74857
|
+
var showBoxShadow = vue.ref(false);
|
|
74858
|
+
var resizeObserver = null;
|
|
74859
|
+
/**
|
|
74860
|
+
* 滚动条是否触底
|
|
74861
|
+
* @param bodyDom
|
|
74862
|
+
* @returns
|
|
74863
|
+
*/
|
|
74864
|
+
var isScrolledToBottom = function (bodyDom) {
|
|
74865
|
+
var _a, _b;
|
|
74866
|
+
return (Math.ceil(Math.max(+bodyDom.offsetHeight, +((_b = (_a = bodyDom === null || bodyDom === void 0 ? void 0 : bodyDom.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(bodyDom)) === null || _b === void 0 ? void 0 : _b.height)) + bodyDom.scrollTop) < bodyDom.scrollHeight);
|
|
74867
|
+
};
|
|
74868
|
+
/**
|
|
74869
|
+
* 实时监测滚动,设置底部阴影
|
|
74870
|
+
*/
|
|
74871
|
+
var handleScroll = function () {
|
|
74872
|
+
showBoxShadow.value = isScrolledToBottom(dialogBodyDom.value);
|
|
74873
|
+
};
|
|
74874
|
+
/**
|
|
74875
|
+
* 检测内容高度变化,设置底部阴影
|
|
74876
|
+
*/
|
|
74877
|
+
var checkScrollHeight = function () {
|
|
74878
|
+
var _a, _b;
|
|
74879
|
+
var bodyDom = dialogBodyDom.value;
|
|
74880
|
+
// 是否有滚动条
|
|
74881
|
+
var hasScroll = Math.ceil(Math.max(+bodyDom.offsetHeight, +((_b = (_a = bodyDom === null || bodyDom === void 0 ? void 0 : bodyDom.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(bodyDom)) === null || _b === void 0 ? void 0 : _b.height))) !== bodyDom.scrollHeight;
|
|
74882
|
+
if (hasScroll) {
|
|
74883
|
+
showBoxShadow.value = isScrolledToBottom(bodyDom);
|
|
74884
|
+
if (!bodyDom.scrollListenerAdded) {
|
|
74885
|
+
bodyDom.scrollListenerAdded = true;
|
|
74886
|
+
bodyDom.addEventListener('scroll', handleScroll);
|
|
74887
|
+
}
|
|
74888
|
+
}
|
|
74889
|
+
else {
|
|
74890
|
+
showBoxShadow.value = false;
|
|
74891
|
+
bodyDom.scrollListenerAdded = false;
|
|
74892
|
+
bodyDom.removeEventListener('scroll', handleScroll);
|
|
74893
|
+
}
|
|
74894
|
+
};
|
|
74895
|
+
var clearResizeObserver = function () {
|
|
74896
|
+
var _a, _b;
|
|
74897
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
|
|
74898
|
+
resizeObserver = null;
|
|
74899
|
+
if (dialogBodyDom.value) {
|
|
74900
|
+
showBoxShadow.value = false;
|
|
74901
|
+
dialogBodyDom.value.scrollListenerAdded = false;
|
|
74902
|
+
(_b = (_a = dialogBodyDom.value).removeEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, 'scroll', handleScroll);
|
|
74903
|
+
}
|
|
74904
|
+
};
|
|
74905
|
+
var initResizeObserver = function () {
|
|
74906
|
+
clearResizeObserver();
|
|
74907
|
+
vue.onMounted(function () {
|
|
74908
|
+
vue.nextTick(function () {
|
|
74909
|
+
var _a, _b;
|
|
74910
|
+
var dom = document.querySelector(".base-dialog_".concat(identification.value));
|
|
74911
|
+
if (!dom)
|
|
74912
|
+
return;
|
|
74913
|
+
dialogDom.value = dom;
|
|
74914
|
+
dialogBodyDom.value = (_a = dialogDom.value) === null || _a === void 0 ? void 0 : _a.querySelector('.xrk-dialog__body');
|
|
74915
|
+
dialogBodyContentDom.value = (_b = dialogDom.value) === null || _b === void 0 ? void 0 : _b.querySelector('.xrk-dialog__body__content');
|
|
74916
|
+
resizeObserver = new ResizeObserver(checkScrollHeight);
|
|
74917
|
+
if (dialogBodyContentDom.value) {
|
|
74918
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe(dialogBodyContentDom.value);
|
|
74919
|
+
}
|
|
74920
|
+
});
|
|
74921
|
+
});
|
|
74922
|
+
};
|
|
74923
|
+
vue.onUnmounted(function () { return clearResizeObserver(); });
|
|
74924
|
+
return {
|
|
74925
|
+
showBoxShadow: showBoxShadow,
|
|
74926
|
+
identification: identification,
|
|
74927
|
+
initResizeObserver: initResizeObserver,
|
|
74928
|
+
clearResizeObserver: clearResizeObserver
|
|
74929
|
+
};
|
|
74930
|
+
}
|
|
74931
|
+
|
|
74932
|
+
var _hoisted_1$9 = { class: "xrk-dialog__body__content" };
|
|
74933
|
+
var _hoisted_2$8 = { key: 1 };
|
|
74798
74934
|
var __default__$e = {
|
|
74799
74935
|
name: 'base-dialog'
|
|
74800
74936
|
};
|
|
@@ -74826,9 +74962,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74826
74962
|
var _props = __props;
|
|
74827
74963
|
var props = _props;
|
|
74828
74964
|
var slots = vue.useSlots();
|
|
74965
|
+
var _b = useResponsiveScroll(), identification = _b.identification, showBoxShadow = _b.showBoxShadow, initResizeObserver = _b.initResizeObserver, clearResizeObserver = _b.clearResizeObserver;
|
|
74829
74966
|
var show = vue.ref(props.modelValue || false);
|
|
74830
74967
|
vue.watch(function () { return props.modelValue; }, function (newV) {
|
|
74831
74968
|
show.value = newV || false;
|
|
74969
|
+
if (show.value) {
|
|
74970
|
+
initResizeObserver();
|
|
74971
|
+
}
|
|
74972
|
+
else {
|
|
74973
|
+
clearResizeObserver();
|
|
74974
|
+
}
|
|
74975
|
+
}, {
|
|
74976
|
+
immediate: true
|
|
74832
74977
|
});
|
|
74833
74978
|
var BaseDialogRender = vue.defineComponent({
|
|
74834
74979
|
name: 'dialog-render',
|
|
@@ -74858,6 +75003,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74858
75003
|
done();
|
|
74859
75004
|
_a.label = 3;
|
|
74860
75005
|
case 3:
|
|
75006
|
+
clearResizeObserver();
|
|
74861
75007
|
emits('close');
|
|
74862
75008
|
return [2 /*return*/];
|
|
74863
75009
|
}
|
|
@@ -74881,6 +75027,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74881
75027
|
show.value = false;
|
|
74882
75028
|
_a.label = 3;
|
|
74883
75029
|
case 3:
|
|
75030
|
+
clearResizeObserver();
|
|
74884
75031
|
emits('close');
|
|
74885
75032
|
return [2 /*return*/];
|
|
74886
75033
|
}
|
|
@@ -74901,6 +75048,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74901
75048
|
show.value = false;
|
|
74902
75049
|
_a.label = 3;
|
|
74903
75050
|
case 3:
|
|
75051
|
+
clearResizeObserver();
|
|
74904
75052
|
emits('close');
|
|
74905
75053
|
return [2 /*return*/];
|
|
74906
75054
|
}
|
|
@@ -74911,7 +75059,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74911
75059
|
class: vue.normalizeClass([
|
|
74912
75060
|
__props.customClass || '',
|
|
74913
75061
|
__props.showFooter ? '' : 'hide-footer',
|
|
74914
|
-
!__props.title && !__props.titleRender && !vue.unref(slots).header ? 'hide-title' : ''
|
|
75062
|
+
!__props.title && !__props.titleRender && !vue.unref(slots).header ? 'hide-title' : '',
|
|
75063
|
+
"base-dialog_".concat(vue.unref(identification)),
|
|
75064
|
+
vue.unref(showBoxShadow) ? 'xrk-dialog-has-scrollbar' : ''
|
|
74915
75065
|
].join(' ')),
|
|
74916
75066
|
modelValue: show.value,
|
|
74917
75067
|
closeOnClickModal: __props.closeOnClickModal,
|
|
@@ -74950,7 +75100,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74950
75100
|
render: __props.footerRender
|
|
74951
75101
|
}, null, 8 /* PROPS */, ["render"]))
|
|
74952
75102
|
: (__props.showFooter)
|
|
74953
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
75103
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
|
|
74954
75104
|
('show' in __props.cancelBtnConfig ? __props.cancelBtnConfig.show : true)
|
|
74955
75105
|
? (vue.openBlock(), vue.createBlock(vue.unref(BaseButton), vue.mergeProps({
|
|
74956
75106
|
key: 0,
|
|
@@ -74976,21 +75126,23 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74976
75126
|
]; })
|
|
74977
75127
|
]; }),
|
|
74978
75128
|
default: vue.withCtx(function () { return [
|
|
74979
|
-
vue.
|
|
74980
|
-
(
|
|
74981
|
-
|
|
74982
|
-
|
|
74983
|
-
|
|
74984
|
-
|
|
74985
|
-
|
|
74986
|
-
|
|
74987
|
-
|
|
74988
|
-
vue.
|
|
74989
|
-
|
|
74990
|
-
|
|
74991
|
-
|
|
74992
|
-
|
|
74993
|
-
|
|
75129
|
+
vue.createElementVNode("div", _hoisted_1$9, [
|
|
75130
|
+
vue.renderSlot(_ctx.$slots, "default", {}, function () { return [
|
|
75131
|
+
(__props.contentRender)
|
|
75132
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseDialogRender), {
|
|
75133
|
+
key: 0,
|
|
75134
|
+
render: __props.contentRender
|
|
75135
|
+
}, null, 8 /* PROPS */, ["render"]))
|
|
75136
|
+
: (__props.content)
|
|
75137
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseTextContent), { key: 1 }, {
|
|
75138
|
+
default: vue.withCtx(function () { return [
|
|
75139
|
+
vue.createTextVNode(vue.toDisplayString(__props.content), 1 /* TEXT */)
|
|
75140
|
+
]; }),
|
|
75141
|
+
_: 1 /* STABLE */
|
|
75142
|
+
}))
|
|
75143
|
+
: vue.createCommentVNode("v-if", true)
|
|
75144
|
+
]; })
|
|
75145
|
+
])
|
|
74994
75146
|
]; }),
|
|
74995
75147
|
_: 3 /* FORWARDED */
|
|
74996
75148
|
}, 8 /* PROPS */, ["class", "modelValue", "closeOnClickModal", "closeOnPressEscape", "appendToBody", "destroyOnClose", "center", "align-center", "width", "showClose"]));
|
|
@@ -75078,7 +75230,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75078
75230
|
_hoisted_3$7,
|
|
75079
75231
|
_hoisted_4$6
|
|
75080
75232
|
];
|
|
75081
|
-
var _hoisted_6$
|
|
75233
|
+
var _hoisted_6$5 = {
|
|
75082
75234
|
key: 1,
|
|
75083
75235
|
width: "200px",
|
|
75084
75236
|
height: "200px",
|
|
@@ -75086,27 +75238,27 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75086
75238
|
version: "1.1",
|
|
75087
75239
|
xmlns: "http://www.w3.org/2000/svg"
|
|
75088
75240
|
};
|
|
75089
|
-
var _hoisted_7$
|
|
75241
|
+
var _hoisted_7$5 = /*#__PURE__*/ vue.createElementVNode("path", {
|
|
75090
75242
|
d: "M967.111111 281.6V910.222222c0 62.862222-50.915556 113.777778-113.777778 113.777778H170.666667c-62.862222 0-113.777778-50.915556-113.777778-113.777778V113.777778c0-62.862222 50.915556-113.777778 113.777778-113.777778h514.844444L967.111111 281.6z",
|
|
75091
75243
|
fill: "#C386F0"
|
|
75092
75244
|
}, null, -1 /* HOISTED */);
|
|
75093
|
-
var _hoisted_8$
|
|
75245
|
+
var _hoisted_8$5 = /*#__PURE__*/ vue.createElementVNode("path", {
|
|
75094
75246
|
d: "M284.444444 398.222222m42.666667 0l298.666667 0q42.666667 0 42.666666 42.666667l0 234.666667q0 42.666667-42.666666 42.666666l-298.666667 0q-42.666667 0-42.666667-42.666666l0-234.666667q0-42.666667 42.666667-42.666667Z",
|
|
75095
75247
|
fill: "#FFFFFF"
|
|
75096
75248
|
}, null, -1 /* HOISTED */);
|
|
75097
|
-
var _hoisted_9$
|
|
75249
|
+
var _hoisted_9$4 = /*#__PURE__*/ vue.createElementVNode("path", {
|
|
75098
75250
|
d: "M738.417778 457.841778a31.971556 31.971556 0 0 1 48.014222 27.676444v154.538667c0 24.632889-26.652444 40.021333-47.985778 27.704889L684.430222 636.586667V488.96z",
|
|
75099
75251
|
fill: "#FFFFFF"
|
|
75100
75252
|
}, null, -1 /* HOISTED */);
|
|
75101
|
-
var _hoisted_10$
|
|
75253
|
+
var _hoisted_10$4 = /*#__PURE__*/ vue.createElementVNode("path", {
|
|
75102
75254
|
d: "M685.511111 167.822222V0L967.111111 281.6H799.288889c-62.862222 0-113.777778-50.915556-113.777778-113.777778",
|
|
75103
75255
|
fill: "#A15FDE"
|
|
75104
75256
|
}, null, -1 /* HOISTED */);
|
|
75105
75257
|
var _hoisted_11$2 = [
|
|
75106
|
-
_hoisted_7$
|
|
75107
|
-
_hoisted_8$
|
|
75108
|
-
_hoisted_9$
|
|
75109
|
-
_hoisted_10$
|
|
75258
|
+
_hoisted_7$5,
|
|
75259
|
+
_hoisted_8$5,
|
|
75260
|
+
_hoisted_9$4,
|
|
75261
|
+
_hoisted_10$4
|
|
75110
75262
|
];
|
|
75111
75263
|
var _hoisted_12$2 = {
|
|
75112
75264
|
key: 2,
|
|
@@ -75363,7 +75515,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75363
75515
|
(vue.unref(isExcel))
|
|
75364
75516
|
? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, _hoisted_5$6))
|
|
75365
75517
|
: (vue.unref(isVideo))
|
|
75366
|
-
? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_6$
|
|
75518
|
+
? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_6$5, _hoisted_11$2))
|
|
75367
75519
|
: (vue.unref(isPdf))
|
|
75368
75520
|
? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_12$2, _hoisted_16))
|
|
75369
75521
|
: (vue.unref(isImg))
|
|
@@ -75458,9 +75610,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75458
75610
|
ElMessage.closeAll(type);
|
|
75459
75611
|
};
|
|
75460
75612
|
|
|
75461
|
-
var _withScopeId$
|
|
75613
|
+
var _withScopeId$4 = function (n) { return (vue.pushScopeId("data-v-75b461d5"), n = n(), vue.popScopeId(), n); };
|
|
75462
75614
|
var _hoisted_1$7 = { class: "base-upload" };
|
|
75463
|
-
var _hoisted_2$6 = /*#__PURE__*/ _withScopeId$
|
|
75615
|
+
var _hoisted_2$6 = /*#__PURE__*/ _withScopeId$4(function () { return vue.createElementVNode("svg", {
|
|
75464
75616
|
viewBox: "0 0 1024 1024",
|
|
75465
75617
|
xmlns: "http://www.w3.org/2000/svg"
|
|
75466
75618
|
}, [
|
|
@@ -75469,17 +75621,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75469
75621
|
d: "M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"
|
|
75470
75622
|
})
|
|
75471
75623
|
], -1 /* HOISTED */); });
|
|
75472
|
-
var _hoisted_3$6 = /*#__PURE__*/ _withScopeId$
|
|
75624
|
+
var _hoisted_3$6 = /*#__PURE__*/ _withScopeId$4(function () { return vue.createElementVNode("div", { class: "xrk-upload__text" }, [
|
|
75473
75625
|
/*#__PURE__*/ vue.createTextVNode(" 将文件拖到此处,或 "),
|
|
75474
75626
|
/*#__PURE__*/ vue.createElementVNode("em", null, "点击上传")
|
|
75475
75627
|
], -1 /* HOISTED */); });
|
|
75476
75628
|
var _hoisted_4$5 = { class: "xrk-upload__text--right" };
|
|
75477
75629
|
var _hoisted_5$5 = { class: "c" };
|
|
75478
|
-
var _hoisted_6$
|
|
75479
|
-
var _hoisted_7$
|
|
75480
|
-
var _hoisted_8$
|
|
75481
|
-
var _hoisted_9$
|
|
75482
|
-
var _hoisted_10$
|
|
75630
|
+
var _hoisted_6$4 = ["onClick"];
|
|
75631
|
+
var _hoisted_7$4 = ["onClick"];
|
|
75632
|
+
var _hoisted_8$4 = ["src"];
|
|
75633
|
+
var _hoisted_9$3 = { class: "xrk-upload__item_img_operate" };
|
|
75634
|
+
var _hoisted_10$3 = ["onClick"];
|
|
75483
75635
|
var _hoisted_11$1 = ["onClick"];
|
|
75484
75636
|
var _hoisted_12$1 = { class: "xrk-upload__tip" };
|
|
75485
75637
|
var __default__$c = {
|
|
@@ -75841,7 +75993,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75841
75993
|
]; }),
|
|
75842
75994
|
_: 1 /* STABLE */
|
|
75843
75995
|
})
|
|
75844
|
-
], 8 /* PROPS */, _hoisted_6$
|
|
75996
|
+
], 8 /* PROPS */, _hoisted_6$4))
|
|
75845
75997
|
: vue.createCommentVNode("v-if", true),
|
|
75846
75998
|
(!__props.disabled)
|
|
75847
75999
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -75858,7 +76010,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75858
76010
|
]; }),
|
|
75859
76011
|
_: 1 /* STABLE */
|
|
75860
76012
|
})
|
|
75861
|
-
], 8 /* PROPS */, _hoisted_7$
|
|
76013
|
+
], 8 /* PROPS */, _hoisted_7$4))
|
|
75862
76014
|
: vue.createCommentVNode("v-if", true)
|
|
75863
76015
|
]));
|
|
75864
76016
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -75872,8 +76024,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75872
76024
|
vue.createElementVNode("img", {
|
|
75873
76025
|
src: getImgUrl(item),
|
|
75874
76026
|
alt: ""
|
|
75875
|
-
}, null, 8 /* PROPS */, _hoisted_8$
|
|
75876
|
-
vue.createElementVNode("div", _hoisted_9$
|
|
76027
|
+
}, null, 8 /* PROPS */, _hoisted_8$4),
|
|
76028
|
+
vue.createElementVNode("div", _hoisted_9$3, [
|
|
75877
76029
|
vue.createElementVNode("div", {
|
|
75878
76030
|
onClick: function ($event) { return (handleFilePreview(index)); }
|
|
75879
76031
|
}, [
|
|
@@ -75886,7 +76038,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75886
76038
|
]; }),
|
|
75887
76039
|
_: 1 /* STABLE */
|
|
75888
76040
|
})
|
|
75889
|
-
], 8 /* PROPS */, _hoisted_10$
|
|
76041
|
+
], 8 /* PROPS */, _hoisted_10$3)
|
|
75890
76042
|
]),
|
|
75891
76043
|
(!__props.disabled)
|
|
75892
76044
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -76457,7 +76609,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76457
76609
|
label: { type: String, required: false },
|
|
76458
76610
|
columnKey: { type: String, required: false },
|
|
76459
76611
|
width: { type: [String, Number], required: false },
|
|
76460
|
-
minWidth: { type: [String, Number], required: false },
|
|
76612
|
+
minWidth: { type: [String, Number], required: false, default: useGetGlobalDefaultProp(propsKey, 'minWidth', 150) },
|
|
76461
76613
|
fixed: { type: [Boolean, String], required: false },
|
|
76462
76614
|
sortable: { type: [Boolean, String], required: false },
|
|
76463
76615
|
sortMethod: { type: Function, required: false },
|
|
@@ -76473,7 +76625,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76473
76625
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
76474
76626
|
formatter: { type: Function, required: false, default: function (_a) {
|
|
76475
76627
|
var cellValue = _a.cellValue;
|
|
76476
|
-
|
|
76628
|
+
if (cellValue || cellValue === 0)
|
|
76629
|
+
return cellValue;
|
|
76630
|
+
return '-';
|
|
76477
76631
|
} },
|
|
76478
76632
|
render: { type: Function, required: false },
|
|
76479
76633
|
selectionDisabled: { type: [Function, Boolean], required: false },
|
|
@@ -76501,6 +76655,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76501
76655
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76502
76656
|
var _selectionAllLoading = vue.ref(false);
|
|
76503
76657
|
var _selectionRowLoading = vue.ref(false);
|
|
76658
|
+
var getFixed = vue.computed(function () {
|
|
76659
|
+
if (props === null || props === void 0 ? void 0 : props.type)
|
|
76660
|
+
return (props === null || props === void 0 ? void 0 : props.fixed) || 'left';
|
|
76661
|
+
if ((props === null || props === void 0 ? void 0 : props.label) === '操作')
|
|
76662
|
+
return (props === null || props === void 0 ? void 0 : props.fixed) || 'right';
|
|
76663
|
+
return props === null || props === void 0 ? void 0 : props.fixed;
|
|
76664
|
+
});
|
|
76504
76665
|
var getAlign = vue.computed(function () {
|
|
76505
76666
|
if ((props === null || props === void 0 ? void 0 : props.type) || (props === null || props === void 0 ? void 0 : props.label) === '操作')
|
|
76506
76667
|
return (props === null || props === void 0 ? void 0 : props.align) || 'center';
|
|
@@ -76784,7 +76945,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76784
76945
|
columnKey: __props.columnKey,
|
|
76785
76946
|
width: __props.width,
|
|
76786
76947
|
minWidth: __props.minWidth,
|
|
76787
|
-
fixed:
|
|
76948
|
+
fixed: vue.unref(getFixed),
|
|
76788
76949
|
sortable: __props.sortable,
|
|
76789
76950
|
sortMethod: __props.sortMethod,
|
|
76790
76951
|
sortBy: __props.sortBy,
|
|
@@ -76879,17 +77040,49 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76879
77040
|
script$9.__file = "packages/base/table/table-column.vue";
|
|
76880
77041
|
|
|
76881
77042
|
var useTableColumn$1 = function (props) {
|
|
76882
|
-
return __assign({ minWidth: '
|
|
77043
|
+
return __assign({ minWidth: useGetGlobalDefaultProp('table-column', 'minWidth', 150), width: props.type === 'index' ? '90px' : '' }, props);
|
|
76883
77044
|
};
|
|
76884
77045
|
|
|
76885
77046
|
var BaseTable = script$a;
|
|
76886
77047
|
var BaseTableColumn = script$9;
|
|
76887
77048
|
var useTableColumn = useTableColumn$1;
|
|
76888
77049
|
|
|
77050
|
+
var useResponsiveHeight = function (config) {
|
|
77051
|
+
var resizeObserver = null;
|
|
77052
|
+
var identification = config.identification;
|
|
77053
|
+
var updateHieght = function () {
|
|
77054
|
+
clearResizeObserver();
|
|
77055
|
+
var header = document.querySelector(".xrk-table-content_".concat(identification, " .xrk-table__header thead tr"));
|
|
77056
|
+
var rows = document.querySelectorAll(".xrk-table-content_".concat(identification, " .xrk-table__body tbody tr"));
|
|
77057
|
+
var headerHeight = Math.max(0, ((header === null || header === void 0 ? void 0 : header.offsetHeight) || 0) - 1);
|
|
77058
|
+
var rowsHeight = Array.from(rows || []).reduce(function (total, row) { return total + Math.max(0, (row === null || row === void 0 ? void 0 : row.offsetHeight) || 0); }, 0);
|
|
77059
|
+
var baseHeight = Math.max(0, headerHeight + rowsHeight);
|
|
77060
|
+
config.minHeight.value = Math.min(baseHeight, 200) + 'px';
|
|
77061
|
+
};
|
|
77062
|
+
var setResizeObserver = function () {
|
|
77063
|
+
clearResizeObserver();
|
|
77064
|
+
vue.nextTick(function () {
|
|
77065
|
+
resizeObserver = new ResizeObserver(updateHieght);
|
|
77066
|
+
var dom = document.querySelector(".xrk-table-content_".concat(identification));
|
|
77067
|
+
if (dom)
|
|
77068
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.observe(dom);
|
|
77069
|
+
});
|
|
77070
|
+
};
|
|
77071
|
+
var clearResizeObserver = function () {
|
|
77072
|
+
resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();
|
|
77073
|
+
resizeObserver = null;
|
|
77074
|
+
};
|
|
77075
|
+
setResizeObserver();
|
|
77076
|
+
vue.onUnmounted(function () {
|
|
77077
|
+
clearResizeObserver();
|
|
77078
|
+
});
|
|
77079
|
+
};
|
|
77080
|
+
|
|
76889
77081
|
var useTable = function (config) {
|
|
76890
77082
|
var pageIsLoading = vue.ref(false);
|
|
76891
77083
|
var pageAllData = vue.ref([]);
|
|
76892
77084
|
var paginationTotal = vue.ref(0);
|
|
77085
|
+
var currentParams = vue.ref({});
|
|
76893
77086
|
var getList = function (query) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76894
77087
|
var res, error_1;
|
|
76895
77088
|
var _a, _b, _c, _d;
|
|
@@ -76903,12 +77096,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76903
77096
|
case 1:
|
|
76904
77097
|
_e.trys.push([1, 4, , 5]);
|
|
76905
77098
|
if (!isFunction(config.getListAjax)) return [3 /*break*/, 3];
|
|
77099
|
+
currentParams.value = query;
|
|
76906
77100
|
return [4 /*yield*/, config.getListAjax(query)];
|
|
76907
77101
|
case 2:
|
|
76908
77102
|
res = _e.sent();
|
|
76909
77103
|
pageAllData.value = res.data.list;
|
|
76910
77104
|
paginationTotal.value =
|
|
76911
77105
|
(_d = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.total) !== null && _b !== void 0 ? _b : ((_c = res.data) === null || _c === void 0 ? void 0 : _c.pages) * (config === null || config === void 0 ? void 0 : config.pageSize)) !== null && _d !== void 0 ? _d : 0;
|
|
77106
|
+
useResponsiveHeight(config);
|
|
76912
77107
|
_e.label = 3;
|
|
76913
77108
|
case 3: return [3 /*break*/, 5];
|
|
76914
77109
|
case 4:
|
|
@@ -76925,7 +77120,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76925
77120
|
pageIsLoading: pageIsLoading,
|
|
76926
77121
|
pageAllData: pageAllData,
|
|
76927
77122
|
paginationTotal: paginationTotal,
|
|
76928
|
-
getList: getList
|
|
77123
|
+
getList: getList,
|
|
77124
|
+
currentParams: currentParams
|
|
76929
77125
|
};
|
|
76930
77126
|
};
|
|
76931
77127
|
|
|
@@ -76953,10 +77149,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76953
77149
|
script$8.__scopeId = "data-v-4fbb1d70";
|
|
76954
77150
|
script$8.__file = "packages/base/layout/flex-content.vue";
|
|
76955
77151
|
|
|
76956
|
-
var _withScopeId$
|
|
77152
|
+
var _withScopeId$3 = function (n) { return (vue.pushScopeId("data-v-cbf300d0"), n = n(), vue.popScopeId(), n); };
|
|
76957
77153
|
var _hoisted_1$5 = { class: "base-layout-header" };
|
|
76958
77154
|
var _hoisted_2$5 = { class: "left" };
|
|
76959
|
-
var _hoisted_3$5 = /*#__PURE__*/ _withScopeId$
|
|
77155
|
+
var _hoisted_3$5 = /*#__PURE__*/ _withScopeId$3(function () { return vue.createElementVNode("svg", {
|
|
76960
77156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
76961
77157
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
76962
77158
|
fill: "none",
|
|
@@ -77012,7 +77208,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77012
77208
|
(vue.unref(slots).headerLeftName)
|
|
77013
77209
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).headerLeftName), { key: 0 }))
|
|
77014
77210
|
: (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$4, vue.toDisplayString(__props.appName), 1 /* TEXT */))
|
|
77015
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
77211
|
+
], 64 /* STABLE_FRAGMENT */)),
|
|
77212
|
+
(vue.unref(slots).topMenus)
|
|
77213
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(slots).topMenus), { key: 2 }))
|
|
77214
|
+
: vue.createCommentVNode("v-if", true)
|
|
77016
77215
|
]),
|
|
77017
77216
|
vue.createElementVNode("div", _hoisted_5$4, [
|
|
77018
77217
|
(vue.unref(slots).headerRight)
|
|
@@ -77109,16 +77308,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77109
77308
|
script$5.__scopeId = "data-v-b5383626";
|
|
77110
77309
|
script$5.__file = "packages/base/layout/body.vue";
|
|
77111
77310
|
|
|
77112
|
-
var _withScopeId$
|
|
77311
|
+
var _withScopeId$2 = function (n) { return (vue.pushScopeId("data-v-1bea9a2a"), n = n(), vue.popScopeId(), n); };
|
|
77113
77312
|
var _hoisted_1$3 = { class: "main-menu" };
|
|
77114
77313
|
var _hoisted_2$3 = ["name"];
|
|
77115
77314
|
var _hoisted_3$3 = ["src"];
|
|
77116
77315
|
var _hoisted_4$3 = ["onClick", "name", "onMouseenter"];
|
|
77117
77316
|
var _hoisted_5$3 = ["onClick"];
|
|
77118
|
-
var _hoisted_6$
|
|
77119
|
-
var _hoisted_7$
|
|
77120
|
-
var _hoisted_8$
|
|
77121
|
-
var _hoisted_9$
|
|
77317
|
+
var _hoisted_6$3 = ["id"];
|
|
77318
|
+
var _hoisted_7$3 = ["name"];
|
|
77319
|
+
var _hoisted_8$3 = ["src"];
|
|
77320
|
+
var _hoisted_9$2 = /*#__PURE__*/ _withScopeId$2(function () { return vue.createElementVNode("i", { class: "xrk-icon xrk-collapse-item__arrow" }, [
|
|
77122
77321
|
/*#__PURE__*/ vue.createElementVNode("svg", {
|
|
77123
77322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
77124
77323
|
viewBox: "0 0 1024 1024"
|
|
@@ -77129,7 +77328,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77129
77328
|
})
|
|
77130
77329
|
])
|
|
77131
77330
|
], -1 /* HOISTED */); });
|
|
77132
|
-
var _hoisted_10$
|
|
77331
|
+
var _hoisted_10$2 = { class: "content" };
|
|
77133
77332
|
var _hoisted_11 = ["onClick"];
|
|
77134
77333
|
var _hoisted_12 = ["onClick"];
|
|
77135
77334
|
var __default__$4 = {
|
|
@@ -77279,12 +77478,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77279
77478
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
77280
77479
|
key: 0,
|
|
77281
77480
|
src: menu.icon
|
|
77282
|
-
}, null, 8 /* PROPS */, _hoisted_8$
|
|
77481
|
+
}, null, 8 /* PROPS */, _hoisted_8$3))
|
|
77283
77482
|
: vue.createCommentVNode("v-if", true),
|
|
77284
77483
|
vue.createElementVNode("span", null, vue.toDisplayString(menu.name), 1 /* TEXT */)
|
|
77285
|
-
], 8 /* PROPS */, _hoisted_7$
|
|
77286
|
-
_hoisted_9$
|
|
77287
|
-
], 10 /* CLASS, PROPS */, _hoisted_6$
|
|
77484
|
+
], 8 /* PROPS */, _hoisted_7$3),
|
|
77485
|
+
_hoisted_9$2
|
|
77486
|
+
], 10 /* CLASS, PROPS */, _hoisted_6$3)
|
|
77288
77487
|
], 8 /* PROPS */, _hoisted_5$3))
|
|
77289
77488
|
], 64 /* STABLE_FRAGMENT */));
|
|
77290
77489
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -77297,7 +77496,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77297
77496
|
onMouseenter: _cache[1] || (_cache[1] = function () { return vue.unref(onMouseEnterSubMenu)(); }),
|
|
77298
77497
|
onMouseleave: _cache[2] || (_cache[2] = function () { return vue.unref(onMouseLeaveSubMenu)(); })
|
|
77299
77498
|
}, [
|
|
77300
|
-
vue.createElementVNode("div", _hoisted_10$
|
|
77499
|
+
vue.createElementVNode("div", _hoisted_10$2, [
|
|
77301
77500
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(activeSubMenu).menuList || [], function (item) {
|
|
77302
77501
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
77303
77502
|
class: "menu",
|
|
@@ -77332,16 +77531,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77332
77531
|
var _hoisted_3$2 = ["src"];
|
|
77333
77532
|
var _hoisted_4$2 = { key: 0 };
|
|
77334
77533
|
var _hoisted_5$2 = ["onClick"];
|
|
77335
|
-
var _hoisted_6$
|
|
77336
|
-
var _hoisted_7$
|
|
77337
|
-
var _hoisted_8$
|
|
77534
|
+
var _hoisted_6$2 = ["id"];
|
|
77535
|
+
var _hoisted_7$2 = ["name"];
|
|
77536
|
+
var _hoisted_8$2 = ["src"];
|
|
77338
77537
|
var __default__$3 = {
|
|
77339
77538
|
name: 'base-layout-menu'
|
|
77340
77539
|
};
|
|
77341
77540
|
var script$3 = /*#__PURE__*/ vue.defineComponent(__assign(__assign({}, __default__$3), { props: {
|
|
77342
77541
|
menus: { type: [Array, null], required: true },
|
|
77343
77542
|
menusMap: { type: Map, required: true },
|
|
77344
|
-
level: { type: Number, required: false, default: 0 }
|
|
77543
|
+
level: { type: Number, required: false, default: 0 },
|
|
77544
|
+
menuType: { type: String, required: true }
|
|
77345
77545
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
77346
77546
|
var emits = _a.emit;
|
|
77347
77547
|
var props = __props;
|
|
@@ -77349,7 +77549,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77349
77549
|
var menuClassName = 'menu-name-one';
|
|
77350
77550
|
var menusRef = vue.ref();
|
|
77351
77551
|
var activeMenus = vue.ref([]);
|
|
77552
|
+
var activeCollapse = vue.ref('');
|
|
77352
77553
|
var _menus = vue.ref([]);
|
|
77554
|
+
var showIcon = function (menu) {
|
|
77555
|
+
var num = props.menuType === 'horizontal' ? 1 : 0;
|
|
77556
|
+
return props.level === num && menu.icon;
|
|
77557
|
+
};
|
|
77353
77558
|
var paddingLeft = vue.computed(function () {
|
|
77354
77559
|
if (props.level === 0)
|
|
77355
77560
|
return (props.level + 1) * 12 + 'px';
|
|
@@ -77369,6 +77574,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77369
77574
|
// 优先使用meta.parentPath,这种参数路由不会注册到menu中,例如详情页面。如果有该值则使用父级path。
|
|
77370
77575
|
activeMenus.value =
|
|
77371
77576
|
props.menusMap.get(((_d = _route === null || _route === void 0 ? void 0 : _route.meta) === null || _d === void 0 ? void 0 : _d.parentPath) || (_route === null || _route === void 0 ? void 0 : _route.path)) || [];
|
|
77577
|
+
activeCollapse.value =
|
|
77578
|
+
activeMenus.value[props.menuType === 'vertical' ? props.level : props.level + 1];
|
|
77372
77579
|
};
|
|
77373
77580
|
vue.watch(function () { var _a, _b, _c; return (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route; }, function () {
|
|
77374
77581
|
onHashChange();
|
|
@@ -77377,12 +77584,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77377
77584
|
var _copyNewMenus = JSON.parse(JSON.stringify(newMenus));
|
|
77378
77585
|
_menus.value = _copyNewMenus;
|
|
77379
77586
|
onHashChange();
|
|
77380
|
-
|
|
77381
|
-
|
|
77382
|
-
|
|
77383
|
-
|
|
77384
|
-
|
|
77385
|
-
}
|
|
77587
|
+
// nextTick(() => {
|
|
77588
|
+
// menusRef.value?.scrollTo({
|
|
77589
|
+
// top:
|
|
77590
|
+
// Reflect.get(
|
|
77591
|
+
// document.querySelector(
|
|
77592
|
+
// `.${menuClassName}[name="${activeMenus.value[0]}"]`
|
|
77593
|
+
// ) || {},
|
|
77594
|
+
// 'offsetTop'
|
|
77595
|
+
// ) || 0
|
|
77596
|
+
// });
|
|
77597
|
+
// });
|
|
77386
77598
|
}, { immediate: true });
|
|
77387
77599
|
return function (_ctx, _cache) {
|
|
77388
77600
|
var _component_base_layout_menu = vue.resolveComponent("base-layout-menu");
|
|
@@ -77394,7 +77606,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77394
77606
|
vue.createElementVNode("div", _hoisted_1$2, [
|
|
77395
77607
|
vue.createVNode(vue.unref(ElCollapse), {
|
|
77396
77608
|
style: { "--xrk-collapse-border-color": "transparent" },
|
|
77397
|
-
|
|
77609
|
+
modelValue: activeCollapse.value,
|
|
77610
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return ((activeCollapse).value = $event); }),
|
|
77398
77611
|
accordion: ""
|
|
77399
77612
|
}, {
|
|
77400
77613
|
default: vue.withCtx(function () { return [
|
|
@@ -77415,7 +77628,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77415
77628
|
name: menu.url,
|
|
77416
77629
|
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77417
77630
|
}, [
|
|
77418
|
-
(
|
|
77631
|
+
(showIcon(menu))
|
|
77419
77632
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
77420
77633
|
key: 0,
|
|
77421
77634
|
src: menu.icon
|
|
@@ -77430,11 +77643,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77430
77643
|
(checkHasChild(menu))
|
|
77431
77644
|
? (vue.openBlock(), vue.createBlock(_component_base_layout_menu, {
|
|
77432
77645
|
key: 0,
|
|
77646
|
+
menuType: __props.menuType,
|
|
77433
77647
|
menus: menu.menuList,
|
|
77434
77648
|
menusMap: __props.menusMap,
|
|
77435
77649
|
level: __props.level + 1,
|
|
77436
77650
|
onMenuClick: function (menu) { return emits('menuClick', menu); }
|
|
77437
|
-
}, null, 8 /* PROPS */, ["menus", "menusMap", "level", "onMenuClick"]))
|
|
77651
|
+
}, null, 8 /* PROPS */, ["menuType", "menus", "menusMap", "level", "onMenuClick"]))
|
|
77438
77652
|
: vue.createCommentVNode("v-if", true)
|
|
77439
77653
|
]))
|
|
77440
77654
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -77459,21 +77673,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77459
77673
|
class: vue.normalizeClass(menuClassName),
|
|
77460
77674
|
name: menu.name
|
|
77461
77675
|
}, [
|
|
77462
|
-
(
|
|
77676
|
+
(showIcon(menu))
|
|
77463
77677
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
77464
77678
|
key: 0,
|
|
77465
77679
|
src: menu.icon
|
|
77466
|
-
}, null, 8 /* PROPS */, _hoisted_8$
|
|
77680
|
+
}, null, 8 /* PROPS */, _hoisted_8$2))
|
|
77467
77681
|
: vue.createCommentVNode("v-if", true),
|
|
77468
77682
|
vue.createElementVNode("span", null, vue.toDisplayString(menu.name), 1 /* TEXT */)
|
|
77469
|
-
], 12 /* STYLE, PROPS */, _hoisted_7$
|
|
77470
|
-
], 10 /* CLASS, PROPS */, _hoisted_6$
|
|
77683
|
+
], 12 /* STYLE, PROPS */, _hoisted_7$2)
|
|
77684
|
+
], 10 /* CLASS, PROPS */, _hoisted_6$2)
|
|
77471
77685
|
], 8 /* PROPS */, _hoisted_5$2))
|
|
77472
77686
|
], 64 /* STABLE_FRAGMENT */));
|
|
77473
77687
|
}), 128 /* KEYED_FRAGMENT */))
|
|
77474
77688
|
]; }),
|
|
77475
77689
|
_: 1 /* STABLE */
|
|
77476
|
-
}, 8 /* PROPS */, ["
|
|
77690
|
+
}, 8 /* PROPS */, ["modelValue"])
|
|
77477
77691
|
])
|
|
77478
77692
|
], 512 /* NEED_PATCH */));
|
|
77479
77693
|
};
|
|
@@ -77482,14 +77696,25 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77482
77696
|
script$3.__scopeId = "data-v-cbc34618";
|
|
77483
77697
|
script$3.__file = "packages/base/layout/menu-fold.vue";
|
|
77484
77698
|
|
|
77699
|
+
var _withScopeId$1 = function (n) { return (vue.pushScopeId("data-v-3f66cd84"), n = n(), vue.popScopeId(), n); };
|
|
77485
77700
|
var _hoisted_1$1 = { class: "base-layout-main" };
|
|
77486
|
-
var _hoisted_2$1 = {
|
|
77701
|
+
var _hoisted_2$1 = { class: "menu-top" };
|
|
77702
|
+
var _hoisted_3$1 = {
|
|
77487
77703
|
key: 1,
|
|
77488
77704
|
class: "menu-top"
|
|
77489
77705
|
};
|
|
77490
|
-
var _hoisted_3$1 = { style: { "display": "flex", "width": "fit-content" } };
|
|
77491
77706
|
var _hoisted_4$1 = ["onClick"];
|
|
77492
|
-
var _hoisted_5$1 = {
|
|
77707
|
+
var _hoisted_5$1 = {
|
|
77708
|
+
key: 0,
|
|
77709
|
+
class: "active-line"
|
|
77710
|
+
};
|
|
77711
|
+
var _hoisted_6$1 = /*#__PURE__*/ _withScopeId$1(function () { return vue.createElementVNode("p", null, null, -1 /* HOISTED */); });
|
|
77712
|
+
var _hoisted_7$1 = [
|
|
77713
|
+
_hoisted_6$1
|
|
77714
|
+
];
|
|
77715
|
+
var _hoisted_8$1 = { key: 0 };
|
|
77716
|
+
var _hoisted_9$1 = /*#__PURE__*/ vue.createTextVNode("更多");
|
|
77717
|
+
var _hoisted_10$1 = { class: "content" };
|
|
77493
77718
|
var __default__$2 = {
|
|
77494
77719
|
name: 'base-layout-main'
|
|
77495
77720
|
};
|
|
@@ -77516,17 +77741,51 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77516
77741
|
}
|
|
77517
77742
|
return !props.hideMenu;
|
|
77518
77743
|
});
|
|
77744
|
+
var menuRoot = vue.computed(function () {
|
|
77745
|
+
var menuData = menuBase.value.filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); });
|
|
77746
|
+
if (!isSimpleNum.value)
|
|
77747
|
+
return menuData;
|
|
77748
|
+
return menuData.splice(0, isSimpleNum.value);
|
|
77749
|
+
});
|
|
77750
|
+
var isSimpleNum = vue.ref(null);
|
|
77751
|
+
var handleResize = function () {
|
|
77752
|
+
var width = window.innerWidth;
|
|
77753
|
+
if (width <= 1000) {
|
|
77754
|
+
isSimpleNum.value = 3;
|
|
77755
|
+
}
|
|
77756
|
+
else if (width <= 1100) {
|
|
77757
|
+
isSimpleNum.value = 5;
|
|
77758
|
+
}
|
|
77759
|
+
else if (width <= 1200) {
|
|
77760
|
+
isSimpleNum.value = 6;
|
|
77761
|
+
}
|
|
77762
|
+
else if (width <= 1300) {
|
|
77763
|
+
isSimpleNum.value = 8;
|
|
77764
|
+
}
|
|
77765
|
+
else {
|
|
77766
|
+
isSimpleNum.value = null;
|
|
77767
|
+
}
|
|
77768
|
+
};
|
|
77769
|
+
vue.onMounted(function () {
|
|
77770
|
+
if (props.menuType === 'horizontal') {
|
|
77771
|
+
handleResize();
|
|
77772
|
+
window.addEventListener('resize', handleResize);
|
|
77773
|
+
}
|
|
77774
|
+
});
|
|
77775
|
+
vue.onUnmounted(function () {
|
|
77776
|
+
window.removeEventListener('resize', handleResize);
|
|
77777
|
+
});
|
|
77519
77778
|
var dateNow = Date.now();
|
|
77520
|
-
var menusMap = new Map();
|
|
77779
|
+
var menusMap = vue.ref(new Map());
|
|
77521
77780
|
var currentMenu = vue.ref();
|
|
77522
77781
|
var menuBase = vue.computed(function () {
|
|
77523
77782
|
var menuArr = props.menus.map(function (menu, index) {
|
|
77524
77783
|
return __assign(__assign({}, menu), { menuKey: (menu === null || menu === void 0 ? void 0 : menu.menuKey) || index + dateNow, url: (menu === null || menu === void 0 ? void 0 : menu.url) || index + dateNow });
|
|
77525
77784
|
});
|
|
77526
|
-
setMenuMap(menuArr, menusMap);
|
|
77785
|
+
setMenuMap(menuArr, menusMap.value);
|
|
77527
77786
|
return menuArr;
|
|
77528
77787
|
});
|
|
77529
|
-
setMenuMap(menuBase.value, menusMap);
|
|
77788
|
+
setMenuMap(menuBase.value, menusMap.value);
|
|
77530
77789
|
var onMenuClick = function (menu) {
|
|
77531
77790
|
var _a, _b, _c, _d;
|
|
77532
77791
|
currentMenu.value = menu;
|
|
@@ -77543,7 +77802,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77543
77802
|
var _route_1 = (_c = (_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.appContext) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.globalProperties) === null || _c === void 0 ? void 0 : _c.$route;
|
|
77544
77803
|
currentMenu.value = menuBase.value.find(function (item) {
|
|
77545
77804
|
var _a;
|
|
77546
|
-
var arr = menusMap.get(((_a = _route_1 === null || _route_1 === void 0 ? void 0 : _route_1.meta) === null || _a === void 0 ? void 0 : _a.parentPath) || (_route_1 === null || _route_1 === void 0 ? void 0 : _route_1.path)) || [];
|
|
77805
|
+
var arr = menusMap.value.get(((_a = _route_1 === null || _route_1 === void 0 ? void 0 : _route_1.meta) === null || _a === void 0 ? void 0 : _a.parentPath) || (_route_1 === null || _route_1 === void 0 ? void 0 : _route_1.path)) || [];
|
|
77547
77806
|
return arr.includes(item.url);
|
|
77548
77807
|
});
|
|
77549
77808
|
menuList.value = ((_d = currentMenu.value) === null || _d === void 0 ? void 0 : _d.menuList) || [];
|
|
@@ -77569,7 +77828,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77569
77828
|
}
|
|
77570
77829
|
});
|
|
77571
77830
|
return function (_ctx, _cache) {
|
|
77572
|
-
var _a;
|
|
77573
77831
|
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
77574
77832
|
(!__props.hideHeader)
|
|
77575
77833
|
? (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutHeader), {
|
|
@@ -77593,6 +77851,89 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77593
77851
|
]; })
|
|
77594
77852
|
}
|
|
77595
77853
|
: undefined,
|
|
77854
|
+
(__props.menuType === 'horizontal')
|
|
77855
|
+
? {
|
|
77856
|
+
name: "topMenus",
|
|
77857
|
+
fn: vue.withCtx(function () {
|
|
77858
|
+
var _a;
|
|
77859
|
+
return [
|
|
77860
|
+
vue.createElementVNode("div", _hoisted_2$1, [
|
|
77861
|
+
((_a = __props.renderMenuTop) === null || _a === void 0 ? void 0 : _a.call(__props, {
|
|
77862
|
+
currentMenu: currentMenu.value,
|
|
77863
|
+
menus: vue.unref(menuBase)
|
|
77864
|
+
}))
|
|
77865
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(MenuTopRender), { key: 0 }))
|
|
77866
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
|
|
77867
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(menuRoot), function (menu) {
|
|
77868
|
+
var _a, _b;
|
|
77869
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
77870
|
+
class: "menu-top-item",
|
|
77871
|
+
key: menu.menuKey,
|
|
77872
|
+
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77873
|
+
}, [
|
|
77874
|
+
vue.createElementVNode("span", {
|
|
77875
|
+
class: vue.normalizeClass({
|
|
77876
|
+
'active-title': ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey
|
|
77877
|
+
})
|
|
77878
|
+
}, vue.toDisplayString(menu.name), 3 /* TEXT, CLASS */),
|
|
77879
|
+
(((_b = currentMenu.value) === null || _b === void 0 ? void 0 : _b.menuKey) === menu.menuKey)
|
|
77880
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, _hoisted_7$1))
|
|
77881
|
+
: vue.createCommentVNode("v-if", true)
|
|
77882
|
+
], 8 /* PROPS */, _hoisted_4$1));
|
|
77883
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
77884
|
+
(isSimpleNum.value)
|
|
77885
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$1, [
|
|
77886
|
+
vue.createVNode(vue.unref(ElDropdown), null, {
|
|
77887
|
+
dropdown: vue.withCtx(function () { return [
|
|
77888
|
+
vue.createVNode(vue.unref(ElDropdownMenu), null, {
|
|
77889
|
+
default: vue.withCtx(function () { return [
|
|
77890
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(menuBase)
|
|
77891
|
+
.filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); })
|
|
77892
|
+
.splice(isSimpleNum.value, vue.unref(menuBase).length), function (menu) {
|
|
77893
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(ElDropdownItem), {
|
|
77894
|
+
key: menu.menuKey,
|
|
77895
|
+
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77896
|
+
}, {
|
|
77897
|
+
default: vue.withCtx(function () {
|
|
77898
|
+
var _a;
|
|
77899
|
+
return [
|
|
77900
|
+
vue.createElementVNode("span", {
|
|
77901
|
+
style: vue.normalizeStyle({
|
|
77902
|
+
color: ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey
|
|
77903
|
+
? '#fa8100'
|
|
77904
|
+
: ''
|
|
77905
|
+
})
|
|
77906
|
+
}, vue.toDisplayString(menu.name), 5 /* TEXT, STYLE */)
|
|
77907
|
+
];
|
|
77908
|
+
}),
|
|
77909
|
+
_: 2 /* DYNAMIC */
|
|
77910
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]));
|
|
77911
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
77912
|
+
]; }),
|
|
77913
|
+
_: 1 /* STABLE */
|
|
77914
|
+
})
|
|
77915
|
+
]; }),
|
|
77916
|
+
default: vue.withCtx(function () { return [
|
|
77917
|
+
vue.createVNode(vue.unref(BaseButton), {
|
|
77918
|
+
link: "",
|
|
77919
|
+
type: "primary2"
|
|
77920
|
+
}, {
|
|
77921
|
+
default: vue.withCtx(function () { return [
|
|
77922
|
+
_hoisted_9$1
|
|
77923
|
+
]; }),
|
|
77924
|
+
_: 1 /* STABLE */
|
|
77925
|
+
})
|
|
77926
|
+
]; }),
|
|
77927
|
+
_: 1 /* STABLE */
|
|
77928
|
+
})
|
|
77929
|
+
]))
|
|
77930
|
+
: vue.createCommentVNode("v-if", true)
|
|
77931
|
+
]))
|
|
77932
|
+
])
|
|
77933
|
+
];
|
|
77934
|
+
})
|
|
77935
|
+
}
|
|
77936
|
+
: undefined,
|
|
77596
77937
|
(vue.unref(slots).headerRight)
|
|
77597
77938
|
? {
|
|
77598
77939
|
name: "headerRight",
|
|
@@ -77603,31 +77944,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77603
77944
|
: undefined
|
|
77604
77945
|
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["appName"]))
|
|
77605
77946
|
: vue.createCommentVNode("v-if", true),
|
|
77606
|
-
(
|
|
77607
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
77608
|
-
((_a = __props.renderMenuTop) === null || _a === void 0 ? void 0 : _a.call(__props, {
|
|
77609
|
-
currentMenu: currentMenu.value,
|
|
77610
|
-
menus: vue.unref(menuBase)
|
|
77611
|
-
}))
|
|
77612
|
-
? (vue.openBlock(), vue.createBlock(vue.unref(MenuTopRender), { key: 0 }))
|
|
77613
|
-
: (vue.openBlock(), vue.createBlock(vue.unref(ElScrollbar), { key: 1 }, {
|
|
77614
|
-
default: vue.withCtx(function () { return [
|
|
77615
|
-
vue.createElementVNode("div", _hoisted_3$1, [
|
|
77616
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(menuBase).filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); }), function (menu) {
|
|
77617
|
-
var _a;
|
|
77618
|
-
return (vue.openBlock(), vue.createElementBlock("p", {
|
|
77619
|
-
class: vue.normalizeClass(["menu-top-item", { active: ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey }]),
|
|
77620
|
-
key: menu.menuKey,
|
|
77621
|
-
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77622
|
-
}, vue.toDisplayString(menu.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_4$1));
|
|
77623
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
77624
|
-
])
|
|
77625
|
-
]; }),
|
|
77626
|
-
_: 1 /* STABLE */
|
|
77627
|
-
}))
|
|
77628
|
-
]))
|
|
77629
|
-
: vue.createCommentVNode("v-if", true),
|
|
77630
|
-
vue.createElementVNode("div", _hoisted_5$1, [
|
|
77947
|
+
vue.createElementVNode("div", _hoisted_10$1, [
|
|
77631
77948
|
(vue.unref(hideMenuFlag))
|
|
77632
77949
|
? (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutFlexContent), {
|
|
77633
77950
|
key: 0,
|
|
@@ -77638,16 +77955,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77638
77955
|
? (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutMenu), {
|
|
77639
77956
|
key: 0,
|
|
77640
77957
|
menus: menuList.value,
|
|
77641
|
-
menusMap:
|
|
77958
|
+
menusMap: menusMap.value,
|
|
77642
77959
|
onMenuClick: _cache[0] || (_cache[0] = function (menu) { return emits('menuClick', menu); })
|
|
77643
77960
|
}, null, 8 /* PROPS */, ["menus", "menusMap"]))
|
|
77644
77961
|
: (vue.openBlock(), vue.createBlock(vue.unref(BaseLayoutMenuFold), {
|
|
77645
77962
|
key: 1,
|
|
77646
77963
|
class: "scroll-menu",
|
|
77964
|
+
menuType: __props.menuType,
|
|
77647
77965
|
menus: menuList.value,
|
|
77648
|
-
menusMap:
|
|
77966
|
+
menusMap: menusMap.value,
|
|
77649
77967
|
onMenuClick: _cache[1] || (_cache[1] = function (menu) { return emits('menuClick', menu); })
|
|
77650
|
-
}, null, 8 /* PROPS */, ["menus", "menusMap"]))
|
|
77968
|
+
}, null, 8 /* PROPS */, ["menuType", "menus", "menusMap"]))
|
|
77651
77969
|
]; }),
|
|
77652
77970
|
_: 1 /* STABLE */
|
|
77653
77971
|
}))
|
|
@@ -77845,10 +78163,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77845
78163
|
var _a, _b;
|
|
77846
78164
|
(_b = (_a = XrkTablebaseTableRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo) === null || _b === void 0 ? void 0 : _b.call(_a, { left: 0, top: 0 });
|
|
77847
78165
|
};
|
|
78166
|
+
var minHeight = vue.ref('auto');
|
|
78167
|
+
var identification = vue.ref(Date.now());
|
|
77848
78168
|
var _f = useTable({
|
|
77849
78169
|
getListAjax: props.getListAjax,
|
|
77850
|
-
pageSize: paginationQuery.value[pageSizeKey]
|
|
77851
|
-
|
|
78170
|
+
pageSize: paginationQuery.value[pageSizeKey],
|
|
78171
|
+
identification: identification.value,
|
|
78172
|
+
minHeight: minHeight
|
|
78173
|
+
}), pageAllData = _f.pageAllData, getList = _f.getList, paginationTotal = _f.paginationTotal, pageIsLoading = _f.pageIsLoading, currentParams = _f.currentParams;
|
|
77852
78174
|
vue.onMounted(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
77853
78175
|
return __generator(this, function (_a) {
|
|
77854
78176
|
switch (_a.label) {
|
|
@@ -77908,6 +78230,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77908
78230
|
}); },
|
|
77909
78231
|
getTableData: function () {
|
|
77910
78232
|
return pageAllData;
|
|
78233
|
+
},
|
|
78234
|
+
getCurrentParams: function () {
|
|
78235
|
+
return xrkTools.base.deepClone(currentParams.value);
|
|
77911
78236
|
}
|
|
77912
78237
|
});
|
|
77913
78238
|
return function (_ctx, _cache) {
|
|
@@ -77936,8 +78261,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77936
78261
|
"other-components": __props.searchConfig.otherComponents,
|
|
77937
78262
|
"sync-query-to-search": __props.searchConfig.syncQueryToSearch,
|
|
77938
78263
|
"sync-search-to-query": __props.searchConfig.syncSearchToQuery,
|
|
78264
|
+
"fixed-columns-num": __props.searchConfig.fixedColumnsNum,
|
|
77939
78265
|
onSearch: handleSearch
|
|
77940
|
-
}, null, 8 /* PROPS */, ["columns", "search-btn", "reset-btn", "other-components", "sync-query-to-search", "sync-search-to-query"]))
|
|
78266
|
+
}, null, 8 /* PROPS */, ["columns", "search-btn", "reset-btn", "other-components", "sync-query-to-search", "sync-search-to-query", "fixed-columns-num"]))
|
|
77941
78267
|
: vue.createCommentVNode("v-if", true),
|
|
77942
78268
|
(vue.unref(slots).tableBefore)
|
|
77943
78269
|
? vue.renderSlot(_ctx.$slots, "tableBefore", {
|
|
@@ -77947,25 +78273,31 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77947
78273
|
searchQuery: vue.unref(query)
|
|
77948
78274
|
})
|
|
77949
78275
|
: vue.createCommentVNode("v-if", true),
|
|
77950
|
-
vue.createVNode(vue.unref(BaseLayoutFlexContent), {
|
|
77951
|
-
|
|
77952
|
-
|
|
77953
|
-
|
|
77954
|
-
|
|
77955
|
-
|
|
77956
|
-
|
|
77957
|
-
|
|
77958
|
-
|
|
77959
|
-
|
|
77960
|
-
|
|
77961
|
-
|
|
77962
|
-
|
|
77963
|
-
|
|
77964
|
-
|
|
77965
|
-
|
|
77966
|
-
|
|
78276
|
+
vue.createVNode(vue.unref(BaseLayoutFlexContent), {
|
|
78277
|
+
style: vue.normalizeStyle({ minHeight: minHeight.value }),
|
|
78278
|
+
fix: vue.unref(tableContentFix)
|
|
78279
|
+
}, {
|
|
78280
|
+
default: vue.withCtx(function () {
|
|
78281
|
+
var _a;
|
|
78282
|
+
return [
|
|
78283
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(BaseTable), vue.mergeProps({
|
|
78284
|
+
class: ["xrk-table-content", (_a = {}, _a["xrk-table-content_".concat(identification.value)] = true, _a)],
|
|
78285
|
+
ref_key: "XrkTablebaseTableRef",
|
|
78286
|
+
ref: XrkTablebaseTableRef
|
|
78287
|
+
}, __props.tableConfig.baseConfig, {
|
|
78288
|
+
key: baseTableKey.value,
|
|
78289
|
+
data: vue.unref(pageAllData),
|
|
78290
|
+
columns: __props.tableConfig.tableColumns,
|
|
78291
|
+
onExpandChange: handleExpandChange,
|
|
78292
|
+
onSelectAll: handleTableSelect,
|
|
78293
|
+
onSelect: handleTableSelect
|
|
78294
|
+
}), null, 16 /* FULL_PROPS */, ["class", "data", "columns"])), [
|
|
78295
|
+
[vue.unref(vLoading$1), vue.unref(pageIsLoading)]
|
|
78296
|
+
])
|
|
78297
|
+
];
|
|
78298
|
+
}),
|
|
77967
78299
|
_: 1 /* STABLE */
|
|
77968
|
-
}, 8 /* PROPS */, ["fix"]),
|
|
78300
|
+
}, 8 /* PROPS */, ["style", "fix"]),
|
|
77969
78301
|
(vue.unref(slots).tableAfter)
|
|
77970
78302
|
? vue.renderSlot(_ctx.$slots, "tableAfter", {
|
|
77971
78303
|
key: 3,
|
|
@@ -77977,6 +78309,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77977
78309
|
(!vue.unref(paginationConfig).hide)
|
|
77978
78310
|
? (vue.openBlock(), vue.createBlock(vue.unref(BasePagination), {
|
|
77979
78311
|
key: 4,
|
|
78312
|
+
style: { "flex-shrink": "0" },
|
|
77980
78313
|
ref_key: "BasePaginationRef",
|
|
77981
78314
|
ref: BasePaginationRef,
|
|
77982
78315
|
total: vue.unref(paginationTotal),
|