vue3-components-plus 3.0.30 → 3.0.32
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/ComponentDemo/DialogDemo.vue +2 -2
- package/dist/ComponentDemo/NsTableDemo/NsTableDemoReadme.md +677 -0
- package/dist/ComponentDemo/NsTableDemo/index.vue +3 -4
- package/dist/ComponentDemo/NsTableDemo/mockData.js +117 -650
- package/dist/ComponentDemo/PdfDemo.vue +8 -35
- package/dist/vue3-components-plus.css +1 -1
- package/dist/vue3-components-plus.js +1169 -1174
- package/dist/vue3-components-plus.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/ComponentDemo/PdfDemo copy.vue +0 -234
- package/dist/ComponentDemo/pdfReade copy.vue +0 -369
- package/dist/ComponentDemo/pdfReade.vue +0 -590
- package/dist/favicon.ico +0 -0
|
@@ -2,12 +2,12 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2;
|
|
5
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, ref as ref$1, watch, normalizeClass, nextTick, useCssVars, computed, defineAsyncComponent, reactive, onMounted, onUnmounted, resolveComponent, createBlock, normalizeStyle, createSlots, withCtx, resolveDynamicComponent, mergeProps, toHandlers, Fragment, createTextVNode, toDisplayString, unref, createCommentVNode, createVNode, createApp, render, useAttrs, watchEffect, withDirectives, vShow, renderSlot, resolveDirective, renderList, getCurrentInstance, shallowRef, onBeforeUnmount, createStaticVNode, Transition, vModelText, withModifiers,
|
|
6
|
-
import { ElMessage, ElImage } from "element-plus";
|
|
5
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, ref as ref$1, watch, normalizeClass, nextTick, useCssVars, computed, defineAsyncComponent, reactive, onMounted, onUnmounted, resolveComponent, createBlock, normalizeStyle, createSlots, withCtx, resolveDynamicComponent, mergeProps, toHandlers, Fragment, createTextVNode, toDisplayString, unref, createCommentVNode, createVNode, createApp, render, useAttrs, watchEffect, withDirectives, vShow, renderSlot, resolveDirective, renderList, getCurrentInstance, shallowRef, onBeforeUnmount, createStaticVNode, Transition, vModelText, withModifiers, markRaw, toRaw, h as h$2, useSlots, onUpdated } from "vue";
|
|
6
|
+
import { ElMessage, ElImage, ElTableColumn, ElButton, ElTag } from "element-plus";
|
|
7
7
|
import VuePdfApp from "vue3-pdf-app";
|
|
8
8
|
import axios from "axios";
|
|
9
9
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
10
|
-
var _sfc_main$
|
|
10
|
+
var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
11
11
|
name: "AddLocation",
|
|
12
12
|
__name: "add-location",
|
|
13
13
|
setup(__props) {
|
|
@@ -29,7 +29,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
})
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
32
|
-
}), add_location_default = _sfc_main$
|
|
32
|
+
}), add_location_default = _sfc_main$e;
|
|
33
33
|
var _sfc_main2 = /* @__PURE__ */ defineComponent({
|
|
34
34
|
name: "Aim",
|
|
35
35
|
__name: "aim",
|
|
@@ -44406,7 +44406,7 @@ var utils$2 = {
|
|
|
44406
44406
|
SHEET_VERY_HIDDEN: 2
|
|
44407
44407
|
}
|
|
44408
44408
|
};
|
|
44409
|
-
const _sfc_main$
|
|
44409
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
44410
44410
|
__name: "ExcelComp",
|
|
44411
44411
|
props: {
|
|
44412
44412
|
// 文件对象或文件URL
|
|
@@ -44783,7 +44783,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
44783
44783
|
}
|
|
44784
44784
|
return target;
|
|
44785
44785
|
};
|
|
44786
|
-
const ExcelComp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
44786
|
+
const ExcelComp = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1aba0d50"]]);
|
|
44787
44787
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
44788
44788
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
44789
44789
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -44826,15 +44826,14 @@ const loadCssVars = () => {
|
|
|
44826
44826
|
ThemeVar.VARS = variables;
|
|
44827
44827
|
return variables;
|
|
44828
44828
|
};
|
|
44829
|
-
const _hoisted_1$9 = { class: "dialog-
|
|
44830
|
-
const _hoisted_2$
|
|
44831
|
-
const _hoisted_3$
|
|
44832
|
-
const _hoisted_4$3 = {
|
|
44833
|
-
const _hoisted_5$2 = {
|
|
44829
|
+
const _hoisted_1$9 = { class: "dialog-header" };
|
|
44830
|
+
const _hoisted_2$5 = { class: "dialog-title" };
|
|
44831
|
+
const _hoisted_3$4 = { class: "dialog-controls" };
|
|
44832
|
+
const _hoisted_4$3 = {
|
|
44834
44833
|
key: 1,
|
|
44835
44834
|
class: "dialog-footer"
|
|
44836
44835
|
};
|
|
44837
|
-
const _sfc_main$
|
|
44836
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
44838
44837
|
__name: "NsDialog",
|
|
44839
44838
|
props: {
|
|
44840
44839
|
class: {
|
|
@@ -44964,13 +44963,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
44964
44963
|
},
|
|
44965
44964
|
setup(__props) {
|
|
44966
44965
|
useCssVars((_ctx) => ({
|
|
44967
|
-
"
|
|
44968
|
-
"
|
|
44969
|
-
"
|
|
44970
|
-
"
|
|
44971
|
-
"v7ff5a356": tbPadding.value,
|
|
44972
|
-
"v5be4f93e": lrPadding.value,
|
|
44973
|
-
"v4fd69864": _centerHeight.value
|
|
44966
|
+
"b8b76806": __props.modalColor,
|
|
44967
|
+
"v56df6f42": _height.value,
|
|
44968
|
+
"v4a0bf5dd": dialogPosition.value.left,
|
|
44969
|
+
"v3d494e82": dialogPosition.value.top
|
|
44974
44970
|
}));
|
|
44975
44971
|
const asyncDom = computed(() => {
|
|
44976
44972
|
var _a3;
|
|
@@ -45016,6 +45012,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45016
45012
|
y: null
|
|
45017
45013
|
});
|
|
45018
45014
|
const _height = ref$1("fit-content");
|
|
45015
|
+
const dialogContentStyle = computed(() => ({
|
|
45016
|
+
paddingTop: tbPadding.value,
|
|
45017
|
+
paddingBottom: tbPadding.value,
|
|
45018
|
+
paddingLeft: lrPadding.value,
|
|
45019
|
+
paddingRight: lrPadding.value,
|
|
45020
|
+
height: _centerHeight.value
|
|
45021
|
+
}));
|
|
45019
45022
|
const _centerHeight = ref$1("auto");
|
|
45020
45023
|
const tbPadding = ref$1(ThemeVar.VARS["--matrix-dialog-padding-topBottom"]);
|
|
45021
45024
|
const lrPadding = ref$1(ThemeVar.VARS["--matrix-dialog-padding-leftRight"]);
|
|
@@ -45259,8 +45262,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45259
45262
|
onClosed: dealClosed
|
|
45260
45263
|
}, createSlots({
|
|
45261
45264
|
header: withCtx(() => [
|
|
45262
|
-
createElementVNode("div",
|
|
45263
|
-
createElementVNode("div",
|
|
45265
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
45266
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
45264
45267
|
__props.headerDom ? (openBlock(), createBlock(resolveDynamicComponent(asyncHeaderDom.value), mergeProps({ key: 0 }, props.headerOption, toHandlers({
|
|
45265
45268
|
...props.headerEvents,
|
|
45266
45269
|
close: closeDialog
|
|
@@ -45268,7 +45271,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45268
45271
|
createTextVNode(toDisplayString(currentTitle.value), 1)
|
|
45269
45272
|
], 64))
|
|
45270
45273
|
]),
|
|
45271
|
-
createElementVNode("div",
|
|
45274
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
45272
45275
|
showMaximizeButton.value ? (openBlock(), createBlock(_component_el_icon, {
|
|
45273
45276
|
key: 0,
|
|
45274
45277
|
class: "dialog-maximize",
|
|
@@ -45294,7 +45297,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45294
45297
|
])
|
|
45295
45298
|
]),
|
|
45296
45299
|
default: withCtx(() => [
|
|
45297
|
-
createElementVNode("div",
|
|
45300
|
+
createElementVNode("div", {
|
|
45301
|
+
class: "dialog-content",
|
|
45302
|
+
style: normalizeStyle(dialogContentStyle.value)
|
|
45303
|
+
}, [
|
|
45298
45304
|
(openBlock(), createBlock(resolveDynamicComponent(asyncDom.value), mergeProps({
|
|
45299
45305
|
ref_key: "componentRef",
|
|
45300
45306
|
ref: componentRef
|
|
@@ -45302,7 +45308,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45302
45308
|
...props.events,
|
|
45303
45309
|
close: closeDialog
|
|
45304
45310
|
})), null, 16))
|
|
45305
|
-
])
|
|
45311
|
+
], 4)
|
|
45306
45312
|
]),
|
|
45307
45313
|
_: 2
|
|
45308
45314
|
}, [
|
|
@@ -45312,7 +45318,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
45312
45318
|
__props.footerDom ? (openBlock(), createBlock(resolveDynamicComponent(asyncFooterDom.value), mergeProps({ key: 0 }, props.footerOption, toHandlers({
|
|
45313
45319
|
...props.footerEvents,
|
|
45314
45320
|
close: closeDialog
|
|
45315
|
-
})), null, 16)) : (openBlock(), createElementBlock("div",
|
|
45321
|
+
})), null, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
45316
45322
|
createVNode(_component_el_button, {
|
|
45317
45323
|
class: "dialog-footer-btn btn-cancel",
|
|
45318
45324
|
onClick: closeDialog
|
|
@@ -45381,7 +45387,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
|
|
|
45381
45387
|
};
|
|
45382
45388
|
window.__dialogInstances.push(instance2);
|
|
45383
45389
|
if (externalApp) {
|
|
45384
|
-
const vnode = createVNode(_sfc_main$
|
|
45390
|
+
const vnode = createVNode(_sfc_main$c, {
|
|
45385
45391
|
...superData,
|
|
45386
45392
|
containerId,
|
|
45387
45393
|
// 添加容器ID传递给组件
|
|
@@ -45405,7 +45411,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
|
|
|
45405
45411
|
vnode.appContext = externalApp._context;
|
|
45406
45412
|
render(vnode, container);
|
|
45407
45413
|
} else {
|
|
45408
|
-
const app2 = createApp(_sfc_main$
|
|
45414
|
+
const app2 = createApp(_sfc_main$c, {
|
|
45409
45415
|
...superData,
|
|
45410
45416
|
containerId,
|
|
45411
45417
|
// 添加容器ID传递给组件
|
|
@@ -45426,7 +45432,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
|
|
|
45426
45432
|
}
|
|
45427
45433
|
}
|
|
45428
45434
|
});
|
|
45429
|
-
const vnode = createVNode(_sfc_main$
|
|
45435
|
+
const vnode = createVNode(_sfc_main$c, {
|
|
45430
45436
|
...superData,
|
|
45431
45437
|
containerId,
|
|
45432
45438
|
dialogInstance: instance2
|
|
@@ -45436,7 +45442,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
|
|
|
45436
45442
|
}
|
|
45437
45443
|
return instance2;
|
|
45438
45444
|
};
|
|
45439
|
-
const _sfc_main$
|
|
45445
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
45440
45446
|
__name: "index",
|
|
45441
45447
|
props: {
|
|
45442
45448
|
isShowDialog: {
|
|
@@ -45562,13 +45568,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
45562
45568
|
};
|
|
45563
45569
|
}
|
|
45564
45570
|
});
|
|
45565
|
-
_sfc_main$
|
|
45566
|
-
app2.component(_sfc_main$
|
|
45571
|
+
_sfc_main$b.install = (app2) => {
|
|
45572
|
+
app2.component(_sfc_main$b.name, _sfc_main$b);
|
|
45567
45573
|
};
|
|
45568
45574
|
const _hoisted_1$8 = { class: "pdf-reader" };
|
|
45569
|
-
const _hoisted_2$
|
|
45570
|
-
const _hoisted_3$
|
|
45571
|
-
const _sfc_main$
|
|
45575
|
+
const _hoisted_2$4 = { class: "pdf-tools" };
|
|
45576
|
+
const _hoisted_3$3 = ["id"];
|
|
45577
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
45572
45578
|
...{
|
|
45573
45579
|
name: "ns-pdf"
|
|
45574
45580
|
},
|
|
@@ -45655,7 +45661,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
45655
45661
|
const _component_el_button = resolveComponent("el-button");
|
|
45656
45662
|
const _component_el_empty = resolveComponent("el-empty");
|
|
45657
45663
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
45658
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
45664
|
+
withDirectives(createElementVNode("div", _hoisted_2$4, [
|
|
45659
45665
|
createVNode(_component_el_button, {
|
|
45660
45666
|
id: idConfig.value.previousPage
|
|
45661
45667
|
}, {
|
|
@@ -45669,7 +45675,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
45669
45675
|
class: "jump-input",
|
|
45670
45676
|
id: idConfig.value.pageNumber,
|
|
45671
45677
|
type: "number"
|
|
45672
|
-
}, null, 8, _hoisted_3$
|
|
45678
|
+
}, null, 8, _hoisted_3$3),
|
|
45673
45679
|
createElementVNode("span", null, "/" + toDisplayString(numPages.value) + "页", 1)
|
|
45674
45680
|
]),
|
|
45675
45681
|
createVNode(_component_el_button, {
|
|
@@ -45719,7 +45725,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
45719
45725
|
};
|
|
45720
45726
|
}
|
|
45721
45727
|
});
|
|
45722
|
-
const NsPdf = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
45728
|
+
const NsPdf = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e08020c7"]]);
|
|
45723
45729
|
NsPdf.install = (app2) => {
|
|
45724
45730
|
app2.component(NsPdf.name, NsPdf);
|
|
45725
45731
|
};
|
|
@@ -52077,14 +52083,14 @@ async function renderAsync(data, bodyContainer, styleContainer, userOptions) {
|
|
|
52077
52083
|
return doc;
|
|
52078
52084
|
}
|
|
52079
52085
|
const _hoisted_1$7 = { class: "word-reader" };
|
|
52080
|
-
const _hoisted_2$
|
|
52081
|
-
const _hoisted_3$
|
|
52086
|
+
const _hoisted_2$3 = { class: "word-tools" };
|
|
52087
|
+
const _hoisted_3$2 = { class: "zoom-info" };
|
|
52082
52088
|
const _hoisted_4$2 = { class: "word-container" };
|
|
52083
52089
|
const _hoisted_5$1 = {
|
|
52084
52090
|
key: 0,
|
|
52085
52091
|
class: "loading-wrapper"
|
|
52086
52092
|
};
|
|
52087
|
-
const _sfc_main$
|
|
52093
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
52088
52094
|
...{
|
|
52089
52095
|
name: "ns-word"
|
|
52090
52096
|
},
|
|
@@ -52218,7 +52224,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
52218
52224
|
return (_ctx, _cache) => {
|
|
52219
52225
|
const _component_el_button = resolveComponent("el-button");
|
|
52220
52226
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
52221
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
52227
|
+
withDirectives(createElementVNode("div", _hoisted_2$3, [
|
|
52222
52228
|
createVNode(_component_el_button, {
|
|
52223
52229
|
onClick: zoomOut,
|
|
52224
52230
|
disabled: zoom.value <= 0.5
|
|
@@ -52228,7 +52234,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
52228
52234
|
])]),
|
|
52229
52235
|
_: 1
|
|
52230
52236
|
}, 8, ["disabled"]),
|
|
52231
|
-
createElementVNode("span", _hoisted_3$
|
|
52237
|
+
createElementVNode("span", _hoisted_3$2, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
|
|
52232
52238
|
createVNode(_component_el_button, {
|
|
52233
52239
|
onClick: zoomIn,
|
|
52234
52240
|
disabled: zoom.value >= 3
|
|
@@ -52259,12 +52265,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
52259
52265
|
};
|
|
52260
52266
|
}
|
|
52261
52267
|
});
|
|
52262
|
-
const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
52268
|
+
const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-5777b155"]]);
|
|
52263
52269
|
NsWord.install = (app2) => {
|
|
52264
52270
|
app2.component(NsWord.name, NsWord);
|
|
52265
52271
|
};
|
|
52266
52272
|
const _hoisted_1$6 = { class: "ns-office" };
|
|
52267
|
-
const _sfc_main$
|
|
52273
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
52268
52274
|
...{
|
|
52269
52275
|
name: "ns-office"
|
|
52270
52276
|
},
|
|
@@ -52315,7 +52321,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
52315
52321
|
return (_ctx, _cache) => {
|
|
52316
52322
|
const _component_NoData = resolveComponent("NoData");
|
|
52317
52323
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
52318
|
-
fileType.value === "excel" ? (openBlock(), createBlock(_sfc_main$
|
|
52324
|
+
fileType.value === "excel" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
52319
52325
|
isEdit: false,
|
|
52320
52326
|
isShowDialog: false,
|
|
52321
52327
|
file: __props.url,
|
|
@@ -52338,7 +52344,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
52338
52344
|
};
|
|
52339
52345
|
}
|
|
52340
52346
|
});
|
|
52341
|
-
const NsOffice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
52347
|
+
const NsOffice = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a4bc0168"]]);
|
|
52342
52348
|
NsOffice.install = (app2) => {
|
|
52343
52349
|
app2.component(NsOffice.name, NsOffice);
|
|
52344
52350
|
};
|
|
@@ -52357,10 +52363,10 @@ const _hoisted_1$5 = {
|
|
|
52357
52363
|
key: 0,
|
|
52358
52364
|
class: "sub-row"
|
|
52359
52365
|
};
|
|
52360
|
-
const _hoisted_2$
|
|
52366
|
+
const _hoisted_2$2 = {
|
|
52361
52367
|
class: /* @__PURE__ */ normalizeClass(["sub-row-group"])
|
|
52362
52368
|
};
|
|
52363
|
-
const _sfc_main$
|
|
52369
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
52364
52370
|
__name: "DynamicForm",
|
|
52365
52371
|
props: {
|
|
52366
52372
|
// 可选table, vertical, 默认不带边框颜色
|
|
@@ -53167,7 +53173,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
53167
53173
|
], 2)), [
|
|
53168
53174
|
[_directive_sline]
|
|
53169
53175
|
]),
|
|
53170
|
-
createElementVNode("div", _hoisted_2$
|
|
53176
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
53171
53177
|
(openBlock(true), createElementBlock(Fragment, null, renderList(rowInfo.children, (subRowInfo, _subIndex) => {
|
|
53172
53178
|
return openBlock(), createElementBlock("div", {
|
|
53173
53179
|
class: normalizeClass(["sub-row-item"]),
|
|
@@ -53418,12 +53424,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
53418
53424
|
};
|
|
53419
53425
|
}
|
|
53420
53426
|
});
|
|
53421
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
53427
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a196e4ed"]]);
|
|
53422
53428
|
const _hoisted_1$4 = { class: "title-image-view" };
|
|
53423
|
-
const _hoisted_2$
|
|
53424
|
-
const _hoisted_3$
|
|
53429
|
+
const _hoisted_2$1 = { class: "content-model-title" };
|
|
53430
|
+
const _hoisted_3$1 = { class: "title-text" };
|
|
53425
53431
|
const _hoisted_4$1 = { class: "content-ui" };
|
|
53426
|
-
const _sfc_main$
|
|
53432
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
53427
53433
|
__name: "DynamicFormTitle",
|
|
53428
53434
|
props: {
|
|
53429
53435
|
title: {
|
|
@@ -53434,10 +53440,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
53434
53440
|
setup(__props) {
|
|
53435
53441
|
return (_ctx, _cache) => {
|
|
53436
53442
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
53437
|
-
createElementVNode("div", _hoisted_2$
|
|
53443
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
53438
53444
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "title-icon" }, null, -1)),
|
|
53439
53445
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
53440
|
-
createElementVNode("span", _hoisted_3$
|
|
53446
|
+
createElementVNode("span", _hoisted_3$1, toDisplayString(__props.title), 1)
|
|
53441
53447
|
], true)
|
|
53442
53448
|
]),
|
|
53443
53449
|
createElementVNode("div", _hoisted_4$1, [
|
|
@@ -53447,7 +53453,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
53447
53453
|
};
|
|
53448
53454
|
}
|
|
53449
53455
|
});
|
|
53450
|
-
const NsFormTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
53456
|
+
const NsFormTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a0ddcbf6"]]);
|
|
53451
53457
|
function registerDirective(app2) {
|
|
53452
53458
|
app2.directive("sline", {
|
|
53453
53459
|
mounted(el2) {
|
|
@@ -53458,6 +53464,34 @@ function registerDirective(app2) {
|
|
|
53458
53464
|
el2.style.maxWidth = "100%";
|
|
53459
53465
|
}
|
|
53460
53466
|
});
|
|
53467
|
+
app2.directive("enterClick", {
|
|
53468
|
+
mounted(el2) {
|
|
53469
|
+
const handler = (event) => {
|
|
53470
|
+
if (event.key !== "Enter") return;
|
|
53471
|
+
const activeEl = document.activeElement;
|
|
53472
|
+
const isSelectTrigger = activeEl && activeEl.tagName === "INPUT" && activeEl.closest(".el-select");
|
|
53473
|
+
if (isSelectTrigger) {
|
|
53474
|
+
const isDropdownOpen = activeEl.getAttribute("aria-expanded") === "true";
|
|
53475
|
+
if (isDropdownOpen) {
|
|
53476
|
+
return;
|
|
53477
|
+
}
|
|
53478
|
+
}
|
|
53479
|
+
el2.click();
|
|
53480
|
+
if (isSelectTrigger) {
|
|
53481
|
+
event.preventDefault();
|
|
53482
|
+
event.stopPropagation();
|
|
53483
|
+
}
|
|
53484
|
+
};
|
|
53485
|
+
el2.__nsEnterClickHandler = handler;
|
|
53486
|
+
document.addEventListener("keydown", handler, true);
|
|
53487
|
+
},
|
|
53488
|
+
unmounted(el2) {
|
|
53489
|
+
if (el2.__nsEnterClickHandler) {
|
|
53490
|
+
document.removeEventListener("keydown", el2.__nsEnterClickHandler, true);
|
|
53491
|
+
delete el2.__nsEnterClickHandler;
|
|
53492
|
+
}
|
|
53493
|
+
}
|
|
53494
|
+
});
|
|
53461
53495
|
app2.directive("permission", {
|
|
53462
53496
|
mounted(el2, binding) {
|
|
53463
53497
|
var _a3, _b, _c2, _d, _e, _f;
|
|
@@ -74814,7 +74848,7 @@ function ss(e6, t3) {
|
|
|
74814
74848
|
]));
|
|
74815
74849
|
}
|
|
74816
74850
|
const m5 = { render: ss }, f5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: m5, render: ss }, Symbol.toStringTag, { value: "Module" }));
|
|
74817
|
-
const _sfc_main$
|
|
74851
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
74818
74852
|
__name: "index",
|
|
74819
74853
|
props: {
|
|
74820
74854
|
content: {
|
|
@@ -74841,7 +74875,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
74841
74875
|
};
|
|
74842
74876
|
}
|
|
74843
74877
|
});
|
|
74844
|
-
const NsMD = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74878
|
+
const NsMD = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-3760fe44"]]);
|
|
74845
74879
|
NsMD.install = (app2) => {
|
|
74846
74880
|
app2.component(NsMD.name, NsMD);
|
|
74847
74881
|
try {
|
|
@@ -74852,7 +74886,7 @@ NsMD.install = (app2) => {
|
|
|
74852
74886
|
};
|
|
74853
74887
|
const StoneIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAABmCAIAAACY+FKnAABOfklEQVR42k29d79tW3EduObKYaezT7jvgZC7+0v3X91t2ZZoWQEaScgIgYT1axAZhG2hgCQMvHfvSTuunHqMUetAX+Hrd8/Ze4U5K4yqGlXT/etPvj7P86Q/Yz+M0+g7P4oiP4w8D7/owyCMorAqL4eX18D3kjQZx26exmHw0nwX4tdh4HzP9/0gCHw/HMfem0fPc+M44cr4snPBNA34Zd/3j+/f8/Muurm9H4bGn0c39bi9CwI3Dl4YH67tu4f7yXMOt/d8h7/wH9Pg/GDm9Ub8P3wYX8H1j4fT3d0dnhKfxt/4NP44/MP3u6Yfho7fd/hqhJ82dVsUq+PxNUmiJHLDMLog9DzfC5LQ98aJ98S7Ozw812PmW7jAzUMQ+XiPOApmvBs/FwzjiIdxHh5o8H3eDysQ4C5cBlzKc//y46/pYfmYzsMTBF1TpVnqB+E0tH3XB1ES+HgRb/Ki0+vr8fXR+f40TLvdzc3dvus6rDUewXlRFOMp+Ty+Xg6PxttwCXhv/Oz19aVvWhfn9/vbri/76zkK8EihH+Bu4dQPcxR/eHz93Oc+Nzufz42XdPOMp8cSToPHf/pcznlI4qyFEAxTGEahLsBXHlq8Ij6De02zj2fDquIBJqy4H5/P5/uH++PxhF8WKd5u4EPObpy9OIkhGOPQY0vwbb4DL6J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r2zzOmklKZRfJULh7NQpma2k6F5ApySKT27OkUyG9vWk1T5Nud0Xs4+sAqjek64HufDwfO69Xbr22k7GrOG5/r/AExbjJU3DEkPAAAAAElFTkSuQmCC";
|
|
74854
74888
|
const DownFill = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAA6klEQVR4AeyVwQ3CMAxFnZw6BqPQSRBbcEDiQiXGgEnoKEwBPSX4H+CAimM7CA6k6r80/v8lVuRG+tHTwF9rfGt1azV127x0aZMXUvuKlytmWrHOFoVMu+kQLlXg6xDWHHBkqd5MNN6G0JeKiydGgBauhSJTBUZhCW6BIk8NRvE7uBWKLBMYhle4B4ocMximB9wLRYYLDCPgmtuL2jm5wXNhlm8iuOPp45pamHbslTYigmMk89R6Tjj2usGSsXZNPHFKdEqBepfYK21OBGPQT/swulT7k5B2XbMmnrgmuORt4FKHPrb+f62+AwAA//94RD+mAAAABklEQVQDAFK0zD0qFi7YAAAAAElFTkSuQmCC";
|
|
74855
|
-
const _sfc_main$
|
|
74889
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
74856
74890
|
...{
|
|
74857
74891
|
name: "NsSaturationLine"
|
|
74858
74892
|
},
|
|
@@ -76091,14 +76125,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
76091
76125
|
};
|
|
76092
76126
|
}
|
|
76093
76127
|
});
|
|
76094
|
-
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
76128
|
+
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f5b1512e"]]);
|
|
76095
76129
|
NsSaturationLine.install = (app2) => {
|
|
76096
76130
|
const componentName = NsSaturationLine.name || "NsSaturationLine";
|
|
76097
76131
|
app2.component(componentName, NsSaturationLine);
|
|
76098
76132
|
};
|
|
76099
76133
|
const EmptyPng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABOCAY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FOV7UvWTXb+QtmGa01tavSxpr+2XCnfDD7kxjZBU547oYyxDDE/raLekz0Q/K9bc3NeeV1cjvaURflf9fMfd90t6CZLkka0mkJ6JPCQBpApJi4dTjpeSIRGfIl8aeHnchb+VkgEA/w8UYXz4EpFR/AAAAABJRU5ErkJggg==";
|
|
76100
76134
|
const _hoisted_1$3 = ["src"];
|
|
76101
|
-
const _sfc_main$
|
|
76135
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
76102
76136
|
__name: "NsImage",
|
|
76103
76137
|
props: {
|
|
76104
76138
|
src: {
|
|
@@ -76219,289 +76253,355 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
76219
76253
|
};
|
|
76220
76254
|
}
|
|
76221
76255
|
});
|
|
76222
|
-
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
76256
|
+
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-af5258bc"]]);
|
|
76223
76257
|
NsImage.install = (app2) => {
|
|
76224
76258
|
app2.component(NsImage.name, NsImage);
|
|
76225
76259
|
};
|
|
76260
|
+
const SlotRenderer = {
|
|
76261
|
+
name: "NsSlotRenderer",
|
|
76262
|
+
props: {
|
|
76263
|
+
renderer: {
|
|
76264
|
+
type: Function,
|
|
76265
|
+
default: null
|
|
76266
|
+
},
|
|
76267
|
+
scope: {
|
|
76268
|
+
type: Object,
|
|
76269
|
+
default: () => ({})
|
|
76270
|
+
}
|
|
76271
|
+
},
|
|
76272
|
+
setup(props) {
|
|
76273
|
+
return () => {
|
|
76274
|
+
return props.renderer ? props.renderer(props.scope || {}) : null;
|
|
76275
|
+
};
|
|
76276
|
+
}
|
|
76277
|
+
};
|
|
76226
76278
|
const _hoisted_1$2 = { class: "page-search" };
|
|
76227
|
-
const _sfc_main$
|
|
76279
|
+
const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
76280
|
+
name: "NsSearch",
|
|
76281
|
+
inheritAttrs: false
|
|
76282
|
+
}, {
|
|
76228
76283
|
__name: "PageSearch",
|
|
76229
76284
|
props: {
|
|
76230
|
-
// 搜索项配置
|
|
76231
76285
|
items: {
|
|
76232
76286
|
type: Array,
|
|
76233
|
-
required: true,
|
|
76234
76287
|
default: () => []
|
|
76235
76288
|
},
|
|
76236
|
-
// 外部注入的搜索参数(用于特殊情况传参)
|
|
76237
76289
|
externalParams: {
|
|
76238
76290
|
type: Object,
|
|
76239
76291
|
default: () => ({})
|
|
76240
76292
|
},
|
|
76241
|
-
// 标签宽度
|
|
76242
|
-
labelWidth: {
|
|
76243
|
-
type: String,
|
|
76244
|
-
default: "100px"
|
|
76245
|
-
},
|
|
76246
|
-
// 默认每项占用的 span
|
|
76247
76293
|
defaultSpan: {
|
|
76248
76294
|
type: Number,
|
|
76249
76295
|
default: 6
|
|
76250
76296
|
},
|
|
76251
|
-
// 按钮占用的 span
|
|
76252
|
-
buttonSpan: {
|
|
76253
|
-
type: Number,
|
|
76254
|
-
default: 6
|
|
76255
|
-
},
|
|
76256
|
-
// 按钮位置:first-第一行后面,last-最后一行后面
|
|
76257
|
-
buttonPosition: {
|
|
76258
|
-
type: String,
|
|
76259
|
-
default: "last",
|
|
76260
|
-
validator: (value) => ["first", "last"].includes(value)
|
|
76261
|
-
},
|
|
76262
|
-
// 是否显示展开/收起按钮
|
|
76263
76297
|
showCollapse: {
|
|
76264
76298
|
type: Boolean,
|
|
76265
76299
|
default: true
|
|
76266
76300
|
},
|
|
76267
|
-
// 折叠时显示的项数
|
|
76268
76301
|
collapseLimit: {
|
|
76269
76302
|
type: Number,
|
|
76270
76303
|
default: 3
|
|
76271
76304
|
},
|
|
76272
|
-
|
|
76273
|
-
|
|
76305
|
+
slotRenderers: {
|
|
76306
|
+
type: Object,
|
|
76307
|
+
default: () => ({})
|
|
76308
|
+
},
|
|
76309
|
+
actionsAlign: {
|
|
76310
|
+
type: String,
|
|
76311
|
+
default: "left"
|
|
76312
|
+
},
|
|
76313
|
+
actionsSpan: {
|
|
76274
76314
|
type: Number,
|
|
76275
|
-
default:
|
|
76315
|
+
default: null
|
|
76316
|
+
},
|
|
76317
|
+
actionsWidth: {
|
|
76318
|
+
type: [String, Number],
|
|
76319
|
+
default: ""
|
|
76320
|
+
},
|
|
76321
|
+
collapseToggleText: {
|
|
76322
|
+
type: [Array, String],
|
|
76323
|
+
default: () => ["展开", "收起"]
|
|
76324
|
+
},
|
|
76325
|
+
enterTrigger: {
|
|
76326
|
+
type: Boolean,
|
|
76327
|
+
default: true
|
|
76276
76328
|
}
|
|
76277
76329
|
},
|
|
76278
76330
|
emits: ["search", "reset"],
|
|
76279
76331
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76280
76332
|
const props = __props;
|
|
76281
76333
|
const emit = __emit;
|
|
76334
|
+
const attrs = useAttrs();
|
|
76282
76335
|
const formRef = ref$1(null);
|
|
76283
|
-
const formData =
|
|
76336
|
+
const formData = reactive({});
|
|
76284
76337
|
const isCollapsed = ref$1(true);
|
|
76285
|
-
|
|
76286
|
-
|
|
76287
|
-
|
|
76338
|
+
function toKebabCase(value) {
|
|
76339
|
+
if (typeof value !== "string") return value;
|
|
76340
|
+
if (value.indexOf("-") > -1) return value.toLowerCase();
|
|
76341
|
+
return value.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
76342
|
+
}
|
|
76343
|
+
const formAttrs = computed(() => attrs || {});
|
|
76344
|
+
const itemsPerRow = computed(() => {
|
|
76345
|
+
const span = Number(props.defaultSpan || 6);
|
|
76346
|
+
const normalizedSpan = Number.isFinite(span) && span > 0 ? span : 6;
|
|
76347
|
+
return Math.max(1, Math.floor(24 / normalizedSpan));
|
|
76348
|
+
});
|
|
76349
|
+
const processedItems = computed(() => {
|
|
76350
|
+
return (props.items || []).map((item) => {
|
|
76351
|
+
const result = { ...item };
|
|
76352
|
+
if (result.component && typeof result.component !== "string") {
|
|
76353
|
+
result.component = markRaw(toRaw(result.component));
|
|
76354
|
+
}
|
|
76355
|
+
if (result.children) {
|
|
76356
|
+
result.children = unref(result.children);
|
|
76357
|
+
}
|
|
76358
|
+
return result;
|
|
76359
|
+
});
|
|
76288
76360
|
});
|
|
76289
76361
|
const visibleItems = computed(() => {
|
|
76290
76362
|
if (!props.showCollapse || !isCollapsed.value) {
|
|
76291
|
-
return
|
|
76363
|
+
return processedItems.value;
|
|
76364
|
+
}
|
|
76365
|
+
const sourceItems = processedItems.value;
|
|
76366
|
+
let limit = Math.min(Number(props.collapseLimit || 0), sourceItems.length);
|
|
76367
|
+
if (limit > 0 && limit % itemsPerRow.value === 0 && sourceItems.length > limit) {
|
|
76368
|
+
limit = limit - 1;
|
|
76292
76369
|
}
|
|
76293
|
-
return
|
|
76370
|
+
return sourceItems.slice(0, Math.max(limit, 1));
|
|
76294
76371
|
});
|
|
76295
|
-
const
|
|
76296
|
-
const
|
|
76297
|
-
|
|
76298
|
-
|
|
76299
|
-
|
|
76300
|
-
|
|
76301
|
-
|
|
76302
|
-
|
|
76372
|
+
const normalizedActionsAlign = computed(() => {
|
|
76373
|
+
const value = String(props.actionsAlign || "").toLowerCase();
|
|
76374
|
+
return ["left", "center", "right"].includes(value) ? value : "left";
|
|
76375
|
+
});
|
|
76376
|
+
const actionAlignClass = computed(() => {
|
|
76377
|
+
return `page-search__actions--${normalizedActionsAlign.value}`;
|
|
76378
|
+
});
|
|
76379
|
+
const resolvedActionsSpan = computed(() => {
|
|
76380
|
+
const span = Number(props.actionsSpan);
|
|
76381
|
+
if (Number.isFinite(span) && span > 0) {
|
|
76382
|
+
return Math.min(Math.floor(span), 24);
|
|
76383
|
+
}
|
|
76384
|
+
return Number(props.defaultSpan || 6);
|
|
76385
|
+
});
|
|
76386
|
+
const actionsColStyle = computed(() => {
|
|
76387
|
+
const width = toCssSize(props.actionsWidth);
|
|
76388
|
+
if (!width) return void 0;
|
|
76389
|
+
return {
|
|
76390
|
+
flex: `0 0 ${width}`,
|
|
76391
|
+
maxWidth: width
|
|
76392
|
+
};
|
|
76393
|
+
});
|
|
76394
|
+
const collapseToggleLabels = computed(() => {
|
|
76395
|
+
if (Array.isArray(props.collapseToggleText)) {
|
|
76396
|
+
const expandLabel2 = String(props.collapseToggleText[0] || "").trim();
|
|
76397
|
+
const collapseLabel2 = String(props.collapseToggleText[1] || "").trim();
|
|
76398
|
+
return [expandLabel2 || "展开", collapseLabel2 || "收起"];
|
|
76399
|
+
}
|
|
76400
|
+
const text = String(props.collapseToggleText || "").trim();
|
|
76401
|
+
if (!text) return ["展开", "收起"];
|
|
76402
|
+
const parts = text.split("/");
|
|
76403
|
+
const expandLabel = String(parts[0] || "").trim();
|
|
76404
|
+
const collapseLabel = String(parts[1] || "").trim();
|
|
76405
|
+
return [expandLabel || "展开", collapseLabel || "收起"];
|
|
76406
|
+
});
|
|
76407
|
+
function normalizeComponent(component) {
|
|
76408
|
+
if (typeof component === "string") return toKebabCase(component);
|
|
76409
|
+
return markRaw(component);
|
|
76410
|
+
}
|
|
76411
|
+
function initFormData() {
|
|
76412
|
+
const nextData = {};
|
|
76413
|
+
(props.items || []).forEach((item) => {
|
|
76414
|
+
nextData[item.prop] = item.defaultValue !== void 0 ? item.defaultValue : void 0;
|
|
76303
76415
|
});
|
|
76304
|
-
formData.
|
|
76305
|
-
|
|
76416
|
+
Object.keys(formData).forEach((key) => delete formData[key]);
|
|
76417
|
+
Object.assign(formData, { ...nextData, ...props.externalParams });
|
|
76418
|
+
}
|
|
76419
|
+
function isSlotItem(item) {
|
|
76420
|
+
return item && (item.type === "slot" || item.slot === true || typeof item.slot === "string");
|
|
76421
|
+
}
|
|
76422
|
+
function getSlotRenderer(item) {
|
|
76423
|
+
const name = typeof item.slot === "string" ? item.slot : item.slotName || item.prop;
|
|
76424
|
+
return props.slotRenderers[name] || null;
|
|
76425
|
+
}
|
|
76426
|
+
function isSelectComponent(item) {
|
|
76427
|
+
const comp = item.component || "";
|
|
76428
|
+
if (typeof comp === "string") {
|
|
76429
|
+
return toKebabCase(comp) === "el-select";
|
|
76430
|
+
}
|
|
76431
|
+
return comp.componentName === "ElSelect" || comp.name && toKebabCase(comp.name) === "el-select";
|
|
76432
|
+
}
|
|
76433
|
+
function toCssSize(value) {
|
|
76434
|
+
if (value === "" || value === null || value === void 0) return "";
|
|
76435
|
+
if (typeof value === "number") return `${value}px`;
|
|
76436
|
+
return String(value);
|
|
76437
|
+
}
|
|
76438
|
+
function handleSearch() {
|
|
76439
|
+
emit("search", { ...formData, _resetPage: true });
|
|
76440
|
+
}
|
|
76441
|
+
function handleReset() {
|
|
76442
|
+
const nextData = {};
|
|
76443
|
+
(props.items || []).forEach((item) => {
|
|
76444
|
+
nextData[item.prop] = item.defaultValue !== void 0 ? item.defaultValue : void 0;
|
|
76445
|
+
});
|
|
76446
|
+
Object.keys(formData).forEach((key) => delete formData[key]);
|
|
76447
|
+
Object.assign(formData, { ...nextData, ...props.externalParams });
|
|
76448
|
+
emit("search", { ...formData, _resetPage: true });
|
|
76449
|
+
emit("reset");
|
|
76450
|
+
}
|
|
76451
|
+
function toggleCollapse() {
|
|
76452
|
+
isCollapsed.value = !isCollapsed.value;
|
|
76453
|
+
}
|
|
76306
76454
|
watch(
|
|
76307
|
-
() => props.
|
|
76308
|
-
(
|
|
76309
|
-
|
|
76310
|
-
formData.value = { ...formData.value, ...newVal };
|
|
76311
|
-
}
|
|
76455
|
+
() => props.items,
|
|
76456
|
+
() => {
|
|
76457
|
+
initFormData();
|
|
76312
76458
|
},
|
|
76313
76459
|
{ deep: true, immediate: true }
|
|
76314
76460
|
);
|
|
76315
76461
|
watch(
|
|
76316
|
-
() => props.
|
|
76462
|
+
() => props.externalParams,
|
|
76317
76463
|
() => {
|
|
76318
|
-
|
|
76464
|
+
Object.assign(formData, { ...props.externalParams });
|
|
76319
76465
|
},
|
|
76320
|
-
{ deep: true }
|
|
76466
|
+
{ deep: true, immediate: true }
|
|
76321
76467
|
);
|
|
76322
|
-
|
|
76323
|
-
|
|
76324
|
-
}
|
|
76325
|
-
|
|
76326
|
-
|
|
76327
|
-
|
|
76328
|
-
|
|
76329
|
-
|
|
76330
|
-
|
|
76331
|
-
|
|
76332
|
-
|
|
76333
|
-
|
|
76334
|
-
|
|
76335
|
-
|
|
76336
|
-
|
|
76337
|
-
};
|
|
76338
|
-
const toggleCollapse = () => {
|
|
76339
|
-
isCollapsed.value = !isCollapsed.value;
|
|
76340
|
-
};
|
|
76341
|
-
__expose({
|
|
76342
|
-
formRef,
|
|
76343
|
-
getFormData: () => ({ ...formData.value }),
|
|
76344
|
-
setFormData: (data) => {
|
|
76345
|
-
formData.value = { ...formData.value, ...data };
|
|
76346
|
-
},
|
|
76347
|
-
resetForm: handleReset,
|
|
76348
|
-
validate: () => {
|
|
76349
|
-
var _a3;
|
|
76350
|
-
return (_a3 = formRef.value) == null ? void 0 : _a3.validate();
|
|
76351
|
-
},
|
|
76352
|
-
clearValidate: (props2) => {
|
|
76353
|
-
var _a3;
|
|
76354
|
-
return (_a3 = formRef.value) == null ? void 0 : _a3.clearValidate(props2);
|
|
76468
|
+
function getFormData() {
|
|
76469
|
+
return { ...formData };
|
|
76470
|
+
}
|
|
76471
|
+
function setFormData(data) {
|
|
76472
|
+
Object.assign(formData, data || {});
|
|
76473
|
+
}
|
|
76474
|
+
function resetForm() {
|
|
76475
|
+
handleReset();
|
|
76476
|
+
}
|
|
76477
|
+
function validate() {
|
|
76478
|
+
return formRef.value && formRef.value.validate ? formRef.value.validate() : Promise.resolve(true);
|
|
76479
|
+
}
|
|
76480
|
+
function clearValidate(propsList) {
|
|
76481
|
+
if (formRef.value && formRef.value.clearValidate) {
|
|
76482
|
+
formRef.value.clearValidate(propsList);
|
|
76355
76483
|
}
|
|
76356
|
-
}
|
|
76357
|
-
|
|
76358
|
-
|
|
76484
|
+
}
|
|
76485
|
+
__expose({
|
|
76486
|
+
getFormData,
|
|
76487
|
+
setFormData,
|
|
76488
|
+
resetForm,
|
|
76489
|
+
validate,
|
|
76490
|
+
clearValidate,
|
|
76491
|
+
formRef
|
|
76359
76492
|
});
|
|
76360
76493
|
return (_ctx, _cache) => {
|
|
76494
|
+
const _component_el_option = resolveComponent("el-option");
|
|
76361
76495
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
76362
76496
|
const _component_el_col = resolveComponent("el-col");
|
|
76363
76497
|
const _component_el_button = resolveComponent("el-button");
|
|
76364
76498
|
const _component_el_icon = resolveComponent("el-icon");
|
|
76365
76499
|
const _component_el_row = resolveComponent("el-row");
|
|
76366
76500
|
const _component_el_form = resolveComponent("el-form");
|
|
76501
|
+
const _directive_enterClick = resolveDirective("enterClick");
|
|
76367
76502
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
76368
|
-
createVNode(_component_el_form, {
|
|
76503
|
+
createVNode(_component_el_form, mergeProps({
|
|
76369
76504
|
ref_key: "formRef",
|
|
76370
76505
|
ref: formRef,
|
|
76371
|
-
|
|
76372
|
-
|
|
76373
|
-
|
|
76374
|
-
}, {
|
|
76506
|
+
inline: true,
|
|
76507
|
+
model: formData
|
|
76508
|
+
}, formAttrs.value, { class: "page-search__form" }), {
|
|
76375
76509
|
default: withCtx(() => [
|
|
76376
|
-
createVNode(_component_el_row, {
|
|
76510
|
+
createVNode(_component_el_row, {
|
|
76511
|
+
gutter: 16,
|
|
76512
|
+
type: "flex",
|
|
76513
|
+
class: "page-search__row"
|
|
76514
|
+
}, {
|
|
76377
76515
|
default: withCtx(() => [
|
|
76378
76516
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index2) => {
|
|
76379
|
-
return openBlock(),
|
|
76380
|
-
|
|
76381
|
-
|
|
76382
|
-
|
|
76383
|
-
|
|
76384
|
-
|
|
76385
|
-
|
|
76386
|
-
|
|
76387
|
-
|
|
76388
|
-
|
|
76389
|
-
|
|
76390
|
-
|
|
76391
|
-
|
|
76392
|
-
|
|
76393
|
-
|
|
76394
|
-
|
|
76395
|
-
|
|
76396
|
-
|
|
76397
|
-
|
|
76398
|
-
|
|
76399
|
-
|
|
76400
|
-
|
|
76401
|
-
|
|
76402
|
-
|
|
76403
|
-
|
|
76404
|
-
|
|
76405
|
-
|
|
76406
|
-
|
|
76407
|
-
|
|
76408
|
-
|
|
76409
|
-
])
|
|
76410
|
-
|
|
76411
|
-
|
|
76412
|
-
])
|
|
76413
|
-
|
|
76414
|
-
|
|
76415
|
-
|
|
76416
|
-
key: 0,
|
|
76417
|
-
span: __props.buttonSpan,
|
|
76418
|
-
class: "search-buttons"
|
|
76419
|
-
}, {
|
|
76420
|
-
default: withCtx(() => [
|
|
76421
|
-
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
76422
|
-
default: withCtx(() => [
|
|
76423
|
-
createVNode(_component_el_button, {
|
|
76424
|
-
type: "primary",
|
|
76425
|
-
icon: unref(search_default),
|
|
76426
|
-
onClick: handleSearch
|
|
76427
|
-
}, {
|
|
76428
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
76429
|
-
createTextVNode(" 查询 ", -1)
|
|
76430
|
-
])]),
|
|
76431
|
-
_: 1
|
|
76432
|
-
}, 8, ["icon"]),
|
|
76433
|
-
createVNode(_component_el_button, {
|
|
76434
|
-
icon: unref(refresh_default),
|
|
76435
|
-
onClick: handleReset
|
|
76436
|
-
}, {
|
|
76437
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
76438
|
-
createTextVNode(" 重置 ", -1)
|
|
76439
|
-
])]),
|
|
76440
|
-
_: 1
|
|
76441
|
-
}, 8, ["icon"]),
|
|
76442
|
-
__props.showCollapse && totalItems.value > __props.collapseLimit ? (openBlock(), createBlock(_component_el_button, {
|
|
76443
|
-
key: 0,
|
|
76444
|
-
type: "primary",
|
|
76445
|
-
link: "",
|
|
76446
|
-
onClick: toggleCollapse
|
|
76447
|
-
}, {
|
|
76448
|
-
default: withCtx(() => [
|
|
76449
|
-
createTextVNode(toDisplayString(isCollapsed.value ? "展开" : "收起") + " ", 1),
|
|
76450
|
-
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
76451
|
-
default: withCtx(() => [
|
|
76452
|
-
(openBlock(), createBlock(resolveDynamicComponent(isCollapsed.value ? "ArrowDown" : "ArrowUp")))
|
|
76453
|
-
]),
|
|
76454
|
-
_: 1
|
|
76455
|
-
})
|
|
76456
|
-
]),
|
|
76457
|
-
_: 1
|
|
76458
|
-
})) : createCommentVNode("", true)
|
|
76459
|
-
]),
|
|
76460
|
-
_: 1
|
|
76461
|
-
})
|
|
76462
|
-
]),
|
|
76463
|
-
_: 1
|
|
76464
|
-
}, 8, ["span"])) : createCommentVNode("", true)
|
|
76465
|
-
], 64);
|
|
76517
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
76518
|
+
key: item.prop || index2,
|
|
76519
|
+
span: item.span || __props.defaultSpan
|
|
76520
|
+
}, {
|
|
76521
|
+
default: withCtx(() => [
|
|
76522
|
+
createVNode(_component_el_form_item, mergeProps({
|
|
76523
|
+
label: item.label,
|
|
76524
|
+
prop: item.prop
|
|
76525
|
+
}, { ref_for: true }, item.formItemAttrs || {}), {
|
|
76526
|
+
default: withCtx(() => [
|
|
76527
|
+
isSlotItem(item) ? (openBlock(), createBlock(unref(SlotRenderer), {
|
|
76528
|
+
key: 0,
|
|
76529
|
+
renderer: getSlotRenderer(item),
|
|
76530
|
+
scope: { formData, item }
|
|
76531
|
+
}, null, 8, ["renderer", "scope"])) : (openBlock(), createBlock(resolveDynamicComponent(normalizeComponent(item.component || "el-input")), mergeProps({
|
|
76532
|
+
key: 1,
|
|
76533
|
+
modelValue: formData[item.prop],
|
|
76534
|
+
"onUpdate:modelValue": ($event) => formData[item.prop] = $event
|
|
76535
|
+
}, { ref_for: true }, item.attrs || {}, toHandlers(item.events || {})), {
|
|
76536
|
+
default: withCtx(() => [
|
|
76537
|
+
isSelectComponent(item) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.children || [], (option, optionIndex) => {
|
|
76538
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
76539
|
+
key: option.value !== void 0 ? option.value : optionIndex,
|
|
76540
|
+
label: option.label,
|
|
76541
|
+
value: option.value,
|
|
76542
|
+
disabled: option.disabled
|
|
76543
|
+
}, null, 8, ["label", "value", "disabled"]);
|
|
76544
|
+
}), 128)) : createCommentVNode("", true)
|
|
76545
|
+
]),
|
|
76546
|
+
_: 2
|
|
76547
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"]))
|
|
76548
|
+
]),
|
|
76549
|
+
_: 2
|
|
76550
|
+
}, 1040, ["label", "prop"])
|
|
76551
|
+
]),
|
|
76552
|
+
_: 2
|
|
76553
|
+
}, 1032, ["span"]);
|
|
76466
76554
|
}), 128)),
|
|
76467
|
-
|
|
76468
|
-
|
|
76469
|
-
|
|
76470
|
-
class: "
|
|
76555
|
+
createVNode(_component_el_col, {
|
|
76556
|
+
span: resolvedActionsSpan.value,
|
|
76557
|
+
style: normalizeStyle(actionsColStyle.value),
|
|
76558
|
+
class: normalizeClass(["page-search__actions", actionAlignClass.value])
|
|
76471
76559
|
}, {
|
|
76472
76560
|
default: withCtx(() => [
|
|
76473
76561
|
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
76474
76562
|
default: withCtx(() => [
|
|
76475
|
-
|
|
76563
|
+
__props.enterTrigger ? withDirectives((openBlock(), createBlock(_component_el_button, {
|
|
76564
|
+
key: 0,
|
|
76476
76565
|
type: "primary",
|
|
76477
|
-
icon: unref(search_default),
|
|
76478
76566
|
onClick: handleSearch
|
|
76479
76567
|
}, {
|
|
76480
|
-
default: withCtx(() => [..._cache[
|
|
76481
|
-
createTextVNode("
|
|
76568
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
76569
|
+
createTextVNode("查询", -1)
|
|
76482
76570
|
])]),
|
|
76483
76571
|
_: 1
|
|
76484
|
-
},
|
|
76485
|
-
|
|
76486
|
-
|
|
76487
|
-
|
|
76572
|
+
})), [
|
|
76573
|
+
[_directive_enterClick]
|
|
76574
|
+
]) : (openBlock(), createBlock(_component_el_button, {
|
|
76575
|
+
key: 1,
|
|
76576
|
+
type: "primary",
|
|
76577
|
+
onClick: handleSearch
|
|
76488
76578
|
}, {
|
|
76489
|
-
default: withCtx(() => [..._cache[
|
|
76490
|
-
createTextVNode("
|
|
76579
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
76580
|
+
createTextVNode("查询", -1)
|
|
76491
76581
|
])]),
|
|
76492
76582
|
_: 1
|
|
76493
|
-
}
|
|
76494
|
-
|
|
76495
|
-
|
|
76496
|
-
|
|
76583
|
+
})),
|
|
76584
|
+
createVNode(_component_el_button, { onClick: handleReset }, {
|
|
76585
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
76586
|
+
createTextVNode("重置", -1)
|
|
76587
|
+
])]),
|
|
76588
|
+
_: 1
|
|
76589
|
+
}),
|
|
76590
|
+
__props.slotRenderers["actions-after-reset"] ? (openBlock(), createBlock(unref(SlotRenderer), {
|
|
76591
|
+
key: 2,
|
|
76592
|
+
renderer: __props.slotRenderers["actions-after-reset"],
|
|
76593
|
+
scope: { formData, handleSearch, handleReset, isCollapsed: isCollapsed.value }
|
|
76594
|
+
}, null, 8, ["renderer", "scope"])) : createCommentVNode("", true),
|
|
76595
|
+
__props.showCollapse && __props.items.length > __props.collapseLimit ? (openBlock(), createBlock(_component_el_button, {
|
|
76596
|
+
key: 3,
|
|
76497
76597
|
link: "",
|
|
76498
76598
|
onClick: toggleCollapse
|
|
76499
76599
|
}, {
|
|
76500
76600
|
default: withCtx(() => [
|
|
76501
|
-
|
|
76502
|
-
createVNode(_component_el_icon,
|
|
76601
|
+
createElementVNode("span", null, toDisplayString(isCollapsed.value ? collapseToggleLabels.value[0] : collapseToggleLabels.value[1]), 1),
|
|
76602
|
+
createVNode(_component_el_icon, null, {
|
|
76503
76603
|
default: withCtx(() => [
|
|
76504
|
-
(openBlock(), createBlock(resolveDynamicComponent(isCollapsed.value ?
|
|
76604
|
+
(openBlock(), createBlock(resolveDynamicComponent(isCollapsed.value ? unref(arrow_down_default) : unref(arrow_up_default))))
|
|
76505
76605
|
]),
|
|
76506
76606
|
_: 1
|
|
76507
76607
|
})
|
|
@@ -76513,380 +76613,338 @@ const _sfc_main$3 = {
|
|
|
76513
76613
|
})
|
|
76514
76614
|
]),
|
|
76515
76615
|
_: 1
|
|
76516
|
-
}, 8, ["span"
|
|
76616
|
+
}, 8, ["span", "style", "class"])
|
|
76517
76617
|
]),
|
|
76518
|
-
_:
|
|
76618
|
+
_: 1
|
|
76519
76619
|
})
|
|
76520
76620
|
]),
|
|
76521
|
-
_:
|
|
76522
|
-
},
|
|
76621
|
+
_: 1
|
|
76622
|
+
}, 16, ["model"])
|
|
76523
76623
|
]);
|
|
76524
76624
|
};
|
|
76525
76625
|
}
|
|
76526
|
-
};
|
|
76527
|
-
const NsSearch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
76528
|
-
const
|
|
76529
|
-
|
|
76530
|
-
|
|
76531
|
-
|
|
76532
|
-
|
|
76533
|
-
|
|
76534
|
-
|
|
76535
|
-
|
|
76536
|
-
|
|
76537
|
-
|
|
76538
|
-
|
|
76539
|
-
const
|
|
76540
|
-
|
|
76626
|
+
});
|
|
76627
|
+
const NsSearch = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-96f0d4e2"]]);
|
|
76628
|
+
const RESERVED_KEYS = [
|
|
76629
|
+
"children",
|
|
76630
|
+
"slot",
|
|
76631
|
+
"headerSlot",
|
|
76632
|
+
"buttons",
|
|
76633
|
+
"enum",
|
|
76634
|
+
"type",
|
|
76635
|
+
"imageWidth",
|
|
76636
|
+
"imageHeight",
|
|
76637
|
+
"linkText"
|
|
76638
|
+
];
|
|
76639
|
+
const TableColumn = {
|
|
76640
|
+
name: "NsTableColumn",
|
|
76541
76641
|
props: {
|
|
76542
76642
|
column: {
|
|
76543
76643
|
type: Object,
|
|
76544
76644
|
required: true
|
|
76645
|
+
},
|
|
76646
|
+
slotRenderers: {
|
|
76647
|
+
type: Object,
|
|
76648
|
+
default: () => ({})
|
|
76545
76649
|
}
|
|
76546
76650
|
},
|
|
76547
76651
|
emits: ["link-click", "button-click"],
|
|
76548
|
-
setup(
|
|
76549
|
-
|
|
76550
|
-
|
|
76551
|
-
|
|
76552
|
-
|
|
76553
|
-
|
|
76652
|
+
setup(props, { emit }) {
|
|
76653
|
+
function getColumnProps(column) {
|
|
76654
|
+
const columnProps = { ...column };
|
|
76655
|
+
RESERVED_KEYS.forEach((key) => delete columnProps[key]);
|
|
76656
|
+
return columnProps;
|
|
76657
|
+
}
|
|
76658
|
+
function getRenderer(name) {
|
|
76659
|
+
return name ? props.slotRenderers[name] : null;
|
|
76660
|
+
}
|
|
76661
|
+
function getCellValue(row, column) {
|
|
76662
|
+
return column.prop ? row[column.prop] : void 0;
|
|
76663
|
+
}
|
|
76664
|
+
function isVisible(config, row) {
|
|
76665
|
+
if (typeof config.show === "function") {
|
|
76666
|
+
return config.show(row) !== false;
|
|
76554
76667
|
}
|
|
76555
|
-
|
|
76556
|
-
|
|
76557
|
-
const isBtnShow = (btn, row) => {
|
|
76558
|
-
if (!btn.show) return true;
|
|
76559
|
-
if (typeof btn.show === "function") {
|
|
76560
|
-
return btn.show(row);
|
|
76668
|
+
if (config.show === void 0) {
|
|
76669
|
+
return true;
|
|
76561
76670
|
}
|
|
76562
|
-
return
|
|
76563
|
-
}
|
|
76564
|
-
|
|
76565
|
-
|
|
76566
|
-
|
|
76671
|
+
return !!config.show;
|
|
76672
|
+
}
|
|
76673
|
+
function isDisabled(config, row) {
|
|
76674
|
+
return typeof config.disabled === "function" ? !!config.disabled(row) : !!config.disabled;
|
|
76675
|
+
}
|
|
76676
|
+
function renderActionButtons(scope, column) {
|
|
76677
|
+
const buttons = Array.isArray(column.buttons) ? column.buttons : [];
|
|
76678
|
+
return buttons.filter((button) => isVisible(button, scope.row)).map((button, index2) => {
|
|
76679
|
+
const slotRenderer = getRenderer(button.slot);
|
|
76680
|
+
if (slotRenderer) {
|
|
76681
|
+
return slotRenderer({ ...scope, row: scope.row, column, button });
|
|
76682
|
+
}
|
|
76683
|
+
return h$2(
|
|
76684
|
+
ElButton,
|
|
76685
|
+
{
|
|
76686
|
+
key: button.label || index2,
|
|
76687
|
+
size: button.size || "small",
|
|
76688
|
+
link: button.link !== false,
|
|
76689
|
+
type: button.link ? void 0 : button.type,
|
|
76690
|
+
icon: button.icon || void 0,
|
|
76691
|
+
disabled: isDisabled(button, scope.row),
|
|
76692
|
+
onClick: () => {
|
|
76693
|
+
if (typeof button.handler === "function") {
|
|
76694
|
+
button.handler(scope.row, scope.$index);
|
|
76695
|
+
}
|
|
76696
|
+
emit("button-click", scope.row, column, button);
|
|
76697
|
+
}
|
|
76698
|
+
},
|
|
76699
|
+
{ default: () => button.label }
|
|
76700
|
+
);
|
|
76701
|
+
});
|
|
76702
|
+
}
|
|
76703
|
+
function renderTag(scope, column) {
|
|
76704
|
+
const cellValue = getCellValue(scope.row, column);
|
|
76705
|
+
const tagType = typeof column.tagType === "function" ? column.tagType(scope.row, cellValue) : column.tagType;
|
|
76706
|
+
const text = typeof column.formatter === "function" ? column.formatter(scope.row, column, cellValue) : resolveEnumText(column, cellValue);
|
|
76707
|
+
return h$2(ElTag, { type: tagType || "info", size: column.tagSize || "small" }, { default: () => text });
|
|
76708
|
+
}
|
|
76709
|
+
function renderImage(scope, column) {
|
|
76710
|
+
const src2 = getCellValue(scope.row, column);
|
|
76711
|
+
if (!src2) {
|
|
76712
|
+
return "-";
|
|
76567
76713
|
}
|
|
76568
|
-
|
|
76569
|
-
|
|
76714
|
+
return h$2("img", {
|
|
76715
|
+
style: {
|
|
76716
|
+
width: column.imageWidth || "40px",
|
|
76717
|
+
height: column.imageHeight || "40px",
|
|
76718
|
+
objectFit: "cover",
|
|
76719
|
+
borderRadius: "4px"
|
|
76720
|
+
},
|
|
76721
|
+
src: src2,
|
|
76722
|
+
alt: column.label || "image"
|
|
76723
|
+
});
|
|
76724
|
+
}
|
|
76725
|
+
function renderLink(scope, column) {
|
|
76726
|
+
const renderer = getRenderer(column.slot);
|
|
76727
|
+
if (renderer) {
|
|
76728
|
+
return renderer(scope);
|
|
76570
76729
|
}
|
|
76571
|
-
|
|
76572
|
-
|
|
76573
|
-
|
|
76574
|
-
|
|
76575
|
-
|
|
76576
|
-
|
|
76577
|
-
|
|
76578
|
-
|
|
76579
|
-
|
|
76730
|
+
const cellValue = getCellValue(scope.row, column);
|
|
76731
|
+
return h$2(
|
|
76732
|
+
ElButton,
|
|
76733
|
+
{
|
|
76734
|
+
link: true,
|
|
76735
|
+
onClick: () => emit("link-click", scope.row, column)
|
|
76736
|
+
},
|
|
76737
|
+
{ default: () => column.linkText || cellValue || "-" }
|
|
76738
|
+
);
|
|
76739
|
+
}
|
|
76740
|
+
function resolveEnumText(column, value) {
|
|
76741
|
+
const enumList = column.enum || column.options || [];
|
|
76742
|
+
if (!Array.isArray(enumList)) {
|
|
76743
|
+
return value;
|
|
76580
76744
|
}
|
|
76581
|
-
|
|
76582
|
-
|
|
76745
|
+
const matched = enumList.find((item) => item.value === value);
|
|
76746
|
+
return matched ? matched.label : value;
|
|
76747
|
+
}
|
|
76748
|
+
function renderDefaultCell(scope, column) {
|
|
76749
|
+
const renderer = getRenderer(column.slot);
|
|
76750
|
+
if (renderer) {
|
|
76751
|
+
return renderer(scope);
|
|
76583
76752
|
}
|
|
76584
|
-
|
|
76585
|
-
|
|
76586
|
-
const handleLinkClick = (row, column) => {
|
|
76587
|
-
emit("link-click", row, column);
|
|
76588
|
-
};
|
|
76589
|
-
const boundColumnProps = [
|
|
76590
|
-
"prop",
|
|
76591
|
-
"label",
|
|
76592
|
-
"width",
|
|
76593
|
-
"minWidth",
|
|
76594
|
-
"fixed",
|
|
76595
|
-
"sortable",
|
|
76596
|
-
"align",
|
|
76597
|
-
"headerAlign",
|
|
76598
|
-
"showOverflowTooltip",
|
|
76599
|
-
"type",
|
|
76600
|
-
"slot",
|
|
76601
|
-
"buttons",
|
|
76602
|
-
"tagMap",
|
|
76603
|
-
"imageWidth",
|
|
76604
|
-
"imageHeight",
|
|
76605
|
-
"previewList",
|
|
76606
|
-
"formatter",
|
|
76607
|
-
"format",
|
|
76608
|
-
"enum",
|
|
76609
|
-
"attrs",
|
|
76610
|
-
"children"
|
|
76611
|
-
];
|
|
76612
|
-
const getColumnAttrs = (column) => {
|
|
76613
|
-
const result = {};
|
|
76614
|
-
for (const key in column) {
|
|
76615
|
-
if (!boundColumnProps.includes(key)) {
|
|
76616
|
-
result[key] = column[key];
|
|
76617
|
-
}
|
|
76753
|
+
if (column.type === "action") {
|
|
76754
|
+
return h$2("div", { class: "ns-table-column__actions" }, renderActionButtons(scope, column));
|
|
76618
76755
|
}
|
|
76619
|
-
if (column.
|
|
76620
|
-
|
|
76756
|
+
if (column.type === "tag") {
|
|
76757
|
+
return renderTag(scope, column);
|
|
76621
76758
|
}
|
|
76622
|
-
|
|
76623
|
-
|
|
76624
|
-
|
|
76625
|
-
|
|
76626
|
-
|
|
76627
|
-
|
|
76628
|
-
const
|
|
76629
|
-
|
|
76630
|
-
|
|
76631
|
-
|
|
76632
|
-
|
|
76633
|
-
|
|
76634
|
-
|
|
76635
|
-
|
|
76636
|
-
|
|
76637
|
-
|
|
76638
|
-
|
|
76639
|
-
|
|
76640
|
-
|
|
76641
|
-
|
|
76642
|
-
|
|
76643
|
-
|
|
76644
|
-
|
|
76645
|
-
|
|
76646
|
-
|
|
76647
|
-
|
|
76648
|
-
|
|
76649
|
-
|
|
76650
|
-
|
|
76651
|
-
|
|
76652
|
-
|
|
76653
|
-
|
|
76654
|
-
|
|
76655
|
-
|
|
76656
|
-
|
|
76657
|
-
|
|
76658
|
-
|
|
76659
|
-
|
|
76660
|
-
|
|
76661
|
-
|
|
76662
|
-
|
|
76663
|
-
|
|
76664
|
-
|
|
76665
|
-
|
|
76666
|
-
|
|
76667
|
-
|
|
76668
|
-
|
|
76669
|
-
$index: scope.$index
|
|
76670
|
-
}) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
76671
|
-
isBtnShow(btn, scope.row) ? (openBlock(), createBlock(_component_el_button, {
|
|
76672
|
-
key: 0,
|
|
76673
|
-
type: btn.type || "primary",
|
|
76674
|
-
size: btn.size || "small",
|
|
76675
|
-
link: btn.link,
|
|
76676
|
-
icon: btn.icon,
|
|
76677
|
-
disabled: isBtnDisabled(btn, scope.row),
|
|
76678
|
-
class: normalizeClass({
|
|
76679
|
-
"is-disabled-custom": isBtnDisabled(btn, scope.row)
|
|
76680
|
-
}),
|
|
76681
|
-
onClick: withModifiers(($event) => handleButtonClick(btn, scope.row, scope.$index), ["stop"])
|
|
76682
|
-
}, {
|
|
76683
|
-
default: withCtx(() => [
|
|
76684
|
-
createTextVNode(toDisplayString(btn.label), 1)
|
|
76685
|
-
]),
|
|
76686
|
-
_: 2
|
|
76687
|
-
}, 1032, ["type", "size", "link", "icon", "disabled", "class", "onClick"])) : createCommentVNode("", true)
|
|
76688
|
-
], 64))
|
|
76689
|
-
], 64);
|
|
76690
|
-
}), 128)) : __props.column.slot ? renderSlot(_ctx.$slots, __props.column.slot, {
|
|
76691
|
-
key: 1,
|
|
76692
|
-
row: scope.row,
|
|
76693
|
-
column: __props.column,
|
|
76694
|
-
$index: scope.$index
|
|
76695
|
-
}, () => [
|
|
76696
|
-
createTextVNode(toDisplayString(scope.row[__props.column.prop]), 1)
|
|
76697
|
-
]) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
76698
|
-
__props.column.type === "tag" ? (openBlock(), createBlock(_component_el_tag, {
|
|
76699
|
-
key: 0,
|
|
76700
|
-
type: getTagType(scope.row[__props.column.prop], __props.column.tagMap)
|
|
76701
|
-
}, {
|
|
76702
|
-
default: withCtx(() => [
|
|
76703
|
-
createTextVNode(toDisplayString(formatValue(scope.row[__props.column.prop], __props.column)), 1)
|
|
76704
|
-
]),
|
|
76705
|
-
_: 2
|
|
76706
|
-
}, 1032, ["type"])) : __props.column.type === "image" ? (openBlock(), createBlock(_component_el_image, {
|
|
76707
|
-
key: 1,
|
|
76708
|
-
src: scope.row[__props.column.prop],
|
|
76709
|
-
style: normalizeStyle({
|
|
76710
|
-
width: __props.column.imageWidth || "50px",
|
|
76711
|
-
height: __props.column.imageHeight || "50px"
|
|
76712
|
-
}),
|
|
76713
|
-
"preview-src-list": __props.column.previewList ? [scope.row[__props.column.prop]] : void 0,
|
|
76714
|
-
fit: "cover"
|
|
76715
|
-
}, null, 8, ["src", "style", "preview-src-list"])) : __props.column.type === "link" ? (openBlock(), createBlock(_component_el_link, {
|
|
76716
|
-
key: 2,
|
|
76717
|
-
type: "primary",
|
|
76718
|
-
onClick: ($event) => handleLinkClick(scope.row, __props.column)
|
|
76719
|
-
}, {
|
|
76720
|
-
default: withCtx(() => [
|
|
76721
|
-
createTextVNode(toDisplayString(formatValue(scope.row[__props.column.prop], __props.column)), 1)
|
|
76722
|
-
]),
|
|
76723
|
-
_: 2
|
|
76724
|
-
}, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
76725
|
-
createTextVNode(toDisplayString(formatValue(scope.row[__props.column.prop], __props.column)), 1)
|
|
76726
|
-
], 64))
|
|
76727
|
-
], 64))
|
|
76728
|
-
]),
|
|
76729
|
-
key: "0"
|
|
76730
|
-
} : void 0
|
|
76731
|
-
]), 1040, ["prop", "label", "width", "min-width", "fixed", "sortable", "align", "header-align", "show-overflow-tooltip"]);
|
|
76732
|
-
};
|
|
76759
|
+
if (column.type === "image") {
|
|
76760
|
+
return renderImage(scope, column);
|
|
76761
|
+
}
|
|
76762
|
+
if (column.type === "link") {
|
|
76763
|
+
return renderLink(scope, column);
|
|
76764
|
+
}
|
|
76765
|
+
const cellValue = getCellValue(scope.row, column);
|
|
76766
|
+
if (typeof column.formatter === "function") {
|
|
76767
|
+
return column.formatter(scope.row, column, cellValue);
|
|
76768
|
+
}
|
|
76769
|
+
if (column.enum) {
|
|
76770
|
+
return resolveEnumText(column, cellValue);
|
|
76771
|
+
}
|
|
76772
|
+
return cellValue === void 0 || cellValue === null || cellValue === "" ? "-" : cellValue;
|
|
76773
|
+
}
|
|
76774
|
+
function buildChildVnodes(children) {
|
|
76775
|
+
return children.map((child, index2) => {
|
|
76776
|
+
const childHasChildren = Array.isArray(child.children) && child.children.length > 0;
|
|
76777
|
+
const childKey = child.prop || child.label || `col_${index2}`;
|
|
76778
|
+
const childProps = { key: childKey, ...getColumnProps(child) };
|
|
76779
|
+
if (childHasChildren) {
|
|
76780
|
+
return h$2(ElTableColumn, childProps, buildChildVnodes(child.children));
|
|
76781
|
+
}
|
|
76782
|
+
return h$2(ElTableColumn, childProps, {
|
|
76783
|
+
default: (scope) => {
|
|
76784
|
+
if (!scope) return null;
|
|
76785
|
+
return renderDefaultCell(scope, child);
|
|
76786
|
+
}
|
|
76787
|
+
});
|
|
76788
|
+
});
|
|
76789
|
+
}
|
|
76790
|
+
function renderColumn(column) {
|
|
76791
|
+
const hasChildren = Array.isArray(column.children) && column.children.length > 0;
|
|
76792
|
+
const headerRenderer = getRenderer(column.headerSlot);
|
|
76793
|
+
if (hasChildren) {
|
|
76794
|
+
return h$2(ElTableColumn, getColumnProps(column), buildChildVnodes(column.children));
|
|
76795
|
+
}
|
|
76796
|
+
const slots = {
|
|
76797
|
+
default: (scope) => {
|
|
76798
|
+
if (!scope) return null;
|
|
76799
|
+
return renderDefaultCell(scope, column);
|
|
76800
|
+
}
|
|
76801
|
+
};
|
|
76802
|
+
if (headerRenderer) slots.header = headerRenderer;
|
|
76803
|
+
return h$2(ElTableColumn, getColumnProps(column), slots);
|
|
76804
|
+
}
|
|
76805
|
+
return () => renderColumn(props.column);
|
|
76733
76806
|
}
|
|
76734
|
-
}
|
|
76807
|
+
};
|
|
76808
|
+
const DEFAULT_PAGINATION = {
|
|
76809
|
+
total: 0,
|
|
76810
|
+
currentPage: 1,
|
|
76811
|
+
pageSize: 10
|
|
76812
|
+
};
|
|
76813
|
+
function createPagination(customParams = {}) {
|
|
76814
|
+
return {
|
|
76815
|
+
...DEFAULT_PAGINATION,
|
|
76816
|
+
...customParams
|
|
76817
|
+
};
|
|
76818
|
+
}
|
|
76735
76819
|
const _hoisted_1$1 = { class: "page-table" };
|
|
76736
|
-
const _hoisted_2
|
|
76820
|
+
const _hoisted_2 = {
|
|
76737
76821
|
key: 0,
|
|
76738
|
-
class: "
|
|
76822
|
+
class: "page-table__header"
|
|
76739
76823
|
};
|
|
76740
|
-
const _hoisted_3
|
|
76741
|
-
const _hoisted_4 = { class: "
|
|
76824
|
+
const _hoisted_3 = { class: "page-table__actions" };
|
|
76825
|
+
const _hoisted_4 = { class: "page-table__main" };
|
|
76742
76826
|
const _hoisted_5 = {
|
|
76743
76827
|
key: 1,
|
|
76744
|
-
class: "
|
|
76828
|
+
class: "page-table__empty"
|
|
76829
|
+
};
|
|
76830
|
+
const _hoisted_6 = {
|
|
76831
|
+
key: 1,
|
|
76832
|
+
class: "page-table__pagination"
|
|
76745
76833
|
};
|
|
76746
|
-
const _sfc_main$1 = {
|
|
76834
|
+
const _sfc_main$1 = /* @__PURE__ */ Object.assign({
|
|
76835
|
+
name: "NsTable",
|
|
76836
|
+
inheritAttrs: false
|
|
76837
|
+
}, {
|
|
76747
76838
|
__name: "PageTable",
|
|
76748
76839
|
props: {
|
|
76749
|
-
// 表格数据
|
|
76750
76840
|
tableData: {
|
|
76751
76841
|
type: Array,
|
|
76752
76842
|
default: () => []
|
|
76753
76843
|
},
|
|
76754
|
-
// 列配置
|
|
76755
76844
|
columns: {
|
|
76756
76845
|
type: Array,
|
|
76757
76846
|
default: () => []
|
|
76758
76847
|
},
|
|
76759
|
-
// 操作按钮配置
|
|
76760
76848
|
actionButtons: {
|
|
76761
76849
|
type: Array,
|
|
76762
76850
|
default: () => []
|
|
76763
76851
|
},
|
|
76764
|
-
// 操作列宽度
|
|
76765
|
-
actionColumnWidth: {
|
|
76766
|
-
type: [String, Number],
|
|
76767
|
-
default: 200
|
|
76768
|
-
},
|
|
76769
|
-
// 操作列固定
|
|
76770
|
-
actionFixed: {
|
|
76771
|
-
type: [String, Boolean],
|
|
76772
|
-
default: "right"
|
|
76773
|
-
},
|
|
76774
|
-
// 操作列标签
|
|
76775
|
-
actionColumnLabel: {
|
|
76776
|
-
type: String,
|
|
76777
|
-
default: "操作"
|
|
76778
|
-
},
|
|
76779
|
-
// 操作列对齐方式
|
|
76780
|
-
actionColumnAlign: {
|
|
76781
|
-
type: String,
|
|
76782
|
-
default: "left"
|
|
76783
|
-
},
|
|
76784
|
-
// 操作列表头对齐方式
|
|
76785
|
-
actionColumnHeaderAlign: {
|
|
76786
|
-
type: String,
|
|
76787
|
-
default: "center"
|
|
76788
|
-
},
|
|
76789
|
-
// 操作列最小宽度
|
|
76790
|
-
actionColumnMinWidth: {
|
|
76791
|
-
type: [String, Number],
|
|
76792
|
-
default: void 0
|
|
76793
|
-
},
|
|
76794
|
-
// 是否显示新增按钮
|
|
76795
76852
|
showAddButton: {
|
|
76796
76853
|
type: Boolean,
|
|
76797
76854
|
default: true
|
|
76798
76855
|
},
|
|
76799
|
-
// 新增按钮文本
|
|
76800
76856
|
addButtonText: {
|
|
76801
76857
|
type: String,
|
|
76802
76858
|
default: "新增"
|
|
76803
76859
|
},
|
|
76804
|
-
// 是否显示表头工具栏
|
|
76805
76860
|
showHeaderToolbar: {
|
|
76806
76861
|
type: Boolean,
|
|
76807
76862
|
default: true
|
|
76808
76863
|
},
|
|
76809
|
-
// 是否显示选择列
|
|
76810
76864
|
showSelection: {
|
|
76811
76865
|
type: Boolean,
|
|
76812
76866
|
default: false
|
|
76813
76867
|
},
|
|
76814
|
-
// 是否显示序号列
|
|
76815
76868
|
showIndex: {
|
|
76816
76869
|
type: Boolean,
|
|
76817
76870
|
default: false
|
|
76818
76871
|
},
|
|
76819
|
-
|
|
76872
|
+
indexWidth: {
|
|
76873
|
+
type: [String, Number],
|
|
76874
|
+
default: 60
|
|
76875
|
+
},
|
|
76876
|
+
indexAlign: {
|
|
76877
|
+
type: String,
|
|
76878
|
+
default: ""
|
|
76879
|
+
},
|
|
76880
|
+
indexHeaderAlign: {
|
|
76881
|
+
type: String,
|
|
76882
|
+
default: ""
|
|
76883
|
+
},
|
|
76820
76884
|
border: {
|
|
76821
76885
|
type: Boolean,
|
|
76822
76886
|
default: true
|
|
76823
76887
|
},
|
|
76824
|
-
// 是否显示斑马纹
|
|
76825
76888
|
stripe: {
|
|
76826
76889
|
type: Boolean,
|
|
76827
76890
|
default: false
|
|
76828
76891
|
},
|
|
76829
|
-
// 表格高度
|
|
76830
76892
|
height: {
|
|
76831
76893
|
type: [String, Number],
|
|
76832
76894
|
default: void 0
|
|
76833
76895
|
},
|
|
76834
|
-
// 表格最大高度
|
|
76835
76896
|
maxHeight: {
|
|
76836
76897
|
type: [String, Number],
|
|
76837
76898
|
default: void 0
|
|
76838
76899
|
},
|
|
76839
|
-
|
|
76900
|
+
autoHeight: {
|
|
76901
|
+
type: Boolean,
|
|
76902
|
+
default: true
|
|
76903
|
+
},
|
|
76840
76904
|
rowKey: {
|
|
76841
76905
|
type: [String, Function],
|
|
76842
76906
|
default: void 0
|
|
76843
76907
|
},
|
|
76844
|
-
// 是否默认展开所有行
|
|
76845
76908
|
defaultExpandAll: {
|
|
76846
76909
|
type: Boolean,
|
|
76847
76910
|
default: false
|
|
76848
76911
|
},
|
|
76849
|
-
// 是否高亮当前行
|
|
76850
76912
|
highlightCurrentRow: {
|
|
76851
76913
|
type: Boolean,
|
|
76852
76914
|
default: false
|
|
76853
76915
|
},
|
|
76854
|
-
// 是否显示加载状态
|
|
76855
76916
|
loading: {
|
|
76856
76917
|
type: Boolean,
|
|
76857
76918
|
default: false
|
|
76858
76919
|
},
|
|
76859
|
-
// 是否显示分页
|
|
76860
76920
|
showPagination: {
|
|
76861
76921
|
type: Boolean,
|
|
76862
76922
|
default: true
|
|
76863
76923
|
},
|
|
76864
|
-
// 总条数
|
|
76865
76924
|
total: {
|
|
76866
76925
|
type: Number,
|
|
76867
76926
|
default: 0
|
|
76868
76927
|
},
|
|
76869
|
-
// 当前页(可选,如果传入则使用外部值,否则使用内部管理)
|
|
76870
76928
|
currentPage: {
|
|
76871
76929
|
type: Number,
|
|
76872
76930
|
default: null
|
|
76873
76931
|
},
|
|
76874
|
-
// 每页条数(可选,如果传入则使用外部值,否则使用内部管理)
|
|
76875
76932
|
pageSize: {
|
|
76876
76933
|
type: Number,
|
|
76877
76934
|
default: null
|
|
76878
76935
|
},
|
|
76879
|
-
|
|
76936
|
+
useDefaultPage: {
|
|
76937
|
+
type: Boolean,
|
|
76938
|
+
default: true
|
|
76939
|
+
},
|
|
76880
76940
|
pageSizes: {
|
|
76881
76941
|
type: Array,
|
|
76882
76942
|
default: () => [10, 20, 50, 100]
|
|
76883
76943
|
},
|
|
76884
|
-
// 分页布局
|
|
76885
76944
|
paginationLayout: {
|
|
76886
76945
|
type: String,
|
|
76887
76946
|
default: "total, sizes, prev, pager, next, jumper"
|
|
76888
76947
|
},
|
|
76889
|
-
// 分页参数自定义 key 名称
|
|
76890
76948
|
pageNumberKey: {
|
|
76891
76949
|
type: String,
|
|
76892
76950
|
default: "currentPage"
|
|
@@ -76898,6 +76956,10 @@ const _sfc_main$1 = {
|
|
|
76898
76956
|
pageTotalKey: {
|
|
76899
76957
|
type: String,
|
|
76900
76958
|
default: "total"
|
|
76959
|
+
},
|
|
76960
|
+
slotRenderers: {
|
|
76961
|
+
type: Object,
|
|
76962
|
+
default: () => ({})
|
|
76901
76963
|
}
|
|
76902
76964
|
},
|
|
76903
76965
|
emits: [
|
|
@@ -76912,432 +76974,369 @@ const _sfc_main$1 = {
|
|
|
76912
76974
|
"update:pageSize"
|
|
76913
76975
|
],
|
|
76914
76976
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76977
|
+
const RESERVED_LISTENERS = ["add", "selection-change", "sort-change", "row-click", "size-change", "current-change", "link-click"];
|
|
76915
76978
|
const props = __props;
|
|
76916
76979
|
const emit = __emit;
|
|
76917
76980
|
const attrs = useAttrs();
|
|
76918
|
-
const
|
|
76919
|
-
|
|
76920
|
-
|
|
76921
|
-
|
|
76922
|
-
|
|
76923
|
-
|
|
76924
|
-
|
|
76925
|
-
|
|
76926
|
-
|
|
76927
|
-
|
|
76928
|
-
|
|
76929
|
-
|
|
76930
|
-
|
|
76931
|
-
|
|
76932
|
-
|
|
76933
|
-
|
|
76934
|
-
|
|
76935
|
-
|
|
76936
|
-
|
|
76937
|
-
"rowKey",
|
|
76938
|
-
"defaultExpandAll",
|
|
76939
|
-
"highlightCurrentRow",
|
|
76940
|
-
"loading",
|
|
76941
|
-
"showPagination",
|
|
76942
|
-
"total",
|
|
76943
|
-
"currentPage",
|
|
76944
|
-
"pageSize",
|
|
76945
|
-
"pageSizes",
|
|
76946
|
-
"paginationLayout",
|
|
76947
|
-
"pageNumberKey",
|
|
76948
|
-
"pageSizeKey",
|
|
76949
|
-
"pageTotalKey"
|
|
76950
|
-
];
|
|
76951
|
-
const definedEvents = [
|
|
76952
|
-
"add",
|
|
76953
|
-
"selection-change",
|
|
76954
|
-
"sort-change",
|
|
76955
|
-
"row-click",
|
|
76956
|
-
"size-change",
|
|
76957
|
-
"current-change",
|
|
76958
|
-
"link-click",
|
|
76959
|
-
"update:currentPage",
|
|
76960
|
-
"update:pageSize"
|
|
76961
|
-
];
|
|
76962
|
-
const toKebabCase = (str) => {
|
|
76963
|
-
return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
76964
|
-
};
|
|
76965
|
-
const toEventName = (eventName) => {
|
|
76966
|
-
return "on" + eventName.replace(/-([a-z])/g, (_3, letter) => letter.toUpperCase());
|
|
76967
|
-
};
|
|
76968
|
-
const tableAttrs = computed(() => {
|
|
76969
|
-
const result = {};
|
|
76970
|
-
for (const key in attrs) {
|
|
76971
|
-
const isDefinedProp = definedProps.some(
|
|
76972
|
-
(prop) => key === prop || key === toKebabCase(prop)
|
|
76973
|
-
);
|
|
76974
|
-
const isDefinedEvent = definedEvents.some((event) => {
|
|
76975
|
-
const eventKey = toEventName(event);
|
|
76976
|
-
return key === eventKey;
|
|
76981
|
+
const tableRef = ref$1(null);
|
|
76982
|
+
const internalPagination = reactive(createPagination());
|
|
76983
|
+
const currentPageModel = computed(() => {
|
|
76984
|
+
return props.currentPage === null ? internalPagination.currentPage : props.currentPage;
|
|
76985
|
+
});
|
|
76986
|
+
const pageSizeModel = computed(() => {
|
|
76987
|
+
return props.pageSize === null ? internalPagination.pageSize : props.pageSize;
|
|
76988
|
+
});
|
|
76989
|
+
const mergedAttrs = computed(() => attrs || {});
|
|
76990
|
+
const mergedListeners = computed(() => {
|
|
76991
|
+
const listeners = {};
|
|
76992
|
+
if (attrs) {
|
|
76993
|
+
Object.keys(attrs).forEach((key) => {
|
|
76994
|
+
if (key.startsWith("on") && key.length > 2) {
|
|
76995
|
+
const eventName = key.charAt(2).toLowerCase() + key.slice(3);
|
|
76996
|
+
if (!RESERVED_LISTENERS.includes(eventName)) {
|
|
76997
|
+
listeners[key] = attrs[key];
|
|
76998
|
+
}
|
|
76999
|
+
}
|
|
76977
77000
|
});
|
|
76978
|
-
if (!isDefinedProp && !isDefinedEvent) {
|
|
76979
|
-
result[key] = attrs[key];
|
|
76980
|
-
}
|
|
76981
77001
|
}
|
|
76982
|
-
return
|
|
77002
|
+
return listeners;
|
|
77003
|
+
});
|
|
77004
|
+
const resolvedHeight = computed(() => {
|
|
77005
|
+
if (props.height !== void 0) {
|
|
77006
|
+
return props.height;
|
|
77007
|
+
}
|
|
77008
|
+
if (props.autoHeight && props.maxHeight === void 0) {
|
|
77009
|
+
return "100%";
|
|
77010
|
+
}
|
|
77011
|
+
return void 0;
|
|
77012
|
+
});
|
|
77013
|
+
const resolvedMaxHeight = computed(() => {
|
|
77014
|
+
if (props.maxHeight !== void 0) {
|
|
77015
|
+
return props.maxHeight;
|
|
77016
|
+
}
|
|
77017
|
+
return void 0;
|
|
76983
77018
|
});
|
|
76984
|
-
const tableRef = ref$1(null);
|
|
76985
|
-
const internalPagination = reactive(createPagination());
|
|
76986
77019
|
watch(
|
|
76987
77020
|
() => props.currentPage,
|
|
76988
|
-
(
|
|
76989
|
-
if (
|
|
76990
|
-
internalPagination.currentPage =
|
|
77021
|
+
(value) => {
|
|
77022
|
+
if (value !== null) {
|
|
77023
|
+
internalPagination.currentPage = value;
|
|
76991
77024
|
}
|
|
76992
77025
|
},
|
|
76993
77026
|
{ immediate: true }
|
|
76994
77027
|
);
|
|
76995
77028
|
watch(
|
|
76996
77029
|
() => props.pageSize,
|
|
76997
|
-
(
|
|
76998
|
-
if (
|
|
76999
|
-
internalPagination.pageSize =
|
|
77030
|
+
(value) => {
|
|
77031
|
+
if (value !== null) {
|
|
77032
|
+
internalPagination.pageSize = value;
|
|
77000
77033
|
}
|
|
77001
77034
|
},
|
|
77002
77035
|
{ immediate: true }
|
|
77003
77036
|
);
|
|
77004
|
-
|
|
77005
|
-
get: () => props.currentPage !== null ? props.currentPage : internalPagination.currentPage,
|
|
77006
|
-
set: (val) => {
|
|
77007
|
-
internalPagination.currentPage = val;
|
|
77008
|
-
emit("update:currentPage", val);
|
|
77009
|
-
}
|
|
77010
|
-
});
|
|
77011
|
-
const pageSizeModel = computed({
|
|
77012
|
-
get: () => props.pageSize !== null ? props.pageSize : internalPagination.pageSize,
|
|
77013
|
-
set: (val) => {
|
|
77014
|
-
internalPagination.pageSize = val;
|
|
77015
|
-
emit("update:pageSize", val);
|
|
77016
|
-
}
|
|
77017
|
-
});
|
|
77018
|
-
const getNumIndex = (index2) => {
|
|
77019
|
-
return (Number(currentPageModel.value) - 1) * Number(pageSizeModel.value) + index2 + 1;
|
|
77020
|
-
};
|
|
77021
|
-
const handleAdd = () => {
|
|
77037
|
+
function handleAdd() {
|
|
77022
77038
|
emit("add");
|
|
77023
|
-
}
|
|
77024
|
-
|
|
77039
|
+
}
|
|
77040
|
+
function handleSelectionChange(selection) {
|
|
77025
77041
|
emit("selection-change", selection);
|
|
77026
|
-
}
|
|
77027
|
-
|
|
77028
|
-
emit("sort-change",
|
|
77029
|
-
}
|
|
77030
|
-
|
|
77042
|
+
}
|
|
77043
|
+
function handleSortChange2(sort2) {
|
|
77044
|
+
emit("sort-change", sort2);
|
|
77045
|
+
}
|
|
77046
|
+
function handleRowClick(row, column, event) {
|
|
77031
77047
|
emit("row-click", row, column, event);
|
|
77032
|
-
}
|
|
77033
|
-
|
|
77048
|
+
}
|
|
77049
|
+
function handleSizeChange(size) {
|
|
77050
|
+
internalPagination.pageSize = size;
|
|
77051
|
+
if (!props.useDefaultPage) {
|
|
77052
|
+
emit("update:pageSize", size);
|
|
77053
|
+
}
|
|
77034
77054
|
emit("size-change", size);
|
|
77035
|
-
}
|
|
77036
|
-
|
|
77055
|
+
}
|
|
77056
|
+
function handleCurrentChange(page) {
|
|
77057
|
+
internalPagination.currentPage = page;
|
|
77058
|
+
if (!props.useDefaultPage) {
|
|
77059
|
+
emit("update:currentPage", page);
|
|
77060
|
+
}
|
|
77037
77061
|
emit("current-change", page);
|
|
77038
|
-
}
|
|
77039
|
-
|
|
77062
|
+
}
|
|
77063
|
+
function handleLinkClick(row, column) {
|
|
77040
77064
|
emit("link-click", row, column);
|
|
77041
|
-
}
|
|
77042
|
-
|
|
77043
|
-
|
|
77044
|
-
|
|
77045
|
-
|
|
77046
|
-
|
|
77047
|
-
|
|
77048
|
-
|
|
77049
|
-
|
|
77050
|
-
|
|
77051
|
-
|
|
77052
|
-
|
|
77053
|
-
|
|
77054
|
-
|
|
77055
|
-
|
|
77056
|
-
},
|
|
77057
|
-
setCurrentRow: (row) => {
|
|
77058
|
-
var _a3, _b;
|
|
77059
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.setCurrentRow) == null ? void 0 : _b.call(_a3, row);
|
|
77060
|
-
},
|
|
77061
|
-
// 获取选择数据
|
|
77062
|
-
getSelectionRows: () => {
|
|
77063
|
-
var _a3, _b;
|
|
77064
|
-
return ((_b = (_a3 = tableRef.value) == null ? void 0 : _a3.getSelectionRows) == null ? void 0 : _b.call(_a3)) || [];
|
|
77065
|
-
},
|
|
77066
|
-
getSelectionKeys: () => {
|
|
77067
|
-
var _a3, _b;
|
|
77068
|
-
const rows = ((_b = (_a3 = tableRef.value) == null ? void 0 : _a3.getSelectionRows) == null ? void 0 : _b.call(_a3)) || [];
|
|
77069
|
-
if (props.rowKey) {
|
|
77070
|
-
if (typeof props.rowKey === "function") {
|
|
77071
|
-
return rows.map((row) => props.rowKey(row));
|
|
77072
|
-
} else {
|
|
77073
|
-
return rows.map((row) => row[props.rowKey]);
|
|
77074
|
-
}
|
|
77075
|
-
}
|
|
77065
|
+
}
|
|
77066
|
+
function getIndex(index2) {
|
|
77067
|
+
if (!props.showPagination) {
|
|
77068
|
+
return index2 + 1;
|
|
77069
|
+
}
|
|
77070
|
+
const currentPage = Number(currentPageModel.value || 1);
|
|
77071
|
+
const pageSize = Number(pageSizeModel.value || 10);
|
|
77072
|
+
return (currentPage - 1) * pageSize + index2 + 1;
|
|
77073
|
+
}
|
|
77074
|
+
function getSelectionRows() {
|
|
77075
|
+
return tableRef.value && tableRef.value.selection ? tableRef.value.selection : [];
|
|
77076
|
+
}
|
|
77077
|
+
function getSelectionKeys() {
|
|
77078
|
+
const rows = getSelectionRows();
|
|
77079
|
+
if (!props.rowKey) {
|
|
77076
77080
|
return rows;
|
|
77077
|
-
}
|
|
77078
|
-
|
|
77079
|
-
|
|
77080
|
-
|
|
77081
|
-
|
|
77082
|
-
|
|
77083
|
-
|
|
77084
|
-
|
|
77085
|
-
|
|
77086
|
-
|
|
77087
|
-
|
|
77088
|
-
|
|
77089
|
-
|
|
77090
|
-
|
|
77091
|
-
const
|
|
77092
|
-
|
|
77093
|
-
|
|
77094
|
-
|
|
77095
|
-
|
|
77096
|
-
|
|
77097
|
-
|
|
77098
|
-
|
|
77099
|
-
|
|
77100
|
-
|
|
77101
|
-
|
|
77102
|
-
|
|
77103
|
-
|
|
77104
|
-
|
|
77105
|
-
|
|
77106
|
-
}
|
|
77107
|
-
|
|
77108
|
-
|
|
77109
|
-
|
|
77110
|
-
|
|
77111
|
-
|
|
77112
|
-
|
|
77113
|
-
|
|
77114
|
-
|
|
77115
|
-
|
|
77116
|
-
|
|
77117
|
-
|
|
77118
|
-
|
|
77119
|
-
|
|
77120
|
-
|
|
77121
|
-
|
|
77122
|
-
|
|
77123
|
-
|
|
77124
|
-
|
|
77125
|
-
|
|
77126
|
-
|
|
77127
|
-
|
|
77128
|
-
|
|
77129
|
-
|
|
77130
|
-
|
|
77131
|
-
|
|
77132
|
-
|
|
77133
|
-
|
|
77134
|
-
|
|
77135
|
-
|
|
77136
|
-
|
|
77137
|
-
|
|
77138
|
-
|
|
77139
|
-
clearFilter: (columnKey) => {
|
|
77140
|
-
var _a3, _b;
|
|
77141
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.clearFilter) == null ? void 0 : _b.call(_a3, columnKey);
|
|
77142
|
-
},
|
|
77143
|
-
doLayout: () => {
|
|
77144
|
-
var _a3, _b;
|
|
77145
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.doLayout) == null ? void 0 : _b.call(_a3);
|
|
77146
|
-
},
|
|
77147
|
-
sort: (prop, order) => {
|
|
77148
|
-
var _a3, _b;
|
|
77149
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.sort) == null ? void 0 : _b.call(_a3, prop, order);
|
|
77150
|
-
},
|
|
77151
|
-
// 分页控制方法
|
|
77152
|
-
resetPage: () => {
|
|
77153
|
-
internalPagination.currentPage = 1;
|
|
77081
|
+
}
|
|
77082
|
+
return rows.map((row) => typeof props.rowKey === "function" ? props.rowKey(row) : row[props.rowKey]);
|
|
77083
|
+
}
|
|
77084
|
+
function setSelectionRows(rows) {
|
|
77085
|
+
if (!tableRef.value) return;
|
|
77086
|
+
tableRef.value.clearSelection();
|
|
77087
|
+
(rows || []).forEach((row) => {
|
|
77088
|
+
tableRef.value.toggleRowSelection(row, true);
|
|
77089
|
+
});
|
|
77090
|
+
}
|
|
77091
|
+
function setSelectionKeys(keys2) {
|
|
77092
|
+
if (!tableRef.value || !props.rowKey) return;
|
|
77093
|
+
tableRef.value.clearSelection();
|
|
77094
|
+
(keys2 || []).forEach((key) => {
|
|
77095
|
+
const row = (props.tableData || []).find((item) => (typeof props.rowKey === "function" ? props.rowKey(item) : item[props.rowKey]) === key);
|
|
77096
|
+
if (row) {
|
|
77097
|
+
tableRef.value.toggleRowSelection(row, true);
|
|
77098
|
+
}
|
|
77099
|
+
});
|
|
77100
|
+
}
|
|
77101
|
+
function isRowSelected(row) {
|
|
77102
|
+
return getSelectionRows().includes(row);
|
|
77103
|
+
}
|
|
77104
|
+
function isKeySelected(key) {
|
|
77105
|
+
return getSelectionKeys().includes(key);
|
|
77106
|
+
}
|
|
77107
|
+
function clearSelection() {
|
|
77108
|
+
if (tableRef.value) {
|
|
77109
|
+
tableRef.value.clearSelection();
|
|
77110
|
+
}
|
|
77111
|
+
}
|
|
77112
|
+
function toggleRowSelection(row, selected) {
|
|
77113
|
+
if (tableRef.value) {
|
|
77114
|
+
tableRef.value.toggleRowSelection(row, selected);
|
|
77115
|
+
}
|
|
77116
|
+
}
|
|
77117
|
+
function toggleAllSelection() {
|
|
77118
|
+
if (tableRef.value) {
|
|
77119
|
+
tableRef.value.toggleAllSelection();
|
|
77120
|
+
}
|
|
77121
|
+
}
|
|
77122
|
+
function selectAll() {
|
|
77123
|
+
toggleAllSelection();
|
|
77124
|
+
}
|
|
77125
|
+
function clearAllSelection() {
|
|
77126
|
+
clearSelection();
|
|
77127
|
+
}
|
|
77128
|
+
function clearSort() {
|
|
77129
|
+
tableRef.value && tableRef.value.clearSort && tableRef.value.clearSort();
|
|
77130
|
+
}
|
|
77131
|
+
function clearFilter(columnKey) {
|
|
77132
|
+
tableRef.value && tableRef.value.clearFilter && tableRef.value.clearFilter(columnKey);
|
|
77133
|
+
}
|
|
77134
|
+
function doLayout() {
|
|
77135
|
+
tableRef.value && tableRef.value.doLayout && tableRef.value.doLayout();
|
|
77136
|
+
}
|
|
77137
|
+
function sort(prop, order) {
|
|
77138
|
+
tableRef.value && tableRef.value.sort && tableRef.value.sort(prop, order);
|
|
77139
|
+
}
|
|
77140
|
+
function resetPage() {
|
|
77141
|
+
internalPagination.currentPage = 1;
|
|
77142
|
+
if (!props.useDefaultPage) {
|
|
77154
77143
|
emit("update:currentPage", 1);
|
|
77155
|
-
}
|
|
77156
|
-
|
|
77157
|
-
|
|
77144
|
+
}
|
|
77145
|
+
}
|
|
77146
|
+
function setPage(page) {
|
|
77147
|
+
internalPagination.currentPage = page;
|
|
77148
|
+
if (!props.useDefaultPage) {
|
|
77158
77149
|
emit("update:currentPage", page);
|
|
77159
|
-
}
|
|
77160
|
-
|
|
77161
|
-
|
|
77150
|
+
}
|
|
77151
|
+
}
|
|
77152
|
+
function setPageSize(size) {
|
|
77153
|
+
internalPagination.pageSize = size;
|
|
77154
|
+
if (!props.useDefaultPage) {
|
|
77162
77155
|
emit("update:pageSize", size);
|
|
77163
|
-
}
|
|
77164
|
-
|
|
77156
|
+
}
|
|
77157
|
+
}
|
|
77158
|
+
function getPagination() {
|
|
77159
|
+
return {
|
|
77165
77160
|
[props.pageTotalKey]: props.total,
|
|
77166
77161
|
[props.pageNumberKey]: currentPageModel.value,
|
|
77167
77162
|
[props.pageSizeKey]: pageSizeModel.value
|
|
77168
|
-
}
|
|
77169
|
-
|
|
77170
|
-
|
|
77171
|
-
|
|
77172
|
-
|
|
77173
|
-
}
|
|
77174
|
-
if (pagination.pageSize !== void 0) {
|
|
77175
|
-
internalPagination.pageSize = pagination.pageSize;
|
|
77176
|
-
emit("update:pageSize", pagination.pageSize);
|
|
77177
|
-
}
|
|
77163
|
+
};
|
|
77164
|
+
}
|
|
77165
|
+
function setPagination(pagination) {
|
|
77166
|
+
if (pagination.currentPage !== void 0) {
|
|
77167
|
+
setPage(pagination.currentPage);
|
|
77178
77168
|
}
|
|
77169
|
+
if (pagination.pageSize !== void 0) {
|
|
77170
|
+
setPageSize(pagination.pageSize);
|
|
77171
|
+
}
|
|
77172
|
+
}
|
|
77173
|
+
__expose({
|
|
77174
|
+
tableRef,
|
|
77175
|
+
getSelectionRows,
|
|
77176
|
+
getSelectionKeys,
|
|
77177
|
+
setSelectionRows,
|
|
77178
|
+
setSelectionKeys,
|
|
77179
|
+
isRowSelected,
|
|
77180
|
+
isKeySelected,
|
|
77181
|
+
clearSelection,
|
|
77182
|
+
toggleRowSelection,
|
|
77183
|
+
toggleAllSelection,
|
|
77184
|
+
selectAll,
|
|
77185
|
+
clearAllSelection,
|
|
77186
|
+
clearSort,
|
|
77187
|
+
clearFilter,
|
|
77188
|
+
doLayout,
|
|
77189
|
+
sort,
|
|
77190
|
+
resetPage,
|
|
77191
|
+
setPage,
|
|
77192
|
+
setPageSize,
|
|
77193
|
+
getPagination,
|
|
77194
|
+
setPagination
|
|
77179
77195
|
});
|
|
77180
77196
|
return (_ctx, _cache) => {
|
|
77181
77197
|
const _component_el_button = resolveComponent("el-button");
|
|
77182
77198
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
77183
|
-
const _component_el_empty = resolveComponent("el-empty");
|
|
77184
77199
|
const _component_el_table = resolveComponent("el-table");
|
|
77185
77200
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
77186
77201
|
const _directive_loading = resolveDirective("loading");
|
|
77187
77202
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
77188
|
-
|
|
77189
|
-
|
|
77190
|
-
|
|
77191
|
-
|
|
77192
|
-
|
|
77193
|
-
|
|
77194
|
-
|
|
77195
|
-
|
|
77196
|
-
|
|
77197
|
-
|
|
77198
|
-
|
|
77199
|
-
|
|
77200
|
-
|
|
77201
|
-
|
|
77202
|
-
|
|
77203
|
-
|
|
77204
|
-
|
|
77205
|
-
|
|
77206
|
-
],
|
|
77207
|
-
|
|
77208
|
-
|
|
77203
|
+
__props.showHeaderToolbar ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
77204
|
+
createVNode(unref(SlotRenderer), {
|
|
77205
|
+
renderer: __props.slotRenderers["header-left"],
|
|
77206
|
+
scope: { tableData: __props.tableData }
|
|
77207
|
+
}, null, 8, ["renderer", "scope"]),
|
|
77208
|
+
createElementVNode("div", _hoisted_3, [
|
|
77209
|
+
createVNode(unref(SlotRenderer), {
|
|
77210
|
+
renderer: __props.slotRenderers["header-actions"],
|
|
77211
|
+
scope: { tableData: __props.tableData }
|
|
77212
|
+
}, null, 8, ["renderer", "scope"]),
|
|
77213
|
+
__props.showAddButton && !__props.slotRenderers["header-actions"] ? (openBlock(), createBlock(_component_el_button, {
|
|
77214
|
+
key: 0,
|
|
77215
|
+
type: "primary",
|
|
77216
|
+
size: "small",
|
|
77217
|
+
onClick: handleAdd
|
|
77218
|
+
}, {
|
|
77219
|
+
default: withCtx(() => [
|
|
77220
|
+
createTextVNode(toDisplayString(__props.addButtonText), 1)
|
|
77221
|
+
]),
|
|
77222
|
+
_: 1
|
|
77223
|
+
})) : createCommentVNode("", true)
|
|
77224
|
+
])
|
|
77225
|
+
])) : createCommentVNode("", true),
|
|
77226
|
+
createElementVNode("div", _hoisted_4, [
|
|
77209
77227
|
withDirectives((openBlock(), createBlock(_component_el_table, mergeProps({
|
|
77210
77228
|
ref_key: "tableRef",
|
|
77211
|
-
ref: tableRef
|
|
77212
|
-
}, tableAttrs.value, {
|
|
77229
|
+
ref: tableRef,
|
|
77213
77230
|
data: __props.tableData,
|
|
77214
77231
|
border: __props.border,
|
|
77215
77232
|
stripe: __props.stripe,
|
|
77216
|
-
height:
|
|
77217
|
-
"max-height":
|
|
77233
|
+
height: resolvedHeight.value,
|
|
77234
|
+
"max-height": resolvedMaxHeight.value,
|
|
77218
77235
|
"row-key": __props.rowKey,
|
|
77219
77236
|
"default-expand-all": __props.defaultExpandAll,
|
|
77220
77237
|
"highlight-current-row": __props.highlightCurrentRow,
|
|
77238
|
+
class: ["page-table__table", { "page-table__table--no-border": !__props.border }]
|
|
77239
|
+
}, mergedAttrs.value, toHandlers(mergedListeners.value), {
|
|
77221
77240
|
onSelectionChange: handleSelectionChange,
|
|
77222
77241
|
onSortChange: handleSortChange2,
|
|
77223
77242
|
onRowClick: handleRowClick
|
|
77224
77243
|
}), {
|
|
77225
77244
|
empty: withCtx(() => [
|
|
77226
|
-
|
|
77227
|
-
|
|
77228
|
-
|
|
77245
|
+
__props.slotRenderers.empty ? (openBlock(), createBlock(unref(SlotRenderer), {
|
|
77246
|
+
key: 0,
|
|
77247
|
+
renderer: __props.slotRenderers.empty,
|
|
77248
|
+
scope: { tableData: __props.tableData }
|
|
77249
|
+
}, null, 8, ["renderer", "scope"])) : (openBlock(), createElementBlock("div", _hoisted_5, "暂无数据"))
|
|
77229
77250
|
]),
|
|
77230
77251
|
default: withCtx(() => [
|
|
77231
77252
|
__props.showSelection ? (openBlock(), createBlock(_component_el_table_column, {
|
|
77232
77253
|
key: 0,
|
|
77233
77254
|
type: "selection",
|
|
77234
77255
|
width: "55",
|
|
77235
|
-
align: "center",
|
|
77236
77256
|
"reserve-selection": !!__props.rowKey
|
|
77237
77257
|
}, null, 8, ["reserve-selection"])) : createCommentVNode("", true),
|
|
77238
77258
|
__props.showIndex ? (openBlock(), createBlock(_component_el_table_column, {
|
|
77239
77259
|
key: 1,
|
|
77240
77260
|
type: "index",
|
|
77241
77261
|
label: "序号",
|
|
77242
|
-
width:
|
|
77243
|
-
index:
|
|
77244
|
-
align:
|
|
77245
|
-
|
|
77246
|
-
|
|
77247
|
-
|
|
77248
|
-
|
|
77262
|
+
width: __props.indexWidth,
|
|
77263
|
+
index: getIndex,
|
|
77264
|
+
align: __props.indexAlign,
|
|
77265
|
+
"header-align": __props.indexHeaderAlign || __props.indexAlign
|
|
77266
|
+
}, null, 8, ["width", "align", "header-align"])) : createCommentVNode("", true),
|
|
77267
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column, index2) => {
|
|
77268
|
+
return openBlock(), createBlock(unref(TableColumn), {
|
|
77269
|
+
key: column.prop || column.label || index2,
|
|
77249
77270
|
column,
|
|
77271
|
+
"slot-renderers": __props.slotRenderers,
|
|
77250
77272
|
onLinkClick: handleLinkClick
|
|
77251
|
-
},
|
|
77252
|
-
renderList(_ctx.$slots, (_3, slotName) => {
|
|
77253
|
-
return {
|
|
77254
|
-
name: slotName,
|
|
77255
|
-
fn: withCtx((slotData) => [
|
|
77256
|
-
renderSlot(_ctx.$slots, slotName, mergeProps({ ref_for: true }, slotData), void 0, true)
|
|
77257
|
-
])
|
|
77258
|
-
};
|
|
77259
|
-
})
|
|
77260
|
-
]), 1032, ["column"]);
|
|
77273
|
+
}, null, 8, ["column", "slot-renderers"]);
|
|
77261
77274
|
}), 128))
|
|
77262
77275
|
]),
|
|
77263
|
-
_:
|
|
77264
|
-
}, 16, ["data", "border", "stripe", "height", "max-height", "row-key", "default-expand-all", "highlight-current-row"])), [
|
|
77276
|
+
_: 1
|
|
77277
|
+
}, 16, ["data", "border", "stripe", "height", "max-height", "row-key", "default-expand-all", "highlight-current-row", "class"])), [
|
|
77265
77278
|
[_directive_loading, __props.loading]
|
|
77266
|
-
])
|
|
77267
|
-
|
|
77268
|
-
|
|
77269
|
-
|
|
77270
|
-
|
|
77271
|
-
|
|
77272
|
-
|
|
77273
|
-
|
|
77274
|
-
|
|
77275
|
-
|
|
77276
|
-
|
|
77277
|
-
|
|
77278
|
-
|
|
77279
|
-
|
|
77280
|
-
], true)
|
|
77279
|
+
])
|
|
77280
|
+
]),
|
|
77281
|
+
__props.showPagination ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
77282
|
+
createVNode(_component_el_pagination, {
|
|
77283
|
+
background: "",
|
|
77284
|
+
"current-page": currentPageModel.value,
|
|
77285
|
+
"page-size": pageSizeModel.value,
|
|
77286
|
+
"page-sizes": __props.pageSizes,
|
|
77287
|
+
total: __props.total,
|
|
77288
|
+
layout: __props.paginationLayout,
|
|
77289
|
+
onSizeChange: handleSizeChange,
|
|
77290
|
+
onCurrentChange: handleCurrentChange
|
|
77291
|
+
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"])
|
|
77292
|
+
])) : createCommentVNode("", true)
|
|
77281
77293
|
]);
|
|
77282
77294
|
};
|
|
77283
77295
|
}
|
|
77284
|
-
};
|
|
77285
|
-
const NsTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
77296
|
+
});
|
|
77297
|
+
const NsTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-52972a74"]]);
|
|
77286
77298
|
const _hoisted_1 = { class: "page-container" };
|
|
77287
|
-
const
|
|
77288
|
-
|
|
77289
|
-
|
|
77290
|
-
};
|
|
77291
|
-
const _hoisted_3 = { class: "table-wrapper" };
|
|
77292
|
-
const _sfc_main = {
|
|
77299
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
77300
|
+
name: "NsTableContainer"
|
|
77301
|
+
}, {
|
|
77293
77302
|
__name: "PageContainer",
|
|
77294
77303
|
props: {
|
|
77295
|
-
// 是否显示搜索区域
|
|
77296
77304
|
showSearch: {
|
|
77297
77305
|
type: Boolean,
|
|
77298
77306
|
default: true
|
|
77299
77307
|
},
|
|
77300
|
-
// 外部注入的搜索参数(用于特殊情况传参)
|
|
77301
77308
|
externalSearchParams: {
|
|
77302
77309
|
type: Object,
|
|
77303
77310
|
default: () => ({})
|
|
77304
77311
|
},
|
|
77305
|
-
// 搜索项配置
|
|
77306
77312
|
searchItems: {
|
|
77307
77313
|
type: Array,
|
|
77308
77314
|
default: () => []
|
|
77309
77315
|
},
|
|
77310
|
-
// 表格数据
|
|
77311
77316
|
tableData: {
|
|
77312
77317
|
type: Array,
|
|
77313
77318
|
default: () => []
|
|
77314
77319
|
},
|
|
77315
|
-
// 列配置
|
|
77316
77320
|
columns: {
|
|
77317
77321
|
type: Array,
|
|
77318
77322
|
default: () => []
|
|
77319
77323
|
},
|
|
77320
|
-
// 操作按钮配置
|
|
77321
77324
|
actionButtons: {
|
|
77322
77325
|
type: Array,
|
|
77323
77326
|
default: () => []
|
|
77324
77327
|
},
|
|
77325
|
-
// 总条数
|
|
77326
77328
|
total: {
|
|
77327
77329
|
type: Number,
|
|
77328
77330
|
default: 0
|
|
77329
77331
|
},
|
|
77330
|
-
// 当前页(可选,如果传入则使用外部值,否则使用内部管理)
|
|
77331
77332
|
currentPage: {
|
|
77332
77333
|
type: Number,
|
|
77333
77334
|
default: null
|
|
77334
77335
|
},
|
|
77335
|
-
// 每页条数(可选,如果传入则使用外部值,否则使用内部管理)
|
|
77336
77336
|
pageSize: {
|
|
77337
77337
|
type: Number,
|
|
77338
77338
|
default: null
|
|
77339
77339
|
},
|
|
77340
|
-
// 分页参数自定义 key 名称
|
|
77341
77340
|
pageNumberKey: {
|
|
77342
77341
|
type: String,
|
|
77343
77342
|
default: "currentPage"
|
|
@@ -77350,415 +77349,411 @@ const _sfc_main = {
|
|
|
77350
77349
|
type: String,
|
|
77351
77350
|
default: "total"
|
|
77352
77351
|
},
|
|
77353
|
-
// PageSearch 的其他属性
|
|
77354
77352
|
searchProps: {
|
|
77355
77353
|
type: Object,
|
|
77356
77354
|
default: () => ({})
|
|
77357
77355
|
},
|
|
77358
|
-
|
|
77356
|
+
enterTrigger: {
|
|
77357
|
+
type: Boolean,
|
|
77358
|
+
default: true
|
|
77359
|
+
},
|
|
77359
77360
|
tableProps: {
|
|
77360
77361
|
type: Object,
|
|
77361
77362
|
default: () => ({})
|
|
77362
77363
|
},
|
|
77363
|
-
|
|
77364
|
-
|
|
77365
|
-
|
|
77366
|
-
default: null
|
|
77364
|
+
useDefaultPage: {
|
|
77365
|
+
type: Boolean,
|
|
77366
|
+
default: true
|
|
77367
77367
|
}
|
|
77368
77368
|
},
|
|
77369
77369
|
emits: [
|
|
77370
|
-
"update:currentPage",
|
|
77371
|
-
"update:pageSize",
|
|
77372
77370
|
"search",
|
|
77373
77371
|
"reset",
|
|
77374
77372
|
"add",
|
|
77375
|
-
"size-change",
|
|
77376
|
-
"current-change",
|
|
77377
|
-
"page-change",
|
|
77378
77373
|
"selection-change",
|
|
77379
77374
|
"sort-change",
|
|
77380
77375
|
"row-click",
|
|
77381
|
-
"
|
|
77376
|
+
"size-change",
|
|
77377
|
+
"current-change",
|
|
77378
|
+
"page-change",
|
|
77379
|
+
"link-click",
|
|
77380
|
+
"update:currentPage",
|
|
77381
|
+
"update:pageSize"
|
|
77382
77382
|
],
|
|
77383
77383
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
77384
77384
|
const props = __props;
|
|
77385
77385
|
const emit = __emit;
|
|
77386
|
+
useSlots();
|
|
77386
77387
|
const searchRef = ref$1(null);
|
|
77387
77388
|
const tableRef = ref$1(null);
|
|
77388
77389
|
const internalPagination = reactive(createPagination());
|
|
77390
|
+
const internalSearchParams = reactive({});
|
|
77391
|
+
const internalSortState = reactive({ prop: "", order: "" });
|
|
77389
77392
|
const pendingSelectionKeys = ref$1(/* @__PURE__ */ new Set());
|
|
77390
|
-
|
|
77391
|
-
|
|
77392
|
-
|
|
77393
|
-
|
|
77394
|
-
|
|
77395
|
-
|
|
77396
|
-
},
|
|
77397
|
-
{ immediate: true }
|
|
77398
|
-
);
|
|
77399
|
-
watch(
|
|
77400
|
-
() => props.pageSize,
|
|
77401
|
-
(newVal) => {
|
|
77402
|
-
if (newVal !== null && newVal !== internalPagination.pageSize) {
|
|
77403
|
-
internalPagination.pageSize = newVal;
|
|
77404
|
-
}
|
|
77405
|
-
},
|
|
77406
|
-
{ immediate: true }
|
|
77407
|
-
);
|
|
77408
|
-
const currentPageModel = computed({
|
|
77409
|
-
get: () => props.currentPage !== null ? props.currentPage : internalPagination.currentPage,
|
|
77410
|
-
set: (val) => {
|
|
77411
|
-
internalPagination.currentPage = val;
|
|
77412
|
-
emit("update:currentPage", val);
|
|
77413
|
-
}
|
|
77393
|
+
const selectionRowMap = reactive({});
|
|
77394
|
+
const isSyncingSelection = ref$1(false);
|
|
77395
|
+
let emitSearchTimer = null;
|
|
77396
|
+
const currentPageModel = computed(() => {
|
|
77397
|
+
if (props.useDefaultPage) return internalPagination.currentPage;
|
|
77398
|
+
return props.currentPage === null ? internalPagination.currentPage : props.currentPage;
|
|
77414
77399
|
});
|
|
77415
|
-
const pageSizeModel = computed({
|
|
77416
|
-
|
|
77417
|
-
|
|
77418
|
-
internalPagination.pageSize = val;
|
|
77419
|
-
emit("update:pageSize", val);
|
|
77420
|
-
}
|
|
77400
|
+
const pageSizeModel = computed(() => {
|
|
77401
|
+
if (props.useDefaultPage) return internalPagination.pageSize;
|
|
77402
|
+
return props.pageSize === null ? internalPagination.pageSize : props.pageSize;
|
|
77421
77403
|
});
|
|
77422
|
-
|
|
77423
|
-
|
|
77424
|
-
|
|
77425
|
-
|
|
77426
|
-
|
|
77427
|
-
|
|
77428
|
-
|
|
77429
|
-
|
|
77430
|
-
props.tableData.forEach((row) => {
|
|
77431
|
-
var _a4, _b;
|
|
77432
|
-
let key;
|
|
77433
|
-
if (typeof rowKey === "function") {
|
|
77434
|
-
key = rowKey(row);
|
|
77435
|
-
} else {
|
|
77436
|
-
key = row[rowKey];
|
|
77437
|
-
}
|
|
77438
|
-
if (pendingSelectionKeys.value.has(key)) {
|
|
77439
|
-
(_b = (_a4 = tableRef.value) == null ? void 0 : _a4.toggleRowSelection) == null ? void 0 : _b.call(_a4, row, true);
|
|
77440
|
-
}
|
|
77441
|
-
});
|
|
77442
|
-
}, 0);
|
|
77443
|
-
}
|
|
77444
|
-
},
|
|
77445
|
-
{ immediate: true }
|
|
77446
|
-
);
|
|
77447
|
-
const handleSearch = (params) => {
|
|
77448
|
-
var _a3, _b;
|
|
77404
|
+
const currentRowKey = computed(() => {
|
|
77405
|
+
return props.tableProps && props.tableProps.rowKey;
|
|
77406
|
+
});
|
|
77407
|
+
function getRowKey(row) {
|
|
77408
|
+
if (!currentRowKey.value) return row;
|
|
77409
|
+
return typeof currentRowKey.value === "function" ? currentRowKey.value(row) : row[currentRowKey.value];
|
|
77410
|
+
}
|
|
77411
|
+
function resetSelectionState() {
|
|
77449
77412
|
pendingSelectionKeys.value = /* @__PURE__ */ new Set();
|
|
77413
|
+
Object.keys(selectionRowMap).forEach((key) => delete selectionRowMap[key]);
|
|
77450
77414
|
if (tableRef.value) {
|
|
77451
|
-
|
|
77415
|
+
tableRef.value.clearSelection && tableRef.value.clearSelection();
|
|
77416
|
+
}
|
|
77417
|
+
}
|
|
77418
|
+
function syncSelectionToCurrentPage() {
|
|
77419
|
+
if (!currentRowKey.value || !tableRef.value) {
|
|
77420
|
+
return;
|
|
77452
77421
|
}
|
|
77422
|
+
isSyncingSelection.value = true;
|
|
77423
|
+
(props.tableData || []).forEach((row) => {
|
|
77424
|
+
const key = getRowKey(row);
|
|
77425
|
+
if (pendingSelectionKeys.value.has(key)) {
|
|
77426
|
+
selectionRowMap[key] = row;
|
|
77427
|
+
} else {
|
|
77428
|
+
delete selectionRowMap[key];
|
|
77429
|
+
}
|
|
77430
|
+
});
|
|
77431
|
+
const rowsToSelect = (props.tableData || []).filter(
|
|
77432
|
+
(row) => pendingSelectionKeys.value.has(getRowKey(row))
|
|
77433
|
+
);
|
|
77434
|
+
const elTable = tableRef.value.tableRef;
|
|
77435
|
+
const currentSelection = elTable ? elTable.getSelectionRows() : [];
|
|
77436
|
+
const currentSelectedKeys = currentSelection.map((row) => getRowKey(row));
|
|
77437
|
+
const toAdd = rowsToSelect.filter((row) => !currentSelectedKeys.includes(getRowKey(row)));
|
|
77438
|
+
const toRemove = (props.tableData || []).filter(
|
|
77439
|
+
(row) => !pendingSelectionKeys.value.has(getRowKey(row)) && currentSelectedKeys.includes(getRowKey(row))
|
|
77440
|
+
);
|
|
77441
|
+
toAdd.forEach((row) => {
|
|
77442
|
+
tableRef.value.toggleRowSelection(row, true);
|
|
77443
|
+
});
|
|
77444
|
+
toRemove.forEach((row) => {
|
|
77445
|
+
tableRef.value.toggleRowSelection(row, false);
|
|
77446
|
+
});
|
|
77447
|
+
nextTick(() => {
|
|
77448
|
+
isSyncingSelection.value = false;
|
|
77449
|
+
});
|
|
77450
|
+
}
|
|
77451
|
+
function handleSearch(params) {
|
|
77452
|
+
resetSelectionState();
|
|
77453
|
+
let nextParams = params || {};
|
|
77453
77454
|
if (params && params._resetPage) {
|
|
77454
77455
|
const { _resetPage, ...searchParams } = params;
|
|
77456
|
+
nextParams = searchParams;
|
|
77455
77457
|
internalPagination.currentPage = 1;
|
|
77456
|
-
|
|
77457
|
-
|
|
77458
|
-
|
|
77459
|
-
}
|
|
77460
|
-
};
|
|
77461
|
-
const handleReset = () => {
|
|
77462
|
-
var _a3, _b;
|
|
77463
|
-
pendingSelectionKeys.value = /* @__PURE__ */ new Set();
|
|
77464
|
-
if (tableRef.value) {
|
|
77465
|
-
(_b = (_a3 = tableRef.value).clearSelection) == null ? void 0 : _b.call(_a3);
|
|
77458
|
+
if (!props.useDefaultPage) {
|
|
77459
|
+
emit("update:currentPage", 1);
|
|
77460
|
+
}
|
|
77466
77461
|
}
|
|
77462
|
+
Object.keys(internalSearchParams).forEach((key) => delete internalSearchParams[key]);
|
|
77463
|
+
Object.assign(internalSearchParams, { ...nextParams });
|
|
77464
|
+
emitSearch();
|
|
77465
|
+
}
|
|
77466
|
+
function handleReset() {
|
|
77467
|
+
resetSelectionState();
|
|
77467
77468
|
emit("reset");
|
|
77468
|
-
}
|
|
77469
|
-
|
|
77469
|
+
}
|
|
77470
|
+
function handleAdd() {
|
|
77470
77471
|
emit("add");
|
|
77471
|
-
}
|
|
77472
|
-
|
|
77472
|
+
}
|
|
77473
|
+
function handleSizeChange(size) {
|
|
77474
|
+
internalPagination.pageSize = size;
|
|
77475
|
+
const maxPage = Math.max(1, Math.ceil((props.total || 0) / size));
|
|
77476
|
+
if (internalPagination.currentPage > maxPage) {
|
|
77477
|
+
internalPagination.currentPage = maxPage;
|
|
77478
|
+
}
|
|
77479
|
+
if (!props.useDefaultPage) {
|
|
77480
|
+
emit("update:pageSize", size);
|
|
77481
|
+
emit("update:currentPage", internalPagination.currentPage);
|
|
77482
|
+
}
|
|
77473
77483
|
emit("size-change", size);
|
|
77474
77484
|
emit("page-change", {
|
|
77475
77485
|
currentPage: internalPagination.currentPage,
|
|
77476
77486
|
pageSize: size
|
|
77477
77487
|
});
|
|
77478
|
-
|
|
77479
|
-
|
|
77488
|
+
emitSearch();
|
|
77489
|
+
}
|
|
77490
|
+
function handleCurrentChange(page) {
|
|
77491
|
+
if (internalPagination.currentPage === page) {
|
|
77492
|
+
return;
|
|
77493
|
+
}
|
|
77494
|
+
internalPagination.currentPage = page;
|
|
77495
|
+
if (!props.useDefaultPage) {
|
|
77496
|
+
emit("update:currentPage", page);
|
|
77480
77497
|
}
|
|
77481
|
-
};
|
|
77482
|
-
const handleCurrentChange = (page) => {
|
|
77483
77498
|
emit("current-change", page);
|
|
77484
77499
|
emit("page-change", {
|
|
77485
77500
|
currentPage: page,
|
|
77486
|
-
pageSize:
|
|
77501
|
+
pageSize: pageSizeModel.value
|
|
77487
77502
|
});
|
|
77488
|
-
|
|
77489
|
-
|
|
77503
|
+
emitSearch();
|
|
77504
|
+
}
|
|
77505
|
+
function handleSelectionChange(selection) {
|
|
77506
|
+
if (isSyncingSelection.value) {
|
|
77507
|
+
return;
|
|
77490
77508
|
}
|
|
77491
|
-
|
|
77492
|
-
|
|
77493
|
-
|
|
77494
|
-
|
|
77495
|
-
|
|
77509
|
+
if (!currentRowKey.value) {
|
|
77510
|
+
emit("selection-change", selection);
|
|
77511
|
+
return;
|
|
77512
|
+
}
|
|
77513
|
+
const currentPageKeys = (props.tableData || []).map((row) => getRowKey(row));
|
|
77514
|
+
currentPageKeys.forEach((key) => {
|
|
77515
|
+
pendingSelectionKeys.value.delete(key);
|
|
77516
|
+
delete selectionRowMap[key];
|
|
77517
|
+
});
|
|
77518
|
+
(selection || []).forEach((row) => {
|
|
77519
|
+
const key = getRowKey(row);
|
|
77520
|
+
pendingSelectionKeys.value.add(key);
|
|
77521
|
+
selectionRowMap[key] = row;
|
|
77522
|
+
});
|
|
77523
|
+
emit("selection-change", Object.values(selectionRowMap));
|
|
77524
|
+
}
|
|
77525
|
+
function handleSortChange2(sort) {
|
|
77526
|
+
internalSortState.prop = sort ? sort.prop : "";
|
|
77527
|
+
internalSortState.order = sort ? sort.order : "";
|
|
77496
77528
|
emit("sort-change", sort);
|
|
77497
|
-
|
|
77498
|
-
|
|
77529
|
+
emitSearch();
|
|
77530
|
+
}
|
|
77531
|
+
function handleRowClick(row, column, event) {
|
|
77499
77532
|
emit("row-click", row, column, event);
|
|
77500
|
-
}
|
|
77501
|
-
|
|
77533
|
+
}
|
|
77534
|
+
function handleLinkClick(row, column) {
|
|
77502
77535
|
emit("link-click", row, column);
|
|
77503
|
-
}
|
|
77504
|
-
|
|
77505
|
-
{
|
|
77506
|
-
|
|
77507
|
-
|
|
77508
|
-
|
|
77509
|
-
|
|
77510
|
-
|
|
77511
|
-
|
|
77512
|
-
|
|
77513
|
-
|
|
77514
|
-
|
|
77515
|
-
|
|
77516
|
-
|
|
77536
|
+
}
|
|
77537
|
+
function buildLoadQuery() {
|
|
77538
|
+
return {
|
|
77539
|
+
...internalSearchParams,
|
|
77540
|
+
[props.pageNumberKey]: currentPageModel.value,
|
|
77541
|
+
[props.pageSizeKey]: pageSizeModel.value,
|
|
77542
|
+
sort: { ...internalSortState }
|
|
77543
|
+
};
|
|
77544
|
+
}
|
|
77545
|
+
function emitSearch() {
|
|
77546
|
+
if (emitSearchTimer) {
|
|
77547
|
+
clearTimeout(emitSearchTimer);
|
|
77548
|
+
}
|
|
77549
|
+
emitSearchTimer = setTimeout(() => {
|
|
77550
|
+
emitSearchTimer = null;
|
|
77551
|
+
emit("search", buildLoadQuery());
|
|
77552
|
+
}, 0);
|
|
77553
|
+
}
|
|
77554
|
+
function reload() {
|
|
77555
|
+
emitSearch();
|
|
77556
|
+
}
|
|
77557
|
+
function refresh(isFirstPage = true) {
|
|
77558
|
+
if (isFirstPage) {
|
|
77559
|
+
internalPagination.currentPage = 1;
|
|
77560
|
+
if (!props.useDefaultPage) {
|
|
77561
|
+
emit("update:currentPage", 1);
|
|
77517
77562
|
}
|
|
77518
77563
|
}
|
|
77519
|
-
|
|
77520
|
-
|
|
77564
|
+
emitSearch();
|
|
77565
|
+
}
|
|
77566
|
+
function getSearchParams() {
|
|
77567
|
+
return buildLoadQuery();
|
|
77568
|
+
}
|
|
77569
|
+
function initSearchAndLoad() {
|
|
77521
77570
|
nextTick(() => {
|
|
77522
|
-
if (
|
|
77523
|
-
const
|
|
77524
|
-
|
|
77571
|
+
if (props.showSearch && searchRef.value) {
|
|
77572
|
+
const formData = searchRef.value.getFormData();
|
|
77573
|
+
Object.keys(internalSearchParams).forEach((key) => delete internalSearchParams[key]);
|
|
77574
|
+
Object.assign(internalSearchParams, { ...formData });
|
|
77525
77575
|
}
|
|
77576
|
+
emitSearch();
|
|
77526
77577
|
});
|
|
77527
|
-
}
|
|
77528
|
-
|
|
77529
|
-
searchRef
|
|
77530
|
-
|
|
77531
|
-
|
|
77532
|
-
|
|
77533
|
-
|
|
77534
|
-
|
|
77535
|
-
|
|
77536
|
-
|
|
77537
|
-
|
|
77538
|
-
|
|
77539
|
-
|
|
77540
|
-
|
|
77541
|
-
|
|
77542
|
-
|
|
77543
|
-
|
|
77544
|
-
|
|
77545
|
-
}
|
|
77546
|
-
|
|
77547
|
-
|
|
77548
|
-
|
|
77549
|
-
|
|
77550
|
-
|
|
77551
|
-
|
|
77552
|
-
|
|
77553
|
-
|
|
77554
|
-
|
|
77555
|
-
|
|
77556
|
-
|
|
77557
|
-
|
|
77558
|
-
|
|
77559
|
-
|
|
77560
|
-
|
|
77561
|
-
|
|
77562
|
-
|
|
77563
|
-
|
|
77578
|
+
}
|
|
77579
|
+
function getSearchFormData() {
|
|
77580
|
+
return searchRef.value ? searchRef.value.getFormData() : {};
|
|
77581
|
+
}
|
|
77582
|
+
function setSearchFormData(data) {
|
|
77583
|
+
searchRef.value && searchRef.value.setFormData(data);
|
|
77584
|
+
}
|
|
77585
|
+
function resetSearchForm() {
|
|
77586
|
+
searchRef.value && searchRef.value.resetForm();
|
|
77587
|
+
}
|
|
77588
|
+
function validateSearchForm() {
|
|
77589
|
+
return searchRef.value ? searchRef.value.validate() : Promise.resolve(true);
|
|
77590
|
+
}
|
|
77591
|
+
function getPagination() {
|
|
77592
|
+
return {
|
|
77593
|
+
[props.pageTotalKey]: props.total,
|
|
77594
|
+
[props.pageNumberKey]: currentPageModel.value,
|
|
77595
|
+
[props.pageSizeKey]: pageSizeModel.value
|
|
77596
|
+
};
|
|
77597
|
+
}
|
|
77598
|
+
function getSelectionRows() {
|
|
77599
|
+
var _a3, _b;
|
|
77600
|
+
return currentRowKey.value ? Object.values(selectionRowMap) : ((_b = (_a3 = tableRef.value) == null ? void 0 : _a3.getSelectionRows) == null ? void 0 : _b.call(_a3)) || [];
|
|
77601
|
+
}
|
|
77602
|
+
function getSelectionKeys() {
|
|
77603
|
+
var _a3, _b;
|
|
77604
|
+
return currentRowKey.value ? Array.from(pendingSelectionKeys.value) : ((_b = (_a3 = tableRef.value) == null ? void 0 : _a3.getSelectionKeys) == null ? void 0 : _b.call(_a3)) || [];
|
|
77605
|
+
}
|
|
77606
|
+
function setSelectionRows(rows) {
|
|
77607
|
+
if (!currentRowKey.value) {
|
|
77608
|
+
tableRef.value && tableRef.value.setSelectionRows(rows);
|
|
77609
|
+
return;
|
|
77610
|
+
}
|
|
77611
|
+
pendingSelectionKeys.value = /* @__PURE__ */ new Set();
|
|
77612
|
+
Object.keys(selectionRowMap).forEach((key) => delete selectionRowMap[key]);
|
|
77613
|
+
(rows || []).forEach((row) => {
|
|
77614
|
+
const key = getRowKey(row);
|
|
77615
|
+
pendingSelectionKeys.value.add(key);
|
|
77616
|
+
selectionRowMap[key] = row;
|
|
77617
|
+
});
|
|
77618
|
+
syncSelectionToCurrentPage();
|
|
77619
|
+
}
|
|
77620
|
+
function setSelectionKeys(keys2) {
|
|
77621
|
+
if (!currentRowKey.value) {
|
|
77622
|
+
tableRef.value && tableRef.value.setSelectionKeys(keys2);
|
|
77623
|
+
return;
|
|
77624
|
+
}
|
|
77625
|
+
pendingSelectionKeys.value = new Set(keys2 || []);
|
|
77626
|
+
(props.tableData || []).forEach((row) => {
|
|
77627
|
+
const key = getRowKey(row);
|
|
77628
|
+
if (pendingSelectionKeys.value.has(key)) {
|
|
77629
|
+
selectionRowMap[key] = row;
|
|
77564
77630
|
}
|
|
77565
|
-
}
|
|
77566
|
-
|
|
77567
|
-
|
|
77568
|
-
|
|
77569
|
-
|
|
77570
|
-
|
|
77571
|
-
|
|
77572
|
-
|
|
77573
|
-
|
|
77574
|
-
|
|
77575
|
-
return
|
|
77576
|
-
}
|
|
77577
|
-
|
|
77578
|
-
|
|
77579
|
-
|
|
77580
|
-
|
|
77581
|
-
|
|
77582
|
-
|
|
77583
|
-
|
|
77584
|
-
|
|
77585
|
-
|
|
77586
|
-
|
|
77587
|
-
|
|
77588
|
-
|
|
77589
|
-
|
|
77590
|
-
|
|
77591
|
-
|
|
77592
|
-
|
|
77593
|
-
|
|
77594
|
-
|
|
77595
|
-
|
|
77596
|
-
|
|
77597
|
-
|
|
77598
|
-
if (typeof rowKey === "function") {
|
|
77599
|
-
return rows.map((row) => rowKey(row));
|
|
77600
|
-
} else {
|
|
77601
|
-
return rows.map((row) => row[rowKey]);
|
|
77602
|
-
}
|
|
77631
|
+
});
|
|
77632
|
+
syncSelectionToCurrentPage();
|
|
77633
|
+
}
|
|
77634
|
+
function clearAllSelection() {
|
|
77635
|
+
resetSelectionState();
|
|
77636
|
+
}
|
|
77637
|
+
function selectAll() {
|
|
77638
|
+
if (!tableRef.value) return;
|
|
77639
|
+
if (!currentRowKey.value) {
|
|
77640
|
+
tableRef.value.selectAll();
|
|
77641
|
+
return;
|
|
77642
|
+
}
|
|
77643
|
+
(props.tableData || []).forEach((row) => {
|
|
77644
|
+
const key = getRowKey(row);
|
|
77645
|
+
pendingSelectionKeys.value.add(key);
|
|
77646
|
+
selectionRowMap[key] = row;
|
|
77647
|
+
});
|
|
77648
|
+
tableRef.value.setSelectionRows(props.tableData);
|
|
77649
|
+
}
|
|
77650
|
+
function isRowSelected(row) {
|
|
77651
|
+
var _a3, _b;
|
|
77652
|
+
return currentRowKey.value ? pendingSelectionKeys.value.has(getRowKey(row)) : (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.isRowSelected) == null ? void 0 : _b.call(_a3, row);
|
|
77653
|
+
}
|
|
77654
|
+
function isKeySelected(key) {
|
|
77655
|
+
var _a3, _b;
|
|
77656
|
+
return currentRowKey.value ? pendingSelectionKeys.value.has(key) : (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.isKeySelected) == null ? void 0 : _b.call(_a3, key);
|
|
77657
|
+
}
|
|
77658
|
+
watch(
|
|
77659
|
+
() => props.currentPage,
|
|
77660
|
+
(value) => {
|
|
77661
|
+
if (props.useDefaultPage) return;
|
|
77662
|
+
if (value !== null) {
|
|
77663
|
+
internalPagination.currentPage = value;
|
|
77603
77664
|
}
|
|
77604
|
-
return rows;
|
|
77605
|
-
},
|
|
77606
|
-
setSelectionRows: (rows) => {
|
|
77607
|
-
var _a3, _b;
|
|
77608
|
-
if (!tableRef.value) return;
|
|
77609
|
-
(_b = (_a3 = tableRef.value) == null ? void 0 : _a3.clearSelection) == null ? void 0 : _b.call(_a3);
|
|
77610
|
-
rows.forEach((row) => {
|
|
77611
|
-
var _a4, _b2;
|
|
77612
|
-
(_b2 = (_a4 = tableRef.value) == null ? void 0 : _a4.toggleRowSelection) == null ? void 0 : _b2.call(_a4, row, true);
|
|
77613
|
-
});
|
|
77614
77665
|
},
|
|
77615
|
-
|
|
77616
|
-
|
|
77617
|
-
|
|
77618
|
-
|
|
77619
|
-
|
|
77620
|
-
|
|
77621
|
-
|
|
77666
|
+
{ immediate: true }
|
|
77667
|
+
);
|
|
77668
|
+
watch(
|
|
77669
|
+
() => props.pageSize,
|
|
77670
|
+
(value) => {
|
|
77671
|
+
if (props.useDefaultPage) return;
|
|
77672
|
+
if (value !== null) {
|
|
77673
|
+
internalPagination.pageSize = value;
|
|
77622
77674
|
}
|
|
77623
|
-
pendingSelectionKeys.value = new Set(keys2);
|
|
77624
|
-
(_c2 = (_b = tableRef.value) == null ? void 0 : _b.clearSelection) == null ? void 0 : _c2.call(_b);
|
|
77625
|
-
keys2.forEach((key) => {
|
|
77626
|
-
var _a4, _b2;
|
|
77627
|
-
const row = props.tableData.find((row2) => {
|
|
77628
|
-
if (typeof rowKey === "function") {
|
|
77629
|
-
return rowKey(row2) === key;
|
|
77630
|
-
} else {
|
|
77631
|
-
return row2[rowKey] === key;
|
|
77632
|
-
}
|
|
77633
|
-
});
|
|
77634
|
-
if (row) {
|
|
77635
|
-
(_b2 = (_a4 = tableRef.value) == null ? void 0 : _a4.toggleRowSelection) == null ? void 0 : _b2.call(_a4, row, true);
|
|
77636
|
-
}
|
|
77637
|
-
});
|
|
77638
|
-
},
|
|
77639
|
-
isRowSelected: (row) => {
|
|
77640
|
-
var _a3, _b;
|
|
77641
|
-
const selectedRows = ((_b = (_a3 = tableRef.value) == null ? void 0 : _a3.getSelectionRows) == null ? void 0 : _b.call(_a3)) || [];
|
|
77642
|
-
return selectedRows.includes(row);
|
|
77643
|
-
},
|
|
77644
|
-
isKeySelected: (key) => {
|
|
77645
|
-
var _a3, _b, _c2;
|
|
77646
|
-
const rowKey = (_a3 = props.tableProps) == null ? void 0 : _a3.rowKey;
|
|
77647
|
-
if (!rowKey) return false;
|
|
77648
|
-
const selectedRows = ((_c2 = (_b = tableRef.value) == null ? void 0 : _b.getSelectionRows) == null ? void 0 : _c2.call(_b)) || [];
|
|
77649
|
-
return selectedRows.some((row) => {
|
|
77650
|
-
if (typeof rowKey === "function") {
|
|
77651
|
-
return rowKey(row) === key;
|
|
77652
|
-
} else {
|
|
77653
|
-
return row[rowKey] === key;
|
|
77654
|
-
}
|
|
77655
|
-
});
|
|
77656
77675
|
},
|
|
77657
|
-
|
|
77658
|
-
|
|
77659
|
-
|
|
77660
|
-
|
|
77661
|
-
|
|
77662
|
-
|
|
77663
|
-
|
|
77664
|
-
if (typeof rowKey === "function") {
|
|
77665
|
-
key = rowKey(row);
|
|
77666
|
-
} else {
|
|
77667
|
-
key = row[rowKey];
|
|
77668
|
-
}
|
|
77669
|
-
pendingSelectionKeys.value.add(key);
|
|
77670
|
-
});
|
|
77671
|
-
}
|
|
77672
|
-
props.tableData.forEach((row) => {
|
|
77673
|
-
var _a4, _b;
|
|
77674
|
-
(_b = (_a4 = tableRef.value) == null ? void 0 : _a4.toggleRowSelection) == null ? void 0 : _b.call(_a4, row, true);
|
|
77676
|
+
{ immediate: true }
|
|
77677
|
+
);
|
|
77678
|
+
watch(
|
|
77679
|
+
() => props.tableData,
|
|
77680
|
+
() => {
|
|
77681
|
+
nextTick(() => {
|
|
77682
|
+
syncSelectionToCurrentPage();
|
|
77675
77683
|
});
|
|
77676
77684
|
},
|
|
77677
|
-
|
|
77678
|
-
|
|
77679
|
-
|
|
77680
|
-
|
|
77681
|
-
|
|
77682
|
-
|
|
77683
|
-
clearSort: () => {
|
|
77684
|
-
var _a3, _b;
|
|
77685
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.clearSort) == null ? void 0 : _b.call(_a3);
|
|
77686
|
-
},
|
|
77687
|
-
clearFilter: (columnKey) => {
|
|
77688
|
-
var _a3, _b;
|
|
77689
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.clearFilter) == null ? void 0 : _b.call(_a3, columnKey);
|
|
77690
|
-
},
|
|
77691
|
-
doLayout: () => {
|
|
77692
|
-
var _a3, _b;
|
|
77693
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.doLayout) == null ? void 0 : _b.call(_a3);
|
|
77694
|
-
},
|
|
77695
|
-
sort: (prop, order) => {
|
|
77696
|
-
var _a3, _b;
|
|
77697
|
-
return (_b = (_a3 = tableRef.value) == null ? void 0 : _a3.sort) == null ? void 0 : _b.call(_a3, prop, order);
|
|
77685
|
+
{ deep: true, immediate: true }
|
|
77686
|
+
);
|
|
77687
|
+
onBeforeUnmount(() => {
|
|
77688
|
+
if (emitSearchTimer) {
|
|
77689
|
+
clearTimeout(emitSearchTimer);
|
|
77690
|
+
emitSearchTimer = null;
|
|
77698
77691
|
}
|
|
77699
77692
|
});
|
|
77693
|
+
__expose({
|
|
77694
|
+
searchRef,
|
|
77695
|
+
tableRef,
|
|
77696
|
+
reload,
|
|
77697
|
+
refresh,
|
|
77698
|
+
getSearchParams,
|
|
77699
|
+
initSearchAndLoad,
|
|
77700
|
+
getSearchFormData,
|
|
77701
|
+
setSearchFormData,
|
|
77702
|
+
resetSearchForm,
|
|
77703
|
+
validateSearchForm,
|
|
77704
|
+
getPagination,
|
|
77705
|
+
getSelectionRows,
|
|
77706
|
+
getSelectionKeys,
|
|
77707
|
+
setSelectionRows,
|
|
77708
|
+
setSelectionKeys,
|
|
77709
|
+
clearAllSelection,
|
|
77710
|
+
selectAll,
|
|
77711
|
+
isRowSelected,
|
|
77712
|
+
isKeySelected
|
|
77713
|
+
});
|
|
77700
77714
|
return (_ctx, _cache) => {
|
|
77701
77715
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
77702
|
-
__props.showSearch ? (openBlock(),
|
|
77703
|
-
|
|
77704
|
-
|
|
77705
|
-
|
|
77706
|
-
|
|
77707
|
-
|
|
77708
|
-
|
|
77709
|
-
|
|
77710
|
-
|
|
77711
|
-
|
|
77712
|
-
|
|
77713
|
-
|
|
77714
|
-
|
|
77715
|
-
|
|
77716
|
-
|
|
77717
|
-
|
|
77718
|
-
|
|
77719
|
-
|
|
77720
|
-
|
|
77721
|
-
|
|
77722
|
-
|
|
77723
|
-
|
|
77724
|
-
|
|
77725
|
-
|
|
77726
|
-
|
|
77727
|
-
|
|
77728
|
-
|
|
77729
|
-
|
|
77730
|
-
|
|
77731
|
-
|
|
77732
|
-
|
|
77733
|
-
|
|
77734
|
-
|
|
77735
|
-
|
|
77736
|
-
|
|
77737
|
-
|
|
77738
|
-
}, __props.tableProps, {
|
|
77739
|
-
onAdd: handleAdd,
|
|
77740
|
-
onSizeChange: handleSizeChange,
|
|
77741
|
-
onCurrentChange: handleCurrentChange,
|
|
77742
|
-
onSelectionChange: handleSelectionChange,
|
|
77743
|
-
onSortChange: handleSortChange2,
|
|
77744
|
-
onRowClick: handleRowClick,
|
|
77745
|
-
onLinkClick: handleLinkClick
|
|
77746
|
-
}), createSlots({ _: 2 }, [
|
|
77747
|
-
renderList(_ctx.$slots, (_3, name) => {
|
|
77748
|
-
return {
|
|
77749
|
-
name,
|
|
77750
|
-
fn: withCtx((slotData) => [
|
|
77751
|
-
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotData)), void 0, true)
|
|
77752
|
-
])
|
|
77753
|
-
};
|
|
77754
|
-
})
|
|
77755
|
-
]), 1040, ["table-data", "columns", "action-buttons", "total", "current-page", "page-size"])
|
|
77756
|
-
])
|
|
77716
|
+
__props.showSearch ? (openBlock(), createBlock(NsSearch, mergeProps({
|
|
77717
|
+
key: 0,
|
|
77718
|
+
ref_key: "searchRef",
|
|
77719
|
+
ref: searchRef,
|
|
77720
|
+
items: __props.searchItems,
|
|
77721
|
+
"external-params": __props.externalSearchParams,
|
|
77722
|
+
"enter-trigger": __props.enterTrigger,
|
|
77723
|
+
"slot-renderers": _ctx.$slots
|
|
77724
|
+
}, __props.searchProps, {
|
|
77725
|
+
onSearch: handleSearch,
|
|
77726
|
+
onReset: handleReset
|
|
77727
|
+
}), null, 16, ["items", "external-params", "enter-trigger", "slot-renderers"])) : createCommentVNode("", true),
|
|
77728
|
+
renderSlot(_ctx.$slots, "extend", {}, void 0, true),
|
|
77729
|
+
createVNode(NsTable, mergeProps({
|
|
77730
|
+
ref_key: "tableRef",
|
|
77731
|
+
ref: tableRef,
|
|
77732
|
+
"table-data": __props.tableData,
|
|
77733
|
+
columns: __props.columns,
|
|
77734
|
+
"action-buttons": __props.actionButtons,
|
|
77735
|
+
total: __props.total,
|
|
77736
|
+
"current-page": currentPageModel.value,
|
|
77737
|
+
"page-size": pageSizeModel.value,
|
|
77738
|
+
"use-default-page": __props.useDefaultPage,
|
|
77739
|
+
"page-number-key": __props.pageNumberKey,
|
|
77740
|
+
"page-size-key": __props.pageSizeKey,
|
|
77741
|
+
"page-total-key": __props.pageTotalKey,
|
|
77742
|
+
"slot-renderers": _ctx.$slots
|
|
77743
|
+
}, __props.tableProps, {
|
|
77744
|
+
onAdd: handleAdd,
|
|
77745
|
+
onSelectionChange: handleSelectionChange,
|
|
77746
|
+
onSortChange: handleSortChange2,
|
|
77747
|
+
onRowClick: handleRowClick,
|
|
77748
|
+
onSizeChange: handleSizeChange,
|
|
77749
|
+
onCurrentChange: handleCurrentChange,
|
|
77750
|
+
onLinkClick: handleLinkClick
|
|
77751
|
+
}), null, 16, ["table-data", "columns", "action-buttons", "total", "current-page", "page-size", "use-default-page", "page-number-key", "page-size-key", "page-total-key", "slot-renderers"])
|
|
77757
77752
|
]);
|
|
77758
77753
|
};
|
|
77759
77754
|
}
|
|
77760
|
-
};
|
|
77761
|
-
const NsTableContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
77755
|
+
});
|
|
77756
|
+
const NsTableContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4332eea8"]]);
|
|
77762
77757
|
NsTableContainer.install = (app2) => {
|
|
77763
77758
|
app2.component("NsTableContainer", NsTableContainer);
|
|
77764
77759
|
};
|
|
@@ -92302,7 +92297,7 @@ async function getEncryptSm2(publicKey, originalArr = [], isAdd04 = false, ciphe
|
|
|
92302
92297
|
return encryptArrs;
|
|
92303
92298
|
}
|
|
92304
92299
|
const components = {
|
|
92305
|
-
NsExcel: _sfc_main$
|
|
92300
|
+
NsExcel: _sfc_main$b,
|
|
92306
92301
|
NsPdf,
|
|
92307
92302
|
NsWord,
|
|
92308
92303
|
NsOffice,
|
|
@@ -92358,7 +92353,7 @@ const index = {
|
|
|
92358
92353
|
};
|
|
92359
92354
|
export {
|
|
92360
92355
|
NsDialog,
|
|
92361
|
-
_sfc_main$
|
|
92356
|
+
_sfc_main$b as NsExcel,
|
|
92362
92357
|
NsForm,
|
|
92363
92358
|
NsFormTitle,
|
|
92364
92359
|
NsImage,
|