@dazhicheng/ui 1.5.261 → 1.5.263
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/components/tt-api-component/index.vue2.js +41 -40
- package/dist/components/tt-button/index.vue2.js +10 -9
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-form/index.js +7 -6
- package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +26 -25
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +82 -64
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +29 -23
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +89 -81
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +49 -43
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +56 -49
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +3 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +94 -61
- package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/index.vue.js +205 -190
- package/dist/components/tt-radio-group/index.vue.js +11 -10
- package/dist/components/tt-select/src/Select.vue.js +3 -2
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.js +45 -44
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
- package/dist/components/tt-table/src/components/TableButtons.js +3 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
- package/dist/components/tt-table/src/props.js +5 -4
- package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
- package/dist/hooks/basicDataCodes.d.ts +4 -1
- package/dist/hooks/basicDataCodes.js +35 -33
- package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
- package/dist/hooks/usePanelSelectSchemas.js +62 -62
- package/dist/hooks/useScreenshotOss.js +3 -2
- package/dist/plugins/vxeTable/switchStatus.js +3 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ze, mergeModels as K, useModel as je, computed as s, watch as S, ref as h, useTemplateRef as V, unref as r, onMounted as qe, createElementBlock as U, openBlock as w, normalizeClass as z, createVNode as j, mergeProps as He, withCtx as Je, withDirectives as Qe, normalizeStyle as Xe, createBlock as q, createCommentVNode as H, nextTick as O } from "vue";
|
|
2
2
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
|
-
import { useDesign as
|
|
3
|
+
import { useDesign as Ye } from "../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { ElSelect as
|
|
5
|
+
import { ElSelect as Ze, vLoading as el } from "element-plus";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "xe-utils";
|
|
8
8
|
import "dayjs/plugin/utc";
|
|
@@ -12,17 +12,18 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.j
|
|
|
12
12
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
13
13
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
15
|
+
import "lodash-es";
|
|
16
|
+
import "vue-router";
|
|
17
|
+
import { useResizeObserver as ll } from "@vueuse/core";
|
|
18
|
+
import { useSelectCollapseOptions as tl } from "../../tt-form/src/hooks/useSelectCollapse.js";
|
|
19
|
+
import { ALL as al } from "./common.js";
|
|
20
|
+
import ol from "./components/PanelLeft.vue.js";
|
|
21
|
+
import nl from "./components/PanelMiddle.vue.js";
|
|
22
|
+
import rl from "./components/PanelRight.vue.js";
|
|
23
|
+
import { usePanelSelectData as il } from "./hooks/usePanelData.js";
|
|
24
|
+
import { usePanelSelectSelection as sl } from "./hooks/usePanelSelection.js";
|
|
24
25
|
/* empty css */
|
|
25
|
-
const p = 4,
|
|
26
|
+
const p = 4, Ll = /* @__PURE__ */ ze({
|
|
26
27
|
name: "TtPanelSelect",
|
|
27
28
|
__name: "index",
|
|
28
29
|
props: /* @__PURE__ */ K({
|
|
@@ -49,7 +50,7 @@ const p = 4, Fl = /* @__PURE__ */ _e({
|
|
|
49
50
|
pasteSearch: { type: Boolean, default: !1 },
|
|
50
51
|
alwaysLoad: { type: Boolean, default: !1 },
|
|
51
52
|
showAll: { type: Boolean, default: !0 },
|
|
52
|
-
showAllField: { default:
|
|
53
|
+
showAllField: { default: al },
|
|
53
54
|
showPinyinMode: { type: Boolean, default: !1 },
|
|
54
55
|
showOriginMode: { type: Boolean, default: !0 },
|
|
55
56
|
leftPlaceholder: { default: "支持模糊搜索" },
|
|
@@ -60,46 +61,30 @@ const p = 4, Fl = /* @__PURE__ */ _e({
|
|
|
60
61
|
modelModifiers: {}
|
|
61
62
|
}),
|
|
62
63
|
emits: /* @__PURE__ */ K(["visible-change", "change"], ["update:modelValue"]),
|
|
63
|
-
setup(
|
|
64
|
-
const
|
|
65
|
-
loading:
|
|
64
|
+
setup(M, { expose: J, emit: Q }) {
|
|
65
|
+
const X = el, Y = Ze, t = M, $ = Q, { prefixCls: c } = Ye("panel-select"), {
|
|
66
|
+
loading: Z,
|
|
66
67
|
fetchApi: m,
|
|
67
|
-
treeOptions:
|
|
68
|
-
navTreeOptions:
|
|
69
|
-
navNodes:
|
|
68
|
+
treeOptions: ee,
|
|
69
|
+
navTreeOptions: F,
|
|
70
|
+
navNodes: le,
|
|
70
71
|
leafNodes: f,
|
|
71
|
-
isFirstLoaded:
|
|
72
|
-
buildOptionGroups:
|
|
73
|
-
} =
|
|
72
|
+
isFirstLoaded: te,
|
|
73
|
+
buildOptionGroups: ae
|
|
74
|
+
} = il(t), a = je(M, "modelValue");
|
|
75
|
+
let R;
|
|
76
|
+
const B = s(() => t.disabled), oe = s(() => {
|
|
77
|
+
const e = /* @__PURE__ */ new Map();
|
|
78
|
+
return f.value.forEach((l) => e.set(l.value, l.label)), e;
|
|
79
|
+
});
|
|
74
80
|
function g(e) {
|
|
75
|
-
|
|
76
|
-
const l = f.value.find((o) => o.value === e);
|
|
77
|
-
return l ? { label: l.label, value: l.value } : { label: String(e), value: e };
|
|
81
|
+
return e === t.showAllField ? { label: "全部", value: t.showAllField } : { label: oe.value.get(e) ?? String(e), value: e };
|
|
78
82
|
}
|
|
79
|
-
function
|
|
83
|
+
function N(e) {
|
|
80
84
|
if (e != null)
|
|
81
85
|
return typeof e == "object" && "value" in e ? e.value : e;
|
|
82
86
|
}
|
|
83
|
-
const
|
|
84
|
-
get() {
|
|
85
|
-
if (t.multiple)
|
|
86
|
-
return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) => g(l));
|
|
87
|
-
if (Array.isArray(a.value)) {
|
|
88
|
-
const e = a.value.at(-1);
|
|
89
|
-
return e === void 0 ? void 0 : g(e);
|
|
90
|
-
}
|
|
91
|
-
return a.value === void 0 ? void 0 : g(a.value);
|
|
92
|
-
},
|
|
93
|
-
set(e) {
|
|
94
|
-
if (t.multiple) {
|
|
95
|
-
const o = Array.isArray(e) ? e : [];
|
|
96
|
-
a.value = o.map((i) => B(i)).filter((i) => i !== void 0);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
const l = B(e);
|
|
100
|
-
a.value = l;
|
|
101
|
-
}
|
|
102
|
-
}), k = u({
|
|
87
|
+
const P = s({
|
|
103
88
|
get() {
|
|
104
89
|
return Array.isArray(a.value) ? t.multiple ? a.value : a.value.slice(-1) : a.value === void 0 ? [] : [a.value];
|
|
105
90
|
},
|
|
@@ -107,20 +92,20 @@ const p = 4, Fl = /* @__PURE__ */ _e({
|
|
|
107
92
|
a.value = t.multiple ? [...e] : e.at(-1);
|
|
108
93
|
}
|
|
109
94
|
});
|
|
110
|
-
|
|
95
|
+
S([() => t.multiple, () => a.value], ([e, l]) => {
|
|
111
96
|
if (e) {
|
|
112
97
|
Array.isArray(l) || (a.value = l === void 0 ? [] : [l]);
|
|
113
98
|
return;
|
|
114
99
|
}
|
|
115
100
|
Array.isArray(l) && (a.value = l.at(-1));
|
|
116
101
|
});
|
|
117
|
-
const
|
|
118
|
-
function
|
|
102
|
+
const k = h(), A = h(""), C = h(""), b = h(), L = V("middleRef"), v = V("selectWrapRef"), E = V("selectRef"), x = h(0);
|
|
103
|
+
function G() {
|
|
119
104
|
const e = v.value;
|
|
120
|
-
e && (
|
|
105
|
+
e && (x.value = e.offsetWidth);
|
|
121
106
|
}
|
|
122
|
-
|
|
123
|
-
const ne =
|
|
107
|
+
ll(v, () => G());
|
|
108
|
+
const ne = s(() => ({
|
|
124
109
|
componentProps: {
|
|
125
110
|
multiple: t.multiple,
|
|
126
111
|
component: {
|
|
@@ -129,260 +114,290 @@ const p = 4, Fl = /* @__PURE__ */ _e({
|
|
|
129
114
|
},
|
|
130
115
|
component: "TtPanelSelect",
|
|
131
116
|
selectWrapRef: v,
|
|
132
|
-
selectRef:
|
|
133
|
-
})), { selectComponentProps:
|
|
117
|
+
selectRef: E
|
|
118
|
+
})), { selectComponentProps: re } = tl(ne), T = s(() => {
|
|
134
119
|
const e = A.value.trim().toLowerCase();
|
|
135
|
-
if (!e) return
|
|
120
|
+
if (!e) return F.value;
|
|
136
121
|
const l = (o) => {
|
|
137
122
|
const i = [];
|
|
138
|
-
return o.forEach((
|
|
123
|
+
return o.forEach((n) => {
|
|
139
124
|
var I;
|
|
140
|
-
const
|
|
141
|
-
(String(
|
|
125
|
+
const u = (I = n.children) != null && I.length ? l(n.children) : void 0;
|
|
126
|
+
(String(n.label).toLowerCase().includes(e) || u && u.length) && i.push({ ...n, children: u != null && u.length ? u : void 0 });
|
|
142
127
|
}), i;
|
|
143
128
|
};
|
|
144
|
-
return l(
|
|
145
|
-
}),
|
|
129
|
+
return l(F.value);
|
|
130
|
+
}), ie = s(() => {
|
|
146
131
|
const e = [], l = (o) => {
|
|
147
132
|
o.forEach((i) => {
|
|
148
|
-
var
|
|
149
|
-
e.push(i.value), (
|
|
133
|
+
var n;
|
|
134
|
+
e.push(i.value), (n = i.children) != null && n.length && l(i.children);
|
|
150
135
|
});
|
|
151
136
|
};
|
|
152
|
-
return l(
|
|
153
|
-
}), y =
|
|
137
|
+
return l(T.value), e;
|
|
138
|
+
}), y = s(() => ae(f.value, C.value)), se = s(() => {
|
|
154
139
|
const e = "minmax(var(--tt-panel-select-middle-width, 450px), 1fr)";
|
|
155
140
|
return t.showNav && !t.multiple ? `200px ${e}` : !t.showNav && t.multiple ? `${e} 180px` : !t.showNav && !t.multiple ? e : `200px ${e} 180px`;
|
|
156
|
-
}),
|
|
141
|
+
}), ue = s(() => {
|
|
157
142
|
const e = "var(--tt-panel-select-middle-width, 450px)";
|
|
158
143
|
return t.showNav && !t.multiple ? `max(calc(200px + ${e}), 800px)` : !t.showNav && t.multiple ? `max(calc(${e} + 180px), 800px)` : !t.showNav && !t.multiple ? `max(${e}, 800px)` : `max(calc(200px + ${e} + 180px), 800px)`;
|
|
159
|
-
}), de =
|
|
144
|
+
}), de = s(() => {
|
|
160
145
|
const e = [];
|
|
161
146
|
return y.value.forEach((l) => {
|
|
162
147
|
!(t.showOriginMode && l.value === "__origin__") && e.push({ key: `group-${String(l.value)}`, type: "group", group: l });
|
|
163
148
|
const i = Math.ceil(l.options.length / p);
|
|
164
|
-
for (let
|
|
165
|
-
const
|
|
149
|
+
for (let n = 0; n < l.options.length; n += p) {
|
|
150
|
+
const u = n / p;
|
|
166
151
|
e.push({
|
|
167
|
-
key: `options-${String(l.value)}-${
|
|
152
|
+
key: `options-${String(l.value)}-${n / p}`,
|
|
168
153
|
type: "options",
|
|
169
154
|
group: l,
|
|
170
|
-
options: l.options.slice(
|
|
171
|
-
isLast:
|
|
155
|
+
options: l.options.slice(n, n + p),
|
|
156
|
+
isLast: u === i - 1
|
|
172
157
|
});
|
|
173
158
|
}
|
|
174
159
|
}), e;
|
|
175
160
|
}), {
|
|
176
161
|
selectedOptions: ce,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
162
|
+
selectedValueSet: pe,
|
|
163
|
+
isAllChecked: me,
|
|
164
|
+
isIndeterminate: fe,
|
|
165
|
+
isGroupChecked: he,
|
|
166
|
+
isGroupIndeterminate: ve,
|
|
167
|
+
handleGroupCheck: ye,
|
|
168
|
+
handleAllOptionCheck: we,
|
|
169
|
+
handleOptionCheck: ge,
|
|
170
|
+
handleOptionsCheck: ke,
|
|
171
|
+
handleCheckAll: Ae,
|
|
172
|
+
clearSelected: Ce,
|
|
173
|
+
removeSelected: be,
|
|
174
|
+
withLockedSelectedValues: xe
|
|
175
|
+
} = sl({
|
|
176
|
+
multiple: s(() => t.multiple),
|
|
189
177
|
modelValue: a,
|
|
190
|
-
selectedValues:
|
|
178
|
+
selectedValues: P,
|
|
191
179
|
leafNodes: f,
|
|
192
|
-
allValue:
|
|
193
|
-
}),
|
|
194
|
-
(
|
|
195
|
-
|
|
196
|
-
|
|
180
|
+
allValue: s(() => t.showAllField)
|
|
181
|
+
}), _ = s({
|
|
182
|
+
get() {
|
|
183
|
+
if (t.multiple)
|
|
184
|
+
return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) => g(l));
|
|
185
|
+
if (Array.isArray(a.value)) {
|
|
186
|
+
const e = a.value.at(-1);
|
|
187
|
+
return e === void 0 ? void 0 : g(e);
|
|
188
|
+
}
|
|
189
|
+
return a.value === void 0 ? void 0 : g(a.value);
|
|
190
|
+
},
|
|
191
|
+
set(e) {
|
|
192
|
+
const l = r(a);
|
|
193
|
+
if (R = Array.isArray(l) ? [...l] : l, t.multiple) {
|
|
194
|
+
const i = (Array.isArray(e) ? e : []).map((n) => N(n)).filter((n) => n !== void 0);
|
|
195
|
+
a.value = xe(i);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
a.value = N(e);
|
|
199
|
+
}
|
|
200
|
+
}), Se = s(() => y.value.reduce(
|
|
197
201
|
(e, l) => (e[String(l.value)] = he(l), e),
|
|
198
202
|
{}
|
|
199
|
-
)),
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
)), Ve = s(() => y.value.reduce(
|
|
204
|
+
(e, l) => (e[String(l.value)] = ve(l), e),
|
|
205
|
+
{}
|
|
206
|
+
)), Oe = s(() => pe.value.has(t.showAllField)), W = s(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
|
|
207
|
+
function Me(e) {
|
|
208
|
+
const l = r(W);
|
|
209
|
+
if (Array.isArray(e)) {
|
|
210
|
+
const o = new Set(e);
|
|
211
|
+
return l.filter((i) => i.value !== void 0 && o.has(i.value));
|
|
212
|
+
}
|
|
204
213
|
if (e !== void 0)
|
|
205
214
|
return l.find((o) => o.value === e);
|
|
206
215
|
}
|
|
207
|
-
function
|
|
216
|
+
function $e(e) {
|
|
208
217
|
var o, i;
|
|
209
|
-
if (t.showPinyinMode || (o = e.children) != null && o.some((
|
|
210
|
-
var
|
|
211
|
-
return !((
|
|
218
|
+
if (t.showPinyinMode || (o = e.children) != null && o.some((n) => {
|
|
219
|
+
var u;
|
|
220
|
+
return !((u = n.children) != null && u.length);
|
|
212
221
|
})) return e.value;
|
|
213
|
-
const l = f.value.find((
|
|
222
|
+
const l = f.value.find((n) => n.path.some((u) => u.value === e.value));
|
|
214
223
|
return (i = l == null ? void 0 : l.path.at(-2)) == null ? void 0 : i.value;
|
|
215
224
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
const l =
|
|
219
|
-
|
|
225
|
+
function Fe(e) {
|
|
226
|
+
k.value = e.value;
|
|
227
|
+
const l = $e(e);
|
|
228
|
+
b.value = void 0, O(() => {
|
|
220
229
|
var o;
|
|
221
|
-
|
|
230
|
+
b.value = l, l !== void 0 && ((o = L.value) == null || o.scrollToGroup(l));
|
|
222
231
|
});
|
|
223
232
|
}
|
|
224
|
-
function
|
|
233
|
+
function Re(e) {
|
|
225
234
|
A.value = e;
|
|
226
235
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
236
|
+
function Be(e) {
|
|
237
|
+
C.value = e;
|
|
229
238
|
}
|
|
230
|
-
function
|
|
239
|
+
function Ne(e, l) {
|
|
231
240
|
const o = y.value.find((i) => i.value === e);
|
|
232
|
-
o &&
|
|
241
|
+
o && ye(o, l);
|
|
233
242
|
}
|
|
234
|
-
async function
|
|
235
|
-
|
|
243
|
+
async function Pe(e) {
|
|
244
|
+
$("visible-change", e), e && (await O(), G(), t.alwaysLoad ? await m() : !t.immediate && !r(te) && await m());
|
|
236
245
|
}
|
|
237
|
-
function
|
|
238
|
-
R
|
|
246
|
+
function Le() {
|
|
247
|
+
D(R);
|
|
239
248
|
}
|
|
240
|
-
function
|
|
241
|
-
$(()
|
|
242
|
-
|
|
243
|
-
|
|
249
|
+
function Ee(e) {
|
|
250
|
+
$("change", e, [...r(W)], Me(e));
|
|
251
|
+
}
|
|
252
|
+
function Ge(e, l) {
|
|
253
|
+
return Array.isArray(e) && Array.isArray(l) ? e.length === l.length && e.every((o, i) => o === l[i]) : e === l;
|
|
254
|
+
}
|
|
255
|
+
function D(e) {
|
|
256
|
+
O(() => {
|
|
257
|
+
const l = r(a);
|
|
258
|
+
Ge(l, e) || Ee(l);
|
|
244
259
|
});
|
|
245
260
|
}
|
|
246
261
|
function d(e) {
|
|
247
|
-
const l =
|
|
248
|
-
e(),
|
|
262
|
+
const l = r(a), o = Array.isArray(l) ? [...l] : l;
|
|
263
|
+
e(), D(o);
|
|
249
264
|
}
|
|
250
|
-
function
|
|
265
|
+
function Te(e) {
|
|
251
266
|
d(() => {
|
|
252
|
-
|
|
267
|
+
we(e);
|
|
253
268
|
});
|
|
254
269
|
}
|
|
255
|
-
function
|
|
270
|
+
function _e(e) {
|
|
256
271
|
d(() => {
|
|
257
|
-
|
|
272
|
+
Ae(e);
|
|
258
273
|
});
|
|
259
274
|
}
|
|
260
|
-
function
|
|
275
|
+
function We(e, l) {
|
|
261
276
|
d(() => {
|
|
262
|
-
|
|
277
|
+
Ne(e, l);
|
|
263
278
|
});
|
|
264
279
|
}
|
|
265
|
-
function
|
|
280
|
+
function De(e, l) {
|
|
266
281
|
d(() => {
|
|
267
|
-
|
|
282
|
+
ge(e, l);
|
|
268
283
|
});
|
|
269
284
|
}
|
|
270
|
-
function
|
|
285
|
+
function Ie(e, l) {
|
|
271
286
|
d(() => {
|
|
272
|
-
|
|
287
|
+
ke(e, l);
|
|
273
288
|
});
|
|
274
289
|
}
|
|
275
|
-
function
|
|
290
|
+
function Ke(e) {
|
|
276
291
|
d(() => {
|
|
277
|
-
|
|
292
|
+
be(e);
|
|
278
293
|
});
|
|
279
294
|
}
|
|
280
|
-
function
|
|
295
|
+
function Ue() {
|
|
281
296
|
d(() => {
|
|
282
|
-
|
|
297
|
+
Ce();
|
|
283
298
|
});
|
|
284
299
|
}
|
|
285
|
-
return
|
|
300
|
+
return S(
|
|
286
301
|
() => t.params,
|
|
287
302
|
() => {
|
|
288
303
|
m();
|
|
289
304
|
},
|
|
290
305
|
{ deep: !0 }
|
|
291
|
-
),
|
|
292
|
-
|
|
306
|
+
), S(
|
|
307
|
+
le,
|
|
293
308
|
(e) => {
|
|
294
309
|
var l;
|
|
295
|
-
|
|
310
|
+
k.value !== void 0 || !e.length || (k.value = (l = e[0]) == null ? void 0 : l.value);
|
|
296
311
|
},
|
|
297
312
|
{ immediate: !0 }
|
|
298
|
-
),
|
|
313
|
+
), qe(() => {
|
|
299
314
|
t.immediate && m();
|
|
300
|
-
}),
|
|
315
|
+
}), J({
|
|
301
316
|
/** 重新加载数据源*/
|
|
302
317
|
reload: m,
|
|
303
318
|
/** 获取当前归一化后的树形选项数据 */
|
|
304
|
-
getOptions: () =>
|
|
319
|
+
getOptions: () => r(ee),
|
|
305
320
|
/** 获取当前v-model值 */
|
|
306
|
-
getValue: () =>
|
|
321
|
+
getValue: () => r(a)
|
|
307
322
|
}), (e, l) => (w(), U("div", {
|
|
308
323
|
ref_key: "selectWrapRef",
|
|
309
324
|
ref: v,
|
|
310
|
-
class: z(
|
|
325
|
+
class: z(r(c))
|
|
311
326
|
}, [
|
|
312
|
-
j(
|
|
327
|
+
j(r(Y), He({
|
|
313
328
|
ref_key: "selectRef",
|
|
314
|
-
ref:
|
|
315
|
-
modelValue:
|
|
316
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
317
|
-
},
|
|
329
|
+
ref: E,
|
|
330
|
+
modelValue: _.value,
|
|
331
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => _.value = o)
|
|
332
|
+
}, r(re), {
|
|
318
333
|
multiple: e.multiple,
|
|
319
334
|
filterable: !1,
|
|
320
335
|
placeholder: e.placeholder,
|
|
321
336
|
"fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
|
|
322
337
|
disabled: e.disabled,
|
|
323
|
-
"popper-class": `${
|
|
324
|
-
onVisibleChange:
|
|
325
|
-
onChange:
|
|
338
|
+
"popper-class": `${r(c)}__popper vxe-table--ignore-clear`,
|
|
339
|
+
onVisibleChange: Pe,
|
|
340
|
+
onChange: Le
|
|
326
341
|
}), {
|
|
327
|
-
empty:
|
|
328
|
-
|
|
342
|
+
empty: Je(() => [
|
|
343
|
+
Qe((w(), U("div", {
|
|
329
344
|
"element-loading-text": "加载中",
|
|
330
|
-
class: z(`${
|
|
331
|
-
style:
|
|
332
|
-
"--columns":
|
|
333
|
-
"--panel-min-width":
|
|
334
|
-
"--panel-width":
|
|
345
|
+
class: z(`${r(c)}__panel`),
|
|
346
|
+
style: Xe({
|
|
347
|
+
"--columns": se.value,
|
|
348
|
+
"--panel-min-width": ue.value,
|
|
349
|
+
"--panel-width": x.value ? `${x.value}px` : "100%"
|
|
335
350
|
})
|
|
336
351
|
}, [
|
|
337
|
-
t.showNav ? (w(), q(
|
|
352
|
+
t.showNav ? (w(), q(ol, {
|
|
338
353
|
key: 0,
|
|
339
|
-
"prefix-cls":
|
|
354
|
+
"prefix-cls": r(c),
|
|
340
355
|
keyword: A.value,
|
|
341
|
-
"tree-data":
|
|
342
|
-
"expanded-keys":
|
|
356
|
+
"tree-data": T.value,
|
|
357
|
+
"expanded-keys": ie.value,
|
|
343
358
|
"left-placeholder": e.leftPlaceholder,
|
|
344
|
-
"onUpdate:keyword":
|
|
345
|
-
onSelect:
|
|
359
|
+
"onUpdate:keyword": Re,
|
|
360
|
+
onSelect: Fe
|
|
346
361
|
}, null, 8, ["prefix-cls", "keyword", "tree-data", "expanded-keys", "left-placeholder"])) : H("", !0),
|
|
347
|
-
j(
|
|
362
|
+
j(nl, {
|
|
348
363
|
ref_key: "middleRef",
|
|
349
|
-
ref:
|
|
350
|
-
"prefix-cls":
|
|
364
|
+
ref: L,
|
|
365
|
+
"prefix-cls": r(c),
|
|
351
366
|
multiple: e.multiple,
|
|
352
|
-
keyword:
|
|
367
|
+
keyword: C.value,
|
|
353
368
|
rows: de.value,
|
|
354
|
-
disabled:
|
|
369
|
+
disabled: B.value,
|
|
355
370
|
"show-all": t.showAll,
|
|
356
371
|
"option-per-row": p,
|
|
357
372
|
"row-height": 40,
|
|
358
|
-
"selected-values":
|
|
359
|
-
"is-all-checked":
|
|
360
|
-
"is-indeterminate":
|
|
361
|
-
"all-checked":
|
|
362
|
-
"scroll-to-group-value":
|
|
363
|
-
"group-checked-map":
|
|
364
|
-
"group-indeterminate-map":
|
|
373
|
+
"selected-values": P.value,
|
|
374
|
+
"is-all-checked": r(me),
|
|
375
|
+
"is-indeterminate": r(fe),
|
|
376
|
+
"all-checked": Oe.value,
|
|
377
|
+
"scroll-to-group-value": b.value,
|
|
378
|
+
"group-checked-map": Se.value,
|
|
379
|
+
"group-indeterminate-map": Ve.value,
|
|
365
380
|
"paste-search": e.pasteSearch,
|
|
366
381
|
separator: e.separator,
|
|
367
382
|
"middle-placeholder": e.middlePlaceholder,
|
|
368
|
-
"onUpdate:keyword":
|
|
369
|
-
onAllCheck:
|
|
370
|
-
onCheckAll:
|
|
371
|
-
onGroupCheck:
|
|
372
|
-
onOptionCheck:
|
|
373
|
-
onOptionsCheck:
|
|
383
|
+
"onUpdate:keyword": Be,
|
|
384
|
+
onAllCheck: Te,
|
|
385
|
+
onCheckAll: _e,
|
|
386
|
+
onGroupCheck: We,
|
|
387
|
+
onOptionCheck: De,
|
|
388
|
+
onOptionsCheck: Ie
|
|
374
389
|
}, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-values", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder"]),
|
|
375
|
-
t.multiple ? (w(), q(
|
|
390
|
+
t.multiple ? (w(), q(rl, {
|
|
376
391
|
key: 1,
|
|
377
|
-
"prefix-cls":
|
|
392
|
+
"prefix-cls": r(c),
|
|
378
393
|
multiple: e.multiple,
|
|
379
|
-
disabled:
|
|
380
|
-
"selected-options":
|
|
381
|
-
onClearAll:
|
|
382
|
-
onRemove:
|
|
394
|
+
disabled: B.value,
|
|
395
|
+
"selected-options": r(ce),
|
|
396
|
+
onClearAll: Ue,
|
|
397
|
+
onRemove: Ke
|
|
383
398
|
}, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : H("", !0)
|
|
384
399
|
], 6)), [
|
|
385
|
-
[
|
|
400
|
+
[r(X), r(Z)]
|
|
386
401
|
])
|
|
387
402
|
]),
|
|
388
403
|
_: 1
|
|
@@ -391,5 +406,5 @@ const p = 4, Fl = /* @__PURE__ */ _e({
|
|
|
391
406
|
}
|
|
392
407
|
});
|
|
393
408
|
export {
|
|
394
|
-
|
|
409
|
+
Ll as default
|
|
395
410
|
};
|
|
@@ -13,7 +13,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8
|
|
|
13
13
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import { omit as m } from "lodash-es";
|
|
16
|
-
|
|
16
|
+
import "vue-router";
|
|
17
|
+
const Q = /* @__PURE__ */ V({
|
|
17
18
|
name: "TtRadioGroup",
|
|
18
19
|
inheritAttrs: !1,
|
|
19
20
|
__name: "index",
|
|
@@ -37,30 +38,30 @@ const O = /* @__PURE__ */ V({
|
|
|
37
38
|
}),
|
|
38
39
|
emits: /* @__PURE__ */ d(["change"], ["update:modelValue"]),
|
|
39
40
|
setup(n, { emit: f }) {
|
|
40
|
-
const
|
|
41
|
-
...m(
|
|
41
|
+
const a = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = A("radio-group"), h = k(() => ({
|
|
42
|
+
...m(a, ["clearable", "beforeChange", "modelValue"]),
|
|
42
43
|
...m(g, ["onUpdate:modelValue", "onChange", "class"])
|
|
43
44
|
})), r = c(l.value), { formItem: i } = D(), u = c(!1);
|
|
44
45
|
async function C(e) {
|
|
45
|
-
const
|
|
46
|
+
const o = l.value;
|
|
46
47
|
let t = !0;
|
|
47
|
-
|
|
48
|
+
a.beforeChange && (t = await a.beforeChange(e, o)), t ? (l.value = e, s("change", e)) : r.value = o;
|
|
48
49
|
}
|
|
49
50
|
function b(e) {
|
|
50
|
-
if (!
|
|
51
|
+
if (!a.clearable || a.disabled) return;
|
|
51
52
|
const t = e.target.closest(".el-radio, .el-radio-button");
|
|
52
53
|
t && (!t.classList.contains("is-checked") && !t.classList.contains("is-active") || t.classList.contains("is-disabled") || (e.stopPropagation(), e.preventDefault(), l.value = void 0, r.value = void 0, s("change", void 0)));
|
|
53
54
|
}
|
|
54
55
|
return x(
|
|
55
56
|
l,
|
|
56
57
|
(e) => {
|
|
57
|
-
r.value = e, u.value && (i == null || i.validate("change").catch((
|
|
58
|
+
r.value = e, u.value && (i == null || i.validate("change").catch((o) => {
|
|
58
59
|
})), u.value = !0;
|
|
59
60
|
},
|
|
60
61
|
{ immediate: !0 }
|
|
61
|
-
), (e,
|
|
62
|
+
), (e, o) => (w(), L(p(F), E(h.value, {
|
|
62
63
|
modelValue: r.value,
|
|
63
|
-
"onUpdate:modelValue":
|
|
64
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t),
|
|
64
65
|
class: [p(v), e.$attrs.class],
|
|
65
66
|
"validate-event": !1,
|
|
66
67
|
onClickCapture: b,
|
|
@@ -74,5 +75,5 @@ const O = /* @__PURE__ */ V({
|
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
Q as default
|
|
78
79
|
};
|
|
@@ -16,6 +16,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
16
16
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
17
17
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
18
18
|
import { omit as st, pick as it, cloneDeep as j, isEqual as rt } from "lodash-es";
|
|
19
|
+
import "vue-router";
|
|
19
20
|
import { useLoading as at } from "../../../hooks/useLoading.js";
|
|
20
21
|
import { CopyDocument as nt } from "@element-plus/icons-vue";
|
|
21
22
|
import ct from "../../../directives/disabled-tip/index.js";
|
|
@@ -28,7 +29,7 @@ import { usePagination as ft } from "./hooks/usePagination.js";
|
|
|
28
29
|
import { useSelect as gt } from "./hooks/useSelect.js";
|
|
29
30
|
import { useSelectTableEvent as vt } from "./hooks/useSelectTableEvent.js";
|
|
30
31
|
import { selectProps as bt, configDefault as ht } from "./props.js";
|
|
31
|
-
const Pt = ["title"],
|
|
32
|
+
const Pt = ["title"], Xt = /* @__PURE__ */ Ne({
|
|
32
33
|
name: "TtSelect",
|
|
33
34
|
inheritAttrs: !1,
|
|
34
35
|
__name: "Select",
|
|
@@ -322,5 +323,5 @@ const Pt = ["title"], Qt = /* @__PURE__ */ Ne({
|
|
|
322
323
|
}
|
|
323
324
|
});
|
|
324
325
|
export {
|
|
325
|
-
|
|
326
|
+
Xt as default
|
|
326
327
|
};
|