lew-ui 2.4.1 → 2.4.3
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 +46 -46
- package/README.zh-CN.md +48 -48
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +10 -10
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +6 -20
- package/dist/components/collapse/src/props.d.ts +6 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +5 -5
- package/dist/components/empty/src/props.d.ts +2 -2
- package/dist/components/form/src/LewFormItem.vue.d.ts +1 -1
- package/dist/components/popok/src/LewPopok.vue.d.ts +4 -18
- package/dist/components/popok/src/props.d.ts +2 -9
- package/dist/components/table/src/LewTable.vue.d.ts +10 -4
- package/dist/components/table/src/SortIcon.vue.d.ts +20 -0
- package/dist/index.mjs +807 -473
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,9 @@ const flexProps = {
|
|
|
18
18
|
description: "子元素在水平方向上的对齐方式",
|
|
19
19
|
validator(value) {
|
|
20
20
|
if (!["start", "center", "end"].includes(value)) {
|
|
21
|
-
console.warn(
|
|
21
|
+
console.warn(
|
|
22
|
+
`[LewFlex] 无效的水平对齐值: ${value}。请使用 'start'、'center' 或 'end'。`
|
|
23
|
+
);
|
|
22
24
|
return false;
|
|
23
25
|
}
|
|
24
26
|
return true;
|
|
@@ -30,7 +32,9 @@ const flexProps = {
|
|
|
30
32
|
description: "子元素在垂直方向上的对齐方式",
|
|
31
33
|
validator(value) {
|
|
32
34
|
if (!["start", "center", "end"].includes(value)) {
|
|
33
|
-
console.warn(
|
|
35
|
+
console.warn(
|
|
36
|
+
`[LewFlex] 无效的垂直对齐值: ${value}。请使用 'start'、'center' 或 'end'。`
|
|
37
|
+
);
|
|
34
38
|
return false;
|
|
35
39
|
}
|
|
36
40
|
return true;
|
|
@@ -42,7 +46,9 @@ const flexProps = {
|
|
|
42
46
|
description: "子元素的分布模式,会覆盖 x 或 y 的对齐设置,具体影响取决于 direction 的值",
|
|
43
47
|
validator(value) {
|
|
44
48
|
if (value && !["around", "between"].includes(value)) {
|
|
45
|
-
console.warn(
|
|
49
|
+
console.warn(
|
|
50
|
+
`[LewFlex] 无效的分布模式: ${value}。请使用 'around' 或 'between'。`
|
|
51
|
+
);
|
|
46
52
|
return false;
|
|
47
53
|
}
|
|
48
54
|
return true;
|
|
@@ -76,7 +82,9 @@ const flexProps = {
|
|
|
76
82
|
return false;
|
|
77
83
|
}
|
|
78
84
|
if (value && typeof value === "string" && !/^(\d+(\.\d+)?(px|%)?|\d+)$/.test(value)) {
|
|
79
|
-
console.warn(
|
|
85
|
+
console.warn(
|
|
86
|
+
`[LewFlex] width 字符串值必须是有效的 CSS 宽度值(如 '100px' 或 '50%')。`
|
|
87
|
+
);
|
|
80
88
|
return false;
|
|
81
89
|
}
|
|
82
90
|
return true;
|
|
@@ -2119,6 +2127,16 @@ const createLucideIcon = (iconName, iconNode) => (props, { slots }) => h$1(
|
|
|
2119
2127
|
},
|
|
2120
2128
|
slots
|
|
2121
2129
|
);
|
|
2130
|
+
/**
|
|
2131
|
+
* @license lucide-vue-next v0.441.0 - ISC
|
|
2132
|
+
*
|
|
2133
|
+
* This source code is licensed under the ISC license.
|
|
2134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2135
|
+
*/
|
|
2136
|
+
const ArrowDown = createLucideIcon("ArrowDownIcon", [
|
|
2137
|
+
["path", { d: "M12 5v14", key: "s699le" }],
|
|
2138
|
+
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
2139
|
+
]);
|
|
2122
2140
|
/**
|
|
2123
2141
|
* @license lucide-vue-next v0.441.0 - ISC
|
|
2124
2142
|
*
|
|
@@ -2424,7 +2442,7 @@ const X$1 = createLucideIcon("XIcon", [
|
|
|
2424
2442
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2425
2443
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2426
2444
|
]);
|
|
2427
|
-
const _sfc_main$
|
|
2445
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2428
2446
|
__name: "Icon",
|
|
2429
2447
|
props: {
|
|
2430
2448
|
type: {
|
|
@@ -2449,7 +2467,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2449
2467
|
},
|
|
2450
2468
|
speed: {
|
|
2451
2469
|
type: Number,
|
|
2452
|
-
default: 1
|
|
2470
|
+
default: 1.5
|
|
2453
2471
|
}
|
|
2454
2472
|
},
|
|
2455
2473
|
setup(__props) {
|
|
@@ -2487,7 +2505,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2487
2505
|
plus: Plus,
|
|
2488
2506
|
"rotate-cw": RotateCw,
|
|
2489
2507
|
"more-horizontal": Ellipsis,
|
|
2490
|
-
"edit-2": Pen
|
|
2508
|
+
"edit-2": Pen,
|
|
2509
|
+
"arrow-down": ArrowDown
|
|
2491
2510
|
};
|
|
2492
2511
|
return (_ctx, _cache) => {
|
|
2493
2512
|
return openBlock(), createBlock(resolveDynamicComponent(iconMap[props.type]), {
|
|
@@ -2495,7 +2514,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2495
2514
|
"lew-icon-spinning": __props.spinning
|
|
2496
2515
|
}]),
|
|
2497
2516
|
style: normalizeStyle({
|
|
2498
|
-
"animation-duration": __props.speed,
|
|
2517
|
+
"animation-duration": __props.speed + "s",
|
|
2499
2518
|
color: unref(iconColorType)[__props.type] ? `var(--lew-color-${unref(getColorType)(__props.type)}${__props.dark ? "-dark" : ""})` : ""
|
|
2500
2519
|
}),
|
|
2501
2520
|
strokeWidth: __props.strokeWidth,
|
|
@@ -2511,7 +2530,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2511
2530
|
}
|
|
2512
2531
|
return target;
|
|
2513
2532
|
};
|
|
2514
|
-
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2533
|
+
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-24ac7451"]]);
|
|
2515
2534
|
const iconColorType = {
|
|
2516
2535
|
normal: "gray",
|
|
2517
2536
|
warning: "orange",
|
|
@@ -2581,6 +2600,26 @@ const any2px = (value) => {
|
|
|
2581
2600
|
}
|
|
2582
2601
|
return "";
|
|
2583
2602
|
};
|
|
2603
|
+
const isValidCssValue = ({
|
|
2604
|
+
name,
|
|
2605
|
+
field,
|
|
2606
|
+
value
|
|
2607
|
+
}) => {
|
|
2608
|
+
if (!value) {
|
|
2609
|
+
return false;
|
|
2610
|
+
}
|
|
2611
|
+
const autoRegex = /^auto$/i;
|
|
2612
|
+
const calcRegex = /^calc\((.+)\)$/;
|
|
2613
|
+
const percentRegex = /^-?\d+(\.\d+)?%$/;
|
|
2614
|
+
const pixelRegex = /^-?\d+(\.\d+)?(px)?$/;
|
|
2615
|
+
const numericRegex = /^-?\d+(\.\d+)?$/;
|
|
2616
|
+
const _value = String(value);
|
|
2617
|
+
if (autoRegex.test(_value) || calcRegex.test(_value) || percentRegex.test(_value) || pixelRegex.test(_value) || numericRegex.test(_value)) {
|
|
2618
|
+
return true;
|
|
2619
|
+
}
|
|
2620
|
+
console.warn(`[${name}] ${field} 属性的值 ${_value} 不是有效的 CSS 值。`);
|
|
2621
|
+
return false;
|
|
2622
|
+
};
|
|
2584
2623
|
const lewSetForm = ({
|
|
2585
2624
|
formRef,
|
|
2586
2625
|
params
|
|
@@ -2709,7 +2748,7 @@ const getIconInnerHTML = (e2 = {}) => {
|
|
|
2709
2748
|
icon.mount(el);
|
|
2710
2749
|
return el.innerHTML;
|
|
2711
2750
|
};
|
|
2712
|
-
const _sfc_main$
|
|
2751
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2713
2752
|
__name: "LewFlex",
|
|
2714
2753
|
props: flexProps,
|
|
2715
2754
|
setup(__props) {
|
|
@@ -2752,7 +2791,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
2752
2791
|
};
|
|
2753
2792
|
}
|
|
2754
2793
|
});
|
|
2755
|
-
const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2794
|
+
const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-2a12598c"]]);
|
|
2756
2795
|
const markProps = {
|
|
2757
2796
|
color: {
|
|
2758
2797
|
type: String,
|
|
@@ -2789,7 +2828,9 @@ const markProps = {
|
|
|
2789
2828
|
validator: (value) => {
|
|
2790
2829
|
const numValue = typeof value === "string" ? parseInt(value, 10) : value;
|
|
2791
2830
|
if (isNaN(numValue) || numValue < 100 || numValue > 900 || numValue % 100 !== 0) {
|
|
2792
|
-
console.warn(
|
|
2831
|
+
console.warn(
|
|
2832
|
+
`[LewMark] 无效的加粗值: ${value}。请使用 100 到 900 之间的 100 的倍数`
|
|
2833
|
+
);
|
|
2793
2834
|
return false;
|
|
2794
2835
|
}
|
|
2795
2836
|
return true;
|
|
@@ -2805,7 +2846,13 @@ const markProps = {
|
|
|
2805
2846
|
type: String,
|
|
2806
2847
|
default: "default",
|
|
2807
2848
|
validator: (value) => {
|
|
2808
|
-
const validCursors = [
|
|
2849
|
+
const validCursors = [
|
|
2850
|
+
"pointer",
|
|
2851
|
+
"default",
|
|
2852
|
+
"text",
|
|
2853
|
+
"move",
|
|
2854
|
+
"not-allowed"
|
|
2855
|
+
];
|
|
2809
2856
|
if (!validCursors.includes(value)) {
|
|
2810
2857
|
console.warn(
|
|
2811
2858
|
`[LewMark] 无效的鼠标样式: ${value}。请使用以下有效样式之一: ${validCursors.join(", ")}`
|
|
@@ -2817,7 +2864,7 @@ const markProps = {
|
|
|
2817
2864
|
description: "鼠标悬停时的光标样式"
|
|
2818
2865
|
}
|
|
2819
2866
|
};
|
|
2820
|
-
const _sfc_main$
|
|
2867
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
2821
2868
|
__name: "LewMark",
|
|
2822
2869
|
props: markProps,
|
|
2823
2870
|
emits: ["click"],
|
|
@@ -2846,7 +2893,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
2846
2893
|
};
|
|
2847
2894
|
}
|
|
2848
2895
|
});
|
|
2849
|
-
const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2896
|
+
const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-e59f3df9"]]);
|
|
2850
2897
|
const cascaderModel = {
|
|
2851
2898
|
modelValue: {
|
|
2852
2899
|
type: [String, Number],
|
|
@@ -3432,12 +3479,12 @@ const UseVirtualList = /* @__PURE__ */ defineComponent({
|
|
|
3432
3479
|
}
|
|
3433
3480
|
});
|
|
3434
3481
|
const _hoisted_1$G = { key: 1 };
|
|
3435
|
-
const _hoisted_2$
|
|
3482
|
+
const _hoisted_2$t = {
|
|
3436
3483
|
class: "lew-cascader-item-padding",
|
|
3437
3484
|
style: { height: "38px" }
|
|
3438
3485
|
};
|
|
3439
3486
|
const _hoisted_3$p = ["onClick"];
|
|
3440
|
-
const _sfc_main$
|
|
3487
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
3441
3488
|
__name: "LewCascader",
|
|
3442
3489
|
props: /* @__PURE__ */ mergeModels(cascaderProps, {
|
|
3443
3490
|
"modelValue": {
|
|
@@ -3778,7 +3825,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3778
3825
|
return openBlock(), createElementBlock(Fragment, { key: oIndex }, [
|
|
3779
3826
|
oItem.length > 0 ? (openBlock(), createBlock(unref(UseVirtualList), {
|
|
3780
3827
|
key: 0,
|
|
3781
|
-
class: "lew-cascader-item-
|
|
3828
|
+
class: "lew-cascader-item-wrapper lew-scrollbar-hover",
|
|
3782
3829
|
list: oItem,
|
|
3783
3830
|
options: {
|
|
3784
3831
|
itemHeight: 38
|
|
@@ -3790,7 +3837,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3790
3837
|
})
|
|
3791
3838
|
}, {
|
|
3792
3839
|
default: withCtx(({ data: templateProps }) => [
|
|
3793
|
-
createElementVNode("div", _hoisted_2$
|
|
3840
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
3794
3841
|
createElementVNode("div", {
|
|
3795
3842
|
class: normalizeClass(["lew-cascader-item", {
|
|
3796
3843
|
"lew-cascader-item-disabled": templateProps.disabled,
|
|
@@ -3878,7 +3925,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3878
3925
|
};
|
|
3879
3926
|
}
|
|
3880
3927
|
});
|
|
3881
|
-
const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3928
|
+
const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-78284786"]]);
|
|
3882
3929
|
const treeModel = {
|
|
3883
3930
|
modelValue: {
|
|
3884
3931
|
type: [Array, String],
|
|
@@ -4074,7 +4121,9 @@ const tree2List = async ({
|
|
|
4074
4121
|
free
|
|
4075
4122
|
});
|
|
4076
4123
|
} else {
|
|
4077
|
-
return new Error(
|
|
4124
|
+
return new Error(
|
|
4125
|
+
"The initTree function should return a Promise that resolves to an array"
|
|
4126
|
+
);
|
|
4078
4127
|
}
|
|
4079
4128
|
} else if (dataSource && dataSource.length > 0) {
|
|
4080
4129
|
tree = formatTree({ dataSource, keyField, labelField, free });
|
|
@@ -4105,13 +4154,13 @@ const tree2List = async ({
|
|
|
4105
4154
|
};
|
|
4106
4155
|
};
|
|
4107
4156
|
const _hoisted_1$F = ["onClick"];
|
|
4108
|
-
const _hoisted_2$
|
|
4157
|
+
const _hoisted_2$s = ["onClick"];
|
|
4109
4158
|
const _hoisted_3$o = {
|
|
4110
4159
|
key: 0,
|
|
4111
4160
|
class: "lew-tree-line"
|
|
4112
4161
|
};
|
|
4113
4162
|
const _hoisted_4$g = { key: 3 };
|
|
4114
|
-
const _sfc_main$
|
|
4163
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
4115
4164
|
__name: "LewTree",
|
|
4116
4165
|
props: /* @__PURE__ */ mergeModels(treeProps, {
|
|
4117
4166
|
"modelValue": {
|
|
@@ -4133,7 +4182,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4133
4182
|
const props = __props;
|
|
4134
4183
|
const emit = __emit;
|
|
4135
4184
|
const modelValue = useModel(__props, "modelValue");
|
|
4136
|
-
const expandedKeys = useModel(
|
|
4185
|
+
const expandedKeys = useModel(
|
|
4186
|
+
__props,
|
|
4187
|
+
"expandedKeys"
|
|
4188
|
+
);
|
|
4137
4189
|
const certainKeys = ref([]);
|
|
4138
4190
|
const loadingKeys = ref([]);
|
|
4139
4191
|
const loading = ref(false);
|
|
@@ -4175,7 +4227,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4175
4227
|
_expandedKeys.splice(i2, 1);
|
|
4176
4228
|
expandedKeys.value = _expandedKeys;
|
|
4177
4229
|
} else if (props.onload && !loadingKeys.value.includes(item.key)) {
|
|
4178
|
-
const index2 = treeList.value.findIndex(
|
|
4230
|
+
const index2 = treeList.value.findIndex(
|
|
4231
|
+
(e2) => e2.parentKey === item.key
|
|
4232
|
+
);
|
|
4179
4233
|
if (index2 < 0) {
|
|
4180
4234
|
loadingKeys.value.push(item.key);
|
|
4181
4235
|
let _tree = await props.onload(cloneDeep(item)) || [];
|
|
@@ -4193,7 +4247,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4193
4247
|
loadingKeys.value.splice(i22, 1);
|
|
4194
4248
|
}
|
|
4195
4249
|
}
|
|
4196
|
-
expandedKeys.value = [
|
|
4250
|
+
expandedKeys.value = [
|
|
4251
|
+
...expandedKeys.value,
|
|
4252
|
+
item.key
|
|
4253
|
+
];
|
|
4197
4254
|
} else {
|
|
4198
4255
|
expandedKeys.value = [..._expandedKeys, item.key];
|
|
4199
4256
|
}
|
|
@@ -4215,7 +4272,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4215
4272
|
const i2 = _modelValue.findIndex((e2) => e2 === item.key);
|
|
4216
4273
|
_modelValue.splice(i2, 1);
|
|
4217
4274
|
if (!props.free) {
|
|
4218
|
-
_modelValue = uniq(
|
|
4275
|
+
_modelValue = uniq(
|
|
4276
|
+
difference(_modelValue, item.allNodeValues)
|
|
4277
|
+
);
|
|
4219
4278
|
}
|
|
4220
4279
|
} else {
|
|
4221
4280
|
_modelValue && _modelValue.push(item.key);
|
|
@@ -4246,7 +4305,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4246
4305
|
const currentNode = stack.pop();
|
|
4247
4306
|
const key = currentNode.key;
|
|
4248
4307
|
const childValues = currentNode.leafNodeValues || [];
|
|
4249
|
-
const isAllChildValuesInValues = childValues.every(
|
|
4308
|
+
const isAllChildValuesInValues = childValues.every(
|
|
4309
|
+
(value) => _modelValue.has(value)
|
|
4310
|
+
);
|
|
4250
4311
|
if (!isAllChildValuesInValues && childValues.length > 0) {
|
|
4251
4312
|
_modelValue.delete(key);
|
|
4252
4313
|
} else if (childValues.length > 0) {
|
|
@@ -4335,7 +4396,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4335
4396
|
checked: _ctx.multiple ? (modelValue.value || []).includes(item.key) : modelValue.value === item.key
|
|
4336
4397
|
}
|
|
4337
4398
|
}, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_4$g, toDisplayString(item.label), 1))
|
|
4338
|
-
], 8, _hoisted_2$
|
|
4399
|
+
], 8, _hoisted_2$s)
|
|
4339
4400
|
], 6)) : createCommentVNode("", true)
|
|
4340
4401
|
]),
|
|
4341
4402
|
_: 2
|
|
@@ -4352,7 +4413,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
4352
4413
|
};
|
|
4353
4414
|
}
|
|
4354
4415
|
});
|
|
4355
|
-
const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4416
|
+
const LewTree = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-4157bf8d"]]);
|
|
4356
4417
|
function tryOnScopeDispose(fn2) {
|
|
4357
4418
|
if (getCurrentScope()) {
|
|
4358
4419
|
onScopeDispose(fn2);
|
|
@@ -5219,13 +5280,13 @@ const treeSelectProps = {
|
|
|
5219
5280
|
}
|
|
5220
5281
|
};
|
|
5221
5282
|
const _hoisted_1$E = ["readonly", "placeholder"];
|
|
5222
|
-
const _hoisted_2$
|
|
5283
|
+
const _hoisted_2$r = { class: "lew-select-options-box" };
|
|
5223
5284
|
const _hoisted_3$n = {
|
|
5224
5285
|
key: 0,
|
|
5225
5286
|
class: "result-count"
|
|
5226
5287
|
};
|
|
5227
5288
|
const _hoisted_4$f = { class: "tree-select-wrapper lew-scrollbar" };
|
|
5228
|
-
const _sfc_main$
|
|
5289
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
5229
5290
|
__name: "LewTreeSelect",
|
|
5230
5291
|
props: /* @__PURE__ */ mergeModels(treeSelectProps, {
|
|
5231
5292
|
"modelValue": {},
|
|
@@ -5454,7 +5515,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5454
5515
|
style: normalizeStyle(`width:${unref(state).selectWidth}px`)
|
|
5455
5516
|
}, [
|
|
5456
5517
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
5457
|
-
createElementVNode("div", _hoisted_2$
|
|
5518
|
+
createElementVNode("div", _hoisted_2$r, [
|
|
5458
5519
|
_ctx.searchable && (unref(state).treeList || []).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$n, " 共 " + toDisplayString(unref(numFormat)(unref(searchCount))) + " 条结果 ", 1)) : createCommentVNode("", true),
|
|
5459
5520
|
createElementVNode("div", _hoisted_4$f, [
|
|
5460
5521
|
createVNode(unref(LewTree), mergeProps({
|
|
@@ -5502,7 +5563,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
5502
5563
|
};
|
|
5503
5564
|
}
|
|
5504
5565
|
});
|
|
5505
|
-
const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5566
|
+
const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-ddff40e4"]]);
|
|
5506
5567
|
const tabsModel = {
|
|
5507
5568
|
modelValue: {
|
|
5508
5569
|
type: [String, Number],
|
|
@@ -5605,7 +5666,7 @@ const tabsProps = {
|
|
|
5605
5666
|
}
|
|
5606
5667
|
};
|
|
5607
5668
|
const _hoisted_1$D = ["onClick"];
|
|
5608
|
-
const _sfc_main$
|
|
5669
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
5609
5670
|
__name: "LewTabs",
|
|
5610
5671
|
props: /* @__PURE__ */ mergeModels(tabsProps, {
|
|
5611
5672
|
"modelValue": {
|
|
@@ -5622,7 +5683,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
5622
5683
|
const itemRef = ref([]);
|
|
5623
5684
|
const state = reactive({
|
|
5624
5685
|
activeItemStyle: {},
|
|
5625
|
-
curIndex: (props.options || []).findIndex(
|
|
5686
|
+
curIndex: (props.options || []).findIndex(
|
|
5687
|
+
(e2) => tabsValue.value === e2.value
|
|
5688
|
+
),
|
|
5626
5689
|
hidLine: "all",
|
|
5627
5690
|
isInit: false
|
|
5628
5691
|
});
|
|
@@ -5652,7 +5715,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
5652
5715
|
() => {
|
|
5653
5716
|
nextTick(() => {
|
|
5654
5717
|
setTimeout(() => {
|
|
5655
|
-
const index2 = props.options.findIndex(
|
|
5718
|
+
const index2 = props.options.findIndex(
|
|
5719
|
+
(e2) => tabsValue.value === e2.value
|
|
5720
|
+
);
|
|
5656
5721
|
initActiveItemStyle(index2);
|
|
5657
5722
|
}, 250);
|
|
5658
5723
|
});
|
|
@@ -5775,7 +5840,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
5775
5840
|
};
|
|
5776
5841
|
}
|
|
5777
5842
|
});
|
|
5778
|
-
const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5843
|
+
const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-977c7bf0"]]);
|
|
5779
5844
|
const breadcrumbProps = {
|
|
5780
5845
|
options: {
|
|
5781
5846
|
type: Array,
|
|
@@ -5796,7 +5861,9 @@ const breadcrumbProps = {
|
|
|
5796
5861
|
return false;
|
|
5797
5862
|
}
|
|
5798
5863
|
if (item.value !== void 0 && typeof item.value !== "string" && typeof item.value !== "number") {
|
|
5799
|
-
console.warn(
|
|
5864
|
+
console.warn(
|
|
5865
|
+
"[LewBreadcrumb] options 中的 value 必须是字符串或数字类型"
|
|
5866
|
+
);
|
|
5800
5867
|
return false;
|
|
5801
5868
|
}
|
|
5802
5869
|
if (item.active !== void 0 && typeof item.active !== "boolean") {
|
|
@@ -5814,7 +5881,9 @@ const breadcrumbProps = {
|
|
|
5814
5881
|
validator(value) {
|
|
5815
5882
|
const validTypes = ["shoulder", "sprit"];
|
|
5816
5883
|
if (!validTypes.includes(value)) {
|
|
5817
|
-
console.warn(
|
|
5884
|
+
console.warn(
|
|
5885
|
+
`[LewBreadcrumb] iconType 必须是 ${validTypes.join(" 或 ")}`
|
|
5886
|
+
);
|
|
5818
5887
|
return false;
|
|
5819
5888
|
}
|
|
5820
5889
|
return true;
|
|
@@ -5822,7 +5891,7 @@ const breadcrumbProps = {
|
|
|
5822
5891
|
}
|
|
5823
5892
|
};
|
|
5824
5893
|
const _hoisted_1$C = { class: "lew-breadcrumb" };
|
|
5825
|
-
const _hoisted_2$
|
|
5894
|
+
const _hoisted_2$q = ["onClick"];
|
|
5826
5895
|
const _hoisted_3$m = {
|
|
5827
5896
|
key: 0,
|
|
5828
5897
|
class: "lew-breadcrumb-parting"
|
|
@@ -5847,7 +5916,7 @@ const _hoisted_5$a = {
|
|
|
5847
5916
|
"stroke-linecap": "butt",
|
|
5848
5917
|
"stroke-linejoin": "miter"
|
|
5849
5918
|
};
|
|
5850
|
-
const _sfc_main$
|
|
5919
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
5851
5920
|
__name: "LewBreadcrumb",
|
|
5852
5921
|
props: breadcrumbProps,
|
|
5853
5922
|
emits: ["change"],
|
|
@@ -5863,7 +5932,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5863
5932
|
createElementVNode("span", {
|
|
5864
5933
|
class: normalizeClass({ "lew-breadcrumb-isPath": !!item.value }),
|
|
5865
5934
|
onClick: ($event) => emit("change", item)
|
|
5866
|
-
}, toDisplayString(item.label), 11, _hoisted_2$
|
|
5935
|
+
}, toDisplayString(item.label), 11, _hoisted_2$q),
|
|
5867
5936
|
index2 != _ctx.options.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
5868
5937
|
_ctx.iconType === "sprit" ? (openBlock(), createElementBlock("svg", _hoisted_4$e, _cache[0] || (_cache[0] = [
|
|
5869
5938
|
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
|
@@ -5878,7 +5947,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5878
5947
|
};
|
|
5879
5948
|
}
|
|
5880
5949
|
});
|
|
5881
|
-
const LewBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5950
|
+
const LewBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-8735f131"]]);
|
|
5882
5951
|
const dropdownProps = {
|
|
5883
5952
|
trigger: {
|
|
5884
5953
|
type: String,
|
|
@@ -5886,7 +5955,9 @@ const dropdownProps = {
|
|
|
5886
5955
|
description: "触发方式",
|
|
5887
5956
|
validator(value) {
|
|
5888
5957
|
if (!["hover", "click"].includes(value)) {
|
|
5889
|
-
console.warn(
|
|
5958
|
+
console.warn(
|
|
5959
|
+
`[LewDropdown] 无效的触发方式: ${value}。请使用 'hover' 或 'click'`
|
|
5960
|
+
);
|
|
5890
5961
|
return false;
|
|
5891
5962
|
}
|
|
5892
5963
|
return true;
|
|
@@ -5912,7 +5983,9 @@ const dropdownProps = {
|
|
|
5912
5983
|
"right-end"
|
|
5913
5984
|
];
|
|
5914
5985
|
if (!validPlacements.includes(value)) {
|
|
5915
|
-
console.warn(
|
|
5986
|
+
console.warn(
|
|
5987
|
+
`[LewDropdown] 无效的弹出位置: ${value}。请使用有效的位置值`
|
|
5988
|
+
);
|
|
5916
5989
|
return false;
|
|
5917
5990
|
}
|
|
5918
5991
|
return true;
|
|
@@ -5931,7 +6004,7 @@ const dropdownProps = {
|
|
|
5931
6004
|
}
|
|
5932
6005
|
}
|
|
5933
6006
|
};
|
|
5934
|
-
const _sfc_main$
|
|
6007
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5935
6008
|
__name: "LewDropdown",
|
|
5936
6009
|
props: dropdownProps,
|
|
5937
6010
|
emits: ["change"],
|
|
@@ -5998,8 +6071,12 @@ const stepsProps = {
|
|
|
5998
6071
|
console.warn("[LewSteps] options 必须是数组");
|
|
5999
6072
|
return false;
|
|
6000
6073
|
}
|
|
6001
|
-
if (value.some(
|
|
6002
|
-
|
|
6074
|
+
if (value.some(
|
|
6075
|
+
(item) => typeof item.title !== "string" || typeof item.description !== "string"
|
|
6076
|
+
)) {
|
|
6077
|
+
console.warn(
|
|
6078
|
+
"[LewSteps] options 数组中的每个项目必须包含 title 和 description 字符串属性"
|
|
6079
|
+
);
|
|
6003
6080
|
return false;
|
|
6004
6081
|
}
|
|
6005
6082
|
return true;
|
|
@@ -6012,7 +6089,9 @@ const stepsProps = {
|
|
|
6012
6089
|
validator: (value) => {
|
|
6013
6090
|
const validStatus = ["pending", "loading", "done", "error", "warning"];
|
|
6014
6091
|
if (!validStatus.includes(value)) {
|
|
6015
|
-
console.warn(
|
|
6092
|
+
console.warn(
|
|
6093
|
+
`[LewSteps] status 必须是 ${validStatus.join(", ")} 中的一个`
|
|
6094
|
+
);
|
|
6016
6095
|
return false;
|
|
6017
6096
|
}
|
|
6018
6097
|
return true;
|
|
@@ -6020,15 +6099,15 @@ const stepsProps = {
|
|
|
6020
6099
|
}
|
|
6021
6100
|
};
|
|
6022
6101
|
const _hoisted_1$B = { class: "lew-steps lew-scrollbar" };
|
|
6023
|
-
const _hoisted_2$
|
|
6102
|
+
const _hoisted_2$p = { class: "lew-steps-item-index" };
|
|
6024
6103
|
const _hoisted_3$l = {
|
|
6025
6104
|
key: 4,
|
|
6026
6105
|
class: "index"
|
|
6027
6106
|
};
|
|
6028
6107
|
const _hoisted_4$d = { class: "lew-steps-item-info" };
|
|
6029
6108
|
const _hoisted_5$9 = { class: "lew-steps-item-title" };
|
|
6030
|
-
const _hoisted_6$
|
|
6031
|
-
const _sfc_main$
|
|
6109
|
+
const _hoisted_6$7 = { class: "lew-steps-item-description" };
|
|
6110
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
6032
6111
|
__name: "LewSteps",
|
|
6033
6112
|
props: /* @__PURE__ */ mergeModels(stepsProps, {
|
|
6034
6113
|
"modelValue": {},
|
|
@@ -6051,7 +6130,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6051
6130
|
"lew-steps-item-done": index2 === (stepsValue.value || 1) - 1 && _ctx.status === "done"
|
|
6052
6131
|
}])
|
|
6053
6132
|
}, [
|
|
6054
|
-
createElementVNode("div", _hoisted_2$
|
|
6133
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
6055
6134
|
index2 === (stepsValue.value || 1) - 1 && _ctx.status === "loading" ? (openBlock(), createBlock(Icon, {
|
|
6056
6135
|
key: 0,
|
|
6057
6136
|
size: 16,
|
|
@@ -6083,7 +6162,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
6083
6162
|
text: item.title
|
|
6084
6163
|
}, null, 8, ["text"])
|
|
6085
6164
|
]),
|
|
6086
|
-
createElementVNode("div", _hoisted_6$
|
|
6165
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
6087
6166
|
createVNode(_component_lew_text_trim, {
|
|
6088
6167
|
allowHTML: "",
|
|
6089
6168
|
lineClamp: 2,
|
|
@@ -6122,7 +6201,9 @@ const inputProps = {
|
|
|
6122
6201
|
description: "输入框类型",
|
|
6123
6202
|
validator: (value) => {
|
|
6124
6203
|
if (!["text", "password"].includes(value)) {
|
|
6125
|
-
console.warn(
|
|
6204
|
+
console.warn(
|
|
6205
|
+
`[LewInput] type 属性 ${value} 无效,必须是 "text" 或 "password"`
|
|
6206
|
+
);
|
|
6126
6207
|
return false;
|
|
6127
6208
|
}
|
|
6128
6209
|
return true;
|
|
@@ -6228,7 +6309,9 @@ const inputProps = {
|
|
|
6228
6309
|
description: "输入框前缀类型",
|
|
6229
6310
|
validator: (value) => {
|
|
6230
6311
|
if (value && !["icon", "select", "text"].includes(value)) {
|
|
6231
|
-
console.warn(
|
|
6312
|
+
console.warn(
|
|
6313
|
+
'[LewInput] prefixes 属性必须是 "icon"、"select" 或 "text"'
|
|
6314
|
+
);
|
|
6232
6315
|
return false;
|
|
6233
6316
|
}
|
|
6234
6317
|
return true;
|
|
@@ -6276,7 +6359,7 @@ const _hoisted_1$A = {
|
|
|
6276
6359
|
key: 0,
|
|
6277
6360
|
class: "lew-input-prefixes"
|
|
6278
6361
|
};
|
|
6279
|
-
const _hoisted_2$
|
|
6362
|
+
const _hoisted_2$o = { key: 0 };
|
|
6280
6363
|
const _hoisted_3$k = {
|
|
6281
6364
|
key: 1,
|
|
6282
6365
|
class: "lew-input-prefixes-icon"
|
|
@@ -6286,7 +6369,7 @@ const _hoisted_4$c = {
|
|
|
6286
6369
|
class: "lew-input-prefixes-select"
|
|
6287
6370
|
};
|
|
6288
6371
|
const _hoisted_5$8 = ["disabled", "placeholder", "type", "readonly", "maxlength"];
|
|
6289
|
-
const _hoisted_6$
|
|
6372
|
+
const _hoisted_6$6 = {
|
|
6290
6373
|
key: 0,
|
|
6291
6374
|
class: "lew-input-auto-width"
|
|
6292
6375
|
};
|
|
@@ -6311,7 +6394,7 @@ const _hoisted_12$2 = {
|
|
|
6311
6394
|
key: 2,
|
|
6312
6395
|
class: "lew-input-suffix-select"
|
|
6313
6396
|
};
|
|
6314
|
-
const _sfc_main$
|
|
6397
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
6315
6398
|
__name: "LewInput",
|
|
6316
6399
|
props: /* @__PURE__ */ mergeModels(inputProps, {
|
|
6317
6400
|
"modelValue": { required: true },
|
|
@@ -6390,10 +6473,18 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6390
6473
|
width: `calc(100% - ${clearable ? 20 + countWidth + (showCount ? 12 : 0) : 0}px)`
|
|
6391
6474
|
};
|
|
6392
6475
|
});
|
|
6393
|
-
const getType = computed(
|
|
6476
|
+
const getType = computed(
|
|
6477
|
+
() => props.type === "password" ? _type.value : props.type
|
|
6478
|
+
);
|
|
6394
6479
|
const getInputClassNames = computed(() => {
|
|
6395
6480
|
const { size, readonly: readonly2, disabled, align, autoWidth } = props;
|
|
6396
|
-
return object2class("lew-input-view", {
|
|
6481
|
+
return object2class("lew-input-view", {
|
|
6482
|
+
size,
|
|
6483
|
+
readonly: readonly2,
|
|
6484
|
+
disabled,
|
|
6485
|
+
align,
|
|
6486
|
+
autoWidth
|
|
6487
|
+
});
|
|
6397
6488
|
});
|
|
6398
6489
|
const prefixesChange = (item) => {
|
|
6399
6490
|
prefixesValue.value = item.value;
|
|
@@ -6446,7 +6537,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6446
6537
|
class: normalizeClass(["lew-input-view", unref(getInputClassNames)])
|
|
6447
6538
|
}, [
|
|
6448
6539
|
_ctx.prefixes ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
6449
|
-
_ctx.prefixes === "text" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6540
|
+
_ctx.prefixes === "text" ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(prefixesValue.value), 1)) : createCommentVNode("", true),
|
|
6450
6541
|
_ctx.prefixes === "icon" ? (openBlock(), createElementBlock("div", _hoisted_3$k, [
|
|
6451
6542
|
createVNode(Icon, {
|
|
6452
6543
|
size: unref(getIconSize),
|
|
@@ -6454,7 +6545,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6454
6545
|
}, null, 8, ["size", "type"])
|
|
6455
6546
|
])) : createCommentVNode("", true),
|
|
6456
6547
|
_ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
6457
|
-
createVNode(unref(_sfc_main$
|
|
6548
|
+
createVNode(unref(_sfc_main$R), {
|
|
6458
6549
|
placement: "bottom",
|
|
6459
6550
|
trigger: "click",
|
|
6460
6551
|
options: _ctx.prefixesOptions,
|
|
@@ -6527,7 +6618,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6527
6618
|
}, null, 44, _hoisted_5$8), [
|
|
6528
6619
|
[vModelDynamic, modelValue.value]
|
|
6529
6620
|
]),
|
|
6530
|
-
_ctx.autoWidth ? (openBlock(), createElementBlock("label", _hoisted_6$
|
|
6621
|
+
_ctx.autoWidth ? (openBlock(), createElementBlock("label", _hoisted_6$6, toDisplayString(modelValue.value), 1)) : createCommentVNode("", true),
|
|
6531
6622
|
_ctx.autoWidth && _ctx.clearable ? (openBlock(), createElementBlock("label", _hoisted_7$3)) : createCommentVNode("", true),
|
|
6532
6623
|
_ctx.showPassword || _ctx.clearable || _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
6533
6624
|
modelValue.value && _ctx.showCount ? (openBlock(), createElementBlock("div", {
|
|
@@ -6585,7 +6676,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6585
6676
|
}, null, 8, ["size", "type"])
|
|
6586
6677
|
])) : createCommentVNode("", true),
|
|
6587
6678
|
_ctx.suffix === "select" ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
6588
|
-
createVNode(unref(_sfc_main$
|
|
6679
|
+
createVNode(unref(_sfc_main$R), {
|
|
6589
6680
|
placement: "bottom",
|
|
6590
6681
|
trigger: "click",
|
|
6591
6682
|
options: _ctx.suffixOptions,
|
|
@@ -6625,7 +6716,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
6625
6716
|
};
|
|
6626
6717
|
}
|
|
6627
6718
|
});
|
|
6628
|
-
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6719
|
+
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-fcd8af1a"]]);
|
|
6629
6720
|
const inputNumberModel = {
|
|
6630
6721
|
modelValue: {
|
|
6631
6722
|
type: Number,
|
|
@@ -6682,7 +6773,9 @@ const inputNumberProps = {
|
|
|
6682
6773
|
description: "尺寸",
|
|
6683
6774
|
validator(value) {
|
|
6684
6775
|
if (!validSizes.includes(value)) {
|
|
6685
|
-
console.warn(
|
|
6776
|
+
console.warn(
|
|
6777
|
+
`[LewInputNumber] size 必须是 ${validSizes.join("、")} 之一`
|
|
6778
|
+
);
|
|
6686
6779
|
return false;
|
|
6687
6780
|
}
|
|
6688
6781
|
return true;
|
|
@@ -6733,7 +6826,7 @@ const inputNumberProps = {
|
|
|
6733
6826
|
}
|
|
6734
6827
|
};
|
|
6735
6828
|
const _hoisted_1$z = ["placeholder", "min", "max", "step"];
|
|
6736
|
-
const _sfc_main$
|
|
6829
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
6737
6830
|
__name: "LewInputNumber",
|
|
6738
6831
|
props: /* @__PURE__ */ mergeModels(inputNumberProps, {
|
|
6739
6832
|
"modelValue": { required: true },
|
|
@@ -6912,7 +7005,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
6912
7005
|
};
|
|
6913
7006
|
}
|
|
6914
7007
|
});
|
|
6915
|
-
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7008
|
+
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-ccf90a18"]]);
|
|
6916
7009
|
const textareaModel = {
|
|
6917
7010
|
modelValue: {
|
|
6918
7011
|
type: String,
|
|
@@ -6977,7 +7070,9 @@ const textareaProps = {
|
|
|
6977
7070
|
validator: (value) => {
|
|
6978
7071
|
const validResizes = ["none", "both", "horizontal", "vertical"];
|
|
6979
7072
|
if (!validResizes.includes(value)) {
|
|
6980
|
-
console.warn(
|
|
7073
|
+
console.warn(
|
|
7074
|
+
"[LewTextarea] resize 必须是 none、both、horizontal 或 vertical"
|
|
7075
|
+
);
|
|
6981
7076
|
return false;
|
|
6982
7077
|
}
|
|
6983
7078
|
return true;
|
|
@@ -7025,11 +7120,11 @@ const textareaProps = {
|
|
|
7025
7120
|
}
|
|
7026
7121
|
};
|
|
7027
7122
|
const _hoisted_1$y = ["placeholder", "maxlength", "disabled", "readonly"];
|
|
7028
|
-
const _hoisted_2$
|
|
7123
|
+
const _hoisted_2$n = {
|
|
7029
7124
|
key: 0,
|
|
7030
7125
|
class: "lew-textarea-count"
|
|
7031
7126
|
};
|
|
7032
|
-
const _sfc_main$
|
|
7127
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
7033
7128
|
__name: "LewTextarea",
|
|
7034
7129
|
props: /* @__PURE__ */ mergeModels(textareaProps, {
|
|
7035
7130
|
"modelValue": {},
|
|
@@ -7110,7 +7205,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7110
7205
|
return size[props.size];
|
|
7111
7206
|
});
|
|
7112
7207
|
const getTextareaStyle = computed(() => {
|
|
7113
|
-
const {
|
|
7208
|
+
const {
|
|
7209
|
+
width,
|
|
7210
|
+
height,
|
|
7211
|
+
size,
|
|
7212
|
+
resize,
|
|
7213
|
+
maxHeight,
|
|
7214
|
+
minHeight,
|
|
7215
|
+
maxWidth,
|
|
7216
|
+
minWidth
|
|
7217
|
+
} = props;
|
|
7114
7218
|
const heightMap = {
|
|
7115
7219
|
small: 60,
|
|
7116
7220
|
medium: 75,
|
|
@@ -7169,7 +7273,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7169
7273
|
}, null, 40, _hoisted_1$y), [
|
|
7170
7274
|
[vModelText, modelValue.value]
|
|
7171
7275
|
]),
|
|
7172
|
-
modelValue.value && _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7276
|
+
modelValue.value && _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(modelValue.value.length) + toDisplayString(_ctx.maxLength ? " / " + _ctx.maxLength : ""), 1)) : createCommentVNode("", true),
|
|
7173
7277
|
createVNode(Transition, { name: "lew-form-icon-ani" }, {
|
|
7174
7278
|
default: withCtx(() => [
|
|
7175
7279
|
_ctx.clearable && modelValue.value && !_ctx.readonly ? (openBlock(), createBlock(Icon, {
|
|
@@ -7191,7 +7295,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
7191
7295
|
};
|
|
7192
7296
|
}
|
|
7193
7297
|
});
|
|
7194
|
-
const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7298
|
+
const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-b98a729a"]]);
|
|
7195
7299
|
const inputTagModel = {
|
|
7196
7300
|
modelValue: {
|
|
7197
7301
|
type: Array,
|
|
@@ -7231,7 +7335,7 @@ const inputTagProps = {
|
|
|
7231
7335
|
description: "是否允许添加重复的标签"
|
|
7232
7336
|
}
|
|
7233
7337
|
};
|
|
7234
|
-
const _sfc_main$
|
|
7338
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
7235
7339
|
__name: "LewInputTag",
|
|
7236
7340
|
props: /* @__PURE__ */ mergeModels(inputTagProps, {
|
|
7237
7341
|
"modelValue": {},
|
|
@@ -7386,9 +7490,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
7386
7490
|
};
|
|
7387
7491
|
}
|
|
7388
7492
|
});
|
|
7389
|
-
const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7493
|
+
const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-be1c9450"]]);
|
|
7390
7494
|
const _hoisted_1$x = ["width", "height"];
|
|
7391
|
-
const _sfc_main$
|
|
7495
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
7392
7496
|
__name: "RequiredIcon",
|
|
7393
7497
|
props: {
|
|
7394
7498
|
size: {
|
|
@@ -7437,7 +7541,9 @@ const formProps = {
|
|
|
7437
7541
|
description: "表单整体尺寸,影响所有表单项大小",
|
|
7438
7542
|
validator(value) {
|
|
7439
7543
|
if (!validSizes.includes(value)) {
|
|
7440
|
-
console.warn(
|
|
7544
|
+
console.warn(
|
|
7545
|
+
`[LewForm] 无效的 size 值: ${value}。请使用 'small', 'medium' 或 'large'`
|
|
7546
|
+
);
|
|
7441
7547
|
return false;
|
|
7442
7548
|
}
|
|
7443
7549
|
return true;
|
|
@@ -7504,7 +7610,9 @@ const formProps = {
|
|
|
7504
7610
|
description: '表单项排列方向,"x" 为水平,"y" 为垂直',
|
|
7505
7611
|
validator(value) {
|
|
7506
7612
|
if (!["x", "y"].includes(value)) {
|
|
7507
|
-
console.warn(
|
|
7613
|
+
console.warn(
|
|
7614
|
+
`[LewForm] 无效的 direction 值: ${value}。请使用 'x' 或 'y'`
|
|
7615
|
+
);
|
|
7508
7616
|
return false;
|
|
7509
7617
|
}
|
|
7510
7618
|
return true;
|
|
@@ -7544,7 +7652,9 @@ const formItemProps = {
|
|
|
7544
7652
|
description: "单个表单项的尺寸,可覆盖表单整体设置",
|
|
7545
7653
|
validator(value) {
|
|
7546
7654
|
if (!["small", "medium", "large"].includes(value)) {
|
|
7547
|
-
console.warn(
|
|
7655
|
+
console.warn(
|
|
7656
|
+
`[LewFormItem] 无效的 size 值: ${value}。请使用 'small', 'medium' 或 'large'`
|
|
7657
|
+
);
|
|
7548
7658
|
return false;
|
|
7549
7659
|
}
|
|
7550
7660
|
return true;
|
|
@@ -7576,7 +7686,9 @@ const formItemProps = {
|
|
|
7576
7686
|
return false;
|
|
7577
7687
|
}
|
|
7578
7688
|
if (typeof value === "string" && value !== "auto" && !/^\d+px$/.test(value)) {
|
|
7579
|
-
console.warn(
|
|
7689
|
+
console.warn(
|
|
7690
|
+
'[LewFormItem] labelWidth 字符串必须是 "auto" 或有效的像素值'
|
|
7691
|
+
);
|
|
7580
7692
|
return false;
|
|
7581
7693
|
}
|
|
7582
7694
|
return true;
|
|
@@ -7588,7 +7700,9 @@ const formItemProps = {
|
|
|
7588
7700
|
description: '单个表单项的排列方向,"x" 为水平,"y" 为垂直',
|
|
7589
7701
|
validator(value) {
|
|
7590
7702
|
if (!["x", "y"].includes(value)) {
|
|
7591
|
-
console.warn(
|
|
7703
|
+
console.warn(
|
|
7704
|
+
`[LewFormItem] 无效的 direction 值: ${value}。请使用 'x' 或 'y'`
|
|
7705
|
+
);
|
|
7592
7706
|
return false;
|
|
7593
7707
|
}
|
|
7594
7708
|
return true;
|
|
@@ -7645,7 +7759,7 @@ const requiredIconSizeMap = {
|
|
|
7645
7759
|
medium: 7,
|
|
7646
7760
|
large: 8
|
|
7647
7761
|
};
|
|
7648
|
-
const _sfc_main$
|
|
7762
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
7649
7763
|
__name: "LewGetLabelWidth",
|
|
7650
7764
|
props: {
|
|
7651
7765
|
size: {
|
|
@@ -7670,7 +7784,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7670
7784
|
return openBlock(), createElementBlock("div", {
|
|
7671
7785
|
ref_key: "formLabelRef",
|
|
7672
7786
|
ref: formLabelRef,
|
|
7673
|
-
class: "lew-
|
|
7787
|
+
class: "lew-get-label-width-box"
|
|
7674
7788
|
}, [
|
|
7675
7789
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item, index2) => {
|
|
7676
7790
|
return openBlock(), createBlock(_component_lew_flex, {
|
|
@@ -7681,7 +7795,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7681
7795
|
key: index2
|
|
7682
7796
|
}, {
|
|
7683
7797
|
default: withCtx(() => [
|
|
7684
|
-
item.required && item.label ? (openBlock(), createBlock(_sfc_main$
|
|
7798
|
+
item.required && item.label ? (openBlock(), createBlock(_sfc_main$L, {
|
|
7685
7799
|
key: 0,
|
|
7686
7800
|
size: unref(requiredIconSizeMap)[__props.size]
|
|
7687
7801
|
}, null, 8, ["size"])) : createCommentVNode("", true),
|
|
@@ -7694,8 +7808,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
7694
7808
|
};
|
|
7695
7809
|
}
|
|
7696
7810
|
});
|
|
7697
|
-
const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7698
|
-
const _sfc_main$
|
|
7811
|
+
const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-27f672b0"]]);
|
|
7812
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
7699
7813
|
__name: "LewFormItem",
|
|
7700
7814
|
props: /* @__PURE__ */ mergeModels(formItemProps, {
|
|
7701
7815
|
"modelValue": {
|
|
@@ -7779,13 +7893,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7779
7893
|
}, [
|
|
7780
7894
|
createElementVNode("div", {
|
|
7781
7895
|
style: normalizeStyle(_ctx.direction === "x" ? `width:${unref(any2px)(_ctx.labelWidth)}` : ""),
|
|
7782
|
-
class: "label-box-wrapper"
|
|
7896
|
+
class: "lew-label-box-wrapper"
|
|
7783
7897
|
}, [
|
|
7784
7898
|
_ctx.as ? withDirectives((openBlock(), createElementBlock("div", {
|
|
7785
7899
|
key: 0,
|
|
7786
|
-
class: normalizeClass(["label-box", { "label-tips": _ctx.tips }])
|
|
7900
|
+
class: normalizeClass(["lew-label-box", { "lew-label-tips": _ctx.tips }])
|
|
7787
7901
|
}, [
|
|
7788
|
-
_ctx.required && _ctx.label ? (openBlock(), createBlock(_sfc_main$
|
|
7902
|
+
_ctx.required && _ctx.label ? (openBlock(), createBlock(_sfc_main$L, {
|
|
7789
7903
|
key: 0,
|
|
7790
7904
|
size: unref(requiredIconSizeMap)[_ctx.size]
|
|
7791
7905
|
}, null, 8, ["size"])) : createCommentVNode("", true),
|
|
@@ -7807,13 +7921,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7807
7921
|
modelValue: modelValue.value,
|
|
7808
7922
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
7809
7923
|
}, { size: _ctx.size, readonly: _ctx.readonly, disabled: _ctx.disabled, ...props.props }, { onChange: change }), null, 16, ["modelValue"])),
|
|
7810
|
-
createVNode(Transition, { name: "slide-fade" }, {
|
|
7924
|
+
createVNode(Transition, { name: "lew-slide-fade" }, {
|
|
7811
7925
|
default: withCtx(() => [
|
|
7812
7926
|
unref(errMsg) ? (openBlock(), createBlock(_component_lew_text_trim, {
|
|
7813
7927
|
key: 0,
|
|
7814
7928
|
style: { "width": "100%" },
|
|
7815
7929
|
text: unref(errMsg),
|
|
7816
|
-
class: "error-message"
|
|
7930
|
+
class: "lew-error-message"
|
|
7817
7931
|
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
7818
7932
|
]),
|
|
7819
7933
|
_: 1
|
|
@@ -7823,7 +7937,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
7823
7937
|
};
|
|
7824
7938
|
}
|
|
7825
7939
|
});
|
|
7826
|
-
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7940
|
+
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-992c16a6"]]);
|
|
7827
7941
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
7828
7942
|
function getDefaultExportFromCjs(x2) {
|
|
7829
7943
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -9518,7 +9632,7 @@ class ObjectSchema extends Schema {
|
|
|
9518
9632
|
}
|
|
9519
9633
|
}
|
|
9520
9634
|
create$3.prototype = ObjectSchema.prototype;
|
|
9521
|
-
const _sfc_main$
|
|
9635
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
9522
9636
|
__name: "LewForm",
|
|
9523
9637
|
props: formProps,
|
|
9524
9638
|
emits: ["change", "mounted"],
|
|
@@ -9664,7 +9778,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
9664
9778
|
};
|
|
9665
9779
|
}
|
|
9666
9780
|
});
|
|
9667
|
-
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9781
|
+
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-0b1e5560"]]);
|
|
9668
9782
|
const checkboxModel = {
|
|
9669
9783
|
modelValue: {
|
|
9670
9784
|
type: Boolean,
|
|
@@ -9707,7 +9821,9 @@ const checkboxProps = {
|
|
|
9707
9821
|
description: "复选框的尺寸",
|
|
9708
9822
|
validator: (value) => {
|
|
9709
9823
|
if (!validSizes.includes(value)) {
|
|
9710
|
-
console.warn(
|
|
9824
|
+
console.warn(
|
|
9825
|
+
'[LewCheckbox] 无效的 size 值,请使用 "small"、"medium" 或 "large"'
|
|
9826
|
+
);
|
|
9711
9827
|
return false;
|
|
9712
9828
|
}
|
|
9713
9829
|
return true;
|
|
@@ -9764,7 +9880,9 @@ const checkboxGroupProps = {
|
|
|
9764
9880
|
description: "复选框组中复选框的尺寸",
|
|
9765
9881
|
validator: (value) => {
|
|
9766
9882
|
if (!validSizes.includes(value)) {
|
|
9767
|
-
console.warn(
|
|
9883
|
+
console.warn(
|
|
9884
|
+
'[LewCheckboxGroup] 无效的 size 值,请使用 "small"、"medium" 或 "large"'
|
|
9885
|
+
);
|
|
9768
9886
|
return false;
|
|
9769
9887
|
}
|
|
9770
9888
|
return true;
|
|
@@ -9776,7 +9894,9 @@ const checkboxGroupProps = {
|
|
|
9776
9894
|
description: "复选框组的排列方向",
|
|
9777
9895
|
validator: (value) => {
|
|
9778
9896
|
if (!["x", "y"].includes(value)) {
|
|
9779
|
-
console.warn(
|
|
9897
|
+
console.warn(
|
|
9898
|
+
'[LewCheckboxGroup] 无效的 direction 值,请使用 "x" 或 "y"'
|
|
9899
|
+
);
|
|
9780
9900
|
return false;
|
|
9781
9901
|
}
|
|
9782
9902
|
return true;
|
|
@@ -9800,15 +9920,15 @@ const checkboxGroupProps = {
|
|
|
9800
9920
|
};
|
|
9801
9921
|
const _hoisted_1$w = {
|
|
9802
9922
|
key: 0,
|
|
9803
|
-
class: "
|
|
9923
|
+
class: "lew-checkbox-icon-box"
|
|
9804
9924
|
};
|
|
9805
|
-
const _hoisted_2$
|
|
9925
|
+
const _hoisted_2$m = { class: "lew-checkbox-icon-certain" };
|
|
9806
9926
|
const _hoisted_3$j = ["checked"];
|
|
9807
9927
|
const _hoisted_4$b = {
|
|
9808
9928
|
key: 1,
|
|
9809
9929
|
class: "lew-checkbox-label"
|
|
9810
9930
|
};
|
|
9811
|
-
const _sfc_main$
|
|
9931
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
9812
9932
|
__name: "LewCheckbox",
|
|
9813
9933
|
props: /* @__PURE__ */ mergeModels(checkboxProps, {
|
|
9814
9934
|
"modelValue": {
|
|
@@ -9859,12 +9979,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9859
9979
|
class: normalizeClass(["lew-checkbox", unref(getCheckboxClassName)])
|
|
9860
9980
|
}, [
|
|
9861
9981
|
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
9862
|
-
withDirectives(createElementVNode("i", _hoisted_2$
|
|
9982
|
+
withDirectives(createElementVNode("i", _hoisted_2$m, null, 512), [
|
|
9863
9983
|
[vShow, _ctx.certain]
|
|
9864
9984
|
]),
|
|
9865
9985
|
createVNode(Icon, {
|
|
9866
9986
|
"stroke-width": 4,
|
|
9867
|
-
class: "
|
|
9987
|
+
class: "lew-checkbox-icon",
|
|
9868
9988
|
type: "check",
|
|
9869
9989
|
size: unref(getIconSize)
|
|
9870
9990
|
}, null, 8, ["size"])
|
|
@@ -9881,8 +10001,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
9881
10001
|
};
|
|
9882
10002
|
}
|
|
9883
10003
|
});
|
|
9884
|
-
const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9885
|
-
const _sfc_main$
|
|
10004
|
+
const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-6dfc1a01"]]);
|
|
10005
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
9886
10006
|
__name: "LewCheckboxGroup",
|
|
9887
10007
|
props: /* @__PURE__ */ mergeModels(checkboxGroupProps, {
|
|
9888
10008
|
"modelValue": {
|
|
@@ -9907,7 +10027,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9907
10027
|
// 开启深度监听
|
|
9908
10028
|
}
|
|
9909
10029
|
);
|
|
9910
|
-
const change = ({
|
|
10030
|
+
const change = ({
|
|
10031
|
+
item,
|
|
10032
|
+
checked
|
|
10033
|
+
}) => {
|
|
9911
10034
|
let _value = modelValue.value || [];
|
|
9912
10035
|
if (checked) {
|
|
9913
10036
|
_value.push(item.value);
|
|
@@ -9932,10 +10055,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9932
10055
|
});
|
|
9933
10056
|
};
|
|
9934
10057
|
const getCheckboxGroupClassName = computed(() => {
|
|
9935
|
-
const { size,
|
|
10058
|
+
const { size, readonly: readonly2, disabled } = props;
|
|
9936
10059
|
return object2class("lew-checkbox-group", {
|
|
9937
10060
|
size,
|
|
9938
|
-
direction,
|
|
9939
10061
|
readonly: readonly2,
|
|
9940
10062
|
disabled
|
|
9941
10063
|
});
|
|
@@ -9971,7 +10093,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
9971
10093
|
};
|
|
9972
10094
|
}
|
|
9973
10095
|
});
|
|
9974
|
-
const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10096
|
+
const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-7c7690fb"]]);
|
|
9975
10097
|
const radioProps = {
|
|
9976
10098
|
checked: {
|
|
9977
10099
|
type: Boolean,
|
|
@@ -10009,7 +10131,9 @@ const radioProps = {
|
|
|
10009
10131
|
description: "单选框尺寸",
|
|
10010
10132
|
validator(value) {
|
|
10011
10133
|
if (!validSizes.includes(value)) {
|
|
10012
|
-
console.warn(
|
|
10134
|
+
console.warn(
|
|
10135
|
+
`[LewRadio] 无效的尺寸: ${value}。请使用 ${validSizes.join(", ")} 中的一个。`
|
|
10136
|
+
);
|
|
10013
10137
|
return false;
|
|
10014
10138
|
}
|
|
10015
10139
|
return true;
|
|
@@ -10091,14 +10215,14 @@ const radioGroupProps = {
|
|
|
10091
10215
|
};
|
|
10092
10216
|
const _hoisted_1$v = {
|
|
10093
10217
|
key: 0,
|
|
10094
|
-
class: "icon-radio-box"
|
|
10218
|
+
class: "lew-icon-radio-box"
|
|
10095
10219
|
};
|
|
10096
|
-
const _hoisted_2$
|
|
10220
|
+
const _hoisted_2$l = ["checked"];
|
|
10097
10221
|
const _hoisted_3$i = {
|
|
10098
10222
|
key: 1,
|
|
10099
10223
|
class: "lew-radio-label"
|
|
10100
10224
|
};
|
|
10101
|
-
const _sfc_main$
|
|
10225
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
10102
10226
|
__name: "LewRadio",
|
|
10103
10227
|
props: radioProps,
|
|
10104
10228
|
emits: ["change"],
|
|
@@ -10141,7 +10265,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10141
10265
|
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
10142
10266
|
createVNode(Icon, {
|
|
10143
10267
|
"stroke-width": 4,
|
|
10144
|
-
class: "icon-radio",
|
|
10268
|
+
class: "lew-icon-radio",
|
|
10145
10269
|
type: "check",
|
|
10146
10270
|
size: unref(getIconSize)
|
|
10147
10271
|
}, null, 8, ["size"])
|
|
@@ -10150,7 +10274,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10150
10274
|
type: "radio",
|
|
10151
10275
|
checked: _ctx.checked,
|
|
10152
10276
|
onChange: setChecked
|
|
10153
|
-
}, null, 40, _hoisted_2$
|
|
10277
|
+
}, null, 40, _hoisted_2$l), [
|
|
10154
10278
|
[vShow, false]
|
|
10155
10279
|
]),
|
|
10156
10280
|
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
@@ -10158,8 +10282,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
10158
10282
|
};
|
|
10159
10283
|
}
|
|
10160
10284
|
});
|
|
10161
|
-
const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10162
|
-
const _sfc_main$
|
|
10285
|
+
const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-4ac28ff8"]]);
|
|
10286
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
10163
10287
|
__name: "LewRadioGroup",
|
|
10164
10288
|
props: /* @__PURE__ */ mergeModels(radioGroupProps, {
|
|
10165
10289
|
"modelValue": {},
|
|
@@ -10181,7 +10305,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10181
10305
|
const { size, direction, disabled, readonly: readonly2 } = props;
|
|
10182
10306
|
return object2class("lew-radio-group", {
|
|
10183
10307
|
size,
|
|
10184
|
-
direction,
|
|
10185
10308
|
disabled,
|
|
10186
10309
|
readonly: readonly2
|
|
10187
10310
|
});
|
|
@@ -10191,7 +10314,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10191
10314
|
return openBlock(), createBlock(_component_lew_flex, {
|
|
10192
10315
|
x: "start",
|
|
10193
10316
|
gap: "10",
|
|
10194
|
-
class: normalizeClass(["lew-radio-group", unref(getRadioGroupClassName)])
|
|
10317
|
+
class: normalizeClass(["lew-radio-group", unref(getRadioGroupClassName)]),
|
|
10318
|
+
direction: _ctx.direction
|
|
10195
10319
|
}, {
|
|
10196
10320
|
default: withCtx(() => [
|
|
10197
10321
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item) => {
|
|
@@ -10209,11 +10333,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
10209
10333
|
}), 128))
|
|
10210
10334
|
]),
|
|
10211
10335
|
_: 1
|
|
10212
|
-
}, 8, ["class"]);
|
|
10336
|
+
}, 8, ["direction", "class"]);
|
|
10213
10337
|
};
|
|
10214
10338
|
}
|
|
10215
10339
|
});
|
|
10216
|
-
const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10340
|
+
const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-54a1b5ef"]]);
|
|
10217
10341
|
const selectModel = {
|
|
10218
10342
|
modelValue: {
|
|
10219
10343
|
type: [String, Number, void 0],
|
|
@@ -10304,13 +10428,13 @@ const selectProps = {
|
|
|
10304
10428
|
}
|
|
10305
10429
|
};
|
|
10306
10430
|
const _hoisted_1$u = ["readonly", "placeholder"];
|
|
10307
|
-
const _hoisted_2$
|
|
10431
|
+
const _hoisted_2$k = { class: "lew-select-options-box" };
|
|
10308
10432
|
const _hoisted_3$h = {
|
|
10309
10433
|
key: 1,
|
|
10310
|
-
class: "result-count"
|
|
10434
|
+
class: "lew-result-count"
|
|
10311
10435
|
};
|
|
10312
10436
|
const _hoisted_4$a = ["onClick"];
|
|
10313
|
-
const _sfc_main$
|
|
10437
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
10314
10438
|
__name: "LewSelect",
|
|
10315
10439
|
props: /* @__PURE__ */ mergeModels(selectProps, {
|
|
10316
10440
|
"modelValue": {},
|
|
@@ -10499,7 +10623,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10499
10623
|
createVNode(Icon, {
|
|
10500
10624
|
size: unref(getIconSize),
|
|
10501
10625
|
type: "chevron-down",
|
|
10502
|
-
class: normalizeClass(["icon-select", { "icon-select-hide": _ctx.clearable && unref(state).keyword }])
|
|
10626
|
+
class: normalizeClass(["lew-icon-select", { "lew-icon-select-hide": _ctx.clearable && unref(state).keyword }])
|
|
10503
10627
|
}, null, 8, ["size", "class"]),
|
|
10504
10628
|
createVNode(Transition, { name: "lew-form-icon-ani" }, {
|
|
10505
10629
|
default: withCtx(() => [
|
|
@@ -10519,7 +10643,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10519
10643
|
ref_key: "inputRef",
|
|
10520
10644
|
ref: inputRef,
|
|
10521
10645
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(state).keyword = $event),
|
|
10522
|
-
class: "value",
|
|
10646
|
+
class: "lew-value",
|
|
10523
10647
|
style: normalizeStyle(unref(getValueStyle)),
|
|
10524
10648
|
readonly: !_ctx.searchable,
|
|
10525
10649
|
placeholder: unref(state).keywordBackup || _ctx.placeholder,
|
|
@@ -10536,12 +10660,12 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10536
10660
|
style: normalizeStyle(`width:${unref(state).selectWidth}px`)
|
|
10537
10661
|
}, [
|
|
10538
10662
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
10539
|
-
createElementVNode("div", _hoisted_2$
|
|
10663
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
10540
10664
|
unref(state).options && unref(state).options.length === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
10541
10665
|
_ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", { key: 0 }, void 0, true) : (openBlock(), createBlock(unref(LewFlex), {
|
|
10542
10666
|
key: 1,
|
|
10543
10667
|
direction: "y",
|
|
10544
|
-
class: "not-found"
|
|
10668
|
+
class: "lew-not-found"
|
|
10545
10669
|
}, {
|
|
10546
10670
|
default: withCtx(() => [
|
|
10547
10671
|
createVNode(_component_lew_empty, { title: "暂无结果" })
|
|
@@ -10581,7 +10705,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10581
10705
|
}, null, 8, ["text"]),
|
|
10582
10706
|
unref(getChecked)(templateProps.value) && _ctx.showCheckIcon ? (openBlock(), createBlock(Icon, {
|
|
10583
10707
|
key: 0,
|
|
10584
|
-
class: "icon-check",
|
|
10708
|
+
class: "lew-icon-check",
|
|
10585
10709
|
size: 14,
|
|
10586
10710
|
type: "check"
|
|
10587
10711
|
})) : createCommentVNode("", true)
|
|
@@ -10599,7 +10723,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
10599
10723
|
};
|
|
10600
10724
|
}
|
|
10601
10725
|
});
|
|
10602
|
-
const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10726
|
+
const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-2a4af6cb"]]);
|
|
10603
10727
|
const selectMultipleModel = {
|
|
10604
10728
|
modelValue: {
|
|
10605
10729
|
type: Array,
|
|
@@ -10655,9 +10779,14 @@ const selectMultipleProps = {
|
|
|
10655
10779
|
},
|
|
10656
10780
|
searchMethod: {
|
|
10657
10781
|
type: Function,
|
|
10658
|
-
default: ({
|
|
10782
|
+
default: ({
|
|
10783
|
+
options,
|
|
10784
|
+
keyword
|
|
10785
|
+
}) => {
|
|
10659
10786
|
if (options && keyword) {
|
|
10660
|
-
return options.filter(
|
|
10787
|
+
return options.filter(
|
|
10788
|
+
(option) => option.label.includes(keyword)
|
|
10789
|
+
);
|
|
10661
10790
|
}
|
|
10662
10791
|
return [];
|
|
10663
10792
|
},
|
|
@@ -10695,17 +10824,17 @@ const selectMultipleProps = {
|
|
|
10695
10824
|
}
|
|
10696
10825
|
};
|
|
10697
10826
|
const _hoisted_1$t = { class: "lew-select-multiple-text-value" };
|
|
10698
|
-
const _hoisted_2$
|
|
10827
|
+
const _hoisted_2$j = {
|
|
10699
10828
|
key: 0,
|
|
10700
|
-
class: "search-input"
|
|
10829
|
+
class: "lew-search-input"
|
|
10701
10830
|
};
|
|
10702
10831
|
const _hoisted_3$g = { class: "lew-select-options-box" };
|
|
10703
10832
|
const _hoisted_4$9 = {
|
|
10704
10833
|
key: 1,
|
|
10705
|
-
class: "result-count"
|
|
10834
|
+
class: "lew-result-count"
|
|
10706
10835
|
};
|
|
10707
10836
|
const _hoisted_5$7 = ["onClick"];
|
|
10708
|
-
const _sfc_main$
|
|
10837
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
10709
10838
|
__name: "LewSelectMultiple",
|
|
10710
10839
|
props: /* @__PURE__ */ mergeModels(selectMultipleProps, {
|
|
10711
10840
|
"modelValue": {},
|
|
@@ -10900,8 +11029,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
10900
11029
|
createVNode(Icon, {
|
|
10901
11030
|
size: unref(getIconSize),
|
|
10902
11031
|
type: "chevron-down",
|
|
10903
|
-
class: normalizeClass(["icon-select", {
|
|
10904
|
-
"icon-select-hide": _ctx.clearable && unref(getLabels) && unref(getLabels).length > 0
|
|
11032
|
+
class: normalizeClass(["lew-icon-select", {
|
|
11033
|
+
"lew-icon-select-hide": _ctx.clearable && unref(getLabels) && unref(getLabels).length > 0
|
|
10905
11034
|
}])
|
|
10906
11035
|
}, null, 8, ["size", "class"]),
|
|
10907
11036
|
createVNode(Transition, { name: "lew-form-icon-ani" }, {
|
|
@@ -10926,7 +11055,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
10926
11055
|
y: "center",
|
|
10927
11056
|
gap: 5,
|
|
10928
11057
|
wrap: "",
|
|
10929
|
-
class: "value"
|
|
11058
|
+
class: "lew-value"
|
|
10930
11059
|
}, {
|
|
10931
11060
|
default: withCtx(() => [
|
|
10932
11061
|
createVNode(TransitionGroup, { name: "list" }, {
|
|
@@ -10994,7 +11123,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
10994
11123
|
_: 1
|
|
10995
11124
|
}, 512))
|
|
10996
11125
|
], 64)) : createCommentVNode("", true),
|
|
10997
|
-
withDirectives(createElementVNode("div", { class: "placeholder" }, toDisplayString(_ctx.placeholder), 513), [
|
|
11126
|
+
withDirectives(createElementVNode("div", { class: "lew-placeholder" }, toDisplayString(_ctx.placeholder), 513), [
|
|
10998
11127
|
[vShow, unref(getLabels) && unref(getLabels).length === 0]
|
|
10999
11128
|
])
|
|
11000
11129
|
], 2)
|
|
@@ -11005,7 +11134,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11005
11134
|
style: normalizeStyle(`width:${unref(state).selectWidth}px`)
|
|
11006
11135
|
}, [
|
|
11007
11136
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
11008
|
-
_ctx.searchable ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
11137
|
+
_ctx.searchable ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
11009
11138
|
withDirectives(createElementVNode("input", {
|
|
11010
11139
|
ref_key: "searchInputRef",
|
|
11011
11140
|
ref: searchInputRef,
|
|
@@ -11022,7 +11151,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11022
11151
|
_ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", { key: 0 }, void 0, true) : (openBlock(), createBlock(_component_lew_flex, {
|
|
11023
11152
|
key: 1,
|
|
11024
11153
|
direction: "y",
|
|
11025
|
-
class: "not-found"
|
|
11154
|
+
class: "lew-not-found"
|
|
11026
11155
|
}, {
|
|
11027
11156
|
default: withCtx(() => [
|
|
11028
11157
|
createVNode(_component_lew_empty, { title: "暂无结果" })
|
|
@@ -11080,7 +11209,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11080
11209
|
};
|
|
11081
11210
|
}
|
|
11082
11211
|
});
|
|
11083
|
-
const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11212
|
+
const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f0df7603"]]);
|
|
11084
11213
|
const switchModel = {
|
|
11085
11214
|
modelValue: {
|
|
11086
11215
|
type: Boolean,
|
|
@@ -11102,7 +11231,9 @@ const switchProps = {
|
|
|
11102
11231
|
description: "开关的尺寸",
|
|
11103
11232
|
validator: (value) => {
|
|
11104
11233
|
if (!validSizes.includes(value)) {
|
|
11105
|
-
console.warn(
|
|
11234
|
+
console.warn(
|
|
11235
|
+
`[LewSwitch] size 必须是 ${validSizes.join("、")} 中的一个`
|
|
11236
|
+
);
|
|
11106
11237
|
return false;
|
|
11107
11238
|
}
|
|
11108
11239
|
return true;
|
|
@@ -11142,7 +11273,7 @@ const switchProps = {
|
|
|
11142
11273
|
}
|
|
11143
11274
|
};
|
|
11144
11275
|
const _hoisted_1$s = ["disabled"];
|
|
11145
|
-
const _sfc_main$
|
|
11276
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
11146
11277
|
__name: "LewSwitch",
|
|
11147
11278
|
props: /* @__PURE__ */ mergeModels(switchProps, {
|
|
11148
11279
|
"modelValue": {},
|
|
@@ -11176,7 +11307,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11176
11307
|
const getSwitchClassName = computed(() => {
|
|
11177
11308
|
const { round: round2, request, disabled, readonly: readonly2 } = props;
|
|
11178
11309
|
let loading = props.loading || _loading.value;
|
|
11179
|
-
return object2class("lew-switch
|
|
11310
|
+
return object2class("lew-switch", {
|
|
11180
11311
|
checked: modelValue.value,
|
|
11181
11312
|
round: !!round2,
|
|
11182
11313
|
request: !!request,
|
|
@@ -11190,8 +11321,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11190
11321
|
switch (size) {
|
|
11191
11322
|
case "small":
|
|
11192
11323
|
return {
|
|
11193
|
-
"--lew-switch-
|
|
11194
|
-
"--lew-switch-
|
|
11324
|
+
"--lew-switch-width": "36px",
|
|
11325
|
+
"--lew-switch-height": "22px",
|
|
11195
11326
|
"--lew-switch-dot-width": "14px",
|
|
11196
11327
|
"--lew-switch-dot-height": "14px",
|
|
11197
11328
|
"--lew-switch-dot-width-active": "16px",
|
|
@@ -11200,8 +11331,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11200
11331
|
};
|
|
11201
11332
|
case "medium":
|
|
11202
11333
|
return {
|
|
11203
|
-
"--lew-switch-
|
|
11204
|
-
"--lew-switch-
|
|
11334
|
+
"--lew-switch-width": "38px",
|
|
11335
|
+
"--lew-switch-height": "24px",
|
|
11205
11336
|
"--lew-switch-dot-width": "16px",
|
|
11206
11337
|
"--lew-switch-dot-height": "16px",
|
|
11207
11338
|
"--lew-switch-dot-width-active": "18px",
|
|
@@ -11210,8 +11341,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11210
11341
|
};
|
|
11211
11342
|
case "large":
|
|
11212
11343
|
return {
|
|
11213
|
-
"--lew-switch-
|
|
11214
|
-
"--lew-switch-
|
|
11344
|
+
"--lew-switch-width": "40px",
|
|
11345
|
+
"--lew-switch-height": "26px",
|
|
11215
11346
|
"--lew-switch-dot-width": "18px",
|
|
11216
11347
|
"--lew-switch-dot-height": "18px",
|
|
11217
11348
|
"--lew-switch-dot-width-active": "20px",
|
|
@@ -11220,8 +11351,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11220
11351
|
};
|
|
11221
11352
|
default:
|
|
11222
11353
|
return {
|
|
11223
|
-
"--lew-switch-
|
|
11224
|
-
"--lew-switch-
|
|
11354
|
+
"--lew-switch-width": "38px",
|
|
11355
|
+
"--lew-switch-height": "24px",
|
|
11225
11356
|
"--lew-switch-dot-width": "16px",
|
|
11226
11357
|
"--lew-switch-dot-height": "16px",
|
|
11227
11358
|
"--lew-switch-dot-width-active": "20px",
|
|
@@ -11232,7 +11363,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11232
11363
|
});
|
|
11233
11364
|
return (_ctx, _cache) => {
|
|
11234
11365
|
return openBlock(), createElementBlock("div", {
|
|
11235
|
-
class: normalizeClass(["lew-switch
|
|
11366
|
+
class: normalizeClass(["lew-switch", unref(getSwitchClassName)]),
|
|
11236
11367
|
style: normalizeStyle(unref(getSwitchStyle)),
|
|
11237
11368
|
onClick: handleClick
|
|
11238
11369
|
}, [
|
|
@@ -11249,7 +11380,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11249
11380
|
};
|
|
11250
11381
|
}
|
|
11251
11382
|
});
|
|
11252
|
-
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11383
|
+
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-209e33e7"]]);
|
|
11253
11384
|
const getHeadDate = ["一", "二", "三", "四", "五", "六", "日"];
|
|
11254
11385
|
const getMonthDate = (year, month) => {
|
|
11255
11386
|
const ret = [];
|
|
@@ -11340,8 +11471,12 @@ const datePickerProps = {
|
|
|
11340
11471
|
default: () => [],
|
|
11341
11472
|
description: "预设日期选项",
|
|
11342
11473
|
validator(value) {
|
|
11343
|
-
if (!Array.isArray(value) || !value.every(
|
|
11344
|
-
|
|
11474
|
+
if (!Array.isArray(value) || !value.every(
|
|
11475
|
+
(item) => typeof item.label === "string" && typeof item.value === "string"
|
|
11476
|
+
)) {
|
|
11477
|
+
console.warn(
|
|
11478
|
+
"[LewDatePicker] presets 必须是包含 label 和 value 字符串的对象数组"
|
|
11479
|
+
);
|
|
11345
11480
|
return false;
|
|
11346
11481
|
}
|
|
11347
11482
|
return true;
|
|
@@ -11634,11 +11769,11 @@ var dayjs_min = { exports: {} };
|
|
|
11634
11769
|
var dayjs_minExports = dayjs_min.exports;
|
|
11635
11770
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
11636
11771
|
const _hoisted_1$r = { class: "lew-date" };
|
|
11637
|
-
const _hoisted_2$
|
|
11772
|
+
const _hoisted_2$i = { class: "lew-date-control-left" };
|
|
11638
11773
|
const _hoisted_3$f = { class: "cur-date" };
|
|
11639
11774
|
const _hoisted_4$8 = { style: { "width": "22px", "text-align": "center" } };
|
|
11640
11775
|
const _hoisted_5$6 = { class: "lew-date-control-right" };
|
|
11641
|
-
const _hoisted_6$
|
|
11776
|
+
const _hoisted_6$5 = { class: "lew-date-box" };
|
|
11642
11777
|
const _hoisted_7$2 = { class: "lew-date-num" };
|
|
11643
11778
|
const _hoisted_8$2 = ["onClick"];
|
|
11644
11779
|
const _hoisted_9$2 = { class: "lew-date-label" };
|
|
@@ -11647,7 +11782,7 @@ const _hoisted_10$2 = {
|
|
|
11647
11782
|
class: "lew-date-item-today"
|
|
11648
11783
|
};
|
|
11649
11784
|
const _hoisted_11$2 = { class: "lew-date-value" };
|
|
11650
|
-
const _sfc_main$
|
|
11785
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
11651
11786
|
__name: "LewDate",
|
|
11652
11787
|
props: /* @__PURE__ */ mergeModels(dateProps, {
|
|
11653
11788
|
"modelValue": {},
|
|
@@ -11728,7 +11863,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11728
11863
|
class: "lew-date-control"
|
|
11729
11864
|
}, {
|
|
11730
11865
|
default: withCtx(() => [
|
|
11731
|
-
createElementVNode("div", _hoisted_2$
|
|
11866
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
11732
11867
|
createVNode(unref(LewButton), {
|
|
11733
11868
|
type: "light",
|
|
11734
11869
|
color: "gray",
|
|
@@ -11788,7 +11923,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11788
11923
|
]),
|
|
11789
11924
|
_: 1
|
|
11790
11925
|
}),
|
|
11791
|
-
createElementVNode("div", _hoisted_6$
|
|
11926
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
11792
11927
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getHeadDate), (item, index2) => {
|
|
11793
11928
|
return openBlock(), createElementBlock("div", {
|
|
11794
11929
|
key: `h${index2}`,
|
|
@@ -11814,10 +11949,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11814
11949
|
};
|
|
11815
11950
|
}
|
|
11816
11951
|
});
|
|
11817
|
-
const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11952
|
+
const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-5964f565"]]);
|
|
11818
11953
|
const _hoisted_1$q = { class: "lew-date-picker-input" };
|
|
11819
|
-
const _hoisted_2$
|
|
11820
|
-
const _sfc_main$
|
|
11954
|
+
const _hoisted_2$h = ["onClick"];
|
|
11955
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
11821
11956
|
__name: "LewDatePicker",
|
|
11822
11957
|
props: /* @__PURE__ */ mergeModels(datePickerProps, {
|
|
11823
11958
|
"modelValue": {},
|
|
@@ -11906,8 +12041,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11906
12041
|
[vShow, modelValue.value]
|
|
11907
12042
|
]),
|
|
11908
12043
|
createVNode(Icon, {
|
|
11909
|
-
class: normalizeClass(["icon-calendar", {
|
|
11910
|
-
"icon-calendar-hide": modelValue.value && _ctx.clearable
|
|
12044
|
+
class: normalizeClass(["lew-date-picker-icon-calendar", {
|
|
12045
|
+
"lew-date-picker-icon-calendar-hide": modelValue.value && _ctx.clearable
|
|
11911
12046
|
}]),
|
|
11912
12047
|
size: unref(getIconSize),
|
|
11913
12048
|
type: "calendar"
|
|
@@ -11918,7 +12053,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11918
12053
|
key: 0,
|
|
11919
12054
|
size: unref(getIconSize),
|
|
11920
12055
|
type: "close",
|
|
11921
|
-
class: normalizeClass(["lew-form-icon-close", {
|
|
12056
|
+
class: normalizeClass(["lew-form-icon-close lew-date-picker-icon-close", {
|
|
11922
12057
|
"lew-form-icon-close-focus": unref(visible)
|
|
11923
12058
|
}]),
|
|
11924
12059
|
onClick: withModifiers(clearHandle, ["stop"])
|
|
@@ -11944,10 +12079,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11944
12079
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
11945
12080
|
onClick: ($event) => selectPresets(item),
|
|
11946
12081
|
key: index2,
|
|
11947
|
-
class: normalizeClass(["item", [
|
|
12082
|
+
class: normalizeClass(["lew-date-picker-presets-item", [
|
|
12083
|
+
unref(dayjs)(modelValue.value).isSame(item.value, "day") ? "lew-date-picker-presets-item-active" : ""
|
|
12084
|
+
]])
|
|
11948
12085
|
}, [
|
|
11949
12086
|
createTextVNode(toDisplayString(item.label), 1)
|
|
11950
|
-
], 10, _hoisted_2$
|
|
12087
|
+
], 10, _hoisted_2$h)), [
|
|
11951
12088
|
[_directive_tooltip, {
|
|
11952
12089
|
content: unref(dayjs)(item.value).format(_ctx.valueFormat),
|
|
11953
12090
|
placement: "right",
|
|
@@ -11978,7 +12115,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11978
12115
|
};
|
|
11979
12116
|
}
|
|
11980
12117
|
});
|
|
11981
|
-
const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12118
|
+
const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-57f637d3"]]);
|
|
11982
12119
|
const dateRangePickerModel = {
|
|
11983
12120
|
modelValue: {
|
|
11984
12121
|
type: Object,
|
|
@@ -12022,7 +12159,9 @@ const dateRangePickerProps = {
|
|
|
12022
12159
|
description: "选择器尺寸",
|
|
12023
12160
|
validator(value) {
|
|
12024
12161
|
if (!validSizes.includes(value)) {
|
|
12025
|
-
console.warn(
|
|
12162
|
+
console.warn(
|
|
12163
|
+
`[LewDateRangePicker] size 必须是 'small'、'medium' 或 'large'`
|
|
12164
|
+
);
|
|
12026
12165
|
return false;
|
|
12027
12166
|
}
|
|
12028
12167
|
return true;
|
|
@@ -12086,11 +12225,11 @@ const dateRangeProps = {
|
|
|
12086
12225
|
}
|
|
12087
12226
|
};
|
|
12088
12227
|
const _hoisted_1$p = { class: "lew-date-range" };
|
|
12089
|
-
const _hoisted_2$
|
|
12228
|
+
const _hoisted_2$g = { class: "lew-date" };
|
|
12090
12229
|
const _hoisted_3$e = { class: "lew-date-control-left" };
|
|
12091
12230
|
const _hoisted_4$7 = { class: "cur-date" };
|
|
12092
12231
|
const _hoisted_5$5 = { style: { "width": "22px", "text-align": "center" } };
|
|
12093
|
-
const _hoisted_6$
|
|
12232
|
+
const _hoisted_6$4 = { class: "lew-date-control-right" };
|
|
12094
12233
|
const _hoisted_7$1 = { class: "lew-date-box" };
|
|
12095
12234
|
const _hoisted_8$1 = { class: "lew-date-num" };
|
|
12096
12235
|
const _hoisted_9$1 = ["onClick", "onMouseenter"];
|
|
@@ -12101,16 +12240,16 @@ const _hoisted_10$1 = {
|
|
|
12101
12240
|
const _hoisted_11$1 = { class: "lew-date" };
|
|
12102
12241
|
const _hoisted_12$1 = { class: "lew-date-control-left" };
|
|
12103
12242
|
const _hoisted_13$1 = { class: "cur-date" };
|
|
12104
|
-
const _hoisted_14 = { style: { "width": "22px", "text-align": "center" } };
|
|
12105
|
-
const _hoisted_15 = { class: "lew-date-control-right" };
|
|
12106
|
-
const _hoisted_16 = { class: "lew-date-box" };
|
|
12243
|
+
const _hoisted_14$1 = { style: { "width": "22px", "text-align": "center" } };
|
|
12244
|
+
const _hoisted_15$1 = { class: "lew-date-control-right" };
|
|
12245
|
+
const _hoisted_16$1 = { class: "lew-date-box" };
|
|
12107
12246
|
const _hoisted_17 = { class: "lew-date-num" };
|
|
12108
12247
|
const _hoisted_18 = ["onClick", "onMouseenter"];
|
|
12109
12248
|
const _hoisted_19 = {
|
|
12110
12249
|
key: 0,
|
|
12111
12250
|
class: "lew-date-item-today"
|
|
12112
12251
|
};
|
|
12113
|
-
const _sfc_main$
|
|
12252
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
12114
12253
|
__name: "LewDateRange",
|
|
12115
12254
|
props: /* @__PURE__ */ mergeModels(dateRangeProps, {
|
|
12116
12255
|
"modelValue": {},
|
|
@@ -12363,7 +12502,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12363
12502
|
__expose({ init });
|
|
12364
12503
|
return (_ctx, _cache) => {
|
|
12365
12504
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
12366
|
-
createElementVNode("div", _hoisted_2$
|
|
12505
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
12367
12506
|
createVNode(unref(LewFlex), {
|
|
12368
12507
|
x: "start",
|
|
12369
12508
|
mode: "between",
|
|
@@ -12401,7 +12540,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12401
12540
|
createElementVNode("span", _hoisted_5$5, toDisplayString(unref(dateState).month1), 1),
|
|
12402
12541
|
_cache[0] || (_cache[0] = createTextVNode(" 月 "))
|
|
12403
12542
|
]),
|
|
12404
|
-
createElementVNode("div", _hoisted_6$
|
|
12543
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
12405
12544
|
createVNode(unref(LewButton), {
|
|
12406
12545
|
type: "light",
|
|
12407
12546
|
color: "gray",
|
|
@@ -12493,10 +12632,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12493
12632
|
]),
|
|
12494
12633
|
createElementVNode("div", _hoisted_13$1, [
|
|
12495
12634
|
createTextVNode(toDisplayString(unref(dateState).year2) + " 年 ", 1),
|
|
12496
|
-
createElementVNode("span", _hoisted_14, toDisplayString(unref(dateState).month2), 1),
|
|
12635
|
+
createElementVNode("span", _hoisted_14$1, toDisplayString(unref(dateState).month2), 1),
|
|
12497
12636
|
_cache[1] || (_cache[1] = createTextVNode(" 月 "))
|
|
12498
12637
|
]),
|
|
12499
|
-
createElementVNode("div", _hoisted_15, [
|
|
12638
|
+
createElementVNode("div", _hoisted_15$1, [
|
|
12500
12639
|
createVNode(unref(LewButton), {
|
|
12501
12640
|
type: "light",
|
|
12502
12641
|
color: "gray",
|
|
@@ -12525,7 +12664,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12525
12664
|
]),
|
|
12526
12665
|
_: 1
|
|
12527
12666
|
}),
|
|
12528
|
-
createElementVNode("div", _hoisted_16, [
|
|
12667
|
+
createElementVNode("div", _hoisted_16$1, [
|
|
12529
12668
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getHeadDate), (item, index2) => {
|
|
12530
12669
|
return openBlock(), createElementBlock("div", {
|
|
12531
12670
|
key: `h${index2}`,
|
|
@@ -12557,26 +12696,26 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
12557
12696
|
};
|
|
12558
12697
|
}
|
|
12559
12698
|
});
|
|
12560
|
-
const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12561
|
-
const _hoisted_1$o = { class: "lew-date-picker-input" };
|
|
12562
|
-
const _hoisted_2$
|
|
12699
|
+
const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-4affe559"]]);
|
|
12700
|
+
const _hoisted_1$o = { class: "lew-date-range-picker-input" };
|
|
12701
|
+
const _hoisted_2$f = {
|
|
12563
12702
|
key: 0,
|
|
12564
|
-
class: "lew-date-picker-placeholder"
|
|
12703
|
+
class: "lew-date-range-picker-placeholder"
|
|
12565
12704
|
};
|
|
12566
12705
|
const _hoisted_3$d = {
|
|
12567
12706
|
key: 1,
|
|
12568
|
-
class: "lew-date-picker-dateValue lew-date-picker-start"
|
|
12707
|
+
class: "lew-date-range-picker-dateValue lew-date-range-picker-start"
|
|
12569
12708
|
};
|
|
12570
|
-
const _hoisted_4$6 = { class: "lew-date-picker-mid" };
|
|
12709
|
+
const _hoisted_4$6 = { class: "lew-date-range-picker-mid" };
|
|
12571
12710
|
const _hoisted_5$4 = {
|
|
12572
12711
|
key: 2,
|
|
12573
|
-
class: "lew-date-picker-placeholder"
|
|
12712
|
+
class: "lew-date-range-picker-placeholder"
|
|
12574
12713
|
};
|
|
12575
|
-
const _hoisted_6$
|
|
12714
|
+
const _hoisted_6$3 = {
|
|
12576
12715
|
key: 3,
|
|
12577
|
-
class: "lew-date-picker-dateValue lew-date-picker-end"
|
|
12716
|
+
class: "lew-date-range-picker-dateValue lew-date-range-picker-end"
|
|
12578
12717
|
};
|
|
12579
|
-
const _sfc_main$
|
|
12718
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
12580
12719
|
__name: "LewDateRangePicker",
|
|
12581
12720
|
props: /* @__PURE__ */ mergeModels(dateRangePickerProps, {
|
|
12582
12721
|
"modelValue": {},
|
|
@@ -12630,7 +12769,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12630
12769
|
const lewDateRangeClassNames = computed(() => {
|
|
12631
12770
|
const focus = visible.value;
|
|
12632
12771
|
const { size, readonly: readonly2, disabled } = props;
|
|
12633
|
-
return object2class("lew-date-picker", { focus, size, readonly: readonly2, disabled });
|
|
12772
|
+
return object2class("lew-date-range-picker", { focus, size, readonly: readonly2, disabled });
|
|
12634
12773
|
});
|
|
12635
12774
|
const checkClear = computed(() => {
|
|
12636
12775
|
return (modelValue.value && modelValue.value[startKey] || modelValue.value && modelValue.value[endKey]) && props.clearable;
|
|
@@ -12649,20 +12788,20 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12649
12788
|
}, {
|
|
12650
12789
|
trigger: withCtx(() => [
|
|
12651
12790
|
createElementVNode("div", {
|
|
12652
|
-
class: normalizeClass(["lew-date-picker-view", unref(lewDateRangeClassNames)])
|
|
12791
|
+
class: normalizeClass(["lew-date-range-picker-view", unref(lewDateRangeClassNames)])
|
|
12653
12792
|
}, [
|
|
12654
12793
|
createElementVNode("div", _hoisted_1$o, [
|
|
12655
|
-
!modelValue.value || !modelValue.value[unref(startKey)] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
12794
|
+
!modelValue.value || !modelValue.value[unref(startKey)] ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(_ctx.placeholderStart), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$d, toDisplayString(modelValue.value[unref(startKey)]), 1)),
|
|
12656
12795
|
createElementVNode("div", _hoisted_4$6, [
|
|
12657
12796
|
createVNode(Icon, {
|
|
12658
12797
|
size: 14,
|
|
12659
12798
|
type: "minus"
|
|
12660
12799
|
})
|
|
12661
12800
|
]),
|
|
12662
|
-
!modelValue.value || !modelValue.value[unref(endKey)] ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(_ctx.placeholderEnd), 1)) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
12801
|
+
!modelValue.value || !modelValue.value[unref(endKey)] ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(_ctx.placeholderEnd), 1)) : (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString(modelValue.value[unref(endKey)]), 1)),
|
|
12663
12802
|
createVNode(Icon, {
|
|
12664
|
-
class: normalizeClass(["icon-calendar", {
|
|
12665
|
-
"icon-calendar-hide": unref(checkClear)
|
|
12803
|
+
class: normalizeClass(["lew-date-range-picker-icon-calendar", {
|
|
12804
|
+
"lew-date-range-picker-icon-calendar-hide": unref(checkClear)
|
|
12666
12805
|
}]),
|
|
12667
12806
|
size: unref(getIconSize),
|
|
12668
12807
|
type: "calendar"
|
|
@@ -12673,7 +12812,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12673
12812
|
key: 0,
|
|
12674
12813
|
size: unref(getIconSize),
|
|
12675
12814
|
type: "close",
|
|
12676
|
-
class: normalizeClass(["lew-form-icon-close", {
|
|
12815
|
+
class: normalizeClass(["lew-form-icon-close lew-date-range-picker-form-icon-close", {
|
|
12677
12816
|
"lew-form-icon-close-focus": unref(visible)
|
|
12678
12817
|
}]),
|
|
12679
12818
|
onClick: withModifiers(clearHandle, ["stop"])
|
|
@@ -12699,7 +12838,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
12699
12838
|
};
|
|
12700
12839
|
}
|
|
12701
12840
|
});
|
|
12702
|
-
const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12841
|
+
const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-ed2d7540"]]);
|
|
12703
12842
|
const tableModel = {
|
|
12704
12843
|
selectedKeys: {
|
|
12705
12844
|
type: [Array, String, Number, void 0],
|
|
@@ -12788,38 +12927,104 @@ const tableProps = {
|
|
|
12788
12927
|
}
|
|
12789
12928
|
}
|
|
12790
12929
|
};
|
|
12930
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
12931
|
+
__name: "SortIcon",
|
|
12932
|
+
props: {
|
|
12933
|
+
sortValue: {
|
|
12934
|
+
type: String
|
|
12935
|
+
},
|
|
12936
|
+
size: {
|
|
12937
|
+
type: String,
|
|
12938
|
+
default: "medium"
|
|
12939
|
+
}
|
|
12940
|
+
},
|
|
12941
|
+
setup(__props) {
|
|
12942
|
+
const props = __props;
|
|
12943
|
+
const getSize = computed(() => {
|
|
12944
|
+
switch (props.size) {
|
|
12945
|
+
case "small":
|
|
12946
|
+
return 12;
|
|
12947
|
+
case "medium":
|
|
12948
|
+
return 14;
|
|
12949
|
+
case "large":
|
|
12950
|
+
return 16;
|
|
12951
|
+
default:
|
|
12952
|
+
return 14;
|
|
12953
|
+
}
|
|
12954
|
+
});
|
|
12955
|
+
return (_ctx, _cache) => {
|
|
12956
|
+
const _component_lew_flex = resolveComponent("lew-flex");
|
|
12957
|
+
return openBlock(), createBlock(_component_lew_flex, {
|
|
12958
|
+
direction: "y",
|
|
12959
|
+
gap: "0",
|
|
12960
|
+
class: "lew-table-sort-icon-wrapper"
|
|
12961
|
+
}, {
|
|
12962
|
+
default: withCtx(() => [
|
|
12963
|
+
createVNode(Icon, {
|
|
12964
|
+
class: "lew-table-sort-icon",
|
|
12965
|
+
style: normalizeStyle({
|
|
12966
|
+
opacity: __props.sortValue === "asc" ? 1 : 0.2,
|
|
12967
|
+
transform: "rotate(180deg) translateY(-2px)",
|
|
12968
|
+
color: __props.sortValue === "asc" ? "var(--lew-color-primary-dark)" : ""
|
|
12969
|
+
}),
|
|
12970
|
+
size: unref(getSize),
|
|
12971
|
+
"stroke-width": 2.5,
|
|
12972
|
+
type: "chevron-down"
|
|
12973
|
+
}, null, 8, ["style", "size"]),
|
|
12974
|
+
createVNode(Icon, {
|
|
12975
|
+
class: "lew-table-sort-icon",
|
|
12976
|
+
style: normalizeStyle({
|
|
12977
|
+
opacity: __props.sortValue === "desc" ? 1 : 0.2,
|
|
12978
|
+
transform: "translateY(-2px)",
|
|
12979
|
+
color: __props.sortValue === "desc" ? "var(--lew-color-primary-dark)" : ""
|
|
12980
|
+
}),
|
|
12981
|
+
size: unref(getSize),
|
|
12982
|
+
"stroke-width": 2.5,
|
|
12983
|
+
type: "chevron-down"
|
|
12984
|
+
}, null, 8, ["style", "size"])
|
|
12985
|
+
]),
|
|
12986
|
+
_: 1
|
|
12987
|
+
});
|
|
12988
|
+
};
|
|
12989
|
+
}
|
|
12990
|
+
});
|
|
12991
|
+
const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-fbff751e"]]);
|
|
12791
12992
|
const _hoisted_1$n = { class: "lew-table-wrapper" };
|
|
12792
|
-
const _hoisted_2$
|
|
12993
|
+
const _hoisted_2$e = { class: "lew-table-header" };
|
|
12793
12994
|
const _hoisted_3$c = { class: "lew-table-tr" };
|
|
12794
|
-
const _hoisted_4$5 = { class: "lew-table-
|
|
12795
|
-
const _hoisted_5$3 = { class: "lew-table-
|
|
12796
|
-
const _hoisted_6$
|
|
12797
|
-
const _hoisted_7 = {
|
|
12995
|
+
const _hoisted_4$5 = { class: "lew-table-title-span" };
|
|
12996
|
+
const _hoisted_5$3 = { class: "lew-table-main" };
|
|
12997
|
+
const _hoisted_6$2 = { class: "lew-table-tr" };
|
|
12998
|
+
const _hoisted_7 = { class: "lew-table-title-span" };
|
|
12999
|
+
const _hoisted_8 = { class: "lew-table-tr" };
|
|
13000
|
+
const _hoisted_9 = { class: "lew-table-title-span" };
|
|
13001
|
+
const _hoisted_10 = {
|
|
12798
13002
|
key: 0,
|
|
12799
13003
|
class: "lew-table-fixed-left"
|
|
12800
13004
|
};
|
|
12801
|
-
const
|
|
12802
|
-
const
|
|
12803
|
-
const
|
|
12804
|
-
const
|
|
13005
|
+
const _hoisted_11 = ["onClick", "onMouseenter"];
|
|
13006
|
+
const _hoisted_12 = { class: "lew-table-main" };
|
|
13007
|
+
const _hoisted_13 = ["onClick", "onMouseenter"];
|
|
13008
|
+
const _hoisted_14 = {
|
|
12805
13009
|
key: 1,
|
|
12806
13010
|
class: "lew-table-fixed-right"
|
|
12807
13011
|
};
|
|
12808
|
-
const
|
|
12809
|
-
const
|
|
13012
|
+
const _hoisted_15 = ["onMouseenter"];
|
|
13013
|
+
const _hoisted_16 = { class: "lew-table-footer" };
|
|
12810
13014
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
12811
13015
|
__name: "LewTable",
|
|
12812
13016
|
props: /* @__PURE__ */ mergeModels(tableProps, {
|
|
12813
13017
|
"selectedKeys": {},
|
|
12814
13018
|
"selectedKeysModifiers": {},
|
|
12815
|
-
"
|
|
12816
|
-
"
|
|
13019
|
+
"sortValue": { default: {} },
|
|
13020
|
+
"sortValueModifiers": {}
|
|
12817
13021
|
}),
|
|
12818
|
-
emits: ["update:selectedKeys", "update:
|
|
12819
|
-
setup(__props) {
|
|
13022
|
+
emits: /* @__PURE__ */ mergeModels(["sortChange", "selectChange"], ["update:selectedKeys", "update:sortValue"]),
|
|
13023
|
+
setup(__props, { emit: __emit }) {
|
|
12820
13024
|
const props = __props;
|
|
12821
13025
|
const selectedKeys = useModel(__props, "selectedKeys");
|
|
12822
|
-
useModel(__props, "
|
|
13026
|
+
const sortValue = useModel(__props, "sortValue");
|
|
13027
|
+
const emit = __emit;
|
|
12823
13028
|
const tableRef = ref();
|
|
12824
13029
|
const fixedLeftRef = ref();
|
|
12825
13030
|
const fixedRightRef = ref();
|
|
@@ -12871,7 +13076,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12871
13076
|
watch(
|
|
12872
13077
|
() => props.dataSource,
|
|
12873
13078
|
() => {
|
|
12874
|
-
state.selectedRowsMap = mapValues(
|
|
13079
|
+
state.selectedRowsMap = mapValues(
|
|
13080
|
+
keyBy(props.dataSource, props.rowKey),
|
|
13081
|
+
() => false
|
|
13082
|
+
);
|
|
12875
13083
|
updateAllCheckedState();
|
|
12876
13084
|
},
|
|
12877
13085
|
{ deep: true }
|
|
@@ -12916,7 +13124,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12916
13124
|
}
|
|
12917
13125
|
});
|
|
12918
13126
|
});
|
|
12919
|
-
let totalWidth = props.columns.reduce(
|
|
13127
|
+
let totalWidth = props.columns.reduce(
|
|
13128
|
+
(sum, col) => sum + Number(col.width),
|
|
13129
|
+
0
|
|
13130
|
+
);
|
|
12920
13131
|
if (props.checkable) {
|
|
12921
13132
|
totalWidth += getCheckableWidth.value;
|
|
12922
13133
|
}
|
|
@@ -12935,14 +13146,19 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12935
13146
|
updateScrollState();
|
|
12936
13147
|
}, 250);
|
|
12937
13148
|
const setAllRowsChecked = (checked) => {
|
|
12938
|
-
state.selectedRowsMap = mapValues(
|
|
13149
|
+
state.selectedRowsMap = mapValues(
|
|
13150
|
+
keyBy(props.dataSource, props.rowKey),
|
|
13151
|
+
() => checked
|
|
13152
|
+
);
|
|
12939
13153
|
if (props.multiple) {
|
|
12940
13154
|
selectedKeys.value = checked ? keys(state.selectedRowsMap) : [];
|
|
12941
13155
|
}
|
|
12942
13156
|
};
|
|
12943
13157
|
const updateAllCheckedState = () => {
|
|
12944
13158
|
const checkedKeys = keys(pickBy(state.selectedRowsMap, Boolean));
|
|
12945
|
-
const allDataKeys = props.dataSource.map(
|
|
13159
|
+
const allDataKeys = props.dataSource.map(
|
|
13160
|
+
(row) => String(row[props.rowKey])
|
|
13161
|
+
);
|
|
12946
13162
|
const uncheckedKeys = difference(allDataKeys, checkedKeys);
|
|
12947
13163
|
state.isAllChecked = isEmpty(uncheckedKeys) && props.multiple && props.checkable && checkedKeys.length > 0;
|
|
12948
13164
|
};
|
|
@@ -12957,11 +13173,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12957
13173
|
state.selectedRowsMap = { [rowKey]: !isChecked };
|
|
12958
13174
|
selectedKeys.value = isChecked ? void 0 : rowKey;
|
|
12959
13175
|
}
|
|
13176
|
+
emit("selectChange", cloneDeep(selectedKeys.value));
|
|
12960
13177
|
updateAllCheckedState();
|
|
12961
13178
|
};
|
|
12962
13179
|
const updateSelectedKeys = (keys2) => {
|
|
12963
13180
|
if (props.multiple) {
|
|
12964
|
-
state.selectedRowsMap = mapValues(
|
|
13181
|
+
state.selectedRowsMap = mapValues(
|
|
13182
|
+
keyBy(props.dataSource, props.rowKey),
|
|
13183
|
+
() => false
|
|
13184
|
+
);
|
|
12965
13185
|
keys2.forEach((key) => {
|
|
12966
13186
|
state.selectedRowsMap[key] = true;
|
|
12967
13187
|
});
|
|
@@ -12969,7 +13189,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
12969
13189
|
state.selectedRowsMap = { [keys2]: true };
|
|
12970
13190
|
}
|
|
12971
13191
|
};
|
|
12972
|
-
const renderCell = ({
|
|
13192
|
+
const renderCell = ({
|
|
13193
|
+
column,
|
|
13194
|
+
row,
|
|
13195
|
+
index: index2
|
|
13196
|
+
}) => {
|
|
12973
13197
|
if (column.customRender) {
|
|
12974
13198
|
return column.customRender({ row, column, index: index2, text: row[column.field] });
|
|
12975
13199
|
}
|
|
@@ -13042,6 +13266,28 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13042
13266
|
fontSize: fontSizeMap[props.size]
|
|
13043
13267
|
};
|
|
13044
13268
|
});
|
|
13269
|
+
const sort = (column) => {
|
|
13270
|
+
var _a;
|
|
13271
|
+
if (column.sortable) {
|
|
13272
|
+
let value = (_a = sortValue.value) == null ? void 0 : _a[column.field];
|
|
13273
|
+
switch (value) {
|
|
13274
|
+
case "desc":
|
|
13275
|
+
value = "asc";
|
|
13276
|
+
break;
|
|
13277
|
+
case "asc":
|
|
13278
|
+
value = void 0;
|
|
13279
|
+
break;
|
|
13280
|
+
default:
|
|
13281
|
+
value = "desc";
|
|
13282
|
+
break;
|
|
13283
|
+
}
|
|
13284
|
+
sortValue.value = {
|
|
13285
|
+
...sortValue.value || {},
|
|
13286
|
+
[column.field]: value
|
|
13287
|
+
};
|
|
13288
|
+
emit("sortChange", cloneDeep(sortValue.value));
|
|
13289
|
+
}
|
|
13290
|
+
};
|
|
13045
13291
|
watch(
|
|
13046
13292
|
() => props.size,
|
|
13047
13293
|
() => {
|
|
@@ -13072,7 +13318,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13072
13318
|
updateScrollState();
|
|
13073
13319
|
handleTableResize();
|
|
13074
13320
|
if (props.checkable && !props.rowKey) {
|
|
13075
|
-
throw new Error(
|
|
13321
|
+
throw new Error(
|
|
13322
|
+
"LewTable error: rowKey is required when checkable is enabled!"
|
|
13323
|
+
);
|
|
13076
13324
|
}
|
|
13077
13325
|
if (props.columns.some((col) => !col.width)) {
|
|
13078
13326
|
throw new Error("LewTable error: width must be set for every column");
|
|
@@ -13089,16 +13337,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13089
13337
|
createElementVNode("i", {
|
|
13090
13338
|
style: normalizeStyle({ left: unref(any2px)(unref(state).fixedLeftWidth) }),
|
|
13091
13339
|
class: normalizeClass([{
|
|
13092
|
-
"hide-line-left": !unref(state).isScrollbarVisible || !unref(state).isInitialized || ["all", "left"].includes(unref(state).hiddenScrollLine)
|
|
13340
|
+
"lew-hide-line-left": !unref(state).isScrollbarVisible || !unref(state).isInitialized || ["all", "left"].includes(unref(state).hiddenScrollLine)
|
|
13093
13341
|
}, "lew-table-scroll-line-left"])
|
|
13094
13342
|
}, null, 6),
|
|
13095
13343
|
createElementVNode("i", {
|
|
13096
13344
|
style: normalizeStyle({ right: unref(any2px)(unref(state).fixedRightWidth) }),
|
|
13097
13345
|
class: normalizeClass([{
|
|
13098
|
-
"hide-line-right": !unref(state).isScrollbarVisible || !unref(state).isInitialized || ["all", "right"].includes(unref(state).hiddenScrollLine)
|
|
13346
|
+
"lew-hide-line-right": !unref(state).isScrollbarVisible || !unref(state).isInitialized || ["all", "right"].includes(unref(state).hiddenScrollLine)
|
|
13099
13347
|
}, "lew-table-scroll-line-right"])
|
|
13100
13348
|
}, null, 6),
|
|
13101
|
-
createElementVNode("div", _hoisted_2$
|
|
13349
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
13102
13350
|
renderSlot(_ctx.$slots, "table-header")
|
|
13103
13351
|
]),
|
|
13104
13352
|
createElementVNode("div", {
|
|
@@ -13111,7 +13359,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13111
13359
|
}, [
|
|
13112
13360
|
createElementVNode("div", {
|
|
13113
13361
|
class: "lew-table-head",
|
|
13114
|
-
style: normalizeStyle({
|
|
13362
|
+
style: normalizeStyle({
|
|
13363
|
+
width: unref(totalColumnWidth) + "px",
|
|
13364
|
+
height: unref(getHeadHeight) + "px"
|
|
13365
|
+
}),
|
|
13115
13366
|
onMouseenter: _cache[2] || (_cache[2] = ($event) => unref(state).hoverRowIndex = -1)
|
|
13116
13367
|
}, [
|
|
13117
13368
|
unref(getFixedColumns)("left").length > 0 || _ctx.checkable ? (openBlock(), createElementBlock("div", {
|
|
@@ -13145,34 +13396,54 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13145
13396
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getFixedColumns)("left"), (column, index2) => {
|
|
13146
13397
|
return openBlock(), createBlock(unref(LewFlex), {
|
|
13147
13398
|
key: `columns${index2}`,
|
|
13148
|
-
class: "lew-table-td",
|
|
13399
|
+
class: normalizeClass(["lew-table-td", { "lew-table-td-sortable": column.sortable }]),
|
|
13149
13400
|
x: column.x || "start",
|
|
13150
13401
|
y: column.y,
|
|
13151
|
-
style: normalizeStyle(unref(getColumnStyle)(column))
|
|
13402
|
+
style: normalizeStyle(unref(getColumnStyle)(column)),
|
|
13403
|
+
gap: "5",
|
|
13404
|
+
onClick: ($event) => sort(column)
|
|
13152
13405
|
}, {
|
|
13153
13406
|
default: withCtx(() => [
|
|
13154
|
-
|
|
13407
|
+
createElementVNode("span", _hoisted_4$5, [
|
|
13408
|
+
createTextVNode(toDisplayString(column.title) + " ", 1),
|
|
13409
|
+
column.sortable ? (openBlock(), createBlock(SortIcon, {
|
|
13410
|
+
key: 0,
|
|
13411
|
+
"sort-value": sortValue.value[column.field],
|
|
13412
|
+
size: _ctx.size,
|
|
13413
|
+
class: "lew-table-sorter"
|
|
13414
|
+
}, null, 8, ["sort-value", "size"])) : createCommentVNode("", true)
|
|
13415
|
+
])
|
|
13155
13416
|
]),
|
|
13156
13417
|
_: 2
|
|
13157
|
-
}, 1032, ["x", "y", "style"]);
|
|
13418
|
+
}, 1032, ["class", "x", "y", "style", "onClick"]);
|
|
13158
13419
|
}), 128))
|
|
13159
13420
|
])
|
|
13160
13421
|
], 512)) : createCommentVNode("", true),
|
|
13161
|
-
createElementVNode("div",
|
|
13162
|
-
createElementVNode("div",
|
|
13422
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
13423
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
13163
13424
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(nonFixedColumns), (column, index2) => {
|
|
13164
13425
|
return openBlock(), createBlock(unref(LewFlex), {
|
|
13165
13426
|
key: `columns${index2}`,
|
|
13166
13427
|
class: normalizeClass(["lew-table-td", { "lew-table-td-sortable": column.sortable }]),
|
|
13167
13428
|
x: column.x || "start",
|
|
13168
13429
|
y: column.y,
|
|
13169
|
-
style: normalizeStyle(unref(getColumnStyle)(column))
|
|
13430
|
+
style: normalizeStyle(unref(getColumnStyle)(column)),
|
|
13431
|
+
gap: "5",
|
|
13432
|
+
onClick: ($event) => sort(column)
|
|
13170
13433
|
}, {
|
|
13171
13434
|
default: withCtx(() => [
|
|
13172
|
-
|
|
13435
|
+
createElementVNode("span", _hoisted_7, [
|
|
13436
|
+
createTextVNode(toDisplayString(column.title) + " ", 1),
|
|
13437
|
+
column.sortable ? (openBlock(), createBlock(SortIcon, {
|
|
13438
|
+
key: 0,
|
|
13439
|
+
"sort-value": sortValue.value[column.field],
|
|
13440
|
+
size: _ctx.size,
|
|
13441
|
+
class: "lew-table-sorter"
|
|
13442
|
+
}, null, 8, ["sort-value", "size"])) : createCommentVNode("", true)
|
|
13443
|
+
])
|
|
13173
13444
|
]),
|
|
13174
13445
|
_: 2
|
|
13175
|
-
}, 1032, ["class", "x", "y", "style"]);
|
|
13446
|
+
}, 1032, ["class", "x", "y", "style", "onClick"]);
|
|
13176
13447
|
}), 128))
|
|
13177
13448
|
])
|
|
13178
13449
|
]),
|
|
@@ -13182,20 +13453,30 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13182
13453
|
ref: fixedRightRef,
|
|
13183
13454
|
class: "lew-table-fixed-right"
|
|
13184
13455
|
}, [
|
|
13185
|
-
createElementVNode("div",
|
|
13456
|
+
createElementVNode("div", _hoisted_8, [
|
|
13186
13457
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getFixedColumns)("right"), (column, index2) => {
|
|
13187
13458
|
return openBlock(), createBlock(unref(LewFlex), {
|
|
13188
13459
|
key: `columns${index2}`,
|
|
13189
|
-
class: "lew-table-td",
|
|
13460
|
+
class: normalizeClass(["lew-table-td", { "lew-table-td-sortable": column.sortable }]),
|
|
13190
13461
|
x: column.x || "start",
|
|
13191
13462
|
y: column.y,
|
|
13192
|
-
style: normalizeStyle(unref(getColumnStyle)(column))
|
|
13463
|
+
style: normalizeStyle(unref(getColumnStyle)(column)),
|
|
13464
|
+
gap: "5",
|
|
13465
|
+
onClick: ($event) => sort(column)
|
|
13193
13466
|
}, {
|
|
13194
13467
|
default: withCtx(() => [
|
|
13195
|
-
|
|
13468
|
+
createElementVNode("span", _hoisted_9, [
|
|
13469
|
+
createTextVNode(toDisplayString(column.title) + " ", 1),
|
|
13470
|
+
column.sortable ? (openBlock(), createBlock(SortIcon, {
|
|
13471
|
+
key: 0,
|
|
13472
|
+
"sort-value": sortValue.value[column.field],
|
|
13473
|
+
size: _ctx.size,
|
|
13474
|
+
class: "lew-table-sorter"
|
|
13475
|
+
}, null, 8, ["sort-value", "size"])) : createCommentVNode("", true)
|
|
13476
|
+
])
|
|
13196
13477
|
]),
|
|
13197
13478
|
_: 2
|
|
13198
|
-
}, 1032, ["x", "y", "style"]);
|
|
13479
|
+
}, 1032, ["class", "x", "y", "style", "onClick"]);
|
|
13199
13480
|
}), 128))
|
|
13200
13481
|
])
|
|
13201
13482
|
], 512)) : createCommentVNode("", true)
|
|
@@ -13205,7 +13486,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13205
13486
|
class: "lew-table-body",
|
|
13206
13487
|
style: normalizeStyle(`width: ${unref(totalColumnWidth)}px`)
|
|
13207
13488
|
}, [
|
|
13208
|
-
unref(getFixedColumns)("left").length > 0 || _ctx.checkable ? (openBlock(), createElementBlock("div",
|
|
13489
|
+
unref(getFixedColumns)("left").length > 0 || _ctx.checkable ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
13209
13490
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i2) => {
|
|
13210
13491
|
return openBlock(), createElementBlock("div", {
|
|
13211
13492
|
key: `data${i2}`,
|
|
@@ -13258,10 +13539,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13258
13539
|
_: 2
|
|
13259
13540
|
}, 1032, ["x", "y", "style"]);
|
|
13260
13541
|
}), 128))
|
|
13261
|
-
], 46,
|
|
13542
|
+
], 46, _hoisted_11);
|
|
13262
13543
|
}), 128))
|
|
13263
13544
|
])) : createCommentVNode("", true),
|
|
13264
|
-
createElementVNode("div",
|
|
13545
|
+
createElementVNode("div", _hoisted_12, [
|
|
13265
13546
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i2) => {
|
|
13266
13547
|
return openBlock(), createElementBlock("div", {
|
|
13267
13548
|
key: `data${i2}`,
|
|
@@ -13298,10 +13579,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13298
13579
|
_: 2
|
|
13299
13580
|
}, 1032, ["x", "y", "style"]);
|
|
13300
13581
|
}), 128))
|
|
13301
|
-
], 42,
|
|
13582
|
+
], 42, _hoisted_13);
|
|
13302
13583
|
}), 128))
|
|
13303
13584
|
]),
|
|
13304
|
-
unref(getFixedColumns)("right").length > 0 ? (openBlock(), createElementBlock("div",
|
|
13585
|
+
unref(getFixedColumns)("right").length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
13305
13586
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i2) => {
|
|
13306
13587
|
return openBlock(), createElementBlock("div", {
|
|
13307
13588
|
key: `data${i2}`,
|
|
@@ -13338,12 +13619,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
13338
13619
|
_: 2
|
|
13339
13620
|
}, 1032, ["x", "y", "style"]);
|
|
13340
13621
|
}), 128))
|
|
13341
|
-
], 46,
|
|
13622
|
+
], 46, _hoisted_15);
|
|
13342
13623
|
}), 128))
|
|
13343
13624
|
])) : createCommentVNode("", true)
|
|
13344
13625
|
], 4)) : createCommentVNode("", true)
|
|
13345
13626
|
], 36),
|
|
13346
|
-
createElementVNode("div",
|
|
13627
|
+
createElementVNode("div", _hoisted_16, [
|
|
13347
13628
|
renderSlot(_ctx.$slots, "table-footer")
|
|
13348
13629
|
]),
|
|
13349
13630
|
_ctx.dataSource.length === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -13425,7 +13706,9 @@ const paginationProps = {
|
|
|
13425
13706
|
description: "分页组件的尺寸",
|
|
13426
13707
|
validator: (value) => {
|
|
13427
13708
|
if (!validSizes.includes(value)) {
|
|
13428
|
-
console.warn(
|
|
13709
|
+
console.warn(
|
|
13710
|
+
`[LewPagination] size 必须是 ${validSizes.join(", ")} 之一`
|
|
13711
|
+
);
|
|
13429
13712
|
return false;
|
|
13430
13713
|
}
|
|
13431
13714
|
return true;
|
|
@@ -13570,7 +13853,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13570
13853
|
class: normalizeClass(["lew-pagination", unref(getPaginationClassName)])
|
|
13571
13854
|
}, [
|
|
13572
13855
|
createVNode(unref(LewFlex), {
|
|
13573
|
-
class: "control",
|
|
13856
|
+
class: "lew-pagination-control",
|
|
13574
13857
|
gap: "10"
|
|
13575
13858
|
}, {
|
|
13576
13859
|
default: withCtx(() => [
|
|
@@ -13596,12 +13879,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13596
13879
|
}, 8, ["size"]),
|
|
13597
13880
|
unref(showOne) ? (openBlock(), createElementBlock("div", {
|
|
13598
13881
|
key: 0,
|
|
13599
|
-
class: "
|
|
13882
|
+
class: "lew-pagination-page-btn",
|
|
13600
13883
|
onClick: _cache[1] || (_cache[1] = ($event) => changePage(1))
|
|
13601
13884
|
}, " 1 ")) : createCommentVNode("", true),
|
|
13602
13885
|
unref(startEllipsis) ? (openBlock(), createElementBlock("div", {
|
|
13603
13886
|
key: 1,
|
|
13604
|
-
class: "
|
|
13887
|
+
class: "lew-pagination-control-btn",
|
|
13605
13888
|
onClick: _cache[2] || (_cache[2] = ($event) => changePage(unref(visiblePages)[0] - 1))
|
|
13606
13889
|
}, [
|
|
13607
13890
|
createVNode(Icon, {
|
|
@@ -13610,13 +13893,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13610
13893
|
})
|
|
13611
13894
|
])) : currentPage.value > unref(visiblePages).length / 2 + 2 && _ctx.visiblePagesCount < unref(totalPages) ? (openBlock(), createElementBlock("div", {
|
|
13612
13895
|
key: 2,
|
|
13613
|
-
class: "btn",
|
|
13896
|
+
class: "lew-pagination-page-btn",
|
|
13614
13897
|
onClick: _cache[3] || (_cache[3] = ($event) => changePage(2))
|
|
13615
13898
|
}, " 2 ")) : createCommentVNode("", true),
|
|
13616
13899
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(visiblePages), (page, index2) => {
|
|
13617
13900
|
return openBlock(), createElementBlock("div", {
|
|
13618
13901
|
key: index2,
|
|
13619
|
-
class: normalizeClass(["btn", {
|
|
13902
|
+
class: normalizeClass(["lew-pagination-page-btn", {
|
|
13620
13903
|
active: Number(page) === Number(currentPage.value)
|
|
13621
13904
|
}]),
|
|
13622
13905
|
onClick: ($event) => changePage(page)
|
|
@@ -13624,7 +13907,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13624
13907
|
}), 128)),
|
|
13625
13908
|
unref(endEllipsis) ? (openBlock(), createElementBlock("div", {
|
|
13626
13909
|
key: 3,
|
|
13627
|
-
class: "
|
|
13910
|
+
class: "lew-pagination-control-btn",
|
|
13628
13911
|
onClick: _cache[4] || (_cache[4] = ($event) => changePage(unref(visiblePages)[unref(visiblePages).length - 1] + 1))
|
|
13629
13912
|
}, [
|
|
13630
13913
|
createVNode(Icon, {
|
|
@@ -13633,12 +13916,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
13633
13916
|
})
|
|
13634
13917
|
])) : currentPage.value < unref(totalPages) - unref(visiblePages).length / 2 - 1 && _ctx.visiblePagesCount < unref(totalPages) ? (openBlock(), createElementBlock("div", {
|
|
13635
13918
|
key: 4,
|
|
13636
|
-
class: "btn",
|
|
13919
|
+
class: "lew-pagination-page-btn",
|
|
13637
13920
|
onClick: _cache[5] || (_cache[5] = ($event) => changePage(2))
|
|
13638
13921
|
}, toDisplayString(unref(totalPages) - 1), 1)) : createCommentVNode("", true),
|
|
13639
13922
|
unref(showMax) ? (openBlock(), createElementBlock("div", {
|
|
13640
13923
|
key: 5,
|
|
13641
|
-
class: "
|
|
13924
|
+
class: "lew-pagination-page-btn",
|
|
13642
13925
|
onClick: _cache[6] || (_cache[6] = ($event) => changePage(unref(totalPages)))
|
|
13643
13926
|
}, toDisplayString(unref(totalPages)), 1)) : createCommentVNode("", true),
|
|
13644
13927
|
createVNode(_component_lew_button, {
|
|
@@ -13761,7 +14044,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
13761
14044
|
};
|
|
13762
14045
|
}
|
|
13763
14046
|
});
|
|
13764
|
-
const LewMagicNumber = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
14047
|
+
const LewMagicNumber = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-2cb8c5e2"]]);
|
|
13765
14048
|
const avatarProps = {
|
|
13766
14049
|
size: {
|
|
13767
14050
|
type: [Number, String],
|
|
@@ -13822,9 +14105,16 @@ const avatarProps = {
|
|
|
13822
14105
|
default: "top-right",
|
|
13823
14106
|
description: "状态标识的位置",
|
|
13824
14107
|
validator(value) {
|
|
13825
|
-
const validPlacements = [
|
|
14108
|
+
const validPlacements = [
|
|
14109
|
+
"top-left",
|
|
14110
|
+
"top-right",
|
|
14111
|
+
"bottom-left",
|
|
14112
|
+
"bottom-right"
|
|
14113
|
+
];
|
|
13826
14114
|
if (!validPlacements.includes(value)) {
|
|
13827
|
-
console.warn(
|
|
14115
|
+
console.warn(
|
|
14116
|
+
`[LewAvatar] statusPlacement 必须是 ${validPlacements.join(", ")} 之一`
|
|
14117
|
+
);
|
|
13828
14118
|
return false;
|
|
13829
14119
|
}
|
|
13830
14120
|
return true;
|
|
@@ -13835,7 +14125,7 @@ const _hoisted_1$k = {
|
|
|
13835
14125
|
key: 0,
|
|
13836
14126
|
class: "skeletons"
|
|
13837
14127
|
};
|
|
13838
|
-
const _hoisted_2$
|
|
14128
|
+
const _hoisted_2$d = ["src", "alt"];
|
|
13839
14129
|
const errorSrc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAABopJREFUeAHtnd9rG0cQx+ckxVFbt7VBgSS07o84BCJaAoW8NFDogyH/R176mj+kbyUv+T8KfggU0pdAi/tDTapIiWPHsZzY8S/JliWfrjtnH1JUWb7dO61nVrNg9Gtmd/b78dzezZ5lD/raw0cLRb/l31FvzwUAMwDBZJ+JvCSlgFf3AJZUSPPZiez9WzdvlHrDU58dtVKpNLG+2fwRPPghCIJM9L488lHA87wOBHCvMJ2/WywWWxh5CDiEu9X8WYH9ns90JNKTFFCgHxSm8rcRcpipmLkC9yS5+L2PLMOjsQrdC9fctv+nHJb5gRwWMR6us+eyX+fwhCoAWXOHicXxM0xYZIuH6DmOE5CYYykwlzm6FIplLEbMFEC2KoPlOpcZN41wg8nwLFrDQ0yZKSCAmQHTDVcA6yrGzF4AMwOmG64A1lWMmb0AZgZMN1wBrKsYM3sBzAyYbrgCWFcxZvYCmBkw3XAFsK5izOwFMDNguuEKYF3FmNkLYGbAdMMVwLqKMbMXwMyA6YYrgHUVY2YvgJkB0w1XAOsqxsxeADMDphuuANZVjJm9AGYGTDdcAayrGDP7nO14v/v2G9tDkhrvl19/sxqPZLBVue0PJoDta251RAFsVW77gwlg+5pbHVEAW5Xb/mAC2L7mVkcUwFbltj+Y9etg0yk29vZhtbYOm1s70DwIvyEI8ucnYHrqI7h0sQAfvP+eaddO+5EH3Ol0oPr8JbyqvfkfiL39JuDPyupruHzxAlz54hPIZOSg1CsUaTUQ7l//VAbC7Z0EPsdfALRFH2ldBUgDxszd2t7tRnvKM7RFH2ldBcgCxjV30GG5G/rgZ+iDvtKOFCALGE+oTFsSX9MxqfqRBYxny6Ytia/pmFT9yAKOLoVMhEviazIeZR+ygCmLxik2soCxiGHakviajknVjyxgrFCZtiS+pmNS9SMLGMuPpi2Jr+mYVP3IAsbaMpYfdRv6SF26qxpZwBgi1panPv6wG+0pz9AWfaR1FSANGDcOvro+GyuTMXPRNo3NBiyUvNnY7KrE+Bn53SQEdvXKDFy+dMHKduFuvQFPny3BuVwOptURIaceOTc20eO6OvvlpyPVut0+hNKTZ6C+Dh9a7TZUF1fg2uxnIx1z1J2TPkSPevK9/SPUx+XncHB8MwF+Vltb19rN6u2PynMBfEzixfJqeLdIP5h/Ky/A9/nuMQtgRXRjcxsQ8KDWbB6oz14N+ojFe2MPGAE+UYfmYW15ZQ1263vDTMh+NtaA8fYePKk6PPRPBVSuLIYnX6caEjMYa8BPq0tQb8TLzHpjHzCTubWxBbyqzpBrrze0eOFavK/u4uTUWALGSlNZnd2a3kGJ6ylmr27rdAIoKz+8pOLS2AGOKk2YgX/8XYaDVltL66NiRtUYEt65WVvTy3ytAFM2ZgW4t9KEOuzsNuD3hcewvVOPJQtmHp4x9xYzYjn2GVUXX2r/YvV1Ye0lG8CDKk2oEpYUMZPj3GKL17pvE9zMF1HxfR8qBof4yN/mIxvAJ1WaUCyEj2vqsHV5WDHDRPD1t1ssdpxYAI4L56R1OU4xwwRypbqsrqEPTVyt+ZAHrAunf13WKWboqh7tOOn62bQnDdgUTu+6rFPMMBGe+o4TacBJ4ETrsm4xwwQy5R0nsoBNKk0mcNLwobzjRBKwaaUpDVimfVDdcSIHOGmlyRRQGn4Ud5xIAU6r0pQGLJM+KO44kQKcVqXJBE5aPtR2nMgAjlvMSAvEqPqhtuNEArBuMWNUcNLql9KO05kDNi1mpAVjVP1Q2XE6c8BJihmjgpNGv1R2nM78LxuuXf0c8EfaaBQ48wwezbSk10gBARwp4eijAHYUbDQtARwp4eijAHYUbDQt62fRtv9vUDTRcX2UDHacvAAWwI4r4Pj0JIMFsOMKOD49yWAB7LgCjk9PMlgAO66A49OTDBbAjivg+PQkgwWw4wo4Pj3JYAHsuAKOT08yWAA7roDj05MMFsCOK+D49CSDBbDjCjg+PclgAey4Ao5PT2WwF++rWh0Xws3pefWMB7Dk5uRkVsgW1+B5kcJZBeYz2Ynsfc/z+P7nJ2fZJJsYMkW2mVs3b5QggHvJuhNvcgoopsg2vEwqTOfvKuIPyAUpARkpgCyRKTqHgIvFYqswlb/tgfeTHK6NNCXhhOyQIbJEphiUOtF6tz18tFD0W/4d9e6c+ucxM+oL8yfftZBXtBTw6sdXQvO45oZLbk+A/wFCn6eLV03nkQAAAABJRU5ErkJggg==";
|
|
13840
14130
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
13841
14131
|
__name: "LewAvatar",
|
|
@@ -13844,7 +14134,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
13844
14134
|
const props = __props;
|
|
13845
14135
|
const { isLoading, error: error2 } = useImage({ src: props.src });
|
|
13846
14136
|
const dotClassName = computed(() => {
|
|
13847
|
-
return object2class("dot", {
|
|
14137
|
+
return object2class("lew-dot", {
|
|
13848
14138
|
status: props.status,
|
|
13849
14139
|
statusPlacement: props.statusPlacement
|
|
13850
14140
|
});
|
|
@@ -13878,17 +14168,17 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
13878
14168
|
src: _ctx.src,
|
|
13879
14169
|
alt: _ctx.alt,
|
|
13880
14170
|
lazy: ""
|
|
13881
|
-
}, null, 8, _hoisted_2$
|
|
14171
|
+
}, null, 8, _hoisted_2$d))
|
|
13882
14172
|
], 2),
|
|
13883
14173
|
_ctx.status ? (openBlock(), createElementBlock("span", {
|
|
13884
14174
|
key: 0,
|
|
13885
|
-
class: normalizeClass(["dot", unref(dotClassName)])
|
|
14175
|
+
class: normalizeClass(["lew-dot", unref(dotClassName)])
|
|
13886
14176
|
}, null, 2)) : createCommentVNode("", true)
|
|
13887
14177
|
], 4);
|
|
13888
14178
|
};
|
|
13889
14179
|
}
|
|
13890
14180
|
});
|
|
13891
|
-
const LewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
14181
|
+
const LewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-70e3b552"]]);
|
|
13892
14182
|
const titleProps = {
|
|
13893
14183
|
size: {
|
|
13894
14184
|
type: [Number, String],
|
|
@@ -13923,7 +14213,9 @@ const titleProps = {
|
|
|
13923
14213
|
"brown"
|
|
13924
14214
|
];
|
|
13925
14215
|
if (value && !validColors2.includes(value) && !/^#([0-9A-Fa-f]{3}){1,2}$/.test(value)) {
|
|
13926
|
-
console.warn(
|
|
14216
|
+
console.warn(
|
|
14217
|
+
`[LewTitle] color 必须是预定义的颜色名称之一或有效的十六进制颜色值`
|
|
14218
|
+
);
|
|
13927
14219
|
return false;
|
|
13928
14220
|
}
|
|
13929
14221
|
return true;
|
|
@@ -13934,7 +14226,9 @@ const titleProps = {
|
|
|
13934
14226
|
default: 500,
|
|
13935
14227
|
description: "标题文字粗细程度,可选值为 100 到 900 之间的整百数",
|
|
13936
14228
|
validator: (value) => {
|
|
13937
|
-
if (![100, 200, 300, 400, 500, 600, 700, 800, 900].includes(
|
|
14229
|
+
if (![100, 200, 300, 400, 500, 600, 700, 800, 900].includes(
|
|
14230
|
+
value
|
|
14231
|
+
)) {
|
|
13938
14232
|
console.warn("[LewTitle] bold 必须是 100 到 900 之间的整百数");
|
|
13939
14233
|
return false;
|
|
13940
14234
|
}
|
|
@@ -14057,7 +14351,7 @@ const buttonProps = {
|
|
|
14057
14351
|
}
|
|
14058
14352
|
};
|
|
14059
14353
|
const _hoisted_1$j = ["disabled"];
|
|
14060
|
-
const _hoisted_2$
|
|
14354
|
+
const _hoisted_2$c = {
|
|
14061
14355
|
key: 0,
|
|
14062
14356
|
class: "lew-button-content"
|
|
14063
14357
|
};
|
|
@@ -14093,7 +14387,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14093
14387
|
hasDefaultSlot.value = true;
|
|
14094
14388
|
}
|
|
14095
14389
|
const getButtonClass = computed(() => {
|
|
14096
|
-
const { size, type,
|
|
14390
|
+
const { size, type, color, singleIcon } = props;
|
|
14097
14391
|
const loading = _loading.value || props.loading;
|
|
14098
14392
|
return object2class("lew-button", {
|
|
14099
14393
|
size,
|
|
@@ -14160,8 +14454,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14160
14454
|
onClick: handleClick
|
|
14161
14455
|
}, [
|
|
14162
14456
|
createElementVNode("div", {
|
|
14163
|
-
class: normalizeClass(["lew-loading-icon", {
|
|
14164
|
-
"lew-loading-isShow": (unref(_loading) || _ctx.loading) && !_ctx.disabled
|
|
14457
|
+
class: normalizeClass(["lew-button-loading-icon", {
|
|
14458
|
+
"lew-button-loading-isShow": (unref(_loading) || _ctx.loading) && !_ctx.disabled
|
|
14165
14459
|
}])
|
|
14166
14460
|
}, [
|
|
14167
14461
|
createVNode(Icon, {
|
|
@@ -14170,7 +14464,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14170
14464
|
type: "loader"
|
|
14171
14465
|
}, null, 8, ["size"])
|
|
14172
14466
|
], 2),
|
|
14173
|
-
_ctx.$slots.default || _ctx.text ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14467
|
+
_ctx.$slots.default || _ctx.text ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
14174
14468
|
createElementVNode("span", _hoisted_3$b, [
|
|
14175
14469
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14176
14470
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
@@ -14181,7 +14475,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14181
14475
|
};
|
|
14182
14476
|
}
|
|
14183
14477
|
});
|
|
14184
|
-
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
14478
|
+
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-71031a66"]]);
|
|
14185
14479
|
const badgeProps = {
|
|
14186
14480
|
color: {
|
|
14187
14481
|
type: String,
|
|
@@ -14189,7 +14483,9 @@ const badgeProps = {
|
|
|
14189
14483
|
description: "徽章颜色,可选值包括多种预定义颜色",
|
|
14190
14484
|
validator: (value) => {
|
|
14191
14485
|
if (!validColors.includes(value)) {
|
|
14192
|
-
console.warn(
|
|
14486
|
+
console.warn(
|
|
14487
|
+
`[LewBadge] 无效的颜色值: ${value}。请使用预定义的颜色之一。`
|
|
14488
|
+
);
|
|
14193
14489
|
return false;
|
|
14194
14490
|
}
|
|
14195
14491
|
return true;
|
|
@@ -14265,7 +14561,9 @@ const tagProps = {
|
|
|
14265
14561
|
description: "标签的颜色主题",
|
|
14266
14562
|
validator(value) {
|
|
14267
14563
|
if (!validColors.includes(value)) {
|
|
14268
|
-
console.warn(
|
|
14564
|
+
console.warn(
|
|
14565
|
+
`[LewTag] 无效的颜色值: ${value}。请使用 ${validColors.join(", ")} 中的一个。`
|
|
14566
|
+
);
|
|
14269
14567
|
return false;
|
|
14270
14568
|
}
|
|
14271
14569
|
return true;
|
|
@@ -14302,7 +14600,7 @@ const tagProps = {
|
|
|
14302
14600
|
}
|
|
14303
14601
|
};
|
|
14304
14602
|
const _hoisted_1$h = { class: "lew-tag-left" };
|
|
14305
|
-
const _hoisted_2$
|
|
14603
|
+
const _hoisted_2$b = { class: "lew-tag-value" };
|
|
14306
14604
|
const _hoisted_3$a = { class: "lew-tag-right" };
|
|
14307
14605
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
14308
14606
|
__name: "LewTag",
|
|
@@ -14369,7 +14667,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
14369
14667
|
createElementVNode("div", _hoisted_1$h, [
|
|
14370
14668
|
renderSlot(_ctx.$slots, "left")
|
|
14371
14669
|
]),
|
|
14372
|
-
createElementVNode("div", _hoisted_2$
|
|
14670
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
14373
14671
|
_ctx.text ? (openBlock(), createBlock(_component_lew_text_trim, {
|
|
14374
14672
|
key: 0,
|
|
14375
14673
|
text: _ctx.text
|
|
@@ -14436,26 +14734,26 @@ const alertProps = {
|
|
|
14436
14734
|
description: "底部插槽"
|
|
14437
14735
|
}
|
|
14438
14736
|
};
|
|
14439
|
-
const _hoisted_1$g = { class: "message" };
|
|
14440
|
-
const _hoisted_2$
|
|
14737
|
+
const _hoisted_1$g = { class: "lew-alert-message" };
|
|
14738
|
+
const _hoisted_2$a = {
|
|
14441
14739
|
key: 0,
|
|
14442
|
-
class: "title"
|
|
14740
|
+
class: "lew-alert-title"
|
|
14443
14741
|
};
|
|
14444
14742
|
const _hoisted_3$9 = {
|
|
14445
14743
|
key: 1,
|
|
14446
|
-
class: "title"
|
|
14744
|
+
class: "lew-alert-title"
|
|
14447
14745
|
};
|
|
14448
14746
|
const _hoisted_4$4 = {
|
|
14449
14747
|
key: 2,
|
|
14450
|
-
class: "content"
|
|
14748
|
+
class: "lew-alert-content"
|
|
14451
14749
|
};
|
|
14452
14750
|
const _hoisted_5$2 = {
|
|
14453
14751
|
key: 3,
|
|
14454
|
-
class: "content"
|
|
14752
|
+
class: "lew-alert-content"
|
|
14455
14753
|
};
|
|
14456
|
-
const _hoisted_6 = {
|
|
14754
|
+
const _hoisted_6$1 = {
|
|
14457
14755
|
key: 4,
|
|
14458
|
-
class: "footer"
|
|
14756
|
+
class: "lew-alert-footer"
|
|
14459
14757
|
};
|
|
14460
14758
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
14461
14759
|
__name: "LewAlert",
|
|
@@ -14478,27 +14776,27 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14478
14776
|
type: _ctx.type
|
|
14479
14777
|
}, null, 8, ["type"]),
|
|
14480
14778
|
createElementVNode("div", _hoisted_1$g, [
|
|
14481
|
-
_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14779
|
+
_ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
14482
14780
|
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
14483
14781
|
])) : (openBlock(), createElementBlock("div", _hoisted_3$9, toDisplayString(_ctx.title), 1)),
|
|
14484
14782
|
_ctx.$slots.content ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
14485
14783
|
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
14486
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_5$2, toDisplayString(_ctx.content), 1)),
|
|
14487
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
14784
|
+
])) : _ctx.content ? (openBlock(), createElementBlock("div", _hoisted_5$2, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
14785
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
14488
14786
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
14489
14787
|
])) : createCommentVNode("", true)
|
|
14490
14788
|
]),
|
|
14491
14789
|
_ctx.closeable ? (openBlock(), createBlock(Icon, {
|
|
14492
14790
|
key: 0,
|
|
14493
14791
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close")),
|
|
14494
|
-
class: "lew-form-icon-close",
|
|
14792
|
+
class: "lew-form-icon-close lew-alert-close-icon",
|
|
14495
14793
|
type: "close"
|
|
14496
14794
|
})) : createCommentVNode("", true)
|
|
14497
14795
|
], 2);
|
|
14498
14796
|
};
|
|
14499
14797
|
}
|
|
14500
14798
|
});
|
|
14501
|
-
const LewAlert = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
14799
|
+
const LewAlert = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6f59bf6f"]]);
|
|
14502
14800
|
function useDOMCreate(nodeId) {
|
|
14503
14801
|
const node = document.getElementById(nodeId);
|
|
14504
14802
|
if (node) {
|
|
@@ -17168,7 +17466,12 @@ const textTrimProps = {
|
|
|
17168
17466
|
default: "top",
|
|
17169
17467
|
description: "提示框的显示位置",
|
|
17170
17468
|
validator(value) {
|
|
17171
|
-
const validPlacements = [
|
|
17469
|
+
const validPlacements = [
|
|
17470
|
+
"top",
|
|
17471
|
+
"bottom",
|
|
17472
|
+
"left",
|
|
17473
|
+
"right"
|
|
17474
|
+
];
|
|
17172
17475
|
if (!validPlacements.includes(value)) {
|
|
17173
17476
|
console.warn(
|
|
17174
17477
|
`[LewTextTrim] 无效的 placement 值: ${value}。请使用 ${validPlacements.join(", ")} 中的一个。`
|
|
@@ -17394,17 +17697,17 @@ const modalProps = {
|
|
|
17394
17697
|
}
|
|
17395
17698
|
};
|
|
17396
17699
|
const _hoisted_1$f = { class: "lew-modal-container" };
|
|
17397
|
-
const _hoisted_2$
|
|
17700
|
+
const _hoisted_2$9 = {
|
|
17398
17701
|
key: 0,
|
|
17399
17702
|
class: "lew-modal-mask"
|
|
17400
17703
|
};
|
|
17401
17704
|
const _hoisted_3$8 = {
|
|
17402
17705
|
key: 0,
|
|
17403
|
-
class: "header-slot"
|
|
17706
|
+
class: "lew-modal-header-slot"
|
|
17404
17707
|
};
|
|
17405
17708
|
const _hoisted_4$3 = {
|
|
17406
17709
|
key: 2,
|
|
17407
|
-
class: "footer-slot"
|
|
17710
|
+
class: "lew-modal-footer-slot"
|
|
17408
17711
|
};
|
|
17409
17712
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
17410
17713
|
__name: "LewModal",
|
|
@@ -17414,7 +17717,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17414
17717
|
}),
|
|
17415
17718
|
emits: /* @__PURE__ */ mergeModels(["ok", "cancel", "close"], ["update:visible"]),
|
|
17416
17719
|
setup(__props, { emit: __emit }) {
|
|
17417
|
-
useMouse();
|
|
17418
17720
|
const { Escape } = useMagicKeys();
|
|
17419
17721
|
useDOMCreate("lew-modal");
|
|
17420
17722
|
const props = __props;
|
|
@@ -17455,7 +17757,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17455
17757
|
createElementVNode("div", _hoisted_1$f, [
|
|
17456
17758
|
createVNode(Transition, { name: "lew-modal-mask" }, {
|
|
17457
17759
|
default: withCtx(() => [
|
|
17458
|
-
visible.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17760
|
+
visible.value ? (openBlock(), createElementBlock("div", _hoisted_2$9)) : createCommentVNode("", true)
|
|
17459
17761
|
]),
|
|
17460
17762
|
_: 1
|
|
17461
17763
|
}),
|
|
@@ -17478,16 +17780,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17478
17780
|
key: 1,
|
|
17479
17781
|
mode: "between",
|
|
17480
17782
|
y: "center",
|
|
17481
|
-
class: "header"
|
|
17783
|
+
class: "lew-modal-header"
|
|
17482
17784
|
}, {
|
|
17483
17785
|
default: withCtx(() => [
|
|
17484
17786
|
createVNode(unref(LewTextTrim), {
|
|
17485
|
-
class: "title",
|
|
17787
|
+
class: "lew-modal-title",
|
|
17486
17788
|
text: _ctx.title
|
|
17487
17789
|
}, null, 8, ["text"]),
|
|
17488
17790
|
createVNode(Icon, {
|
|
17489
17791
|
size: 18,
|
|
17490
|
-
class: "lew-form-icon-close",
|
|
17792
|
+
class: "lew-form-icon-close lew-modal-icon-close",
|
|
17491
17793
|
type: "close",
|
|
17492
17794
|
onClick: close
|
|
17493
17795
|
})
|
|
@@ -17501,7 +17803,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17501
17803
|
key: 3,
|
|
17502
17804
|
x: "end",
|
|
17503
17805
|
y: "center",
|
|
17504
|
-
class: "footer"
|
|
17806
|
+
class: "lew-modal-footer"
|
|
17505
17807
|
}, {
|
|
17506
17808
|
default: withCtx(() => [
|
|
17507
17809
|
!_ctx.hideCancelButton ? (openBlock(), createBlock(unref(LewButton), mergeProps({ key: 0 }, {
|
|
@@ -17528,7 +17830,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17528
17830
|
};
|
|
17529
17831
|
}
|
|
17530
17832
|
});
|
|
17531
|
-
const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
17833
|
+
const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-dc681fdd"]]);
|
|
17532
17834
|
const popokProps = {
|
|
17533
17835
|
type: {
|
|
17534
17836
|
type: String,
|
|
@@ -17537,7 +17839,9 @@ const popokProps = {
|
|
|
17537
17839
|
validator: (value) => {
|
|
17538
17840
|
const validTypes = ["success", "warning", "error", "info"];
|
|
17539
17841
|
if (!validTypes.includes(value)) {
|
|
17540
|
-
console.warn(
|
|
17842
|
+
console.warn(
|
|
17843
|
+
`[LewPopok] 类型 "${value}" 无效。请使用 ${validTypes.join(", ")} 中的一个。`
|
|
17844
|
+
);
|
|
17541
17845
|
return false;
|
|
17542
17846
|
}
|
|
17543
17847
|
return true;
|
|
@@ -17549,7 +17853,9 @@ const popokProps = {
|
|
|
17549
17853
|
description: "弹出框宽度",
|
|
17550
17854
|
validator: (value) => {
|
|
17551
17855
|
if (typeof value === "string" && !/^\d+(%|px|em|rem|vw)$/.test(value)) {
|
|
17552
|
-
console.warn(
|
|
17856
|
+
console.warn(
|
|
17857
|
+
`[LewPopok] 宽度 "${value}" 无效。请使用有效的 CSS 宽度值。`
|
|
17858
|
+
);
|
|
17553
17859
|
return false;
|
|
17554
17860
|
}
|
|
17555
17861
|
return true;
|
|
@@ -17562,7 +17868,9 @@ const popokProps = {
|
|
|
17562
17868
|
validator: (value) => {
|
|
17563
17869
|
const validTriggers = ["hover", "click"];
|
|
17564
17870
|
if (!validTriggers.includes(value)) {
|
|
17565
|
-
console.warn(
|
|
17871
|
+
console.warn(
|
|
17872
|
+
`[LewPopok] 触发方式 "${value}" 无效。请使用 ${validTriggers.join(" 或 ")}。`
|
|
17873
|
+
);
|
|
17566
17874
|
return false;
|
|
17567
17875
|
}
|
|
17568
17876
|
return true;
|
|
@@ -17575,19 +17883,12 @@ const popokProps = {
|
|
|
17575
17883
|
},
|
|
17576
17884
|
okProps: {
|
|
17577
17885
|
type: Object,
|
|
17578
|
-
default: () => ({
|
|
17579
|
-
text: "确定",
|
|
17580
|
-
color: "primary"
|
|
17581
|
-
}),
|
|
17886
|
+
default: () => ({}),
|
|
17582
17887
|
description: "确定按钮的属性"
|
|
17583
17888
|
},
|
|
17584
17889
|
cancelProps: {
|
|
17585
17890
|
type: Object,
|
|
17586
|
-
default: () => ({
|
|
17587
|
-
type: "text",
|
|
17588
|
-
text: "取消",
|
|
17589
|
-
color: "normal"
|
|
17590
|
-
}),
|
|
17891
|
+
default: () => ({}),
|
|
17591
17892
|
description: "取消按钮的属性"
|
|
17592
17893
|
},
|
|
17593
17894
|
content: {
|
|
@@ -17624,17 +17925,17 @@ const popokProps = {
|
|
|
17624
17925
|
}
|
|
17625
17926
|
}
|
|
17626
17927
|
};
|
|
17627
|
-
const _hoisted_1$e = { class: "left" };
|
|
17628
|
-
const _hoisted_2$
|
|
17928
|
+
const _hoisted_1$e = { class: "lew-popok-left" };
|
|
17929
|
+
const _hoisted_2$8 = { class: "lew-popok-right" };
|
|
17629
17930
|
const _hoisted_3$7 = {
|
|
17630
17931
|
key: 0,
|
|
17631
|
-
class: "title"
|
|
17932
|
+
class: "lew-popok-title"
|
|
17632
17933
|
};
|
|
17633
17934
|
const _hoisted_4$2 = {
|
|
17634
17935
|
key: 1,
|
|
17635
|
-
class: "content"
|
|
17936
|
+
class: "lew-popok-content"
|
|
17636
17937
|
};
|
|
17637
|
-
const _hoisted_5$1 = { class: "footer" };
|
|
17938
|
+
const _hoisted_5$1 = { class: "lew-popok-footer" };
|
|
17638
17939
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
17639
17940
|
__name: "LewPopok",
|
|
17640
17941
|
props: popokProps,
|
|
@@ -17684,22 +17985,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
17684
17985
|
type: _ctx.type
|
|
17685
17986
|
}, null, 8, ["type"])
|
|
17686
17987
|
]),
|
|
17687
|
-
createElementVNode("div", _hoisted_2$
|
|
17988
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
17688
17989
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
17689
17990
|
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
17690
17991
|
createElementVNode("div", _hoisted_5$1, [
|
|
17691
17992
|
createVNode(unref(LewButton), mergeProps({
|
|
17692
|
-
type: "light",
|
|
17693
17993
|
text: "取消",
|
|
17694
|
-
round: true,
|
|
17695
|
-
color: "gray",
|
|
17696
17994
|
size: "small",
|
|
17995
|
+
type: "text",
|
|
17996
|
+
color: "normal",
|
|
17697
17997
|
..._ctx.cancelProps
|
|
17698
17998
|
}, { onClick: cancel }), null, 16),
|
|
17699
17999
|
createVNode(unref(LewButton), mergeProps({
|
|
17700
18000
|
text: "确定",
|
|
17701
18001
|
color: "primary",
|
|
17702
|
-
round: true,
|
|
17703
18002
|
size: "small",
|
|
17704
18003
|
..._ctx.okProps
|
|
17705
18004
|
}, { onClick: ok }), null, 16)
|
|
@@ -17712,7 +18011,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
17712
18011
|
};
|
|
17713
18012
|
}
|
|
17714
18013
|
});
|
|
17715
|
-
const LewPopok = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
18014
|
+
const LewPopok = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-05dea821"]]);
|
|
17716
18015
|
const popoverProps = {
|
|
17717
18016
|
trigger: {
|
|
17718
18017
|
type: String,
|
|
@@ -17720,7 +18019,9 @@ const popoverProps = {
|
|
|
17720
18019
|
description: "触发弹出的方式",
|
|
17721
18020
|
validator(value) {
|
|
17722
18021
|
if (!["click", "hover", "focus"].includes(value)) {
|
|
17723
|
-
console.warn(
|
|
18022
|
+
console.warn(
|
|
18023
|
+
`[LewPopover] 无效的触发方式: ${value}。请使用 'click'、'hover' 或 'focus'。`
|
|
18024
|
+
);
|
|
17724
18025
|
return false;
|
|
17725
18026
|
}
|
|
17726
18027
|
return true;
|
|
@@ -17746,7 +18047,9 @@ const popoverProps = {
|
|
|
17746
18047
|
"right-end"
|
|
17747
18048
|
];
|
|
17748
18049
|
if (!validPlacements.includes(value)) {
|
|
17749
|
-
console.warn(
|
|
18050
|
+
console.warn(
|
|
18051
|
+
`[LewPopover] 无效的弹出位置: ${value}。请使用有效的位置值。`
|
|
18052
|
+
);
|
|
17750
18053
|
return false;
|
|
17751
18054
|
}
|
|
17752
18055
|
return true;
|
|
@@ -17926,7 +18229,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
17926
18229
|
createElementVNode("div", {
|
|
17927
18230
|
ref_key: "triggerRef",
|
|
17928
18231
|
ref: triggerRef,
|
|
17929
|
-
class: "trigger"
|
|
18232
|
+
class: "lew-popover-trigger"
|
|
17930
18233
|
}, [
|
|
17931
18234
|
renderSlot(_ctx.$slots, "trigger")
|
|
17932
18235
|
], 512),
|
|
@@ -18025,12 +18328,12 @@ const drawerProps = {
|
|
|
18025
18328
|
};
|
|
18026
18329
|
const _hoisted_1$c = {
|
|
18027
18330
|
key: 0,
|
|
18028
|
-
class: "header-slot"
|
|
18331
|
+
class: "lew-drawer-header-slot"
|
|
18029
18332
|
};
|
|
18030
|
-
const _hoisted_2$
|
|
18333
|
+
const _hoisted_2$7 = { class: "lew-drawer-main-slot" };
|
|
18031
18334
|
const _hoisted_3$6 = {
|
|
18032
18335
|
key: 2,
|
|
18033
|
-
class: "footer-slot"
|
|
18336
|
+
class: "lew-drawer-footer-slot"
|
|
18034
18337
|
};
|
|
18035
18338
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18036
18339
|
__name: "LewDrawer",
|
|
@@ -18115,23 +18418,23 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18115
18418
|
key: 1,
|
|
18116
18419
|
mode: "between",
|
|
18117
18420
|
y: "center",
|
|
18118
|
-
class: "header"
|
|
18421
|
+
class: "lew-drawer-header"
|
|
18119
18422
|
}, {
|
|
18120
18423
|
default: withCtx(() => [
|
|
18121
18424
|
createVNode(_component_lew_text_trim, {
|
|
18122
|
-
class: "title",
|
|
18425
|
+
class: "lew-drawer-title",
|
|
18123
18426
|
text: _ctx.title
|
|
18124
18427
|
}, null, 8, ["text"]),
|
|
18125
18428
|
createVNode(Icon, {
|
|
18126
18429
|
size: 18,
|
|
18127
|
-
class: "lew-form-icon-close",
|
|
18430
|
+
class: "lew-form-icon-close lew-drawer-icon-close",
|
|
18128
18431
|
type: "close",
|
|
18129
18432
|
onClick: _cache[0] || (_cache[0] = ($event) => visible.value = false)
|
|
18130
18433
|
})
|
|
18131
18434
|
]),
|
|
18132
18435
|
_: 1
|
|
18133
18436
|
})) : createCommentVNode("", true),
|
|
18134
|
-
createElementVNode("div", _hoisted_2$
|
|
18437
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
18135
18438
|
renderSlot(_ctx.$slots, "default")
|
|
18136
18439
|
]),
|
|
18137
18440
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
@@ -18140,7 +18443,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18140
18443
|
key: 3,
|
|
18141
18444
|
x: "end",
|
|
18142
18445
|
y: "center",
|
|
18143
|
-
class: "footer"
|
|
18446
|
+
class: "lew-drawer-footer"
|
|
18144
18447
|
}, {
|
|
18145
18448
|
default: withCtx(() => [
|
|
18146
18449
|
createVNode(_component_lew_button, mergeProps({
|
|
@@ -18246,7 +18549,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18246
18549
|
};
|
|
18247
18550
|
}
|
|
18248
18551
|
});
|
|
18249
|
-
const LewResult = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18552
|
+
const LewResult = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b08e64d9"]]);
|
|
18250
18553
|
const backTopProps = {
|
|
18251
18554
|
right: {
|
|
18252
18555
|
type: Number,
|
|
@@ -18289,7 +18592,9 @@ const backTopProps = {
|
|
|
18289
18592
|
default: "",
|
|
18290
18593
|
validator(value) {
|
|
18291
18594
|
if (value && typeof document !== "undefined" && !document.querySelector(value)) {
|
|
18292
|
-
console.warn(
|
|
18595
|
+
console.warn(
|
|
18596
|
+
`[LewBackTop] 未找到目标元素:${value}。请确保提供了有效的 CSS 选择器。`
|
|
18597
|
+
);
|
|
18293
18598
|
return false;
|
|
18294
18599
|
}
|
|
18295
18600
|
return true;
|
|
@@ -18335,7 +18640,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18335
18640
|
default: withCtx(() => [
|
|
18336
18641
|
unref(showBackTop) ? (openBlock(), createElementBlock("div", {
|
|
18337
18642
|
key: 0,
|
|
18338
|
-
class: "
|
|
18643
|
+
class: "lew-back-top",
|
|
18339
18644
|
style: normalizeStyle(unref(backTopStyle)),
|
|
18340
18645
|
onClick: toBackUp
|
|
18341
18646
|
}, [
|
|
@@ -18352,7 +18657,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18352
18657
|
};
|
|
18353
18658
|
}
|
|
18354
18659
|
});
|
|
18355
|
-
const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
18660
|
+
const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-b9de2cd5"]]);
|
|
18356
18661
|
const menuProps = {
|
|
18357
18662
|
options: {
|
|
18358
18663
|
type: Array,
|
|
@@ -18381,7 +18686,7 @@ const menuProps = {
|
|
|
18381
18686
|
}
|
|
18382
18687
|
};
|
|
18383
18688
|
const _hoisted_1$a = { class: "lew-menu" };
|
|
18384
|
-
const _hoisted_2$
|
|
18689
|
+
const _hoisted_2$6 = { class: "lew-menu-item" };
|
|
18385
18690
|
const _hoisted_3$5 = ["onClick"];
|
|
18386
18691
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
18387
18692
|
__name: "LewMenu",
|
|
@@ -18420,7 +18725,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
18420
18725
|
return openBlock(), createElementBlock(Fragment, {
|
|
18421
18726
|
key: item.label
|
|
18422
18727
|
}, [
|
|
18423
|
-
createElementVNode("div", _hoisted_2$
|
|
18728
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
18424
18729
|
createVNode(unref(LewTextTrim), {
|
|
18425
18730
|
text: item.label
|
|
18426
18731
|
}, null, 8, ["text"]),
|
|
@@ -18475,7 +18780,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
18475
18780
|
};
|
|
18476
18781
|
}
|
|
18477
18782
|
});
|
|
18478
|
-
const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
18783
|
+
const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-993d2673"]]);
|
|
18479
18784
|
const menuTreeProps = {
|
|
18480
18785
|
options: {
|
|
18481
18786
|
type: Array,
|
|
@@ -18490,7 +18795,7 @@ const menuTreeProps = {
|
|
|
18490
18795
|
}
|
|
18491
18796
|
};
|
|
18492
18797
|
const _hoisted_1$9 = { class: "lew-menu" };
|
|
18493
|
-
const _hoisted_2$
|
|
18798
|
+
const _hoisted_2$5 = { class: "lew-menu-item" };
|
|
18494
18799
|
const _hoisted_3$4 = ["onClick"];
|
|
18495
18800
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
18496
18801
|
__name: "LewMenuTree",
|
|
@@ -18529,7 +18834,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18529
18834
|
return openBlock(), createElementBlock(Fragment, {
|
|
18530
18835
|
key: item.label
|
|
18531
18836
|
}, [
|
|
18532
|
-
createElementVNode("div", _hoisted_2$
|
|
18837
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
18533
18838
|
createVNode(unref(LewTextTrim), {
|
|
18534
18839
|
text: item.label
|
|
18535
18840
|
}, null, 8, ["text"]),
|
|
@@ -18584,7 +18889,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18584
18889
|
};
|
|
18585
18890
|
}
|
|
18586
18891
|
});
|
|
18587
|
-
const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
18892
|
+
const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-721edfa2"]]);
|
|
18588
18893
|
const __vite_glob_0_0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20height='300'%20node-id='1'%20sillyvg='true'%20template-height='300'%20template-width='500'%20version='1.1'%20viewBox='0%200%20500%20300'%20width='500'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs%20node-id='54'%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_50'%20node-id='5'%20spreadMethod='pad'%20x1='250'%20x2='250'%20y1='284.22'%20y2='191.22'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35'%20node-id='15'%20spreadMethod='pad'%20x1='-3.4599998'%20x2='52.319996'%20y1='-701.7999'%20y2='-757.57996'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35-2'%20node-id='16'%20spreadMethod='pad'%20x1='275.13998'%20x2='330.91998'%20y1='-896.95996'%20y2='-952.7399'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_35-3'%20node-id='17'%20spreadMethod='pad'%20x1='196.64998'%20x2='252.42998'%20y1='-1000.9099'%20y2='-1056.6799'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_50-2'%20node-id='18'%20spreadMethod='pad'%20x1='241.17'%20x2='241.17'%20y1='183.5'%20y2='176'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'%3e%3c/stop%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'%3e%3c/stop%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'%3e%3c/stop%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'%3e%3c/stop%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'%3e%3c/stop%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'%3e%3c/stop%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20'%20node-id='19'%20spreadMethod='pad'%20x1='277.5'%20x2='272.5'%20y1='107.33'%20y2='98.67'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-2'%20node-id='31'%20spreadMethod='pad'%20x1='233.5'%20x2='228.5'%20y1='120.33'%20y2='111.67'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-3'%20node-id='32'%20spreadMethod='pad'%20x1='225.25'%20x2='221.75'%20y1='145.53'%20y2='139.47'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-4'%20node-id='33'%20spreadMethod='pad'%20x1='260.23'%20x2='257.75'%20y1='154.77'%20y2='150.47'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='未命名的渐变_20-5'%20node-id='34'%20spreadMethod='pad'%20x1='258.75'%20x2='250.25'%20y1='138.86'%20y2='124.14'%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0'%3e%3c/stop%3e%3cstop%20offset='0.01'%20stop-color='%23e2e4ed'%20stop-opacity='0.1'%3e%3c/stop%3e%3cstop%20offset='0.04'%20stop-color='%23e2e4ed'%20stop-opacity='0.23'%3e%3c/stop%3e%3cstop%20offset='0.06'%20stop-color='%23e2e4ed'%20stop-opacity='0.35'%3e%3c/stop%3e%3cstop%20offset='0.09'%20stop-color='%23e2e4ed'%20stop-opacity='0.44'%3e%3c/stop%3e%3cstop%20offset='0.13'%20stop-color='%23e2e4ed'%20stop-opacity='0.51'%3e%3c/stop%3e%3cstop%20offset='0.17'%20stop-color='%23e2e4ed'%20stop-opacity='0.56'%3e%3c/stop%3e%3cstop%20offset='0.23'%20stop-color='%23e2e4ed'%20stop-opacity='0.59'%3e%3c/stop%3e%3cstop%20offset='0.39'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'%3e%3c/stop%3e%3cstop%20offset='0.65'%20stop-color='%23d8dbe8'%20stop-opacity='0.75'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M%20396.00%20237.72%20C%20396.00%20263.40%20330.63%20284.22%20250.00%20284.22%20C%20169.37%20284.22%20104.00%20263.40%20104.00%20237.72%20C%20104.00%20212.04%20169.37%20191.22%20250.00%20191.22%20C%20330.63%20191.22%20396.00%20212.04%20396.00%20237.72%20Z'%20fill='url(%23未命名的渐变_50)'%20fill-rule='nonzero'%20node-id='277'%20stroke='none'%20target-height='93'%20target-width='292'%20target-x='104'%20target-y='191.22'%3e%3c/path%3e%3cg%20node-id='318'%3e%3cpath%20d='M%20108.85%2089.86%20L%20108.85%2089.86%20L%20110.49%2091.84%20L%20111.70%2093.94%20L%20112.50%2096.21%20L%20112.90%2098.58%20L%20112.90%20100.94%20L%20112.50%20103.31%20L%20111.70%20105.58%20L%20110.49%20107.68%20L%20108.85%20109.66%20L%2057.94%20160.57%20L%2055.97%20162.21%20L%2053.86%20163.41%20L%2051.59%20164.22%20L%2049.22%20164.62%20L%2046.86%20164.62%20L%2044.49%20164.22%20L%2042.23%20163.41%20L%2040.12%20162.21%20L%2038.14%20160.57%20L%2038.14%20160.57%20L%2036.50%20158.60%20L%2035.30%20156.49%20L%2034.50%20154.22%20L%2034.09%20151.85%20L%2034.09%20149.49%20L%2034.50%20147.12%20L%2035.30%20144.85%20L%2036.50%20142.75%20L%2038.14%20140.77%20L%2089.05%2089.86%20L%2091.03%2088.22%20L%2093.14%2087.02%20L%2095.40%2086.22%20L%2097.78%2085.81%20L%20100.13%2085.81%20L%20102.51%2086.22%20L%20104.77%2087.02%20L%20106.88%2088.22%20L%20108.85%2089.86%20Z'%20fill='url(%23未命名的渐变_35)'%20fill-rule='nonzero'%20group-id='1'%20node-id='281'%20stroke='none'%20target-height='78.81137'%20target-width='78.811386'%20target-x='34.092743'%20target-y='85.81056'%3e%3c/path%3e%3c/g%3e%3cg%20node-id='319'%3e%3cpath%20d='M%20443.86%20148.86%20L%20443.86%20148.86%20L%20445.49%20150.84%20L%20446.70%20152.94%20L%20447.50%20155.21%20L%20447.91%20157.58%20L%20447.91%20159.94%20L%20447.50%20162.31%20L%20446.70%20164.58%20L%20445.49%20166.68%20L%20443.86%20168.66%20L%20392.94%20219.57%20L%20390.97%20221.21%20L%20388.86%20222.41%20L%20386.60%20223.22%20L%20384.22%20223.62%20L%20381.87%20223.62%20L%20379.49%20223.22%20L%20377.23%20222.41%20L%20375.12%20221.21%20L%20373.14%20219.57%20L%20373.14%20219.57%20L%20371.51%20217.60%20L%20370.30%20215.49%20L%20369.50%20213.22%20L%20369.09%20210.85%20L%20369.09%20208.49%20L%20369.50%20206.12%20L%20370.30%20203.86%20L%20371.51%20201.75%20L%20373.14%20199.77%20L%20424.06%20148.86%20L%20426.03%20147.22%20L%20428.14%20146.02%20L%20430.40%20145.22%20L%20432.78%20144.81%20L%20435.13%20144.81%20L%20437.51%20145.22%20L%20439.77%20146.02%20L%20441.88%20147.22%20L%20443.86%20148.86%20Z'%20fill='url(%23未命名的渐变_35-2)'%20fill-rule='nonzero'%20group-id='2'%20node-id='286'%20stroke='none'%20target-height='78.81143'%20target-width='78.8114'%20target-x='369.09418'%20target-y='144.81061'%3e%3c/path%3e%3c/g%3e%3cg%20node-id='320'%3e%3cpath%20d='M%20461.86%2019.86%20L%20461.86%2019.86%20L%20463.50%2021.84%20L%20464.70%2023.94%20L%20465.50%2026.21%20L%20465.91%2028.58%20L%20465.91%2030.94%20L%20465.50%2033.31%20L%20464.70%2035.58%20L%20463.50%2037.69%20L%20461.86%2039.66%20L%20410.95%2090.57%20L%20408.97%2092.21%20L%20406.87%2093.42%20L%20404.60%2094.22%20L%20402.23%2094.62%20L%20399.87%2094.62%20L%20397.50%2094.22%20L%20395.23%2093.42%20L%20393.12%2092.21%20L%20391.15%2090.57%20L%20391.15%2090.57%20L%20389.51%2088.60%20L%20388.31%2086.49%20L%20387.50%2084.22%20L%20387.10%2081.85%20L%20387.10%2079.49%20L%20387.50%2077.12%20L%20388.31%2074.86%20L%20389.51%2072.75%20L%20391.15%2070.77%20L%20442.06%2019.86%20L%20444.04%2018.22%20L%20446.14%2017.02%20L%20448.41%2016.22%20L%20450.78%2015.81%20L%20453.14%2015.81%20L%20455.51%2016.22%20L%20457.78%2017.02%20L%20459.88%2018.22%20L%20461.86%2019.86%20Z'%20fill='url(%23未命名的渐变_35-3)'%20fill-rule='nonzero'%20group-id='3'%20node-id='291'%20stroke='none'%20target-height='78.81137'%20target-width='78.8114'%20target-x='387.09888'%20target-y='15.811768'%3e%3c/path%3e%3c/g%3e%3cpath%20d='M%20144.63%2093.23%20L%20173.22%2087.05%20L%20182.67%20147.42%20L%20195.67%20145.11%20L%20198.73%20165.26%20L%20185.73%20167.40%20L%20188.73%20185.85%20L%20162.76%20190.00%20L%20159.76%20172.07%20L%20116.86%20178.93%20L%20113.31%20157.52%20Z%20M%20154.00%20111.84%20L%20134.11%20158.20%20L%20159.63%20154.00%20Z'%20fill='%23c7cce0'%20fill-rule='nonzero'%20node-id='294'%20stroke='none'%20target-height='102.95'%20target-width='85.42'%20target-x='113.31'%20target-y='87.05'%3e%3c/path%3e%3cpath%20d='M%20141.51%2092.48%20L%20169.79%2087.82%20L%20179.67%20147.82%20L%20192.67%20145.68%20L%20195.51%20162.92%20L%20182.51%20165.06%20L%20185.51%20183.51%20L%20162.21%20187.35%20L%20159.21%20168.90%20L%20116.31%20176.00%20L%20112.83%20154.86%20Z%20M%20150.74%20109.48%20L%20130.85%20155.84%20L%20156.37%20151.64%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='296'%20stroke='none'%20target-height='99.53001'%20target-width='82.67999'%20target-x='112.83'%20target-y='87.82'%3e%3c/path%3e%3cpath%20d='M%20336.30%2092.18%20L%20364.13%2096.36%20L%20352.08%20153.89%20L%20364.60%20156.25%20L%20360.49%20175.42%20L%20348.07%20172.92%20L%20344.52%20190.55%20L%20319.67%20185.40%20L%20323.00%20168.25%20L%20282.07%20159.82%20L%20286.16%20139.35%20Z%20M%20338.41%20112.12%20L%20304.73%20147.06%20L%20329.12%20152.00%20Z'%20fill='%23c7cce0'%20fill-rule='nonzero'%20node-id='298'%20stroke='none'%20target-height='98.37'%20target-width='82.53'%20target-x='282.07'%20target-y='92.18'%3e%3c/path%3e%3cpath%20d='M%20333.75%2090.44%20L%20360.75%2095.88%20L%20349.21%20153.22%20L%20361.63%20155.72%20L%20358.31%20172.19%20L%20345.89%20169.69%20L%20342.34%20187.32%20L%20320.07%20182.84%20L%20323.62%20165.21%20L%20282.62%20156.96%20L%20286.69%20136.75%20Z%20M%20336.26%20108.89%20L%20302.58%20143.83%20L%20327.00%20148.74%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='300'%20stroke='none'%20target-height='96.880005'%20target-width='79.01001'%20target-x='282.62'%20target-y='90.44'%3e%3c/path%3e%3cpath%20d='M%20261.38%20179.75%20C%20261.38%20181.82%20252.33%20183.50%20241.17%20183.50%20C%20230.01%20183.50%20220.96%20181.82%20220.96%20179.75%20C%20220.96%20177.68%20230.01%20176.00%20241.17%20176.00%20C%20252.33%20176.00%20261.38%20177.68%20261.38%20179.75%20Z'%20fill='url(%23未命名的渐变_50-2)'%20fill-rule='nonzero'%20node-id='302'%20stroke='none'%20target-height='7.5'%20target-width='40.42'%20target-x='220.96'%20target-y='176'%3e%3c/path%3e%3cpath%20d='M%20272.17%20130.00%20C%20272.17%20147.12%20258.29%20161.00%20241.17%20161.00%20C%20224.05%20161.00%20210.17%20147.12%20210.17%20130.00%20C%20210.17%20112.88%20224.05%2099.00%20241.17%2099.00%20C%20258.29%2099.00%20272.17%20112.88%20272.17%20130.00%20Z'%20fill='%23e2e4ed'%20fill-rule='nonzero'%20node-id='304'%20stroke='none'%20target-height='62'%20target-width='62.000015'%20target-x='210.17'%20target-y='99'%3e%3c/path%3e%3cpath%20d='M%20280.00%20103.00%20C%20280.00%20105.76%20277.76%20108.00%20275.00%20108.00%20C%20272.24%20108.00%20270.00%20105.76%20270.00%20103.00%20C%20270.00%20100.24%20272.24%2098.00%20275.00%2098.00%20C%20277.76%2098.00%20280.00%20100.24%20280.00%20103.00%20Z'%20fill='url(%23未命名的渐变_20)'%20fill-rule='nonzero'%20node-id='306'%20stroke='none'%20target-height='10'%20target-width='10'%20target-x='270'%20target-y='98'%3e%3c/path%3e%3cpath%20d='M%20236.00%20116.00%20C%20236.00%20118.76%20233.76%20121.00%20231.00%20121.00%20C%20228.24%20121.00%20226.00%20118.76%20226.00%20116.00%20C%20226.00%20113.24%20228.24%20111.00%20231.00%20111.00%20C%20233.76%20111.00%20236.00%20113.24%20236.00%20116.00%20Z'%20fill='url(%23未命名的渐变_20-2)'%20fill-rule='nonzero'%20node-id='308'%20stroke='none'%20target-height='10'%20target-width='10'%20target-x='226'%20target-y='111'%3e%3c/path%3e%3cpath%20d='M%20227.00%20142.50%20C%20227.00%20144.43%20225.43%20146.00%20223.50%20146.00%20C%20221.57%20146.00%20220.00%20144.43%20220.00%20142.50%20C%20220.00%20140.57%20221.57%20139.00%20223.50%20139.00%20C%20225.43%20139.00%20227.00%20140.57%20227.00%20142.50%20Z'%20fill='url(%23未命名的渐变_20-3)'%20fill-rule='nonzero'%20node-id='310'%20stroke='none'%20target-height='7'%20target-width='7'%20target-x='220'%20target-y='139'%3e%3c/path%3e%3cpath%20d='M%20259.50%20150.00%20C%20257.98%20150.01%20256.64%20151.00%20256.18%20152.45%20C%20255.72%20153.90%20256.26%20155.48%20257.50%20156.36%20C%20259.40%20155.18%20261.17%20153.80%20262.77%20152.24%20C%20262.25%20150.89%20260.95%20150.00%20259.50%20150.00%20Z'%20fill='url(%23未命名的渐变_20-4)'%20fill-rule='nonzero'%20node-id='312'%20stroke='none'%20target-height='6.364792'%20target-width='7.047928'%20target-x='255.72206'%20target-y='149.99521'%3e%3c/path%3e%3cpath%20d='M%20263.00%20131.50%20C%20263.00%20136.19%20259.19%20140.00%20254.50%20140.00%20C%20249.81%20140.00%20246.00%20136.19%20246.00%20131.50%20C%20246.00%20126.81%20249.81%20123.00%20254.50%20123.00%20C%20259.19%20123.00%20263.00%20126.81%20263.00%20131.50%20Z'%20fill='url(%23未命名的渐变_20-5)'%20fill-rule='nonzero'%20node-id='314'%20stroke='none'%20target-height='17'%20target-width='17'%20target-x='246'%20target-y='123'%3e%3c/path%3e%3cpath%20d='M%20272.33%20121.26%20C%20278.06%20121.13%20281.71%20121.91%20282.18%20123.70%20C%20283.32%20127.97%20265.94%20136.33%20243.36%20142.39%20C%20220.78%20148.45%20201.54%20149.89%20200.36%20145.62%20C%20199.84%20143.69%20203.13%20140.91%20208.99%20137.89'%20fill='none'%20node-id='316'%20stroke='%23c7cce0'%20stroke-linecap='round'%20stroke-width='2'%20target-height='28.760002'%20target-width='83.48001'%20target-x='199.84'%20target-y='121.13'%3e%3c/path%3e%3c/svg%3e";
|
|
18589
18894
|
const __vite_glob_0_1 = "data:image/svg+xml,%3csvg%20id='图层_1'%20data-name='图层%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20500%20300'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23未命名的渐变_50);}.cls-2{fill:url(%23未命名的渐变_35);}.cls-3{fill:url(%23未命名的渐变_35-2);}.cls-4{fill:url(%23未命名的渐变_35-3);}.cls-5{fill:%23c7cce0;}.cls-6{fill:%23e2e4ed;}%3c/style%3e%3clinearGradient%20id='未命名的渐变_50'%20x1='250'%20y1='284.22'%20x2='250'%20y2='191.22'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'/%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'/%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'/%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'/%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'/%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'/%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_35'%20x1='59.52'%20y1='150.25'%20x2='115.3'%20y2='94.47'%20gradientTransform='translate(-13.91%202.86)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-2'%20x1='338.12'%20y1='-44.92'%20x2='393.9'%20y2='-100.69'%20gradientTransform='translate(42.49%20257.02)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-3'%20x1='259.63'%20y1='-148.86'%20x2='315.41'%20y2='-204.64'%20gradientTransform='translate(138.98%20231.97)'%20xlink:href='%23未命名的渐变_50'/%3e%3c/defs%3e%3ctitle%3e地址缺省页%3c/title%3e%3cellipse%20class='cls-1'%20cx='250'%20cy='237.72'%20rx='146'%20ry='46.5'/%3e%3crect%20class='cls-2'%20x='59.5'%20y='75.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(110.07%20-15.3)%20rotate(45)'/%3e%3crect%20class='cls-3'%20x='394.5'%20y='134.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(249.91%20-234.9)%20rotate(45)'/%3e%3crect%20class='cls-4'%20x='412.5'%20y='5.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(163.97%20-285.41)%20rotate(45)'/%3e%3cpath%20class='cls-5'%20d='M253.3,72.05a56.74,56.74,0,0,0-56.7,56.77c0,52.81,53.21,99.13,53.21,99.13S310,181.63,310,128.82A56.74,56.74,0,0,0,253.3,72.05Zm0,80.54a22.44,22.44,0,1,1,22.42-22.44A22.43,22.43,0,0,1,253.3,152.59Z'/%3e%3cpath%20class='cls-6'%20d='M246.7,72.05A56.74,56.74,0,0,0,190,128.82c0,52.81,56.7,96.38,56.7,96.38s56.7-43.57,56.7-96.38A56.74,56.74,0,0,0,246.7,72.05Zm0,80.54a22.44,22.44,0,1,1,22.42-22.44A22.43,22.43,0,0,1,246.7,152.59Z'/%3e%3c/svg%3e";
|
|
18590
18895
|
const __vite_glob_0_2 = "data:image/svg+xml,%3csvg%20id='图层_1'%20data-name='图层%201'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20500%20300'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23未命名的渐变_50);}.cls-2{fill:url(%23未命名的渐变_35);}.cls-3{fill:url(%23未命名的渐变_35-2);}.cls-4{fill:url(%23未命名的渐变_35-3);}.cls-5{fill:%23e2e4ed;}.cls-6{fill:url(%23未命名的渐变_31);}.cls-7{fill:%23c7cce0;}.cls-8{fill:url(%23未命名的渐变_38);}%3c/style%3e%3clinearGradient%20id='未命名的渐变_50'%20x1='250'%20y1='284.22'%20x2='250'%20y2='191.22'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff9ef'%20stop-opacity='0'/%3e%3cstop%20offset='0.17'%20stop-color='%23fef8ef'%20stop-opacity='0.02'/%3e%3cstop%20offset='0.32'%20stop-color='%23fbf5ee'%20stop-opacity='0.06'/%3e%3cstop%20offset='0.46'%20stop-color='%23f5f1ec'%20stop-opacity='0.14'/%3e%3cstop%20offset='0.6'%20stop-color='%23edebea'%20stop-opacity='0.26'/%3e%3cstop%20offset='0.74'%20stop-color='%23e3e2e7'%20stop-opacity='0.4'/%3e%3cstop%20offset='0.87'%20stop-color='%23d6d8e4'%20stop-opacity='0.58'/%3e%3cstop%20offset='0.99'%20stop-color='%23c8cde0'%20stop-opacity='0.79'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'%20stop-opacity='0.8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_35'%20x1='794.91'%20y1='-154.36'%20x2='850.69'%20y2='-210.14'%20gradientTransform='translate(-749.3%20307.47)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-2'%20x1='1073.51'%20y1='-349.52'%20x2='1129.29'%20y2='-405.3'%20gradientTransform='translate(-692.9%20561.63)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_35-3'%20x1='995.02'%20y1='-453.47'%20x2='1050.8'%20y2='-509.24'%20gradientTransform='translate(-596.41%20536.58)'%20xlink:href='%23未命名的渐变_50'/%3e%3clinearGradient%20id='未命名的渐变_31'%20x1='297.07'%20y1='109.67'%20x2='279.97'%20y2='80.05'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0'%20stop-color='%23fafafc'%20stop-opacity='0.92'/%3e%3cstop%20offset='0'%20stop-color='%23e2e4ed'%20stop-opacity='0.6'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='未命名的渐变_38'%20x1='209.22'%20y1='188.79'%20x2='209.22'%20y2='216.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.03'%20stop-color='%23f6f7fa'/%3e%3cstop%20offset='0.1'%20stop-color='%23ebecf2'/%3e%3cstop%20offset='0.2'%20stop-color='%23e4e6ee'/%3e%3cstop%20offset='0.48'%20stop-color='%23e2e4ed'/%3e%3cstop%20offset='0.7'%20stop-color='%23dadde9'/%3e%3cstop%20offset='1'%20stop-color='%23c7cce0'/%3e%3c/linearGradient%3e%3c/defs%3e%3ctitle%3e文章内容缺省页%3c/title%3e%3cellipse%20class='cls-1'%20cx='250'%20cy='237.72'%20rx='146'%20ry='46.5'/%3e%3crect%20class='cls-2'%20x='59.5'%20y='75.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(110.07%20-15.3)%20rotate(45)'/%3e%3crect%20class='cls-3'%20x='394.5'%20y='134.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(249.91%20-234.9)%20rotate(45)'/%3e%3crect%20class='cls-4'%20x='412.5'%20y='5.22'%20width='28'%20height='100'%20rx='14'%20ry='14'%20transform='translate(163.97%20-285.41)%20rotate(45)'/%3e%3cpath%20class='cls-5'%20d='M288.55,76.5h-104a8,8,0,0,0-8,8v124a8,8,0,0,0,8,8h84a8,8,0,0,0,8-8V89.5a13,13,0,0,1,12.5-13Z'/%3e%3cpath%20class='cls-6'%20d='M302.55,90.5a14,14,0,0,0-13.5-14,13,13,0,0,0-12.5,13v17h26Z'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='105'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='114.25'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='123.5'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='132.75'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='142'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='151.25'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='160.5'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3crect%20class='cls-7'%20x='196.55'%20y='169.75'%20width='60'%20height='3'%20rx='1.5'%20ry='1.5'/%3e%3cpath%20class='cls-8'%20d='M254.89,203.5V188.79H150.55V203.5a13,13,0,0,0,13,13H267.89A13,13,0,0,1,254.89,203.5Z'/%3e%3cpath%20class='cls-7'%20d='M303.43,201.6c-2.74-1.23-9.78,1.55-9.78,1.55s2.44,7,5.18,8.26l28.25,12.68,4.59-9.81Z'/%3e%3cpath%20class='cls-7'%20d='M339.36,223.65a5.35,5.35,0,0,0-2.69-7.14l-1.66-.75-4.59,9.81,1.66.75A5.56,5.56,0,0,0,339.36,223.65Z'/%3e%3c/svg%3e";
|
|
@@ -18639,7 +18944,9 @@ const emptyProps = {
|
|
|
18639
18944
|
default: "14px",
|
|
18640
18945
|
validator: (value) => {
|
|
18641
18946
|
if (typeof value !== "string" && typeof value !== "number") {
|
|
18642
|
-
console.warn(
|
|
18947
|
+
console.warn(
|
|
18948
|
+
"[LewEmpty] 无效的字体大小: fontSize 应该是一个字符串或数字"
|
|
18949
|
+
);
|
|
18643
18950
|
return false;
|
|
18644
18951
|
}
|
|
18645
18952
|
return true;
|
|
@@ -18659,11 +18966,13 @@ const emptyProps = {
|
|
|
18659
18966
|
description: "空状态组件的内边距,用于调整内容与边界的距离"
|
|
18660
18967
|
},
|
|
18661
18968
|
width: {
|
|
18662
|
-
type: String,
|
|
18969
|
+
type: [String, Number],
|
|
18663
18970
|
default: "200px",
|
|
18664
18971
|
validator: (value) => {
|
|
18665
|
-
if (typeof value !== "string") {
|
|
18666
|
-
console.warn(
|
|
18972
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
18973
|
+
console.warn(
|
|
18974
|
+
"[LewEmpty] 无效的宽度: width 应该是一个字符串或数字"
|
|
18975
|
+
);
|
|
18667
18976
|
return false;
|
|
18668
18977
|
}
|
|
18669
18978
|
return true;
|
|
@@ -18700,19 +19009,20 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
18700
19009
|
});
|
|
18701
19010
|
return (_ctx, _cache) => {
|
|
18702
19011
|
return openBlock(), createElementBlock("div", {
|
|
18703
|
-
class: "lew-empty",
|
|
19012
|
+
class: "lew-empty-container",
|
|
18704
19013
|
style: normalizeStyle(unref(emptyStyleObject))
|
|
18705
19014
|
}, [
|
|
18706
19015
|
createElementVNode("img", {
|
|
18707
19016
|
src: unref(src),
|
|
18708
19017
|
alt: "",
|
|
18709
|
-
srcset: ""
|
|
19018
|
+
srcset: "",
|
|
19019
|
+
class: "lew-empty-icon"
|
|
18710
19020
|
}, null, 8, _hoisted_1$8),
|
|
18711
19021
|
createElementVNode("div", {
|
|
18712
19022
|
style: normalizeStyle({
|
|
18713
19023
|
fontSize: unref(any2px)(_ctx.fontSize)
|
|
18714
19024
|
}),
|
|
18715
|
-
class: "title"
|
|
19025
|
+
class: "lew-empty-title"
|
|
18716
19026
|
}, toDisplayString(_ctx.title), 5)
|
|
18717
19027
|
], 4);
|
|
18718
19028
|
};
|
|
@@ -18801,7 +19111,7 @@ const uploadProps = {
|
|
|
18801
19111
|
}
|
|
18802
19112
|
};
|
|
18803
19113
|
const _hoisted_1$7 = ["multiple", "accept"];
|
|
18804
|
-
const _hoisted_2$
|
|
19114
|
+
const _hoisted_2$4 = ["src"];
|
|
18805
19115
|
const _hoisted_3$3 = { key: 1 };
|
|
18806
19116
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
18807
19117
|
__name: "LewUpload",
|
|
@@ -19192,7 +19502,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19192
19502
|
key: 1,
|
|
19193
19503
|
class: "lew-upload-file-icon",
|
|
19194
19504
|
src: unref(getFileIcon)(item.name)
|
|
19195
|
-
}, null, 8, _hoisted_2$
|
|
19505
|
+
}, null, 8, _hoisted_2$4))
|
|
19196
19506
|
]),
|
|
19197
19507
|
_: 2
|
|
19198
19508
|
}, 1032, ["style"]),
|
|
@@ -19376,8 +19686,12 @@ const collapseModel = {
|
|
|
19376
19686
|
description: "折叠面板的当前值,用于双向绑定。数组类型表示多选模式,字符串类型表示手风琴模式。",
|
|
19377
19687
|
validator(value) {
|
|
19378
19688
|
if (Array.isArray(value)) {
|
|
19379
|
-
if (!value.every(
|
|
19380
|
-
|
|
19689
|
+
if (!value.every(
|
|
19690
|
+
(item) => typeof item === "string" || typeof item === "number"
|
|
19691
|
+
)) {
|
|
19692
|
+
console.warn(
|
|
19693
|
+
"[LewCollapse] modelValue 数组中的元素必须是字符串或数字类型。"
|
|
19694
|
+
);
|
|
19381
19695
|
return false;
|
|
19382
19696
|
}
|
|
19383
19697
|
} else if (typeof value !== "string") {
|
|
@@ -19397,27 +19711,27 @@ const collapseItemModel = {
|
|
|
19397
19711
|
};
|
|
19398
19712
|
const collapseProps = {
|
|
19399
19713
|
width: {
|
|
19400
|
-
type: String,
|
|
19714
|
+
type: [String, Number],
|
|
19401
19715
|
default: "100%",
|
|
19402
19716
|
description: "折叠面板的宽度,支持 CSS 宽度值。",
|
|
19403
19717
|
validator(value) {
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19718
|
+
return isValidCssValue({
|
|
19719
|
+
name: "LewCollapseItem",
|
|
19720
|
+
field: "radius",
|
|
19721
|
+
value
|
|
19722
|
+
});
|
|
19409
19723
|
}
|
|
19410
19724
|
},
|
|
19411
19725
|
gap: {
|
|
19412
|
-
type: String,
|
|
19726
|
+
type: [String, Number],
|
|
19413
19727
|
default: "0px",
|
|
19414
19728
|
description: "折叠项之间的间距,支持 CSS 长度值。",
|
|
19415
19729
|
validator(value) {
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19730
|
+
return isValidCssValue({
|
|
19731
|
+
name: "LewCollapseItem",
|
|
19732
|
+
field: "radius",
|
|
19733
|
+
value
|
|
19734
|
+
});
|
|
19421
19735
|
}
|
|
19422
19736
|
}
|
|
19423
19737
|
};
|
|
@@ -19440,28 +19754,15 @@ const collapseItemProps = {
|
|
|
19440
19754
|
description: '折叠项的标题文本。也可以使用具名插槽 "title" 自定义标题内容。'
|
|
19441
19755
|
},
|
|
19442
19756
|
radius: {
|
|
19443
|
-
type: String,
|
|
19757
|
+
type: [String, Number],
|
|
19444
19758
|
default: "0px",
|
|
19445
19759
|
description: "折叠项的圆角大小,支持 CSS 圆角值。",
|
|
19446
19760
|
validator(value) {
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
}
|
|
19453
|
-
},
|
|
19454
|
-
padding: {
|
|
19455
|
-
type: String,
|
|
19456
|
-
default: "0px 0px 0px 20px",
|
|
19457
|
-
description: "折叠项内容的内边距,支持 CSS padding 值。",
|
|
19458
|
-
validator(value) {
|
|
19459
|
-
const parts = value.split(" ");
|
|
19460
|
-
if (parts.length > 4 || parts.some((part) => !/^\d+(%|px|em|rem)$/.test(part))) {
|
|
19461
|
-
console.warn("[LewCollapseItem] padding 属性必须是有效的 CSS padding 值。");
|
|
19462
|
-
return false;
|
|
19463
|
-
}
|
|
19464
|
-
return true;
|
|
19761
|
+
return isValidCssValue({
|
|
19762
|
+
name: "LewCollapseItem",
|
|
19763
|
+
field: "radius",
|
|
19764
|
+
value
|
|
19765
|
+
});
|
|
19465
19766
|
}
|
|
19466
19767
|
}
|
|
19467
19768
|
};
|
|
@@ -19531,7 +19832,9 @@ const _sfc_main$a = {
|
|
|
19531
19832
|
transition() {
|
|
19532
19833
|
let transitions = [];
|
|
19533
19834
|
Object.keys(this.cachedStyles).forEach((key) => {
|
|
19534
|
-
transitions.push(
|
|
19835
|
+
transitions.push(
|
|
19836
|
+
`${this.convertToCssProperty(key)} ${this.duration}ms ${this.easing}`
|
|
19837
|
+
);
|
|
19535
19838
|
});
|
|
19536
19839
|
return transitions.join(", ");
|
|
19537
19840
|
}
|
|
@@ -19666,7 +19969,10 @@ const _sfc_main$a = {
|
|
|
19666
19969
|
return style;
|
|
19667
19970
|
}
|
|
19668
19971
|
for (let i2 = 0, n2 = upperChars.length; i2 < n2; i2++) {
|
|
19669
|
-
style = style.replace(
|
|
19972
|
+
style = style.replace(
|
|
19973
|
+
new RegExp(upperChars[i2]),
|
|
19974
|
+
"-" + upperChars[i2].toLowerCase()
|
|
19975
|
+
);
|
|
19670
19976
|
}
|
|
19671
19977
|
if (style.slice(0, 1) === "-") {
|
|
19672
19978
|
style = style.slice(1);
|
|
@@ -19698,7 +20004,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19698
20004
|
}, 8, ["name", "onBeforeAppear", "onAppear", "onAfterAppear", "onAppearCancelled", "onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"]);
|
|
19699
20005
|
}
|
|
19700
20006
|
const LewCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render]]);
|
|
19701
|
-
const _hoisted_1$6 = { class: "lew-collapse-
|
|
20007
|
+
const _hoisted_1$6 = { class: "lew-collapse-item" };
|
|
20008
|
+
const _hoisted_2$3 = {
|
|
20009
|
+
key: 0,
|
|
20010
|
+
class: "lew-collapse-item-main"
|
|
20011
|
+
};
|
|
19702
20012
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
19703
20013
|
__name: "LewCollapseItem",
|
|
19704
20014
|
props: /* @__PURE__ */ mergeModels(collapseItemProps, {
|
|
@@ -19730,7 +20040,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
19730
20040
|
createVNode(_component_lew_flex, {
|
|
19731
20041
|
x: "start",
|
|
19732
20042
|
y: "center",
|
|
19733
|
-
class: normalizeClass(["lew-collapse-title", { "lew-collapse-title-active": modelValue.value }]),
|
|
20043
|
+
class: normalizeClass(["lew-collapse-item-title", { "lew-collapse-item-title-active": modelValue.value }]),
|
|
19734
20044
|
style: normalizeStyle({ borderRadius: unref(any2px)(_ctx.radius) }),
|
|
19735
20045
|
onClick: change
|
|
19736
20046
|
}, {
|
|
@@ -19757,13 +20067,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
19757
20067
|
}, 8, ["class", "style"]),
|
|
19758
20068
|
createVNode(LewCollapseTransition, null, {
|
|
19759
20069
|
default: withCtx(() => [
|
|
19760
|
-
modelValue.value ? (openBlock(), createElementBlock("div",
|
|
19761
|
-
key: 0,
|
|
19762
|
-
class: "lew-collapse-main",
|
|
19763
|
-
style: normalizeStyle({ padding: _ctx.padding })
|
|
19764
|
-
}, [
|
|
20070
|
+
modelValue.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
19765
20071
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
19766
|
-
]
|
|
20072
|
+
])) : createCommentVNode("", true)
|
|
19767
20073
|
]),
|
|
19768
20074
|
_: 3
|
|
19769
20075
|
})
|
|
@@ -19771,7 +20077,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
19771
20077
|
};
|
|
19772
20078
|
}
|
|
19773
20079
|
});
|
|
19774
|
-
const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
20080
|
+
const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-e5a8906c"]]);
|
|
19775
20081
|
const sliderProps = {};
|
|
19776
20082
|
const _hoisted_1$5 = { class: "lew-flex" };
|
|
19777
20083
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -19794,6 +20100,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
19794
20100
|
};
|
|
19795
20101
|
}
|
|
19796
20102
|
});
|
|
20103
|
+
const _imports_0 = "data:image/svg+xml,%3csvg%20t='1726823972943'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6153'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M692.712%20172.458h-43.443l-21.561%2037.727-120.367%20210.648%20170.073%20170.092-118.896%20222.89-20.127%2037.727H926.996V172.458H692.712z%20m-21.561%2037.727h218.118v312.869L758.998%20392.783l-129.346%2097.015-75.265-75.265%20116.764-204.348z%20m218.118%20603.63h-287.97l122.575-229.832-67.267-67.267%2098.863-74.133L889.269%20576.4v237.415z'%20fill='%23DBDBDB'%20p-id='6154'%3e%3c/path%3e%3cpath%20d='M441.206%20414.533L557.97%20210.185l21.561-37.727H97.004v679.083H467.991l20.127-37.727%20122.575-229.832-169.487-169.449zM134.731%20210.185h379.796L394.16%20420.833l170.073%20170.092-12.488%2023.409L282.47%20528.92%20134.731%20632.33V210.185z%20m310.624%20603.63H134.731V678.394l154.077-107.861%20244.866%2077.661-88.319%20165.621z'%20fill='%23DBDBDB'%20p-id='6155'%3e%3c/path%3e%3cpath%20d='M361.093%20370.524c0-36.463-29.559-66.022-66.022-66.022s-66.022%2029.559-66.022%2066.022%2029.559%2066.022%2066.022%2066.022%2066.022-29.559%2066.022-66.022z%20m-94.318%200c0-15.6%2012.695-28.295%2028.295-28.295%2015.6%200%2028.295%2012.695%2028.295%2028.295%200%2015.6-12.695%2028.295-28.295%2028.295-15.6%200-28.295-12.695-28.295-28.295z'%20fill='%23DBDBDB'%20p-id='6156'%3e%3c/path%3e%3c/svg%3e";
|
|
19797
20104
|
const imageProps = {
|
|
19798
20105
|
src: {
|
|
19799
20106
|
type: String,
|
|
@@ -19848,9 +20155,17 @@ const imageProps = {
|
|
|
19848
20155
|
default: "cover",
|
|
19849
20156
|
description: "图片适应容器方式",
|
|
19850
20157
|
validator: (value) => {
|
|
19851
|
-
const validValues = [
|
|
20158
|
+
const validValues = [
|
|
20159
|
+
"fill",
|
|
20160
|
+
"contain",
|
|
20161
|
+
"cover",
|
|
20162
|
+
"none",
|
|
20163
|
+
"scale-down"
|
|
20164
|
+
];
|
|
19852
20165
|
if (!validValues.includes(value)) {
|
|
19853
|
-
console.warn(
|
|
20166
|
+
console.warn(
|
|
20167
|
+
`[LewImage] objectFit 必须是以下值之一: ${validValues.join(", ")}`
|
|
20168
|
+
);
|
|
19854
20169
|
return false;
|
|
19855
20170
|
}
|
|
19856
20171
|
return true;
|
|
@@ -22906,12 +23221,18 @@ const _hoisted_1$3 = {
|
|
|
22906
23221
|
class: "skeletons"
|
|
22907
23222
|
};
|
|
22908
23223
|
const _hoisted_2$2 = {
|
|
23224
|
+
key: 1,
|
|
23225
|
+
class: "lew-image-fail-icon",
|
|
23226
|
+
src: _imports_0,
|
|
23227
|
+
alt: "图片加载失败"
|
|
23228
|
+
};
|
|
23229
|
+
const _hoisted_3$2 = {
|
|
22909
23230
|
key: 0,
|
|
22910
23231
|
class: "lew-image-box"
|
|
22911
23232
|
};
|
|
22912
|
-
const
|
|
22913
|
-
const
|
|
22914
|
-
const
|
|
23233
|
+
const _hoisted_4$1 = ["src", "lazy", "alt"];
|
|
23234
|
+
const _hoisted_5 = ["href", "data-fancybox"];
|
|
23235
|
+
const _hoisted_6 = ["src", "lazy", "alt"];
|
|
22915
23236
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
22916
23237
|
__name: "LewImage",
|
|
22917
23238
|
props: imageProps,
|
|
@@ -22925,10 +23246,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22925
23246
|
height: any2px(height)
|
|
22926
23247
|
};
|
|
22927
23248
|
});
|
|
22928
|
-
const getIconSize = computed(() => {
|
|
22929
|
-
const { width, height } = props;
|
|
22930
|
-
return Math.min(Number(width), Number(height)) * 0.45 + "px";
|
|
22931
|
-
});
|
|
22932
23249
|
onMounted(() => {
|
|
22933
23250
|
Oe.bind("[data-fancybox]", { Hash: false });
|
|
22934
23251
|
});
|
|
@@ -22941,15 +23258,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22941
23258
|
}, {
|
|
22942
23259
|
default: withCtx(() => [
|
|
22943
23260
|
unref(isLoading) || _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$3)) : unref(error2) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
22944
|
-
_ctx.$slots.error ? renderSlot(_ctx.$slots, "error", { key: 0 }, void 0, true) : (openBlock(),
|
|
22945
|
-
key: 1,
|
|
22946
|
-
"stroke-width": 1,
|
|
22947
|
-
class: "lew-image-icon",
|
|
22948
|
-
type: "image",
|
|
22949
|
-
size: Number(unref(getIconSize))
|
|
22950
|
-
}, null, 8, ["size"]))
|
|
23261
|
+
_ctx.$slots.error ? renderSlot(_ctx.$slots, "error", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("img", _hoisted_2$2))
|
|
22951
23262
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
22952
|
-
!_ctx.previewKey ? (openBlock(), createElementBlock("div",
|
|
23263
|
+
!_ctx.previewKey ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
22953
23264
|
createElementVNode("img", {
|
|
22954
23265
|
class: "lew-image",
|
|
22955
23266
|
src: _ctx.src,
|
|
@@ -22957,8 +23268,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22957
23268
|
style: normalizeStyle({
|
|
22958
23269
|
"object-fit": _ctx.objectFit,
|
|
22959
23270
|
"object-position": _ctx.objectPosition
|
|
22960
|
-
})
|
|
22961
|
-
|
|
23271
|
+
}),
|
|
23272
|
+
alt: _ctx.alt
|
|
23273
|
+
}, null, 12, _hoisted_4$1)
|
|
22962
23274
|
])) : (openBlock(), createElementBlock("a", {
|
|
22963
23275
|
key: 1,
|
|
22964
23276
|
href: _ctx.src,
|
|
@@ -22972,9 +23284,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22972
23284
|
style: normalizeStyle({
|
|
22973
23285
|
"object-fit": _ctx.objectFit,
|
|
22974
23286
|
"object-position": _ctx.objectPosition
|
|
22975
|
-
})
|
|
22976
|
-
|
|
22977
|
-
|
|
23287
|
+
}),
|
|
23288
|
+
alt: _ctx.alt
|
|
23289
|
+
}, null, 12, _hoisted_6)
|
|
23290
|
+
], 8, _hoisted_5))
|
|
22978
23291
|
], 64))
|
|
22979
23292
|
]),
|
|
22980
23293
|
_: 3
|
|
@@ -22982,7 +23295,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
22982
23295
|
};
|
|
22983
23296
|
}
|
|
22984
23297
|
});
|
|
22985
|
-
const LewImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
23298
|
+
const LewImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ed36d415"]]);
|
|
22986
23299
|
const expandProps = {
|
|
22987
23300
|
collapseHeight: {
|
|
22988
23301
|
type: [Number, String],
|
|
@@ -23010,7 +23323,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23010
23323
|
return openBlock(), createElementBlock("div", {
|
|
23011
23324
|
ref_key: "expandRef",
|
|
23012
23325
|
ref: expandRef,
|
|
23013
|
-
class: "expand-wrapper",
|
|
23326
|
+
class: "lew-expand-wrapper",
|
|
23014
23327
|
style: normalizeStyle({
|
|
23015
23328
|
height: unref(collapse) ? unref(any2px)(unref(collapseHeight)) : unref(any2px)(unref(expandHeight)),
|
|
23016
23329
|
paddingBottom: unref(collapse) ? "0px" : "40px"
|
|
@@ -23021,12 +23334,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23021
23334
|
key: 0,
|
|
23022
23335
|
onClick: _cache[0] || (_cache[0] = ($event) => isRef(collapse) ? collapse.value = !unref(collapse) : collapse = !unref(collapse)),
|
|
23023
23336
|
gap: "5",
|
|
23024
|
-
class: "expand-btn"
|
|
23337
|
+
class: "lew-expand-btn"
|
|
23025
23338
|
}, {
|
|
23026
23339
|
default: withCtx(() => [
|
|
23027
23340
|
createVNode(Icon, {
|
|
23028
23341
|
style: normalizeStyle({ transform: unref(collapse) ? "rotate(0deg)" : "rotate(180deg)" }),
|
|
23029
|
-
class: "expand-icon",
|
|
23342
|
+
class: "lew-expand-icon",
|
|
23030
23343
|
type: "chevron-down",
|
|
23031
23344
|
size: 14
|
|
23032
23345
|
}, null, 8, ["style"]),
|
|
@@ -23038,8 +23351,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
23038
23351
|
};
|
|
23039
23352
|
}
|
|
23040
23353
|
});
|
|
23041
|
-
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
23042
|
-
const _hoisted_1$2 = { class: "form-modal lew-scrollbar" };
|
|
23354
|
+
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-63615536"]]);
|
|
23355
|
+
const _hoisted_1$2 = { class: "lew-form-modal lew-scrollbar" };
|
|
23043
23356
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23044
23357
|
__name: "FormModal",
|
|
23045
23358
|
props: {
|
|
@@ -23128,7 +23441,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23128
23441
|
};
|
|
23129
23442
|
}
|
|
23130
23443
|
});
|
|
23131
|
-
const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
23444
|
+
const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f5688c6d"]]);
|
|
23132
23445
|
const inputTableModel = {
|
|
23133
23446
|
modelValue: {
|
|
23134
23447
|
type: Array,
|
|
@@ -23168,7 +23481,9 @@ const inputTableProps = {
|
|
|
23168
23481
|
description: "表格尺寸",
|
|
23169
23482
|
validator(value) {
|
|
23170
23483
|
if (!validSizes.includes(value)) {
|
|
23171
|
-
console.warn(
|
|
23484
|
+
console.warn(
|
|
23485
|
+
`[LewInputTable] size 必须是 ${validSizes.join("、")} 之一`
|
|
23486
|
+
);
|
|
23172
23487
|
return false;
|
|
23173
23488
|
}
|
|
23174
23489
|
return true;
|
|
@@ -23591,7 +23906,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23591
23906
|
};
|
|
23592
23907
|
}
|
|
23593
23908
|
});
|
|
23594
|
-
const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
23909
|
+
const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d88fab11"]]);
|
|
23595
23910
|
const inputTreeProps = {
|
|
23596
23911
|
type: {
|
|
23597
23912
|
type: String,
|
|
@@ -23646,7 +23961,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23646
23961
|
LewDateRange,
|
|
23647
23962
|
LewDateRangePicker,
|
|
23648
23963
|
LewDrawer: _sfc_main$i,
|
|
23649
|
-
LewDropdown: _sfc_main$
|
|
23964
|
+
LewDropdown: _sfc_main$R,
|
|
23650
23965
|
LewEmpty: _sfc_main$d,
|
|
23651
23966
|
LewExpand,
|
|
23652
23967
|
LewFlex,
|
|
@@ -23672,7 +23987,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23672
23987
|
LewSelectMultiple,
|
|
23673
23988
|
LewSlider: _sfc_main$8,
|
|
23674
23989
|
LewSliderRange: _sfc_main$7,
|
|
23675
|
-
LewSteps: _sfc_main$
|
|
23990
|
+
LewSteps: _sfc_main$Q,
|
|
23676
23991
|
LewSwitch,
|
|
23677
23992
|
LewTable: _sfc_main$v,
|
|
23678
23993
|
LewTabs,
|
|
@@ -23771,12 +24086,12 @@ const createMessageList$1 = () => {
|
|
|
23771
24086
|
const showMessage = ({ type, e: e2 }) => {
|
|
23772
24087
|
const { id, content, duration } = e2;
|
|
23773
24088
|
const messageContainer = document.getElementById("lew-message");
|
|
23774
|
-
const hasMessageById = id ? document.getElementById(`message-id-${id}`) : false;
|
|
24089
|
+
const hasMessageById = id ? document.getElementById(`lew-message-id-${id}`) : false;
|
|
23775
24090
|
const messageElement = hasMessageById || document.createElement("div");
|
|
23776
|
-
messageElement.innerHTML = `${getIconInnerHTML({ type, strokeWidth: type === "loading" ? 2.5 : void 0, spinning: type === "loading" })}<div class="content">${content || e2}</div>`;
|
|
24091
|
+
messageElement.innerHTML = `${getIconInnerHTML({ type, strokeWidth: type === "loading" ? 2.5 : void 0, spinning: type === "loading" })}<div class="lew-message-content">${content || e2}</div>`;
|
|
23777
24092
|
if (!hasMessageById) {
|
|
23778
24093
|
if (id) {
|
|
23779
|
-
messageElement.setAttribute("id", `message-id-${id}`);
|
|
24094
|
+
messageElement.setAttribute("id", `lew-message-id-${id}`);
|
|
23780
24095
|
}
|
|
23781
24096
|
messageContainer == null ? void 0 : messageContainer.appendChild(
|
|
23782
24097
|
messageElement,
|
|
@@ -23787,19 +24102,19 @@ const showMessage = ({ type, e: e2 }) => {
|
|
|
23787
24102
|
}
|
|
23788
24103
|
messageElement.setAttribute(
|
|
23789
24104
|
"class",
|
|
23790
|
-
`message message-${type} message-id-${id}`
|
|
24105
|
+
`lew-message lew-message-${type} lew-message-id-${id}`
|
|
23791
24106
|
);
|
|
23792
24107
|
setTimeout(() => {
|
|
23793
24108
|
nextTick(() => {
|
|
23794
24109
|
messageElement.setAttribute(
|
|
23795
24110
|
"class",
|
|
23796
|
-
`message message-${type} message-show`
|
|
24111
|
+
`lew-message lew-message-${type} lew-message-show`
|
|
23797
24112
|
);
|
|
23798
24113
|
LewMessage$1.timer[id] = setTimeout(
|
|
23799
24114
|
() => {
|
|
23800
24115
|
messageElement.setAttribute(
|
|
23801
24116
|
"class",
|
|
23802
|
-
`message message-${type} message-hidden`
|
|
24117
|
+
`lew-message lew-message-${type} lew-message-hidden`
|
|
23803
24118
|
);
|
|
23804
24119
|
setTimeout(() => {
|
|
23805
24120
|
if (messageElement) messageContainer == null ? void 0 : messageContainer.removeChild(messageElement);
|
|
@@ -23827,10 +24142,10 @@ const LewMessage$1 = {
|
|
|
23827
24142
|
}
|
|
23828
24143
|
},
|
|
23829
24144
|
close: ({ id }) => {
|
|
23830
|
-
const messageElement = document.getElementById(`message-id-${id}`);
|
|
24145
|
+
const messageElement = document.getElementById(`lew-message-id-${id}`);
|
|
23831
24146
|
if (messageElement) {
|
|
23832
|
-
removeClass(messageElement, "message-show");
|
|
23833
|
-
addClass(messageElement, "message-hidden");
|
|
24147
|
+
removeClass(messageElement, "lew-message-show");
|
|
24148
|
+
addClass(messageElement, "lew-message-hidden");
|
|
23834
24149
|
setTimeout(() => {
|
|
23835
24150
|
clearTimeout(LewMessage$1.timer[id]);
|
|
23836
24151
|
messageElement.remove();
|
|
@@ -23840,7 +24155,7 @@ const LewMessage$1 = {
|
|
|
23840
24155
|
request: async ({ loadingMessage }, asyncFn) => {
|
|
23841
24156
|
try {
|
|
23842
24157
|
LewMessage$1.loading({
|
|
23843
|
-
id: "request-loading",
|
|
24158
|
+
id: "lew-request-loading",
|
|
23844
24159
|
content: loadingMessage,
|
|
23845
24160
|
duration: 0
|
|
23846
24161
|
});
|
|
@@ -23858,7 +24173,7 @@ const LewMessage$1 = {
|
|
|
23858
24173
|
(resolve) => setTimeout(resolve, delay - (endTime - startTime))
|
|
23859
24174
|
);
|
|
23860
24175
|
}
|
|
23861
|
-
LewMessage$1.close({ id: "request-loading" });
|
|
24176
|
+
LewMessage$1.close({ id: "lew-request-loading" });
|
|
23862
24177
|
LewMessage$1[type]({
|
|
23863
24178
|
content,
|
|
23864
24179
|
duration
|
|
@@ -23869,9 +24184,9 @@ const LewMessage$1 = {
|
|
|
23869
24184
|
content = "加载失败!",
|
|
23870
24185
|
duration = 3e3
|
|
23871
24186
|
}) => {
|
|
23872
|
-
LewMessage$1.close({ id: "request-loading" });
|
|
24187
|
+
LewMessage$1.close({ id: "lew-request-loading" });
|
|
23873
24188
|
LewMessage$1.error({
|
|
23874
|
-
id: "request-fail",
|
|
24189
|
+
id: "lew-request-fail",
|
|
23875
24190
|
content,
|
|
23876
24191
|
duration
|
|
23877
24192
|
});
|
|
@@ -23879,7 +24194,7 @@ const LewMessage$1 = {
|
|
|
23879
24194
|
);
|
|
23880
24195
|
} catch (error2) {
|
|
23881
24196
|
LewMessage$1.error({
|
|
23882
|
-
id: "request-loading",
|
|
24197
|
+
id: "lew-request-loading",
|
|
23883
24198
|
content: "An error occurred",
|
|
23884
24199
|
duration: 3e3,
|
|
23885
24200
|
onClose: () => {
|
|
@@ -23901,9 +24216,17 @@ const dialogProps = {
|
|
|
23901
24216
|
default: "error",
|
|
23902
24217
|
description: "对话框类型",
|
|
23903
24218
|
validator: (value) => {
|
|
23904
|
-
const validTypes = [
|
|
24219
|
+
const validTypes = [
|
|
24220
|
+
"primary",
|
|
24221
|
+
"success",
|
|
24222
|
+
"warning",
|
|
24223
|
+
"error",
|
|
24224
|
+
"info"
|
|
24225
|
+
];
|
|
23905
24226
|
if (!validTypes.includes(value)) {
|
|
23906
|
-
console.warn(
|
|
24227
|
+
console.warn(
|
|
24228
|
+
`[LewDialog] 无效的类型: ${value}。请使用 ${validTypes.join(", ")} 中的一个。`
|
|
24229
|
+
);
|
|
23907
24230
|
return false;
|
|
23908
24231
|
}
|
|
23909
24232
|
return true;
|
|
@@ -24148,7 +24471,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24148
24471
|
};
|
|
24149
24472
|
}
|
|
24150
24473
|
});
|
|
24151
|
-
const _LewDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
24474
|
+
const _LewDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-32b2fb4b"]]);
|
|
24152
24475
|
const { x, y } = useMouse();
|
|
24153
24476
|
const createDialog = (type) => (options) => dialog(type, options);
|
|
24154
24477
|
const dialogTypes = {
|
|
@@ -24442,7 +24765,10 @@ const initLewContextMenu = () => {
|
|
|
24442
24765
|
}),
|
|
24443
24766
|
menuInstance: {}
|
|
24444
24767
|
};
|
|
24445
|
-
window.LewContextMenu.instance.popper.children[0].setAttribute(
|
|
24768
|
+
window.LewContextMenu.instance.popper.children[0].setAttribute(
|
|
24769
|
+
"data-lew",
|
|
24770
|
+
"popover"
|
|
24771
|
+
);
|
|
24446
24772
|
};
|
|
24447
24773
|
const findContextMenuId = (el) => {
|
|
24448
24774
|
try {
|
|
@@ -24475,10 +24801,12 @@ const LewVContextMenu = {
|
|
|
24475
24801
|
const { instance } = window.LewContextMenu;
|
|
24476
24802
|
instance.hide();
|
|
24477
24803
|
const menuDom = document.createElement("div");
|
|
24478
|
-
Object.keys(window.LewContextMenu.menuInstance).forEach(
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24804
|
+
Object.keys(window.LewContextMenu.menuInstance).forEach(
|
|
24805
|
+
(key) => {
|
|
24806
|
+
window.LewContextMenu.menuInstance[key].destroy();
|
|
24807
|
+
delete window.LewContextMenu.menuInstance[key];
|
|
24808
|
+
}
|
|
24809
|
+
);
|
|
24482
24810
|
createApp({
|
|
24483
24811
|
render() {
|
|
24484
24812
|
return h$1(LewContextMenu, {
|
|
@@ -24495,20 +24823,25 @@ const LewVContextMenu = {
|
|
|
24495
24823
|
});
|
|
24496
24824
|
}
|
|
24497
24825
|
}).mount(menuDom);
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
|
|
24507
|
-
|
|
24508
|
-
|
|
24509
|
-
|
|
24826
|
+
setTimeout(() => {
|
|
24827
|
+
instance.setProps({
|
|
24828
|
+
content: menuDom,
|
|
24829
|
+
getReferenceClientRect: () => ({
|
|
24830
|
+
width: 0,
|
|
24831
|
+
height: 0,
|
|
24832
|
+
top: e2.clientY,
|
|
24833
|
+
bottom: e2.clientY,
|
|
24834
|
+
left: e2.clientX,
|
|
24835
|
+
right: e2.clientX
|
|
24836
|
+
})
|
|
24837
|
+
});
|
|
24838
|
+
instance.show();
|
|
24839
|
+
}, 120);
|
|
24510
24840
|
};
|
|
24511
|
-
window.addEventListener(
|
|
24841
|
+
window.addEventListener(
|
|
24842
|
+
"contextmenu",
|
|
24843
|
+
window.LewContextMenu.contextMenu
|
|
24844
|
+
);
|
|
24512
24845
|
}
|
|
24513
24846
|
},
|
|
24514
24847
|
updated(el, binding) {
|
|
@@ -24643,7 +24976,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24643
24976
|
};
|
|
24644
24977
|
}
|
|
24645
24978
|
});
|
|
24646
|
-
const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
24979
|
+
const LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e1377a5c"]]);
|
|
24647
24980
|
const directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24648
24981
|
__proto__: null,
|
|
24649
24982
|
LewBacktop: index$1,
|
|
@@ -24703,7 +25036,7 @@ export {
|
|
|
24703
25036
|
LewDateRangePicker,
|
|
24704
25037
|
LewDialog$1 as LewDialog,
|
|
24705
25038
|
_sfc_main$i as LewDrawer,
|
|
24706
|
-
_sfc_main$
|
|
25039
|
+
_sfc_main$R as LewDropdown,
|
|
24707
25040
|
_sfc_main$d as LewEmpty,
|
|
24708
25041
|
LewExpand,
|
|
24709
25042
|
LewFlex,
|
|
@@ -24732,7 +25065,7 @@ export {
|
|
|
24732
25065
|
LewSelectMultiple,
|
|
24733
25066
|
_sfc_main$8 as LewSlider,
|
|
24734
25067
|
_sfc_main$7 as LewSliderRange,
|
|
24735
|
-
_sfc_main$
|
|
25068
|
+
_sfc_main$Q as LewSteps,
|
|
24736
25069
|
LewSwitch,
|
|
24737
25070
|
_sfc_main$v as LewTable,
|
|
24738
25071
|
LewTabs,
|
|
@@ -24798,6 +25131,7 @@ export {
|
|
|
24798
25131
|
inputTagModel,
|
|
24799
25132
|
inputTagProps,
|
|
24800
25133
|
inputTreeProps,
|
|
25134
|
+
isValidCssValue,
|
|
24801
25135
|
lewSetForm,
|
|
24802
25136
|
magicNumberProps,
|
|
24803
25137
|
markProps,
|