star-horse-lowcode 2.8.24 → 2.8.25
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/README.md +2 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +1367 -864
- package/dist/types/index.d.ts +1532 -24
- package/package.json +20 -22
package/dist/index.es.js
CHANGED
|
@@ -9,244 +9,141 @@ import Vue3Barcode from 'vue3-barcode';
|
|
|
9
9
|
import { createPinia, defineStore } from 'pinia';
|
|
10
10
|
import $ from 'jquery';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
14
|
-
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
15
|
-
function jsonParseTransform(key, value) {
|
|
16
|
-
if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) {
|
|
17
|
-
warnKeyDropped(key);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
function warnKeyDropped(key) {
|
|
23
|
-
console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
|
|
24
|
-
}
|
|
25
|
-
function destr(value, options = {}) {
|
|
26
|
-
if (typeof value !== "string") {
|
|
27
|
-
return value;
|
|
28
|
-
}
|
|
29
|
-
if (value[0] === '"' && value[value.length - 1] === '"' && value.indexOf("\\") === -1) {
|
|
30
|
-
return value.slice(1, -1);
|
|
31
|
-
}
|
|
32
|
-
const _value = value.trim();
|
|
33
|
-
if (_value.length <= 9) {
|
|
34
|
-
switch (_value.toLowerCase()) {
|
|
35
|
-
case "true": {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
case "false": {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
case "undefined": {
|
|
42
|
-
return void 0;
|
|
43
|
-
}
|
|
44
|
-
case "null": {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
case "nan": {
|
|
48
|
-
return Number.NaN;
|
|
49
|
-
}
|
|
50
|
-
case "infinity": {
|
|
51
|
-
return Number.POSITIVE_INFINITY;
|
|
52
|
-
}
|
|
53
|
-
case "-infinity": {
|
|
54
|
-
return Number.NEGATIVE_INFINITY;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (!JsonSigRx.test(value)) {
|
|
59
|
-
if (options.strict) {
|
|
60
|
-
throw new SyntaxError("[destr] Invalid JSON");
|
|
61
|
-
}
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
try {
|
|
65
|
-
if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) {
|
|
66
|
-
if (options.strict) {
|
|
67
|
-
throw new Error("[destr] Possible prototype pollution");
|
|
68
|
-
}
|
|
69
|
-
return JSON.parse(value, jsonParseTransform);
|
|
70
|
-
}
|
|
71
|
-
return JSON.parse(value);
|
|
72
|
-
} catch (error) {
|
|
73
|
-
if (options.strict) {
|
|
74
|
-
throw error;
|
|
75
|
-
}
|
|
76
|
-
return value;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
12
|
+
//#region src/runtime/utils.ts
|
|
80
13
|
function get$1(obj, path) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return value;
|
|
14
|
+
if (obj == null) return void 0;
|
|
15
|
+
let value = obj;
|
|
16
|
+
for (let i = 0; i < path.length; i++) {
|
|
17
|
+
if (value === void 0 || value[path[i]] === void 0) return void 0;
|
|
18
|
+
if (value === null || value[path[i]] === null) return null;
|
|
19
|
+
value = value[path[i]];
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
90
22
|
}
|
|
91
23
|
function set$1(obj, value, path) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
typeof obj !== "object" || obj === null || !Object.prototype.hasOwnProperty.call(obj, idx) ? Number.isInteger(Number(path[1])) ? [] : {} : obj[idx],
|
|
98
|
-
value,
|
|
99
|
-
Array.prototype.slice.call(path, 1)
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
if (Number.isInteger(Number(idx)) && Array.isArray(obj))
|
|
103
|
-
return obj.slice()[idx];
|
|
104
|
-
return Object.assign({}, obj, { [idx]: value });
|
|
24
|
+
if (path.length === 0) return value;
|
|
25
|
+
const idx = path[0];
|
|
26
|
+
if (path.length > 1) value = set$1(typeof obj !== "object" || obj === null || !Object.prototype.hasOwnProperty.call(obj, idx) ? Number.isInteger(Number(path[1])) ? [] : {} : obj[idx], value, Array.prototype.slice.call(path, 1));
|
|
27
|
+
if (Number.isInteger(Number(idx)) && Array.isArray(obj)) return obj.slice()[idx];
|
|
28
|
+
return Object.assign({}, obj, { [idx]: value });
|
|
105
29
|
}
|
|
106
30
|
function unset(obj, path) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
31
|
+
if (obj == null || path.length === 0) return obj;
|
|
32
|
+
if (path.length === 1) {
|
|
33
|
+
if (obj == null) return obj;
|
|
34
|
+
if (Number.isInteger(path[0]) && Array.isArray(obj)) return Array.prototype.slice.call(obj, 0).splice(path[0], 1);
|
|
35
|
+
const result = {};
|
|
36
|
+
for (const p in obj) result[p] = obj[p];
|
|
37
|
+
delete result[path[0]];
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
if (obj[path[0]] == null) {
|
|
41
|
+
if (Number.isInteger(path[0]) && Array.isArray(obj)) return Array.prototype.concat.call([], obj);
|
|
42
|
+
const result = {};
|
|
43
|
+
for (const p in obj) result[p] = obj[p];
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
return set$1(obj, unset(obj[path[0]], Array.prototype.slice.call(path, 1)), [path[0]]);
|
|
47
|
+
}
|
|
48
|
+
function deepPick(obj, paths) {
|
|
49
|
+
return paths.map((p) => p.split(".")).map((p) => [p, get$1(obj, p)]).filter((t) => t[1] !== void 0).reduce((acc, cur) => set$1(acc, cur[1], cur[0]), {});
|
|
50
|
+
}
|
|
51
|
+
function deepOmit(obj, paths) {
|
|
52
|
+
return paths.map((p) => p.split(".")).reduce((acc, cur) => unset(acc, cur), obj);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/runtime/core.ts
|
|
57
|
+
function hydrateStore(store, { storage, serializer, key, debug, pick, omit, beforeHydrate, afterHydrate }, context, runHooks = true) {
|
|
58
|
+
try {
|
|
59
|
+
if (runHooks) beforeHydrate?.(context);
|
|
60
|
+
const fromStorage = storage.getItem(key);
|
|
61
|
+
if (fromStorage) {
|
|
62
|
+
const deserialized = serializer.deserialize(fromStorage);
|
|
63
|
+
const picked = pick ? deepPick(deserialized, pick) : deserialized;
|
|
64
|
+
const omitted = omit ? deepOmit(picked, omit) : picked;
|
|
65
|
+
store.$patch(omitted);
|
|
66
|
+
}
|
|
67
|
+
if (runHooks) afterHydrate?.(context);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (debug) console.error("[pinia-plugin-persistedstate]", error);
|
|
70
|
+
}
|
|
140
71
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
72
|
+
function persistState(state, { storage, serializer, key, debug, pick, omit }) {
|
|
73
|
+
try {
|
|
74
|
+
const picked = pick ? deepPick(state, pick) : state;
|
|
75
|
+
const omitted = omit ? deepOmit(picked, omit) : picked;
|
|
76
|
+
const toStorage = serializer.serialize(omitted);
|
|
77
|
+
storage.setItem(key, toStorage);
|
|
78
|
+
} catch (error) {
|
|
79
|
+
if (debug) console.error("[pinia-plugin-persistedstate]", error);
|
|
80
|
+
}
|
|
143
81
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
function hydrateStore(store, {
|
|
147
|
-
storage,
|
|
148
|
-
serializer,
|
|
149
|
-
key,
|
|
150
|
-
debug,
|
|
151
|
-
pick,
|
|
152
|
-
omit,
|
|
153
|
-
beforeHydrate,
|
|
154
|
-
afterHydrate
|
|
155
|
-
}, context, runHooks = true) {
|
|
156
|
-
try {
|
|
157
|
-
if (runHooks)
|
|
158
|
-
beforeHydrate?.(context);
|
|
159
|
-
const fromStorage = storage.getItem(key);
|
|
160
|
-
if (fromStorage) {
|
|
161
|
-
const deserialized = serializer.deserialize(fromStorage);
|
|
162
|
-
const picked = pick ? deepPickUnsafe(deserialized, pick) : deserialized;
|
|
163
|
-
const omitted = omit ? deepOmitUnsafe(picked, omit) : picked;
|
|
164
|
-
store.$patch(omitted);
|
|
165
|
-
}
|
|
166
|
-
if (runHooks)
|
|
167
|
-
afterHydrate?.(context);
|
|
168
|
-
} catch (error) {
|
|
169
|
-
if (debug)
|
|
170
|
-
console.error("[pinia-plugin-persistedstate]", error);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
function persistState(state, {
|
|
174
|
-
storage,
|
|
175
|
-
serializer,
|
|
176
|
-
key,
|
|
177
|
-
debug,
|
|
178
|
-
pick,
|
|
179
|
-
omit
|
|
180
|
-
}) {
|
|
181
|
-
try {
|
|
182
|
-
const picked = pick ? deepPickUnsafe(state, pick) : state;
|
|
183
|
-
const omitted = omit ? deepOmitUnsafe(picked, omit) : picked;
|
|
184
|
-
const toStorage = serializer.serialize(omitted);
|
|
185
|
-
storage.setItem(key, toStorage);
|
|
186
|
-
} catch (error) {
|
|
187
|
-
if (debug)
|
|
188
|
-
console.error("[pinia-plugin-persistedstate]", error);
|
|
189
|
-
}
|
|
82
|
+
function parsePersistKey(key, storeId) {
|
|
83
|
+
return typeof key === "function" ? key(storeId) : typeof key === "string" ? key : storeId;
|
|
190
84
|
}
|
|
191
85
|
function createPersistence(context, optionsParser, auto) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
store.$subscribe(
|
|
216
|
-
(_mutation, state) => persistState(state, p),
|
|
217
|
-
{ detached: true }
|
|
218
|
-
);
|
|
219
|
-
});
|
|
86
|
+
const { pinia, store, options: { persist = auto } } = context;
|
|
87
|
+
if (!persist) return;
|
|
88
|
+
// v8 ignore if -- @preserve
|
|
89
|
+
if (!(store.$id in pinia.state.value)) {
|
|
90
|
+
const originalStore = pinia._s.get(store.$id.replace("__hot:", ""));
|
|
91
|
+
if (originalStore) Promise.resolve().then(() => originalStore.$persist());
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const persistences = (Array.isArray(persist) ? persist : persist === true ? [{}] : [persist]).map(optionsParser);
|
|
95
|
+
store.$hydrate = ({ runHooks = true } = {}) => {
|
|
96
|
+
persistences.forEach((p) => {
|
|
97
|
+
hydrateStore(store, p, context, runHooks);
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
store.$persist = () => {
|
|
101
|
+
persistences.forEach((p) => {
|
|
102
|
+
persistState(store.$state, p);
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
persistences.forEach((p) => {
|
|
106
|
+
hydrateStore(store, p, context);
|
|
107
|
+
store.$subscribe((_mutation, state) => persistState(state, p), { detached: true });
|
|
108
|
+
});
|
|
220
109
|
}
|
|
221
110
|
|
|
222
|
-
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/index.ts
|
|
113
|
+
/**
|
|
114
|
+
* Create a Pinia persistence plugin.
|
|
115
|
+
* @see https://codeberg.org/praz/pinia-plugin-persistedstate
|
|
116
|
+
*/
|
|
223
117
|
function createPersistedState(options = {}) {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
};
|
|
118
|
+
return function(context) {
|
|
119
|
+
createPersistence(context, (p) => {
|
|
120
|
+
const persistKey = parsePersistKey(p.key, context.store.$id);
|
|
121
|
+
return {
|
|
122
|
+
key: (options.key ? options.key : (x) => x)(persistKey),
|
|
123
|
+
debug: p.debug ?? options.debug ?? false,
|
|
124
|
+
serializer: p.serializer ?? options.serializer ?? {
|
|
125
|
+
serialize: (data) => JSON.stringify(data),
|
|
126
|
+
deserialize: (data) => JSON.parse(data)
|
|
127
|
+
},
|
|
128
|
+
storage: p.storage ?? options.storage ?? window.localStorage,
|
|
129
|
+
beforeHydrate: p.beforeHydrate ?? options.beforeHydrate,
|
|
130
|
+
afterHydrate: p.afterHydrate ?? options.afterHydrate,
|
|
131
|
+
pick: p.pick,
|
|
132
|
+
omit: p.omit
|
|
133
|
+
};
|
|
134
|
+
}, options.auto ?? false);
|
|
135
|
+
};
|
|
243
136
|
}
|
|
244
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Pinia plugin to persist stores.
|
|
139
|
+
* @see https://codeberg.org/praz/pinia-plugin-persistedstate
|
|
140
|
+
*/
|
|
141
|
+
var src_default = createPersistedState();
|
|
245
142
|
|
|
246
143
|
const piniaInstance = createPinia();
|
|
247
|
-
piniaInstance.use(
|
|
144
|
+
piniaInstance.use(src_default);
|
|
248
145
|
|
|
249
|
-
const version$1 = "2.11.
|
|
146
|
+
const version$1 = "2.11.7";
|
|
250
147
|
|
|
251
148
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
252
149
|
|
|
@@ -6936,6 +6833,20 @@ function useWindowSize(options = {}) {
|
|
|
6936
6833
|
return { width, height };
|
|
6937
6834
|
}
|
|
6938
6835
|
|
|
6836
|
+
class ElementPlusError extends Error {
|
|
6837
|
+
constructor(m) {
|
|
6838
|
+
super(m);
|
|
6839
|
+
this.name = "ElementPlusError";
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6842
|
+
function throwError(scope, m) {
|
|
6843
|
+
throw new ElementPlusError(`[${scope}] ${m}`);
|
|
6844
|
+
}
|
|
6845
|
+
function debugWarn(scope, message) {
|
|
6846
|
+
const error = isString$4(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
6847
|
+
console.warn(error);
|
|
6848
|
+
}
|
|
6849
|
+
|
|
6939
6850
|
const initial = {
|
|
6940
6851
|
current: 0
|
|
6941
6852
|
};
|
|
@@ -6956,7 +6867,10 @@ const useZIndex$1 = (zIndexOverrides) => {
|
|
|
6956
6867
|
zIndex$1.value = increasingInjection.current;
|
|
6957
6868
|
return currentZIndex.value;
|
|
6958
6869
|
};
|
|
6959
|
-
if (!isClient && !inject(ZINDEX_INJECTION_KEY))
|
|
6870
|
+
if (!isClient && !inject(ZINDEX_INJECTION_KEY)) {
|
|
6871
|
+
debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
6872
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
6873
|
+
}
|
|
6960
6874
|
return {
|
|
6961
6875
|
initialZIndex,
|
|
6962
6876
|
currentZIndex,
|
|
@@ -6978,7 +6892,10 @@ var English = {
|
|
|
6978
6892
|
alphaLabel: "pick alpha value",
|
|
6979
6893
|
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
6980
6894
|
hueLabel: "pick hue value",
|
|
6981
|
-
hueDescription: "hue {hue}, current color is {color}"
|
|
6895
|
+
hueDescription: "hue {hue}, current color is {color}",
|
|
6896
|
+
svLabel: "pick saturation and brightness value",
|
|
6897
|
+
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
6898
|
+
predefineDescription: "select {value} as the color"
|
|
6982
6899
|
},
|
|
6983
6900
|
datepicker: {
|
|
6984
6901
|
now: "Now",
|
|
@@ -7223,6 +7140,7 @@ const useGlobalSize = () => {
|
|
|
7223
7140
|
};
|
|
7224
7141
|
|
|
7225
7142
|
const emptyValuesContextKey = Symbol("emptyValuesContextKey");
|
|
7143
|
+
const SCOPE$9 = "use-empty-values";
|
|
7226
7144
|
const DEFAULT_EMPTY_VALUES = ["", void 0, null];
|
|
7227
7145
|
const DEFAULT_VALUE_ON_CLEAR = void 0;
|
|
7228
7146
|
const useEmptyValuesProps = buildProps({
|
|
@@ -7270,7 +7188,9 @@ const useEmptyValues = (props, defaultValue) => {
|
|
|
7270
7188
|
}
|
|
7271
7189
|
return result;
|
|
7272
7190
|
};
|
|
7273
|
-
if (!isEmptyValue(valueOnClear.value))
|
|
7191
|
+
if (!isEmptyValue(valueOnClear.value)) {
|
|
7192
|
+
debugWarn(SCOPE$9, "value-on-clear should be a value of empty-values");
|
|
7193
|
+
}
|
|
7274
7194
|
return {
|
|
7275
7195
|
emptyValues,
|
|
7276
7196
|
valueOnClear,
|
|
@@ -7335,6 +7255,7 @@ const provideGlobalConfig = (config, app, global = false) => {
|
|
|
7335
7255
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
7336
7256
|
const provideFn = (_a = app == null ? void 0 : app.provide) != null ? _a : inSetup ? provide : void 0;
|
|
7337
7257
|
if (!provideFn) {
|
|
7258
|
+
debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
7338
7259
|
return;
|
|
7339
7260
|
}
|
|
7340
7261
|
const context = computed(() => {
|
|
@@ -7431,6 +7352,7 @@ function easeInOutCubic(t, b, c, d) {
|
|
|
7431
7352
|
const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
|
|
7432
7353
|
const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
|
|
7433
7354
|
|
|
7355
|
+
const SCOPE$8 = "utils/dom/style";
|
|
7434
7356
|
const classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
|
|
7435
7357
|
const hasClass = (el, cls) => {
|
|
7436
7358
|
if (!el || !cls)
|
|
@@ -7484,6 +7406,7 @@ function addUnit(value, defaultUnit = "px") {
|
|
|
7484
7406
|
} else if (isString$4(value)) {
|
|
7485
7407
|
return value;
|
|
7486
7408
|
}
|
|
7409
|
+
debugWarn(SCOPE$8, "binding value must be a string or number");
|
|
7487
7410
|
}
|
|
7488
7411
|
|
|
7489
7412
|
const isScroll = (el, isVertical) => {
|
|
@@ -7593,24 +7516,12 @@ const getScrollTop = (container) => {
|
|
|
7593
7516
|
return container.scrollTop;
|
|
7594
7517
|
};
|
|
7595
7518
|
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
this.name = "ElementPlusError";
|
|
7600
|
-
}
|
|
7601
|
-
}
|
|
7602
|
-
function throwError(scope, m) {
|
|
7603
|
-
throw new ElementPlusError(`[${scope}] ${m}`);
|
|
7604
|
-
}
|
|
7605
|
-
function debugWarn(scope, message) {
|
|
7606
|
-
}
|
|
7607
|
-
|
|
7608
|
-
const COMPONENT_NAME$o = "ElAffix";
|
|
7609
|
-
const __default__$1W = defineComponent({
|
|
7610
|
-
name: COMPONENT_NAME$o
|
|
7519
|
+
const COMPONENT_NAME$p = "ElAffix";
|
|
7520
|
+
const __default__$1Y = defineComponent({
|
|
7521
|
+
name: COMPONENT_NAME$p
|
|
7611
7522
|
});
|
|
7612
7523
|
const _sfc_main$4p = /* @__PURE__ */ defineComponent({
|
|
7613
|
-
...__default__$
|
|
7524
|
+
...__default__$1Y,
|
|
7614
7525
|
props: affixProps,
|
|
7615
7526
|
emits: affixEmits,
|
|
7616
7527
|
setup(__props, { expose, emit }) {
|
|
@@ -7696,7 +7607,7 @@ const _sfc_main$4p = /* @__PURE__ */ defineComponent({
|
|
|
7696
7607
|
if (props.target) {
|
|
7697
7608
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
7698
7609
|
if (!target.value)
|
|
7699
|
-
throwError(COMPONENT_NAME$
|
|
7610
|
+
throwError(COMPONENT_NAME$p, `Target does not exist: ${props.target}`);
|
|
7700
7611
|
} else {
|
|
7701
7612
|
target.value = document.documentElement;
|
|
7702
7613
|
}
|
|
@@ -7770,12 +7681,12 @@ const iconProps = buildProps({
|
|
|
7770
7681
|
}
|
|
7771
7682
|
});
|
|
7772
7683
|
|
|
7773
|
-
const __default__$
|
|
7684
|
+
const __default__$1X = defineComponent({
|
|
7774
7685
|
name: "ElIcon",
|
|
7775
7686
|
inheritAttrs: false
|
|
7776
7687
|
});
|
|
7777
7688
|
const _sfc_main$4o = /* @__PURE__ */ defineComponent({
|
|
7778
|
-
...__default__$
|
|
7689
|
+
...__default__$1X,
|
|
7779
7690
|
props: iconProps,
|
|
7780
7691
|
setup(__props) {
|
|
7781
7692
|
const props = __props;
|
|
@@ -8589,11 +8500,11 @@ const alertEmits = {
|
|
|
8589
8500
|
close: (evt) => isUndefined$1(evt) || evt instanceof Event
|
|
8590
8501
|
};
|
|
8591
8502
|
|
|
8592
|
-
const __default__$
|
|
8503
|
+
const __default__$1W = defineComponent({
|
|
8593
8504
|
name: "ElAlert"
|
|
8594
8505
|
});
|
|
8595
8506
|
const _sfc_main$4n = /* @__PURE__ */ defineComponent({
|
|
8596
|
-
...__default__$
|
|
8507
|
+
...__default__$1W,
|
|
8597
8508
|
props: alertProps,
|
|
8598
8509
|
emits: alertEmits,
|
|
8599
8510
|
setup(__props, { emit }) {
|
|
@@ -8634,7 +8545,7 @@ const _sfc_main$4n = /* @__PURE__ */ defineComponent({
|
|
|
8634
8545
|
}, [
|
|
8635
8546
|
_ctx.showIcon && (_ctx.$slots.icon || unref(iconComponent)) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
8636
8547
|
key: 0,
|
|
8637
|
-
class: normalizeClass([unref(ns).e("icon"),
|
|
8548
|
+
class: normalizeClass([unref(ns).e("icon"), unref(ns).is("big", unref(hasDesc))])
|
|
8638
8549
|
}, {
|
|
8639
8550
|
default: withCtx(() => [
|
|
8640
8551
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
@@ -8916,6 +8827,7 @@ const useAttrs = (params = {}) => {
|
|
|
8916
8827
|
});
|
|
8917
8828
|
const instance = getCurrentInstance();
|
|
8918
8829
|
if (!instance) {
|
|
8830
|
+
debugWarn("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function");
|
|
8919
8831
|
return computed(() => ({}));
|
|
8920
8832
|
}
|
|
8921
8833
|
return computed(() => {
|
|
@@ -8934,6 +8846,13 @@ const useIdInjection = () => {
|
|
|
8934
8846
|
};
|
|
8935
8847
|
const useId = (deterministicId) => {
|
|
8936
8848
|
const idInjection = useIdInjection();
|
|
8849
|
+
if (!isClient && idInjection === defaultIdInjection) {
|
|
8850
|
+
debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
8851
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
8852
|
+
prefix: number,
|
|
8853
|
+
current: number,
|
|
8854
|
+
})`);
|
|
8855
|
+
}
|
|
8937
8856
|
const namespace = useGetDerivedNamespace();
|
|
8938
8857
|
const idRef = computedEager(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
8939
8858
|
return idRef;
|
|
@@ -9242,13 +9161,13 @@ function useCursor(input) {
|
|
|
9242
9161
|
return [recordCursor, setCursor];
|
|
9243
9162
|
}
|
|
9244
9163
|
|
|
9245
|
-
const COMPONENT_NAME$
|
|
9246
|
-
const __default__$
|
|
9247
|
-
name: COMPONENT_NAME$
|
|
9164
|
+
const COMPONENT_NAME$o = "ElInput";
|
|
9165
|
+
const __default__$1V = defineComponent({
|
|
9166
|
+
name: COMPONENT_NAME$o,
|
|
9248
9167
|
inheritAttrs: false
|
|
9249
9168
|
});
|
|
9250
9169
|
const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
9251
|
-
...__default__$
|
|
9170
|
+
...__default__$1V,
|
|
9252
9171
|
props: inputProps,
|
|
9253
9172
|
emits: inputEmits,
|
|
9254
9173
|
setup(__props, { expose, emit }) {
|
|
@@ -9294,7 +9213,7 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
9294
9213
|
afterBlur() {
|
|
9295
9214
|
var _a;
|
|
9296
9215
|
if (props.validateEvent) {
|
|
9297
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
9216
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(err));
|
|
9298
9217
|
}
|
|
9299
9218
|
}
|
|
9300
9219
|
});
|
|
@@ -9430,9 +9349,7 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
9430
9349
|
handleCompositionEnd
|
|
9431
9350
|
} = useComposition({ emit, afterComposition: handleInput });
|
|
9432
9351
|
const handlePasswordVisible = () => {
|
|
9433
|
-
recordCursor();
|
|
9434
9352
|
passwordVisible.value = !passwordVisible.value;
|
|
9435
|
-
setTimeout(setCursor);
|
|
9436
9353
|
};
|
|
9437
9354
|
const focus = () => {
|
|
9438
9355
|
var _a;
|
|
@@ -9467,7 +9384,7 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
9467
9384
|
var _a;
|
|
9468
9385
|
nextTick(() => resizeTextarea());
|
|
9469
9386
|
if (props.validateEvent) {
|
|
9470
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
9387
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
|
9471
9388
|
}
|
|
9472
9389
|
});
|
|
9473
9390
|
watch(nativeInputValue, (newValue) => {
|
|
@@ -9493,7 +9410,9 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
9493
9410
|
resizeTextarea();
|
|
9494
9411
|
});
|
|
9495
9412
|
onMounted(() => {
|
|
9496
|
-
if (!props.formatter && props.parser)
|
|
9413
|
+
if (!props.formatter && props.parser) {
|
|
9414
|
+
debugWarn(COMPONENT_NAME$o, "If you set the parser, you also need to set the formatter.");
|
|
9415
|
+
}
|
|
9497
9416
|
setNativeInputValue();
|
|
9498
9417
|
nextTick(resizeTextarea);
|
|
9499
9418
|
});
|
|
@@ -9619,13 +9538,15 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
9619
9538
|
unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
9620
9539
|
key: 2,
|
|
9621
9540
|
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
|
|
9622
|
-
onClick: handlePasswordVisible
|
|
9541
|
+
onClick: handlePasswordVisible,
|
|
9542
|
+
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
|
9543
|
+
onMouseup: withModifiers(unref(NOOP), ["prevent"])
|
|
9623
9544
|
}, {
|
|
9624
9545
|
default: withCtx(() => [
|
|
9625
9546
|
(openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
|
|
9626
9547
|
]),
|
|
9627
9548
|
_: 1
|
|
9628
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
9549
|
+
}, 8, ["class", "onMousedown", "onMouseup"])) : createCommentVNode("v-if", true),
|
|
9629
9550
|
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
9630
9551
|
key: 3,
|
|
9631
9552
|
class: normalizeClass([
|
|
@@ -9752,7 +9673,7 @@ const thumbProps = buildProps({
|
|
|
9752
9673
|
always: Boolean
|
|
9753
9674
|
});
|
|
9754
9675
|
|
|
9755
|
-
const COMPONENT_NAME$
|
|
9676
|
+
const COMPONENT_NAME$n = "Thumb";
|
|
9756
9677
|
const _sfc_main$4l = /* @__PURE__ */ defineComponent({
|
|
9757
9678
|
__name: "thumb",
|
|
9758
9679
|
props: thumbProps,
|
|
@@ -9761,7 +9682,7 @@ const _sfc_main$4l = /* @__PURE__ */ defineComponent({
|
|
|
9761
9682
|
const scrollbar = inject(scrollbarContextKey);
|
|
9762
9683
|
const ns = useNamespace("scrollbar");
|
|
9763
9684
|
if (!scrollbar)
|
|
9764
|
-
throwError(COMPONENT_NAME$
|
|
9685
|
+
throwError(COMPONENT_NAME$n, "can not inject scrollbar context");
|
|
9765
9686
|
const instance = ref();
|
|
9766
9687
|
const thumb = ref();
|
|
9767
9688
|
const thumbState = ref({});
|
|
@@ -10011,12 +9932,12 @@ const scrollbarEmits = {
|
|
|
10011
9932
|
}) => [scrollTop, scrollLeft].every(isNumber$2)
|
|
10012
9933
|
};
|
|
10013
9934
|
|
|
10014
|
-
const COMPONENT_NAME$
|
|
10015
|
-
const __default__$
|
|
10016
|
-
name: COMPONENT_NAME$
|
|
9935
|
+
const COMPONENT_NAME$m = "ElScrollbar";
|
|
9936
|
+
const __default__$1U = defineComponent({
|
|
9937
|
+
name: COMPONENT_NAME$m
|
|
10017
9938
|
});
|
|
10018
9939
|
const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
10019
|
-
...__default__$
|
|
9940
|
+
...__default__$1U,
|
|
10020
9941
|
props: scrollbarProps,
|
|
10021
9942
|
emits: scrollbarEmits,
|
|
10022
9943
|
setup(__props, { expose, emit }) {
|
|
@@ -10122,12 +10043,14 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
|
|
|
10122
10043
|
}
|
|
10123
10044
|
const setScrollTop = (value) => {
|
|
10124
10045
|
if (!isNumber$2(value)) {
|
|
10046
|
+
debugWarn(COMPONENT_NAME$m, "value must be a number");
|
|
10125
10047
|
return;
|
|
10126
10048
|
}
|
|
10127
10049
|
wrapRef.value.scrollTop = value;
|
|
10128
10050
|
};
|
|
10129
10051
|
const setScrollLeft = (value) => {
|
|
10130
10052
|
if (!isNumber$2(value)) {
|
|
10053
|
+
debugWarn(COMPONENT_NAME$m, "value must be a number");
|
|
10131
10054
|
return;
|
|
10132
10055
|
}
|
|
10133
10056
|
wrapRef.value.scrollLeft = value;
|
|
@@ -10249,12 +10172,12 @@ const popperProps = buildProps({
|
|
|
10249
10172
|
}
|
|
10250
10173
|
});
|
|
10251
10174
|
|
|
10252
|
-
const __default__$
|
|
10175
|
+
const __default__$1T = defineComponent({
|
|
10253
10176
|
name: "ElPopper",
|
|
10254
10177
|
inheritAttrs: false
|
|
10255
10178
|
});
|
|
10256
10179
|
const _sfc_main$4i = /* @__PURE__ */ defineComponent({
|
|
10257
|
-
...__default__$
|
|
10180
|
+
...__default__$1T,
|
|
10258
10181
|
props: popperProps,
|
|
10259
10182
|
setup(__props, { expose }) {
|
|
10260
10183
|
const props = __props;
|
|
@@ -10279,12 +10202,12 @@ const _sfc_main$4i = /* @__PURE__ */ defineComponent({
|
|
|
10279
10202
|
});
|
|
10280
10203
|
var Popper = /* @__PURE__ */ _export_sfc$2(_sfc_main$4i, [["__file", "popper.vue"]]);
|
|
10281
10204
|
|
|
10282
|
-
const __default__$
|
|
10205
|
+
const __default__$1S = defineComponent({
|
|
10283
10206
|
name: "ElPopperArrow",
|
|
10284
10207
|
inheritAttrs: false
|
|
10285
10208
|
});
|
|
10286
10209
|
const _sfc_main$4h = /* @__PURE__ */ defineComponent({
|
|
10287
|
-
...__default__$
|
|
10210
|
+
...__default__$1S,
|
|
10288
10211
|
setup(__props, { expose }) {
|
|
10289
10212
|
const ns = useNamespace("popper");
|
|
10290
10213
|
const { arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0);
|
|
@@ -10377,8 +10300,12 @@ const OnlyChild = defineComponent({
|
|
|
10377
10300
|
return null;
|
|
10378
10301
|
const [firstLegitNode, length] = findFirstLegitChild(defaultSlot);
|
|
10379
10302
|
if (!firstLegitNode) {
|
|
10303
|
+
debugWarn(NAME, "no valid child node found");
|
|
10380
10304
|
return null;
|
|
10381
10305
|
}
|
|
10306
|
+
if (length > 1) {
|
|
10307
|
+
debugWarn(NAME, "requires exact only one valid child.");
|
|
10308
|
+
}
|
|
10382
10309
|
return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
|
|
10383
10310
|
};
|
|
10384
10311
|
}
|
|
@@ -10413,12 +10340,12 @@ function wrapTextContent(s) {
|
|
|
10413
10340
|
}, [s]);
|
|
10414
10341
|
}
|
|
10415
10342
|
|
|
10416
|
-
const __default__$
|
|
10343
|
+
const __default__$1R = defineComponent({
|
|
10417
10344
|
name: "ElPopperTrigger",
|
|
10418
10345
|
inheritAttrs: false
|
|
10419
10346
|
});
|
|
10420
10347
|
const _sfc_main$4g = /* @__PURE__ */ defineComponent({
|
|
10421
|
-
...__default__$
|
|
10348
|
+
...__default__$1R,
|
|
10422
10349
|
props: popperTriggerProps,
|
|
10423
10350
|
setup(__props, { expose }) {
|
|
10424
10351
|
const props = __props;
|
|
@@ -11003,10 +10930,10 @@ const _sfc_main$4f = defineComponent({
|
|
|
11003
10930
|
};
|
|
11004
10931
|
}
|
|
11005
10932
|
});
|
|
11006
|
-
function _sfc_render$
|
|
10933
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11007
10934
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
11008
10935
|
}
|
|
11009
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc$2(_sfc_main$4f, [["render", _sfc_render$
|
|
10936
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc$2(_sfc_main$4f, [["render", _sfc_render$m], ["__file", "focus-trap.vue"]]);
|
|
11010
10937
|
|
|
11011
10938
|
var E$1="top",R="bottom",W="right",P$2="left",me="auto",G=[E$1,R,W,P$2],U$1="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(t,e){return t.concat([e+"-"+U$1,e+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(t,e){return t.concat([e,e+"-"+U$1,e+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Q(t){var e=H(t).Element;return t instanceof e||t instanceof Element}function B(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pe(t){if(typeof ShadowRoot=="undefined")return false;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Mt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!B(i)||!C(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===false?i.removeAttribute(a):i.setAttribute(a,s===true?"":s);}));});}function Rt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!B(o)||!C(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(f){o.removeAttribute(f);}));});}}var Ae={name:"applyStyles",enabled:true,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(t){return t.split("-")[0]}var X$1=Math.max,ve=Math.min,Z$1=Math.round;function ee(t,e){e===void 0&&(e=false);var n=t.getBoundingClientRect(),r=1,o=1;if(B(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Z$1(n.width)/a||1),i>0&&(o=Z$1(n.height)/i||1);}return {width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ke(t){var e=ee(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return true;if(n&&Pe(n)){var r=e;do{if(r&&t.isSameNode(r))return true;r=r.parentNode||r.host;}while(r)}return false}function N$1(t){return H(t).getComputedStyle(t)}function Wt(t){return ["table","td","th"].indexOf(C(t))>=0}function I$1(t){return ((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||I$1(t)}function at(t){return !B(t)||N$1(t).position==="fixed"?null:t.offsetParent}function Bt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B(t)){var r=N$1(t);if(r.position==="fixed")return null}var o=ge(t);for(Pe(o)&&(o=o.host);B(o)&&["html","body"].indexOf(C(o))<0;){var i=N$1(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode;}return null}function se(t){for(var e=H(t),n=at(t);n&&Wt(n)&&N$1(n).position==="static";)n=at(n);return n&&(C(n)==="html"||C(n)==="body"&&N$1(n).position==="static")?e:n||Bt(t)||e}function Le(t){return ["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,e,n){return X$1(t,ve(e,n))}function St(t,e,n){var r=fe(t,e,n);return r>n?n:r}function st(){return {top:0,right:0,bottom:0,left:0}}function ft(t){return Object.assign({},st(),t)}function ct(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Tt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ft(typeof t!="number"?t:ct(t,G))};function Ht(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),f=Le(s),c=[P$2,W].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var m=Tt(o.padding,n),v=ke(i),l=f==="y"?E$1:P$2,h=f==="y"?R:W,p=n.rects.reference[u]+n.rects.reference[f]-a[f]-n.rects.popper[u],g=a[f]-n.rects.reference[f],x=se(i),y=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,$=p/2-g/2,d=m[l],b=y-v[u]-m[h],w=y/2-v[u]/2+$,O=fe(d,w,b),j=f;n.modifiersData[r]=(e={},e[j]=O,e.centerOffset=O-w,e);}}function Ct(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!it(e.elements.popper,o)||(e.elements.arrow=o));}var pt={name:"arrow",enabled:true,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return {x:Z$1(e*o)/o||0,y:Z$1(n*o)/o||0}}function ut(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,m=t.isFixed,v=a.x,l=v===void 0?0:v,h=a.y,p=h===void 0?0:h,g=typeof u=="function"?u({x:l,y:p}):{x:l,y:p};l=g.x,p=g.y;var x=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),$=P$2,d=E$1,b=window;if(c){var w=se(n),O="clientHeight",j="clientWidth";if(w===H(n)&&(w=I$1(n),N$1(w).position!=="static"&&s==="absolute"&&(O="scrollHeight",j="scrollWidth")),w=w,o===E$1||(o===P$2||o===W)&&i===J){d=R;var A=m&&w===b&&b.visualViewport?b.visualViewport.height:w[O];p-=A-r.height,p*=f?1:-1;}if(o===P$2||(o===E$1||o===R)&&i===J){$=W;var k=m&&w===b&&b.visualViewport?b.visualViewport.width:w[j];l-=k-r.width,l*=f?1:-1;}}var D=Object.assign({position:s},c&&qt),S=u===true?Vt({x:l,y:p}):{x:l,y:p};if(l=S.x,p=S.y,f){var L;return Object.assign({},D,(L={},L[d]=y?"0":"",L[$]=x?"0":"",L.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",L))}return Object.assign({},D,(e={},e[d]=y?p+"px":"",e[$]=x?l+"px":"",e.transform="",e))}function Nt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?true:r,i=n.adaptive,a=i===void 0?true:i,s=n.roundOffsets,f=s===void 0?true:s,c={placement:q(e.placement),variation:te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ut(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ut(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});}var Me={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:true};function It(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?true:o,a=r.resize,s=a===void 0?true:a,f=H(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ye);}),s&&f.addEventListener("resize",n.update,ye),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ye);}),s&&f.removeEventListener("resize",n.update,ye);}}var Re={name:"eventListeners",enabled:true,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e]})}var zt={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(e){return zt[e]})}function We(t){var e=H(t),n=e.pageXOffset,r=e.pageYOffset;return {scrollLeft:n,scrollTop:r}}function Be(t){return ee(I$1(t)).left+We(t).scrollLeft}function Ft(t){var e=H(t),n=I$1(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Be(t),y:s}}function Ut(t){var e,n=I$1(t),r=We(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=X$1(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=X$1(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Be(t),f=-r.scrollTop;return N$1(o||n).direction==="rtl"&&(s+=X$1(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}function Se(t){var e=N$1(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return /auto|scroll|overlay|hidden/.test(n+o+r)}function dt(t){return ["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se(t)?t:dt(ge(t))}function ce(t,e){var n;e===void 0&&(e=[]);var r=dt(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=H(r),a=o?[i].concat(i.visualViewport||[],Se(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(ce(ge(a)))}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t){var e=ee(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ht(t,e){return e===je?Te(Ft(t)):Q(e)?Xt(e):Te(Ut(I$1(t)))}function Yt(t){var e=ce(ge(t)),n=["absolute","fixed"].indexOf(N$1(t).position)>=0,r=n&&B(t)?se(t):t;return Q(r)?e.filter(function(o){return Q(o)&&it(o,r)&&C(o)!=="body"}):[]}function Gt(t,e,n){var r=e==="clippingParents"?Yt(t):[].concat(e),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,f){var c=ht(t,f);return s.top=X$1(c.top,s.top),s.right=ve(c.right,s.right),s.bottom=ve(c.bottom,s.bottom),s.left=X$1(c.left,s.left),s},ht(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mt(t){var e=t.reference,n=t.element,r=t.placement,o=r?q(r):null,i=r?te(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(o){case E$1:f={x:a,y:e.y-n.height};break;case R:f={x:a,y:e.y+e.height};break;case W:f={x:e.x+e.width,y:s};break;case P$2:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y};}var c=o?Le(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case U$1:f[c]=f[c]-(e[u]/2-n[u]/2);break;case J:f[c]=f[c]+(e[u]/2-n[u]/2);break}}return f}function ne(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.boundary,a=i===void 0?Xe:i,s=n.rootBoundary,f=s===void 0?je:s,c=n.elementContext,u=c===void 0?K:c,m=n.altBoundary,v=m===void 0?false:m,l=n.padding,h=l===void 0?0:l,p=ft(typeof h!="number"?h:ct(h,G)),g=u===K?Ye:K,x=t.rects.popper,y=t.elements[v?g:u],$=Gt(Q(y)?y:y.contextElement||I$1(t.elements.popper),a,f),d=ee(t.elements.reference),b=mt({reference:d,element:x,placement:o}),w=Te(Object.assign({},x,b)),O=u===K?w:d,j={top:$.top-O.top+p.top,bottom:O.bottom-$.bottom+p.bottom,left:$.left-O.left+p.left,right:O.right-$.right+p.right},A=t.modifiersData.offset;if(u===K&&A){var k=A[o];Object.keys(j).forEach(function(D){var S=[W,R].indexOf(D)>=0?1:-1,L=[E$1,R].indexOf(D)>=0?"y":"x";j[D]+=k[L]*S;});}return j}function Jt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?Ee:f,u=te(r),m=u?s?De:De.filter(function(h){return te(h)===u}):G,v=m.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=m);var l=v.reduce(function(h,p){return h[p]=ne(t,{placement:p,boundary:o,rootBoundary:i,padding:a})[q(p)],h},{});return Object.keys(l).sort(function(h,p){return l[h]-l[p]})}function Kt(t){if(q(t)===me)return [];var e=be(t);return [lt(t),e,lt(e)]}function Qt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?true:o,a=n.altAxis,s=a===void 0?true:a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,m=n.rootBoundary,v=n.altBoundary,l=n.flipVariations,h=l===void 0?true:l,p=n.allowedAutoPlacements,g=e.options.placement,x=q(g),y=x===g,$=f||(y||!h?[be(g)]:Kt(g)),d=[g].concat($).reduce(function(z,V){return z.concat(q(V)===me?Jt(e,{placement:V,boundary:u,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:p}):V)},[]),b=e.rects.reference,w=e.rects.popper,O=new Map,j=true,A=d[0],k=0;k<d.length;k++){var D=d[k],S=q(D),L=te(D)===U$1,re=[E$1,R].indexOf(S)>=0,oe=re?"width":"height",M=ne(e,{placement:D,boundary:u,rootBoundary:m,altBoundary:v,padding:c}),T=re?L?W:P$2:L?R:E$1;b[oe]>w[oe]&&(T=be(T));var pe=be(T),_=[];if(i&&_.push(M[S]<=0),s&&_.push(M[T]<=0,M[pe]<=0),_.every(function(z){return z})){A=D,j=false;break}O.set(D,_);}if(j)for(var ue=h?3:1,xe=function(z){var V=d.find(function(de){var ae=O.get(de);if(ae)return ae.slice(0,z).every(function(Y){return Y})});if(V)return A=V,"break"},ie=ue;ie>0;ie--){var le=xe(ie);if(le==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=true,e.placement=A,e.reset=true);}}var vt={name:"flip",enabled:true,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:false}};function gt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function yt(t){return [E$1,W,R,P$2].some(function(e){return t[e]>=0})}function Zt(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ne(e,{elementContext:"reference"}),s=ne(e,{altBoundary:true}),f=gt(a,r),c=gt(s,o,i),u=yt(f),m=yt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m});}var bt={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1(t,e,n){var r=q(t),o=[P$2,E$1].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P$2,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function tn(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ee.reduce(function(u,m){return u[m]=en$1(m,e.rects,i),u},{}),s=a[e.placement],f=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a;}var wt={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:tn};function nn(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement});}var He={name:"popperOffsets",enabled:true,phase:"read",fn:nn,data:{}};function rn(t){return t==="x"?"y":"x"}function on$1(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?true:o,a=n.altAxis,s=a===void 0?false:a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,m=n.padding,v=n.tether,l=v===void 0?true:v,h=n.tetherOffset,p=h===void 0?0:h,g=ne(e,{boundary:f,rootBoundary:c,padding:m,altBoundary:u}),x=q(e.placement),y=te(e.placement),$=!y,d=Le(x),b=rn(d),w=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,A=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(w){if(i){var L,re=d==="y"?E$1:P$2,oe=d==="y"?R:W,M=d==="y"?"height":"width",T=w[d],pe=T+g[re],_=T-g[oe],ue=l?-j[M]/2:0,xe=y===U$1?O[M]:j[M],ie=y===U$1?-j[M]:-O[M],le=e.elements.arrow,z=l&&le?ke(le):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:st(),de=V[re],ae=V[oe],Y=fe(0,O[M],z[M]),jt=$?O[M]/2-ue-Y-de-k.mainAxis:xe-Y-de-k.mainAxis,Dt=$?-O[M]/2+ue+Y+ae+k.mainAxis:ie+Y+ae+k.mainAxis,Oe=e.elements.arrow&&se(e.elements.arrow),Et=Oe?d==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ce=(L=D==null?void 0:D[d])!=null?L:0,Pt=T+jt-Ce-Et,At=T+Dt-Ce,qe=fe(l?ve(pe,Pt):pe,T,l?X$1(_,At):_);w[d]=qe,S[d]=qe-T;}if(s){var Ve,kt=d==="x"?E$1:P$2,Lt=d==="x"?R:W,F=w[b],he=b==="y"?"height":"width",Ne=F+g[kt],Ie=F-g[Lt],$e=[E$1,P$2].indexOf(x)!==-1,_e=(Ve=D==null?void 0:D[b])!=null?Ve:0,ze=$e?Ne:F-O[he]-j[he]-_e+k.altAxis,Fe=$e?F+O[he]+j[he]-_e-k.altAxis:Ie,Ue=l&&$e?St(ze,F,Fe):fe(l?ze:Ne,F,l?Fe:Ie);w[b]=Ue,S[b]=Ue-F;}e.modifiersData[r]=S;}}var xt={name:"preventOverflow",enabled:true,phase:"main",fn:on$1,requiresIfExists:["offset"]};function an(t){return {scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H(t)||!B(t)?We(t):an(t)}function fn(t){var e=t.getBoundingClientRect(),n=Z$1(e.width)/t.offsetWidth||1,r=Z$1(e.height)/t.offsetHeight||1;return n!==1||r!==1}function cn(t,e,n){n===void 0&&(n=false);var r=B(e),o=B(e)&&fn(e),i=I$1(e),a=ee(t,o),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return (r||!r&&!n)&&((C(e)!=="body"||Se(i))&&(s=sn(e)),B(e)?(f=ee(e,true),f.x+=e.clientLeft,f.y+=e.clientTop):i&&(f.x=Be(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function pn(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i);});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&o(f);}}),r.push(i);}return t.forEach(function(i){n.has(i.name)||o(i);}),r}function un(t){var e=pn(t);return ot.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function ln(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t());});})),e}}function dn(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return !e.some(function(r){return !(r&&typeof r.getBoundingClientRect=="function")})}function we(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Ot:o;return function(a,s,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],m=false,v={state:c,setOptions:function(p){var g=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},i,c.options,g),c.scrollParents={reference:Q(a)?ce(a):a.contextElement?ce(a.contextElement):[],popper:ce(s)};var x=un(dn([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(y){return y.enabled}),l(),v.update()},forceUpdate:function(){if(!m){var p=c.elements,g=p.reference,x=p.popper;if($t(g,x)){c.rects={reference:cn(g,se(x),c.options.strategy==="fixed"),popper:ke(x)},c.reset=false,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===true){c.reset=false,y=-1;continue}var $=c.orderedModifiers[y],d=$.fn,b=$.options,w=b===void 0?{}:b,O=$.name;typeof d=="function"&&(c=d({state:c,options:w,name:O,instance:v})||c);}}}},update:ln(function(){return new Promise(function(p){v.forceUpdate(),p(c);})}),destroy:function(){h(),m=true;}};if(!$t(a,s))return v;v.setOptions(f).then(function(p){!m&&f.onFirstUpdate&&f.onFirstUpdate(p);});function l(){c.orderedModifiers.forEach(function(p){var g=p.name,x=p.options,y=x===void 0?{}:x,$=p.effect;if(typeof $=="function"){var d=$({state:c,name:g,instance:v,options:y}),b=function(){};u.push(d||b);}});}function h(){u.forEach(function(p){return p()}),u=[];}return v}}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt,xt,pt,bt],yn=we({defaultModifiers:gn});
|
|
11012
10939
|
|
|
@@ -11390,11 +11317,11 @@ const usePopperContentDOM = (props, {
|
|
|
11390
11317
|
};
|
|
11391
11318
|
};
|
|
11392
11319
|
|
|
11393
|
-
const __default__$
|
|
11320
|
+
const __default__$1Q = defineComponent({
|
|
11394
11321
|
name: "ElPopperContent"
|
|
11395
11322
|
});
|
|
11396
11323
|
const _sfc_main$4e = /* @__PURE__ */ defineComponent({
|
|
11397
|
-
...__default__$
|
|
11324
|
+
...__default__$1Q,
|
|
11398
11325
|
props: popperContentProps,
|
|
11399
11326
|
emits: popperContentEmits,
|
|
11400
11327
|
setup(__props, { expose, emit }) {
|
|
@@ -11723,11 +11650,11 @@ const whenTrigger = (trigger, type, handler) => {
|
|
|
11723
11650
|
};
|
|
11724
11651
|
};
|
|
11725
11652
|
|
|
11726
|
-
const __default__$
|
|
11653
|
+
const __default__$1P = defineComponent({
|
|
11727
11654
|
name: "ElTooltipTrigger"
|
|
11728
11655
|
});
|
|
11729
11656
|
const _sfc_main$4d = /* @__PURE__ */ defineComponent({
|
|
11730
|
-
...__default__$
|
|
11657
|
+
...__default__$1P,
|
|
11731
11658
|
props: useTooltipTriggerProps,
|
|
11732
11659
|
setup(__props, { expose }) {
|
|
11733
11660
|
const props = __props;
|
|
@@ -11856,12 +11783,12 @@ const castArray = (arr) => {
|
|
|
11856
11783
|
return isArray$2(arr) ? arr : [arr];
|
|
11857
11784
|
};
|
|
11858
11785
|
|
|
11859
|
-
const __default__$
|
|
11786
|
+
const __default__$1O = defineComponent({
|
|
11860
11787
|
name: "ElTooltipContent",
|
|
11861
11788
|
inheritAttrs: false
|
|
11862
11789
|
});
|
|
11863
11790
|
const _sfc_main$4b = /* @__PURE__ */ defineComponent({
|
|
11864
|
-
...__default__$
|
|
11791
|
+
...__default__$1O,
|
|
11865
11792
|
props: useTooltipContentProps,
|
|
11866
11793
|
setup(__props, { expose }) {
|
|
11867
11794
|
const props = __props;
|
|
@@ -11918,12 +11845,12 @@ const _sfc_main$4b = /* @__PURE__ */ defineComponent({
|
|
|
11918
11845
|
return true;
|
|
11919
11846
|
};
|
|
11920
11847
|
const onContentEnter = composeEventHandlers(stopWhenControlled, () => {
|
|
11921
|
-
if (props.enterable && unref(trigger)
|
|
11848
|
+
if (props.enterable && isTriggerType(unref(trigger), "hover")) {
|
|
11922
11849
|
onOpen();
|
|
11923
11850
|
}
|
|
11924
11851
|
});
|
|
11925
11852
|
const onContentLeave = composeEventHandlers(stopWhenControlled, () => {
|
|
11926
|
-
if (unref(trigger)
|
|
11853
|
+
if (isTriggerType(unref(trigger), "hover")) {
|
|
11927
11854
|
onClose();
|
|
11928
11855
|
}
|
|
11929
11856
|
});
|
|
@@ -12041,11 +11968,11 @@ const _sfc_main$4b = /* @__PURE__ */ defineComponent({
|
|
|
12041
11968
|
});
|
|
12042
11969
|
var ElTooltipContent = /* @__PURE__ */ _export_sfc$2(_sfc_main$4b, [["__file", "content.vue"]]);
|
|
12043
11970
|
|
|
12044
|
-
const __default__$
|
|
11971
|
+
const __default__$1N = defineComponent({
|
|
12045
11972
|
name: "ElTooltip"
|
|
12046
11973
|
});
|
|
12047
11974
|
const _sfc_main$4a = /* @__PURE__ */ defineComponent({
|
|
12048
|
-
...__default__$
|
|
11975
|
+
...__default__$1N,
|
|
12049
11976
|
props: useTooltipProps,
|
|
12050
11977
|
emits: tooltipEmits,
|
|
12051
11978
|
setup(__props, { expose, emit }) {
|
|
@@ -12256,13 +12183,13 @@ const autocompleteEmits = {
|
|
|
12256
12183
|
select: (item) => isObject$3(item)
|
|
12257
12184
|
};
|
|
12258
12185
|
|
|
12259
|
-
const COMPONENT_NAME$
|
|
12260
|
-
const __default__$
|
|
12261
|
-
name: COMPONENT_NAME$
|
|
12186
|
+
const COMPONENT_NAME$l = "ElAutocomplete";
|
|
12187
|
+
const __default__$1M = defineComponent({
|
|
12188
|
+
name: COMPONENT_NAME$l,
|
|
12262
12189
|
inheritAttrs: false
|
|
12263
12190
|
});
|
|
12264
12191
|
const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
12265
|
-
...__default__$
|
|
12192
|
+
...__default__$1M,
|
|
12266
12193
|
props: autocompleteProps,
|
|
12267
12194
|
emits: autocompleteEmits,
|
|
12268
12195
|
setup(__props, { expose, emit }) {
|
|
@@ -12315,7 +12242,7 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
|
|
|
12315
12242
|
suggestions.value = suggestionList;
|
|
12316
12243
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
12317
12244
|
} else {
|
|
12318
|
-
throwError(COMPONENT_NAME$
|
|
12245
|
+
throwError(COMPONENT_NAME$l, "autocomplete suggestions must be an array");
|
|
12319
12246
|
}
|
|
12320
12247
|
};
|
|
12321
12248
|
loading.value = true;
|
|
@@ -12715,11 +12642,11 @@ const avatarEmits = {
|
|
|
12715
12642
|
error: (evt) => evt instanceof Event
|
|
12716
12643
|
};
|
|
12717
12644
|
|
|
12718
|
-
const __default__$
|
|
12645
|
+
const __default__$1L = defineComponent({
|
|
12719
12646
|
name: "ElAvatar"
|
|
12720
12647
|
});
|
|
12721
12648
|
const _sfc_main$48 = /* @__PURE__ */ defineComponent({
|
|
12722
|
-
...__default__$
|
|
12649
|
+
...__default__$1L,
|
|
12723
12650
|
props: avatarProps,
|
|
12724
12651
|
emits: avatarEmits,
|
|
12725
12652
|
setup(__props, { emit }) {
|
|
@@ -12833,18 +12760,18 @@ const useBackTop = (props, emit, componentName) => {
|
|
|
12833
12760
|
};
|
|
12834
12761
|
};
|
|
12835
12762
|
|
|
12836
|
-
const COMPONENT_NAME$
|
|
12837
|
-
const __default__$
|
|
12838
|
-
name: COMPONENT_NAME$
|
|
12763
|
+
const COMPONENT_NAME$k = "ElBacktop";
|
|
12764
|
+
const __default__$1K = defineComponent({
|
|
12765
|
+
name: COMPONENT_NAME$k
|
|
12839
12766
|
});
|
|
12840
12767
|
const _sfc_main$47 = /* @__PURE__ */ defineComponent({
|
|
12841
|
-
...__default__$
|
|
12768
|
+
...__default__$1K,
|
|
12842
12769
|
props: backtopProps,
|
|
12843
12770
|
emits: backtopEmits,
|
|
12844
12771
|
setup(__props, { emit }) {
|
|
12845
12772
|
const props = __props;
|
|
12846
12773
|
const ns = useNamespace("backtop");
|
|
12847
|
-
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$
|
|
12774
|
+
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$k);
|
|
12848
12775
|
const backTopStyle = computed(() => ({
|
|
12849
12776
|
right: `${props.right}px`,
|
|
12850
12777
|
bottom: `${props.bottom}px`
|
|
@@ -12914,11 +12841,11 @@ const badgeProps = buildProps({
|
|
|
12914
12841
|
}
|
|
12915
12842
|
});
|
|
12916
12843
|
|
|
12917
|
-
const __default__$
|
|
12844
|
+
const __default__$1J = defineComponent({
|
|
12918
12845
|
name: "ElBadge"
|
|
12919
12846
|
});
|
|
12920
12847
|
const _sfc_main$46 = /* @__PURE__ */ defineComponent({
|
|
12921
|
-
...__default__$
|
|
12848
|
+
...__default__$1J,
|
|
12922
12849
|
props: badgeProps,
|
|
12923
12850
|
setup(__props, { expose }) {
|
|
12924
12851
|
const props = __props;
|
|
@@ -12995,11 +12922,11 @@ const breadcrumbProps = buildProps({
|
|
|
12995
12922
|
}
|
|
12996
12923
|
});
|
|
12997
12924
|
|
|
12998
|
-
const __default__$
|
|
12925
|
+
const __default__$1I = defineComponent({
|
|
12999
12926
|
name: "ElBreadcrumb"
|
|
13000
12927
|
});
|
|
13001
12928
|
const _sfc_main$45 = /* @__PURE__ */ defineComponent({
|
|
13002
|
-
...__default__$
|
|
12929
|
+
...__default__$1I,
|
|
13003
12930
|
props: breadcrumbProps,
|
|
13004
12931
|
setup(__props) {
|
|
13005
12932
|
const props = __props;
|
|
@@ -13036,11 +12963,11 @@ const breadcrumbItemProps = buildProps({
|
|
|
13036
12963
|
replace: Boolean
|
|
13037
12964
|
});
|
|
13038
12965
|
|
|
13039
|
-
const __default__$
|
|
12966
|
+
const __default__$1H = defineComponent({
|
|
13040
12967
|
name: "ElBreadcrumbItem"
|
|
13041
12968
|
});
|
|
13042
12969
|
const _sfc_main$44 = /* @__PURE__ */ defineComponent({
|
|
13043
|
-
...__default__$
|
|
12970
|
+
...__default__$1H,
|
|
13044
12971
|
props: breadcrumbItemProps,
|
|
13045
12972
|
setup(__props) {
|
|
13046
12973
|
const props = __props;
|
|
@@ -13096,6 +13023,11 @@ const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
|
13096
13023
|
|
|
13097
13024
|
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
|
13098
13025
|
watch(() => unref(condition), (val) => {
|
|
13026
|
+
if (val) {
|
|
13027
|
+
debugWarn(scope, `[${type}] ${from} is about to be deprecated in version ${version}, please use ${replacement} instead.
|
|
13028
|
+
For more detail, please visit: ${ref}
|
|
13029
|
+
`);
|
|
13030
|
+
}
|
|
13099
13031
|
}, {
|
|
13100
13032
|
immediate: true
|
|
13101
13033
|
});
|
|
@@ -14439,11 +14371,11 @@ function useButtonCustomStyle(props) {
|
|
|
14439
14371
|
});
|
|
14440
14372
|
}
|
|
14441
14373
|
|
|
14442
|
-
const __default__$
|
|
14374
|
+
const __default__$1G = defineComponent({
|
|
14443
14375
|
name: "ElButton"
|
|
14444
14376
|
});
|
|
14445
14377
|
const _sfc_main$43 = /* @__PURE__ */ defineComponent({
|
|
14446
|
-
...__default__$
|
|
14378
|
+
...__default__$1G,
|
|
14447
14379
|
props: buttonProps,
|
|
14448
14380
|
emits: buttonEmits,
|
|
14449
14381
|
setup(__props, { expose, emit }) {
|
|
@@ -14527,11 +14459,11 @@ const buttonGroupProps = {
|
|
|
14527
14459
|
type: buttonProps.type
|
|
14528
14460
|
};
|
|
14529
14461
|
|
|
14530
|
-
const __default__$
|
|
14462
|
+
const __default__$1F = defineComponent({
|
|
14531
14463
|
name: "ElButtonGroup"
|
|
14532
14464
|
});
|
|
14533
14465
|
const _sfc_main$42 = /* @__PURE__ */ defineComponent({
|
|
14534
|
-
...__default__$
|
|
14466
|
+
...__default__$1F,
|
|
14535
14467
|
props: buttonGroupProps,
|
|
14536
14468
|
setup(__props) {
|
|
14537
14469
|
const props = __props;
|
|
@@ -14797,11 +14729,11 @@ const useDateTable = (props, emit) => {
|
|
|
14797
14729
|
};
|
|
14798
14730
|
};
|
|
14799
14731
|
|
|
14800
|
-
const __default__$
|
|
14732
|
+
const __default__$1E = defineComponent({
|
|
14801
14733
|
name: "DateTable"
|
|
14802
14734
|
});
|
|
14803
14735
|
const _sfc_main$41 = /* @__PURE__ */ defineComponent({
|
|
14804
|
-
...__default__$
|
|
14736
|
+
...__default__$1E,
|
|
14805
14737
|
props: dateTableProps,
|
|
14806
14738
|
emits: dateTableEmits,
|
|
14807
14739
|
setup(__props, { expose, emit }) {
|
|
@@ -14932,12 +14864,14 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
14932
14864
|
const rangeArrDayjs = props.range.map((_) => dayjs(_).locale(lang.value));
|
|
14933
14865
|
const [startDayjs, endDayjs] = rangeArrDayjs;
|
|
14934
14866
|
if (startDayjs.isAfter(endDayjs)) {
|
|
14867
|
+
debugWarn(componentName, "end time should be greater than start time");
|
|
14935
14868
|
return [];
|
|
14936
14869
|
}
|
|
14937
14870
|
if (startDayjs.isSame(endDayjs, "month")) {
|
|
14938
14871
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
14939
14872
|
} else {
|
|
14940
14873
|
if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
|
|
14874
|
+
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
14941
14875
|
return [];
|
|
14942
14876
|
}
|
|
14943
14877
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
@@ -14966,6 +14900,7 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
14966
14900
|
} else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
|
|
14967
14901
|
return threeConsecutiveMonth(firstDay, lastDay);
|
|
14968
14902
|
} else {
|
|
14903
|
+
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
14969
14904
|
return [];
|
|
14970
14905
|
}
|
|
14971
14906
|
};
|
|
@@ -15010,12 +14945,12 @@ const calendarEmits = {
|
|
|
15010
14945
|
[INPUT_EVENT]: (value) => isDate$1(value)
|
|
15011
14946
|
};
|
|
15012
14947
|
|
|
15013
|
-
const COMPONENT_NAME$
|
|
15014
|
-
const __default__$
|
|
15015
|
-
name: COMPONENT_NAME$
|
|
14948
|
+
const COMPONENT_NAME$j = "ElCalendar";
|
|
14949
|
+
const __default__$1D = defineComponent({
|
|
14950
|
+
name: COMPONENT_NAME$j
|
|
15016
14951
|
});
|
|
15017
14952
|
const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
15018
|
-
...__default__$
|
|
14953
|
+
...__default__$1D,
|
|
15019
14954
|
props: calendarProps,
|
|
15020
14955
|
emits: calendarEmits,
|
|
15021
14956
|
setup(__props, { expose, emit }) {
|
|
@@ -15028,7 +14963,7 @@ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
|
15028
14963
|
realSelectedDay,
|
|
15029
14964
|
selectDate,
|
|
15030
14965
|
validatedRange
|
|
15031
|
-
} = useCalendar(props, emit);
|
|
14966
|
+
} = useCalendar(props, emit, COMPONENT_NAME$j);
|
|
15032
14967
|
const { t } = useLocale();
|
|
15033
14968
|
const i18nDate = computed(() => {
|
|
15034
14969
|
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
@@ -15163,11 +15098,11 @@ const cardProps = buildProps({
|
|
|
15163
15098
|
}
|
|
15164
15099
|
});
|
|
15165
15100
|
|
|
15166
|
-
const __default__$
|
|
15101
|
+
const __default__$1C = defineComponent({
|
|
15167
15102
|
name: "ElCard"
|
|
15168
15103
|
});
|
|
15169
15104
|
const _sfc_main$3$ = /* @__PURE__ */ defineComponent({
|
|
15170
|
-
...__default__$
|
|
15105
|
+
...__default__$1C,
|
|
15171
15106
|
props: cardProps,
|
|
15172
15107
|
setup(__props) {
|
|
15173
15108
|
const globalConfig = useGlobalConfig("card");
|
|
@@ -15273,6 +15208,7 @@ const carouselEmits = {
|
|
|
15273
15208
|
const carouselContextKey = Symbol("carouselContextKey");
|
|
15274
15209
|
const CAROUSEL_ITEM_NAME = "ElCarouselItem";
|
|
15275
15210
|
|
|
15211
|
+
const SCOPE$7 = "utils/vue/vnode";
|
|
15276
15212
|
var PatchFlags = /* @__PURE__ */ ((PatchFlags2) => {
|
|
15277
15213
|
PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
|
|
15278
15214
|
PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
|
|
@@ -15300,6 +15236,7 @@ function isValidElementNode(node) {
|
|
|
15300
15236
|
}
|
|
15301
15237
|
const getNormalizedProps = (node) => {
|
|
15302
15238
|
if (!isVNode(node)) {
|
|
15239
|
+
debugWarn(SCOPE$7, "[getNormalizedProps] must be a VNode");
|
|
15303
15240
|
return {};
|
|
15304
15241
|
}
|
|
15305
15242
|
const raw = node.props || {};
|
|
@@ -15469,6 +15406,7 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
15469
15406
|
}
|
|
15470
15407
|
index = Number(index);
|
|
15471
15408
|
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
15409
|
+
debugWarn(componentName, "index must be integer.");
|
|
15472
15410
|
return;
|
|
15473
15411
|
}
|
|
15474
15412
|
const itemCount = items.value.length;
|
|
@@ -15659,12 +15597,12 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
15659
15597
|
};
|
|
15660
15598
|
};
|
|
15661
15599
|
|
|
15662
|
-
const COMPONENT_NAME$
|
|
15663
|
-
const __default__$
|
|
15664
|
-
name: COMPONENT_NAME$
|
|
15600
|
+
const COMPONENT_NAME$i = "ElCarousel";
|
|
15601
|
+
const __default__$1B = defineComponent({
|
|
15602
|
+
name: COMPONENT_NAME$i
|
|
15665
15603
|
});
|
|
15666
15604
|
const _sfc_main$3_ = /* @__PURE__ */ defineComponent({
|
|
15667
|
-
...__default__$
|
|
15605
|
+
...__default__$1B,
|
|
15668
15606
|
props: carouselProps,
|
|
15669
15607
|
emits: carouselEmits,
|
|
15670
15608
|
setup(__props, { expose, emit }) {
|
|
@@ -15693,7 +15631,7 @@ const _sfc_main$3_ = /* @__PURE__ */ defineComponent({
|
|
|
15693
15631
|
ItemsSorter,
|
|
15694
15632
|
throttledArrowClick,
|
|
15695
15633
|
throttledIndicatorHover
|
|
15696
|
-
} = useCarousel(props, emit);
|
|
15634
|
+
} = useCarousel(props, emit, COMPONENT_NAME$i);
|
|
15697
15635
|
const ns = useNamespace("carousel");
|
|
15698
15636
|
const { t } = useLocale();
|
|
15699
15637
|
const carouselClasses = computed(() => {
|
|
@@ -15875,6 +15813,12 @@ const carouselItemProps = buildProps({
|
|
|
15875
15813
|
const useCarouselItem = (props) => {
|
|
15876
15814
|
const carouselContext = inject(carouselContextKey);
|
|
15877
15815
|
const instance = getCurrentInstance();
|
|
15816
|
+
if (!carouselContext) {
|
|
15817
|
+
debugWarn(CAROUSEL_ITEM_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
|
|
15818
|
+
}
|
|
15819
|
+
if (!instance) {
|
|
15820
|
+
debugWarn(CAROUSEL_ITEM_NAME, "compositional hook can only be invoked inside setups");
|
|
15821
|
+
}
|
|
15878
15822
|
const carouselItemRef = ref();
|
|
15879
15823
|
const hover = ref(false);
|
|
15880
15824
|
const translate = ref(0);
|
|
@@ -15983,11 +15927,11 @@ const useCarouselItem = (props) => {
|
|
|
15983
15927
|
};
|
|
15984
15928
|
};
|
|
15985
15929
|
|
|
15986
|
-
const __default__$
|
|
15930
|
+
const __default__$1A = defineComponent({
|
|
15987
15931
|
name: CAROUSEL_ITEM_NAME
|
|
15988
15932
|
});
|
|
15989
15933
|
const _sfc_main$3Z = /* @__PURE__ */ defineComponent({
|
|
15990
|
-
...__default__$
|
|
15934
|
+
...__default__$1A,
|
|
15991
15935
|
props: carouselItemProps,
|
|
15992
15936
|
setup(__props) {
|
|
15993
15937
|
const props = __props;
|
|
@@ -16166,7 +16110,7 @@ const useCheckboxEvent = (props, {
|
|
|
16166
16110
|
const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
|
|
16167
16111
|
watch(() => props.modelValue, () => {
|
|
16168
16112
|
if (validateEvent.value) {
|
|
16169
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
16113
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
16170
16114
|
}
|
|
16171
16115
|
});
|
|
16172
16116
|
return {
|
|
@@ -16325,11 +16269,11 @@ const useCheckbox = (props, slots) => {
|
|
|
16325
16269
|
};
|
|
16326
16270
|
};
|
|
16327
16271
|
|
|
16328
|
-
const __default__$
|
|
16272
|
+
const __default__$1z = defineComponent({
|
|
16329
16273
|
name: "ElCheckbox"
|
|
16330
16274
|
});
|
|
16331
16275
|
const _sfc_main$3Y = /* @__PURE__ */ defineComponent({
|
|
16332
|
-
...__default__$
|
|
16276
|
+
...__default__$1z,
|
|
16333
16277
|
props: checkboxProps,
|
|
16334
16278
|
emits: checkboxEmits,
|
|
16335
16279
|
setup(__props) {
|
|
@@ -16428,11 +16372,11 @@ const _sfc_main$3Y = /* @__PURE__ */ defineComponent({
|
|
|
16428
16372
|
});
|
|
16429
16373
|
var Checkbox = /* @__PURE__ */ _export_sfc$2(_sfc_main$3Y, [["__file", "checkbox.vue"]]);
|
|
16430
16374
|
|
|
16431
|
-
const __default__$
|
|
16375
|
+
const __default__$1y = defineComponent({
|
|
16432
16376
|
name: "ElCheckboxButton"
|
|
16433
16377
|
});
|
|
16434
16378
|
const _sfc_main$3X = /* @__PURE__ */ defineComponent({
|
|
16435
|
-
...__default__$
|
|
16379
|
+
...__default__$1y,
|
|
16436
16380
|
props: checkboxProps,
|
|
16437
16381
|
emits: checkboxEmits,
|
|
16438
16382
|
setup(__props) {
|
|
@@ -16558,11 +16502,11 @@ const checkboxDefaultProps = {
|
|
|
16558
16502
|
disabled: "disabled"
|
|
16559
16503
|
};
|
|
16560
16504
|
|
|
16561
|
-
const __default__$
|
|
16505
|
+
const __default__$1x = defineComponent({
|
|
16562
16506
|
name: "ElCheckboxGroup"
|
|
16563
16507
|
});
|
|
16564
16508
|
const _sfc_main$3W = /* @__PURE__ */ defineComponent({
|
|
16565
|
-
...__default__$
|
|
16509
|
+
...__default__$1x,
|
|
16566
16510
|
props: checkboxGroupProps,
|
|
16567
16511
|
emits: checkboxGroupEmits,
|
|
16568
16512
|
setup(__props, { emit }) {
|
|
@@ -16614,7 +16558,7 @@ const _sfc_main$3W = /* @__PURE__ */ defineComponent({
|
|
|
16614
16558
|
});
|
|
16615
16559
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
16616
16560
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
16617
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
16561
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
16618
16562
|
}
|
|
16619
16563
|
});
|
|
16620
16564
|
return (_ctx, _cache) => {
|
|
@@ -16727,11 +16671,11 @@ const useRadio = (props, emit) => {
|
|
|
16727
16671
|
};
|
|
16728
16672
|
};
|
|
16729
16673
|
|
|
16730
|
-
const __default__$
|
|
16674
|
+
const __default__$1w = defineComponent({
|
|
16731
16675
|
name: "ElRadio"
|
|
16732
16676
|
});
|
|
16733
16677
|
const _sfc_main$3V = /* @__PURE__ */ defineComponent({
|
|
16734
|
-
...__default__$
|
|
16678
|
+
...__default__$1w,
|
|
16735
16679
|
props: radioProps,
|
|
16736
16680
|
emits: radioEmits,
|
|
16737
16681
|
setup(__props, { emit }) {
|
|
@@ -16801,11 +16745,11 @@ const radioButtonProps = buildProps({
|
|
|
16801
16745
|
...radioPropsBase
|
|
16802
16746
|
});
|
|
16803
16747
|
|
|
16804
|
-
const __default__$
|
|
16748
|
+
const __default__$1v = defineComponent({
|
|
16805
16749
|
name: "ElRadioButton"
|
|
16806
16750
|
});
|
|
16807
16751
|
const _sfc_main$3U = /* @__PURE__ */ defineComponent({
|
|
16808
|
-
...__default__$
|
|
16752
|
+
...__default__$1v,
|
|
16809
16753
|
props: radioButtonProps,
|
|
16810
16754
|
setup(__props) {
|
|
16811
16755
|
const props = __props;
|
|
@@ -16910,11 +16854,11 @@ const radioDefaultProps = {
|
|
|
16910
16854
|
disabled: "disabled"
|
|
16911
16855
|
};
|
|
16912
16856
|
|
|
16913
|
-
const __default__$
|
|
16857
|
+
const __default__$1u = defineComponent({
|
|
16914
16858
|
name: "ElRadioGroup"
|
|
16915
16859
|
});
|
|
16916
16860
|
const _sfc_main$3T = /* @__PURE__ */ defineComponent({
|
|
16917
|
-
...__default__$
|
|
16861
|
+
...__default__$1u,
|
|
16918
16862
|
props: radioGroupProps,
|
|
16919
16863
|
emits: radioGroupEmits,
|
|
16920
16864
|
setup(__props, { emit }) {
|
|
@@ -16961,7 +16905,7 @@ const _sfc_main$3T = /* @__PURE__ */ defineComponent({
|
|
|
16961
16905
|
}));
|
|
16962
16906
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
16963
16907
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
16964
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
16908
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
16965
16909
|
}
|
|
16966
16910
|
});
|
|
16967
16911
|
return (_ctx, _cache) => {
|
|
@@ -17032,11 +16976,11 @@ var NodeContent$1 = defineComponent({
|
|
|
17032
16976
|
}
|
|
17033
16977
|
});
|
|
17034
16978
|
|
|
17035
|
-
const __default__$
|
|
16979
|
+
const __default__$1t = defineComponent({
|
|
17036
16980
|
name: "ElCascaderNode"
|
|
17037
16981
|
});
|
|
17038
16982
|
const _sfc_main$3S = /* @__PURE__ */ defineComponent({
|
|
17039
|
-
...__default__$
|
|
16983
|
+
...__default__$1t,
|
|
17040
16984
|
props: {
|
|
17041
16985
|
node: {
|
|
17042
16986
|
type: Object,
|
|
@@ -17203,11 +17147,11 @@ const _sfc_main$3S = /* @__PURE__ */ defineComponent({
|
|
|
17203
17147
|
});
|
|
17204
17148
|
var ElCascaderNode = /* @__PURE__ */ _export_sfc$2(_sfc_main$3S, [["__file", "node.vue"]]);
|
|
17205
17149
|
|
|
17206
|
-
const __default__$
|
|
17150
|
+
const __default__$1s = defineComponent({
|
|
17207
17151
|
name: "ElCascaderMenu"
|
|
17208
17152
|
});
|
|
17209
17153
|
const _sfc_main$3R = /* @__PURE__ */ defineComponent({
|
|
17210
|
-
...__default__$
|
|
17154
|
+
...__default__$1s,
|
|
17211
17155
|
props: {
|
|
17212
17156
|
nodes: {
|
|
17213
17157
|
type: Array,
|
|
@@ -17588,12 +17532,12 @@ const sortByOriginalOrder = (oldNodes, newNodes) => {
|
|
|
17588
17532
|
return res;
|
|
17589
17533
|
};
|
|
17590
17534
|
|
|
17591
|
-
const __default__$
|
|
17535
|
+
const __default__$1r = defineComponent({
|
|
17592
17536
|
name: "ElCascaderPanel",
|
|
17593
17537
|
inheritAttrs: false
|
|
17594
17538
|
});
|
|
17595
17539
|
const _sfc_main$3Q = /* @__PURE__ */ defineComponent({
|
|
17596
|
-
...__default__$
|
|
17540
|
+
...__default__$1r,
|
|
17597
17541
|
props: cascaderPanelProps,
|
|
17598
17542
|
emits: cascaderPanelEmits,
|
|
17599
17543
|
setup(__props, { expose, emit }) {
|
|
@@ -17901,11 +17845,11 @@ const tagEmits = {
|
|
|
17901
17845
|
click: (evt) => evt instanceof MouseEvent
|
|
17902
17846
|
};
|
|
17903
17847
|
|
|
17904
|
-
const __default__$
|
|
17848
|
+
const __default__$1q = defineComponent({
|
|
17905
17849
|
name: "ElTag"
|
|
17906
17850
|
});
|
|
17907
17851
|
const _sfc_main$3P = /* @__PURE__ */ defineComponent({
|
|
17908
|
-
...__default__$
|
|
17852
|
+
...__default__$1q,
|
|
17909
17853
|
props: tagProps,
|
|
17910
17854
|
emits: tagEmits,
|
|
17911
17855
|
setup(__props, { emit }) {
|
|
@@ -18155,11 +18099,11 @@ const ClickOutside = {
|
|
|
18155
18099
|
}
|
|
18156
18100
|
};
|
|
18157
18101
|
|
|
18158
|
-
const __default__$
|
|
18102
|
+
const __default__$1p = defineComponent({
|
|
18159
18103
|
name: "ElCascader"
|
|
18160
18104
|
});
|
|
18161
18105
|
const _sfc_main$3O = /* @__PURE__ */ defineComponent({
|
|
18162
|
-
...__default__$
|
|
18106
|
+
...__default__$1p,
|
|
18163
18107
|
props: cascaderProps,
|
|
18164
18108
|
emits: cascaderEmits,
|
|
18165
18109
|
setup(__props, { expose, emit }) {
|
|
@@ -18249,7 +18193,7 @@ const _sfc_main$3O = /* @__PURE__ */ defineComponent({
|
|
|
18249
18193
|
afterBlur() {
|
|
18250
18194
|
var _a;
|
|
18251
18195
|
if (props.validateEvent) {
|
|
18252
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
18196
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
18253
18197
|
}
|
|
18254
18198
|
}
|
|
18255
18199
|
});
|
|
@@ -18273,7 +18217,7 @@ const _sfc_main$3O = /* @__PURE__ */ defineComponent({
|
|
|
18273
18217
|
emit(UPDATE_MODEL_EVENT, value);
|
|
18274
18218
|
emit(CHANGE_EVENT, value);
|
|
18275
18219
|
if (props.validateEvent) {
|
|
18276
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
18220
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
18277
18221
|
}
|
|
18278
18222
|
}
|
|
18279
18223
|
});
|
|
@@ -18854,11 +18798,11 @@ const checkTagEmits = {
|
|
|
18854
18798
|
[CHANGE_EVENT]: (value) => isBoolean$1(value)
|
|
18855
18799
|
};
|
|
18856
18800
|
|
|
18857
|
-
const __default__$
|
|
18801
|
+
const __default__$1o = defineComponent({
|
|
18858
18802
|
name: "ElCheckTag"
|
|
18859
18803
|
});
|
|
18860
18804
|
const _sfc_main$3N = /* @__PURE__ */ defineComponent({
|
|
18861
|
-
...__default__$
|
|
18805
|
+
...__default__$1o,
|
|
18862
18806
|
props: checkTagProps,
|
|
18863
18807
|
emits: checkTagEmits,
|
|
18864
18808
|
setup(__props, { emit }) {
|
|
@@ -18936,11 +18880,11 @@ const colProps = buildProps({
|
|
|
18936
18880
|
|
|
18937
18881
|
const rowContextKey = Symbol("rowContextKey");
|
|
18938
18882
|
|
|
18939
|
-
const __default__$
|
|
18883
|
+
const __default__$1n = defineComponent({
|
|
18940
18884
|
name: "ElCol"
|
|
18941
18885
|
});
|
|
18942
18886
|
const _sfc_main$3M = /* @__PURE__ */ defineComponent({
|
|
18943
|
-
...__default__$
|
|
18887
|
+
...__default__$1n,
|
|
18944
18888
|
props: colProps,
|
|
18945
18889
|
setup(__props) {
|
|
18946
18890
|
const props = __props;
|
|
@@ -19019,7 +18963,7 @@ const collapseEmits = {
|
|
|
19019
18963
|
|
|
19020
18964
|
const collapseContextKey = Symbol("collapseContextKey");
|
|
19021
18965
|
|
|
19022
|
-
const SCOPE$
|
|
18966
|
+
const SCOPE$6 = "ElCollapse";
|
|
19023
18967
|
const useCollapse = (props, emit) => {
|
|
19024
18968
|
const activeNames = ref(castArray$1(props.modelValue));
|
|
19025
18969
|
const setActiveNames = (_activeNames) => {
|
|
@@ -19054,7 +18998,7 @@ const useCollapse = (props, emit) => {
|
|
|
19054
18998
|
isBoolean$1(shouldChange)
|
|
19055
18999
|
].includes(true);
|
|
19056
19000
|
if (!isPromiseOrBool) {
|
|
19057
|
-
throwError(SCOPE$
|
|
19001
|
+
throwError(SCOPE$6, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
|
|
19058
19002
|
}
|
|
19059
19003
|
if (isPromise$1(shouldChange)) {
|
|
19060
19004
|
shouldChange.then((result) => {
|
|
@@ -19062,6 +19006,7 @@ const useCollapse = (props, emit) => {
|
|
|
19062
19006
|
handleChange(name);
|
|
19063
19007
|
}
|
|
19064
19008
|
}).catch((e) => {
|
|
19009
|
+
debugWarn(SCOPE$6, `some error occurred: ${e}`);
|
|
19065
19010
|
});
|
|
19066
19011
|
} else if (shouldChange) {
|
|
19067
19012
|
handleChange(name);
|
|
@@ -19088,11 +19033,11 @@ const useCollapseDOM = (props) => {
|
|
|
19088
19033
|
};
|
|
19089
19034
|
};
|
|
19090
19035
|
|
|
19091
|
-
const __default__$
|
|
19036
|
+
const __default__$1m = defineComponent({
|
|
19092
19037
|
name: "ElCollapse"
|
|
19093
19038
|
});
|
|
19094
19039
|
const _sfc_main$3L = /* @__PURE__ */ defineComponent({
|
|
19095
|
-
...__default__$
|
|
19040
|
+
...__default__$1m,
|
|
19096
19041
|
props: collapseProps,
|
|
19097
19042
|
emits: collapseEmits,
|
|
19098
19043
|
setup(__props, { expose, emit }) {
|
|
@@ -19114,11 +19059,11 @@ const _sfc_main$3L = /* @__PURE__ */ defineComponent({
|
|
|
19114
19059
|
});
|
|
19115
19060
|
var Collapse = /* @__PURE__ */ _export_sfc$2(_sfc_main$3L, [["__file", "collapse.vue"]]);
|
|
19116
19061
|
|
|
19117
|
-
const __default__$
|
|
19062
|
+
const __default__$1l = defineComponent({
|
|
19118
19063
|
name: "ElCollapseTransition"
|
|
19119
19064
|
});
|
|
19120
19065
|
const _sfc_main$3K = /* @__PURE__ */ defineComponent({
|
|
19121
|
-
...__default__$
|
|
19066
|
+
...__default__$1l,
|
|
19122
19067
|
setup(__props) {
|
|
19123
19068
|
const ns = useNamespace("collapse-transition");
|
|
19124
19069
|
const reset = (el) => {
|
|
@@ -19296,11 +19241,11 @@ const useCollapseItemDOM = (props, { focusing, isActive, id }) => {
|
|
|
19296
19241
|
};
|
|
19297
19242
|
};
|
|
19298
19243
|
|
|
19299
|
-
const __default__$
|
|
19244
|
+
const __default__$1k = defineComponent({
|
|
19300
19245
|
name: "ElCollapseItem"
|
|
19301
19246
|
});
|
|
19302
19247
|
const _sfc_main$3J = /* @__PURE__ */ defineComponent({
|
|
19303
|
-
...__default__$
|
|
19248
|
+
...__default__$1k,
|
|
19304
19249
|
props: collapseItemProps,
|
|
19305
19250
|
setup(__props, { expose }) {
|
|
19306
19251
|
const props = __props;
|
|
@@ -19335,7 +19280,8 @@ const _sfc_main$3J = /* @__PURE__ */ defineComponent({
|
|
|
19335
19280
|
"aria-expanded": unref(isActive),
|
|
19336
19281
|
"aria-controls": unref(scopedContentId),
|
|
19337
19282
|
"aria-describedby": unref(scopedContentId),
|
|
19338
|
-
tabindex: _ctx.disabled ?
|
|
19283
|
+
tabindex: _ctx.disabled ? void 0 : 0,
|
|
19284
|
+
"aria-disabled": _ctx.disabled,
|
|
19339
19285
|
role: "button",
|
|
19340
19286
|
onClick: unref(handleHeaderClick),
|
|
19341
19287
|
onKeydown: withKeys(withModifiers(unref(handleEnterClick), ["stop"]), ["space", "enter"]),
|
|
@@ -19359,7 +19305,7 @@ const _sfc_main$3J = /* @__PURE__ */ defineComponent({
|
|
|
19359
19305
|
_: 1
|
|
19360
19306
|
}, 8, ["class"])
|
|
19361
19307
|
])
|
|
19362
|
-
], 42, ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "onClick", "onKeydown", "onFocus", "onBlur"]),
|
|
19308
|
+
], 42, ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex", "aria-disabled", "onClick", "onKeydown", "onFocus", "onBlur"]),
|
|
19363
19309
|
createVNode(unref(ElCollapseTransition), null, {
|
|
19364
19310
|
default: withCtx(() => [
|
|
19365
19311
|
withDirectives(createElementVNode("div", {
|
|
@@ -19636,11 +19582,11 @@ const useSliderDOM = (props, {
|
|
|
19636
19582
|
|
|
19637
19583
|
const minValue$1 = 0;
|
|
19638
19584
|
const maxValue$1 = 100;
|
|
19639
|
-
const __default__$
|
|
19585
|
+
const __default__$1j = defineComponent({
|
|
19640
19586
|
name: "ElColorAlphaSlider"
|
|
19641
19587
|
});
|
|
19642
19588
|
const _sfc_main$3I = /* @__PURE__ */ defineComponent({
|
|
19643
|
-
...__default__$
|
|
19589
|
+
...__default__$1j,
|
|
19644
19590
|
props: alphaSliderProps,
|
|
19645
19591
|
setup(__props, { expose }) {
|
|
19646
19592
|
const props = __props;
|
|
@@ -19708,11 +19654,11 @@ var AlphaSlider = /* @__PURE__ */ _export_sfc$2(_sfc_main$3I, [["__file", "alpha
|
|
|
19708
19654
|
|
|
19709
19655
|
const minValue = 0;
|
|
19710
19656
|
const maxValue = 360;
|
|
19711
|
-
const __default__$
|
|
19657
|
+
const __default__$1i = defineComponent({
|
|
19712
19658
|
name: "ElColorHueSlider"
|
|
19713
19659
|
});
|
|
19714
19660
|
const _sfc_main$3H = /* @__PURE__ */ defineComponent({
|
|
19715
|
-
...__default__$
|
|
19661
|
+
...__default__$1i,
|
|
19716
19662
|
props: hueSliderProps,
|
|
19717
19663
|
setup(__props, { expose }) {
|
|
19718
19664
|
const props = __props;
|
|
@@ -19770,6 +19716,22 @@ const _sfc_main$3H = /* @__PURE__ */ defineComponent({
|
|
|
19770
19716
|
});
|
|
19771
19717
|
var HueSlider = /* @__PURE__ */ _export_sfc$2(_sfc_main$3H, [["__file", "hue-slider.vue"]]);
|
|
19772
19718
|
|
|
19719
|
+
const predefineProps = buildProps({
|
|
19720
|
+
colors: {
|
|
19721
|
+
type: definePropType(Array),
|
|
19722
|
+
required: true
|
|
19723
|
+
},
|
|
19724
|
+
color: {
|
|
19725
|
+
type: definePropType(Object),
|
|
19726
|
+
required: true
|
|
19727
|
+
},
|
|
19728
|
+
enableAlpha: {
|
|
19729
|
+
type: Boolean,
|
|
19730
|
+
required: true
|
|
19731
|
+
},
|
|
19732
|
+
disabled: Boolean
|
|
19733
|
+
});
|
|
19734
|
+
|
|
19773
19735
|
const colorPickerPanelProps = buildProps({
|
|
19774
19736
|
modelValue: {
|
|
19775
19737
|
type: definePropType(String),
|
|
@@ -19784,6 +19746,10 @@ const colorPickerPanelProps = buildProps({
|
|
|
19784
19746
|
disabled: Boolean,
|
|
19785
19747
|
predefine: {
|
|
19786
19748
|
type: definePropType(Array)
|
|
19749
|
+
},
|
|
19750
|
+
validateEvent: {
|
|
19751
|
+
type: Boolean,
|
|
19752
|
+
default: true
|
|
19787
19753
|
}
|
|
19788
19754
|
});
|
|
19789
19755
|
const colorPickerPanelEmits = {
|
|
@@ -19886,183 +19852,307 @@ class Color {
|
|
|
19886
19852
|
}
|
|
19887
19853
|
}
|
|
19888
19854
|
|
|
19889
|
-
const
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
type: Object,
|
|
19897
|
-
required: true
|
|
19898
|
-
},
|
|
19899
|
-
enableAlpha: {
|
|
19900
|
-
type: Boolean,
|
|
19901
|
-
required: true
|
|
19902
|
-
},
|
|
19903
|
-
disabled: Boolean
|
|
19904
|
-
},
|
|
19905
|
-
setup(props) {
|
|
19906
|
-
const ns = useNamespace("color-predefine");
|
|
19907
|
-
const { currentColor } = inject(colorPickerPanelContextKey);
|
|
19908
|
-
const rgbaColors = ref(parseColors(props.colors, props.color));
|
|
19909
|
-
watch(() => currentColor.value, (val) => {
|
|
19910
|
-
const color = new Color({
|
|
19911
|
-
value: val
|
|
19912
|
-
});
|
|
19913
|
-
rgbaColors.value.forEach((item) => {
|
|
19914
|
-
item.selected = color.compare(item);
|
|
19915
|
-
});
|
|
19855
|
+
const usePredefine = (props) => {
|
|
19856
|
+
const { currentColor } = inject(colorPickerPanelContextKey);
|
|
19857
|
+
const rgbaColors = ref(parseColors(props.colors, props.color));
|
|
19858
|
+
watch(() => currentColor.value, (val) => {
|
|
19859
|
+
const color = new Color({
|
|
19860
|
+
value: val,
|
|
19861
|
+
enableAlpha: props.enableAlpha
|
|
19916
19862
|
});
|
|
19917
|
-
|
|
19918
|
-
|
|
19863
|
+
rgbaColors.value.forEach((item) => {
|
|
19864
|
+
item.selected = color.compare(item);
|
|
19919
19865
|
});
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
|
|
19931
|
-
|
|
19866
|
+
});
|
|
19867
|
+
watchEffect(() => {
|
|
19868
|
+
rgbaColors.value = parseColors(props.colors, props.color);
|
|
19869
|
+
});
|
|
19870
|
+
function handleSelect(index) {
|
|
19871
|
+
props.color.fromString(props.colors[index]);
|
|
19872
|
+
}
|
|
19873
|
+
function parseColors(colors, color) {
|
|
19874
|
+
return colors.map((value) => {
|
|
19875
|
+
const c = new Color({
|
|
19876
|
+
value,
|
|
19877
|
+
enableAlpha: props.enableAlpha
|
|
19932
19878
|
});
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19879
|
+
c.selected = c.compare(color);
|
|
19880
|
+
return c;
|
|
19881
|
+
});
|
|
19882
|
+
}
|
|
19883
|
+
return {
|
|
19884
|
+
rgbaColors,
|
|
19885
|
+
handleSelect
|
|
19886
|
+
};
|
|
19887
|
+
};
|
|
19888
|
+
const usePredefineDOM = (props) => {
|
|
19889
|
+
const ns = useNamespace("color-predefine");
|
|
19890
|
+
const rootKls = computed(() => [ns.b(), ns.is("disabled", props.disabled)]);
|
|
19891
|
+
const colorsKls = computed(() => ns.e("colors"));
|
|
19892
|
+
function colorSelectorKls(item) {
|
|
19893
|
+
return [
|
|
19894
|
+
ns.e("color-selector"),
|
|
19895
|
+
ns.is("alpha", item.get("alpha") < 100),
|
|
19896
|
+
{ selected: item.selected }
|
|
19897
|
+
];
|
|
19939
19898
|
}
|
|
19899
|
+
return {
|
|
19900
|
+
rootKls,
|
|
19901
|
+
colorsKls,
|
|
19902
|
+
colorSelectorKls
|
|
19903
|
+
};
|
|
19904
|
+
};
|
|
19905
|
+
|
|
19906
|
+
const __default__$1h = defineComponent({
|
|
19907
|
+
name: "ElColorPredefine"
|
|
19940
19908
|
});
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
|
|
19909
|
+
const _sfc_main$3G = /* @__PURE__ */ defineComponent({
|
|
19910
|
+
...__default__$1h,
|
|
19911
|
+
props: predefineProps,
|
|
19912
|
+
setup(__props) {
|
|
19913
|
+
const props = __props;
|
|
19914
|
+
const { rgbaColors, handleSelect } = usePredefine(props);
|
|
19915
|
+
const { rootKls, colorsKls, colorSelectorKls } = usePredefineDOM(props);
|
|
19916
|
+
const { t } = useLocale();
|
|
19917
|
+
const ariaLabel = (value) => {
|
|
19918
|
+
return t("el.colorpicker.predefineDescription", { value });
|
|
19919
|
+
};
|
|
19920
|
+
return (_ctx, _cache) => {
|
|
19921
|
+
return openBlock(), createElementBlock("div", {
|
|
19922
|
+
class: normalizeClass(unref(rootKls))
|
|
19923
|
+
}, [
|
|
19924
|
+
createElementVNode("div", {
|
|
19925
|
+
class: normalizeClass(unref(colorsKls))
|
|
19957
19926
|
}, [
|
|
19958
|
-
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
19927
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rgbaColors), (item, index) => {
|
|
19928
|
+
return openBlock(), createElementBlock("button", {
|
|
19929
|
+
key: _ctx.colors[index],
|
|
19930
|
+
type: "button",
|
|
19931
|
+
disabled: _ctx.disabled,
|
|
19932
|
+
"aria-label": ariaLabel(item.value),
|
|
19933
|
+
class: normalizeClass(unref(colorSelectorKls)(item)),
|
|
19934
|
+
onClick: ($event) => unref(handleSelect)(index)
|
|
19935
|
+
}, [
|
|
19936
|
+
createElementVNode("div", {
|
|
19937
|
+
style: normalizeStyle({ backgroundColor: item.value })
|
|
19938
|
+
}, null, 4)
|
|
19939
|
+
], 10, ["disabled", "aria-label", "onClick"]);
|
|
19940
|
+
}), 128))
|
|
19941
|
+
], 2)
|
|
19942
|
+
], 2);
|
|
19943
|
+
};
|
|
19944
|
+
}
|
|
19945
|
+
});
|
|
19946
|
+
var Predefine = /* @__PURE__ */ _export_sfc$2(_sfc_main$3G, [["__file", "predefine.vue"]]);
|
|
19967
19947
|
|
|
19968
|
-
const
|
|
19969
|
-
|
|
19970
|
-
|
|
19971
|
-
|
|
19972
|
-
type: Object,
|
|
19973
|
-
required: true
|
|
19974
|
-
},
|
|
19975
|
-
disabled: Boolean
|
|
19948
|
+
const svPanelProps = buildProps({
|
|
19949
|
+
color: {
|
|
19950
|
+
type: definePropType(Object),
|
|
19951
|
+
required: true
|
|
19976
19952
|
},
|
|
19977
|
-
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
19987
|
-
|
|
19988
|
-
|
|
19989
|
-
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
|
|
19996
|
-
}
|
|
19997
|
-
function handleDrag(event) {
|
|
19998
|
-
if (props.disabled)
|
|
19999
|
-
return;
|
|
20000
|
-
const el = instance.vnode.el;
|
|
20001
|
-
const rect = el.getBoundingClientRect();
|
|
20002
|
-
const { clientX, clientY } = getClientXY(event);
|
|
20003
|
-
let left = clientX - rect.left;
|
|
20004
|
-
let top = clientY - rect.top;
|
|
20005
|
-
left = Math.max(0, left);
|
|
20006
|
-
left = Math.min(left, rect.width);
|
|
20007
|
-
top = Math.max(0, top);
|
|
20008
|
-
top = Math.min(top, rect.height);
|
|
20009
|
-
cursorLeft.value = left;
|
|
20010
|
-
cursorTop.value = top;
|
|
20011
|
-
props.color.set({
|
|
20012
|
-
saturation: left / rect.width * 100,
|
|
20013
|
-
value: 100 - top / rect.height * 100
|
|
20014
|
-
});
|
|
19953
|
+
disabled: Boolean
|
|
19954
|
+
});
|
|
19955
|
+
|
|
19956
|
+
const useSvPanel = (props) => {
|
|
19957
|
+
const instance = getCurrentInstance();
|
|
19958
|
+
const cursorRef = ref();
|
|
19959
|
+
const cursorTop = ref(0);
|
|
19960
|
+
const cursorLeft = ref(0);
|
|
19961
|
+
const background = ref("hsl(0, 100%, 50%)");
|
|
19962
|
+
const saturation = computed(() => props.color.get("saturation"));
|
|
19963
|
+
const brightness = computed(() => props.color.get("value"));
|
|
19964
|
+
const hue = computed(() => props.color.get("hue"));
|
|
19965
|
+
function handleClick(event) {
|
|
19966
|
+
var _a;
|
|
19967
|
+
if (props.disabled)
|
|
19968
|
+
return;
|
|
19969
|
+
const target = event.target;
|
|
19970
|
+
if (target !== cursorRef.value) {
|
|
19971
|
+
handleDrag(event);
|
|
20015
19972
|
}
|
|
20016
|
-
|
|
20017
|
-
|
|
19973
|
+
(_a = cursorRef.value) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
19974
|
+
}
|
|
19975
|
+
function handleDrag(event) {
|
|
19976
|
+
if (props.disabled)
|
|
19977
|
+
return;
|
|
19978
|
+
const el = instance.vnode.el;
|
|
19979
|
+
const rect = el.getBoundingClientRect();
|
|
19980
|
+
const { clientX, clientY } = getClientXY(event);
|
|
19981
|
+
let left = clientX - rect.left;
|
|
19982
|
+
let top = clientY - rect.top;
|
|
19983
|
+
left = Math.max(0, left);
|
|
19984
|
+
left = Math.min(left, rect.width);
|
|
19985
|
+
top = Math.max(0, top);
|
|
19986
|
+
top = Math.min(top, rect.height);
|
|
19987
|
+
cursorLeft.value = left;
|
|
19988
|
+
cursorTop.value = top;
|
|
19989
|
+
props.color.set({
|
|
19990
|
+
saturation: left / rect.width * 100,
|
|
19991
|
+
value: 100 - top / rect.height * 100
|
|
20018
19992
|
});
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
|
|
20022
|
-
|
|
20023
|
-
|
|
20024
|
-
|
|
20025
|
-
|
|
20026
|
-
|
|
20027
|
-
|
|
20028
|
-
|
|
19993
|
+
}
|
|
19994
|
+
function handleKeydown(event) {
|
|
19995
|
+
if (props.disabled)
|
|
19996
|
+
return;
|
|
19997
|
+
const { shiftKey } = event;
|
|
19998
|
+
const code = getEventCode(event);
|
|
19999
|
+
const step = shiftKey ? 10 : 1;
|
|
20000
|
+
let isPreventDefault = true;
|
|
20001
|
+
switch (code) {
|
|
20002
|
+
case EVENT_CODE.left:
|
|
20003
|
+
incrementSaturation(-step);
|
|
20004
|
+
break;
|
|
20005
|
+
case EVENT_CODE.right:
|
|
20006
|
+
incrementSaturation(step);
|
|
20007
|
+
break;
|
|
20008
|
+
case EVENT_CODE.up:
|
|
20009
|
+
incrementBrightness(step);
|
|
20010
|
+
break;
|
|
20011
|
+
case EVENT_CODE.down:
|
|
20012
|
+
incrementBrightness(-step);
|
|
20013
|
+
break;
|
|
20014
|
+
default:
|
|
20015
|
+
isPreventDefault = false;
|
|
20016
|
+
break;
|
|
20017
|
+
}
|
|
20018
|
+
isPreventDefault && event.preventDefault();
|
|
20019
|
+
}
|
|
20020
|
+
function incrementSaturation(step) {
|
|
20021
|
+
let next = saturation.value + step;
|
|
20022
|
+
next = next < 0 ? 0 : next > 100 ? 100 : next;
|
|
20023
|
+
props.color.set("saturation", next);
|
|
20024
|
+
}
|
|
20025
|
+
function incrementBrightness(step) {
|
|
20026
|
+
let next = brightness.value + step;
|
|
20027
|
+
next = next < 0 ? 0 : next > 100 ? 100 : next;
|
|
20028
|
+
props.color.set("value", next);
|
|
20029
|
+
}
|
|
20030
|
+
return {
|
|
20031
|
+
cursorRef,
|
|
20032
|
+
cursorTop,
|
|
20033
|
+
cursorLeft,
|
|
20034
|
+
background,
|
|
20035
|
+
saturation,
|
|
20036
|
+
brightness,
|
|
20037
|
+
hue,
|
|
20038
|
+
handleClick,
|
|
20039
|
+
handleDrag,
|
|
20040
|
+
handleKeydown
|
|
20041
|
+
};
|
|
20042
|
+
};
|
|
20043
|
+
const useSvPanelDOM = (props, {
|
|
20044
|
+
cursorTop,
|
|
20045
|
+
cursorLeft,
|
|
20046
|
+
background,
|
|
20047
|
+
handleDrag
|
|
20048
|
+
}) => {
|
|
20049
|
+
const instance = getCurrentInstance();
|
|
20050
|
+
const ns = useNamespace("color-svpanel");
|
|
20051
|
+
function update() {
|
|
20052
|
+
const saturation = props.color.get("saturation");
|
|
20053
|
+
const brightness = props.color.get("value");
|
|
20054
|
+
const el = instance.vnode.el;
|
|
20055
|
+
const { clientWidth: width, clientHeight: height } = el;
|
|
20056
|
+
cursorLeft.value = saturation * width / 100;
|
|
20057
|
+
cursorTop.value = (100 - brightness) * height / 100;
|
|
20058
|
+
background.value = `hsl(${props.color.get("hue")}, 100%, 50%)`;
|
|
20059
|
+
}
|
|
20060
|
+
onMounted(() => {
|
|
20061
|
+
draggable(instance.vnode.el, {
|
|
20062
|
+
drag: (event) => {
|
|
20063
|
+
handleDrag(event);
|
|
20064
|
+
},
|
|
20065
|
+
end: (event) => {
|
|
20066
|
+
handleDrag(event);
|
|
20067
|
+
}
|
|
20029
20068
|
});
|
|
20030
|
-
|
|
20069
|
+
update();
|
|
20070
|
+
});
|
|
20071
|
+
watch([
|
|
20072
|
+
() => props.color.get("hue"),
|
|
20073
|
+
() => props.color.get("value"),
|
|
20074
|
+
() => props.color.value
|
|
20075
|
+
], () => update());
|
|
20076
|
+
const rootKls = computed(() => ns.b());
|
|
20077
|
+
const cursorKls = computed(() => ns.e("cursor"));
|
|
20078
|
+
const rootStyle = computed(() => ({
|
|
20079
|
+
backgroundColor: background.value
|
|
20080
|
+
}));
|
|
20081
|
+
const cursorStyle = computed(() => ({
|
|
20082
|
+
top: addUnit(cursorTop.value),
|
|
20083
|
+
left: addUnit(cursorLeft.value)
|
|
20084
|
+
}));
|
|
20085
|
+
return {
|
|
20086
|
+
rootKls,
|
|
20087
|
+
cursorKls,
|
|
20088
|
+
rootStyle,
|
|
20089
|
+
cursorStyle,
|
|
20090
|
+
update
|
|
20091
|
+
};
|
|
20092
|
+
};
|
|
20093
|
+
|
|
20094
|
+
const __default__$1g = defineComponent({
|
|
20095
|
+
name: "ElSvPanel"
|
|
20096
|
+
});
|
|
20097
|
+
const _sfc_main$3F = /* @__PURE__ */ defineComponent({
|
|
20098
|
+
...__default__$1g,
|
|
20099
|
+
props: svPanelProps,
|
|
20100
|
+
setup(__props, { expose }) {
|
|
20101
|
+
const props = __props;
|
|
20102
|
+
const {
|
|
20103
|
+
cursorRef,
|
|
20031
20104
|
cursorTop,
|
|
20032
20105
|
cursorLeft,
|
|
20033
20106
|
background,
|
|
20034
|
-
|
|
20107
|
+
saturation,
|
|
20108
|
+
brightness,
|
|
20109
|
+
handleClick,
|
|
20035
20110
|
handleDrag,
|
|
20036
|
-
|
|
20037
|
-
|
|
20111
|
+
handleKeydown
|
|
20112
|
+
} = useSvPanel(props);
|
|
20113
|
+
const { rootKls, cursorKls, rootStyle, cursorStyle, update } = useSvPanelDOM(props, {
|
|
20114
|
+
cursorTop,
|
|
20115
|
+
cursorLeft,
|
|
20116
|
+
background,
|
|
20117
|
+
handleDrag
|
|
20118
|
+
});
|
|
20119
|
+
const { t } = useLocale();
|
|
20120
|
+
const ariaLabel = computed(() => t("el.colorpicker.svLabel"));
|
|
20121
|
+
const ariaValuetext = computed(() => {
|
|
20122
|
+
return t("el.colorpicker.svDescription", {
|
|
20123
|
+
saturation: saturation.value,
|
|
20124
|
+
brightness: brightness.value,
|
|
20125
|
+
color: props.color.value
|
|
20126
|
+
});
|
|
20127
|
+
});
|
|
20128
|
+
expose({
|
|
20129
|
+
update
|
|
20130
|
+
});
|
|
20131
|
+
return (_ctx, _cache) => {
|
|
20132
|
+
return openBlock(), createElementBlock("div", {
|
|
20133
|
+
class: normalizeClass(unref(rootKls)),
|
|
20134
|
+
style: normalizeStyle(unref(rootStyle)),
|
|
20135
|
+
onClick: unref(handleClick)
|
|
20136
|
+
}, [
|
|
20137
|
+
createElementVNode("div", {
|
|
20138
|
+
ref_key: "cursorRef",
|
|
20139
|
+
ref: cursorRef,
|
|
20140
|
+
class: normalizeClass(unref(cursorKls)),
|
|
20141
|
+
style: normalizeStyle(unref(cursorStyle)),
|
|
20142
|
+
tabindex: "0",
|
|
20143
|
+
role: "slider",
|
|
20144
|
+
"aria-valuemin": "0,0",
|
|
20145
|
+
"aria-valuemax": "100,100",
|
|
20146
|
+
"aria-label": unref(ariaLabel),
|
|
20147
|
+
"aria-valuenow": `${unref(saturation)},${unref(brightness)}`,
|
|
20148
|
+
"aria-valuetext": unref(ariaValuetext),
|
|
20149
|
+
onKeydown: unref(handleKeydown)
|
|
20150
|
+
}, null, 46, ["aria-label", "aria-valuenow", "aria-valuetext", "onKeydown"])
|
|
20151
|
+
], 14, ["onClick"]);
|
|
20038
20152
|
};
|
|
20039
20153
|
}
|
|
20040
20154
|
});
|
|
20041
|
-
|
|
20042
|
-
return openBlock(), createElementBlock("div", {
|
|
20043
|
-
class: normalizeClass(_ctx.ns.b()),
|
|
20044
|
-
style: normalizeStyle({
|
|
20045
|
-
backgroundColor: _ctx.background
|
|
20046
|
-
})
|
|
20047
|
-
}, [
|
|
20048
|
-
createElementVNode("div", {
|
|
20049
|
-
class: normalizeClass(_ctx.ns.e("white"))
|
|
20050
|
-
}, null, 2),
|
|
20051
|
-
createElementVNode("div", {
|
|
20052
|
-
class: normalizeClass(_ctx.ns.e("black"))
|
|
20053
|
-
}, null, 2),
|
|
20054
|
-
createElementVNode("div", {
|
|
20055
|
-
class: normalizeClass(_ctx.ns.e("cursor")),
|
|
20056
|
-
style: normalizeStyle({
|
|
20057
|
-
top: _ctx.cursorTop + "px",
|
|
20058
|
-
left: _ctx.cursorLeft + "px"
|
|
20059
|
-
})
|
|
20060
|
-
}, [
|
|
20061
|
-
createElementVNode("div")
|
|
20062
|
-
], 6)
|
|
20063
|
-
], 6);
|
|
20064
|
-
}
|
|
20065
|
-
var SvPanel = /* @__PURE__ */ _export_sfc$2(_sfc_main$3F, [["render", _sfc_render$m], ["__file", "sv-panel.vue"]]);
|
|
20155
|
+
var SvPanel = /* @__PURE__ */ _export_sfc$2(_sfc_main$3F, [["__file", "sv-panel.vue"]]);
|
|
20066
20156
|
|
|
20067
20157
|
const useCommonColor = (props, emit) => {
|
|
20068
20158
|
const color = reactive(new Color({
|
|
@@ -20091,6 +20181,7 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
20091
20181
|
setup(__props, { expose, emit }) {
|
|
20092
20182
|
const props = __props;
|
|
20093
20183
|
const ns = useNamespace("color-picker-panel");
|
|
20184
|
+
const { formItem } = useFormItem();
|
|
20094
20185
|
const disabled = useFormDisabled();
|
|
20095
20186
|
const hueRef = ref();
|
|
20096
20187
|
const svRef = ref();
|
|
@@ -20104,6 +20195,12 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
20104
20195
|
customInput.value = color.value;
|
|
20105
20196
|
}
|
|
20106
20197
|
}
|
|
20198
|
+
function handleFocusout() {
|
|
20199
|
+
var _a;
|
|
20200
|
+
if (props.validateEvent) {
|
|
20201
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
20202
|
+
}
|
|
20203
|
+
}
|
|
20107
20204
|
function update() {
|
|
20108
20205
|
var _a, _b, _c;
|
|
20109
20206
|
(_a = hueRef.value) == null ? void 0 : _a.update();
|
|
@@ -20124,6 +20221,9 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
20124
20221
|
watch(() => color.value, (val) => {
|
|
20125
20222
|
emit(UPDATE_MODEL_EVENT, val);
|
|
20126
20223
|
customInput.value = val;
|
|
20224
|
+
if (props.validateEvent) {
|
|
20225
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
20226
|
+
}
|
|
20127
20227
|
});
|
|
20128
20228
|
provide(colorPickerPanelContextKey, {
|
|
20129
20229
|
currentColor: computed(() => color.value)
|
|
@@ -20135,7 +20235,8 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
20135
20235
|
});
|
|
20136
20236
|
return (_ctx, _cache) => {
|
|
20137
20237
|
return openBlock(), createElementBlock("div", {
|
|
20138
|
-
class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)])
|
|
20238
|
+
class: normalizeClass([unref(ns).b(), unref(ns).is("disabled", unref(disabled)), unref(ns).is("border", _ctx.border)]),
|
|
20239
|
+
onFocusout: handleFocusout
|
|
20139
20240
|
}, [
|
|
20140
20241
|
createElementVNode("div", {
|
|
20141
20242
|
class: normalizeClass(unref(ns).e("wrapper"))
|
|
@@ -20185,7 +20286,7 @@ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
|
|
|
20185
20286
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
20186
20287
|
renderSlot(_ctx.$slots, "footer")
|
|
20187
20288
|
], 2)
|
|
20188
|
-
],
|
|
20289
|
+
], 34);
|
|
20189
20290
|
};
|
|
20190
20291
|
}
|
|
20191
20292
|
});
|
|
@@ -20269,7 +20370,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
|
20269
20370
|
setShowPicker(false);
|
|
20270
20371
|
resetColor();
|
|
20271
20372
|
if (props.validateEvent) {
|
|
20272
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
20373
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
20273
20374
|
}
|
|
20274
20375
|
}
|
|
20275
20376
|
});
|
|
@@ -20343,7 +20444,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
|
20343
20444
|
emit(UPDATE_MODEL_EVENT, value);
|
|
20344
20445
|
emit(CHANGE_EVENT, value);
|
|
20345
20446
|
if (props.validateEvent) {
|
|
20346
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
20447
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
20347
20448
|
}
|
|
20348
20449
|
debounceSetShowPicker(false);
|
|
20349
20450
|
nextTick(() => {
|
|
@@ -20362,7 +20463,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
|
20362
20463
|
emit(UPDATE_MODEL_EVENT, valueOnClear.value);
|
|
20363
20464
|
emit(CHANGE_EVENT, valueOnClear.value);
|
|
20364
20465
|
if (props.modelValue !== valueOnClear.value && props.validateEvent) {
|
|
20365
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
20466
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
20366
20467
|
}
|
|
20367
20468
|
resetColor();
|
|
20368
20469
|
}
|
|
@@ -20462,6 +20563,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
|
|
|
20462
20563
|
ref: pickerPanelRef
|
|
20463
20564
|
}, unref(panelProps), {
|
|
20464
20565
|
border: false,
|
|
20566
|
+
"validate-event": false,
|
|
20465
20567
|
onKeydown: withKeys(handleEsc, ["esc"])
|
|
20466
20568
|
}), {
|
|
20467
20569
|
footer: withCtx(() => [
|
|
@@ -21226,7 +21328,7 @@ const _sfc_main$3w = /* @__PURE__ */ defineComponent({
|
|
|
21226
21328
|
handleChange();
|
|
21227
21329
|
pickerVisible.value = false;
|
|
21228
21330
|
hasJustTabExitedInput = false;
|
|
21229
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn()));
|
|
21331
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn(err)));
|
|
21230
21332
|
}
|
|
21231
21333
|
});
|
|
21232
21334
|
const hovering = ref(false);
|
|
@@ -21263,7 +21365,7 @@ const _sfc_main$3w = /* @__PURE__ */ defineComponent({
|
|
|
21263
21365
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
21264
21366
|
emit(CHANGE_EVENT, val);
|
|
21265
21367
|
isClear && (valueOnOpen.value = val);
|
|
21266
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn()));
|
|
21368
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err)));
|
|
21267
21369
|
}
|
|
21268
21370
|
};
|
|
21269
21371
|
const emitKeydown = (e) => {
|
|
@@ -21855,7 +21957,7 @@ const basicTimeSpinnerProps = buildProps({
|
|
|
21855
21957
|
|
|
21856
21958
|
const REPEAT_INTERVAL = 100;
|
|
21857
21959
|
const REPEAT_DELAY = 600;
|
|
21858
|
-
const SCOPE$
|
|
21960
|
+
const SCOPE$5 = "_RepeatClick";
|
|
21859
21961
|
const vRepeatClick = {
|
|
21860
21962
|
beforeMount(el, binding) {
|
|
21861
21963
|
const value = binding.value;
|
|
@@ -21885,13 +21987,13 @@ const vRepeatClick = {
|
|
|
21885
21987
|
}, interval);
|
|
21886
21988
|
}, delay);
|
|
21887
21989
|
};
|
|
21888
|
-
el[SCOPE$
|
|
21990
|
+
el[SCOPE$5] = { start, clear };
|
|
21889
21991
|
el.addEventListener("mousedown", start);
|
|
21890
21992
|
},
|
|
21891
21993
|
unmounted(el) {
|
|
21892
|
-
if (!el[SCOPE$
|
|
21994
|
+
if (!el[SCOPE$5])
|
|
21893
21995
|
return;
|
|
21894
|
-
const { start, clear } = el[SCOPE$
|
|
21996
|
+
const { start, clear } = el[SCOPE$5];
|
|
21895
21997
|
if (start) {
|
|
21896
21998
|
el.removeEventListener("mousedown", start);
|
|
21897
21999
|
}
|
|
@@ -21899,7 +22001,7 @@ const vRepeatClick = {
|
|
|
21899
22001
|
clear();
|
|
21900
22002
|
document.removeEventListener("mouseup", clear);
|
|
21901
22003
|
}
|
|
21902
|
-
el[SCOPE$
|
|
22004
|
+
el[SCOPE$5] = null;
|
|
21903
22005
|
}
|
|
21904
22006
|
};
|
|
21905
22007
|
|
|
@@ -23370,7 +23472,7 @@ const useBasicDateTableDOM = (props, {
|
|
|
23370
23472
|
const { t } = useLocale();
|
|
23371
23473
|
const tableKls = computed(() => [
|
|
23372
23474
|
ns.b(),
|
|
23373
|
-
|
|
23475
|
+
ns.is("week-mode", props.selectionMode === "week" && !props.disabled)
|
|
23374
23476
|
]);
|
|
23375
23477
|
const tableLabel = computed(() => t("el.datepicker.dateTablePrompt"));
|
|
23376
23478
|
const getCellClasses = (cell) => {
|
|
@@ -23517,7 +23619,7 @@ const _sfc_main$3s = /* @__PURE__ */ defineComponent({
|
|
|
23517
23619
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey) => {
|
|
23518
23620
|
return openBlock(), createElementBlock("tr", {
|
|
23519
23621
|
key: rowKey,
|
|
23520
|
-
class: normalizeClass(unref(getRowKls)(row[1]))
|
|
23622
|
+
class: normalizeClass(unref(getRowKls)(_ctx.showWeekNumber ? row[2] : row[1]))
|
|
23521
23623
|
}, [
|
|
23522
23624
|
(openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, columnKey) => {
|
|
23523
23625
|
return openBlock(), createElementBlock("td", {
|
|
@@ -25141,6 +25243,7 @@ const _sfc_main$3o = /* @__PURE__ */ defineComponent({
|
|
|
25141
25243
|
if (type === "min") {
|
|
25142
25244
|
minTimePickerVisible.value = true;
|
|
25143
25245
|
minDate.value = (minDate.value || leftDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
|
|
25246
|
+
leftDate.value = minDate.value;
|
|
25144
25247
|
} else {
|
|
25145
25248
|
maxTimePickerVisible.value = true;
|
|
25146
25249
|
maxDate.value = (maxDate.value || rightDate.value).hour(parsedValueD.hour()).minute(parsedValueD.minute()).second(parsedValueD.second());
|
|
@@ -25818,13 +25921,17 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
25818
25921
|
handleRangeConfirm();
|
|
25819
25922
|
};
|
|
25820
25923
|
const handleClear = () => {
|
|
25924
|
+
let valueOnClear = null;
|
|
25925
|
+
if (pickerBase == null ? void 0 : pickerBase.emptyValues) {
|
|
25926
|
+
valueOnClear = pickerBase.emptyValues.valueOnClear.value;
|
|
25927
|
+
}
|
|
25821
25928
|
leftDate.value = getDefaultValue(unref(defaultValue), {
|
|
25822
25929
|
lang: unref(lang),
|
|
25823
25930
|
unit: "year",
|
|
25824
25931
|
unlinkPanels: props.unlinkPanels
|
|
25825
25932
|
})[0];
|
|
25826
25933
|
rightDate.value = leftDate.value.add(1, "year");
|
|
25827
|
-
emit("pick",
|
|
25934
|
+
emit("pick", valueOnClear);
|
|
25828
25935
|
};
|
|
25829
25936
|
const parseUserInput = (value) => {
|
|
25830
25937
|
return correctlyParseUserInput(value, format.value, lang.value, isDefaultFormat);
|
|
@@ -25909,7 +26016,7 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
25909
26016
|
disabled: !unref(enableYearArrow) || _ctx.disabled,
|
|
25910
26017
|
class: normalizeClass([[
|
|
25911
26018
|
unref(ppNs).e("icon-btn"),
|
|
25912
|
-
|
|
26019
|
+
unref(ppNs).is("disabled", !unref(enableYearArrow))
|
|
25913
26020
|
], "d-arrow-right"]),
|
|
25914
26021
|
onClick: unref(leftNextYear)
|
|
25915
26022
|
}, [
|
|
@@ -25948,7 +26055,10 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
|
|
|
25948
26055
|
key: 0,
|
|
25949
26056
|
type: "button",
|
|
25950
26057
|
disabled: !unref(enableYearArrow) || _ctx.disabled,
|
|
25951
|
-
class: normalizeClass([[
|
|
26058
|
+
class: normalizeClass([[
|
|
26059
|
+
unref(ppNs).e("icon-btn"),
|
|
26060
|
+
unref(ppNs).is("disabled", !unref(enableYearArrow))
|
|
26061
|
+
], "d-arrow-left"]),
|
|
25952
26062
|
onClick: unref(rightPrevYear)
|
|
25953
26063
|
}, [
|
|
25954
26064
|
renderSlot(_ctx.$slots, "prev-year", {}, () => [
|
|
@@ -26127,7 +26237,7 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
26127
26237
|
arrowLeftBtn: [ppNs.e("icon-btn"), "d-arrow-left"],
|
|
26128
26238
|
arrowRightBtn: [
|
|
26129
26239
|
ppNs.e("icon-btn"),
|
|
26130
|
-
|
|
26240
|
+
ppNs.is("disabled", !enableYearArrow.value),
|
|
26131
26241
|
"d-arrow-right"
|
|
26132
26242
|
]
|
|
26133
26243
|
};
|
|
@@ -26137,7 +26247,7 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
26137
26247
|
content: [ppNs.e("content"), drpNs.e("content"), "is-right"],
|
|
26138
26248
|
arrowLeftBtn: [
|
|
26139
26249
|
ppNs.e("icon-btn"),
|
|
26140
|
-
|
|
26250
|
+
ppNs.is("disabled", !enableYearArrow.value),
|
|
26141
26251
|
"d-arrow-left"
|
|
26142
26252
|
],
|
|
26143
26253
|
arrowRightBtn: [ppNs.e("icon-btn"), "d-arrow-right"]
|
|
@@ -26166,6 +26276,10 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
26166
26276
|
return isValidRange(date) && (disabledDate ? !disabledDate(date[0].toDate()) && !disabledDate(date[1].toDate()) : true);
|
|
26167
26277
|
};
|
|
26168
26278
|
const handleClear = () => {
|
|
26279
|
+
let valueOnClear = null;
|
|
26280
|
+
if (pickerBase == null ? void 0 : pickerBase.emptyValues) {
|
|
26281
|
+
valueOnClear = pickerBase.emptyValues.valueOnClear.value;
|
|
26282
|
+
}
|
|
26169
26283
|
const defaultArr = getDefaultValue(unref(defaultValue), {
|
|
26170
26284
|
lang: unref(lang),
|
|
26171
26285
|
step,
|
|
@@ -26174,7 +26288,7 @@ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
|
|
|
26174
26288
|
});
|
|
26175
26289
|
leftDate.value = defaultArr[0];
|
|
26176
26290
|
rightDate.value = defaultArr[1];
|
|
26177
|
-
emit("pick",
|
|
26291
|
+
emit("pick", valueOnClear);
|
|
26178
26292
|
};
|
|
26179
26293
|
function sortDates(minDate2, maxDate2) {
|
|
26180
26294
|
if (props.unlinkPanels && maxDate2) {
|
|
@@ -26682,7 +26796,7 @@ const descriptionProps = buildProps({
|
|
|
26682
26796
|
}
|
|
26683
26797
|
});
|
|
26684
26798
|
|
|
26685
|
-
const COMPONENT_NAME$
|
|
26799
|
+
const COMPONENT_NAME$h = "ElDescriptionsItem";
|
|
26686
26800
|
|
|
26687
26801
|
const __default__$13 = defineComponent({
|
|
26688
26802
|
name: "ElDescriptions"
|
|
@@ -26714,7 +26828,7 @@ const _sfc_main$3k = /* @__PURE__ */ defineComponent({
|
|
|
26714
26828
|
return [];
|
|
26715
26829
|
const children = flattedChildren(slots.default()).filter((node) => {
|
|
26716
26830
|
var _a;
|
|
26717
|
-
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$
|
|
26831
|
+
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$h;
|
|
26718
26832
|
});
|
|
26719
26833
|
const rows = [];
|
|
26720
26834
|
let temp = [];
|
|
@@ -26850,7 +26964,7 @@ const descriptionItemProps = buildProps({
|
|
|
26850
26964
|
}
|
|
26851
26965
|
});
|
|
26852
26966
|
const DescriptionItem = defineComponent({
|
|
26853
|
-
name: COMPONENT_NAME$
|
|
26967
|
+
name: COMPONENT_NAME$h,
|
|
26854
26968
|
props: descriptionItemProps
|
|
26855
26969
|
});
|
|
26856
26970
|
|
|
@@ -27234,9 +27348,6 @@ const useLockscreen = (trigger, options = {}) => {
|
|
|
27234
27348
|
}
|
|
27235
27349
|
const ns = options.ns || useNamespace("popup");
|
|
27236
27350
|
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
27237
|
-
if (!isClient || hasClass(document.body, hiddenCls.value)) {
|
|
27238
|
-
return;
|
|
27239
|
-
}
|
|
27240
27351
|
let scrollBarWidth = 0;
|
|
27241
27352
|
let withoutHiddenClass = false;
|
|
27242
27353
|
let bodyWidth = "0";
|
|
@@ -27270,6 +27381,7 @@ const useLockscreen = (trigger, options = {}) => {
|
|
|
27270
27381
|
onScopeDispose(() => cleanup());
|
|
27271
27382
|
};
|
|
27272
27383
|
|
|
27384
|
+
const COMPONENT_NAME$g = "ElDialog";
|
|
27273
27385
|
const useDialog = (props, targetRef) => {
|
|
27274
27386
|
var _a;
|
|
27275
27387
|
const instance = getCurrentInstance();
|
|
@@ -27353,6 +27465,7 @@ const useDialog = (props, targetRef) => {
|
|
|
27353
27465
|
config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
|
|
27354
27466
|
if (!config2.name) {
|
|
27355
27467
|
config2.name = DEFAULT_DIALOG_TRANSITION;
|
|
27468
|
+
debugWarn(COMPONENT_NAME$g, `transition.name is missing when using object syntax, fallback to '${DEFAULT_DIALOG_TRANSITION}'`);
|
|
27356
27469
|
}
|
|
27357
27470
|
return config2;
|
|
27358
27471
|
}
|
|
@@ -27855,6 +27968,7 @@ const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
|
27855
27968
|
handleClose
|
|
27856
27969
|
} = useDialog(props, drawerRef);
|
|
27857
27970
|
const { isHorizontal, size, isResizing } = useResizable(props, draggerRef);
|
|
27971
|
+
const penetrable = computed(() => props.modalPenetrable && !props.modal);
|
|
27858
27972
|
expose({
|
|
27859
27973
|
handleClose,
|
|
27860
27974
|
afterEnter,
|
|
@@ -27878,7 +27992,12 @@ const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
|
27878
27992
|
return [
|
|
27879
27993
|
withDirectives(createVNode(unref(ElOverlay), {
|
|
27880
27994
|
mask: _ctx.modal,
|
|
27881
|
-
"overlay-class": [
|
|
27995
|
+
"overlay-class": [
|
|
27996
|
+
unref(ns).is("drawer"),
|
|
27997
|
+
(_a = _ctx.modalClass) != null ? _a : "",
|
|
27998
|
+
`${unref(ns).namespace.value}-modal-drawer`,
|
|
27999
|
+
unref(ns).is("penetrable", unref(penetrable))
|
|
28000
|
+
],
|
|
27882
28001
|
"z-index": unref(zIndex),
|
|
27883
28002
|
onClick: unref(onModalClick)
|
|
27884
28003
|
}, {
|
|
@@ -28278,7 +28397,13 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28278
28397
|
var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc$2(_sfc_main$3c, [["render", _sfc_render$i], ["__file", "roving-focus-group.vue"]]);
|
|
28279
28398
|
|
|
28280
28399
|
const dropdownProps = buildProps({
|
|
28281
|
-
trigger:
|
|
28400
|
+
trigger: {
|
|
28401
|
+
...useTooltipTriggerProps.trigger,
|
|
28402
|
+
type: definePropType([
|
|
28403
|
+
String,
|
|
28404
|
+
Array
|
|
28405
|
+
])
|
|
28406
|
+
},
|
|
28282
28407
|
triggerKeys: {
|
|
28283
28408
|
type: definePropType(Array),
|
|
28284
28409
|
default: () => [
|
|
@@ -29188,6 +29313,7 @@ const formEmits = {
|
|
|
29188
29313
|
validate: (prop, isValid, message) => (isArray$2(prop) || isString$4(prop)) && isBoolean$1(isValid) && isString$4(message)
|
|
29189
29314
|
};
|
|
29190
29315
|
|
|
29316
|
+
const SCOPE$4 = "ElForm";
|
|
29191
29317
|
function useFormLabelWidth() {
|
|
29192
29318
|
const potentialLabelWidthArr = ref([]);
|
|
29193
29319
|
const autoLabelWidth = computed(() => {
|
|
@@ -29198,7 +29324,9 @@ function useFormLabelWidth() {
|
|
|
29198
29324
|
});
|
|
29199
29325
|
function getLabelWidthIndex(width) {
|
|
29200
29326
|
const index = potentialLabelWidthArr.value.indexOf(width);
|
|
29201
|
-
if (index === -1 && autoLabelWidth.value === "0")
|
|
29327
|
+
if (index === -1 && autoLabelWidth.value === "0") {
|
|
29328
|
+
debugWarn(SCOPE$4, `unexpected width ${width}`);
|
|
29329
|
+
}
|
|
29202
29330
|
return index;
|
|
29203
29331
|
}
|
|
29204
29332
|
function registerLabelWidth(val, oldVal) {
|
|
@@ -29264,6 +29392,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
29264
29392
|
};
|
|
29265
29393
|
const resetFields = (properties = []) => {
|
|
29266
29394
|
if (!props.model) {
|
|
29395
|
+
debugWarn(COMPONENT_NAME$f, "model is required for resetFields to work.");
|
|
29267
29396
|
return;
|
|
29268
29397
|
}
|
|
29269
29398
|
filterFields(fields, properties).forEach((field) => field.resetField());
|
|
@@ -29273,6 +29402,9 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
29273
29402
|
};
|
|
29274
29403
|
const isValidatable = computed(() => {
|
|
29275
29404
|
const hasModel = !!props.model;
|
|
29405
|
+
if (!hasModel) {
|
|
29406
|
+
debugWarn(COMPONENT_NAME$f, "model is required for validate to work.");
|
|
29407
|
+
}
|
|
29276
29408
|
return hasModel;
|
|
29277
29409
|
});
|
|
29278
29410
|
const obtainValidateFields = (props2) => {
|
|
@@ -29280,6 +29412,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
29280
29412
|
return [];
|
|
29281
29413
|
const filteredFields = filterFields(fields, props2);
|
|
29282
29414
|
if (!filteredFields.length) {
|
|
29415
|
+
debugWarn(COMPONENT_NAME$f, "please pass correct props!");
|
|
29283
29416
|
return [];
|
|
29284
29417
|
}
|
|
29285
29418
|
return filteredFields;
|
|
@@ -29340,7 +29473,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
|
|
|
29340
29473
|
};
|
|
29341
29474
|
watch(() => props.rules, () => {
|
|
29342
29475
|
if (props.validateOnRuleChange) {
|
|
29343
|
-
validate().catch((err) => debugWarn());
|
|
29476
|
+
validate().catch((err) => debugWarn(err));
|
|
29344
29477
|
}
|
|
29345
29478
|
}, { deep: true, flush: "post" });
|
|
29346
29479
|
provide(formContextKey, reactive({
|
|
@@ -32033,7 +32166,9 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
32033
32166
|
const numPrecision = computed(() => {
|
|
32034
32167
|
const stepPrecision = getPrecision(props.step);
|
|
32035
32168
|
if (!isUndefined$1(props.precision)) {
|
|
32036
|
-
if (stepPrecision > props.precision)
|
|
32169
|
+
if (stepPrecision > props.precision) {
|
|
32170
|
+
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
|
32171
|
+
}
|
|
32037
32172
|
return props.precision;
|
|
32038
32173
|
} else {
|
|
32039
32174
|
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
@@ -32094,8 +32229,10 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
32094
32229
|
if (!isNumber$2(val))
|
|
32095
32230
|
return data.currentValue;
|
|
32096
32231
|
if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
|
|
32232
|
+
debugWarn("InputNumber", "The value has reached the maximum safe integer limit.");
|
|
32097
32233
|
return val;
|
|
32098
32234
|
} else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
|
|
32235
|
+
debugWarn("InputNumber", "The value has reached the minimum safe integer limit.");
|
|
32099
32236
|
return val;
|
|
32100
32237
|
}
|
|
32101
32238
|
return toPrecision(val + props.step * coefficient);
|
|
@@ -32184,7 +32321,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
32184
32321
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
32185
32322
|
}
|
|
32186
32323
|
if (props.validateEvent) {
|
|
32187
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
32324
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
32188
32325
|
}
|
|
32189
32326
|
data.currentValue = newVal;
|
|
32190
32327
|
};
|
|
@@ -32221,7 +32358,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
32221
32358
|
}
|
|
32222
32359
|
emit("blur", event);
|
|
32223
32360
|
if (props.validateEvent) {
|
|
32224
|
-
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn());
|
|
32361
|
+
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
32225
32362
|
}
|
|
32226
32363
|
};
|
|
32227
32364
|
const setCurrentValueToModelValue = () => {
|
|
@@ -32532,6 +32669,20 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
32532
32669
|
break;
|
|
32533
32670
|
}
|
|
32534
32671
|
};
|
|
32672
|
+
const handleKeyup = (event) => {
|
|
32673
|
+
if (isComposing.value || !isAndroid())
|
|
32674
|
+
return;
|
|
32675
|
+
const code = getEventCode(event);
|
|
32676
|
+
switch (code) {
|
|
32677
|
+
case EVENT_CODE.space:
|
|
32678
|
+
if (props.trigger === EVENT_CODE.space) {
|
|
32679
|
+
event.preventDefault();
|
|
32680
|
+
event.stopPropagation();
|
|
32681
|
+
handleAddTag();
|
|
32682
|
+
}
|
|
32683
|
+
break;
|
|
32684
|
+
}
|
|
32685
|
+
};
|
|
32535
32686
|
const handleAddTag = () => {
|
|
32536
32687
|
var _a;
|
|
32537
32688
|
const value = (_a = inputValue.value) == null ? void 0 : _a.trim();
|
|
@@ -32585,7 +32736,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
32585
32736
|
inputValue.value = void 0;
|
|
32586
32737
|
}
|
|
32587
32738
|
if (props.validateEvent) {
|
|
32588
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
32739
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
32589
32740
|
}
|
|
32590
32741
|
}
|
|
32591
32742
|
});
|
|
@@ -32598,7 +32749,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
32598
32749
|
watch(() => props.modelValue, () => {
|
|
32599
32750
|
var _a;
|
|
32600
32751
|
if (props.validateEvent) {
|
|
32601
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn());
|
|
32752
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn(err));
|
|
32602
32753
|
}
|
|
32603
32754
|
});
|
|
32604
32755
|
return {
|
|
@@ -32619,6 +32770,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
32619
32770
|
handleDragged,
|
|
32620
32771
|
handleInput,
|
|
32621
32772
|
handleKeydown,
|
|
32773
|
+
handleKeyup,
|
|
32622
32774
|
handleAddTag,
|
|
32623
32775
|
handleRemoveTag,
|
|
32624
32776
|
handleClear,
|
|
@@ -32841,6 +32993,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
|
|
|
32841
32993
|
handleDragged,
|
|
32842
32994
|
handleInput,
|
|
32843
32995
|
handleKeydown,
|
|
32996
|
+
handleKeyup,
|
|
32844
32997
|
handleRemoveTag,
|
|
32845
32998
|
handleClear,
|
|
32846
32999
|
handleCompositionStart,
|
|
@@ -33003,8 +33156,9 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
|
|
|
33003
33156
|
onCompositionupdate: unref(handleCompositionUpdate),
|
|
33004
33157
|
onCompositionend: unref(handleCompositionEnd),
|
|
33005
33158
|
onInput: unref(handleInput),
|
|
33006
|
-
|
|
33007
|
-
|
|
33159
|
+
onKeydown: unref(handleKeydown),
|
|
33160
|
+
onKeyup: unref(handleKeyup)
|
|
33161
|
+
}), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown", "onKeyup"]), [
|
|
33008
33162
|
[vModelText, unref(inputValue)]
|
|
33009
33163
|
]),
|
|
33010
33164
|
createElementVNode("span", {
|
|
@@ -34024,7 +34178,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
|
|
|
34024
34178
|
emits: menuItemEmits,
|
|
34025
34179
|
setup(__props, { expose, emit }) {
|
|
34026
34180
|
const props = __props;
|
|
34027
|
-
isPropAbsent(props.index) && debugWarn();
|
|
34181
|
+
isPropAbsent(props.index) && debugWarn(COMPONENT_NAME$c, 'Missing required prop: "index"');
|
|
34028
34182
|
const instance = getCurrentInstance();
|
|
34029
34183
|
const rootMenu = inject(MENU_INJECTION_KEY);
|
|
34030
34184
|
const nsMenu = useNamespace("menu");
|
|
@@ -34180,10 +34334,10 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
|
|
|
34180
34334
|
return openBlock(), createElementBlock("div", {
|
|
34181
34335
|
class: normalizeClass([
|
|
34182
34336
|
unref(ns).b(),
|
|
34337
|
+
unref(ns).is("contentful", !!_ctx.$slots.default),
|
|
34183
34338
|
{
|
|
34184
34339
|
[unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
|
|
34185
|
-
[unref(ns).m("has-extra")]: !!_ctx.$slots.extra
|
|
34186
|
-
[unref(ns).is("contentful")]: !!_ctx.$slots.default
|
|
34340
|
+
[unref(ns).m("has-extra")]: !!_ctx.$slots.extra
|
|
34187
34341
|
}
|
|
34188
34342
|
])
|
|
34189
34343
|
}, [
|
|
@@ -34649,6 +34803,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
34649
34803
|
const scrollbarRef = ref();
|
|
34650
34804
|
const expanded = ref(false);
|
|
34651
34805
|
const hoverOption = ref();
|
|
34806
|
+
const debouncing = ref(false);
|
|
34652
34807
|
const { form, formItem } = useFormItem();
|
|
34653
34808
|
const { inputId } = useFormItemInputId(props, {
|
|
34654
34809
|
formItemContext: formItem
|
|
@@ -34680,7 +34835,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
34680
34835
|
expanded.value = false;
|
|
34681
34836
|
states.menuVisibleOnFocus = false;
|
|
34682
34837
|
if (props.validateEvent) {
|
|
34683
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
34838
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
34684
34839
|
}
|
|
34685
34840
|
}
|
|
34686
34841
|
});
|
|
@@ -34698,7 +34853,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
34698
34853
|
const iconReverse = computed(() => nsSelect.is("reverse", !!(iconComponent.value && expanded.value)));
|
|
34699
34854
|
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
34700
34855
|
const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
|
34701
|
-
const debounce
|
|
34856
|
+
const debounce = computed(() => props.remote ? props.debounce : 0);
|
|
34702
34857
|
const isRemoteSearchEmpty = computed(() => props.remote && !states.inputValue && states.options.size === 0);
|
|
34703
34858
|
const emptyText = computed(() => {
|
|
34704
34859
|
if (props.loading) {
|
|
@@ -34748,7 +34903,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
34748
34903
|
const collapseTagSize = computed(() => ["small"].includes(selectSize.value) ? "small" : "default");
|
|
34749
34904
|
const dropdownMenuVisible = computed({
|
|
34750
34905
|
get() {
|
|
34751
|
-
return expanded.value && (props.loading || !isRemoteSearchEmpty.value);
|
|
34906
|
+
return expanded.value && (props.loading || !isRemoteSearchEmpty.value) && (!debouncing.value || !isEmpty(states.previousQuery));
|
|
34752
34907
|
},
|
|
34753
34908
|
set(val) {
|
|
34754
34909
|
expanded.value = val;
|
|
@@ -34776,7 +34931,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
34776
34931
|
}
|
|
34777
34932
|
setSelected();
|
|
34778
34933
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
34779
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
34934
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
|
|
34780
34935
|
}
|
|
34781
34936
|
}, {
|
|
34782
34937
|
flush: "post",
|
|
@@ -34912,14 +35067,16 @@ const useSelect$2 = (props, emit) => {
|
|
|
34912
35067
|
const onInput = (event) => {
|
|
34913
35068
|
states.inputValue = event.target.value;
|
|
34914
35069
|
if (props.remote) {
|
|
35070
|
+
debouncing.value = true;
|
|
34915
35071
|
debouncedOnInputChange();
|
|
34916
35072
|
} else {
|
|
34917
35073
|
return onInputChange();
|
|
34918
35074
|
}
|
|
34919
35075
|
};
|
|
34920
|
-
const debouncedOnInputChange =
|
|
35076
|
+
const debouncedOnInputChange = useDebounceFn(() => {
|
|
34921
35077
|
onInputChange();
|
|
34922
|
-
|
|
35078
|
+
debouncing.value = false;
|
|
35079
|
+
}, debounce);
|
|
34923
35080
|
const emitChange = (val) => {
|
|
34924
35081
|
if (!isEqual$1(props.modelValue, val)) {
|
|
34925
35082
|
emit(CHANGE_EVENT, val);
|
|
@@ -35018,7 +35175,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
35018
35175
|
var _a, _b, _c, _d, _e;
|
|
35019
35176
|
const targetOption = isArray$2(option) ? option[0] : option;
|
|
35020
35177
|
let target = null;
|
|
35021
|
-
if (targetOption == null ? void 0 : targetOption.value) {
|
|
35178
|
+
if (!isNil(targetOption == null ? void 0 : targetOption.value)) {
|
|
35022
35179
|
const options = optionsArray.value.filter((item) => item.value === targetOption.value);
|
|
35023
35180
|
if (options.length > 0) {
|
|
35024
35181
|
target = options[0].$el;
|
|
@@ -35149,6 +35306,78 @@ const useSelect$2 = (props, emit) => {
|
|
|
35149
35306
|
nextTick(() => scrollToOption(hoverOption.value));
|
|
35150
35307
|
}
|
|
35151
35308
|
};
|
|
35309
|
+
const findFocusableIndex = (arr, start, step, len) => {
|
|
35310
|
+
for (let i = start; i >= 0 && i < len; i += step) {
|
|
35311
|
+
const obj = arr[i];
|
|
35312
|
+
if (!(obj == null ? void 0 : obj.isDisabled) && (obj == null ? void 0 : obj.visible)) {
|
|
35313
|
+
return i;
|
|
35314
|
+
}
|
|
35315
|
+
}
|
|
35316
|
+
return null;
|
|
35317
|
+
};
|
|
35318
|
+
const focusOption = (targetIndex, mode) => {
|
|
35319
|
+
var _a;
|
|
35320
|
+
const len = states.options.size;
|
|
35321
|
+
if (len === 0)
|
|
35322
|
+
return;
|
|
35323
|
+
const start = clamp$2(targetIndex, 0, len - 1);
|
|
35324
|
+
const options = optionsArray.value;
|
|
35325
|
+
const direction = mode === "up" ? -1 : 1;
|
|
35326
|
+
const newIndex = (_a = findFocusableIndex(options, start, direction, len)) != null ? _a : findFocusableIndex(options, start - direction, -direction, len);
|
|
35327
|
+
if (newIndex != null) {
|
|
35328
|
+
states.hoveringIndex = newIndex;
|
|
35329
|
+
nextTick(() => scrollToOption(hoverOption.value));
|
|
35330
|
+
}
|
|
35331
|
+
};
|
|
35332
|
+
const handleKeydown = (e) => {
|
|
35333
|
+
const code = getEventCode(e);
|
|
35334
|
+
let isPreventDefault = true;
|
|
35335
|
+
switch (code) {
|
|
35336
|
+
case EVENT_CODE.up:
|
|
35337
|
+
navigateOptions("prev");
|
|
35338
|
+
break;
|
|
35339
|
+
case EVENT_CODE.down:
|
|
35340
|
+
navigateOptions("next");
|
|
35341
|
+
break;
|
|
35342
|
+
case EVENT_CODE.enter:
|
|
35343
|
+
selectOption();
|
|
35344
|
+
break;
|
|
35345
|
+
case EVENT_CODE.esc:
|
|
35346
|
+
handleEsc();
|
|
35347
|
+
break;
|
|
35348
|
+
case EVENT_CODE.backspace:
|
|
35349
|
+
isPreventDefault = false;
|
|
35350
|
+
deletePrevTag(e);
|
|
35351
|
+
return;
|
|
35352
|
+
case EVENT_CODE.home:
|
|
35353
|
+
if (!expanded.value)
|
|
35354
|
+
return;
|
|
35355
|
+
focusOption(0, "down");
|
|
35356
|
+
break;
|
|
35357
|
+
case EVENT_CODE.end:
|
|
35358
|
+
if (!expanded.value)
|
|
35359
|
+
return;
|
|
35360
|
+
focusOption(states.options.size - 1, "up");
|
|
35361
|
+
break;
|
|
35362
|
+
case EVENT_CODE.pageUp:
|
|
35363
|
+
if (!expanded.value)
|
|
35364
|
+
return;
|
|
35365
|
+
focusOption(states.hoveringIndex - 10, "up");
|
|
35366
|
+
break;
|
|
35367
|
+
case EVENT_CODE.pageDown:
|
|
35368
|
+
if (!expanded.value)
|
|
35369
|
+
return;
|
|
35370
|
+
focusOption(states.hoveringIndex + 10, "down");
|
|
35371
|
+
break;
|
|
35372
|
+
default:
|
|
35373
|
+
isPreventDefault = false;
|
|
35374
|
+
break;
|
|
35375
|
+
}
|
|
35376
|
+
if (isPreventDefault) {
|
|
35377
|
+
e.preventDefault();
|
|
35378
|
+
e.stopPropagation();
|
|
35379
|
+
}
|
|
35380
|
+
};
|
|
35152
35381
|
const getGapWidth = () => {
|
|
35153
35382
|
if (!selectionRef.value)
|
|
35154
35383
|
return 0;
|
|
@@ -35223,6 +35452,7 @@ const useSelect$2 = (props, emit) => {
|
|
|
35223
35452
|
handleCompositionStart,
|
|
35224
35453
|
handleCompositionUpdate,
|
|
35225
35454
|
handleCompositionEnd,
|
|
35455
|
+
handleKeydown,
|
|
35226
35456
|
onOptionCreate,
|
|
35227
35457
|
onOptionDestroy,
|
|
35228
35458
|
handleMenuEnter,
|
|
@@ -35336,6 +35566,10 @@ const selectProps = buildProps({
|
|
|
35336
35566
|
default: () => ({})
|
|
35337
35567
|
},
|
|
35338
35568
|
remote: Boolean,
|
|
35569
|
+
debounce: {
|
|
35570
|
+
type: Number,
|
|
35571
|
+
default: 300
|
|
35572
|
+
},
|
|
35339
35573
|
loadingText: String,
|
|
35340
35574
|
noMatchText: String,
|
|
35341
35575
|
noDataText: String,
|
|
@@ -35528,6 +35762,7 @@ const _sfc_main$2Q = defineComponent({
|
|
|
35528
35762
|
],
|
|
35529
35763
|
setup(props, { emit, slots }) {
|
|
35530
35764
|
const instance = getCurrentInstance();
|
|
35765
|
+
const originalWarnHandler = instance.appContext.config.warnHandler;
|
|
35531
35766
|
instance.appContext.config.warnHandler = (...args) => {
|
|
35532
35767
|
if (!args[0] || args[0].includes('Slot "default" invoked outside of the render function')) {
|
|
35533
35768
|
return;
|
|
@@ -35589,7 +35824,7 @@ const _sfc_main$2Q = defineComponent({
|
|
|
35589
35824
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), modelValue.value];
|
|
35590
35825
|
}, () => {
|
|
35591
35826
|
var _a;
|
|
35592
|
-
if (props.persistent) {
|
|
35827
|
+
if (props.persistent || API.states.options.size > 0) {
|
|
35593
35828
|
return;
|
|
35594
35829
|
}
|
|
35595
35830
|
manuallyRenderSlots((_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
@@ -35613,7 +35848,7 @@ const _sfc_main$2Q = defineComponent({
|
|
|
35613
35848
|
return API.states.selected.map((i) => i.currentLabel);
|
|
35614
35849
|
});
|
|
35615
35850
|
onBeforeUnmount(() => {
|
|
35616
|
-
instance.appContext.config.warnHandler =
|
|
35851
|
+
instance.appContext.config.warnHandler = originalWarnHandler;
|
|
35617
35852
|
});
|
|
35618
35853
|
return {
|
|
35619
35854
|
...API,
|
|
@@ -35833,13 +36068,7 @@ function _sfc_render$9(_ctx, _cache) {
|
|
|
35833
36068
|
"aria-label": _ctx.ariaLabel,
|
|
35834
36069
|
"aria-autocomplete": "none",
|
|
35835
36070
|
"aria-haspopup": "listbox",
|
|
35836
|
-
onKeydown:
|
|
35837
|
-
withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
|
|
35838
|
-
withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
|
|
35839
|
-
withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
|
|
35840
|
-
withKeys(withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
35841
|
-
withKeys(withModifiers(_ctx.deletePrevTag, ["stop"]), ["delete"])
|
|
35842
|
-
],
|
|
36071
|
+
onKeydown: _ctx.handleKeydown,
|
|
35843
36072
|
onCompositionstart: _ctx.handleCompositionStart,
|
|
35844
36073
|
onCompositionupdate: _ctx.handleCompositionUpdate,
|
|
35845
36074
|
onCompositionend: _ctx.handleCompositionEnd,
|
|
@@ -37930,6 +38159,10 @@ const selectV2Props = buildProps({
|
|
|
37930
38159
|
default: () => ({})
|
|
37931
38160
|
},
|
|
37932
38161
|
remote: Boolean,
|
|
38162
|
+
debounce: {
|
|
38163
|
+
type: Number,
|
|
38164
|
+
default: 300
|
|
38165
|
+
},
|
|
37933
38166
|
size: useSizeProp,
|
|
37934
38167
|
props: {
|
|
37935
38168
|
type: definePropType(Object),
|
|
@@ -39382,6 +39615,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39382
39615
|
isBeforeHide: false
|
|
39383
39616
|
});
|
|
39384
39617
|
const popperSize = ref(-1);
|
|
39618
|
+
const debouncing = ref(false);
|
|
39385
39619
|
const selectRef = ref();
|
|
39386
39620
|
const selectionRef = ref();
|
|
39387
39621
|
const tooltipRef = ref();
|
|
@@ -39418,7 +39652,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39418
39652
|
expanded.value = false;
|
|
39419
39653
|
states.menuVisibleOnFocus = false;
|
|
39420
39654
|
if (props.validateEvent) {
|
|
39421
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
39655
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(err));
|
|
39422
39656
|
}
|
|
39423
39657
|
}
|
|
39424
39658
|
});
|
|
@@ -39452,13 +39686,12 @@ const useSelect$1 = (props, emit) => {
|
|
|
39452
39686
|
return;
|
|
39453
39687
|
return ValidateComponentsMap[validateState.value];
|
|
39454
39688
|
});
|
|
39455
|
-
const debounce
|
|
39689
|
+
const debounce = computed(() => props.remote ? props.debounce : 0);
|
|
39690
|
+
const isRemoteSearchEmpty = computed(() => props.remote && !states.inputValue && !hasOptions.value);
|
|
39456
39691
|
const emptyText = computed(() => {
|
|
39457
39692
|
if (props.loading) {
|
|
39458
39693
|
return props.loadingText || t("el.select.loading");
|
|
39459
39694
|
} else {
|
|
39460
|
-
if (props.remote && !states.inputValue && !hasOptions.value)
|
|
39461
|
-
return false;
|
|
39462
39695
|
if (props.filterable && states.inputValue && hasOptions.value && filteredOptions.value.length === 0) {
|
|
39463
39696
|
return props.noMatchText || t("el.select.noMatch");
|
|
39464
39697
|
}
|
|
@@ -39596,7 +39829,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39596
39829
|
});
|
|
39597
39830
|
const dropdownMenuVisible = computed({
|
|
39598
39831
|
get() {
|
|
39599
|
-
return expanded.value &&
|
|
39832
|
+
return expanded.value && (props.loading || !isRemoteSearchEmpty.value) && (!debouncing.value || !isEmpty(states.previousQuery));
|
|
39600
39833
|
},
|
|
39601
39834
|
set(val) {
|
|
39602
39835
|
expanded.value = val;
|
|
@@ -39638,7 +39871,10 @@ const useSelect$1 = (props, emit) => {
|
|
|
39638
39871
|
handleQueryChange(states.inputValue);
|
|
39639
39872
|
});
|
|
39640
39873
|
};
|
|
39641
|
-
const debouncedOnInputChange =
|
|
39874
|
+
const debouncedOnInputChange = useDebounceFn(() => {
|
|
39875
|
+
onInputChange();
|
|
39876
|
+
debouncing.value = false;
|
|
39877
|
+
}, debounce);
|
|
39642
39878
|
const handleQueryChange = (val) => {
|
|
39643
39879
|
if (states.previousQuery === val || isComposing.value) {
|
|
39644
39880
|
return;
|
|
@@ -39880,6 +40116,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39880
40116
|
const onInput = (event) => {
|
|
39881
40117
|
states.inputValue = event.target.value;
|
|
39882
40118
|
if (props.remote) {
|
|
40119
|
+
debouncing.value = true;
|
|
39883
40120
|
debouncedOnInputChange();
|
|
39884
40121
|
} else {
|
|
39885
40122
|
return onInputChange();
|
|
@@ -39982,7 +40219,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39982
40219
|
initStates(true);
|
|
39983
40220
|
}
|
|
39984
40221
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
39985
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
40222
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
|
39986
40223
|
}
|
|
39987
40224
|
}, {
|
|
39988
40225
|
deep: true
|
|
@@ -40015,6 +40252,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
40015
40252
|
v = get(optionValue, valueKey);
|
|
40016
40253
|
}
|
|
40017
40254
|
if (duplicateValue.get(v)) {
|
|
40255
|
+
debugWarn("ElSelectV2", `The option values you provided seem to be duplicated, which may cause some problems, please check.`);
|
|
40018
40256
|
break;
|
|
40019
40257
|
} else {
|
|
40020
40258
|
duplicateValue.set(v, true);
|
|
@@ -40037,7 +40275,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
40037
40275
|
expanded,
|
|
40038
40276
|
emptyText,
|
|
40039
40277
|
popupHeight,
|
|
40040
|
-
debounce
|
|
40278
|
+
debounce,
|
|
40041
40279
|
allOptions,
|
|
40042
40280
|
allOptionsValueMap,
|
|
40043
40281
|
filteredOptions,
|
|
@@ -40149,7 +40387,7 @@ const _sfc_main$2D = defineComponent({
|
|
|
40149
40387
|
if (!props.multiple) {
|
|
40150
40388
|
return API.states.selectedLabel;
|
|
40151
40389
|
}
|
|
40152
|
-
return API.states.cachedOptions.map((i) => i
|
|
40390
|
+
return API.states.cachedOptions.map((i) => API.getLabel(i));
|
|
40153
40391
|
});
|
|
40154
40392
|
return {
|
|
40155
40393
|
...API,
|
|
@@ -41062,7 +41300,7 @@ const _sfc_main$2A = /* @__PURE__ */ defineComponent({
|
|
|
41062
41300
|
ref: button,
|
|
41063
41301
|
class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
|
|
41064
41302
|
style: normalizeStyle(unref(wrapperStyle)),
|
|
41065
|
-
tabindex: unref(disabled) ?
|
|
41303
|
+
tabindex: unref(disabled) ? void 0 : 0,
|
|
41066
41304
|
onMouseenter: unref(handleMouseEnter),
|
|
41067
41305
|
onMouseleave: unref(handleMouseLeave),
|
|
41068
41306
|
onMousedown: unref(onButtonDown),
|
|
@@ -41270,6 +41508,7 @@ const useStops = (props, initData, minValue, maxValue) => {
|
|
|
41270
41508
|
if (!props.showStops || props.min > props.max)
|
|
41271
41509
|
return [];
|
|
41272
41510
|
if (props.step === 0) {
|
|
41511
|
+
debugWarn("ElSlider", "step should not be 0.");
|
|
41273
41512
|
return [];
|
|
41274
41513
|
}
|
|
41275
41514
|
const stopCount = Math.ceil((props.max - props.min) / props.step);
|
|
@@ -41338,7 +41577,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
41338
41577
|
initData.secondValue = val[1];
|
|
41339
41578
|
if (valueChanged()) {
|
|
41340
41579
|
if (props.validateEvent) {
|
|
41341
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
41580
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
|
41342
41581
|
}
|
|
41343
41582
|
initData.oldValue = val.slice();
|
|
41344
41583
|
}
|
|
@@ -41352,7 +41591,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
41352
41591
|
initData.firstValue = val;
|
|
41353
41592
|
if (valueChanged()) {
|
|
41354
41593
|
if (props.validateEvent) {
|
|
41355
|
-
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
|
|
41594
|
+
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn(err));
|
|
41356
41595
|
}
|
|
41357
41596
|
initData.oldValue = val;
|
|
41358
41597
|
}
|
|
@@ -42149,12 +42388,16 @@ const _sfc_main$2v = defineComponent({
|
|
|
42149
42388
|
const internalStatus = ref("");
|
|
42150
42389
|
const parent = inject(STEPS_INJECTION_KEY);
|
|
42151
42390
|
const currentInstance = getCurrentInstance();
|
|
42391
|
+
let stepDiff = 0;
|
|
42392
|
+
let beforeActive = 0;
|
|
42152
42393
|
onMounted(() => {
|
|
42153
42394
|
watch([
|
|
42154
42395
|
() => parent.props.active,
|
|
42155
42396
|
() => parent.props.processStatus,
|
|
42156
42397
|
() => parent.props.finishStatus
|
|
42157
|
-
], ([active]) => {
|
|
42398
|
+
], ([active], [oldActive]) => {
|
|
42399
|
+
beforeActive = oldActive || 0;
|
|
42400
|
+
stepDiff = active - beforeActive;
|
|
42158
42401
|
updateStatus(active);
|
|
42159
42402
|
}, { immediate: true });
|
|
42160
42403
|
});
|
|
@@ -42208,8 +42451,9 @@ const _sfc_main$2v = defineComponent({
|
|
|
42208
42451
|
};
|
|
42209
42452
|
const calcProgress = (status) => {
|
|
42210
42453
|
const isWait = status === "wait";
|
|
42454
|
+
const delayTimer = Math.abs(stepDiff) === 1 ? 0 : stepDiff > 0 ? (index.value + 1 - beforeActive) * 150 : -(index.value + 1 - parent.props.active) * 150;
|
|
42211
42455
|
const style2 = {
|
|
42212
|
-
transitionDelay: `${
|
|
42456
|
+
transitionDelay: `${delayTimer}ms`
|
|
42213
42457
|
};
|
|
42214
42458
|
const step = status === parent.props.processStatus || isWait ? 0 : 100;
|
|
42215
42459
|
style2.borderWidth = step && !isSimple.value ? "1px" : 0;
|
|
@@ -42450,7 +42694,7 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
|
42450
42694
|
var _a;
|
|
42451
42695
|
input.value.checked = val;
|
|
42452
42696
|
if (props.validateEvent) {
|
|
42453
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
42697
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
42454
42698
|
}
|
|
42455
42699
|
});
|
|
42456
42700
|
const handleChange = () => {
|
|
@@ -42484,6 +42728,7 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
|
42484
42728
|
handleChange();
|
|
42485
42729
|
}
|
|
42486
42730
|
}).catch((e) => {
|
|
42731
|
+
debugWarn(COMPONENT_NAME$9, `some error occurred: ${e}`);
|
|
42487
42732
|
});
|
|
42488
42733
|
} else if (shouldChange) {
|
|
42489
42734
|
handleChange();
|
|
@@ -44474,7 +44719,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44474
44719
|
class: normalizeClass(_ctx.ns.e("bottom"))
|
|
44475
44720
|
}, [
|
|
44476
44721
|
createElementVNode("button", {
|
|
44477
|
-
class: normalizeClass(
|
|
44722
|
+
class: normalizeClass(_ctx.ns.is("disabled", _ctx.filteredValue.length === 0)),
|
|
44478
44723
|
disabled: _ctx.filteredValue.length === 0,
|
|
44479
44724
|
type: "button",
|
|
44480
44725
|
onClick: _ctx.handleConfirm
|
|
@@ -44491,9 +44736,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44491
44736
|
createElementVNode("li", {
|
|
44492
44737
|
class: normalizeClass([
|
|
44493
44738
|
_ctx.ns.e("list-item"),
|
|
44494
|
-
|
|
44495
|
-
[_ctx.ns.is("active")]: _ctx.isPropAbsent(_ctx.filterValue)
|
|
44496
|
-
}
|
|
44739
|
+
_ctx.ns.is("active", _ctx.isPropAbsent(_ctx.filterValue))
|
|
44497
44740
|
]),
|
|
44498
44741
|
onClick: ($event) => _ctx.handleSelect(null)
|
|
44499
44742
|
}, toDisplayString(_ctx.t("el.table.clearFilter")), 11, ["onClick"]),
|
|
@@ -45061,7 +45304,7 @@ var TableHeader = defineComponent({
|
|
|
45061
45304
|
let rowSpan = 1;
|
|
45062
45305
|
return h$1("thead", {
|
|
45063
45306
|
ref: "theadRef",
|
|
45064
|
-
class:
|
|
45307
|
+
class: ns.is("group", isGroup)
|
|
45065
45308
|
}, columnRows.map((subColumns, rowIndex) => h$1("tr", {
|
|
45066
45309
|
class: getHeaderRowClass(rowIndex),
|
|
45067
45310
|
key: rowIndex,
|
|
@@ -46378,18 +46621,36 @@ var v=false,o,f,s,u,d,N,l,p,m,w,D,x,E,M,F;function a(){if(!v){v=true;var e=navig
|
|
|
46378
46621
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
46379
46622
|
*/
|
|
46380
46623
|
|
|
46624
|
+
const SCOPE$3 = "_Mousewheel";
|
|
46381
46625
|
const mousewheel = function(element, callback) {
|
|
46382
46626
|
if (element && element.addEventListener) {
|
|
46627
|
+
removeWheelHandler(element);
|
|
46383
46628
|
const fn = function(event) {
|
|
46384
46629
|
const normalized = Y(event);
|
|
46385
46630
|
callback && Reflect.apply(callback, this, [event, normalized]);
|
|
46386
46631
|
};
|
|
46632
|
+
element[SCOPE$3] = { wheelHandler: fn };
|
|
46387
46633
|
element.addEventListener("wheel", fn, { passive: true });
|
|
46388
46634
|
}
|
|
46389
46635
|
};
|
|
46636
|
+
const removeWheelHandler = (element) => {
|
|
46637
|
+
var _a;
|
|
46638
|
+
if ((_a = element[SCOPE$3]) == null ? void 0 : _a.wheelHandler) {
|
|
46639
|
+
element.removeEventListener("wheel", element[SCOPE$3].wheelHandler);
|
|
46640
|
+
element[SCOPE$3] = null;
|
|
46641
|
+
}
|
|
46642
|
+
};
|
|
46390
46643
|
const Mousewheel = {
|
|
46391
46644
|
beforeMount(el, binding) {
|
|
46392
46645
|
mousewheel(el, binding.value);
|
|
46646
|
+
},
|
|
46647
|
+
unmounted(el) {
|
|
46648
|
+
removeWheelHandler(el);
|
|
46649
|
+
},
|
|
46650
|
+
updated(el, binding) {
|
|
46651
|
+
if (binding.value !== binding.oldValue) {
|
|
46652
|
+
mousewheel(el, binding.value);
|
|
46653
|
+
}
|
|
46393
46654
|
}
|
|
46394
46655
|
};
|
|
46395
46656
|
|
|
@@ -46937,7 +47198,7 @@ function treeCellPrefix({
|
|
|
46937
47198
|
}, {
|
|
46938
47199
|
default: () => {
|
|
46939
47200
|
return [
|
|
46940
|
-
h$1(ElIcon, { class:
|
|
47201
|
+
h$1(ElIcon, { class: ns.is("loading", treeNode.loading) }, {
|
|
46941
47202
|
default: () => [h$1(icon)]
|
|
46942
47203
|
})
|
|
46943
47204
|
];
|
|
@@ -47107,7 +47368,9 @@ function useRender(props, slots, owner) {
|
|
|
47107
47368
|
}
|
|
47108
47369
|
};
|
|
47109
47370
|
const setColumnRenders = (column) => {
|
|
47110
|
-
if (props.renderHeader)
|
|
47371
|
+
if (props.renderHeader) {
|
|
47372
|
+
debugWarn("TableColumn", "Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.");
|
|
47373
|
+
} else if (column.type !== "selection") {
|
|
47111
47374
|
column.renderHeader = (scope) => {
|
|
47112
47375
|
instance.columnConfig.value["label"];
|
|
47113
47376
|
return renderSlot(slots, "header", scope, () => [column.label]);
|
|
@@ -49655,11 +49918,8 @@ const RowRenderer = (props, {
|
|
|
49655
49918
|
const depth = depthMap[_rowKey] || 0;
|
|
49656
49919
|
const canExpand = Boolean(expandColumnKey);
|
|
49657
49920
|
const isFixedRow = rowIndex < 0;
|
|
49658
|
-
const kls = [ns.e("row"), rowKls, {
|
|
49659
|
-
[ns.e(`row-depth-${depth}`)]: canExpand && rowIndex >= 0
|
|
49660
|
-
[ns.is("expanded")]: canExpand && expandedRowKeys.includes(_rowKey),
|
|
49661
|
-
[ns.is("fixed")]: !depth && isFixedRow,
|
|
49662
|
-
[ns.is("customized")]: Boolean(slots.row)
|
|
49921
|
+
const kls = [ns.e("row"), rowKls, ns.is("expanded", canExpand && expandedRowKeys.includes(_rowKey)), ns.is("fixed", !depth && isFixedRow), ns.is("customized", Boolean(slots.row)), {
|
|
49922
|
+
[ns.e(`row-depth-${depth}`)]: canExpand && rowIndex >= 0
|
|
49663
49923
|
}];
|
|
49664
49924
|
const onRowHover = hasFixedColumns ? onRowHovered : void 0;
|
|
49665
49925
|
const _rowProps = {
|
|
@@ -49909,9 +50169,7 @@ const HeaderRenderer = ({
|
|
|
49909
50169
|
columns,
|
|
49910
50170
|
headerIndex
|
|
49911
50171
|
};
|
|
49912
|
-
const kls = [ns.e("header-row"), tryCall(headerClass, param, ""),
|
|
49913
|
-
[ns.is("customized")]: Boolean(slots.header)
|
|
49914
|
-
}];
|
|
50172
|
+
const kls = [ns.e("header-row"), tryCall(headerClass, param, ""), ns.is("customized", Boolean(slots.header))];
|
|
49915
50173
|
const extraProps = {
|
|
49916
50174
|
...tryCall(headerProps, param),
|
|
49917
50175
|
columnsStyles,
|
|
@@ -50270,9 +50528,7 @@ const TableV2 = defineComponent({
|
|
|
50270
50528
|
}
|
|
50271
50529
|
})
|
|
50272
50530
|
};
|
|
50273
|
-
const rootKls = [props.class, ns.b(), ns.e("root"),
|
|
50274
|
-
[ns.is("dynamic")]: unref(isDynamic)
|
|
50275
|
-
}];
|
|
50531
|
+
const rootKls = [props.class, ns.b(), ns.e("root"), ns.is("dynamic", unref(isDynamic))];
|
|
50276
50532
|
const footerProps = {
|
|
50277
50533
|
class: ns.e("footer"),
|
|
50278
50534
|
style: unref(footerHeight)
|
|
@@ -50487,7 +50743,11 @@ const tabNavProps = buildProps({
|
|
|
50487
50743
|
values: ["card", "border-card", ""],
|
|
50488
50744
|
default: ""
|
|
50489
50745
|
},
|
|
50490
|
-
stretch: Boolean
|
|
50746
|
+
stretch: Boolean,
|
|
50747
|
+
tabindex: {
|
|
50748
|
+
type: [String, Number],
|
|
50749
|
+
default: void 0
|
|
50750
|
+
}
|
|
50491
50751
|
});
|
|
50492
50752
|
const tabNavEmits = {
|
|
50493
50753
|
tabClick: (tab, tabName, ev) => ev instanceof Event,
|
|
@@ -50707,7 +50967,7 @@ const TabNav = defineComponent({
|
|
|
50707
50967
|
default: () => [createVNode(arrow_right_default, null, null)]
|
|
50708
50968
|
})])] : null;
|
|
50709
50969
|
const tabs = props.panes.map((pane, index) => {
|
|
50710
|
-
var _a, _b, _c, _d;
|
|
50970
|
+
var _a, _b, _c, _d, _e;
|
|
50711
50971
|
const uid = pane.uid;
|
|
50712
50972
|
const disabled = pane.props.disabled;
|
|
50713
50973
|
const tabName = (_b = (_a = pane.props.name) != null ? _a : pane.index) != null ? _b : `${index}`;
|
|
@@ -50720,7 +50980,7 @@ const TabNav = defineComponent({
|
|
|
50720
50980
|
default: () => [createVNode(close_default, null, null)]
|
|
50721
50981
|
}) : null;
|
|
50722
50982
|
const tabLabelContent = ((_d = (_c = pane.slots).label) == null ? void 0 : _d.call(_c)) || pane.props.label;
|
|
50723
|
-
const tabindex = !disabled && pane.active ?
|
|
50983
|
+
const tabindex = !disabled && pane.active ? (_e = props.tabindex) != null ? _e : rootTabs.props.tabindex : -1;
|
|
50724
50984
|
return createVNode("div", {
|
|
50725
50985
|
"ref": (el) => setRefs(el, tabName),
|
|
50726
50986
|
"class": [ns.e("item"), ns.is(rootTabs.props.tabPosition), ns.is("active", pane.active), ns.is("disabled", disabled), ns.is("closable", closable), ns.is("focus", isFocus.value)],
|
|
@@ -50788,7 +51048,11 @@ const tabsProps = buildProps({
|
|
|
50788
51048
|
type: definePropType(Function),
|
|
50789
51049
|
default: () => true
|
|
50790
51050
|
},
|
|
50791
|
-
stretch: Boolean
|
|
51051
|
+
stretch: Boolean,
|
|
51052
|
+
tabindex: {
|
|
51053
|
+
type: [String, Number],
|
|
51054
|
+
default: 0
|
|
51055
|
+
}
|
|
50792
51056
|
});
|
|
50793
51057
|
const isPaneName = (value) => isString$4(value) || isNumber$2(value);
|
|
50794
51058
|
const tabsEmits = {
|
|
@@ -50898,7 +51162,7 @@ const Tabs = defineComponent({
|
|
|
50898
51162
|
const addSlot = slots["add-icon"];
|
|
50899
51163
|
const newButton = props.editable || props.addable ? createVNode("div", {
|
|
50900
51164
|
"class": [ns.e("new-tab"), isVertical.value && ns.e("new-tab-vertical")],
|
|
50901
|
-
"tabindex":
|
|
51165
|
+
"tabindex": props.tabindex,
|
|
50902
51166
|
"onClick": handleTabAdd,
|
|
50903
51167
|
"onKeydown": handleKeydown
|
|
50904
51168
|
}, [addSlot ? renderSlot(slots, "add-icon") : createVNode(ElIcon, {
|
|
@@ -51898,7 +52162,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
51898
52162
|
watch(() => props.modelValue, () => {
|
|
51899
52163
|
var _a;
|
|
51900
52164
|
if (props.validateEvent) {
|
|
51901
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
52165
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
51902
52166
|
}
|
|
51903
52167
|
});
|
|
51904
52168
|
const optionRender = computed(() => (option) => {
|
|
@@ -53051,6 +53315,9 @@ const _sfc_main$2i = defineComponent({
|
|
|
53051
53315
|
const dragEvents = inject(dragEventsKey);
|
|
53052
53316
|
const instance = getCurrentInstance();
|
|
53053
53317
|
provide(NODE_INSTANCE_INJECTION_KEY, instance);
|
|
53318
|
+
if (!tree) {
|
|
53319
|
+
debugWarn("Tree", "Can not find node's tree.");
|
|
53320
|
+
}
|
|
53054
53321
|
if (props.node.expanded) {
|
|
53055
53322
|
expanded.value = true;
|
|
53056
53323
|
childNodeRendered.value = true;
|
|
@@ -53405,6 +53672,22 @@ function useKeydown({ el$ }, store) {
|
|
|
53405
53672
|
};
|
|
53406
53673
|
}
|
|
53407
53674
|
|
|
53675
|
+
const treeEmits$1 = {
|
|
53676
|
+
"check-change": (data, checked, indeterminate) => data && isBoolean$1(checked) && isBoolean$1(indeterminate),
|
|
53677
|
+
"current-change": (data, node) => true,
|
|
53678
|
+
"node-click": (data, node, nodeInstance, evt) => data && node && evt instanceof Event,
|
|
53679
|
+
"node-contextmenu": (evt, data, node, nodeInstance) => evt instanceof Event && data && node,
|
|
53680
|
+
"node-collapse": (data, node, nodeInstance) => data && node,
|
|
53681
|
+
"node-expand": (data, node, nodeInstance) => data && node,
|
|
53682
|
+
check: (data, checkedInfo) => data && checkedInfo,
|
|
53683
|
+
"node-drag-start": (node, evt) => node && evt,
|
|
53684
|
+
"node-drag-end": (draggingNode, dropNode, dropType, evt) => draggingNode && evt,
|
|
53685
|
+
"node-drop": (draggingNode, dropNode, dropType, evt) => draggingNode && dropNode && evt,
|
|
53686
|
+
"node-drag-leave": (draggingNode, oldDropNode, evt) => draggingNode && oldDropNode && evt,
|
|
53687
|
+
"node-drag-enter": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt,
|
|
53688
|
+
"node-drag-over": (draggingNode, dropNode, evt) => draggingNode && dropNode && evt
|
|
53689
|
+
};
|
|
53690
|
+
|
|
53408
53691
|
const _sfc_main$2h = defineComponent({
|
|
53409
53692
|
name: "ElTree",
|
|
53410
53693
|
components: { ElTreeNode: ElTreeNode$1 },
|
|
@@ -53472,25 +53755,10 @@ const _sfc_main$2h = defineComponent({
|
|
|
53472
53755
|
type: iconPropType
|
|
53473
53756
|
}
|
|
53474
53757
|
},
|
|
53475
|
-
emits:
|
|
53476
|
-
"check-change",
|
|
53477
|
-
"current-change",
|
|
53478
|
-
"node-click",
|
|
53479
|
-
"node-contextmenu",
|
|
53480
|
-
"node-collapse",
|
|
53481
|
-
"node-expand",
|
|
53482
|
-
"check",
|
|
53483
|
-
"node-drag-start",
|
|
53484
|
-
"node-drag-end",
|
|
53485
|
-
"node-drop",
|
|
53486
|
-
"node-drag-leave",
|
|
53487
|
-
"node-drag-enter",
|
|
53488
|
-
"node-drag-over"
|
|
53489
|
-
],
|
|
53758
|
+
emits: treeEmits$1,
|
|
53490
53759
|
setup(props, ctx) {
|
|
53491
53760
|
const { t } = useLocale();
|
|
53492
53761
|
const ns = useNamespace("tree");
|
|
53493
|
-
const selectInfo = inject(selectKey, null);
|
|
53494
53762
|
const store = ref(new TreeStore({
|
|
53495
53763
|
key: props.nodeKey,
|
|
53496
53764
|
data: props.data,
|
|
@@ -53520,10 +53788,20 @@ const _sfc_main$2h = defineComponent({
|
|
|
53520
53788
|
store
|
|
53521
53789
|
});
|
|
53522
53790
|
useKeydown({ el$ }, store);
|
|
53791
|
+
const instance = getCurrentInstance();
|
|
53792
|
+
const isSelectTree = computed(() => {
|
|
53793
|
+
let parent = instance == null ? void 0 : instance.parent;
|
|
53794
|
+
while (parent) {
|
|
53795
|
+
if (parent.type.name === "ElTreeSelect") {
|
|
53796
|
+
return true;
|
|
53797
|
+
}
|
|
53798
|
+
parent = parent.parent;
|
|
53799
|
+
}
|
|
53800
|
+
return false;
|
|
53801
|
+
});
|
|
53523
53802
|
const isEmpty = computed(() => {
|
|
53524
53803
|
const { childNodes } = root.value;
|
|
53525
|
-
|
|
53526
|
-
return (!childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible)) && !hasFilteredOptions;
|
|
53804
|
+
return (!childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible)) && !isSelectTree.value;
|
|
53527
53805
|
});
|
|
53528
53806
|
watch(() => props.currentNodeKey, (newVal) => {
|
|
53529
53807
|
store.value.setCurrentNodeKey(newVal != null ? newVal : null);
|
|
@@ -53607,12 +53885,12 @@ const _sfc_main$2h = defineComponent({
|
|
|
53607
53885
|
store.value.setUserCurrentNode(node, shouldAutoExpandParent);
|
|
53608
53886
|
});
|
|
53609
53887
|
};
|
|
53610
|
-
const setCurrentKey = (key, shouldAutoExpandParent = true) => {
|
|
53888
|
+
const setCurrentKey = (key = null, shouldAutoExpandParent = true) => {
|
|
53611
53889
|
if (!props.nodeKey)
|
|
53612
53890
|
throw new Error("[Tree] nodeKey is required in setCurrentKey");
|
|
53613
53891
|
handleCurrentChange(store, ctx.emit, () => {
|
|
53614
53892
|
broadcastExpanded();
|
|
53615
|
-
store.value.setCurrentNodeKey(key
|
|
53893
|
+
store.value.setCurrentNodeKey(key, shouldAutoExpandParent);
|
|
53616
53894
|
});
|
|
53617
53895
|
};
|
|
53618
53896
|
const getNode = (data) => {
|
|
@@ -53630,9 +53908,9 @@ const _sfc_main$2h = defineComponent({
|
|
|
53630
53908
|
const insertAfter = (data, refNode) => {
|
|
53631
53909
|
store.value.insertAfter(data, refNode);
|
|
53632
53910
|
};
|
|
53633
|
-
const handleNodeExpand = (nodeData, node,
|
|
53911
|
+
const handleNodeExpand = (nodeData, node, instance2) => {
|
|
53634
53912
|
broadcastExpanded(node);
|
|
53635
|
-
ctx.emit("node-expand", nodeData, node,
|
|
53913
|
+
ctx.emit("node-expand", nodeData, node, instance2);
|
|
53636
53914
|
};
|
|
53637
53915
|
const updateKeyChildren = (key, data) => {
|
|
53638
53916
|
if (!props.nodeKey)
|
|
@@ -53645,7 +53923,7 @@ const _sfc_main$2h = defineComponent({
|
|
|
53645
53923
|
store,
|
|
53646
53924
|
root,
|
|
53647
53925
|
currentNode,
|
|
53648
|
-
instance
|
|
53926
|
+
instance
|
|
53649
53927
|
});
|
|
53650
53928
|
provide(formItemContextKey, void 0);
|
|
53651
53929
|
return {
|
|
@@ -54649,13 +54927,19 @@ function useTree(props, emit) {
|
|
|
54649
54927
|
});
|
|
54650
54928
|
}
|
|
54651
54929
|
keySet.add(node.key);
|
|
54652
|
-
|
|
54653
|
-
|
|
54930
|
+
const _node = getNode(node.key);
|
|
54931
|
+
if (_node) {
|
|
54932
|
+
_node.expanded = true;
|
|
54933
|
+
emit(NODE_EXPAND, _node.data, _node);
|
|
54934
|
+
}
|
|
54654
54935
|
}
|
|
54655
54936
|
function collapseNode(node) {
|
|
54656
54937
|
expandedKeySet.value.delete(node.key);
|
|
54657
|
-
|
|
54658
|
-
|
|
54938
|
+
const _node = getNode(node.key);
|
|
54939
|
+
if (_node) {
|
|
54940
|
+
_node.expanded = false;
|
|
54941
|
+
emit(NODE_COLLAPSE, _node.data, _node);
|
|
54942
|
+
}
|
|
54659
54943
|
}
|
|
54660
54944
|
function isDisabled(node) {
|
|
54661
54945
|
return !!node.disabled;
|
|
@@ -55253,7 +55537,9 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
55253
55537
|
unref(nsUpload).is(file.status),
|
|
55254
55538
|
{ focusing: focusing.value }
|
|
55255
55539
|
]),
|
|
55256
|
-
tabindex:
|
|
55540
|
+
tabindex: unref(disabled) ? void 0 : 0,
|
|
55541
|
+
"aria-disabled": unref(disabled),
|
|
55542
|
+
role: "button",
|
|
55257
55543
|
onKeydown: withKeys(($event) => !unref(disabled) && handleRemove(file), ["delete"]),
|
|
55258
55544
|
onFocus: ($event) => focusing.value = true,
|
|
55259
55545
|
onBlur: ($event) => focusing.value = false,
|
|
@@ -55370,7 +55656,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
55370
55656
|
], 10, ["onClick"])) : createCommentVNode("v-if", true)
|
|
55371
55657
|
], 2)) : createCommentVNode("v-if", true)
|
|
55372
55658
|
])
|
|
55373
|
-
], 42, ["onKeydown", "onFocus", "onBlur", "onClick"]);
|
|
55659
|
+
], 42, ["tabindex", "aria-disabled", "onKeydown", "onFocus", "onBlur", "onClick"]);
|
|
55374
55660
|
}), 128)),
|
|
55375
55661
|
renderSlot(_ctx.$slots, "append")
|
|
55376
55662
|
]),
|
|
@@ -55630,7 +55916,9 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
55630
55916
|
unref(ns).is("drag", _ctx.drag),
|
|
55631
55917
|
unref(ns).is("disabled", unref(disabled))
|
|
55632
55918
|
]),
|
|
55633
|
-
tabindex: unref(disabled) ?
|
|
55919
|
+
tabindex: unref(disabled) ? void 0 : 0,
|
|
55920
|
+
"aria-disabled": unref(disabled),
|
|
55921
|
+
role: "button",
|
|
55634
55922
|
onClick: handleClick,
|
|
55635
55923
|
onKeydown: withKeys(withModifiers(handleKeydown, ["self"]), ["enter", "space"])
|
|
55636
55924
|
}, [
|
|
@@ -55657,7 +55945,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
55657
55945
|
onClick: withModifiers(() => {
|
|
55658
55946
|
}, ["stop"])
|
|
55659
55947
|
}, null, 42, ["name", "disabled", "multiple", "accept", "onClick"])
|
|
55660
|
-
], 42, ["tabindex", "onKeydown"]);
|
|
55948
|
+
], 42, ["tabindex", "aria-disabled", "onKeydown"]);
|
|
55661
55949
|
};
|
|
55662
55950
|
}
|
|
55663
55951
|
});
|
|
@@ -58735,7 +59023,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
58735
59023
|
}, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total), (item, index) => {
|
|
58736
59024
|
return openBlock(), createElementBlock("span", {
|
|
58737
59025
|
key: item,
|
|
58738
|
-
class: normalizeClass([unref(ns).b("indicator"), index === unref(current)
|
|
59026
|
+
class: normalizeClass([unref(ns).b("indicator"), unref(ns).is("active", index === unref(current))])
|
|
58739
59027
|
}, null, 2);
|
|
58740
59028
|
}), 128))
|
|
58741
59029
|
], 2),
|
|
@@ -59281,7 +59569,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
59281
59569
|
var _a;
|
|
59282
59570
|
updateSelect();
|
|
59283
59571
|
if (props.validateEvent) {
|
|
59284
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
59572
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
59285
59573
|
}
|
|
59286
59574
|
}, {
|
|
59287
59575
|
flush: "post"
|
|
@@ -60968,7 +61256,7 @@ function createLoadingComponent(options, appContext) {
|
|
|
60968
61256
|
class: [
|
|
60969
61257
|
ns.b("mask"),
|
|
60970
61258
|
data.customClass,
|
|
60971
|
-
|
|
61259
|
+
ns.is("fullscreen", data.fullscreen)
|
|
60972
61260
|
]
|
|
60973
61261
|
}, [
|
|
60974
61262
|
h$1("div", {
|
|
@@ -61480,6 +61768,7 @@ const normalizeAppendTo = (normalized) => {
|
|
|
61480
61768
|
} else if (isString$4(normalized.appendTo)) {
|
|
61481
61769
|
let appendTo2 = document.querySelector(normalized.appendTo);
|
|
61482
61770
|
if (!isElement$1(appendTo2)) {
|
|
61771
|
+
debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
61483
61772
|
appendTo2 = document.body;
|
|
61484
61773
|
}
|
|
61485
61774
|
normalized.appendTo = appendTo2;
|
|
@@ -61493,6 +61782,7 @@ const normalizePlacement = (normalized) => {
|
|
|
61493
61782
|
normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
|
|
61494
61783
|
}
|
|
61495
61784
|
if (!messagePlacement.includes(normalized.placement)) {
|
|
61785
|
+
debugWarn("ElMessage", `Invalid placement: ${normalized.placement}. Falling back to '${MESSAGE_DEFAULT_PLACEMENT}'.`);
|
|
61496
61786
|
normalized.placement = MESSAGE_DEFAULT_PLACEMENT;
|
|
61497
61787
|
}
|
|
61498
61788
|
};
|
|
@@ -62154,6 +62444,7 @@ const getAppendToElement = (props) => {
|
|
|
62154
62444
|
appendTo = props.appendTo;
|
|
62155
62445
|
}
|
|
62156
62446
|
if (!isElement$1(appendTo)) {
|
|
62447
|
+
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
62157
62448
|
appendTo = document.body;
|
|
62158
62449
|
}
|
|
62159
62450
|
}
|
|
@@ -62533,6 +62824,7 @@ const notify = function(options = {}, context) {
|
|
|
62533
62824
|
appendTo = document.querySelector(options.appendTo);
|
|
62534
62825
|
}
|
|
62535
62826
|
if (!isElement$1(appendTo)) {
|
|
62827
|
+
debugWarn("ElNotification", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
62536
62828
|
appendTo = document.body;
|
|
62537
62829
|
}
|
|
62538
62830
|
const container = document.createElement("div");
|
|
@@ -62616,7 +62908,7 @@ var Plugins = [
|
|
|
62616
62908
|
|
|
62617
62909
|
var installer = makeInstaller([...Components, ...Plugins]);
|
|
62618
62910
|
|
|
62619
|
-
/*! Element Plus v2.11.
|
|
62911
|
+
/*! Element Plus v2.11.7 */
|
|
62620
62912
|
|
|
62621
62913
|
var zhCn = {
|
|
62622
62914
|
name: "zh-cn",
|
|
@@ -62632,7 +62924,10 @@ var zhCn = {
|
|
|
62632
62924
|
alphaLabel: "\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C",
|
|
62633
62925
|
alphaDescription: "\u900F\u660E\u5EA6 {alpha}, \u5F53\u524D\u989C\u8272 {color}",
|
|
62634
62926
|
hueLabel: "\u9009\u62E9\u8272\u76F8\u503C",
|
|
62635
|
-
hueDescription: "\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}"
|
|
62927
|
+
hueDescription: "\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}",
|
|
62928
|
+
svLabel: "\u9009\u62E9\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6\u7684\u503C",
|
|
62929
|
+
svDescription: "\u9971\u548C\u5EA6 {saturation}, \u660E\u5EA6 {brightness}, \u5F53\u524D\u989C\u8272 {color}",
|
|
62930
|
+
predefineDescription: "\u9009\u62E9 {value} \u4F5C\u4E3A\u989C\u8272"
|
|
62636
62931
|
},
|
|
62637
62932
|
datepicker: {
|
|
62638
62933
|
now: "\u6B64\u523B",
|
|
@@ -62801,7 +63096,7 @@ var zhCn = {
|
|
|
62801
63096
|
}
|
|
62802
63097
|
};
|
|
62803
63098
|
|
|
62804
|
-
/*! Element Plus v2.11.
|
|
63099
|
+
/*! Element Plus v2.11.7 */
|
|
62805
63100
|
|
|
62806
63101
|
var zhTw = {
|
|
62807
63102
|
name: "zh-tw",
|
|
@@ -62817,7 +63112,10 @@ var zhTw = {
|
|
|
62817
63112
|
alphaLabel: "\u9078\u64C7\u900F\u660E\u5EA6\u7684\u503C",
|
|
62818
63113
|
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
62819
63114
|
hueLabel: "pick hue value",
|
|
62820
|
-
hueDescription: "hue {hue}, current color is {color}"
|
|
63115
|
+
hueDescription: "hue {hue}, current color is {color}",
|
|
63116
|
+
svLabel: "pick saturation and brightness value",
|
|
63117
|
+
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
63118
|
+
predefineDescription: "select {value} as the color"
|
|
62821
63119
|
},
|
|
62822
63120
|
datepicker: {
|
|
62823
63121
|
now: "\u73FE\u5728",
|
|
@@ -62986,7 +63284,7 @@ var zhTw = {
|
|
|
62986
63284
|
}
|
|
62987
63285
|
};
|
|
62988
63286
|
|
|
62989
|
-
/*! Element Plus v2.11.
|
|
63287
|
+
/*! Element Plus v2.11.7 */
|
|
62990
63288
|
|
|
62991
63289
|
var ja = {
|
|
62992
63290
|
name: "ja",
|
|
@@ -63002,7 +63300,10 @@ var ja = {
|
|
|
63002
63300
|
alphaLabel: "pick alpha value",
|
|
63003
63301
|
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
63004
63302
|
hueLabel: "pick hue value",
|
|
63005
|
-
hueDescription: "hue {hue}, current color is {color}"
|
|
63303
|
+
hueDescription: "hue {hue}, current color is {color}",
|
|
63304
|
+
svLabel: "pick saturation and brightness value",
|
|
63305
|
+
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
63306
|
+
predefineDescription: "select {value} as the color"
|
|
63006
63307
|
},
|
|
63007
63308
|
datepicker: {
|
|
63008
63309
|
now: "\u73FE\u5728",
|
|
@@ -63171,7 +63472,7 @@ var ja = {
|
|
|
63171
63472
|
}
|
|
63172
63473
|
};
|
|
63173
63474
|
|
|
63174
|
-
/*! Element Plus v2.11.
|
|
63475
|
+
/*! Element Plus v2.11.7 */
|
|
63175
63476
|
|
|
63176
63477
|
var de = {
|
|
63177
63478
|
name: "de",
|
|
@@ -63187,7 +63488,10 @@ var de = {
|
|
|
63187
63488
|
alphaLabel: "pick alpha value",
|
|
63188
63489
|
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
63189
63490
|
hueLabel: "pick hue value",
|
|
63190
|
-
hueDescription: "hue {hue}, current color is {color}"
|
|
63491
|
+
hueDescription: "hue {hue}, current color is {color}",
|
|
63492
|
+
svLabel: "pick saturation and brightness value",
|
|
63493
|
+
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
63494
|
+
predefineDescription: "select {value} as the color"
|
|
63191
63495
|
},
|
|
63192
63496
|
datepicker: {
|
|
63193
63497
|
now: "Jetzt",
|
|
@@ -63358,7 +63662,7 @@ var de = {
|
|
|
63358
63662
|
}
|
|
63359
63663
|
};
|
|
63360
63664
|
|
|
63361
|
-
/*! Element Plus v2.11.
|
|
63665
|
+
/*! Element Plus v2.11.7 */
|
|
63362
63666
|
|
|
63363
63667
|
var en = {
|
|
63364
63668
|
name: "en",
|
|
@@ -63374,7 +63678,10 @@ var en = {
|
|
|
63374
63678
|
alphaLabel: "pick alpha value",
|
|
63375
63679
|
alphaDescription: "alpha {alpha}, current color is {color}",
|
|
63376
63680
|
hueLabel: "pick hue value",
|
|
63377
|
-
hueDescription: "hue {hue}, current color is {color}"
|
|
63681
|
+
hueDescription: "hue {hue}, current color is {color}",
|
|
63682
|
+
svLabel: "pick saturation and brightness value",
|
|
63683
|
+
svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
|
|
63684
|
+
predefineDescription: "select {value} as the color"
|
|
63378
63685
|
},
|
|
63379
63686
|
datepicker: {
|
|
63380
63687
|
now: "Now",
|
|
@@ -68948,7 +69255,7 @@ function dispatchRequest(config) {
|
|
|
68948
69255
|
});
|
|
68949
69256
|
}
|
|
68950
69257
|
|
|
68951
|
-
const VERSION$1 = "1.13.
|
|
69258
|
+
const VERSION$1 = "1.13.2";
|
|
68952
69259
|
|
|
68953
69260
|
const validators$1 = {};
|
|
68954
69261
|
|
|
@@ -70663,11 +70970,11 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70663
70970
|
const allFormDataList = ref([]);
|
|
70664
70971
|
const formInfo = ref({});
|
|
70665
70972
|
const compList = ref([]);
|
|
70666
|
-
const compListNoLayer = shallowRef(
|
|
70973
|
+
const compListNoLayer = shallowRef({});
|
|
70667
70974
|
const formData = ref({});
|
|
70668
70975
|
const currentComp = shallowRef();
|
|
70669
70976
|
const isCompListUpdated = ref(true);
|
|
70670
|
-
const cachedCompListNoLayer = shallowRef(
|
|
70977
|
+
const cachedCompListNoLayer = shallowRef({});
|
|
70671
70978
|
const cachedSelectList = shallowRef([]);
|
|
70672
70979
|
const currentItemType = ref("");
|
|
70673
70980
|
const currentCompCategory = ref("");
|
|
@@ -70775,20 +71082,21 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70775
71082
|
isCompListUpdated.value = true;
|
|
70776
71083
|
};
|
|
70777
71084
|
const selectItemById = (itemId) => {
|
|
70778
|
-
if (isCompListUpdated.value || compListNoLayer.value
|
|
71085
|
+
if (isCompListUpdated.value || Object.keys(compListNoLayer.value).length == 0) {
|
|
70779
71086
|
loadCompNames();
|
|
70780
71087
|
}
|
|
70781
|
-
|
|
71088
|
+
console.log(compListNoLayer.value);
|
|
71089
|
+
return compListNoLayer.value?.[itemId] || null;
|
|
70782
71090
|
};
|
|
70783
71091
|
const forceLoadCompNames = () => {
|
|
70784
71092
|
const selectList = [];
|
|
70785
|
-
const compListResult =
|
|
71093
|
+
const compListResult = {};
|
|
70786
71094
|
const stack = [];
|
|
71095
|
+
const allChildItems = [];
|
|
70787
71096
|
stack.push({ datas: compList.value, tabName: void 0 });
|
|
70788
71097
|
while (stack.length > 0) {
|
|
70789
71098
|
const { datas, tabName } = stack.pop();
|
|
70790
71099
|
const currentSelectList = [];
|
|
70791
|
-
const currentCompList = [];
|
|
70792
71100
|
for (const index in datas) {
|
|
70793
71101
|
const temp = datas[index];
|
|
70794
71102
|
if (temp.itemType === "box" || temp.itemType === "dytable") {
|
|
@@ -70814,6 +71122,7 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70814
71122
|
}))
|
|
70815
71123
|
);
|
|
70816
71124
|
childItems.push(...column.items);
|
|
71125
|
+
allChildItems.push(...items);
|
|
70817
71126
|
}
|
|
70818
71127
|
}
|
|
70819
71128
|
}
|
|
@@ -70826,7 +71135,6 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70826
71135
|
compType: "container",
|
|
70827
71136
|
children
|
|
70828
71137
|
});
|
|
70829
|
-
currentCompList.push(temp, ...childItems);
|
|
70830
71138
|
} else if (temp.itemType === "table") {
|
|
70831
71139
|
const elements = temp.preps.elements;
|
|
70832
71140
|
const children = [];
|
|
@@ -70848,6 +71156,7 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70848
71156
|
}))
|
|
70849
71157
|
);
|
|
70850
71158
|
childItems.push(...element.items);
|
|
71159
|
+
allChildItems.push(...items);
|
|
70851
71160
|
}
|
|
70852
71161
|
}
|
|
70853
71162
|
currentSelectList.push({
|
|
@@ -70859,16 +71168,114 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70859
71168
|
compType: "container",
|
|
70860
71169
|
children
|
|
70861
71170
|
});
|
|
70862
|
-
currentCompList.push(temp, ...childItems);
|
|
70863
71171
|
} else if (["tab", "collapse", "card"].includes(temp.itemType)) {
|
|
70864
71172
|
const elements = temp.preps?.elements || [];
|
|
70865
71173
|
for (const index2 in elements) {
|
|
70866
71174
|
const element = elements[index2];
|
|
70867
71175
|
const tempTabName = tabName ? `${tabName}__${element.tabName}` : element.tabName;
|
|
70868
|
-
|
|
70869
|
-
|
|
70870
|
-
|
|
70871
|
-
|
|
71176
|
+
const children = [];
|
|
71177
|
+
if (element.items?.length > 0) {
|
|
71178
|
+
for (const itemIndex in element.items) {
|
|
71179
|
+
const item = element.items[itemIndex];
|
|
71180
|
+
if (["box", "table", "dytable", "tab", "collapse", "card"].includes(item.itemType)) {
|
|
71181
|
+
const containerNode = {
|
|
71182
|
+
name: item.preps?.label ?? item.preps?.itemNameLabel,
|
|
71183
|
+
value: item.preps?.name || item.preps?.batchFieldName,
|
|
71184
|
+
id: item.id || item.preps?.id,
|
|
71185
|
+
tabName: tempTabName,
|
|
71186
|
+
type: item.itemType,
|
|
71187
|
+
compType: "container",
|
|
71188
|
+
children: []
|
|
71189
|
+
// 初始化空children数组
|
|
71190
|
+
};
|
|
71191
|
+
if (item.preps?.elements) {
|
|
71192
|
+
if (item.itemType === "box" || item.itemType === "dytable") {
|
|
71193
|
+
for (const eIndex in item.preps.elements) {
|
|
71194
|
+
const elementItem = item.preps.elements[eIndex];
|
|
71195
|
+
if (elementItem?.columns) {
|
|
71196
|
+
for (const colIndex in elementItem.columns) {
|
|
71197
|
+
const column = elementItem.columns[colIndex];
|
|
71198
|
+
if (column?.items?.length > 0) {
|
|
71199
|
+
const items = column.items.filter((subItem) => subItem.preps?.label);
|
|
71200
|
+
containerNode.children?.push(
|
|
71201
|
+
...items.map((subItem) => ({
|
|
71202
|
+
name: subItem.preps?.label,
|
|
71203
|
+
id: subItem.id || subItem.preps?.id,
|
|
71204
|
+
compType: "item",
|
|
71205
|
+
tabName: tempTabName,
|
|
71206
|
+
type: subItem.preps?.itemType,
|
|
71207
|
+
value: subItem.preps?.name
|
|
71208
|
+
}))
|
|
71209
|
+
);
|
|
71210
|
+
allChildItems.push(...items);
|
|
71211
|
+
}
|
|
71212
|
+
}
|
|
71213
|
+
}
|
|
71214
|
+
}
|
|
71215
|
+
} else if (item.itemType === "table") {
|
|
71216
|
+
for (const eIndex in item.preps.elements) {
|
|
71217
|
+
const elementItem = item.preps.elements[eIndex];
|
|
71218
|
+
if (elementItem?.items?.length > 0) {
|
|
71219
|
+
const items = elementItem.items.filter((subItem) => subItem.preps?.label);
|
|
71220
|
+
containerNode.children?.push(
|
|
71221
|
+
...items.map((subItem) => ({
|
|
71222
|
+
name: subItem.preps?.label,
|
|
71223
|
+
id: subItem.id || subItem.preps?.id,
|
|
71224
|
+
compType: "item",
|
|
71225
|
+
tabName: tempTabName,
|
|
71226
|
+
type: subItem.itemType ?? subItem.preps?.itemType,
|
|
71227
|
+
value: subItem.preps?.name
|
|
71228
|
+
}))
|
|
71229
|
+
);
|
|
71230
|
+
allChildItems.push(...items);
|
|
71231
|
+
}
|
|
71232
|
+
}
|
|
71233
|
+
} else if (["tab", "collapse", "card"].includes(item.itemType)) {
|
|
71234
|
+
for (const eIndex in item.preps.elements) {
|
|
71235
|
+
const elementItem = item.preps.elements[eIndex];
|
|
71236
|
+
const subContainerNode = {
|
|
71237
|
+
name: elementItem.label,
|
|
71238
|
+
value: elementItem.objectName,
|
|
71239
|
+
tabName: tempTabName,
|
|
71240
|
+
id: item.id,
|
|
71241
|
+
type: item.itemType,
|
|
71242
|
+
compType: "container",
|
|
71243
|
+
children: []
|
|
71244
|
+
};
|
|
71245
|
+
if (elementItem?.items?.length > 0) {
|
|
71246
|
+
const items = elementItem.items.filter((subItem) => subItem.preps?.label);
|
|
71247
|
+
subContainerNode.children?.push(
|
|
71248
|
+
...items.map((subItem) => ({
|
|
71249
|
+
name: subItem.preps?.label,
|
|
71250
|
+
id: subItem.id || subItem.preps?.id,
|
|
71251
|
+
compType: "item",
|
|
71252
|
+
tabName: tempTabName,
|
|
71253
|
+
type: subItem.itemType ?? subItem.preps?.itemType,
|
|
71254
|
+
value: subItem.preps?.name
|
|
71255
|
+
}))
|
|
71256
|
+
);
|
|
71257
|
+
allChildItems.push(...items);
|
|
71258
|
+
}
|
|
71259
|
+
containerNode.children?.push(subContainerNode);
|
|
71260
|
+
}
|
|
71261
|
+
}
|
|
71262
|
+
}
|
|
71263
|
+
children.push(containerNode);
|
|
71264
|
+
} else {
|
|
71265
|
+
if (item.preps?.label) {
|
|
71266
|
+
children.push({
|
|
71267
|
+
name: item.preps?.label,
|
|
71268
|
+
id: item.id || item.preps?.id,
|
|
71269
|
+
compType: "item",
|
|
71270
|
+
tabName: tempTabName,
|
|
71271
|
+
type: item.itemType ?? item.preps?.itemType,
|
|
71272
|
+
value: item.preps?.name
|
|
71273
|
+
});
|
|
71274
|
+
allChildItems.push(item);
|
|
71275
|
+
}
|
|
71276
|
+
}
|
|
71277
|
+
}
|
|
71278
|
+
}
|
|
70872
71279
|
currentSelectList.push({
|
|
70873
71280
|
name: element.label,
|
|
70874
71281
|
value: element.objectName,
|
|
@@ -70876,25 +71283,48 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70876
71283
|
id: temp.id,
|
|
70877
71284
|
type: temp.itemType,
|
|
70878
71285
|
compType: "container",
|
|
70879
|
-
children
|
|
70880
|
-
//
|
|
71286
|
+
children
|
|
71287
|
+
// 包含了所有子元素,包括嵌套容器
|
|
70881
71288
|
});
|
|
70882
71289
|
}
|
|
70883
|
-
currentCompList.push(temp);
|
|
70884
71290
|
} else {
|
|
70885
71291
|
currentSelectList.push({
|
|
70886
71292
|
name: temp.preps?.label,
|
|
70887
71293
|
value: temp.preps?.name,
|
|
70888
71294
|
tabName,
|
|
70889
71295
|
compType: "item",
|
|
70890
|
-
id: temp.preps?.id,
|
|
71296
|
+
id: temp.id || temp.preps?.id,
|
|
70891
71297
|
type: temp.itemType ?? temp.preps?.itemType
|
|
70892
71298
|
});
|
|
70893
|
-
|
|
71299
|
+
allChildItems.push(temp);
|
|
70894
71300
|
}
|
|
70895
71301
|
}
|
|
70896
71302
|
selectList.push(...currentSelectList);
|
|
70897
|
-
|
|
71303
|
+
const processComponent = (component) => {
|
|
71304
|
+
if (component.id || component.preps && component.preps.id) {
|
|
71305
|
+
const compId = component.id || component.preps.id;
|
|
71306
|
+
compListResult[compId] = component;
|
|
71307
|
+
}
|
|
71308
|
+
const isContainer = component.preps?.isContainer || ["box", "dytable", "table", "tab", "collapse", "card"].includes(component.itemType);
|
|
71309
|
+
if (isContainer && component.preps?.elements) {
|
|
71310
|
+
component.preps.elements.forEach((element) => {
|
|
71311
|
+
if (["box", "dytable", "table"].includes(component.itemType)) {
|
|
71312
|
+
if (element?.columns) {
|
|
71313
|
+
element.columns.forEach((column) => {
|
|
71314
|
+
if (column?.items) {
|
|
71315
|
+
column.items.forEach(processComponent);
|
|
71316
|
+
}
|
|
71317
|
+
});
|
|
71318
|
+
}
|
|
71319
|
+
} else if (["tab", "collapse", "card"].includes(component.itemType)) {
|
|
71320
|
+
if (element?.items) {
|
|
71321
|
+
element.items.forEach(processComponent);
|
|
71322
|
+
}
|
|
71323
|
+
}
|
|
71324
|
+
});
|
|
71325
|
+
}
|
|
71326
|
+
};
|
|
71327
|
+
allChildItems.forEach(processComponent);
|
|
70898
71328
|
}
|
|
70899
71329
|
compListNoLayer.value = compListResult;
|
|
70900
71330
|
cachedCompListNoLayer.value = compListResult;
|
|
@@ -70940,12 +71370,33 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
70940
71370
|
const setContainerList = (list) => {
|
|
70941
71371
|
containerList.value = list;
|
|
70942
71372
|
};
|
|
71373
|
+
const addContainerList = (list) => {
|
|
71374
|
+
if (Array.isArray(list)) {
|
|
71375
|
+
containerList.value = [...containerList.value, ...list];
|
|
71376
|
+
} else {
|
|
71377
|
+
containerList.value.push(list);
|
|
71378
|
+
}
|
|
71379
|
+
};
|
|
70943
71380
|
const setFormDataList = (list) => {
|
|
70944
71381
|
formDataList.value = list;
|
|
70945
71382
|
};
|
|
71383
|
+
const addFormDataList = (list) => {
|
|
71384
|
+
if (Array.isArray(list)) {
|
|
71385
|
+
formDataList.value = [...formDataList.value, ...list];
|
|
71386
|
+
} else {
|
|
71387
|
+
formDataList.value.push(list);
|
|
71388
|
+
}
|
|
71389
|
+
};
|
|
70946
71390
|
const setSelfFormDataList = (list) => {
|
|
70947
71391
|
selfFormDataList.value = list;
|
|
70948
71392
|
};
|
|
71393
|
+
const addSelfFormDataList = (list) => {
|
|
71394
|
+
if (Array.isArray(list)) {
|
|
71395
|
+
selfFormDataList.value = [...selfFormDataList.value, ...list];
|
|
71396
|
+
} else {
|
|
71397
|
+
selfFormDataList.value.push(list);
|
|
71398
|
+
}
|
|
71399
|
+
};
|
|
70949
71400
|
const setAllFormDataList = (list) => {
|
|
70950
71401
|
allFormDataList.value = list;
|
|
70951
71402
|
};
|
|
@@ -71059,6 +71510,9 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
71059
71510
|
setSelfFormDataList,
|
|
71060
71511
|
setFormDataList,
|
|
71061
71512
|
setContainerList,
|
|
71513
|
+
addSelfFormDataList,
|
|
71514
|
+
addContainerList,
|
|
71515
|
+
addFormDataList,
|
|
71062
71516
|
addHistoryRecord,
|
|
71063
71517
|
redo,
|
|
71064
71518
|
undo,
|
|
@@ -71804,7 +72258,6 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
71804
72258
|
});
|
|
71805
72259
|
};
|
|
71806
72260
|
const mergeDraft = (type) => {
|
|
71807
|
-
console.log("mergeDraft", type);
|
|
71808
72261
|
doMerge();
|
|
71809
72262
|
};
|
|
71810
72263
|
const doMerge = () => {
|
|
@@ -73319,7 +73772,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
73319
73772
|
|
|
73320
73773
|
/* unplugin-vue-components disabled */
|
|
73321
73774
|
|
|
73322
|
-
const DataPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-
|
|
73775
|
+
const DataPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-3ac1fbf8"]]);
|
|
73323
73776
|
|
|
73324
73777
|
const _hoisted_1$_ = { class: "flex items-center" };
|
|
73325
73778
|
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
@@ -74204,64 +74657,8 @@ const useCopyerOperationStore = defineStore("copyerOperation", () => {
|
|
|
74204
74657
|
};
|
|
74205
74658
|
});
|
|
74206
74659
|
|
|
74207
|
-
const useDesignPageStore = defineStore("designPage", () => {
|
|
74208
|
-
const nodeList = ref([]);
|
|
74209
|
-
const currentNode = ref(null);
|
|
74210
|
-
const isEdit = ref(false);
|
|
74211
|
-
const defaultZindex = ref(100);
|
|
74212
|
-
const clearAll = () => {
|
|
74213
|
-
isEdit.value = false;
|
|
74214
|
-
nodeList.value = [];
|
|
74215
|
-
currentNode.value = null;
|
|
74216
|
-
};
|
|
74217
|
-
const removeNode = (id) => {
|
|
74218
|
-
nodeList.value = nodeList.value.filter((node) => {
|
|
74219
|
-
return node.id != id;
|
|
74220
|
-
});
|
|
74221
|
-
currentNode.value = id == currentNode.value.id ? null : currentNode.value;
|
|
74222
|
-
};
|
|
74223
|
-
const setNodeList = (list) => {
|
|
74224
|
-
nodeList.value = list;
|
|
74225
|
-
};
|
|
74226
|
-
const addNode = (node) => {
|
|
74227
|
-
nodeList.value.push(node);
|
|
74228
|
-
};
|
|
74229
|
-
const selectNode = (node) => {
|
|
74230
|
-
currentNode.value = node;
|
|
74231
|
-
};
|
|
74232
|
-
const setIsEdit = (edit) => {
|
|
74233
|
-
isEdit.value = edit;
|
|
74234
|
-
};
|
|
74235
|
-
const maxZIndex = () => {
|
|
74236
|
-
nodeList.value.sort((a, b) => {
|
|
74237
|
-
if (!a.styles) {
|
|
74238
|
-
a["styles"] = {};
|
|
74239
|
-
}
|
|
74240
|
-
return (a.styles.zIndex || defaultZindex.value) - (b.styles.zIndex || defaultZindex.value);
|
|
74241
|
-
});
|
|
74242
|
-
return nodeList.value[0].styles?.zIndex || defaultZindex.value;
|
|
74243
|
-
};
|
|
74244
|
-
const init = () => {
|
|
74245
|
-
};
|
|
74246
|
-
return {
|
|
74247
|
-
nodeList,
|
|
74248
|
-
currentNode,
|
|
74249
|
-
isEdit,
|
|
74250
|
-
defaultZindex,
|
|
74251
|
-
setNodeList,
|
|
74252
|
-
removeNode,
|
|
74253
|
-
addNode,
|
|
74254
|
-
selectNode,
|
|
74255
|
-
clearAll,
|
|
74256
|
-
setIsEdit,
|
|
74257
|
-
maxZIndex,
|
|
74258
|
-
init
|
|
74259
|
-
};
|
|
74260
|
-
});
|
|
74261
|
-
|
|
74262
74660
|
const copyerAction = useCopyerOperationStore(piniaInstance);
|
|
74263
74661
|
const designForm$1 = useDesignFormStore(piniaInstance);
|
|
74264
|
-
const designPage = useDesignPageStore(piniaInstance);
|
|
74265
74662
|
const compList = computed(() => designForm$1.compList);
|
|
74266
74663
|
const currentItemId = computed(() => designForm$1.currentItemId);
|
|
74267
74664
|
const pasteDisplay = computed(() => {
|
|
@@ -74349,7 +74746,9 @@ function moveUpItem(isEdit, formItem, parentField) {
|
|
|
74349
74746
|
}
|
|
74350
74747
|
}
|
|
74351
74748
|
}
|
|
74352
|
-
} else if (parentField?.itemType == "box")
|
|
74749
|
+
} else if (parentField?.itemType == "box") {
|
|
74750
|
+
console.log("咱不处理");
|
|
74751
|
+
}
|
|
74353
74752
|
const compType = getParentComp(parentField);
|
|
74354
74753
|
if (compType === "item") {
|
|
74355
74754
|
for (let i = 0; i < dataList.length; i++) {
|
|
@@ -74531,11 +74930,9 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74531
74930
|
type: "button",
|
|
74532
74931
|
text: "新建",
|
|
74533
74932
|
icon: "new",
|
|
74534
|
-
display:
|
|
74933
|
+
display: !!recall,
|
|
74535
74934
|
handler: () => {
|
|
74536
|
-
|
|
74537
|
-
recall("new");
|
|
74538
|
-
}
|
|
74935
|
+
recall && recall("new");
|
|
74539
74936
|
}
|
|
74540
74937
|
});
|
|
74541
74938
|
}
|
|
@@ -74591,22 +74988,18 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74591
74988
|
type: "button",
|
|
74592
74989
|
text: "全选",
|
|
74593
74990
|
icon: "select-all",
|
|
74594
|
-
display:
|
|
74991
|
+
display: !!recall,
|
|
74595
74992
|
handler: () => {
|
|
74596
|
-
|
|
74597
|
-
recall("select-all");
|
|
74598
|
-
}
|
|
74993
|
+
recall && recall("select-all");
|
|
74599
74994
|
}
|
|
74600
74995
|
},
|
|
74601
74996
|
{
|
|
74602
74997
|
type: "button",
|
|
74603
74998
|
text: "清空",
|
|
74604
74999
|
icon: "dustbin",
|
|
74605
|
-
display:
|
|
75000
|
+
display: !!recall,
|
|
74606
75001
|
handler: () => {
|
|
74607
|
-
|
|
74608
|
-
recall("dustbin");
|
|
74609
|
-
}
|
|
75002
|
+
recall && recall("dustbin");
|
|
74610
75003
|
}
|
|
74611
75004
|
},
|
|
74612
75005
|
{
|
|
@@ -74618,11 +75011,9 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74618
75011
|
type: "button",
|
|
74619
75012
|
text: "预览",
|
|
74620
75013
|
icon: "preview",
|
|
74621
|
-
display:
|
|
75014
|
+
display: !!recall,
|
|
74622
75015
|
handler: () => {
|
|
74623
|
-
|
|
74624
|
-
recall("preview");
|
|
74625
|
-
}
|
|
75016
|
+
recall && recall("preview");
|
|
74626
75017
|
}
|
|
74627
75018
|
}
|
|
74628
75019
|
);
|
|
@@ -74652,11 +75043,9 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74652
75043
|
type: "button",
|
|
74653
75044
|
text: "撤销",
|
|
74654
75045
|
icon: "undo",
|
|
74655
|
-
display:
|
|
75046
|
+
display: !!recall,
|
|
74656
75047
|
handler: () => {
|
|
74657
|
-
|
|
74658
|
-
recall("undo");
|
|
74659
|
-
}
|
|
75048
|
+
recall && recall("undo");
|
|
74660
75049
|
}
|
|
74661
75050
|
},
|
|
74662
75051
|
{
|
|
@@ -74668,11 +75057,9 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74668
75057
|
type: "button",
|
|
74669
75058
|
text: "删除",
|
|
74670
75059
|
icon: "delete",
|
|
74671
|
-
display:
|
|
75060
|
+
display: !!recall,
|
|
74672
75061
|
handler: () => {
|
|
74673
|
-
|
|
74674
|
-
recall("delete");
|
|
74675
|
-
}
|
|
75062
|
+
recall && recall("delete");
|
|
74676
75063
|
}
|
|
74677
75064
|
},
|
|
74678
75065
|
{
|
|
@@ -74684,17 +75071,15 @@ function dynamicFormContextMenuData(item, parentItem, flag = "scene", recall) {
|
|
|
74684
75071
|
type: "button",
|
|
74685
75072
|
text: "属性",
|
|
74686
75073
|
icon: "prep",
|
|
74687
|
-
display:
|
|
75074
|
+
display: !!recall,
|
|
74688
75075
|
handler: () => {
|
|
74689
|
-
|
|
74690
|
-
recall("prep");
|
|
74691
|
-
}
|
|
75076
|
+
recall && recall("prep");
|
|
74692
75077
|
}
|
|
74693
75078
|
}
|
|
74694
75079
|
);
|
|
74695
75080
|
return menus;
|
|
74696
75081
|
}
|
|
74697
|
-
function dynamicPageContextMenuData(node) {
|
|
75082
|
+
function dynamicPageContextMenuData(node, recallFunction) {
|
|
74698
75083
|
let contentMenuData = [];
|
|
74699
75084
|
if (!node.styles) {
|
|
74700
75085
|
node.styles = {};
|
|
@@ -74704,20 +75089,18 @@ function dynamicPageContextMenuData(node) {
|
|
|
74704
75089
|
type: "button",
|
|
74705
75090
|
text: "水平居中",
|
|
74706
75091
|
icon: "center",
|
|
74707
|
-
display:
|
|
75092
|
+
display: !!recallFunction,
|
|
74708
75093
|
handler: () => {
|
|
75094
|
+
recallFunction && recallFunction("center", node);
|
|
74709
75095
|
}
|
|
74710
75096
|
},
|
|
74711
75097
|
{
|
|
74712
75098
|
type: "button",
|
|
74713
75099
|
text: "复制",
|
|
74714
75100
|
icon: "copy",
|
|
74715
|
-
display:
|
|
75101
|
+
display: !!recallFunction,
|
|
74716
75102
|
handler: () => {
|
|
74717
|
-
|
|
74718
|
-
temp.id = uuid();
|
|
74719
|
-
temp.name = temp.name + "复制";
|
|
74720
|
-
designPage.addNode(temp);
|
|
75103
|
+
recallFunction && recallFunction("copy", node);
|
|
74721
75104
|
}
|
|
74722
75105
|
},
|
|
74723
75106
|
{
|
|
@@ -74747,9 +75130,9 @@ function dynamicPageContextMenuData(node) {
|
|
|
74747
75130
|
type: "button",
|
|
74748
75131
|
text: "置顶",
|
|
74749
75132
|
icon: "to-top",
|
|
74750
|
-
display:
|
|
75133
|
+
display: !!recallFunction,
|
|
74751
75134
|
handler: () => {
|
|
74752
|
-
|
|
75135
|
+
recallFunction && recallFunction("toTop", node);
|
|
74753
75136
|
}
|
|
74754
75137
|
},
|
|
74755
75138
|
{
|
|
@@ -74770,9 +75153,9 @@ function dynamicPageContextMenuData(node) {
|
|
|
74770
75153
|
type: "button",
|
|
74771
75154
|
text: "删除",
|
|
74772
75155
|
icon: "delete",
|
|
74773
|
-
display:
|
|
75156
|
+
display: !!recallFunction,
|
|
74774
75157
|
handler: () => {
|
|
74775
|
-
|
|
75158
|
+
recallFunction && recallFunction("delete", node);
|
|
74776
75159
|
}
|
|
74777
75160
|
},
|
|
74778
75161
|
{
|
|
@@ -74784,8 +75167,9 @@ function dynamicPageContextMenuData(node) {
|
|
|
74784
75167
|
type: "button",
|
|
74785
75168
|
icon: "empty_setting",
|
|
74786
75169
|
text: "清空参考线",
|
|
74787
|
-
display:
|
|
75170
|
+
display: !!recallFunction,
|
|
74788
75171
|
handler: () => {
|
|
75172
|
+
recallFunction && recallFunction("empty_setting", node);
|
|
74789
75173
|
}
|
|
74790
75174
|
}
|
|
74791
75175
|
];
|
|
@@ -74836,7 +75220,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
74836
75220
|
default: false
|
|
74837
75221
|
}
|
|
74838
75222
|
},
|
|
74839
|
-
emits: ["selectNode"],
|
|
75223
|
+
emits: ["contextAction", "selectNode"],
|
|
74840
75224
|
setup(__props, { emit: __emit }) {
|
|
74841
75225
|
const props = __props;
|
|
74842
75226
|
const nodeRef = ref();
|
|
@@ -74847,17 +75231,27 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
74847
75231
|
styles = {};
|
|
74848
75232
|
}
|
|
74849
75233
|
let temp = { ...styles };
|
|
74850
|
-
if (props.
|
|
74851
|
-
temp["
|
|
74852
|
-
|
|
75234
|
+
if (props.isDesign) {
|
|
75235
|
+
temp["position"] = "absolute";
|
|
75236
|
+
if (props.isActive) {
|
|
75237
|
+
temp["cursor"] = "move";
|
|
75238
|
+
}
|
|
75239
|
+
if (typeof styles.left !== "number") styles.left = 50;
|
|
75240
|
+
if (typeof styles.top !== "number") styles.top = 50;
|
|
74853
75241
|
}
|
|
74854
75242
|
if (!styles["width"]) {
|
|
74855
75243
|
const parentWidth = nodeRef.value?.parentElement?.clientWidth || 1;
|
|
74856
75244
|
styles["width"] = props.sizeControlType === "percent" ? 100 * (nodeRef.value?.offsetWidth || 0) / parentWidth : nodeRef.value?.offsetWidth || nodeRef.value?.clientWidth;
|
|
75245
|
+
if (!styles["width"]) {
|
|
75246
|
+
styles["width"] = 20;
|
|
75247
|
+
}
|
|
74857
75248
|
}
|
|
74858
75249
|
if (!styles["height"]) {
|
|
74859
75250
|
const parentHeight = nodeRef.value?.parentElement?.clientHeight || 1;
|
|
74860
75251
|
styles["height"] = props.sizeControlType === "percent" ? 100 * (nodeRef.value?.offsetHeight || 0) / parentHeight : nodeRef.value?.offsetHeight || nodeRef.value?.clientHeight;
|
|
75252
|
+
if (!styles["height"]) {
|
|
75253
|
+
styles["height"] = 15;
|
|
75254
|
+
}
|
|
74861
75255
|
}
|
|
74862
75256
|
for (let key in temp) {
|
|
74863
75257
|
if (typeof temp[key] === "number" && !["flex", "zIndex"].includes(key)) {
|
|
@@ -74894,7 +75288,6 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
74894
75288
|
rangeActive.value = false;
|
|
74895
75289
|
isDragging.value = false;
|
|
74896
75290
|
};
|
|
74897
|
-
let step = ref(1);
|
|
74898
75291
|
const handleClear = () => {
|
|
74899
75292
|
window.onmouseup = function() {
|
|
74900
75293
|
document.onmousemove = null;
|
|
@@ -74914,92 +75307,138 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
74914
75307
|
if (!props.node.styles) {
|
|
74915
75308
|
props.node.styles = {};
|
|
74916
75309
|
}
|
|
74917
|
-
let shouldAdjustWidth = false;
|
|
74918
|
-
let shouldAdjustHeight = false;
|
|
74919
|
-
let adjustTop = false;
|
|
74920
|
-
let invertWidthDirection = false;
|
|
74921
|
-
let invertHeightDirection = false;
|
|
74922
75310
|
rangeActive.value = true;
|
|
74923
75311
|
handleMouseDown();
|
|
74924
|
-
|
|
74925
|
-
|
|
74926
|
-
const
|
|
74927
|
-
const
|
|
75312
|
+
const parentEl = nodeRef.value?.parentElement;
|
|
75313
|
+
const parentRect = parentEl?.getBoundingClientRect();
|
|
75314
|
+
const nodeRect = nodeRef.value?.getBoundingClientRect();
|
|
75315
|
+
const parentWidth = parentEl?.clientWidth || 1;
|
|
75316
|
+
const parentHeight = parentEl?.clientHeight || 1;
|
|
75317
|
+
const initialLeftEdge = (nodeRect?.left || 0) - (parentRect?.left || 0);
|
|
75318
|
+
const initialTopEdge = (nodeRect?.top || 0) - (parentRect?.top || 0);
|
|
75319
|
+
const initialWidthPx = nodeRect?.width || 0;
|
|
75320
|
+
const initialHeightPx = nodeRect?.height || 0;
|
|
75321
|
+
const initialRightEdge = initialLeftEdge + initialWidthPx;
|
|
75322
|
+
const initialBottomEdge = initialTopEdge + initialHeightPx;
|
|
75323
|
+
const initialLeftOffset = props.node.styles.left || 0;
|
|
75324
|
+
const initialTopOffset = props.node.styles.top || 0;
|
|
75325
|
+
const baselineLeft = initialLeftEdge - initialLeftOffset;
|
|
75326
|
+
const baselineTop = initialTopEdge - initialTopOffset;
|
|
75327
|
+
const clamp = (v, min, max) => Math.min(Math.max(v, min), max);
|
|
74928
75328
|
document.onmousemove = (e) => {
|
|
74929
75329
|
moveActive.value = true;
|
|
75330
|
+
const pointerX = e.clientX - (parentRect?.left || 0);
|
|
75331
|
+
const pointerY = e.clientY - (parentRect?.top || 0);
|
|
75332
|
+
const dxLeft = pointerX - initialLeftEdge;
|
|
75333
|
+
const dxRight = pointerX - initialRightEdge;
|
|
75334
|
+
const dyTop = pointerY - initialTopEdge;
|
|
75335
|
+
const dyBottom = pointerY - initialBottomEdge;
|
|
75336
|
+
let newLeftOffset = initialLeftOffset;
|
|
75337
|
+
let newTopOffset = initialTopOffset;
|
|
75338
|
+
let newWidth = initialWidthPx;
|
|
75339
|
+
let newHeight = initialHeightPx;
|
|
74930
75340
|
switch (direction) {
|
|
74931
|
-
case "right":
|
|
74932
|
-
|
|
75341
|
+
case "right": {
|
|
75342
|
+
const targetRight = clamp(initialRightEdge + dxRight, initialLeftEdge + 1, parentWidth);
|
|
75343
|
+
newWidth = Math.max(1, targetRight - initialLeftEdge);
|
|
74933
75344
|
break;
|
|
74934
|
-
|
|
74935
|
-
|
|
74936
|
-
|
|
74937
|
-
|
|
74938
|
-
|
|
74939
|
-
|
|
74940
|
-
adjustTop = true;
|
|
74941
|
-
invertHeightDirection = true;
|
|
75345
|
+
}
|
|
75346
|
+
case "left": {
|
|
75347
|
+
let targetLeft = initialLeftEdge + dxLeft;
|
|
75348
|
+
targetLeft = clamp(targetLeft, 0, initialRightEdge - 1);
|
|
75349
|
+
newLeftOffset = targetLeft - baselineLeft;
|
|
75350
|
+
newWidth = Math.max(1, initialRightEdge - targetLeft);
|
|
74942
75351
|
break;
|
|
74943
|
-
|
|
74944
|
-
|
|
75352
|
+
}
|
|
75353
|
+
case "bottom": {
|
|
75354
|
+
const targetBottom = clamp(initialBottomEdge + dyBottom, initialTopEdge + 1, parentHeight);
|
|
75355
|
+
newHeight = Math.max(1, targetBottom - initialTopEdge);
|
|
74945
75356
|
break;
|
|
74946
|
-
|
|
74947
|
-
|
|
74948
|
-
|
|
75357
|
+
}
|
|
75358
|
+
case "top": {
|
|
75359
|
+
let targetTop = initialTopEdge + dyTop;
|
|
75360
|
+
targetTop = clamp(targetTop, 0, initialBottomEdge - 1);
|
|
75361
|
+
newTopOffset = targetTop - baselineTop;
|
|
75362
|
+
newHeight = Math.max(1, initialBottomEdge - targetTop);
|
|
74949
75363
|
break;
|
|
74950
|
-
|
|
74951
|
-
|
|
74952
|
-
|
|
74953
|
-
|
|
75364
|
+
}
|
|
75365
|
+
case "bottom-right": {
|
|
75366
|
+
const targetRight = clamp(initialRightEdge + dxRight, initialLeftEdge + 1, parentWidth);
|
|
75367
|
+
const targetBottom = clamp(initialBottomEdge + dyBottom, initialTopEdge + 1, parentHeight);
|
|
75368
|
+
newWidth = Math.max(1, targetRight - initialLeftEdge);
|
|
75369
|
+
newHeight = Math.max(1, targetBottom - initialTopEdge);
|
|
74954
75370
|
break;
|
|
74955
|
-
|
|
74956
|
-
|
|
74957
|
-
|
|
74958
|
-
|
|
74959
|
-
|
|
75371
|
+
}
|
|
75372
|
+
case "bottom-left": {
|
|
75373
|
+
let targetLeft = initialLeftEdge + dxLeft;
|
|
75374
|
+
targetLeft = clamp(targetLeft, 0, initialRightEdge - 1);
|
|
75375
|
+
newLeftOffset = targetLeft - baselineLeft;
|
|
75376
|
+
newWidth = Math.max(1, initialRightEdge - targetLeft);
|
|
75377
|
+
const targetBottom = clamp(initialBottomEdge + dyBottom, initialTopEdge + 1, parentHeight);
|
|
75378
|
+
newHeight = Math.max(1, targetBottom - initialTopEdge);
|
|
74960
75379
|
break;
|
|
74961
|
-
|
|
74962
|
-
|
|
74963
|
-
|
|
74964
|
-
|
|
74965
|
-
|
|
75380
|
+
}
|
|
75381
|
+
case "top-right": {
|
|
75382
|
+
const targetRight = clamp(initialRightEdge + dxRight, initialLeftEdge + 1, parentWidth);
|
|
75383
|
+
newWidth = Math.max(1, targetRight - initialLeftEdge);
|
|
75384
|
+
let targetTop = initialTopEdge + dyTop;
|
|
75385
|
+
targetTop = clamp(targetTop, 0, initialBottomEdge - 1);
|
|
75386
|
+
newTopOffset = targetTop - baselineTop;
|
|
75387
|
+
newHeight = Math.max(1, initialBottomEdge - targetTop);
|
|
74966
75388
|
break;
|
|
74967
|
-
}
|
|
74968
|
-
const deltaX = e.clientX - startX;
|
|
74969
|
-
const deltaY = e.clientY - startY;
|
|
74970
|
-
startX = e.clientX;
|
|
74971
|
-
startY = e.clientY;
|
|
74972
|
-
const sensitivity = 3.55;
|
|
74973
|
-
if (props.sizeControlType === "percent") {
|
|
74974
|
-
if (shouldAdjustWidth) {
|
|
74975
|
-
const widthDelta = deltaX / parentWidth * 100 * step.value * sensitivity;
|
|
74976
|
-
const finalWidthDelta = invertWidthDirection ? -widthDelta : widthDelta;
|
|
74977
|
-
const currentWidth = nodeRef.value?.offsetWidth || 0;
|
|
74978
|
-
props.node.styles.width = (parseFloat(props.node.styles.width) || 100 * currentWidth / parentWidth) + finalWidthDelta;
|
|
74979
75389
|
}
|
|
74980
|
-
|
|
74981
|
-
|
|
74982
|
-
|
|
74983
|
-
|
|
74984
|
-
|
|
74985
|
-
|
|
74986
|
-
|
|
74987
|
-
|
|
75390
|
+
case "top-left": {
|
|
75391
|
+
let targetLeft = initialLeftEdge + dxLeft;
|
|
75392
|
+
targetLeft = clamp(targetLeft, 0, initialRightEdge - 1);
|
|
75393
|
+
newLeftOffset = targetLeft - baselineLeft;
|
|
75394
|
+
newWidth = Math.max(1, initialRightEdge - targetLeft);
|
|
75395
|
+
let targetTop = initialTopEdge + dyTop;
|
|
75396
|
+
targetTop = clamp(targetTop, 0, initialBottomEdge - 1);
|
|
75397
|
+
newTopOffset = targetTop - baselineTop;
|
|
75398
|
+
newHeight = Math.max(1, initialBottomEdge - targetTop);
|
|
75399
|
+
break;
|
|
74988
75400
|
}
|
|
74989
|
-
}
|
|
74990
|
-
|
|
74991
|
-
|
|
74992
|
-
|
|
74993
|
-
|
|
75401
|
+
}
|
|
75402
|
+
const setWidth = (wPx) => {
|
|
75403
|
+
if (props.sizeControlType === "percent") {
|
|
75404
|
+
props.node.styles.width = wPx / parentWidth * 100;
|
|
75405
|
+
} else {
|
|
75406
|
+
props.node.styles.width = wPx;
|
|
74994
75407
|
}
|
|
74995
|
-
|
|
74996
|
-
|
|
74997
|
-
|
|
74998
|
-
|
|
74999
|
-
|
|
75000
|
-
|
|
75001
|
-
props.node.styles.height = (props.node.styles.height || 50) + finalHeightDelta;
|
|
75408
|
+
};
|
|
75409
|
+
const setHeight = (hPx) => {
|
|
75410
|
+
if (props.sizeControlType === "percent") {
|
|
75411
|
+
props.node.styles.height = hPx / parentHeight * 100;
|
|
75412
|
+
} else {
|
|
75413
|
+
props.node.styles.height = hPx;
|
|
75002
75414
|
}
|
|
75415
|
+
};
|
|
75416
|
+
if (direction === "right") {
|
|
75417
|
+
setWidth(newWidth);
|
|
75418
|
+
} else if (direction === "left") {
|
|
75419
|
+
props.node.styles.left = newLeftOffset;
|
|
75420
|
+
setWidth(newWidth);
|
|
75421
|
+
} else if (direction === "bottom") {
|
|
75422
|
+
setHeight(newHeight);
|
|
75423
|
+
} else if (direction === "top") {
|
|
75424
|
+
props.node.styles.top = newTopOffset;
|
|
75425
|
+
setHeight(newHeight);
|
|
75426
|
+
} else if (direction === "bottom-right") {
|
|
75427
|
+
setWidth(newWidth);
|
|
75428
|
+
setHeight(newHeight);
|
|
75429
|
+
} else if (direction === "bottom-left") {
|
|
75430
|
+
props.node.styles.left = newLeftOffset;
|
|
75431
|
+
setWidth(newWidth);
|
|
75432
|
+
setHeight(newHeight);
|
|
75433
|
+
} else if (direction === "top-right") {
|
|
75434
|
+
setWidth(newWidth);
|
|
75435
|
+
props.node.styles.top = newTopOffset;
|
|
75436
|
+
setHeight(newHeight);
|
|
75437
|
+
} else if (direction === "top-left") {
|
|
75438
|
+
props.node.styles.left = newLeftOffset;
|
|
75439
|
+
setWidth(newWidth);
|
|
75440
|
+
props.node.styles.top = newTopOffset;
|
|
75441
|
+
setHeight(newHeight);
|
|
75003
75442
|
}
|
|
75004
75443
|
};
|
|
75005
75444
|
handleClear();
|
|
@@ -75043,6 +75482,9 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
75043
75482
|
e.preventDefault();
|
|
75044
75483
|
contentMenuRef.value?.show(e);
|
|
75045
75484
|
};
|
|
75485
|
+
const recallFunction = (actionName, nodeInfo) => {
|
|
75486
|
+
emits("contextAction", actionName, nodeInfo);
|
|
75487
|
+
};
|
|
75046
75488
|
onMounted(() => {
|
|
75047
75489
|
init();
|
|
75048
75490
|
});
|
|
@@ -75086,7 +75528,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
75086
75528
|
createVNode(_component_ContentMenu, {
|
|
75087
75529
|
ref_key: "contentMenuRef",
|
|
75088
75530
|
ref: contentMenuRef,
|
|
75089
|
-
"menu-data": unref(dynamicPageContextMenuData)(__props.node)
|
|
75531
|
+
"menu-data": unref(dynamicPageContextMenuData)(__props.node, recallFunction)
|
|
75090
75532
|
}, null, 8, ["menu-data"])
|
|
75091
75533
|
]))
|
|
75092
75534
|
], 64);
|
|
@@ -75096,7 +75538,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
75096
75538
|
|
|
75097
75539
|
/* unplugin-vue-components disabled */
|
|
75098
75540
|
|
|
75099
|
-
const StarHorseDraggable = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-
|
|
75541
|
+
const StarHorseDraggable = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-508d8f79"]]);
|
|
75100
75542
|
|
|
75101
75543
|
const StarHorseDraggable$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
75102
75544
|
__proto__: null,
|
|
@@ -79721,10 +80163,9 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
79721
80163
|
changeStyle("hidden");
|
|
79722
80164
|
};
|
|
79723
80165
|
const changeStyle = (type) => {
|
|
79724
|
-
console.log("changeStyle", type);
|
|
79725
80166
|
nextTick(() => {
|
|
79726
80167
|
$(".edit-container")?.parent(".cell").css("overflow", type);
|
|
79727
|
-
$("input,select,textarea").first().select().focus();
|
|
80168
|
+
$(".edit-container")?.find("input,select,textarea").first().select().focus();
|
|
79728
80169
|
});
|
|
79729
80170
|
};
|
|
79730
80171
|
const cellClick = (row, column) => {
|
|
@@ -79915,7 +80356,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
79915
80356
|
|
|
79916
80357
|
/* unplugin-vue-components disabled */
|
|
79917
80358
|
|
|
79918
|
-
const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-
|
|
80359
|
+
const __unplugin_components_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-425b90e5"]]);
|
|
79919
80360
|
|
|
79920
80361
|
const StarHorseTableColumn = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
79921
80362
|
__proto__: null,
|
|
@@ -83128,7 +83569,6 @@ const insertRightCol = (props, type, allCol) => {
|
|
|
83128
83569
|
};
|
|
83129
83570
|
const insertAboveRow = (props, type) => {
|
|
83130
83571
|
const position = props.rowIndex;
|
|
83131
|
-
console.log("insertAboveRow", position);
|
|
83132
83572
|
addRow(props, position, type);
|
|
83133
83573
|
};
|
|
83134
83574
|
const addRow = (props, position, type) => {
|
|
@@ -83160,7 +83600,6 @@ const addRow = (props, position, type) => {
|
|
|
83160
83600
|
};
|
|
83161
83601
|
const insertBelowRow = (props, type) => {
|
|
83162
83602
|
const position = props.rowIndex + 1;
|
|
83163
|
-
console.log("insertBelowRow", position);
|
|
83164
83603
|
addRow(props, position, type);
|
|
83165
83604
|
};
|
|
83166
83605
|
const tableCellInfo = (props, type) => {
|
|
@@ -91357,6 +91796,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
91357
91796
|
setup(__props, { emit: __emit }) {
|
|
91358
91797
|
const formData = useModel(__props, "formData");
|
|
91359
91798
|
const init = async () => {
|
|
91799
|
+
nextTick(() => {
|
|
91800
|
+
const toolbarRight = document.querySelector(".md-editor-toolbar-right");
|
|
91801
|
+
if (toolbarRight) {
|
|
91802
|
+
const lastButton = toolbarRight.querySelector("button:last-child");
|
|
91803
|
+
if (lastButton) {
|
|
91804
|
+
lastButton.remove();
|
|
91805
|
+
}
|
|
91806
|
+
}
|
|
91807
|
+
});
|
|
91360
91808
|
};
|
|
91361
91809
|
onMounted(() => {
|
|
91362
91810
|
init();
|
|
@@ -91392,7 +91840,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
91392
91840
|
|
|
91393
91841
|
/* unplugin-vue-components disabled */
|
|
91394
91842
|
|
|
91395
|
-
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
91843
|
+
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-84c592d2"]]);
|
|
91396
91844
|
|
|
91397
91845
|
const markdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
91398
91846
|
__proto__: null,
|
|
@@ -102872,6 +103320,61 @@ const useConsumerViewStore = defineStore(
|
|
|
102872
103320
|
}
|
|
102873
103321
|
);
|
|
102874
103322
|
|
|
103323
|
+
const useDesignPageStore = defineStore("designPage", () => {
|
|
103324
|
+
const nodeList = ref([]);
|
|
103325
|
+
const currentNode = ref(null);
|
|
103326
|
+
const isEdit = ref(false);
|
|
103327
|
+
const defaultZindex = ref(100);
|
|
103328
|
+
const clearAll = () => {
|
|
103329
|
+
isEdit.value = false;
|
|
103330
|
+
nodeList.value = [];
|
|
103331
|
+
currentNode.value = null;
|
|
103332
|
+
};
|
|
103333
|
+
const removeNode = (id) => {
|
|
103334
|
+
nodeList.value = nodeList.value.filter((node) => {
|
|
103335
|
+
return node.id != id;
|
|
103336
|
+
});
|
|
103337
|
+
currentNode.value = id == currentNode.value.id ? null : currentNode.value;
|
|
103338
|
+
};
|
|
103339
|
+
const setNodeList = (list) => {
|
|
103340
|
+
nodeList.value = list;
|
|
103341
|
+
};
|
|
103342
|
+
const addNode = (node) => {
|
|
103343
|
+
nodeList.value.push(node);
|
|
103344
|
+
};
|
|
103345
|
+
const selectNode = (node) => {
|
|
103346
|
+
currentNode.value = node;
|
|
103347
|
+
};
|
|
103348
|
+
const setIsEdit = (edit) => {
|
|
103349
|
+
isEdit.value = edit;
|
|
103350
|
+
};
|
|
103351
|
+
const maxZIndex = () => {
|
|
103352
|
+
nodeList.value.sort((a, b) => {
|
|
103353
|
+
if (!a.styles) {
|
|
103354
|
+
a["styles"] = {};
|
|
103355
|
+
}
|
|
103356
|
+
return (a.styles.zIndex || defaultZindex.value) - (b.styles.zIndex || defaultZindex.value);
|
|
103357
|
+
});
|
|
103358
|
+
return nodeList.value[0].styles?.zIndex || defaultZindex.value;
|
|
103359
|
+
};
|
|
103360
|
+
const init = () => {
|
|
103361
|
+
};
|
|
103362
|
+
return {
|
|
103363
|
+
nodeList,
|
|
103364
|
+
currentNode,
|
|
103365
|
+
isEdit,
|
|
103366
|
+
defaultZindex,
|
|
103367
|
+
setNodeList,
|
|
103368
|
+
removeNode,
|
|
103369
|
+
addNode,
|
|
103370
|
+
selectNode,
|
|
103371
|
+
clearAll,
|
|
103372
|
+
setIsEdit,
|
|
103373
|
+
maxZIndex,
|
|
103374
|
+
init
|
|
103375
|
+
};
|
|
103376
|
+
});
|
|
103377
|
+
|
|
102875
103378
|
const items = /* #__PURE__ */ Object.assign({"/src/components/comp/ShDynamicForm.vue": () => Promise.resolve().then(() => ShDynamicForm),"/src/components/comp/ShForm.vue": () => Promise.resolve().then(() => ShForm),"/src/components/comp/ShTableListColumn.vue": () => Promise.resolve().then(() => ShTableListColumn),"/src/components/comp/StarHorseDataSelector.vue": () => Promise.resolve().then(() => StarHorseDataSelector$1),"/src/components/comp/StarHorseDataView.vue": () => Promise.resolve().then(() => StarHorseDataView),"/src/components/comp/StarHorseDataViewItems.vue": () => Promise.resolve().then(() => StarHorseDataViewItems),"/src/components/comp/StarHorseDataViewTable.vue": () => Promise.resolve().then(() => StarHorseDataViewTable),"/src/components/comp/StarHorseDialog.vue": () => Promise.resolve().then(() => StarHorseDialog),"/src/components/comp/StarHorseDraggable.vue": () => Promise.resolve().then(() => StarHorseDraggable$1),"/src/components/comp/StarHorseForm.vue": () => Promise.resolve().then(() => StarHorseForm),"/src/components/comp/StarHorseFormItem.vue": () => Promise.resolve().then(() => StarHorseFormItem),"/src/components/comp/StarHorseFormList.vue": () => Promise.resolve().then(() => StarHorseFormList),"/src/components/comp/StarHorseFormTable.vue": () => Promise.resolve().then(() => StarHorseFormTable),"/src/components/comp/StarHorseIcon.vue": () => Promise.resolve().then(() => StarHorseIcon),"/src/components/comp/StarHorseItem.vue": () => Promise.resolve().then(() => StarHorseItem),"/src/components/comp/StarHorseJsonEditor.vue": () => Promise.resolve().then(() => StarHorseJsonEditor),"/src/components/comp/StarHorsePopover.vue": () => Promise.resolve().then(() => StarHorsePopover),"/src/components/comp/StarHorseSearchComp.vue": () => Promise.resolve().then(() => StarHorseSearchComp),"/src/components/comp/StarHorseStaticTable.vue": () => Promise.resolve().then(() => StarHorseStaticTable$1),"/src/components/comp/StarHorseTableColumn.vue": () => Promise.resolve().then(() => StarHorseTableColumn),"/src/components/comp/StarHorseTableComp.vue": () => Promise.resolve().then(() => StarHorseTableComp),"/src/components/comp/StarHorseTableViewColumn.vue": () => Promise.resolve().then(() => StarHorseTableViewColumn),"/src/components/comp/StarHorseTree.vue": () => Promise.resolve().then(() => StarHorseTree$1),"/src/components/comp/items/UTableColumn.vue": () => Promise.resolve().then(() => UTableColumn),"/src/components/comp/items/boxItem.vue": () => Promise.resolve().then(() => boxItem),"/src/components/comp/items/cardItem.vue": () => Promise.resolve().then(() => cardItem$1),"/src/components/comp/items/collapseItem.vue": () => Promise.resolve().then(() => collapseItem$1),"/src/components/comp/items/dytableItem.vue": () => Promise.resolve().then(() => dytableItem$1),"/src/components/comp/items/otherItem.vue": () => Promise.resolve().then(() => otherItem),"/src/components/comp/items/splitterItem.vue": () => Promise.resolve().then(() => splitterItem$1),"/src/components/comp/items/tabItem.vue": () => Promise.resolve().then(() => tabItem$1),"/src/components/comp/items/tabPanelItem.vue": () => Promise.resolve().then(() => tabPanelItem),"/src/components/comp/items/tableColumn.vue": () => Promise.resolve().then(() => tableColumn),"/src/components/comp/items/tableItem.vue": () => Promise.resolve().then(() => tableItem),"/src/components/comp/items/tablebtn.vue": () => Promise.resolve().then(() => tablebtn),"/src/components/comp/items/viewBoxItem.vue": () => Promise.resolve().then(() => viewBoxItem),"/src/components/comp/items/viewCardItem.vue": () => Promise.resolve().then(() => viewCardItem$1),"/src/components/comp/items/viewCollapseItem.vue": () => Promise.resolve().then(() => viewCollapseItem$1),"/src/components/comp/items/viewDytableItem.vue": () => Promise.resolve().then(() => viewDytableItem$1),"/src/components/comp/items/viewOtherItem.vue": () => Promise.resolve().then(() => viewOtherItem),"/src/components/comp/items/viewSplitterItem.vue": () => Promise.resolve().then(() => viewSplitterItem$1),"/src/components/comp/items/viewTabItem.vue": () => Promise.resolve().then(() => viewTabItem$1),"/src/components/comp/items/viewTabPanelItem.vue": () => Promise.resolve().then(() => viewTabPanelItem),"/src/components/comp/items/viewTableItem.vue": () => Promise.resolve().then(() => viewTableItem),"/src/components/formcomp/container/box-col.vue": () => Promise.resolve().then(() => boxCol),"/src/components/formcomp/container/box-container.vue": () => Promise.resolve().then(() => boxContainer),"/src/components/formcomp/container/card-container.vue": () => Promise.resolve().then(() => cardContainer),"/src/components/formcomp/container/collapse-container.vue": () => Promise.resolve().then(() => collapseContainer$1),"/src/components/formcomp/container/dytable-col.vue": () => Promise.resolve().then(() => dytableCol),"/src/components/formcomp/container/dytable-container.vue": () => Promise.resolve().then(() => dytableContainer$1),"/src/components/formcomp/container/group-container.vue": () => Promise.resolve().then(() => groupContainer),"/src/components/formcomp/container/splitter-container.vue": () => Promise.resolve().then(() => splitterContainer$1),"/src/components/formcomp/container/tab-container.vue": () => Promise.resolve().then(() => tabContainer),"/src/components/formcomp/container/table-container.vue": () => Promise.resolve().then(() => tableContainer$1),"/src/components/formcomp/items/area-item.vue": () => Promise.resolve().then(() => areaItem$1),"/src/components/formcomp/items/audio-item.vue": () => Promise.resolve().then(() => audioItem),"/src/components/formcomp/items/autocomplete-item.vue": () => Promise.resolve().then(() => autocompleteItem),"/src/components/formcomp/items/barcode-item.vue": () => Promise.resolve().then(() => barcodeItem),"/src/components/formcomp/items/base-json-item.vue": () => Promise.resolve().then(() => baseJsonItem),"/src/components/formcomp/items/button-item.vue": () => Promise.resolve().then(() => buttonItem$1),"/src/components/formcomp/items/cascade-item.vue": () => Promise.resolve().then(() => cascadeItem$1),"/src/components/formcomp/items/checkbox-item.vue": () => Promise.resolve().then(() => checkboxItem),"/src/components/formcomp/items/color-item.vue": () => Promise.resolve().then(() => colorItem),"/src/components/formcomp/items/cron-item.vue": () => Promise.resolve().then(() => cronItem),"/src/components/formcomp/items/datapicker-item.vue": () => Promise.resolve().then(() => datapickerItem),"/src/components/formcomp/items/datetime-item.vue": () => Promise.resolve().then(() => datetimeItem$1),"/src/components/formcomp/items/depart-item.vue": () => Promise.resolve().then(() => departItem),"/src/components/formcomp/items/dialog-input-item.vue": () => Promise.resolve().then(() => dialogInputItem$1),"/src/components/formcomp/items/divider-item.vue": () => Promise.resolve().then(() => dividerItem),"/src/components/formcomp/items/html-item.vue": () => Promise.resolve().then(() => htmlItem$1),"/src/components/formcomp/items/htmleditor-item.vue": () => Promise.resolve().then(() => htmleditorItem),"/src/components/formcomp/items/icon-item.vue": () => Promise.resolve().then(() => iconItem$1),"/src/components/formcomp/items/image-item.vue": () => Promise.resolve().then(() => imageItem$1),"/src/components/formcomp/items/input-item.vue": () => Promise.resolve().then(() => inputItem$1),"/src/components/formcomp/items/json-array-item.vue": () => Promise.resolve().then(() => jsonArrayItem),"/src/components/formcomp/items/json-item.vue": () => Promise.resolve().then(() => jsonItem),"/src/components/formcomp/items/markdown-item.vue": () => Promise.resolve().then(() => markdownItem$1),"/src/components/formcomp/items/number-item.vue": () => Promise.resolve().then(() => numberItem$1),"/src/components/formcomp/items/number-range-item.vue": () => Promise.resolve().then(() => numberRangeItem$1),"/src/components/formcomp/items/page-select-item.vue": () => Promise.resolve().then(() => pageSelectItem$1),"/src/components/formcomp/items/password-item.vue": () => Promise.resolve().then(() => passwordItem),"/src/components/formcomp/items/qrcode-item.vue": () => Promise.resolve().then(() => qrcodeItem),"/src/components/formcomp/items/radio-item.vue": () => Promise.resolve().then(() => radioItem),"/src/components/formcomp/items/rate-item.vue": () => Promise.resolve().then(() => rateItem),"/src/components/formcomp/items/select-item.vue": () => Promise.resolve().then(() => selectItem$1),"/src/components/formcomp/items/signature-item.vue": () => Promise.resolve().then(() => signatureItem$1),"/src/components/formcomp/items/slider-item.vue": () => Promise.resolve().then(() => sliderItem),"/src/components/formcomp/items/starhorse-form-item.vue": () => Promise.resolve().then(() => starhorseFormItem),"/src/components/formcomp/items/switch-item.vue": () => Promise.resolve().then(() => switchItem),"/src/components/formcomp/items/tag-item.vue": () => Promise.resolve().then(() => tagItem),"/src/components/formcomp/items/text-item.vue": () => Promise.resolve().then(() => textItem),"/src/components/formcomp/items/textarea-item.vue": () => Promise.resolve().then(() => textareaItem),"/src/components/formcomp/items/time-item.vue": () => Promise.resolve().then(() => timeItem$1),"/src/components/formcomp/items/time-picker-item.vue": () => Promise.resolve().then(() => timePickerItem$1),"/src/components/formcomp/items/transfer-item.vue": () => Promise.resolve().then(() => transferItem),"/src/components/formcomp/items/tselect-item.vue": () => Promise.resolve().then(() => tselectItem),"/src/components/formcomp/items/unknown-item.vue": () => Promise.resolve().then(() => unknownItem),"/src/components/formcomp/items/upload-item.vue": () => Promise.resolve().then(() => uploadItem$1),"/src/components/formcomp/items/user-item.vue": () => Promise.resolve().then(() => userItem),"/src/components/formcomp/items/usercomp-item.vue": () => Promise.resolve().then(() => usercompItem),"/src/components/formcomp/items/view-markdown-item.vue": () => Promise.resolve().then(() => viewMarkdownItem$1),"/src/components/system/ContentMenu.vue": () => Promise.resolve().then(() => ContentMenu),"/src/components/system/StarHorseButtonList.vue": () => Promise.resolve().then(() => StarHorseButtonList),"/src/components/system/StarHorseMenu.vue": () => Promise.resolve().then(() => StarHorseMenu$1),"/src/components/system/StarHorseSvg.vue": () => Promise.resolve().then(() => StarHorseSvg$1)
|
|
102876
103379
|
|
|
102877
103380
|
|