lew-ui 2.5.7 → 2.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +0 -13
- package/dist/components/collapse/src/props.d.ts +0 -6
- package/dist/components/empty/src/LewEmpty.vue.d.ts +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +5 -5
- package/dist/components/select/src/LewSelect.vue.d.ts +3 -3
- package/dist/components/select/src/props.d.ts +8 -1
- package/dist/components/select/src/util.d.ts +8 -0
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +2 -8
- package/dist/components/select-multiple/src/props.d.ts +8 -4
- package/dist/index.mjs +394 -365
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/magic-number/index.d.ts +0 -2
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +0 -38
- package/dist/components/magic-number/src/props.d.ts +0 -20
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentScope, onScopeDispose, unref, watch, ref, readonly, isRef, computed, reactive, shallowRef, getCurrentInstance, onMounted, h, defineComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, createApp, resolveDirective, withCtx, createElementBlock, Fragment, renderSlot, withDirectives, createElementVNode, createCommentVNode, createVNode, createTextVNode,
|
|
1
|
+
import { getCurrentScope, onScopeDispose, unref, watch, ref, readonly, isRef, computed, reactive, shallowRef, getCurrentInstance, onMounted, h, defineComponent, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, createApp, resolveDirective, withCtx, createElementBlock, Fragment, renderSlot, withDirectives, createElementVNode, toDisplayString, createCommentVNode, createVNode, createTextVNode, withModifiers, onUnmounted, Transition, mergeModels, useModel, renderList, inject, resolveComponent, provide, mergeProps, nextTick, vModelDynamic, vShow, vModelText, watchEffect, TransitionGroup, toRaw, toRef as toRef$1, customRef, toRefs, createSlots, vModelCheckbox, onActivated, normalizeProps, guardReactiveProps, Teleport } from "vue";
|
|
2
2
|
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";
|
|
3
3
|
function tryOnScopeDispose$1(fn2) {
|
|
4
4
|
if (getCurrentScope()) {
|
|
@@ -3062,6 +3062,16 @@ const TriangleAlert = createLucideIcon("TriangleAlertIcon", [
|
|
|
3062
3062
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3063
3063
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3064
3064
|
]);
|
|
3065
|
+
/**
|
|
3066
|
+
* @license lucide-vue-next v0.441.0 - ISC
|
|
3067
|
+
*
|
|
3068
|
+
* This source code is licensed under the ISC license.
|
|
3069
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3070
|
+
*/
|
|
3071
|
+
const UserRound = createLucideIcon("UserRoundIcon", [
|
|
3072
|
+
["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
|
|
3073
|
+
["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
|
|
3074
|
+
]);
|
|
3065
3075
|
/**
|
|
3066
3076
|
* @license lucide-vue-next v0.441.0 - ISC
|
|
3067
3077
|
*
|
|
@@ -3072,7 +3082,7 @@ const X = createLucideIcon("XIcon", [
|
|
|
3072
3082
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3073
3083
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3074
3084
|
]);
|
|
3075
|
-
const _sfc_main$
|
|
3085
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
3076
3086
|
__name: "Icon",
|
|
3077
3087
|
props: {
|
|
3078
3088
|
type: {
|
|
@@ -3141,7 +3151,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
3141
3151
|
uploading: Loader,
|
|
3142
3152
|
warning: TriangleAlert,
|
|
3143
3153
|
wrong_size: CircleAlert,
|
|
3144
|
-
wrong_type: CircleAlert
|
|
3154
|
+
wrong_type: CircleAlert,
|
|
3155
|
+
user: UserRound
|
|
3145
3156
|
};
|
|
3146
3157
|
return (_ctx, _cache) => {
|
|
3147
3158
|
return openBlock(), createBlock(resolveDynamicComponent(iconMap[props2.type]), {
|
|
@@ -3165,7 +3176,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
3165
3176
|
}
|
|
3166
3177
|
return target;
|
|
3167
3178
|
};
|
|
3168
|
-
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3179
|
+
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-02391cc4"]]);
|
|
3169
3180
|
const iconColorType = {
|
|
3170
3181
|
normal: "gray",
|
|
3171
3182
|
warning: "orange",
|
|
@@ -3595,7 +3606,7 @@ const imageProps = {
|
|
|
3595
3606
|
}
|
|
3596
3607
|
}
|
|
3597
3608
|
};
|
|
3598
|
-
const _hoisted_1$
|
|
3609
|
+
const _hoisted_1$J = {
|
|
3599
3610
|
key: 0,
|
|
3600
3611
|
class: "skeletons"
|
|
3601
3612
|
};
|
|
@@ -3610,7 +3621,7 @@ const _hoisted_3$l = {
|
|
|
3610
3621
|
class: "lew-image-box"
|
|
3611
3622
|
};
|
|
3612
3623
|
const _hoisted_4$f = ["src", "lazy", "alt"];
|
|
3613
|
-
const _sfc_main$
|
|
3624
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
3614
3625
|
__name: "LewImage",
|
|
3615
3626
|
props: imageProps,
|
|
3616
3627
|
setup(__props2) {
|
|
@@ -3655,7 +3666,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3655
3666
|
style: normalizeStyle(unref(imageStyleObject))
|
|
3656
3667
|
}, {
|
|
3657
3668
|
default: withCtx(() => [
|
|
3658
|
-
unref(_loading) || _ctx.loading || !_ctx.src ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3669
|
+
unref(_loading) || _ctx.loading || !_ctx.src ? (openBlock(), createElementBlock("div", _hoisted_1$J)) : unref(_error) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3659
3670
|
_ctx.$slots.error ? renderSlot(_ctx.$slots, "error", { key: 0 }, void 0, true) : withDirectives((openBlock(), createElementBlock("img", _hoisted_2$s, null, 512)), [
|
|
3660
3671
|
[_directive_tooltip, {
|
|
3661
3672
|
content: "图片加载失败",
|
|
@@ -3680,7 +3691,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
3680
3691
|
};
|
|
3681
3692
|
}
|
|
3682
3693
|
});
|
|
3683
|
-
const LewImage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3694
|
+
const LewImage = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-f3df0b9d"]]);
|
|
3684
3695
|
const avatarProps = {
|
|
3685
3696
|
size: {
|
|
3686
3697
|
type: [Number, String],
|
|
@@ -3806,13 +3817,12 @@ const avatarProps = {
|
|
|
3806
3817
|
}
|
|
3807
3818
|
}
|
|
3808
3819
|
};
|
|
3809
|
-
const _hoisted_1$
|
|
3820
|
+
const _hoisted_1$I = {
|
|
3810
3821
|
key: 0,
|
|
3811
3822
|
class: "skeletons"
|
|
3812
3823
|
};
|
|
3813
3824
|
const _hoisted_2$r = ["src", "alt"];
|
|
3814
|
-
const
|
|
3815
|
-
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
3825
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
3816
3826
|
__name: "LewAvatar",
|
|
3817
3827
|
props: avatarProps,
|
|
3818
3828
|
setup(__props2) {
|
|
@@ -3820,7 +3830,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3820
3830
|
const avatarBoxStyleObject = computed(() => {
|
|
3821
3831
|
const { shape } = props2;
|
|
3822
3832
|
return {
|
|
3823
|
-
borderRadius: shape === "circle" ? "50%" : "
|
|
3833
|
+
borderRadius: shape === "circle" ? "50%" : "var(--lew-border-radius-small)"
|
|
3824
3834
|
};
|
|
3825
3835
|
});
|
|
3826
3836
|
const avatarStyleObject = computed(() => {
|
|
@@ -3835,7 +3845,47 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3835
3845
|
objectPosition: props2.objectPosition
|
|
3836
3846
|
};
|
|
3837
3847
|
});
|
|
3838
|
-
const
|
|
3848
|
+
const textStyleObject = computed(() => {
|
|
3849
|
+
const size = typeof props2.size === "number" ? props2.size : parseInt(props2.size);
|
|
3850
|
+
return {
|
|
3851
|
+
fontSize: `${size * 0.45}px`,
|
|
3852
|
+
lineHeight: `${size}px`,
|
|
3853
|
+
textAlign: "center",
|
|
3854
|
+
color: "var(--lew-color-text-2)",
|
|
3855
|
+
userSelect: "none"
|
|
3856
|
+
};
|
|
3857
|
+
});
|
|
3858
|
+
const altText = computed(() => {
|
|
3859
|
+
if (!props2.alt) return "";
|
|
3860
|
+
return props2.alt.split(" ").map((word) => word.charAt(0)).join("").toUpperCase();
|
|
3861
|
+
});
|
|
3862
|
+
const STATUS_PLACEMENT_CONFIG_CIRCLE = {
|
|
3863
|
+
"top-left": {
|
|
3864
|
+
top: "-0.05rem",
|
|
3865
|
+
left: "-0.05rem",
|
|
3866
|
+
bottom: "auto",
|
|
3867
|
+
right: "auto"
|
|
3868
|
+
},
|
|
3869
|
+
"top-right": {
|
|
3870
|
+
top: "-0.05rem",
|
|
3871
|
+
left: "auto",
|
|
3872
|
+
bottom: "auto",
|
|
3873
|
+
right: "-0.05rem"
|
|
3874
|
+
},
|
|
3875
|
+
"bottom-left": {
|
|
3876
|
+
top: "auto",
|
|
3877
|
+
left: "-0.05rem",
|
|
3878
|
+
bottom: "-0.05rem",
|
|
3879
|
+
right: "auto"
|
|
3880
|
+
},
|
|
3881
|
+
"bottom-right": {
|
|
3882
|
+
top: "auto",
|
|
3883
|
+
left: "auto",
|
|
3884
|
+
bottom: "-0.05rem",
|
|
3885
|
+
right: "-0.05rem"
|
|
3886
|
+
}
|
|
3887
|
+
};
|
|
3888
|
+
const STATUS_PLACEMENT_CONFIG_SQUARE = {
|
|
3839
3889
|
"top-left": {
|
|
3840
3890
|
top: "-0.25rem",
|
|
3841
3891
|
left: "-0.25rem",
|
|
@@ -3870,6 +3920,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3870
3920
|
};
|
|
3871
3921
|
const dotStyleObject = computed(() => {
|
|
3872
3922
|
const { status, statusPlacement } = props2;
|
|
3923
|
+
const STATUS_PLACEMENT_CONFIG = props2.shape === "circle" ? STATUS_PLACEMENT_CONFIG_CIRCLE : STATUS_PLACEMENT_CONFIG_SQUARE;
|
|
3873
3924
|
return {
|
|
3874
3925
|
...STATUS_PLACEMENT_CONFIG[statusPlacement] || {},
|
|
3875
3926
|
backgroundColor: status ? STATUS_COLOR_CONFIG[status] : "",
|
|
@@ -3891,6 +3942,10 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3891
3942
|
_loading = isLoading;
|
|
3892
3943
|
_error = error2;
|
|
3893
3944
|
};
|
|
3945
|
+
const getIconSize = computed(() => {
|
|
3946
|
+
const { size } = props2;
|
|
3947
|
+
return typeof size === "number" ? size * 0.5 : parseInt(size) * 0.5;
|
|
3948
|
+
});
|
|
3894
3949
|
init();
|
|
3895
3950
|
watch(
|
|
3896
3951
|
() => props2.src,
|
|
@@ -3911,19 +3966,23 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3911
3966
|
class: "lew-avatar-box",
|
|
3912
3967
|
style: normalizeStyle(unref(avatarBoxStyleObject))
|
|
3913
3968
|
}, [
|
|
3914
|
-
|
|
3915
|
-
key:
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3969
|
+
_ctx.alt && (!_ctx.src || unref(_error)) ? (openBlock(), createElementBlock("div", {
|
|
3970
|
+
key: 0,
|
|
3971
|
+
class: "lew-avatar-text",
|
|
3972
|
+
style: normalizeStyle(unref(textStyleObject))
|
|
3973
|
+
}, toDisplayString(unref(altText)), 5)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3974
|
+
unref(_loading) || _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$I)) : unref(_error) || !_ctx.src ? (openBlock(), createBlock(Icon, {
|
|
3975
|
+
key: 1,
|
|
3976
|
+
size: unref(getIconSize),
|
|
3977
|
+
type: "user"
|
|
3978
|
+
}, null, 8, ["size"])) : _ctx.src ? (openBlock(), createElementBlock("img", {
|
|
3979
|
+
key: 2,
|
|
3980
|
+
src: _ctx.src,
|
|
3981
|
+
alt: _ctx.alt,
|
|
3982
|
+
lazy: "",
|
|
3983
|
+
style: normalizeStyle(unref(imageStyleObject))
|
|
3984
|
+
}, null, 12, _hoisted_2$r)) : createCommentVNode("", true)
|
|
3985
|
+
], 64))
|
|
3927
3986
|
], 4),
|
|
3928
3987
|
_ctx.status ? (openBlock(), createElementBlock("i", {
|
|
3929
3988
|
key: 0,
|
|
@@ -3933,7 +3992,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
3933
3992
|
};
|
|
3934
3993
|
}
|
|
3935
3994
|
});
|
|
3936
|
-
const LewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
3995
|
+
const LewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-a90515c4"]]);
|
|
3937
3996
|
const validColors = [
|
|
3938
3997
|
"blue",
|
|
3939
3998
|
"gray",
|
|
@@ -4055,13 +4114,13 @@ const buttonProps = {
|
|
|
4055
4114
|
description: "点击按钮时触发的异步请求函数"
|
|
4056
4115
|
}
|
|
4057
4116
|
};
|
|
4058
|
-
const _hoisted_1$
|
|
4117
|
+
const _hoisted_1$H = ["disabled"];
|
|
4059
4118
|
const _hoisted_2$q = {
|
|
4060
4119
|
key: 0,
|
|
4061
4120
|
class: "lew-button-content"
|
|
4062
4121
|
};
|
|
4063
4122
|
const _hoisted_3$k = { class: "lew-button-text" };
|
|
4064
|
-
const _sfc_main
|
|
4123
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
4065
4124
|
__name: "LewButton",
|
|
4066
4125
|
props: buttonProps,
|
|
4067
4126
|
emits: ["click"],
|
|
@@ -4179,11 +4238,11 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
4179
4238
|
], 64))
|
|
4180
4239
|
])
|
|
4181
4240
|
])) : createCommentVNode("", true)
|
|
4182
|
-
], 14, _hoisted_1$
|
|
4241
|
+
], 14, _hoisted_1$H);
|
|
4183
4242
|
};
|
|
4184
4243
|
}
|
|
4185
4244
|
});
|
|
4186
|
-
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
4245
|
+
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-45a88edc"]]);
|
|
4187
4246
|
const tagProps = {
|
|
4188
4247
|
text: {
|
|
4189
4248
|
type: String,
|
|
@@ -4249,11 +4308,11 @@ const tagProps = {
|
|
|
4249
4308
|
description: "是否禁用标签"
|
|
4250
4309
|
}
|
|
4251
4310
|
};
|
|
4252
|
-
const _hoisted_1$
|
|
4311
|
+
const _hoisted_1$G = {
|
|
4253
4312
|
key: 1,
|
|
4254
4313
|
class: "lew-tag-right"
|
|
4255
4314
|
};
|
|
4256
|
-
const _sfc_main$
|
|
4315
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
4257
4316
|
__name: "LewTag",
|
|
4258
4317
|
props: tagProps,
|
|
4259
4318
|
emits: ["close"],
|
|
@@ -4306,7 +4365,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4306
4365
|
}),
|
|
4307
4366
|
ghost: (color) => ({
|
|
4308
4367
|
backgroundColor: "transparent",
|
|
4309
|
-
border: `
|
|
4368
|
+
border: `var(--lew-form-border-width) solid var(--lew-color-${color}-dark)`,
|
|
4310
4369
|
color: `var(--lew-color-${color}-dark)`,
|
|
4311
4370
|
boxShadow: "none"
|
|
4312
4371
|
}),
|
|
@@ -4357,7 +4416,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
4357
4416
|
_: 3
|
|
4358
4417
|
}))
|
|
4359
4418
|
], 4),
|
|
4360
|
-
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4419
|
+
_ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
4361
4420
|
renderSlot(_ctx.$slots, "right")
|
|
4362
4421
|
])) : createCommentVNode("", true),
|
|
4363
4422
|
_ctx.closable ? (openBlock(), createElementBlock("div", {
|
|
@@ -4403,8 +4462,8 @@ const badgeProps = {
|
|
|
4403
4462
|
}
|
|
4404
4463
|
}
|
|
4405
4464
|
};
|
|
4406
|
-
const _hoisted_1$
|
|
4407
|
-
const _sfc_main$
|
|
4465
|
+
const _hoisted_1$F = { class: "lew-badge" };
|
|
4466
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4408
4467
|
__name: "LewBadge",
|
|
4409
4468
|
props: badgeProps,
|
|
4410
4469
|
setup(__props2) {
|
|
@@ -4417,7 +4476,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
4417
4476
|
return styleObj;
|
|
4418
4477
|
});
|
|
4419
4478
|
return (_ctx, _cache) => {
|
|
4420
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4479
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
4421
4480
|
_ctx.value ? (openBlock(), createElementBlock("div", {
|
|
4422
4481
|
key: 0,
|
|
4423
4482
|
class: "lew-badge-value",
|
|
@@ -4490,7 +4549,7 @@ const titleProps = {
|
|
|
4490
4549
|
}
|
|
4491
4550
|
}
|
|
4492
4551
|
};
|
|
4493
|
-
const _sfc_main$
|
|
4552
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4494
4553
|
__name: "LewTitle",
|
|
4495
4554
|
props: titleProps,
|
|
4496
4555
|
setup(__props2) {
|
|
@@ -4515,7 +4574,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4515
4574
|
};
|
|
4516
4575
|
}
|
|
4517
4576
|
});
|
|
4518
|
-
const LewTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4577
|
+
const LewTitle = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-26b626e6"]]);
|
|
4519
4578
|
var top = "top";
|
|
4520
4579
|
var bottom = "bottom";
|
|
4521
4580
|
var right = "right";
|
|
@@ -7226,7 +7285,7 @@ const textTrimProps = {
|
|
|
7226
7285
|
}
|
|
7227
7286
|
}
|
|
7228
7287
|
};
|
|
7229
|
-
const _sfc_main$
|
|
7288
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
7230
7289
|
__name: "LewTextTrim",
|
|
7231
7290
|
props: textTrimProps,
|
|
7232
7291
|
setup(__props2) {
|
|
@@ -7334,7 +7393,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
7334
7393
|
};
|
|
7335
7394
|
}
|
|
7336
7395
|
});
|
|
7337
|
-
const LewTextTrim = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7396
|
+
const LewTextTrim = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-a0fff1fa"]]);
|
|
7338
7397
|
const flexProps = {
|
|
7339
7398
|
direction: {
|
|
7340
7399
|
type: String,
|
|
@@ -7427,7 +7486,7 @@ const flexProps = {
|
|
|
7427
7486
|
}
|
|
7428
7487
|
}
|
|
7429
7488
|
};
|
|
7430
|
-
const _sfc_main$
|
|
7489
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
7431
7490
|
__name: "LewFlex",
|
|
7432
7491
|
props: flexProps,
|
|
7433
7492
|
setup(__props2) {
|
|
@@ -7472,7 +7531,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
7472
7531
|
};
|
|
7473
7532
|
}
|
|
7474
7533
|
});
|
|
7475
|
-
const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7534
|
+
const LewFlex = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-e8c800cb"]]);
|
|
7476
7535
|
const markProps = {
|
|
7477
7536
|
color: {
|
|
7478
7537
|
type: String,
|
|
@@ -7545,7 +7604,7 @@ const markProps = {
|
|
|
7545
7604
|
description: "鼠标悬停时的光标样式"
|
|
7546
7605
|
}
|
|
7547
7606
|
};
|
|
7548
|
-
const _sfc_main$
|
|
7607
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
7549
7608
|
__name: "LewMark",
|
|
7550
7609
|
props: markProps,
|
|
7551
7610
|
emits: ["click"],
|
|
@@ -7574,7 +7633,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
7574
7633
|
};
|
|
7575
7634
|
}
|
|
7576
7635
|
});
|
|
7577
|
-
const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7636
|
+
const LewMark = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-80768a63"]]);
|
|
7578
7637
|
const expandProps = {
|
|
7579
7638
|
collapseHeight: {
|
|
7580
7639
|
type: [Number, String],
|
|
@@ -7582,7 +7641,7 @@ const expandProps = {
|
|
|
7582
7641
|
description: `组件收起状态时的高度,可以是数字(单位为像素)或字符串(如 '50px'、'3rem' 等)`
|
|
7583
7642
|
}
|
|
7584
7643
|
};
|
|
7585
|
-
const _sfc_main$
|
|
7644
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
7586
7645
|
__name: "LewExpand",
|
|
7587
7646
|
props: expandProps,
|
|
7588
7647
|
setup(__props2) {
|
|
@@ -7629,7 +7688,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7629
7688
|
};
|
|
7630
7689
|
}
|
|
7631
7690
|
});
|
|
7632
|
-
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7691
|
+
const LewExpand = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-1fe5a721"]]);
|
|
7633
7692
|
const backTopProps = {
|
|
7634
7693
|
right: {
|
|
7635
7694
|
type: Number,
|
|
@@ -7696,7 +7755,7 @@ function useEventListener$1(target, event, callback) {
|
|
|
7696
7755
|
onMounted(() => target.addEventListener(event, callback, true));
|
|
7697
7756
|
onUnmounted(() => target.removeEventListener(event, callback, true));
|
|
7698
7757
|
}
|
|
7699
|
-
const _sfc_main$
|
|
7758
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
7700
7759
|
__name: "LewBackTop",
|
|
7701
7760
|
props: backTopProps,
|
|
7702
7761
|
emits: ["click"],
|
|
@@ -7751,7 +7810,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
7751
7810
|
};
|
|
7752
7811
|
}
|
|
7753
7812
|
});
|
|
7754
|
-
const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7813
|
+
const LewBackTop = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-85f05def"]]);
|
|
7755
7814
|
const stepsModel = {
|
|
7756
7815
|
modelValue: {
|
|
7757
7816
|
type: [String, Number],
|
|
@@ -7803,7 +7862,7 @@ const stepsProps = {
|
|
|
7803
7862
|
}
|
|
7804
7863
|
}
|
|
7805
7864
|
};
|
|
7806
|
-
const _hoisted_1$
|
|
7865
|
+
const _hoisted_1$E = { class: "lew-steps lew-scrollbar" };
|
|
7807
7866
|
const _hoisted_2$p = { class: "lew-steps-item-index" };
|
|
7808
7867
|
const _hoisted_3$j = {
|
|
7809
7868
|
key: 4,
|
|
@@ -7812,7 +7871,7 @@ const _hoisted_3$j = {
|
|
|
7812
7871
|
const _hoisted_4$e = { class: "lew-steps-item-info" };
|
|
7813
7872
|
const _hoisted_5$8 = { class: "lew-steps-item-title" };
|
|
7814
7873
|
const _hoisted_6$6 = { class: "lew-steps-item-description" };
|
|
7815
|
-
const _sfc_main$
|
|
7874
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
7816
7875
|
__name: "LewSteps",
|
|
7817
7876
|
props: /* @__PURE__ */ mergeModels(stepsProps, {
|
|
7818
7877
|
"modelValue": {},
|
|
@@ -7822,7 +7881,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
7822
7881
|
setup(__props2) {
|
|
7823
7882
|
const stepsValue = useModel(__props2, "modelValue");
|
|
7824
7883
|
return (_ctx, _cache) => {
|
|
7825
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7884
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
7826
7885
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index2) => {
|
|
7827
7886
|
return openBlock(), createElementBlock("div", {
|
|
7828
7887
|
key: index2,
|
|
@@ -7910,10 +7969,10 @@ const menuProps = {
|
|
|
7910
7969
|
}
|
|
7911
7970
|
}
|
|
7912
7971
|
};
|
|
7913
|
-
const _hoisted_1$
|
|
7972
|
+
const _hoisted_1$D = { class: "lew-menu" };
|
|
7914
7973
|
const _hoisted_2$o = { class: "lew-menu-item" };
|
|
7915
7974
|
const _hoisted_3$i = ["onClick"];
|
|
7916
|
-
const _sfc_main$
|
|
7975
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
7917
7976
|
__name: "LewMenu",
|
|
7918
7977
|
props: /* @__PURE__ */ mergeModels(menuProps, {
|
|
7919
7978
|
"modelValue": {},
|
|
@@ -7928,7 +7987,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7928
7987
|
emit2("change", item);
|
|
7929
7988
|
};
|
|
7930
7989
|
return (_ctx, _cache) => {
|
|
7931
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7990
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
7932
7991
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item) => {
|
|
7933
7992
|
return openBlock(), createElementBlock(Fragment, {
|
|
7934
7993
|
key: item.label
|
|
@@ -7937,7 +7996,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7937
7996
|
createVNode(unref(LewTextTrim), {
|
|
7938
7997
|
text: item.label
|
|
7939
7998
|
}, null, 8, ["text"]),
|
|
7940
|
-
item.tagText ? (openBlock(), createBlock(unref(_sfc_main$
|
|
7999
|
+
item.tagText ? (openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
7941
8000
|
key: 0,
|
|
7942
8001
|
color: item.tagColor,
|
|
7943
8002
|
round: "",
|
|
@@ -7967,7 +8026,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7967
8026
|
createVNode(unref(LewTextTrim), {
|
|
7968
8027
|
text: cItem.label
|
|
7969
8028
|
}, null, 8, ["text"]),
|
|
7970
|
-
cItem.tagText ? (openBlock(), createBlock(unref(_sfc_main$
|
|
8029
|
+
cItem.tagText ? (openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
7971
8030
|
key: 1,
|
|
7972
8031
|
color: cItem.tagColor,
|
|
7973
8032
|
round: "",
|
|
@@ -7987,7 +8046,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
7987
8046
|
};
|
|
7988
8047
|
}
|
|
7989
8048
|
});
|
|
7990
|
-
const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8049
|
+
const LewMenu = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-27307377"]]);
|
|
7991
8050
|
const menuTreeModel = {
|
|
7992
8051
|
modelValue: {
|
|
7993
8052
|
type: String,
|
|
@@ -8078,8 +8137,8 @@ const menuTreeItemProps = {
|
|
|
8078
8137
|
description: "是否为叶子节点。"
|
|
8079
8138
|
}
|
|
8080
8139
|
};
|
|
8081
|
-
const _hoisted_1$
|
|
8082
|
-
const _sfc_main$
|
|
8140
|
+
const _hoisted_1$C = { class: "lew-menu-tree-item" };
|
|
8141
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
8083
8142
|
__name: "LewMenuTreeItem",
|
|
8084
8143
|
props: menuTreeItemProps,
|
|
8085
8144
|
emits: ["change"],
|
|
@@ -8107,7 +8166,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
8107
8166
|
return (_ctx, _cache) => {
|
|
8108
8167
|
var _a;
|
|
8109
8168
|
const _component_lew_text_trim = resolveComponent("lew-text-trim");
|
|
8110
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8169
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
8111
8170
|
createVNode(unref(LewFlex), {
|
|
8112
8171
|
x: "start",
|
|
8113
8172
|
y: "center",
|
|
@@ -8170,8 +8229,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
8170
8229
|
};
|
|
8171
8230
|
}
|
|
8172
8231
|
});
|
|
8173
|
-
const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8174
|
-
const _sfc_main$
|
|
8232
|
+
const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-cc37e11f"]]);
|
|
8233
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
8175
8234
|
__name: "LewMenuTree",
|
|
8176
8235
|
props: /* @__PURE__ */ mergeModels(menuTreeProps, {
|
|
8177
8236
|
"modelValue": {},
|
|
@@ -8293,7 +8352,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
8293
8352
|
};
|
|
8294
8353
|
}
|
|
8295
8354
|
});
|
|
8296
|
-
const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8355
|
+
const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-9c3463ba"]]);
|
|
8297
8356
|
const dropdownProps = {
|
|
8298
8357
|
trigger: {
|
|
8299
8358
|
type: String,
|
|
@@ -8350,7 +8409,7 @@ const dropdownProps = {
|
|
|
8350
8409
|
}
|
|
8351
8410
|
}
|
|
8352
8411
|
};
|
|
8353
|
-
const _sfc_main$
|
|
8412
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
8354
8413
|
__name: "LewDropdown",
|
|
8355
8414
|
props: dropdownProps,
|
|
8356
8415
|
emits: ["change"],
|
|
@@ -8442,7 +8501,7 @@ const breadcrumbProps = {
|
|
|
8442
8501
|
}
|
|
8443
8502
|
}
|
|
8444
8503
|
};
|
|
8445
|
-
const _hoisted_1$
|
|
8504
|
+
const _hoisted_1$B = { class: "lew-breadcrumb" };
|
|
8446
8505
|
const _hoisted_2$n = ["onClick"];
|
|
8447
8506
|
const _hoisted_3$h = {
|
|
8448
8507
|
key: 0,
|
|
@@ -8468,14 +8527,14 @@ const _hoisted_5$7 = {
|
|
|
8468
8527
|
"stroke-linecap": "butt",
|
|
8469
8528
|
"stroke-linejoin": "miter"
|
|
8470
8529
|
};
|
|
8471
|
-
const _sfc_main$
|
|
8530
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
8472
8531
|
__name: "LewBreadcrumb",
|
|
8473
8532
|
props: breadcrumbProps,
|
|
8474
8533
|
emits: ["change"],
|
|
8475
8534
|
setup(__props2, { emit: __emit2 }) {
|
|
8476
8535
|
const emit2 = __emit2;
|
|
8477
8536
|
return (_ctx, _cache) => {
|
|
8478
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8537
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
8479
8538
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index2) => {
|
|
8480
8539
|
return openBlock(), createElementBlock("div", {
|
|
8481
8540
|
key: index2,
|
|
@@ -8499,9 +8558,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
8499
8558
|
};
|
|
8500
8559
|
}
|
|
8501
8560
|
});
|
|
8502
|
-
const LewBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8503
|
-
const _hoisted_1$
|
|
8504
|
-
const _sfc_main$
|
|
8561
|
+
const LewBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-8735f131"]]);
|
|
8562
|
+
const _hoisted_1$A = ["width", "height"];
|
|
8563
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
8505
8564
|
__name: "RequiredIcon",
|
|
8506
8565
|
props: {
|
|
8507
8566
|
size: {
|
|
@@ -8526,7 +8585,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8526
8585
|
fill: "#DF3F52",
|
|
8527
8586
|
"p-id": "10883"
|
|
8528
8587
|
}, null, -1)
|
|
8529
|
-
]), 8, _hoisted_1$
|
|
8588
|
+
]), 8, _hoisted_1$A);
|
|
8530
8589
|
};
|
|
8531
8590
|
}
|
|
8532
8591
|
});
|
|
@@ -8806,7 +8865,7 @@ const formTypeAsMap = {
|
|
|
8806
8865
|
upload: "array",
|
|
8807
8866
|
"input-number": "number"
|
|
8808
8867
|
};
|
|
8809
|
-
const _sfc_main$
|
|
8868
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
8810
8869
|
__name: "LewGetLabelWidth",
|
|
8811
8870
|
props: {
|
|
8812
8871
|
size: {
|
|
@@ -8846,7 +8905,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
8846
8905
|
key: index2
|
|
8847
8906
|
}, {
|
|
8848
8907
|
default: withCtx(() => [
|
|
8849
|
-
item.required && item.label ? (openBlock(), createBlock(_sfc_main$
|
|
8908
|
+
item.required && item.label ? (openBlock(), createBlock(_sfc_main$L, {
|
|
8850
8909
|
key: 0,
|
|
8851
8910
|
size: unref(requiredIconSizeMap)[__props2.size]
|
|
8852
8911
|
}, null, 8, ["size"])) : createCommentVNode("", true),
|
|
@@ -8865,7 +8924,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
8865
8924
|
};
|
|
8866
8925
|
}
|
|
8867
8926
|
});
|
|
8868
|
-
const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8927
|
+
const LewGetLabelWidth = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-8bc09ff2"]]);
|
|
8869
8928
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
8870
8929
|
function getDefaultExportFromCjs(x2) {
|
|
8871
8930
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -11126,11 +11185,11 @@ class ArraySchema extends Schema {
|
|
|
11126
11185
|
}
|
|
11127
11186
|
}
|
|
11128
11187
|
create$2.prototype = ArraySchema.prototype;
|
|
11129
|
-
const _hoisted_1$
|
|
11188
|
+
const _hoisted_1$z = {
|
|
11130
11189
|
key: 0,
|
|
11131
11190
|
class: "lew-label-box"
|
|
11132
11191
|
};
|
|
11133
|
-
const _sfc_main$
|
|
11192
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11134
11193
|
__name: "LewFormItem",
|
|
11135
11194
|
props: /* @__PURE__ */ mergeModels(formItemProps, {
|
|
11136
11195
|
"modelValue": {
|
|
@@ -11276,8 +11335,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11276
11335
|
style: normalizeStyle(_ctx.direction === "x" ? `width:${unref(any2px)(_ctx.labelWidth)}` : ""),
|
|
11277
11336
|
class: "lew-label-box-wrapper"
|
|
11278
11337
|
}, [
|
|
11279
|
-
_ctx.as ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11280
|
-
unref(curRequired) && _ctx.label ? (openBlock(), createBlock(_sfc_main$
|
|
11338
|
+
_ctx.as ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
11339
|
+
unref(curRequired) && _ctx.label ? (openBlock(), createBlock(_sfc_main$L, {
|
|
11281
11340
|
key: 0,
|
|
11282
11341
|
size: unref(requiredIconSizeMap)[_ctx.size]
|
|
11283
11342
|
}, null, 8, ["size"])) : createCommentVNode("", true),
|
|
@@ -11319,8 +11378,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11319
11378
|
};
|
|
11320
11379
|
}
|
|
11321
11380
|
});
|
|
11322
|
-
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11323
|
-
const _sfc_main$
|
|
11381
|
+
const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-b9bef2d5"]]);
|
|
11382
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11324
11383
|
__name: "LewForm",
|
|
11325
11384
|
props: formProps,
|
|
11326
11385
|
emits: ["change", "mounted"],
|
|
@@ -11446,7 +11505,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11446
11505
|
};
|
|
11447
11506
|
}
|
|
11448
11507
|
});
|
|
11449
|
-
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11508
|
+
const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-20503251"]]);
|
|
11450
11509
|
const inputModel = {
|
|
11451
11510
|
modelValue: {
|
|
11452
11511
|
type: [String, Number],
|
|
@@ -11625,7 +11684,7 @@ const inputProps = {
|
|
|
11625
11684
|
description: "是否允许通过回车键确认输入"
|
|
11626
11685
|
}
|
|
11627
11686
|
};
|
|
11628
|
-
const _hoisted_1$
|
|
11687
|
+
const _hoisted_1$y = {
|
|
11629
11688
|
key: 0,
|
|
11630
11689
|
class: "lew-input-prefixes"
|
|
11631
11690
|
};
|
|
@@ -11664,7 +11723,7 @@ const _hoisted_12$2 = {
|
|
|
11664
11723
|
key: 2,
|
|
11665
11724
|
class: "lew-input-suffix-select"
|
|
11666
11725
|
};
|
|
11667
|
-
const _sfc_main$
|
|
11726
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11668
11727
|
__name: "LewInput",
|
|
11669
11728
|
props: /* @__PURE__ */ mergeModels(inputProps, {
|
|
11670
11729
|
"modelValue": { required: true },
|
|
@@ -11805,7 +11864,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11805
11864
|
return openBlock(), createElementBlock("div", {
|
|
11806
11865
|
class: normalizeClass(["lew-input-view", unref(getInputClassNames)])
|
|
11807
11866
|
}, [
|
|
11808
|
-
_ctx.prefixes ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
11867
|
+
_ctx.prefixes ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
11809
11868
|
_ctx.prefixes === "text" ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(prefixesValue.value), 1)) : createCommentVNode("", true),
|
|
11810
11869
|
_ctx.prefixes === "icon" ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
|
|
11811
11870
|
createVNode(Icon, {
|
|
@@ -11814,7 +11873,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11814
11873
|
}, null, 8, ["size", "type"])
|
|
11815
11874
|
])) : createCommentVNode("", true),
|
|
11816
11875
|
_ctx.prefixes === "select" ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
11817
|
-
createVNode(unref(_sfc_main$
|
|
11876
|
+
createVNode(unref(_sfc_main$N), {
|
|
11818
11877
|
placement: "bottom",
|
|
11819
11878
|
trigger: "click",
|
|
11820
11879
|
options: _ctx.prefixesOptions,
|
|
@@ -11944,7 +12003,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11944
12003
|
}, null, 8, ["size", "type"])
|
|
11945
12004
|
])) : createCommentVNode("", true),
|
|
11946
12005
|
_ctx.suffix === "select" ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
11947
|
-
createVNode(unref(_sfc_main$
|
|
12006
|
+
createVNode(unref(_sfc_main$N), {
|
|
11948
12007
|
placement: "bottom",
|
|
11949
12008
|
trigger: "click",
|
|
11950
12009
|
options: _ctx.suffixOptions,
|
|
@@ -11984,7 +12043,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11984
12043
|
};
|
|
11985
12044
|
}
|
|
11986
12045
|
});
|
|
11987
|
-
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12046
|
+
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-3c20080e"]]);
|
|
11988
12047
|
const inputNumberModel = {
|
|
11989
12048
|
modelValue: {
|
|
11990
12049
|
type: Number,
|
|
@@ -12093,8 +12152,8 @@ const inputNumberProps = {
|
|
|
12093
12152
|
description: "聚焦时是否选中内容"
|
|
12094
12153
|
}
|
|
12095
12154
|
};
|
|
12096
|
-
const _hoisted_1$
|
|
12097
|
-
const _sfc_main$
|
|
12155
|
+
const _hoisted_1$x = ["placeholder", "min", "max", "step"];
|
|
12156
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
12098
12157
|
__name: "LewInputNumber",
|
|
12099
12158
|
props: /* @__PURE__ */ mergeModels(inputNumberProps, {
|
|
12100
12159
|
"modelValue": { required: true },
|
|
@@ -12238,7 +12297,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12238
12297
|
onChange: changeFn,
|
|
12239
12298
|
onBlur: blur,
|
|
12240
12299
|
onFocus: focus
|
|
12241
|
-
}, null, 44, _hoisted_1$
|
|
12300
|
+
}, null, 44, _hoisted_1$x), [
|
|
12242
12301
|
[_directive_tooltip, {
|
|
12243
12302
|
content: unref(validationMessage),
|
|
12244
12303
|
triggerFrom: "input-number"
|
|
@@ -12278,7 +12337,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
12278
12337
|
};
|
|
12279
12338
|
}
|
|
12280
12339
|
});
|
|
12281
|
-
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12340
|
+
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-ff264ee4"]]);
|
|
12282
12341
|
const textareaModel = {
|
|
12283
12342
|
modelValue: {
|
|
12284
12343
|
type: String,
|
|
@@ -12392,12 +12451,12 @@ const textareaProps = {
|
|
|
12392
12451
|
description: "是否启用回车键确认(启用后,Shift+Enter可换行)"
|
|
12393
12452
|
}
|
|
12394
12453
|
};
|
|
12395
|
-
const _hoisted_1$
|
|
12454
|
+
const _hoisted_1$w = ["placeholder", "maxlength", "disabled", "readonly"];
|
|
12396
12455
|
const _hoisted_2$l = {
|
|
12397
12456
|
key: 0,
|
|
12398
12457
|
class: "lew-textarea-count"
|
|
12399
12458
|
};
|
|
12400
|
-
const _sfc_main$
|
|
12459
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
12401
12460
|
__name: "LewTextarea",
|
|
12402
12461
|
props: /* @__PURE__ */ mergeModels(textareaProps, {
|
|
12403
12462
|
"modelValue": {},
|
|
@@ -12543,7 +12602,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12543
12602
|
onBlur: blur,
|
|
12544
12603
|
onInput: _cache[1] || (_cache[1] = ($event) => emit2("input", modelValue2.value)),
|
|
12545
12604
|
onChange: _cache[2] || (_cache[2] = ($event) => emit2("change", modelValue2.value))
|
|
12546
|
-
}, null, 40, _hoisted_1$
|
|
12605
|
+
}, null, 40, _hoisted_1$w), [
|
|
12547
12606
|
[vModelText, modelValue2.value]
|
|
12548
12607
|
]),
|
|
12549
12608
|
modelValue2.value && _ctx.showCount ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString(modelValue2.value.length) + toDisplayString(_ctx.maxLength ? " / " + _ctx.maxLength : ""), 1)) : createCommentVNode("", true),
|
|
@@ -12568,7 +12627,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
12568
12627
|
};
|
|
12569
12628
|
}
|
|
12570
12629
|
});
|
|
12571
|
-
const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12630
|
+
const LewTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-4b92a5fb"]]);
|
|
12572
12631
|
const inputTagModel = {
|
|
12573
12632
|
modelValue: {
|
|
12574
12633
|
type: Array,
|
|
@@ -12608,7 +12667,7 @@ const inputTagProps = {
|
|
|
12608
12667
|
description: "是否允许添加重复的标签"
|
|
12609
12668
|
}
|
|
12610
12669
|
};
|
|
12611
|
-
const _sfc_main$
|
|
12670
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
12612
12671
|
__name: "LewInputTag",
|
|
12613
12672
|
props: /* @__PURE__ */ mergeModels(inputTagProps, {
|
|
12614
12673
|
"modelValue": {},
|
|
@@ -12719,7 +12778,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12719
12778
|
createVNode(TransitionGroup, { name: "tag-list" }, {
|
|
12720
12779
|
default: withCtx(() => [
|
|
12721
12780
|
(openBlock(true), createElementBlock(Fragment, null, renderList(modelValue2.value, (item, index2) => {
|
|
12722
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
12781
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
12723
12782
|
key: index2,
|
|
12724
12783
|
type: "light",
|
|
12725
12784
|
style: { "max-width": "100%" },
|
|
@@ -12772,7 +12831,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
12772
12831
|
};
|
|
12773
12832
|
}
|
|
12774
12833
|
});
|
|
12775
|
-
const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12834
|
+
const LewInputTag = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1b2570c1"]]);
|
|
12776
12835
|
const checkboxModel = {
|
|
12777
12836
|
modelValue: {
|
|
12778
12837
|
type: Boolean,
|
|
@@ -12912,7 +12971,7 @@ const checkboxGroupProps = {
|
|
|
12912
12971
|
description: "是否显示复选框的图标(仅在块状模式下生效)"
|
|
12913
12972
|
}
|
|
12914
12973
|
};
|
|
12915
|
-
const _hoisted_1$
|
|
12974
|
+
const _hoisted_1$v = {
|
|
12916
12975
|
key: 0,
|
|
12917
12976
|
class: "lew-checkbox-icon-box"
|
|
12918
12977
|
};
|
|
@@ -12922,7 +12981,7 @@ const _hoisted_4$b = {
|
|
|
12922
12981
|
key: 1,
|
|
12923
12982
|
class: "lew-checkbox-label"
|
|
12924
12983
|
};
|
|
12925
|
-
const _sfc_main$
|
|
12984
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
12926
12985
|
__name: "LewCheckbox",
|
|
12927
12986
|
props: /* @__PURE__ */ mergeModels(checkboxProps, {
|
|
12928
12987
|
"modelValue": {
|
|
@@ -12944,13 +13003,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12944
13003
|
const { size, block } = props2;
|
|
12945
13004
|
switch (size) {
|
|
12946
13005
|
case "small":
|
|
12947
|
-
return block ?
|
|
13006
|
+
return block ? 14 : 12;
|
|
12948
13007
|
case "medium":
|
|
12949
|
-
return block ?
|
|
13008
|
+
return block ? 16 : 14;
|
|
12950
13009
|
case "large":
|
|
12951
|
-
return block ?
|
|
13010
|
+
return block ? 18 : 16;
|
|
12952
13011
|
default:
|
|
12953
|
-
return block ?
|
|
13012
|
+
return block ? 16 : 14;
|
|
12954
13013
|
}
|
|
12955
13014
|
});
|
|
12956
13015
|
const getCheckboxClassName = computed(() => {
|
|
@@ -12972,7 +13031,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12972
13031
|
return openBlock(), createElementBlock("label", {
|
|
12973
13032
|
class: normalizeClass(["lew-checkbox", unref(getCheckboxClassName)])
|
|
12974
13033
|
}, [
|
|
12975
|
-
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13034
|
+
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
12976
13035
|
withDirectives(createElementVNode("i", _hoisted_2$k, null, 512), [
|
|
12977
13036
|
[vShow, _ctx.certain]
|
|
12978
13037
|
]),
|
|
@@ -12995,8 +13054,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
12995
13054
|
};
|
|
12996
13055
|
}
|
|
12997
13056
|
});
|
|
12998
|
-
const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12999
|
-
const _sfc_main$
|
|
13057
|
+
const LewCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-a42fe19c"]]);
|
|
13058
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
13000
13059
|
__name: "LewCheckboxGroup",
|
|
13001
13060
|
props: /* @__PURE__ */ mergeModels(checkboxGroupProps, {
|
|
13002
13061
|
"modelValue": {
|
|
@@ -13086,7 +13145,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
13086
13145
|
};
|
|
13087
13146
|
}
|
|
13088
13147
|
});
|
|
13089
|
-
const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13148
|
+
const LewCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-59d7549a"]]);
|
|
13090
13149
|
const radioProps = {
|
|
13091
13150
|
checked: {
|
|
13092
13151
|
type: Boolean,
|
|
@@ -13203,7 +13262,7 @@ const radioGroupProps = {
|
|
|
13203
13262
|
}
|
|
13204
13263
|
}
|
|
13205
13264
|
};
|
|
13206
|
-
const _hoisted_1$
|
|
13265
|
+
const _hoisted_1$u = {
|
|
13207
13266
|
key: 0,
|
|
13208
13267
|
class: "lew-icon-radio-box"
|
|
13209
13268
|
};
|
|
@@ -13212,7 +13271,7 @@ const _hoisted_3$e = {
|
|
|
13212
13271
|
key: 1,
|
|
13213
13272
|
class: "lew-radio-label"
|
|
13214
13273
|
};
|
|
13215
|
-
const _sfc_main$
|
|
13274
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
13216
13275
|
__name: "LewRadio",
|
|
13217
13276
|
props: radioProps,
|
|
13218
13277
|
emits: ["change"],
|
|
@@ -13226,13 +13285,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
13226
13285
|
const { size, block } = props2;
|
|
13227
13286
|
switch (size) {
|
|
13228
13287
|
case "small":
|
|
13229
|
-
return block ?
|
|
13288
|
+
return block ? 14 : 12;
|
|
13230
13289
|
case "medium":
|
|
13231
|
-
return block ?
|
|
13290
|
+
return block ? 16 : 14;
|
|
13232
13291
|
case "large":
|
|
13233
|
-
return block ?
|
|
13292
|
+
return block ? 18 : 16;
|
|
13234
13293
|
default:
|
|
13235
|
-
return block ?
|
|
13294
|
+
return block ? 16 : 14;
|
|
13236
13295
|
}
|
|
13237
13296
|
});
|
|
13238
13297
|
const getRadioClassName = computed(() => {
|
|
@@ -13252,7 +13311,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
13252
13311
|
return openBlock(), createElementBlock("label", {
|
|
13253
13312
|
class: normalizeClass(["lew-radio", unref(getRadioClassName)])
|
|
13254
13313
|
}, [
|
|
13255
|
-
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13314
|
+
_ctx.iconable || !_ctx.iconable && !_ctx.block ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
13256
13315
|
createVNode(Icon, {
|
|
13257
13316
|
"stroke-width": 4,
|
|
13258
13317
|
class: "lew-icon-radio",
|
|
@@ -13272,8 +13331,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
13272
13331
|
};
|
|
13273
13332
|
}
|
|
13274
13333
|
});
|
|
13275
|
-
const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13276
|
-
const _sfc_main$
|
|
13334
|
+
const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-785b8402"]]);
|
|
13335
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
13277
13336
|
__name: "LewRadioGroup",
|
|
13278
13337
|
props: /* @__PURE__ */ mergeModels(radioGroupProps, {
|
|
13279
13338
|
"modelValue": {},
|
|
@@ -13326,7 +13385,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
13326
13385
|
};
|
|
13327
13386
|
}
|
|
13328
13387
|
});
|
|
13329
|
-
const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13388
|
+
const LewRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-edc6d013"]]);
|
|
13330
13389
|
const tabsModel = {
|
|
13331
13390
|
modelValue: {
|
|
13332
13391
|
type: [String, Number],
|
|
@@ -13428,8 +13487,8 @@ const tabsProps = {
|
|
|
13428
13487
|
description: "是否将所有标签页设置为只读状态"
|
|
13429
13488
|
}
|
|
13430
13489
|
};
|
|
13431
|
-
const _hoisted_1$
|
|
13432
|
-
const _sfc_main$
|
|
13490
|
+
const _hoisted_1$t = ["onClick"];
|
|
13491
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
13433
13492
|
__name: "LewTabs",
|
|
13434
13493
|
props: /* @__PURE__ */ mergeModels(tabsProps, {
|
|
13435
13494
|
"modelValue": {
|
|
@@ -13598,14 +13657,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
13598
13657
|
class: normalizeClass(["lew-tabs-item", { "lew-tabs-item-active": tabsValue.value === item.value }]),
|
|
13599
13658
|
style: normalizeStyle(unref(getItemStyle)),
|
|
13600
13659
|
onClick: ($event) => selectItem(item.value)
|
|
13601
|
-
}, toDisplayString(item.label), 15, _hoisted_1$
|
|
13660
|
+
}, toDisplayString(item.label), 15, _hoisted_1$t);
|
|
13602
13661
|
}), 128))
|
|
13603
13662
|
], 38)
|
|
13604
13663
|
], 6);
|
|
13605
13664
|
};
|
|
13606
13665
|
}
|
|
13607
13666
|
});
|
|
13608
|
-
const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13667
|
+
const LewTabs = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-b86d4bc4"]]);
|
|
13609
13668
|
function tryOnScopeDispose(fn2) {
|
|
13610
13669
|
if (getCurrentScope()) {
|
|
13611
13670
|
onScopeDispose(fn2);
|
|
@@ -14198,14 +14257,65 @@ const selectProps = {
|
|
|
14198
14257
|
description: "是否在选中项旁显示勾选图标"
|
|
14199
14258
|
}
|
|
14200
14259
|
};
|
|
14201
|
-
const
|
|
14260
|
+
const flattenOptions = (options) => {
|
|
14261
|
+
const result = [];
|
|
14262
|
+
options.forEach((option) => {
|
|
14263
|
+
if (option.children && option.children.length > 0) {
|
|
14264
|
+
const group = {
|
|
14265
|
+
label: option.label,
|
|
14266
|
+
value: `group-${option.value || option.label}`,
|
|
14267
|
+
isGroup: true,
|
|
14268
|
+
total: (option.children || []).length
|
|
14269
|
+
};
|
|
14270
|
+
result.push(group);
|
|
14271
|
+
option.children.forEach((child) => {
|
|
14272
|
+
result.push({
|
|
14273
|
+
...child,
|
|
14274
|
+
groupValue: group.value,
|
|
14275
|
+
groupLabel: group.label,
|
|
14276
|
+
isGroup: false
|
|
14277
|
+
});
|
|
14278
|
+
});
|
|
14279
|
+
} else {
|
|
14280
|
+
result.push(option);
|
|
14281
|
+
}
|
|
14282
|
+
});
|
|
14283
|
+
return result;
|
|
14284
|
+
};
|
|
14285
|
+
const defaultSearchMethod = (params) => {
|
|
14286
|
+
const { options, keyword } = params;
|
|
14287
|
+
console.log(options, keyword);
|
|
14288
|
+
const result = options.filter((e) => {
|
|
14289
|
+
return e.label.indexOf(keyword) >= 0 && !e.isGroup;
|
|
14290
|
+
});
|
|
14291
|
+
const group = [];
|
|
14292
|
+
result.forEach((e) => {
|
|
14293
|
+
var _a;
|
|
14294
|
+
const index2 = group.findIndex((item) => item.value === e.groupValue);
|
|
14295
|
+
if (!e.isGroup && e.groupValue && index2 === -1) {
|
|
14296
|
+
const groupItem = {
|
|
14297
|
+
label: e.groupLabel,
|
|
14298
|
+
value: e.groupValue,
|
|
14299
|
+
isGroup: true,
|
|
14300
|
+
children: [e]
|
|
14301
|
+
};
|
|
14302
|
+
group.push(groupItem);
|
|
14303
|
+
} else if (index2 >= 0) {
|
|
14304
|
+
(_a = group[index2]) == null ? void 0 : _a.children.push(e);
|
|
14305
|
+
} else {
|
|
14306
|
+
group.push(e);
|
|
14307
|
+
}
|
|
14308
|
+
});
|
|
14309
|
+
return flattenOptions(group);
|
|
14310
|
+
};
|
|
14311
|
+
const _hoisted_1$s = ["readonly", "placeholder"];
|
|
14202
14312
|
const _hoisted_2$i = { class: "lew-select-options-box" };
|
|
14203
14313
|
const _hoisted_3$d = {
|
|
14204
14314
|
key: 1,
|
|
14205
14315
|
class: "lew-result-count"
|
|
14206
14316
|
};
|
|
14207
14317
|
const _hoisted_4$a = ["onClick"];
|
|
14208
|
-
const _sfc_main$
|
|
14318
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
14209
14319
|
__name: "LewSelect",
|
|
14210
14320
|
props: /* @__PURE__ */ mergeModels(selectProps, {
|
|
14211
14321
|
"modelValue": {},
|
|
@@ -14230,14 +14340,15 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14230
14340
|
return props2.searchMethod;
|
|
14231
14341
|
} else if (props2.searchMethodId) {
|
|
14232
14342
|
return formMethods[props2.searchMethodId];
|
|
14343
|
+
} else {
|
|
14344
|
+
return defaultSearchMethod;
|
|
14233
14345
|
}
|
|
14234
|
-
return false;
|
|
14235
14346
|
});
|
|
14236
14347
|
const state = reactive({
|
|
14237
14348
|
selectWidth: 0,
|
|
14238
14349
|
visible: false,
|
|
14239
14350
|
loading: false,
|
|
14240
|
-
options: props2.options,
|
|
14351
|
+
options: flattenOptions(props2.options),
|
|
14241
14352
|
hideBySelect: false,
|
|
14242
14353
|
// 记录是否通过选择隐藏
|
|
14243
14354
|
keyword: props2.defaultValue || selectValue.value,
|
|
@@ -14262,10 +14373,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14262
14373
|
if (props2.searchable) {
|
|
14263
14374
|
let result = [];
|
|
14264
14375
|
if (!keyword && props2.options.length > 0) {
|
|
14265
|
-
result = props2.options;
|
|
14376
|
+
result = flattenOptions(props2.options);
|
|
14266
14377
|
} else {
|
|
14267
14378
|
result = await _searchMethod.value({
|
|
14268
|
-
options: props2.options,
|
|
14379
|
+
options: flattenOptions(props2.options),
|
|
14269
14380
|
keyword
|
|
14270
14381
|
});
|
|
14271
14382
|
}
|
|
@@ -14281,7 +14392,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14281
14392
|
emit2("change");
|
|
14282
14393
|
};
|
|
14283
14394
|
const selectHandle = (item) => {
|
|
14284
|
-
if (item.disabled) {
|
|
14395
|
+
if (item.disabled || item.isGroup) {
|
|
14285
14396
|
return;
|
|
14286
14397
|
}
|
|
14287
14398
|
state.hideBySelect = true;
|
|
@@ -14328,11 +14439,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14328
14439
|
return object2class("lew-select-body", { size, disabled });
|
|
14329
14440
|
});
|
|
14330
14441
|
const getSelectItemClassName = (e) => {
|
|
14331
|
-
const { disabled } = e;
|
|
14442
|
+
const { disabled, isGroup } = e;
|
|
14332
14443
|
const active = getChecked.value(e.value);
|
|
14333
14444
|
return object2class("lew-select-item", {
|
|
14334
14445
|
disabled,
|
|
14335
|
-
active
|
|
14446
|
+
active,
|
|
14447
|
+
"is-group": isGroup
|
|
14336
14448
|
});
|
|
14337
14449
|
};
|
|
14338
14450
|
const getIconSize = computed(() => {
|
|
@@ -14374,6 +14486,18 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14374
14486
|
findKeyword();
|
|
14375
14487
|
}
|
|
14376
14488
|
);
|
|
14489
|
+
watch(
|
|
14490
|
+
() => props2.options,
|
|
14491
|
+
() => {
|
|
14492
|
+
state.options = flattenOptions(props2.options);
|
|
14493
|
+
},
|
|
14494
|
+
{
|
|
14495
|
+
deep: true
|
|
14496
|
+
}
|
|
14497
|
+
);
|
|
14498
|
+
const getResultNum = computed(() => {
|
|
14499
|
+
return numFormat(state.options.filter((e) => !e.isGroup).length);
|
|
14500
|
+
});
|
|
14377
14501
|
__expose2({ show, hide: hide2 });
|
|
14378
14502
|
return (_ctx, _cache) => {
|
|
14379
14503
|
return openBlock(), createBlock(unref(_sfc_main$5), {
|
|
@@ -14382,7 +14506,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14382
14506
|
popoverBodyClassName: "lew-select-popover-body",
|
|
14383
14507
|
class: "lew-select-view",
|
|
14384
14508
|
trigger: _ctx.trigger,
|
|
14385
|
-
disabled: _ctx.disabled,
|
|
14509
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
14386
14510
|
placement: "bottom-start",
|
|
14387
14511
|
style: { "width": "100%" },
|
|
14388
14512
|
offset: [-1, 10],
|
|
@@ -14425,7 +14549,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14425
14549
|
placeholder: unref(state).keywordBackup || _ctx.placeholder,
|
|
14426
14550
|
onInput: _cache[1] || (_cache[1] = //@ts-ignore
|
|
14427
14551
|
(...args) => unref(searchDebounce) && unref(searchDebounce)(...args))
|
|
14428
|
-
}, null, 44, _hoisted_1$
|
|
14552
|
+
}, null, 44, _hoisted_1$s), [
|
|
14429
14553
|
[vModelText, unref(state).keyword]
|
|
14430
14554
|
])
|
|
14431
14555
|
], 2)
|
|
@@ -14449,7 +14573,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14449
14573
|
_: 1
|
|
14450
14574
|
}))
|
|
14451
14575
|
], 64)) : createCommentVNode("", true),
|
|
14452
|
-
_ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$d, " 共 " + toDisplayString(unref(
|
|
14576
|
+
_ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$d, " 共 " + toDisplayString(unref(getResultNum)) + " 条结果 ", 1)) : createCommentVNode("", true),
|
|
14453
14577
|
unref(state).options.length > 0 ? (openBlock(), createBlock(unref(UseVirtualList), {
|
|
14454
14578
|
key: unref(state).options.length,
|
|
14455
14579
|
class: "lew-select-options-list lew-scrollbar",
|
|
@@ -14475,7 +14599,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14475
14599
|
class: normalizeClass(["lew-select-item", getSelectItemClassName(templateProps)])
|
|
14476
14600
|
}, [
|
|
14477
14601
|
createVNode(unref(LewTextTrim), {
|
|
14478
|
-
text: templateProps.label,
|
|
14602
|
+
text: templateProps.isGroup ? `${templateProps.label} (${templateProps.total})` : templateProps.label,
|
|
14479
14603
|
delay: [500, 0],
|
|
14480
14604
|
class: "lew-select-label"
|
|
14481
14605
|
}, null, 8, ["text"]),
|
|
@@ -14500,7 +14624,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
14500
14624
|
};
|
|
14501
14625
|
}
|
|
14502
14626
|
});
|
|
14503
|
-
const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14627
|
+
const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-79f78a99"]]);
|
|
14504
14628
|
const selectMultipleModel = {
|
|
14505
14629
|
modelValue: {
|
|
14506
14630
|
type: Array,
|
|
@@ -14565,18 +14689,8 @@ const selectMultipleProps = {
|
|
|
14565
14689
|
},
|
|
14566
14690
|
searchMethod: {
|
|
14567
14691
|
type: Function,
|
|
14568
|
-
default:
|
|
14569
|
-
|
|
14570
|
-
keyword
|
|
14571
|
-
}) => {
|
|
14572
|
-
if (options && keyword) {
|
|
14573
|
-
return options.filter(
|
|
14574
|
-
(option) => option.label.includes(keyword)
|
|
14575
|
-
);
|
|
14576
|
-
}
|
|
14577
|
-
return [];
|
|
14578
|
-
},
|
|
14579
|
-
description: "自定义搜索方法"
|
|
14692
|
+
default: void 0,
|
|
14693
|
+
description: "自定义搜索方法,接收搜索参数并返回过滤后的选项列表"
|
|
14580
14694
|
},
|
|
14581
14695
|
searchMethodId: {
|
|
14582
14696
|
type: String,
|
|
@@ -14615,7 +14729,7 @@ const selectMultipleProps = {
|
|
|
14615
14729
|
description: "选择框默认值"
|
|
14616
14730
|
}
|
|
14617
14731
|
};
|
|
14618
|
-
const _hoisted_1$
|
|
14732
|
+
const _hoisted_1$r = {
|
|
14619
14733
|
key: 0,
|
|
14620
14734
|
class: "lew-search-input"
|
|
14621
14735
|
};
|
|
@@ -14625,7 +14739,7 @@ const _hoisted_3$c = {
|
|
|
14625
14739
|
class: "lew-result-count"
|
|
14626
14740
|
};
|
|
14627
14741
|
const _hoisted_4$9 = ["onClick"];
|
|
14628
|
-
const _sfc_main$
|
|
14742
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
14629
14743
|
__name: "LewSelectMultiple",
|
|
14630
14744
|
props: /* @__PURE__ */ mergeModels(selectMultipleProps, {
|
|
14631
14745
|
"modelValue": {},
|
|
@@ -14649,7 +14763,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14649
14763
|
selectWidth: 0,
|
|
14650
14764
|
visible: false,
|
|
14651
14765
|
loading: false,
|
|
14652
|
-
options: props2.options,
|
|
14766
|
+
options: flattenOptions(props2.options),
|
|
14653
14767
|
keyword: ""
|
|
14654
14768
|
});
|
|
14655
14769
|
const formMethods = inject("formMethods", {});
|
|
@@ -14658,8 +14772,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14658
14772
|
return props2.searchMethod;
|
|
14659
14773
|
} else if (props2.searchMethodId) {
|
|
14660
14774
|
return formMethods[props2.searchMethodId];
|
|
14775
|
+
} else {
|
|
14776
|
+
return defaultSearchMethod;
|
|
14661
14777
|
}
|
|
14662
|
-
return false;
|
|
14663
14778
|
});
|
|
14664
14779
|
const getSelectWidth = () => {
|
|
14665
14780
|
var _a2;
|
|
@@ -14685,10 +14800,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14685
14800
|
if (props2.searchable) {
|
|
14686
14801
|
let result = [];
|
|
14687
14802
|
if (!keyword && props2.options.length > 0) {
|
|
14688
|
-
result = props2.options;
|
|
14803
|
+
result = flattenOptions(props2.options);
|
|
14689
14804
|
} else {
|
|
14690
14805
|
result = await _searchMethod.value({
|
|
14691
|
-
options: props2.options,
|
|
14806
|
+
options: flattenOptions(props2.options),
|
|
14692
14807
|
keyword
|
|
14693
14808
|
});
|
|
14694
14809
|
}
|
|
@@ -14717,7 +14832,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14717
14832
|
emit2("change", selectValue.value);
|
|
14718
14833
|
};
|
|
14719
14834
|
const selectHandle = (item) => {
|
|
14720
|
-
if (item.disabled) {
|
|
14835
|
+
if (item.disabled || item.isGroup) {
|
|
14721
14836
|
return;
|
|
14722
14837
|
}
|
|
14723
14838
|
const _value = selectValue.value || [];
|
|
@@ -14767,11 +14882,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14767
14882
|
});
|
|
14768
14883
|
});
|
|
14769
14884
|
const getSelectItemClassName = (e) => {
|
|
14770
|
-
const { disabled } = e;
|
|
14885
|
+
const { disabled, isGroup } = e;
|
|
14771
14886
|
const active = getChecked.value(e.value);
|
|
14772
14887
|
return object2class("lew-select-item", {
|
|
14773
14888
|
disabled,
|
|
14774
|
-
active
|
|
14889
|
+
active,
|
|
14890
|
+
"is-group": isGroup
|
|
14775
14891
|
});
|
|
14776
14892
|
};
|
|
14777
14893
|
const getIconSize = computed(() => {
|
|
@@ -14802,6 +14918,18 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14802
14918
|
getSelectWidth();
|
|
14803
14919
|
});
|
|
14804
14920
|
__expose2({ show, hide: hide2 });
|
|
14921
|
+
watch(
|
|
14922
|
+
() => props2.options,
|
|
14923
|
+
() => {
|
|
14924
|
+
state.options = flattenOptions(props2.options);
|
|
14925
|
+
},
|
|
14926
|
+
{
|
|
14927
|
+
deep: true
|
|
14928
|
+
}
|
|
14929
|
+
);
|
|
14930
|
+
const getResultNum = computed(() => {
|
|
14931
|
+
return numFormat(state.options.filter((e) => !e.isGroup).length);
|
|
14932
|
+
});
|
|
14805
14933
|
return (_ctx, _cache) => {
|
|
14806
14934
|
return openBlock(), createBlock(unref(_sfc_main$5), {
|
|
14807
14935
|
ref_key: "lewPopoverRef",
|
|
@@ -14809,7 +14937,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14809
14937
|
popoverBodyClassName: "lew-select-multiple-popover-body",
|
|
14810
14938
|
class: "lew-select-view",
|
|
14811
14939
|
trigger: _ctx.trigger,
|
|
14812
|
-
disabled: _ctx.disabled,
|
|
14940
|
+
disabled: _ctx.disabled || _ctx.readonly,
|
|
14813
14941
|
placement: "bottom-start",
|
|
14814
14942
|
style: { "width": "100%" },
|
|
14815
14943
|
offset: [-1, 10],
|
|
@@ -14858,7 +14986,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14858
14986
|
createVNode(TransitionGroup, { name: "list" }, {
|
|
14859
14987
|
default: withCtx(() => [
|
|
14860
14988
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getLabels), (item, index2) => {
|
|
14861
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
14989
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
14862
14990
|
key: index2,
|
|
14863
14991
|
type: "light",
|
|
14864
14992
|
size: _ctx.size,
|
|
@@ -14907,7 +15035,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14907
15035
|
}, {
|
|
14908
15036
|
default: withCtx(() => [
|
|
14909
15037
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getLabels), (item, index2) => {
|
|
14910
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
15038
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
14911
15039
|
key: index2,
|
|
14912
15040
|
type: "light",
|
|
14913
15041
|
size: _ctx.size,
|
|
@@ -14943,7 +15071,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14943
15071
|
style: normalizeStyle(`width:${unref(state).selectWidth}px`)
|
|
14944
15072
|
}, [
|
|
14945
15073
|
renderSlot(_ctx.$slots, "header", {}, void 0, true),
|
|
14946
|
-
_ctx.searchable ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15074
|
+
_ctx.searchable ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
14947
15075
|
withDirectives(createElementVNode("input", {
|
|
14948
15076
|
ref_key: "searchInputRef",
|
|
14949
15077
|
ref: searchInputRef,
|
|
@@ -14968,7 +15096,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14968
15096
|
_: 1
|
|
14969
15097
|
}))
|
|
14970
15098
|
], 64)) : createCommentVNode("", true),
|
|
14971
|
-
_ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, " 共 " + toDisplayString(unref(
|
|
15099
|
+
_ctx.searchable && unref(state).options && unref(state).options.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, " 共 " + toDisplayString(unref(getResultNum)) + " 条结果 ", 1)) : createCommentVNode("", true),
|
|
14972
15100
|
unref(state).options.length > 0 ? (openBlock(), createBlock(unref(UseVirtualList), {
|
|
14973
15101
|
key: unref(getVirtualHeight),
|
|
14974
15102
|
class: "lew-select-options-list lew-scrollbar",
|
|
@@ -14994,16 +15122,16 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
14994
15122
|
key: 1,
|
|
14995
15123
|
class: normalizeClass(["lew-select-item lew-select-item-mul", getSelectItemClassName(templateProps)])
|
|
14996
15124
|
}, [
|
|
14997
|
-
(openBlock(), createBlock(unref(LewCheckbox), {
|
|
15125
|
+
!templateProps.isGroup ? (openBlock(), createBlock(unref(LewCheckbox), {
|
|
14998
15126
|
key: templateProps.value,
|
|
14999
15127
|
class: "lew-select-checkbox",
|
|
15000
15128
|
checked: unref(getChecked)(templateProps.value)
|
|
15001
|
-
}, null, 8, ["checked"])),
|
|
15129
|
+
}, null, 8, ["checked"])) : createCommentVNode("", true),
|
|
15002
15130
|
createVNode(unref(LewTextTrim), {
|
|
15003
|
-
text: templateProps.label,
|
|
15131
|
+
text: templateProps.isGroup ? `${templateProps.label} (${templateProps.total})` : templateProps.label,
|
|
15004
15132
|
delay: [500, 0],
|
|
15005
|
-
class: "lew-select-label"
|
|
15006
|
-
}, null, 8, ["text"])
|
|
15133
|
+
class: normalizeClass(["lew-select-label", { "is-group": templateProps.isGroup }])
|
|
15134
|
+
}, null, 8, ["text", "class"])
|
|
15007
15135
|
], 2))
|
|
15008
15136
|
], 12, _hoisted_4$9)
|
|
15009
15137
|
]),
|
|
@@ -15018,7 +15146,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15018
15146
|
};
|
|
15019
15147
|
}
|
|
15020
15148
|
});
|
|
15021
|
-
const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15149
|
+
const LewSelectMultiple = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-570fb8d3"]]);
|
|
15022
15150
|
const getHeadDate = ["一", "二", "三", "四", "五", "六", "日"];
|
|
15023
15151
|
const getMonthDate = (year, month) => {
|
|
15024
15152
|
const ret = [];
|
|
@@ -15406,7 +15534,7 @@ var dayjs_min = { exports: {} };
|
|
|
15406
15534
|
})(dayjs_min);
|
|
15407
15535
|
var dayjs_minExports = dayjs_min.exports;
|
|
15408
15536
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
15409
|
-
const _hoisted_1$
|
|
15537
|
+
const _hoisted_1$q = { class: "lew-date" };
|
|
15410
15538
|
const _hoisted_2$g = { class: "lew-date-control-left" };
|
|
15411
15539
|
const _hoisted_3$b = { class: "cur-date" };
|
|
15412
15540
|
const _hoisted_4$8 = { style: { "width": "22px", "text-align": "center" } };
|
|
@@ -15420,7 +15548,7 @@ const _hoisted_10$2 = {
|
|
|
15420
15548
|
class: "lew-date-item-today"
|
|
15421
15549
|
};
|
|
15422
15550
|
const _hoisted_11$2 = { class: "lew-date-value" };
|
|
15423
|
-
const _sfc_main$
|
|
15551
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
15424
15552
|
__name: "LewDate",
|
|
15425
15553
|
props: /* @__PURE__ */ mergeModels(dateProps, {
|
|
15426
15554
|
"modelValue": {},
|
|
@@ -15494,7 +15622,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15494
15622
|
return object2class("lew-date-item", { e, selected });
|
|
15495
15623
|
});
|
|
15496
15624
|
return (_ctx, _cache) => {
|
|
15497
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15625
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
15498
15626
|
createVNode(unref(LewFlex), {
|
|
15499
15627
|
x: "start",
|
|
15500
15628
|
mode: "between",
|
|
@@ -15587,10 +15715,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15587
15715
|
};
|
|
15588
15716
|
}
|
|
15589
15717
|
});
|
|
15590
|
-
const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15591
|
-
const _hoisted_1$
|
|
15718
|
+
const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-5964f565"]]);
|
|
15719
|
+
const _hoisted_1$p = { class: "lew-date-picker-view" };
|
|
15592
15720
|
const _hoisted_2$f = ["onClick"];
|
|
15593
|
-
const _sfc_main$
|
|
15721
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
15594
15722
|
__name: "LewDatePicker",
|
|
15595
15723
|
props: /* @__PURE__ */ mergeModels(datePickerProps, {
|
|
15596
15724
|
"modelValue": {},
|
|
@@ -15677,7 +15805,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
15677
15805
|
onHide: hideHandle
|
|
15678
15806
|
}, {
|
|
15679
15807
|
trigger: withCtx(() => [
|
|
15680
|
-
createElementVNode("div", _hoisted_1$
|
|
15808
|
+
createElementVNode("div", _hoisted_1$p, [
|
|
15681
15809
|
createElementVNode("div", {
|
|
15682
15810
|
class: normalizeClass(["lew-date-picker", unref(lewDatePickerClassNames)]),
|
|
15683
15811
|
style: normalizeStyle(unref(getDatePickerInputStyle))
|
|
@@ -15774,7 +15902,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
15774
15902
|
};
|
|
15775
15903
|
}
|
|
15776
15904
|
});
|
|
15777
|
-
const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15905
|
+
const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-b8f08a4e"]]);
|
|
15778
15906
|
const dateRangePickerModel = {
|
|
15779
15907
|
modelValue: {
|
|
15780
15908
|
type: Object,
|
|
@@ -15883,7 +16011,7 @@ const dateRangeProps = {
|
|
|
15883
16011
|
description: "日期格式化字符串"
|
|
15884
16012
|
}
|
|
15885
16013
|
};
|
|
15886
|
-
const _hoisted_1$
|
|
16014
|
+
const _hoisted_1$o = { class: "lew-date-range" };
|
|
15887
16015
|
const _hoisted_2$e = { class: "lew-date" };
|
|
15888
16016
|
const _hoisted_3$a = { class: "lew-date-control-left" };
|
|
15889
16017
|
const _hoisted_4$7 = { class: "cur-date" };
|
|
@@ -15908,7 +16036,7 @@ const _hoisted_19 = {
|
|
|
15908
16036
|
key: 0,
|
|
15909
16037
|
class: "lew-date-item-today"
|
|
15910
16038
|
};
|
|
15911
|
-
const _sfc_main$
|
|
16039
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
15912
16040
|
__name: "LewDateRange",
|
|
15913
16041
|
props: /* @__PURE__ */ mergeModels(dateRangeProps, {
|
|
15914
16042
|
"modelValue": {},
|
|
@@ -16160,7 +16288,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16160
16288
|
init();
|
|
16161
16289
|
__expose2({ init });
|
|
16162
16290
|
return (_ctx, _cache) => {
|
|
16163
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16291
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
16164
16292
|
createElementVNode("div", _hoisted_2$e, [
|
|
16165
16293
|
createVNode(unref(LewFlex), {
|
|
16166
16294
|
x: "start",
|
|
@@ -16355,8 +16483,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16355
16483
|
};
|
|
16356
16484
|
}
|
|
16357
16485
|
});
|
|
16358
|
-
const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16359
|
-
const _hoisted_1$
|
|
16486
|
+
const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-ac11df30"]]);
|
|
16487
|
+
const _hoisted_1$n = { class: "lew-date-range-picker-view" };
|
|
16360
16488
|
const _hoisted_2$d = {
|
|
16361
16489
|
key: 0,
|
|
16362
16490
|
class: "lew-date-range-picker-placeholder"
|
|
@@ -16374,7 +16502,7 @@ const _hoisted_6$2 = {
|
|
|
16374
16502
|
key: 3,
|
|
16375
16503
|
class: "lew-date-range-picker-dateValue lew-date-range-picker-end"
|
|
16376
16504
|
};
|
|
16377
|
-
const _sfc_main$
|
|
16505
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
16378
16506
|
__name: "LewDateRangePicker",
|
|
16379
16507
|
props: /* @__PURE__ */ mergeModels(dateRangePickerProps, {
|
|
16380
16508
|
"modelValue": {},
|
|
@@ -16461,7 +16589,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16461
16589
|
onHide: hideHandle
|
|
16462
16590
|
}, {
|
|
16463
16591
|
trigger: withCtx(() => [
|
|
16464
|
-
createElementVNode("div", _hoisted_1$
|
|
16592
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
16465
16593
|
createElementVNode("div", {
|
|
16466
16594
|
class: normalizeClass(["lew-date-range-picker", unref(lewDateRangeClassNames)]),
|
|
16467
16595
|
style: normalizeStyle(unref(getDateRangePickerInputStyle))
|
|
@@ -16524,7 +16652,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16524
16652
|
};
|
|
16525
16653
|
}
|
|
16526
16654
|
});
|
|
16527
|
-
const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16655
|
+
const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-61368d37"]]);
|
|
16528
16656
|
const cascaderModel = {
|
|
16529
16657
|
modelValue: {
|
|
16530
16658
|
type: [String, Number],
|
|
@@ -16612,13 +16740,13 @@ const cascaderProps = {
|
|
|
16612
16740
|
description: "是否只读"
|
|
16613
16741
|
}
|
|
16614
16742
|
};
|
|
16615
|
-
const _hoisted_1$
|
|
16743
|
+
const _hoisted_1$m = { key: 1 };
|
|
16616
16744
|
const _hoisted_2$c = {
|
|
16617
16745
|
class: "lew-cascader-item-padding",
|
|
16618
16746
|
style: { height: "38px" }
|
|
16619
16747
|
};
|
|
16620
16748
|
const _hoisted_3$8 = ["onClick"];
|
|
16621
|
-
const _sfc_main$
|
|
16749
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
16622
16750
|
__name: "LewCascader",
|
|
16623
16751
|
props: /* @__PURE__ */ mergeModels(cascaderProps, {
|
|
16624
16752
|
"modelValue": {
|
|
@@ -16968,7 +17096,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
16968
17096
|
_ctx.showAllLevels ? (openBlock(), createBlock(unref(LewTextTrim), {
|
|
16969
17097
|
key: 0,
|
|
16970
17098
|
text: unref(getLabel).join(" / ")
|
|
16971
|
-
}, null, 8, ["text"])) : unref(getLabel) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
17099
|
+
}, null, 8, ["text"])) : unref(getLabel) ? (openBlock(), createElementBlock("span", _hoisted_1$m, toDisplayString(unref(getLabel)[unref(getLabel).length - 1]), 1)) : createCommentVNode("", true)
|
|
16972
17100
|
], 4), [
|
|
16973
17101
|
[vShow, unref(getLabel) && unref(getLabel).length > 0]
|
|
16974
17102
|
]),
|
|
@@ -17095,7 +17223,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17095
17223
|
};
|
|
17096
17224
|
}
|
|
17097
17225
|
});
|
|
17098
|
-
const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17226
|
+
const LewCascader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-125f865d"]]);
|
|
17099
17227
|
const treeSelectModel = {
|
|
17100
17228
|
modelValue: {
|
|
17101
17229
|
type: [String, Number],
|
|
@@ -17255,14 +17383,14 @@ const treeSelectProps = {
|
|
|
17255
17383
|
description: "异步加载子节点数据的方法"
|
|
17256
17384
|
}
|
|
17257
17385
|
};
|
|
17258
|
-
const _hoisted_1$
|
|
17386
|
+
const _hoisted_1$l = ["readonly", "placeholder"];
|
|
17259
17387
|
const _hoisted_2$b = { class: "lew-select-options-box" };
|
|
17260
17388
|
const _hoisted_3$7 = {
|
|
17261
17389
|
key: 0,
|
|
17262
17390
|
class: "result-count"
|
|
17263
17391
|
};
|
|
17264
17392
|
const _hoisted_4$5 = { class: "tree-select-wrapper lew-scrollbar" };
|
|
17265
|
-
const _sfc_main$
|
|
17393
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
17266
17394
|
__name: "LewTreeSelect",
|
|
17267
17395
|
props: /* @__PURE__ */ mergeModels(treeSelectProps, {
|
|
17268
17396
|
"modelValue": {},
|
|
@@ -17480,7 +17608,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17480
17608
|
placeholder: unref(state).keywordBackup || props2.placeholder,
|
|
17481
17609
|
onInput: _cache[1] || (_cache[1] = //@ts-ignore
|
|
17482
17610
|
(...args) => unref(searchDebounce) && unref(searchDebounce)(...args))
|
|
17483
|
-
}, null, 44, _hoisted_1$
|
|
17611
|
+
}, null, 44, _hoisted_1$l), [
|
|
17484
17612
|
[vModelText, unref(state).keyword]
|
|
17485
17613
|
])
|
|
17486
17614
|
], 2)
|
|
@@ -17539,9 +17667,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17539
17667
|
};
|
|
17540
17668
|
}
|
|
17541
17669
|
});
|
|
17542
|
-
const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17543
|
-
const _hoisted_1$
|
|
17544
|
-
const _sfc_main$
|
|
17670
|
+
const LewTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-8b411b09"]]);
|
|
17671
|
+
const _hoisted_1$k = { class: "lew-form-modal lew-scrollbar" };
|
|
17672
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
17545
17673
|
__name: "FormModal",
|
|
17546
17674
|
props: {
|
|
17547
17675
|
options: {
|
|
@@ -17611,7 +17739,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
17611
17739
|
title: `${unref(editIndex) >= 0 ? "编辑" : "新增"}数据`
|
|
17612
17740
|
}, {
|
|
17613
17741
|
default: withCtx(() => [
|
|
17614
|
-
createElementVNode("div", _hoisted_1$
|
|
17742
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
17615
17743
|
createVNode(unref(LewForm), {
|
|
17616
17744
|
siz: __props2.size,
|
|
17617
17745
|
onMounted: formMounted,
|
|
@@ -17627,7 +17755,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
17627
17755
|
};
|
|
17628
17756
|
}
|
|
17629
17757
|
});
|
|
17630
|
-
const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17758
|
+
const FormModal = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b9fc98a8"]]);
|
|
17631
17759
|
const inputTableModel = {
|
|
17632
17760
|
modelValue: {
|
|
17633
17761
|
type: Array,
|
|
@@ -17765,7 +17893,7 @@ const inputTableProps = {
|
|
|
17765
17893
|
description: "指定一个不可重复的字段,用于添加数据时检查重复"
|
|
17766
17894
|
}
|
|
17767
17895
|
};
|
|
17768
|
-
const _sfc_main$
|
|
17896
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
17769
17897
|
__name: "LewInputTable",
|
|
17770
17898
|
props: /* @__PURE__ */ mergeModels(inputTableProps, {
|
|
17771
17899
|
"modelValue": { required: true },
|
|
@@ -17773,6 +17901,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17773
17901
|
}),
|
|
17774
17902
|
emits: ["update:modelValue"],
|
|
17775
17903
|
setup(__props2) {
|
|
17904
|
+
var _a;
|
|
17905
|
+
const app2 = (_a = getCurrentInstance()) == null ? void 0 : _a.appContext.app;
|
|
17906
|
+
if (app2 && !app2.directive("tooltip")) {
|
|
17907
|
+
app2.use(LewMessage$1);
|
|
17908
|
+
}
|
|
17776
17909
|
const modelValue2 = useModel(__props2, "modelValue");
|
|
17777
17910
|
const setUseId = () => {
|
|
17778
17911
|
(modelValue2.value || []).forEach((e) => {
|
|
@@ -17818,7 +17951,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17818
17951
|
};
|
|
17819
17952
|
const del = ({ index: index2 }) => {
|
|
17820
17953
|
if ((modelValue2.value || []).length <= props2.minRows) {
|
|
17821
|
-
LewMessage.warning("已达到最小行数限制,无法删除");
|
|
17954
|
+
LewMessage$1.warning("已达到最小行数限制,无法删除");
|
|
17822
17955
|
return;
|
|
17823
17956
|
}
|
|
17824
17957
|
LewDialog.error({
|
|
@@ -17834,7 +17967,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17834
17967
|
};
|
|
17835
17968
|
const add2 = () => {
|
|
17836
17969
|
if ((modelValue2.value || []).length >= props2.maxRows) {
|
|
17837
|
-
LewMessage.warning("已达到最大行数限制,无法添加");
|
|
17970
|
+
LewMessage$1.warning("已达到最大行数限制,无法添加");
|
|
17838
17971
|
return;
|
|
17839
17972
|
}
|
|
17840
17973
|
let row = cloneDeep(props2.defaultForm);
|
|
@@ -17856,7 +17989,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17856
17989
|
const selectedKeys = ref([]);
|
|
17857
17990
|
const batchDelete = () => {
|
|
17858
17991
|
if ((selectedKeys.value || []).length === 0) {
|
|
17859
|
-
LewMessage.warning("请先选择要删除的数据");
|
|
17992
|
+
LewMessage$1.warning("请先选择要删除的数据");
|
|
17860
17993
|
return;
|
|
17861
17994
|
}
|
|
17862
17995
|
LewDialog.error({
|
|
@@ -17886,7 +18019,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17886
18019
|
});
|
|
17887
18020
|
};
|
|
17888
18021
|
const checkUniqueFieldFn = (form) => {
|
|
17889
|
-
var
|
|
18022
|
+
var _a2;
|
|
17890
18023
|
if (!props2.uniqueField) {
|
|
17891
18024
|
return true;
|
|
17892
18025
|
}
|
|
@@ -17895,16 +18028,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17895
18028
|
(item) => item[props2.uniqueField] === fieldValue
|
|
17896
18029
|
);
|
|
17897
18030
|
if (!vail) {
|
|
17898
|
-
const label = (
|
|
18031
|
+
const label = (_a2 = formOptions.value.find(
|
|
17899
18032
|
(e) => e.field === props2.uniqueField
|
|
17900
|
-
)) == null ? void 0 :
|
|
17901
|
-
LewMessage.warning(`该${label}已存在。请输入一个不重复的${label}。`);
|
|
18033
|
+
)) == null ? void 0 : _a2.label;
|
|
18034
|
+
LewMessage$1.warning(`该${label}已存在。请输入一个不重复的${label}。`);
|
|
17902
18035
|
return false;
|
|
17903
18036
|
}
|
|
17904
18037
|
return true;
|
|
17905
18038
|
};
|
|
17906
18039
|
const sortRows = () => {
|
|
17907
|
-
LewMessage.info("该功能正在开发中,敬请期待");
|
|
18040
|
+
LewMessage$1.info("该功能正在开发中,敬请期待");
|
|
17908
18041
|
};
|
|
17909
18042
|
const isMaxRowsReached = computed(
|
|
17910
18043
|
() => (modelValue2.value || []).length >= props2.maxRows
|
|
@@ -17938,7 +18071,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
17938
18071
|
})
|
|
17939
18072
|
}, {
|
|
17940
18073
|
default: withCtx(() => [
|
|
17941
|
-
createVNode(unref(_sfc_main$
|
|
18074
|
+
createVNode(unref(_sfc_main$g), {
|
|
17942
18075
|
size: _ctx.size,
|
|
17943
18076
|
checkable: _ctx.batchDeletable,
|
|
17944
18077
|
"row-key": _ctx.rowKey,
|
|
@@ -18092,7 +18225,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18092
18225
|
};
|
|
18093
18226
|
}
|
|
18094
18227
|
});
|
|
18095
|
-
const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18228
|
+
const LewInputTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-a7bdcbfd"]]);
|
|
18096
18229
|
const switchModel = {
|
|
18097
18230
|
modelValue: {
|
|
18098
18231
|
type: Boolean,
|
|
@@ -18155,8 +18288,8 @@ const switchProps = {
|
|
|
18155
18288
|
description: "是否显示加载状态"
|
|
18156
18289
|
}
|
|
18157
18290
|
};
|
|
18158
|
-
const _hoisted_1$
|
|
18159
|
-
const _sfc_main$
|
|
18291
|
+
const _hoisted_1$j = ["disabled"];
|
|
18292
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18160
18293
|
__name: "LewSwitch",
|
|
18161
18294
|
props: /* @__PURE__ */ mergeModels(switchProps, {
|
|
18162
18295
|
"modelValue": {},
|
|
@@ -18254,7 +18387,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18254
18387
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue2.value = $event),
|
|
18255
18388
|
type: "checkbox",
|
|
18256
18389
|
disabled: _ctx.disabled
|
|
18257
|
-
}, null, 8, _hoisted_1$
|
|
18390
|
+
}, null, 8, _hoisted_1$j), [
|
|
18258
18391
|
[vShow, false],
|
|
18259
18392
|
[vModelCheckbox, modelValue2.value]
|
|
18260
18393
|
]),
|
|
@@ -18263,7 +18396,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18263
18396
|
};
|
|
18264
18397
|
}
|
|
18265
18398
|
});
|
|
18266
|
-
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18399
|
+
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-f9d855ca"]]);
|
|
18267
18400
|
const sliderModel = {
|
|
18268
18401
|
modelValue: {
|
|
18269
18402
|
type: [Number, void 0],
|
|
@@ -18353,9 +18486,9 @@ const sliderProps = {
|
|
|
18353
18486
|
description: "格式化 tooltip 内容"
|
|
18354
18487
|
}
|
|
18355
18488
|
};
|
|
18356
|
-
const _hoisted_1$
|
|
18489
|
+
const _hoisted_1$i = { class: "lew-slider-track-line" };
|
|
18357
18490
|
const _hoisted_2$a = ["onClick"];
|
|
18358
|
-
const _sfc_main$
|
|
18491
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
18359
18492
|
__name: "LewSlider",
|
|
18360
18493
|
props: /* @__PURE__ */ mergeModels(sliderProps, {
|
|
18361
18494
|
"modelValue": {},
|
|
@@ -18564,7 +18697,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18564
18697
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
18565
18698
|
}, ["stop"]))
|
|
18566
18699
|
}, null, 4),
|
|
18567
|
-
createElementVNode("div", _hoisted_1$
|
|
18700
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
18568
18701
|
createElementVNode("div", {
|
|
18569
18702
|
class: "lew-slider-track-line-range",
|
|
18570
18703
|
style: normalizeStyle({
|
|
@@ -18627,7 +18760,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18627
18760
|
};
|
|
18628
18761
|
}
|
|
18629
18762
|
});
|
|
18630
|
-
const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18763
|
+
const LewSlider = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0fac63bf"]]);
|
|
18631
18764
|
const sliderRangeModel = {
|
|
18632
18765
|
modelValue: {
|
|
18633
18766
|
type: Array,
|
|
@@ -18717,8 +18850,8 @@ const sliderRangeProps = {
|
|
|
18717
18850
|
description: "格式化 tooltip 内容"
|
|
18718
18851
|
}
|
|
18719
18852
|
};
|
|
18720
|
-
const _hoisted_1$
|
|
18721
|
-
const _sfc_main$
|
|
18853
|
+
const _hoisted_1$h = { class: "lew-slider-track-line" };
|
|
18854
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18722
18855
|
__name: "LewSliderRange",
|
|
18723
18856
|
props: /* @__PURE__ */ mergeModels(sliderRangeProps, {
|
|
18724
18857
|
"modelValue": {},
|
|
@@ -18937,7 +19070,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18937
19070
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
18938
19071
|
}, ["stop"]))
|
|
18939
19072
|
}, null, 4),
|
|
18940
|
-
createElementVNode("div", _hoisted_1$
|
|
19073
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
18941
19074
|
createElementVNode("div", {
|
|
18942
19075
|
class: "lew-slider-track-line-range",
|
|
18943
19076
|
style: normalizeStyle({
|
|
@@ -19017,7 +19150,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19017
19150
|
};
|
|
19018
19151
|
}
|
|
19019
19152
|
});
|
|
19020
|
-
const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19153
|
+
const LewSliderRange = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-d48f33f4"]]);
|
|
19021
19154
|
const colorPickerModel = {
|
|
19022
19155
|
modelValue: {
|
|
19023
19156
|
type: String,
|
|
@@ -19051,8 +19184,8 @@ const colorPickerProps = {
|
|
|
19051
19184
|
description: "是否只读"
|
|
19052
19185
|
}
|
|
19053
19186
|
};
|
|
19054
|
-
const _hoisted_1$
|
|
19055
|
-
const _sfc_main$
|
|
19187
|
+
const _hoisted_1$g = ["placeholder"];
|
|
19188
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
19056
19189
|
__name: "LewColorPicker",
|
|
19057
19190
|
props: /* @__PURE__ */ mergeModels(colorPickerProps, {
|
|
19058
19191
|
"modelValue": {},
|
|
@@ -19166,7 +19299,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19166
19299
|
onFocus: focus,
|
|
19167
19300
|
onBlur: blur,
|
|
19168
19301
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue2.value = $event)
|
|
19169
|
-
}, null, 44, _hoisted_1$
|
|
19302
|
+
}, null, 44, _hoisted_1$g), [
|
|
19170
19303
|
[vModelText, modelValue2.value]
|
|
19171
19304
|
])
|
|
19172
19305
|
], 6)
|
|
@@ -19174,7 +19307,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19174
19307
|
};
|
|
19175
19308
|
}
|
|
19176
19309
|
});
|
|
19177
|
-
const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19310
|
+
const LewColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-5601dfdf"]]);
|
|
19178
19311
|
const uploadProps = {
|
|
19179
19312
|
accept: {
|
|
19180
19313
|
type: String,
|
|
@@ -19321,9 +19454,9 @@ const statusColorMap = {
|
|
|
19321
19454
|
wrong_type: "red",
|
|
19322
19455
|
wrong_size: "red"
|
|
19323
19456
|
};
|
|
19324
|
-
const _hoisted_1$
|
|
19457
|
+
const _hoisted_1$f = ["src"];
|
|
19325
19458
|
const _hoisted_2$9 = { key: 1 };
|
|
19326
|
-
const _sfc_main$
|
|
19459
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
19327
19460
|
__name: "LewUploadByList",
|
|
19328
19461
|
props: /* @__PURE__ */ mergeModels(uploadByListProps, {
|
|
19329
19462
|
"modelValue": {},
|
|
@@ -19418,7 +19551,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19418
19551
|
key: 1,
|
|
19419
19552
|
class: "lew-upload-file-icon",
|
|
19420
19553
|
src: unref(getFileIcon)(item.name)
|
|
19421
|
-
}, null, 8, _hoisted_1$
|
|
19554
|
+
}, null, 8, _hoisted_1$f))
|
|
19422
19555
|
]),
|
|
19423
19556
|
_: 2
|
|
19424
19557
|
}, 1032, ["style"]),
|
|
@@ -19539,7 +19672,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19539
19672
|
x: "end"
|
|
19540
19673
|
}, {
|
|
19541
19674
|
default: withCtx(() => [
|
|
19542
|
-
createVNode(unref(_sfc_main$
|
|
19675
|
+
createVNode(unref(_sfc_main$Z), {
|
|
19543
19676
|
type: "light",
|
|
19544
19677
|
size: "small",
|
|
19545
19678
|
color: unref(statusColorMap)[item.status || "complete"]
|
|
@@ -19581,9 +19714,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19581
19714
|
};
|
|
19582
19715
|
}
|
|
19583
19716
|
});
|
|
19584
|
-
const LewUploadByList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19585
|
-
const _hoisted_1$
|
|
19586
|
-
const _sfc_main$
|
|
19717
|
+
const LewUploadByList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-636c30e6"]]);
|
|
19718
|
+
const _hoisted_1$e = ["src"];
|
|
19719
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
19587
19720
|
__name: "LewUploadByCard",
|
|
19588
19721
|
props: /* @__PURE__ */ mergeModels(uploadByCardProps, {
|
|
19589
19722
|
"modelValue": {},
|
|
@@ -19732,7 +19865,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19732
19865
|
}),
|
|
19733
19866
|
class: "lew-upload-file-icon",
|
|
19734
19867
|
src: unref(getFileIcon)(item.name)
|
|
19735
|
-
}, null, 12, _hoisted_1$
|
|
19868
|
+
}, null, 12, _hoisted_1$e))
|
|
19736
19869
|
]),
|
|
19737
19870
|
_: 2
|
|
19738
19871
|
}, 1032, ["style"])
|
|
@@ -19776,9 +19909,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19776
19909
|
};
|
|
19777
19910
|
}
|
|
19778
19911
|
});
|
|
19779
|
-
const LewUploadByCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19780
|
-
const _hoisted_1$
|
|
19781
|
-
const _sfc_main$
|
|
19912
|
+
const LewUploadByCard = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c290a998"]]);
|
|
19913
|
+
const _hoisted_1$d = ["multiple", "accept"];
|
|
19914
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
19782
19915
|
__name: "LewUpload",
|
|
19783
19916
|
props: /* @__PURE__ */ mergeModels(uploadProps, {
|
|
19784
19917
|
"modelValue": {},
|
|
@@ -20087,7 +20220,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20087
20220
|
multiple: _ctx.multiple,
|
|
20088
20221
|
accept: _ctx.accept,
|
|
20089
20222
|
onChange: withModifiers(clickUpload, ["stop"])
|
|
20090
|
-
}, null, 40, _hoisted_1$
|
|
20223
|
+
}, null, 40, _hoisted_1$d),
|
|
20091
20224
|
createElementVNode("input", {
|
|
20092
20225
|
class: "lew-upload-input",
|
|
20093
20226
|
ref_key: "inputPasteRef",
|
|
@@ -20117,7 +20250,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20117
20250
|
};
|
|
20118
20251
|
}
|
|
20119
20252
|
});
|
|
20120
|
-
const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20253
|
+
const LewUpload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-9cb4e5cd"]]);
|
|
20121
20254
|
const tableModel = {
|
|
20122
20255
|
selectedKeys: {
|
|
20123
20256
|
type: [Array, String, Number, void 0],
|
|
@@ -20206,7 +20339,7 @@ const tableProps = {
|
|
|
20206
20339
|
}
|
|
20207
20340
|
}
|
|
20208
20341
|
};
|
|
20209
|
-
const _sfc_main$
|
|
20342
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
20210
20343
|
__name: "SortIcon",
|
|
20211
20344
|
props: {
|
|
20212
20345
|
sortValue: {
|
|
@@ -20267,8 +20400,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
20267
20400
|
};
|
|
20268
20401
|
}
|
|
20269
20402
|
});
|
|
20270
|
-
const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20271
|
-
const _hoisted_1$
|
|
20403
|
+
const SortIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-62110f01"]]);
|
|
20404
|
+
const _hoisted_1$c = { class: "lew-table-wrapper" };
|
|
20272
20405
|
const _hoisted_2$8 = { class: "lew-table-header" };
|
|
20273
20406
|
const _hoisted_3$6 = { class: "lew-table-tr" };
|
|
20274
20407
|
const _hoisted_4$4 = { class: "lew-table-title-span" };
|
|
@@ -20290,7 +20423,7 @@ const _hoisted_14 = {
|
|
|
20290
20423
|
};
|
|
20291
20424
|
const _hoisted_15 = ["onMouseenter"];
|
|
20292
20425
|
const _hoisted_16 = { class: "lew-table-footer" };
|
|
20293
|
-
const _sfc_main$
|
|
20426
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
20294
20427
|
__name: "LewTable",
|
|
20295
20428
|
props: /* @__PURE__ */ mergeModels(tableProps, {
|
|
20296
20429
|
"selectedKeys": {},
|
|
@@ -20634,7 +20767,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
20634
20767
|
}
|
|
20635
20768
|
});
|
|
20636
20769
|
return (_ctx, _cache) => {
|
|
20637
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20770
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
20638
20771
|
createElementVNode("i", {
|
|
20639
20772
|
style: normalizeStyle({ left: unref(any2px)(unref(state).fixedLeftWidth) }),
|
|
20640
20773
|
class: normalizeClass([{
|
|
@@ -21028,8 +21161,8 @@ const paginationProps = {
|
|
|
21028
21161
|
}
|
|
21029
21162
|
}
|
|
21030
21163
|
};
|
|
21031
|
-
const _hoisted_1$
|
|
21032
|
-
const _sfc_main$
|
|
21164
|
+
const _hoisted_1$b = ["onClick"];
|
|
21165
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
21033
21166
|
__name: "LewPagination",
|
|
21034
21167
|
props: /* @__PURE__ */ mergeModels(paginationProps, {
|
|
21035
21168
|
"total": { default: 0 },
|
|
@@ -21229,7 +21362,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21229
21362
|
active: Number(page) === Number(currentPage.value)
|
|
21230
21363
|
}]),
|
|
21231
21364
|
onClick: ($event) => changePage(page)
|
|
21232
|
-
}, toDisplayString(page), 11, _hoisted_1$
|
|
21365
|
+
}, toDisplayString(page), 11, _hoisted_1$b);
|
|
21233
21366
|
}), 128)),
|
|
21234
21367
|
unref(endEllipsis) ? (openBlock(), createElementBlock("div", {
|
|
21235
21368
|
key: 3,
|
|
@@ -21295,94 +21428,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21295
21428
|
};
|
|
21296
21429
|
}
|
|
21297
21430
|
});
|
|
21298
|
-
const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21299
|
-
const magicNumberProps = {
|
|
21300
|
-
value: {
|
|
21301
|
-
type: Number,
|
|
21302
|
-
default: 999.99,
|
|
21303
|
-
description: "数字的显示值,可以是整数或小数"
|
|
21304
|
-
},
|
|
21305
|
-
size: {
|
|
21306
|
-
type: [Number, String],
|
|
21307
|
-
default: 16,
|
|
21308
|
-
description: '字体大小,可以是数字(单位为像素)或字符串(如 "16px"、"1rem")'
|
|
21309
|
-
},
|
|
21310
|
-
sep: {
|
|
21311
|
-
type: Boolean,
|
|
21312
|
-
default: false,
|
|
21313
|
-
description: "是否使用千位分隔符来格式化数字,true 表示使用分隔符,false 表示不使用"
|
|
21314
|
-
}
|
|
21315
|
-
};
|
|
21316
|
-
const _hoisted_1$b = ["textContent"];
|
|
21317
|
-
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
21318
|
-
__name: "LewMagicNumber",
|
|
21319
|
-
props: magicNumberProps,
|
|
21320
|
-
setup(__props2) {
|
|
21321
|
-
const props2 = __props2;
|
|
21322
|
-
const state = reactive({
|
|
21323
|
-
numberArr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
|
21324
|
-
});
|
|
21325
|
-
const getValueArr = computed(() => {
|
|
21326
|
-
if (typeof props2.value !== "number") {
|
|
21327
|
-
throw new Error("LewMagicNumber props value 必须为number类型!");
|
|
21328
|
-
}
|
|
21329
|
-
if (props2.sep) {
|
|
21330
|
-
return numFormat(props2.value).split("");
|
|
21331
|
-
}
|
|
21332
|
-
return String(props2.value).split("");
|
|
21333
|
-
});
|
|
21334
|
-
const getSize = computed(() => {
|
|
21335
|
-
const { size } = props2;
|
|
21336
|
-
return typeof size === "string" ? parseInt(size) : size;
|
|
21337
|
-
});
|
|
21338
|
-
const getMagicNumberStyle = computed(() => {
|
|
21339
|
-
return {
|
|
21340
|
-
height: any2px(getSize.value)
|
|
21341
|
-
};
|
|
21342
|
-
});
|
|
21343
|
-
const getItemStyle = computed(() => (item) => {
|
|
21344
|
-
const index2 = parseInt(item);
|
|
21345
|
-
return {
|
|
21346
|
-
transform: `translateY(-${getSize.value * index2}px)`
|
|
21347
|
-
};
|
|
21348
|
-
});
|
|
21349
|
-
const getNumStyle = computed(() => {
|
|
21350
|
-
const { size } = props2;
|
|
21351
|
-
return {
|
|
21352
|
-
fontSize: any2px(size),
|
|
21353
|
-
lineHeight: any2px(getSize.value),
|
|
21354
|
-
height: any2px(getSize.value)
|
|
21355
|
-
};
|
|
21356
|
-
});
|
|
21357
|
-
return (_ctx, _cache) => {
|
|
21358
|
-
return openBlock(), createElementBlock("div", {
|
|
21359
|
-
class: "lew-magic-number",
|
|
21360
|
-
style: normalizeStyle(unref(getMagicNumberStyle))
|
|
21361
|
-
}, [
|
|
21362
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getValueArr), (item, index2) => {
|
|
21363
|
-
return openBlock(), createElementBlock("div", {
|
|
21364
|
-
key: index2,
|
|
21365
|
-
style: normalizeStyle(unref(getItemStyle)(item)),
|
|
21366
|
-
class: "lew-magic-number-item"
|
|
21367
|
-
}, [
|
|
21368
|
-
item === "." || item === "," ? (openBlock(), createElementBlock("span", {
|
|
21369
|
-
key: 0,
|
|
21370
|
-
style: normalizeStyle(unref(getNumStyle))
|
|
21371
|
-
}, toDisplayString(item), 5)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(state).numberArr, (n) => {
|
|
21372
|
-
return openBlock(), createElementBlock("span", {
|
|
21373
|
-
key: n,
|
|
21374
|
-
class: "lew-magic-number-num",
|
|
21375
|
-
style: normalizeStyle(unref(getNumStyle)),
|
|
21376
|
-
textContent: toDisplayString(n)
|
|
21377
|
-
}, null, 12, _hoisted_1$b);
|
|
21378
|
-
}), 128))
|
|
21379
|
-
], 4);
|
|
21380
|
-
}), 128))
|
|
21381
|
-
], 4);
|
|
21382
|
-
};
|
|
21383
|
-
}
|
|
21384
|
-
});
|
|
21385
|
-
const LewMagicNumber = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d6958015"]]);
|
|
21431
|
+
const LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e37e24d3"]]);
|
|
21386
21432
|
const treeModel = {
|
|
21387
21433
|
modelValue: {
|
|
21388
21434
|
type: [Array, String],
|
|
@@ -21911,18 +21957,6 @@ const collapseProps = {
|
|
|
21911
21957
|
value
|
|
21912
21958
|
});
|
|
21913
21959
|
}
|
|
21914
|
-
},
|
|
21915
|
-
gap: {
|
|
21916
|
-
type: [String, Number],
|
|
21917
|
-
default: "0px",
|
|
21918
|
-
description: "折叠项之间的间距,支持 CSS 长度值。",
|
|
21919
|
-
validator(value) {
|
|
21920
|
-
return isValidCssValue({
|
|
21921
|
-
name: "LewCollapseItem",
|
|
21922
|
-
field: "radius",
|
|
21923
|
-
value
|
|
21924
|
-
});
|
|
21925
|
-
}
|
|
21926
21960
|
}
|
|
21927
21961
|
};
|
|
21928
21962
|
const collapseItemProps = {
|
|
@@ -21968,8 +22002,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
21968
22002
|
const modelValue2 = useModel(__props2, "modelValue");
|
|
21969
22003
|
provide("expandKeys", modelValue2);
|
|
21970
22004
|
const collapseStyle = computed(() => ({
|
|
21971
|
-
width: any2px(props2.width)
|
|
21972
|
-
gap: any2px(props2.gap)
|
|
22005
|
+
width: any2px(props2.width)
|
|
21973
22006
|
}));
|
|
21974
22007
|
return (_ctx, _cache) => {
|
|
21975
22008
|
return openBlock(), createElementBlock("div", {
|
|
@@ -21981,7 +22014,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
21981
22014
|
};
|
|
21982
22015
|
}
|
|
21983
22016
|
});
|
|
21984
|
-
const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
22017
|
+
const LewCollapse = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-792b7e16"]]);
|
|
21985
22018
|
const _sfc_main$c = {
|
|
21986
22019
|
props: {
|
|
21987
22020
|
name: {
|
|
@@ -22266,7 +22299,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22266
22299
|
};
|
|
22267
22300
|
}
|
|
22268
22301
|
});
|
|
22269
|
-
const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
22302
|
+
const LewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-93aae809"]]);
|
|
22270
22303
|
const descProps = {
|
|
22271
22304
|
options: {
|
|
22272
22305
|
type: Array,
|
|
@@ -23920,7 +23953,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23920
23953
|
LewAlert,
|
|
23921
23954
|
LewAvatar,
|
|
23922
23955
|
LewBackTop,
|
|
23923
|
-
LewBadge: _sfc_main$
|
|
23956
|
+
LewBadge: _sfc_main$Y,
|
|
23924
23957
|
LewBreadcrumb,
|
|
23925
23958
|
LewButton,
|
|
23926
23959
|
LewCascader,
|
|
@@ -23937,7 +23970,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23937
23970
|
LewDesc,
|
|
23938
23971
|
LewDescItem,
|
|
23939
23972
|
LewDrawer: _sfc_main$4,
|
|
23940
|
-
LewDropdown: _sfc_main$
|
|
23973
|
+
LewDropdown: _sfc_main$N,
|
|
23941
23974
|
LewEmpty: _sfc_main$2,
|
|
23942
23975
|
LewExpand,
|
|
23943
23976
|
LewFlex,
|
|
@@ -23948,7 +23981,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23948
23981
|
LewInputNumber,
|
|
23949
23982
|
LewInputTable,
|
|
23950
23983
|
LewInputTag,
|
|
23951
|
-
LewMagicNumber,
|
|
23952
23984
|
LewMark,
|
|
23953
23985
|
LewMenu,
|
|
23954
23986
|
LewMenuTree,
|
|
@@ -23963,11 +23995,11 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
23963
23995
|
LewSelectMultiple,
|
|
23964
23996
|
LewSlider,
|
|
23965
23997
|
LewSliderRange,
|
|
23966
|
-
LewSteps: _sfc_main$
|
|
23998
|
+
LewSteps: _sfc_main$R,
|
|
23967
23999
|
LewSwitch,
|
|
23968
|
-
LewTable: _sfc_main$
|
|
24000
|
+
LewTable: _sfc_main$g,
|
|
23969
24001
|
LewTabs,
|
|
23970
|
-
LewTag: _sfc_main$
|
|
24002
|
+
LewTag: _sfc_main$Z,
|
|
23971
24003
|
LewTextTrim,
|
|
23972
24004
|
LewTextarea,
|
|
23973
24005
|
LewTitle,
|
|
@@ -24019,7 +24051,6 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
24019
24051
|
inputTagModel,
|
|
24020
24052
|
inputTagProps,
|
|
24021
24053
|
lewDescSizePaddingMap,
|
|
24022
|
-
magicNumberProps,
|
|
24023
24054
|
markProps,
|
|
24024
24055
|
menuModel,
|
|
24025
24056
|
menuProps,
|
|
@@ -24262,11 +24293,11 @@ const LewVContextMenu = {
|
|
|
24262
24293
|
}
|
|
24263
24294
|
if (!window.LewContextMenu.contextMenu) {
|
|
24264
24295
|
window.LewContextMenu.contextMenu = (e) => {
|
|
24265
|
-
e.preventDefault();
|
|
24266
24296
|
const id = findContextMenuId(e.target);
|
|
24267
24297
|
if (window.LewContextMenu.disabledIds.includes(id) || !id) {
|
|
24268
24298
|
return;
|
|
24269
24299
|
}
|
|
24300
|
+
e.preventDefault();
|
|
24270
24301
|
const options = window.LewContextMenu.menu[id];
|
|
24271
24302
|
const { instance } = window.LewContextMenu;
|
|
24272
24303
|
instance.hide();
|
|
@@ -25210,7 +25241,7 @@ export {
|
|
|
25210
25241
|
LewAvatar,
|
|
25211
25242
|
LewBackTop,
|
|
25212
25243
|
index$1 as LewBacktop,
|
|
25213
|
-
_sfc_main$
|
|
25244
|
+
_sfc_main$Y as LewBadge,
|
|
25214
25245
|
LewBreadcrumb,
|
|
25215
25246
|
LewButton,
|
|
25216
25247
|
LewCascader,
|
|
@@ -25229,7 +25260,7 @@ export {
|
|
|
25229
25260
|
LewDescItem,
|
|
25230
25261
|
LewDialog$1 as LewDialog,
|
|
25231
25262
|
_sfc_main$4 as LewDrawer,
|
|
25232
|
-
_sfc_main$
|
|
25263
|
+
_sfc_main$N as LewDropdown,
|
|
25233
25264
|
_sfc_main$2 as LewEmpty,
|
|
25234
25265
|
LewExpand,
|
|
25235
25266
|
LewFlex,
|
|
@@ -25241,7 +25272,6 @@ export {
|
|
|
25241
25272
|
LewInputTable,
|
|
25242
25273
|
LewInputTag,
|
|
25243
25274
|
LewLoading,
|
|
25244
|
-
LewMagicNumber,
|
|
25245
25275
|
LewMark,
|
|
25246
25276
|
LewMenu,
|
|
25247
25277
|
LewMenuTree,
|
|
@@ -25258,11 +25288,11 @@ export {
|
|
|
25258
25288
|
LewSelectMultiple,
|
|
25259
25289
|
LewSlider,
|
|
25260
25290
|
LewSliderRange,
|
|
25261
|
-
_sfc_main$
|
|
25291
|
+
_sfc_main$R as LewSteps,
|
|
25262
25292
|
LewSwitch,
|
|
25263
|
-
_sfc_main$
|
|
25293
|
+
_sfc_main$g as LewTable,
|
|
25264
25294
|
LewTabs,
|
|
25265
|
-
_sfc_main$
|
|
25295
|
+
_sfc_main$Z as LewTag,
|
|
25266
25296
|
LewTextTrim,
|
|
25267
25297
|
LewTextarea,
|
|
25268
25298
|
LewTitle,
|
|
@@ -25336,7 +25366,6 @@ export {
|
|
|
25336
25366
|
inputTagProps,
|
|
25337
25367
|
isValidCssValue,
|
|
25338
25368
|
lewDescSizePaddingMap,
|
|
25339
|
-
magicNumberProps,
|
|
25340
25369
|
markProps,
|
|
25341
25370
|
menuModel,
|
|
25342
25371
|
menuProps,
|