3h1-ui 2.14.4 → 2.14.6
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/es/index.js +173 -278
- package/es/style.css +62 -65
- package/lib/index.js +172 -277
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { zxcvbn } from "@zxcvbn-ts/core";
|
|
|
6
6
|
import Iconify from "@purge-icons/generated";
|
|
7
7
|
import Sortablejs from "sortablejs";
|
|
8
8
|
import "xe-utils";
|
|
9
|
-
import { VxeTable, VxeColumn
|
|
9
|
+
import { VxeTable, VxeColumn } from "vxe-table";
|
|
10
10
|
const windiBase = "";
|
|
11
11
|
const windiComponents = "";
|
|
12
12
|
const windiUtilities = "";
|
|
@@ -4604,7 +4604,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
4604
4604
|
};
|
|
4605
4605
|
}
|
|
4606
4606
|
});
|
|
4607
|
-
const
|
|
4607
|
+
const StrengthMeter_vue_vue_type_style_index_0_scoped_eda28c94_lang = "";
|
|
4608
4608
|
const _hoisted_1$u = ["data-score"];
|
|
4609
4609
|
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4610
4610
|
const _component_InputPassword = resolveComponent("InputPassword");
|
|
@@ -4636,7 +4636,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4636
4636
|
], 2)
|
|
4637
4637
|
], 2);
|
|
4638
4638
|
}
|
|
4639
|
-
const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$J], ["__scopeId", "data-v-
|
|
4639
|
+
const StrengthMeter = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$J], ["__scopeId", "data-v-eda28c94"]]);
|
|
4640
4640
|
const _sfc_main$19 = defineComponent({
|
|
4641
4641
|
name: "SvgIcon",
|
|
4642
4642
|
props: {
|
|
@@ -4672,7 +4672,7 @@ const _sfc_main$19 = defineComponent({
|
|
|
4672
4672
|
return { symbolId, prefixCls: prefixCls2, getStyle };
|
|
4673
4673
|
}
|
|
4674
4674
|
});
|
|
4675
|
-
const
|
|
4675
|
+
const SvgIcon_vue_vue_type_style_index_0_scoped_fa64fe87_lang = "";
|
|
4676
4676
|
const _hoisted_1$t = ["xlink:href"];
|
|
4677
4677
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4678
4678
|
return openBlock(), createElementBlock("svg", {
|
|
@@ -4683,7 +4683,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4683
4683
|
createElementVNode("use", { "xlink:href": _ctx.symbolId }, null, 8, _hoisted_1$t)
|
|
4684
4684
|
], 6);
|
|
4685
4685
|
}
|
|
4686
|
-
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$I], ["__scopeId", "data-v-
|
|
4686
|
+
const SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$I], ["__scopeId", "data-v-fa64fe87"]]);
|
|
4687
4687
|
const SVG_END_WITH_FLAG = "|svg";
|
|
4688
4688
|
const _sfc_main$18 = defineComponent({
|
|
4689
4689
|
name: "Icon",
|
|
@@ -4979,8 +4979,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
4979
4979
|
};
|
|
4980
4980
|
}
|
|
4981
4981
|
});
|
|
4982
|
-
const
|
|
4983
|
-
const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-
|
|
4982
|
+
const BasicArrow_vue_vue_type_style_index_0_scoped_03d87956_lang = "";
|
|
4983
|
+
const BasicArrow = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-03d87956"]]);
|
|
4984
4984
|
const props$c = {
|
|
4985
4985
|
/**
|
|
4986
4986
|
* Help text max-width
|
|
@@ -5122,8 +5122,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
5122
5122
|
};
|
|
5123
5123
|
}
|
|
5124
5124
|
});
|
|
5125
|
-
const
|
|
5126
|
-
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
5125
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_c007dbdf_lang = "";
|
|
5126
|
+
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-c007dbdf"]]);
|
|
5127
5127
|
const props$b = {
|
|
5128
5128
|
prefixCls: { type: String },
|
|
5129
5129
|
helpMessage: {
|
|
@@ -7065,11 +7065,11 @@ const _hoisted_5$3 = {
|
|
|
7065
7065
|
key: 0,
|
|
7066
7066
|
class: "flex py-2 items-center justify-center"
|
|
7067
7067
|
};
|
|
7068
|
-
const _hoisted_6$
|
|
7068
|
+
const _hoisted_6$1 = {
|
|
7069
7069
|
key: 1,
|
|
7070
7070
|
class: "p-5"
|
|
7071
7071
|
};
|
|
7072
|
-
const _hoisted_7$
|
|
7072
|
+
const _hoisted_7$1 = {
|
|
7073
7073
|
key: 0,
|
|
7074
7074
|
class: "cursor-pointer px-2 py-1 flex items-center"
|
|
7075
7075
|
};
|
|
@@ -7207,12 +7207,12 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
7207
7207
|
onChange: handlePageChange
|
|
7208
7208
|
}, null, 8, ["pageSize", "total"])
|
|
7209
7209
|
])) : createCommentVNode("", true)
|
|
7210
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
7210
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
7211
7211
|
createVNode(unref(AEmpty))
|
|
7212
7212
|
]))
|
|
7213
7213
|
]),
|
|
7214
7214
|
default: withCtx(() => [
|
|
7215
|
-
isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
7215
|
+
isSvgMode && currentSelect.value ? (openBlock(), createElementBlock("span", _hoisted_7$1, [
|
|
7216
7216
|
createVNode(SvgIcon, { name: currentSelect.value }, null, 8, ["name"])
|
|
7217
7217
|
])) : (openBlock(), createBlock(Icon2, {
|
|
7218
7218
|
key: 1,
|
|
@@ -7528,8 +7528,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
7528
7528
|
};
|
|
7529
7529
|
}
|
|
7530
7530
|
});
|
|
7531
|
-
const
|
|
7532
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-
|
|
7531
|
+
const Table_vue_vue_type_style_index_0_scoped_dcb554fb_lang = "";
|
|
7532
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-dcb554fb"]]);
|
|
7533
7533
|
const componentMap$2 = /* @__PURE__ */ new Map();
|
|
7534
7534
|
componentMap$2.set("Input", Input);
|
|
7535
7535
|
componentMap$2.set("InputGroup", Input.Group);
|
|
@@ -9693,8 +9693,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9693
9693
|
};
|
|
9694
9694
|
}
|
|
9695
9695
|
});
|
|
9696
|
-
const
|
|
9697
|
-
const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
9696
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_a48f9d86_lang = "";
|
|
9697
|
+
const BasicTitle = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-a48f9d86"]]);
|
|
9698
9698
|
const _sfc_main$M = defineComponent({
|
|
9699
9699
|
name: "BasicModalHeader",
|
|
9700
9700
|
components: { BasicTitle },
|
|
@@ -10912,8 +10912,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10912
10912
|
};
|
|
10913
10913
|
}
|
|
10914
10914
|
});
|
|
10915
|
-
const
|
|
10916
|
-
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
10915
|
+
const TreeHeader_vue_vue_type_style_index_0_scoped_a0f20f9d_lang = "";
|
|
10916
|
+
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-a0f20f9d"]]);
|
|
10917
10917
|
process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
10918
10918
|
process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
10919
10919
|
const isString = (val) => typeof val === "string";
|
|
@@ -11802,7 +11802,7 @@ const _sfc_main$F = defineComponent({
|
|
|
11802
11802
|
return { prefixCls: prefixCls2, getCalcContentWidth };
|
|
11803
11803
|
}
|
|
11804
11804
|
});
|
|
11805
|
-
const
|
|
11805
|
+
const PageFooter_vue_vue_type_style_index_0_scoped_b4695833_lang = "";
|
|
11806
11806
|
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11807
11807
|
return openBlock(), createElementBlock("div", {
|
|
11808
11808
|
class: normalizeClass(_ctx.prefixCls),
|
|
@@ -11821,7 +11821,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11821
11821
|
], 2)
|
|
11822
11822
|
], 6);
|
|
11823
11823
|
}
|
|
11824
|
-
const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$r], ["__scopeId", "data-v-
|
|
11824
|
+
const PageFooter = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$r], ["__scopeId", "data-v-b4695833"]]);
|
|
11825
11825
|
const _sfc_main$E = defineComponent({
|
|
11826
11826
|
name: "PageWrapper",
|
|
11827
11827
|
components: { PageFooter, PageHeader },
|
|
@@ -12368,6 +12368,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12368
12368
|
clickOutside: ClickOutside
|
|
12369
12369
|
},
|
|
12370
12370
|
props: {
|
|
12371
|
+
zzz: {
|
|
12372
|
+
type: Object
|
|
12373
|
+
},
|
|
12371
12374
|
value: {
|
|
12372
12375
|
type: [String, Number, Boolean, Object],
|
|
12373
12376
|
default: ""
|
|
@@ -12428,8 +12431,6 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12428
12431
|
index: index2
|
|
12429
12432
|
}) ?? {};
|
|
12430
12433
|
}
|
|
12431
|
-
compProps.onChangeTemp = compProps.onChange;
|
|
12432
|
-
delete compProps.onChange;
|
|
12433
12434
|
const component = unref(getComponent);
|
|
12434
12435
|
const apiSelectProps = {};
|
|
12435
12436
|
if (component === "ApiSelect") {
|
|
@@ -12437,7 +12438,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12437
12438
|
}
|
|
12438
12439
|
upEditDynamicDisabled(record, column, value);
|
|
12439
12440
|
return {
|
|
12440
|
-
|
|
12441
|
+
showCount: true,
|
|
12441
12442
|
maxlength: 100,
|
|
12442
12443
|
size: "small",
|
|
12443
12444
|
getPopupContainer: () => unref(table2 == null ? void 0 : table2.wrapRef.value) ?? document.body,
|
|
@@ -12552,7 +12553,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12552
12553
|
} else if (isString$3(e) || isBoolean(e) || isNumber$2(e) || isArray$3(e)) {
|
|
12553
12554
|
currentValueRef.value = e;
|
|
12554
12555
|
}
|
|
12555
|
-
const onChange = (_a2 = unref(getComponentProps)) == null ? void 0 : _a2.
|
|
12556
|
+
const onChange = (_a2 = unref(getComponentProps)) == null ? void 0 : _a2.onChange;
|
|
12556
12557
|
if (onChange && isFunction$4(onChange))
|
|
12557
12558
|
onChange(...arguments);
|
|
12558
12559
|
(_b = table2.emit) == null ? void 0 : _b.call(table2, "edit-change", {
|
|
@@ -12560,9 +12561,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12560
12561
|
value: unref(currentValueRef),
|
|
12561
12562
|
record: toRaw(props2.record)
|
|
12562
12563
|
});
|
|
12563
|
-
|
|
12564
|
+
handleSubmiRule();
|
|
12564
12565
|
}
|
|
12565
|
-
async function
|
|
12566
|
+
async function handleSubmiRule() {
|
|
12566
12567
|
const {
|
|
12567
12568
|
column,
|
|
12568
12569
|
record
|
|
@@ -12580,7 +12581,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12580
12581
|
}
|
|
12581
12582
|
if (isFunction$4(editRule)) {
|
|
12582
12583
|
const res = await editRule(currentValue, record);
|
|
12583
|
-
if (res) {
|
|
12584
|
+
if (!!res) {
|
|
12584
12585
|
ruleMessage.value = res;
|
|
12585
12586
|
ruleVisible.value = true;
|
|
12586
12587
|
return false;
|
|
@@ -12596,7 +12597,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12596
12597
|
async function handleSubmit(needEmit = true, valid = true) {
|
|
12597
12598
|
var _a2;
|
|
12598
12599
|
if (valid) {
|
|
12599
|
-
const isPass = await
|
|
12600
|
+
const isPass = await handleSubmiRule();
|
|
12600
12601
|
if (!isPass)
|
|
12601
12602
|
return false;
|
|
12602
12603
|
}
|
|
@@ -12724,31 +12725,34 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12724
12725
|
isArray$3(props2.record[cbs]) ? (_a2 = props2.record[cbs]) == null ? void 0 : _a2.push(handle) : props2.record[cbs] = [handle];
|
|
12725
12726
|
}
|
|
12726
12727
|
}
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
if (
|
|
12733
|
-
props2.record.editValueRefs
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
props2.record.onCancelEdit = () => {
|
|
12737
|
-
var _a2, _b;
|
|
12738
|
-
isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
|
|
12739
|
-
};
|
|
12740
|
-
props2.record.onSubmitEdit = async () => {
|
|
12741
|
-
var _a2, _b, _c, _d, _e;
|
|
12742
|
-
if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
|
|
12743
|
-
if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
|
|
12744
|
-
return;
|
|
12745
|
-
const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
|
|
12746
|
-
submitFns.forEach((fn) => fn(false, false));
|
|
12747
|
-
(_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
|
|
12748
|
-
return true;
|
|
12728
|
+
const editHandler = () => {
|
|
12729
|
+
if (props2.record) {
|
|
12730
|
+
initCbs("submitCbs", handleSubmit);
|
|
12731
|
+
initCbs("validCbs", handleSubmiRule);
|
|
12732
|
+
initCbs("cancelCbs", handleCancel);
|
|
12733
|
+
if (props2.column.dataIndex) {
|
|
12734
|
+
if (!props2.record.editValueRefs)
|
|
12735
|
+
props2.record.editValueRefs = {};
|
|
12736
|
+
props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
|
|
12749
12737
|
}
|
|
12750
|
-
|
|
12751
|
-
|
|
12738
|
+
props2.record.onCancelEdit = () => {
|
|
12739
|
+
var _a2, _b;
|
|
12740
|
+
isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
|
|
12741
|
+
};
|
|
12742
|
+
props2.record.onSubmitEdit = async () => {
|
|
12743
|
+
var _a2, _b, _c, _d, _e;
|
|
12744
|
+
if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
|
|
12745
|
+
if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
|
|
12746
|
+
return;
|
|
12747
|
+
const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
|
|
12748
|
+
submitFns.forEach((fn) => fn(false, false));
|
|
12749
|
+
(_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
|
|
12750
|
+
return true;
|
|
12751
|
+
}
|
|
12752
|
+
};
|
|
12753
|
+
}
|
|
12754
|
+
};
|
|
12755
|
+
editHandler();
|
|
12752
12756
|
return {
|
|
12753
12757
|
isEdit,
|
|
12754
12758
|
prefixCls: prefixCls2,
|
|
@@ -12771,7 +12775,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12771
12775
|
getValues,
|
|
12772
12776
|
handleEnter,
|
|
12773
12777
|
handleSubmitClick,
|
|
12774
|
-
spinning
|
|
12778
|
+
spinning,
|
|
12779
|
+
editHandler
|
|
12775
12780
|
};
|
|
12776
12781
|
},
|
|
12777
12782
|
render() {
|
|
@@ -12791,7 +12796,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12791
12796
|
record: this.record,
|
|
12792
12797
|
column: this.column,
|
|
12793
12798
|
index: this.index
|
|
12794
|
-
}) : this.getValues
|
|
12799
|
+
}) : this.getValues ? this.getValues : " "]), !this.column.editRow && createVNode(FormOutlined$1, {
|
|
12795
12800
|
"class": `${this.prefixCls}__normal-icon`
|
|
12796
12801
|
}, null)]), [[vShow, !this.isEdit]]), this.isEdit && createVNode(Spin, {
|
|
12797
12802
|
"spinning": this.spinning
|
|
@@ -12822,13 +12827,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12822
12827
|
}
|
|
12823
12828
|
});
|
|
12824
12829
|
const EditableCell_vue_vue_type_style_index_0_lang = "";
|
|
12825
|
-
let rowIndex = 0;
|
|
12826
|
-
function isNeedRefresh() {
|
|
12827
|
-
rowIndex++;
|
|
12828
|
-
}
|
|
12829
12830
|
function renderEditCell(column) {
|
|
12830
12831
|
return ({ text: value, record, index: index2 }) => {
|
|
12831
|
-
|
|
12832
|
+
const editableCellRef = ref();
|
|
12833
|
+
record.onValid = async () => {
|
|
12832
12834
|
if (isArray$3(record == null ? void 0 : record.validCbs)) {
|
|
12833
12835
|
const validFns = ((record == null ? void 0 : record.validCbs) || []).map((fn) => fn());
|
|
12834
12836
|
const res = await Promise.all(validFns);
|
|
@@ -12837,15 +12839,16 @@ function renderEditCell(column) {
|
|
|
12837
12839
|
return false;
|
|
12838
12840
|
}
|
|
12839
12841
|
};
|
|
12840
|
-
|
|
12841
|
-
var _a2, _b;
|
|
12842
|
+
record.onEdit = async (edit, submit = false) => {
|
|
12843
|
+
var _a2, _b, _c;
|
|
12844
|
+
(_a2 = editableCellRef.value) == null ? void 0 : _a2.editHandler();
|
|
12842
12845
|
if (!submit) {
|
|
12843
12846
|
record.editable = edit;
|
|
12844
12847
|
}
|
|
12845
12848
|
if (!edit && submit) {
|
|
12846
12849
|
if (!await record.onValid())
|
|
12847
12850
|
return false;
|
|
12848
|
-
const res = await ((
|
|
12851
|
+
const res = await ((_b = record.onSubmitEdit) == null ? void 0 : _b.call(record));
|
|
12849
12852
|
if (res) {
|
|
12850
12853
|
record.editable = false;
|
|
12851
12854
|
return true;
|
|
@@ -12853,16 +12856,16 @@ function renderEditCell(column) {
|
|
|
12853
12856
|
return false;
|
|
12854
12857
|
}
|
|
12855
12858
|
if (!edit && !submit) {
|
|
12856
|
-
(
|
|
12859
|
+
(_c = record.onCancelEdit) == null ? void 0 : _c.call(record);
|
|
12857
12860
|
}
|
|
12858
12861
|
return true;
|
|
12859
12862
|
};
|
|
12860
12863
|
return h(_sfc_main$B, {
|
|
12864
|
+
ref: editableCellRef,
|
|
12861
12865
|
value,
|
|
12862
12866
|
record,
|
|
12863
12867
|
column,
|
|
12864
|
-
index: index2
|
|
12865
|
-
key: rowIndex
|
|
12868
|
+
index: index2
|
|
12866
12869
|
});
|
|
12867
12870
|
};
|
|
12868
12871
|
}
|
|
@@ -13784,7 +13787,6 @@ function useCustomRow(propsRef, {
|
|
|
13784
13787
|
emit
|
|
13785
13788
|
}) {
|
|
13786
13789
|
const customRow = (record, index2) => {
|
|
13787
|
-
isNeedRefresh();
|
|
13788
13790
|
return {
|
|
13789
13791
|
onClick: (e) => {
|
|
13790
13792
|
e == null ? void 0 : e.stopPropagation();
|
|
@@ -14383,8 +14385,8 @@ const _sfc_main$w = defineComponent({
|
|
|
14383
14385
|
return { isVisibleAdvancedSearch, handleIconClick };
|
|
14384
14386
|
}
|
|
14385
14387
|
});
|
|
14386
|
-
const
|
|
14387
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
14388
|
+
const AdvancedSearchSetting_vue_vue_type_style_index_0_scoped_c5892da8_lang = "";
|
|
14389
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-c5892da8"), n = n(), popScopeId(), n);
|
|
14388
14390
|
const _hoisted_1$j = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "高级搜索", -1));
|
|
14389
14391
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14390
14392
|
const _component_FilterOutlined = resolveComponent("FilterOutlined");
|
|
@@ -14402,7 +14404,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14402
14404
|
_: 1
|
|
14403
14405
|
});
|
|
14404
14406
|
}
|
|
14405
|
-
const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
14407
|
+
const AdvancedSearchSetting = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$l], ["__scopeId", "data-v-c5892da8"]]);
|
|
14406
14408
|
const index$2 = "";
|
|
14407
14409
|
const searchType = [
|
|
14408
14410
|
{
|
|
@@ -14501,13 +14503,13 @@ const _hoisted_5$2 = {
|
|
|
14501
14503
|
key: 0,
|
|
14502
14504
|
class: "shy-ui-advanced-search-item-value-range"
|
|
14503
14505
|
};
|
|
14504
|
-
const _hoisted_6
|
|
14505
|
-
const _hoisted_7
|
|
14506
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
|
|
14507
|
+
const _hoisted_7 = {
|
|
14506
14508
|
key: 1,
|
|
14507
14509
|
style: { "margin-left": "8px", "cursor": "pointer", "position": "relative" },
|
|
14508
14510
|
class: "shy-ui-advanced-minus-icon"
|
|
14509
14511
|
};
|
|
14510
|
-
const _hoisted_8
|
|
14512
|
+
const _hoisted_8 = ["onClick"];
|
|
14511
14513
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
14512
14514
|
__name: "AdvancedSearch",
|
|
14513
14515
|
props: {
|
|
@@ -14760,7 +14762,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14760
14762
|
]),
|
|
14761
14763
|
_: 2
|
|
14762
14764
|
}, 1024),
|
|
14763
|
-
_hoisted_6
|
|
14765
|
+
_hoisted_6,
|
|
14764
14766
|
createVNode(unref(FormItem), null, {
|
|
14765
14767
|
default: withCtx(() => [
|
|
14766
14768
|
createVNode(unref(DatePicker), {
|
|
@@ -14809,12 +14811,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14809
14811
|
]),
|
|
14810
14812
|
_: 2
|
|
14811
14813
|
}, 1024)) : createCommentVNode("", true),
|
|
14812
|
-
(schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7
|
|
14814
|
+
(schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
14813
14815
|
createElementVNode("div", {
|
|
14814
14816
|
style: { "position": "absolute", "width": "14px", "height": "14px", "left": "0", "right": "0", "top": "0", "bottom": "0" },
|
|
14815
14817
|
class: "shy-basic-minus-icon",
|
|
14816
14818
|
onClick: ($event) => handleMinus(index2)
|
|
14817
|
-
}, null, 8, _hoisted_8
|
|
14819
|
+
}, null, 8, _hoisted_8),
|
|
14818
14820
|
createVNode(unref(MinusCircleTwoTone$1), { class: "shy-ui-advanced-minus-icon" })
|
|
14819
14821
|
])) : createCommentVNode("", true)
|
|
14820
14822
|
])
|
|
@@ -15742,8 +15744,8 @@ const _sfc_main$p = defineComponent({
|
|
|
15742
15744
|
};
|
|
15743
15745
|
}
|
|
15744
15746
|
});
|
|
15745
|
-
const
|
|
15746
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
15747
|
+
const TableGlobalSearch_vue_vue_type_style_index_0_scoped_7ebad8bb_lang = "";
|
|
15748
|
+
const _withScopeId = (n) => (pushScopeId("data-v-7ebad8bb"), n = n(), popScopeId(), n);
|
|
15747
15749
|
const _hoisted_1$e = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索全部", -1));
|
|
15748
15750
|
const _hoisted_2$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "搜索特定字段", -1));
|
|
15749
15751
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
@@ -15801,7 +15803,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15801
15803
|
])
|
|
15802
15804
|
], 4);
|
|
15803
15805
|
}
|
|
15804
|
-
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
15806
|
+
const TableGlobalSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$g], ["__scopeId", "data-v-7ebad8bb"]]);
|
|
15805
15807
|
const _sfc_main$o = defineComponent({
|
|
15806
15808
|
components: {
|
|
15807
15809
|
TableAdvancedSearch,
|
|
@@ -16578,7 +16580,7 @@ const _sfc_main$k = defineComponent({
|
|
|
16578
16580
|
setup() {
|
|
16579
16581
|
}
|
|
16580
16582
|
});
|
|
16581
|
-
const
|
|
16583
|
+
const TableDict_vue_vue_type_style_index_0_scoped_1ab38c8b_lang = "";
|
|
16582
16584
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
16583
16585
|
var _a2;
|
|
16584
16586
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -16607,7 +16609,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16607
16609
|
]), 1032, ["color"])
|
|
16608
16610
|
]);
|
|
16609
16611
|
}
|
|
16610
|
-
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
16612
|
+
const TableDict = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$d], ["__scopeId", "data-v-1ab38c8b"]]);
|
|
16611
16613
|
const index$1 = "";
|
|
16612
16614
|
var RoleEnum = /* @__PURE__ */ ((RoleEnum2) => {
|
|
16613
16615
|
RoleEnum2["SUPER"] = "super";
|
|
@@ -16651,53 +16653,42 @@ function useTable(tableProps) {
|
|
|
16651
16653
|
}
|
|
16652
16654
|
const methods2 = {
|
|
16653
16655
|
reload: async (opt) => {
|
|
16654
|
-
|
|
16655
|
-
return await ((_a2 = getTableInstance()) == null ? void 0 : _a2.reload(opt));
|
|
16656
|
+
return await getTableInstance().reload(opt);
|
|
16656
16657
|
},
|
|
16657
16658
|
setProps: (props2) => {
|
|
16658
|
-
|
|
16659
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.setProps(props2);
|
|
16659
|
+
getTableInstance().setProps(props2);
|
|
16660
16660
|
},
|
|
16661
16661
|
redoHeight: () => {
|
|
16662
|
-
|
|
16663
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.redoHeight();
|
|
16662
|
+
getTableInstance().redoHeight();
|
|
16664
16663
|
},
|
|
16665
16664
|
setSelectedRows: (rows) => {
|
|
16666
|
-
|
|
16667
|
-
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRows(rows));
|
|
16665
|
+
return toRaw(getTableInstance().setSelectedRows(rows));
|
|
16668
16666
|
},
|
|
16669
16667
|
setLoading: (loading) => {
|
|
16670
|
-
|
|
16671
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.setLoading(loading);
|
|
16668
|
+
getTableInstance().setLoading(loading);
|
|
16672
16669
|
},
|
|
16673
16670
|
getDataSource: () => {
|
|
16674
16671
|
var _a2;
|
|
16675
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getDataSource();
|
|
16672
|
+
return ((_a2 = getTableInstance()) == null ? void 0 : _a2.getDataSource()) || false;
|
|
16676
16673
|
},
|
|
16677
16674
|
getRawDataSource: () => {
|
|
16678
|
-
|
|
16679
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getRawDataSource();
|
|
16675
|
+
return getTableInstance().getRawDataSource();
|
|
16680
16676
|
},
|
|
16681
16677
|
getColumns: ({ ignoreIndex = false } = {}) => {
|
|
16682
|
-
|
|
16683
|
-
const columns = ((_a2 = getTableInstance()) == null ? void 0 : _a2.getColumns({ ignoreIndex })) || [];
|
|
16678
|
+
const columns = getTableInstance().getColumns({ ignoreIndex }) || [];
|
|
16684
16679
|
return toRaw(columns);
|
|
16685
16680
|
},
|
|
16686
16681
|
setColumns: (columns) => {
|
|
16687
|
-
|
|
16688
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.setColumns(columns);
|
|
16682
|
+
getTableInstance().setColumns(columns);
|
|
16689
16683
|
},
|
|
16690
16684
|
setTableData: (values) => {
|
|
16691
|
-
|
|
16692
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.setTableData(values);
|
|
16685
|
+
return getTableInstance().setTableData(values);
|
|
16693
16686
|
},
|
|
16694
16687
|
setPagination: (info) => {
|
|
16695
|
-
|
|
16696
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.setPagination(info);
|
|
16688
|
+
return getTableInstance().setPagination(info);
|
|
16697
16689
|
},
|
|
16698
16690
|
deleteSelectRowByKey: (key2) => {
|
|
16699
|
-
|
|
16700
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.deleteSelectRowByKey(key2);
|
|
16691
|
+
getTableInstance().deleteSelectRowByKey(key2);
|
|
16701
16692
|
},
|
|
16702
16693
|
getSelectRowKeys: () => {
|
|
16703
16694
|
var _a2;
|
|
@@ -16708,75 +16699,58 @@ function useTable(tableProps) {
|
|
|
16708
16699
|
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSelectRows());
|
|
16709
16700
|
},
|
|
16710
16701
|
clearSelectedRowKeys: () => {
|
|
16711
|
-
|
|
16712
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.clearSelectedRowKeys();
|
|
16702
|
+
getTableInstance().clearSelectedRowKeys();
|
|
16713
16703
|
},
|
|
16714
16704
|
setSelectedRowKeys: (keys2) => {
|
|
16715
|
-
|
|
16716
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRowKeys(keys2);
|
|
16705
|
+
getTableInstance().setSelectedRowKeys(keys2);
|
|
16717
16706
|
},
|
|
16718
16707
|
getPaginationRef: () => {
|
|
16719
|
-
|
|
16720
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getPaginationRef();
|
|
16708
|
+
return getTableInstance().getPaginationRef();
|
|
16721
16709
|
},
|
|
16722
16710
|
getSize: () => {
|
|
16723
|
-
|
|
16724
|
-
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSize());
|
|
16711
|
+
return toRaw(getTableInstance().getSize());
|
|
16725
16712
|
},
|
|
16726
16713
|
updateTableData: (index2, key2, value) => {
|
|
16727
|
-
|
|
16728
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableData(index2, key2, value);
|
|
16714
|
+
return getTableInstance().updateTableData(index2, key2, value);
|
|
16729
16715
|
},
|
|
16730
16716
|
deleteTableDataRecord: (rowKey) => {
|
|
16731
|
-
|
|
16732
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.deleteTableDataRecord(rowKey);
|
|
16717
|
+
return getTableInstance().deleteTableDataRecord(rowKey);
|
|
16733
16718
|
},
|
|
16734
16719
|
insertTableDataRecord: (record, index2) => {
|
|
16735
|
-
|
|
16736
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.insertTableDataRecord(record, index2);
|
|
16720
|
+
return getTableInstance().insertTableDataRecord(record, index2);
|
|
16737
16721
|
},
|
|
16738
16722
|
updateTableDataRecord: (rowKey, record) => {
|
|
16739
|
-
|
|
16740
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableDataRecord(rowKey, record);
|
|
16723
|
+
return getTableInstance().updateTableDataRecord(rowKey, record);
|
|
16741
16724
|
},
|
|
16742
16725
|
findTableDataRecord: (rowKey) => {
|
|
16743
|
-
|
|
16744
|
-
return (_a2 = getTableInstance()) == null ? void 0 : _a2.findTableDataRecord(rowKey);
|
|
16726
|
+
return getTableInstance().findTableDataRecord(rowKey);
|
|
16745
16727
|
},
|
|
16746
16728
|
getRowSelection: () => {
|
|
16747
|
-
|
|
16748
|
-
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getRowSelection());
|
|
16729
|
+
return toRaw(getTableInstance().getRowSelection());
|
|
16749
16730
|
},
|
|
16750
16731
|
getCacheColumns: () => {
|
|
16751
|
-
|
|
16752
|
-
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getCacheColumns());
|
|
16732
|
+
return toRaw(getTableInstance().getCacheColumns());
|
|
16753
16733
|
},
|
|
16754
16734
|
getForm: () => {
|
|
16755
16735
|
return unref(formRef);
|
|
16756
16736
|
},
|
|
16757
16737
|
setShowPagination: async (show) => {
|
|
16758
|
-
|
|
16759
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.setShowPagination(show);
|
|
16738
|
+
getTableInstance().setShowPagination(show);
|
|
16760
16739
|
},
|
|
16761
16740
|
getShowPagination: () => {
|
|
16762
|
-
|
|
16763
|
-
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getShowPagination());
|
|
16741
|
+
return toRaw(getTableInstance().getShowPagination());
|
|
16764
16742
|
},
|
|
16765
16743
|
expandAll: () => {
|
|
16766
|
-
|
|
16767
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.expandAll();
|
|
16744
|
+
getTableInstance().expandAll();
|
|
16768
16745
|
},
|
|
16769
16746
|
expandRows: (keys2) => {
|
|
16770
|
-
|
|
16771
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.expandRows(keys2);
|
|
16747
|
+
getTableInstance().expandRows(keys2);
|
|
16772
16748
|
},
|
|
16773
16749
|
collapseAll: () => {
|
|
16774
|
-
|
|
16775
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.collapseAll();
|
|
16750
|
+
getTableInstance().collapseAll();
|
|
16776
16751
|
},
|
|
16777
16752
|
scrollTo: (pos) => {
|
|
16778
|
-
|
|
16779
|
-
(_a2 = getTableInstance()) == null ? void 0 : _a2.scrollTo(pos);
|
|
16753
|
+
getTableInstance().scrollTo(pos);
|
|
16780
16754
|
}
|
|
16781
16755
|
};
|
|
16782
16756
|
return [register, methods2];
|
|
@@ -16883,8 +16857,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16883
16857
|
};
|
|
16884
16858
|
}
|
|
16885
16859
|
});
|
|
16886
|
-
const
|
|
16887
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
16860
|
+
const Modal_vue_vue_type_style_index_0_scoped_24f758b3_lang = "";
|
|
16861
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-24f758b3"]]);
|
|
16888
16862
|
const _hoisted_1$9 = { class: "api-modal-select" };
|
|
16889
16863
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
16890
16864
|
__name: "ApiModalSelect",
|
|
@@ -17031,8 +17005,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
17031
17005
|
};
|
|
17032
17006
|
}
|
|
17033
17007
|
});
|
|
17034
|
-
const
|
|
17035
|
-
const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
17008
|
+
const ApiModalSelect_vue_vue_type_style_index_0_scoped_5427533c_lang = "";
|
|
17009
|
+
const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5427533c"]]);
|
|
17036
17010
|
const Description$1 = "";
|
|
17037
17011
|
const basicColProps = 24;
|
|
17038
17012
|
const basicProps$2 = {
|
|
@@ -20946,7 +20920,7 @@ const _sfc_main$b = defineComponent({
|
|
|
20946
20920
|
};
|
|
20947
20921
|
}
|
|
20948
20922
|
});
|
|
20949
|
-
const
|
|
20923
|
+
const CropperAvatar_vue_vue_type_style_index_0_scoped_d163dca1_lang = "";
|
|
20950
20924
|
const _hoisted_1$5 = ["src"];
|
|
20951
20925
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20952
20926
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -20996,7 +20970,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20996
20970
|
}, null, 8, ["onRegister", "onUploadSuccess", "uploadApi", "src"])
|
|
20997
20971
|
], 6);
|
|
20998
20972
|
}
|
|
20999
|
-
const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-
|
|
20973
|
+
const CropperAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$7], ["__scopeId", "data-v-d163dca1"]]);
|
|
21000
20974
|
const props = {
|
|
21001
20975
|
startVal: { type: Number, default: 0 },
|
|
21002
20976
|
endVal: { type: Number, default: 2021 },
|
|
@@ -21167,7 +21141,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
21167
21141
|
}
|
|
21168
21142
|
}
|
|
21169
21143
|
});
|
|
21170
|
-
const
|
|
21144
|
+
const Loading_vue_vue_type_style_index_0_scoped_33b23b82_lang = "";
|
|
21171
21145
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21172
21146
|
const _component_Spin = resolveComponent("Spin");
|
|
21173
21147
|
return withDirectives((openBlock(), createElementBlock("section", {
|
|
@@ -21183,7 +21157,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21183
21157
|
[vShow, _ctx.loading]
|
|
21184
21158
|
]);
|
|
21185
21159
|
}
|
|
21186
|
-
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
21160
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$5], ["__scopeId", "data-v-33b23b82"]]);
|
|
21187
21161
|
function createLoading(props2, target, wait = false) {
|
|
21188
21162
|
let vm = null;
|
|
21189
21163
|
const data = reactive({
|
|
@@ -21407,14 +21381,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21407
21381
|
setup(__props, { emit }) {
|
|
21408
21382
|
const props2 = __props;
|
|
21409
21383
|
const getActions = computed(() => {
|
|
21410
|
-
var _a2;
|
|
21411
21384
|
return [
|
|
21412
21385
|
{
|
|
21413
21386
|
label: "编辑",
|
|
21414
21387
|
onClick: () => {
|
|
21415
21388
|
emit("updateStatusEdit", true);
|
|
21416
21389
|
},
|
|
21417
|
-
ifShow:
|
|
21390
|
+
ifShow: props2.row._isEdit === false
|
|
21418
21391
|
},
|
|
21419
21392
|
{
|
|
21420
21393
|
label: "删除",
|
|
@@ -22012,14 +21985,7 @@ const TableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_r
|
|
|
22012
21985
|
const useColumns = (getProps, tableRef) => {
|
|
22013
21986
|
const getColumnsRef = computed(() => {
|
|
22014
21987
|
return getProps.value.columns.map((column) => {
|
|
22015
|
-
|
|
22016
|
-
column.children = column.children.map((item) => {
|
|
22017
|
-
return deepMergeObjects(basicColumn, item);
|
|
22018
|
-
});
|
|
22019
|
-
return column;
|
|
22020
|
-
} else {
|
|
22021
|
-
return deepMergeObjects(basicColumn, column);
|
|
22022
|
-
}
|
|
21988
|
+
return deepMergeObjects(basicColumn, column);
|
|
22023
21989
|
});
|
|
22024
21990
|
});
|
|
22025
21991
|
const getColumns = () => {
|
|
@@ -22124,11 +22090,7 @@ const _hoisted_1 = { key: 0 };
|
|
|
22124
22090
|
const _hoisted_2 = { key: 1 };
|
|
22125
22091
|
const _hoisted_3 = { key: 2 };
|
|
22126
22092
|
const _hoisted_4 = { style: { "display": "flex", "justify-content": "space-between" } };
|
|
22127
|
-
const _hoisted_5 = {
|
|
22128
|
-
const _hoisted_6 = { key: 1 };
|
|
22129
|
-
const _hoisted_7 = { key: 2 };
|
|
22130
|
-
const _hoisted_8 = { style: { "display": "flex", "justify-content": "space-between" } };
|
|
22131
|
-
const _hoisted_9 = { class: "flex items-center" };
|
|
22093
|
+
const _hoisted_5 = { class: "flex items-center" };
|
|
22132
22094
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22133
22095
|
__name: "TablePlus",
|
|
22134
22096
|
props: {
|
|
@@ -22311,6 +22273,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22311
22273
|
return tableRef.value;
|
|
22312
22274
|
};
|
|
22313
22275
|
const setSelectRowByKeys = (keys2, checked) => {
|
|
22276
|
+
tableRef.value.getTableData();
|
|
22314
22277
|
const rows = [];
|
|
22315
22278
|
keys2.forEach((key2) => {
|
|
22316
22279
|
const row = tableRef.value.getRowById(key2);
|
|
@@ -22326,9 +22289,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22326
22289
|
resetColumn,
|
|
22327
22290
|
refreshColumn
|
|
22328
22291
|
} = useColumns(getProps, tableRef);
|
|
22329
|
-
watchEffect(() => {
|
|
22330
|
-
console.log("getColumnsRef", getColumnsRef.value);
|
|
22331
|
-
});
|
|
22332
22292
|
const tableAction = {
|
|
22333
22293
|
reload,
|
|
22334
22294
|
setTableData,
|
|
@@ -22436,121 +22396,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22436
22396
|
align: "center",
|
|
22437
22397
|
title: "序号"
|
|
22438
22398
|
}, unref(getProps).columnSeq), null, 16)) : createCommentVNode("", true),
|
|
22439
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumnsRef), (column) => {
|
|
22440
|
-
return openBlock(),
|
|
22441
|
-
|
|
22442
|
-
},
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
return openBlock(), createBlock(unref(VxeColumn), {
|
|
22450
|
-
key: c.field,
|
|
22451
|
-
title: "a",
|
|
22452
|
-
field: c.field,
|
|
22453
|
-
"edit-render": (c == null ? void 0 : c.editRender) || void 0
|
|
22454
|
-
}, {
|
|
22455
|
-
default: withCtx((config) => [
|
|
22456
|
-
renderSlot(_ctx.$slots, c.field, normalizeProps(guardReactiveProps(config)), () => {
|
|
22457
|
-
var _a3, _b2, _c2, _d2;
|
|
22458
|
-
return [
|
|
22459
|
-
config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
22460
|
-
((_a3 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
|
|
22461
|
-
key: 0,
|
|
22462
|
-
checkedValue: 1,
|
|
22463
|
-
unCheckedValue: 0
|
|
22464
|
-
}, (c == null ? void 0 : c.editComponentProps) || {}, {
|
|
22465
|
-
checked: config.row[c.field],
|
|
22466
|
-
"onUpdate:checked": ($event) => config.row[c.field] = $event
|
|
22467
|
-
}), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (c == null ? void 0 : c.editComponentProps) || {}, {
|
|
22468
|
-
value: config.row[c.field],
|
|
22469
|
-
"onUpdate:value": ($event) => config.row[c.field] = $event
|
|
22470
|
-
}), null, 16, ["value", "onUpdate:value"]))
|
|
22471
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
22472
|
-
(c == null ? void 0 : c.isEdit) && ((_b2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
22473
|
-
createVNode(unref(CellComponent), mergeProps((c == null ? void 0 : c.editComponentProps) || {}, {
|
|
22474
|
-
value: config.row[c.field],
|
|
22475
|
-
"onUpdate:value": ($event) => config.row[c.field] = $event,
|
|
22476
|
-
bordered: false,
|
|
22477
|
-
showArrow: false,
|
|
22478
|
-
open: false,
|
|
22479
|
-
popoverVisible: false
|
|
22480
|
-
}), null, 16, ["value", "onUpdate:value"])
|
|
22481
|
-
])) : (c == null ? void 0 : c.isEdit) && ((_d2 = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
22482
|
-
createElementVNode("span", null, toDisplayString(getSwitchShowText(c, config.row)), 1)
|
|
22483
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(config.row[c.field]), 1))
|
|
22484
|
-
], 64))
|
|
22485
|
-
];
|
|
22486
|
-
})
|
|
22487
|
-
]),
|
|
22488
|
-
header: withCtx(() => [
|
|
22489
|
-
renderSlot(_ctx.$slots, `${c.field}Header`, normalizeProps(guardReactiveProps({ c })), () => [
|
|
22490
|
-
createElementVNode("div", _hoisted_4, [
|
|
22491
|
-
createElementVNode("div", null, toDisplayString(c.title), 1),
|
|
22492
|
-
(column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
22493
|
-
key: 0,
|
|
22494
|
-
onChange: (type) => handleSortChange(column.field, type)
|
|
22495
|
-
}, null, 8, ["onChange"])) : createCommentVNode("", true)
|
|
22496
|
-
])
|
|
22497
|
-
])
|
|
22498
|
-
]),
|
|
22499
|
-
_: 2
|
|
22500
|
-
}, 1032, ["field", "edit-render"]);
|
|
22501
|
-
}), 128))
|
|
22502
|
-
]),
|
|
22503
|
-
_: 2
|
|
22504
|
-
}, 1032, ["title"])) : (openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: 1 }, column, {
|
|
22505
|
-
"edit-render": (column == null ? void 0 : column.editRender) || void 0
|
|
22506
|
-
}), {
|
|
22507
|
-
default: withCtx((config) => [
|
|
22508
|
-
renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
|
|
22509
|
-
var _a3, _b2, _c2, _d2;
|
|
22510
|
-
return [
|
|
22511
|
-
config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
22512
|
-
((_a3 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
|
|
22513
|
-
key: 0,
|
|
22514
|
-
checkedValue: 1,
|
|
22515
|
-
unCheckedValue: 0
|
|
22516
|
-
}, (column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22517
|
-
checked: config.row[column.field],
|
|
22518
|
-
"onUpdate:checked": ($event) => config.row[column.field] = $event
|
|
22519
|
-
}), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22520
|
-
value: config.row[column.field],
|
|
22521
|
-
"onUpdate:value": ($event) => config.row[column.field] = $event
|
|
22522
|
-
}), null, 16, ["value", "onUpdate:value"]))
|
|
22523
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
22524
|
-
(column == null ? void 0 : column.isEdit) && ((_b2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_5, [
|
|
22525
|
-
createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22526
|
-
value: config.row[column.field],
|
|
22527
|
-
"onUpdate:value": ($event) => config.row[column.field] = $event,
|
|
22528
|
-
bordered: false,
|
|
22529
|
-
showArrow: false,
|
|
22530
|
-
open: false,
|
|
22531
|
-
popoverVisible: false
|
|
22532
|
-
}), null, 16, ["value", "onUpdate:value"])
|
|
22533
|
-
])) : (column == null ? void 0 : column.isEdit) && ((_d2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_6, [
|
|
22534
|
-
createElementVNode("span", null, toDisplayString(getSwitchShowText(column, config.row)), 1)
|
|
22535
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(config.row[column.field]), 1))
|
|
22536
|
-
], 64))
|
|
22537
|
-
];
|
|
22538
|
-
})
|
|
22539
|
-
]),
|
|
22540
|
-
header: withCtx(() => [
|
|
22541
|
-
renderSlot(_ctx.$slots, `${column.field}Header`, normalizeProps(guardReactiveProps({ column })), () => [
|
|
22542
|
-
createElementVNode("div", _hoisted_8, [
|
|
22543
|
-
createElementVNode("div", null, toDisplayString(column.title), 1),
|
|
22544
|
-
(column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
22399
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getColumnsRef), (column, index2) => {
|
|
22400
|
+
return openBlock(), createBlock(unref(VxeColumn), mergeProps({ key: index2 }, column, {
|
|
22401
|
+
"edit-render": (column == null ? void 0 : column.editRender) || void 0
|
|
22402
|
+
}), {
|
|
22403
|
+
default: withCtx((config) => [
|
|
22404
|
+
renderSlot(_ctx.$slots, column.field, normalizeProps(guardReactiveProps(config)), () => {
|
|
22405
|
+
var _a3, _b2, _c2, _d2;
|
|
22406
|
+
return [
|
|
22407
|
+
config.row._isEdit && (column == null ? void 0 : column.isEdit) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
22408
|
+
((_a3 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _a3.component) === "Switch" ? (openBlock(), createBlock(unref(CellComponent), mergeProps({
|
|
22545
22409
|
key: 0,
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22410
|
+
checkedValue: 1,
|
|
22411
|
+
unCheckedValue: 0
|
|
22412
|
+
}, (column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22413
|
+
checked: config.row[column.field],
|
|
22414
|
+
"onUpdate:checked": ($event) => config.row[column.field] = $event
|
|
22415
|
+
}), null, 16, ["checked", "onUpdate:checked"])) : (openBlock(), createBlock(unref(CellComponent), mergeProps({ key: 1 }, (column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22416
|
+
value: config.row[column.field],
|
|
22417
|
+
"onUpdate:value": ($event) => config.row[column.field] = $event
|
|
22418
|
+
}), null, 16, ["value", "onUpdate:value"]))
|
|
22419
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
22420
|
+
(column == null ? void 0 : column.isEdit) && ((_b2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _b2.component) === "Select" || ((_c2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _c2.component) === "ApiSelect" ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
22421
|
+
createVNode(unref(CellComponent), mergeProps((column == null ? void 0 : column.editComponentProps) || {}, {
|
|
22422
|
+
value: config.row[column.field],
|
|
22423
|
+
"onUpdate:value": ($event) => config.row[column.field] = $event,
|
|
22424
|
+
bordered: false,
|
|
22425
|
+
showArrow: false,
|
|
22426
|
+
open: false,
|
|
22427
|
+
popoverVisible: false
|
|
22428
|
+
}), null, 16, ["value", "onUpdate:value"])
|
|
22429
|
+
])) : (column == null ? void 0 : column.isEdit) && ((_d2 = column == null ? void 0 : column.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
22430
|
+
createElementVNode("span", null, toDisplayString(getSwitchShowText(column, config.row)), 1)
|
|
22431
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(config.row[column.field]), 1))
|
|
22432
|
+
], 64))
|
|
22433
|
+
];
|
|
22434
|
+
})
|
|
22435
|
+
]),
|
|
22436
|
+
header: withCtx(() => [
|
|
22437
|
+
renderSlot(_ctx.$slots, `${column.field}Header`, normalizeProps(guardReactiveProps({ column })), () => [
|
|
22438
|
+
createElementVNode("div", _hoisted_4, [
|
|
22439
|
+
createElementVNode("div", null, toDisplayString(column.title), 1),
|
|
22440
|
+
(column == null ? void 0 : column.sortable) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
22441
|
+
key: 0,
|
|
22442
|
+
onChange: (type) => handleSortChange(column.field, type)
|
|
22443
|
+
}, null, 8, ["onChange"])) : createCommentVNode("", true)
|
|
22549
22444
|
])
|
|
22550
|
-
])
|
|
22551
|
-
|
|
22552
|
-
|
|
22553
|
-
|
|
22445
|
+
])
|
|
22446
|
+
]),
|
|
22447
|
+
_: 2
|
|
22448
|
+
}, 1040, ["edit-render"]);
|
|
22554
22449
|
}), 128)),
|
|
22555
22450
|
unref(getProps).isShowAction ? (openBlock(), createBlock(unref(VxeColumn), mergeProps({
|
|
22556
22451
|
key: 3,
|
|
@@ -22559,7 +22454,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22559
22454
|
align: "center"
|
|
22560
22455
|
}, unref(getProps).actionColumn), {
|
|
22561
22456
|
default: withCtx((config) => [
|
|
22562
|
-
createElementVNode("div",
|
|
22457
|
+
createElementVNode("div", _hoisted_5, [
|
|
22563
22458
|
renderSlot(_ctx.$slots, "action", normalizeProps(guardReactiveProps(config)), () => [
|
|
22564
22459
|
unref(getProps).isUseDefaultEditAction ? (openBlock(), createBlock(_sfc_main$7, {
|
|
22565
22460
|
key: 0,
|