lew-ui 2.2.9 → 2.3.1
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/button/src/LewButton.vue.d.ts +3 -3
- package/dist/components/button/src/props.d.ts +1 -1
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +2 -2
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +1 -0
- package/dist/components/modal/src/LewModal.vue.d.ts +2 -4
- package/dist/components/popok/src/LewPopok.vue.d.ts +2 -2
- package/dist/index.mjs +21 -16
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
33
33
|
description: string;
|
|
34
34
|
};
|
|
35
35
|
iconSize: {
|
|
36
|
-
type: NumberConstructor;
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
37
|
default: number;
|
|
38
38
|
description: string;
|
|
39
39
|
};
|
|
@@ -91,7 +91,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
91
91
|
description: string;
|
|
92
92
|
};
|
|
93
93
|
iconSize: {
|
|
94
|
-
type: NumberConstructor;
|
|
94
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
95
95
|
default: number;
|
|
96
96
|
description: string;
|
|
97
97
|
};
|
|
@@ -127,7 +127,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
127
127
|
disabled: boolean;
|
|
128
128
|
loading: boolean;
|
|
129
129
|
iconPosition: string;
|
|
130
|
-
iconSize: number;
|
|
130
|
+
iconSize: string | number;
|
|
131
131
|
request: Function;
|
|
132
132
|
}, {}>;
|
|
133
133
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -133,7 +133,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
133
133
|
disabled: boolean;
|
|
134
134
|
loading: boolean;
|
|
135
135
|
iconPosition: string;
|
|
136
|
-
iconSize: number;
|
|
136
|
+
iconSize: string | number;
|
|
137
137
|
request: Function;
|
|
138
138
|
};
|
|
139
139
|
cancelProps: {
|
|
@@ -146,7 +146,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
146
146
|
disabled: boolean;
|
|
147
147
|
loading: boolean;
|
|
148
148
|
iconPosition: string;
|
|
149
|
-
iconSize: number;
|
|
149
|
+
iconSize: string | number;
|
|
150
150
|
request: Function;
|
|
151
151
|
};
|
|
152
152
|
closeOnClickOverlay: boolean;
|
|
@@ -55,6 +55,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
55
55
|
};
|
|
56
56
|
}, {
|
|
57
57
|
toFocus: () => void;
|
|
58
|
+
validCheck: () => boolean;
|
|
58
59
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
60
|
input: (...args: any[]) => void;
|
|
60
61
|
change: (...args: any[]) => void;
|
|
@@ -63,7 +63,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
63
63
|
description: string;
|
|
64
64
|
};
|
|
65
65
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
66
|
-
show: (...args: any[]) => void;
|
|
67
66
|
ok: (...args: any[]) => void;
|
|
68
67
|
cancel: (...args: any[]) => void;
|
|
69
68
|
close: (...args: any[]) => void;
|
|
@@ -127,7 +126,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
127
126
|
description: string;
|
|
128
127
|
};
|
|
129
128
|
}>> & {
|
|
130
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
131
129
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
132
130
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
133
131
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -147,7 +145,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
147
145
|
disabled: boolean;
|
|
148
146
|
loading: boolean;
|
|
149
147
|
iconPosition: string;
|
|
150
|
-
iconSize: number;
|
|
148
|
+
iconSize: string | number;
|
|
151
149
|
request: Function;
|
|
152
150
|
};
|
|
153
151
|
cancelProps: {
|
|
@@ -160,7 +158,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
160
158
|
disabled: boolean;
|
|
161
159
|
loading: boolean;
|
|
162
160
|
iconPosition: string;
|
|
163
|
-
iconSize: number;
|
|
161
|
+
iconSize: string | number;
|
|
164
162
|
request: Function;
|
|
165
163
|
};
|
|
166
164
|
hideOkButton: boolean;
|
|
@@ -124,7 +124,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
124
124
|
disabled: boolean;
|
|
125
125
|
loading: boolean;
|
|
126
126
|
iconPosition: string;
|
|
127
|
-
iconSize: number;
|
|
127
|
+
iconSize: string | number;
|
|
128
128
|
request: Function;
|
|
129
129
|
};
|
|
130
130
|
cancelProps: {
|
|
@@ -137,7 +137,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
137
137
|
disabled: boolean;
|
|
138
138
|
loading: boolean;
|
|
139
139
|
iconPosition: string;
|
|
140
|
-
iconSize: number;
|
|
140
|
+
iconSize: string | number;
|
|
141
141
|
request: Function;
|
|
142
142
|
};
|
|
143
143
|
}, {}>;
|
package/dist/index.mjs
CHANGED
|
@@ -8750,8 +8750,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8750
8750
|
};
|
|
8751
8751
|
const checkValidationMessage = () => {
|
|
8752
8752
|
validationMessage.value = lewInputRef.value.validationMessage;
|
|
8753
|
+
return (validationMessage.value || "").length === 0;
|
|
8753
8754
|
};
|
|
8754
|
-
|
|
8755
|
+
const validCheck = () => {
|
|
8756
|
+
return (lewInputRef.value && lewInputRef.value.validationMessage || "").length === 0;
|
|
8757
|
+
};
|
|
8758
|
+
__expose({ toFocus, validCheck });
|
|
8755
8759
|
return (_ctx, _cache) => {
|
|
8756
8760
|
const _component_lew_icon = resolveComponent("lew-icon");
|
|
8757
8761
|
const _component_lew_flex = resolveComponent("lew-flex");
|
|
@@ -8819,7 +8823,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
8819
8823
|
};
|
|
8820
8824
|
}
|
|
8821
8825
|
});
|
|
8822
|
-
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
8826
|
+
const LewInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-2dbde41e"]]);
|
|
8823
8827
|
const textareaModel = {
|
|
8824
8828
|
// 绑定值
|
|
8825
8829
|
modelValue: {
|
|
@@ -15385,7 +15389,7 @@ const buttonProps = {
|
|
|
15385
15389
|
description: "大小"
|
|
15386
15390
|
},
|
|
15387
15391
|
iconSize: {
|
|
15388
|
-
type: Number,
|
|
15392
|
+
type: [Number, String],
|
|
15389
15393
|
default: 16,
|
|
15390
15394
|
description: "图标大小"
|
|
15391
15395
|
},
|
|
@@ -15457,15 +15461,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15457
15461
|
const { size, iconSize } = props;
|
|
15458
15462
|
switch (size) {
|
|
15459
15463
|
case "mini":
|
|
15460
|
-
return iconSize ? iconSize : 12;
|
|
15464
|
+
return iconSize ? Number(iconSize) : 12;
|
|
15461
15465
|
case "small":
|
|
15462
|
-
return iconSize ? iconSize : 14;
|
|
15466
|
+
return iconSize ? Number(iconSize) : 14;
|
|
15463
15467
|
case "medium":
|
|
15464
|
-
return iconSize ? iconSize : 16;
|
|
15468
|
+
return iconSize ? Number(iconSize) : 16;
|
|
15465
15469
|
case "large":
|
|
15466
|
-
return iconSize ? iconSize : 18;
|
|
15470
|
+
return iconSize ? Number(iconSize) : 18;
|
|
15467
15471
|
default:
|
|
15468
|
-
return iconSize ? iconSize : 16;
|
|
15472
|
+
return iconSize ? Number(iconSize) : 16;
|
|
15469
15473
|
}
|
|
15470
15474
|
});
|
|
15471
15475
|
const getStyle = computed(() => {
|
|
@@ -15548,7 +15552,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15548
15552
|
};
|
|
15549
15553
|
}
|
|
15550
15554
|
});
|
|
15551
|
-
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
15555
|
+
const LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-d5616ca8"]]);
|
|
15552
15556
|
const badgeProps = {
|
|
15553
15557
|
value: {
|
|
15554
15558
|
type: String,
|
|
@@ -18653,7 +18657,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18653
18657
|
"visible": {},
|
|
18654
18658
|
"visibleModifiers": {}
|
|
18655
18659
|
}),
|
|
18656
|
-
emits: /* @__PURE__ */ mergeModels(["ok", "cancel", "
|
|
18660
|
+
emits: /* @__PURE__ */ mergeModels(["ok", "cancel", "close"], ["update:visible"]),
|
|
18657
18661
|
setup(__props, { emit: __emit }) {
|
|
18658
18662
|
const { x: x2, y: y2 } = useMouse();
|
|
18659
18663
|
const { Escape } = useMagicKeys();
|
|
@@ -18676,6 +18680,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18676
18680
|
const ok = () => {
|
|
18677
18681
|
emit("ok");
|
|
18678
18682
|
};
|
|
18683
|
+
const close = () => {
|
|
18684
|
+
visible.value = false;
|
|
18685
|
+
emit("close");
|
|
18686
|
+
};
|
|
18679
18687
|
const cancel = () => {
|
|
18680
18688
|
emit("cancel");
|
|
18681
18689
|
};
|
|
@@ -18684,9 +18692,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18684
18692
|
(newVal) => {
|
|
18685
18693
|
if (newVal) {
|
|
18686
18694
|
transformOrigin.value = `${x2.value}px ${y2.value}px`;
|
|
18687
|
-
emit("show");
|
|
18688
|
-
} else {
|
|
18689
|
-
emit("close");
|
|
18690
18695
|
}
|
|
18691
18696
|
}
|
|
18692
18697
|
);
|
|
@@ -18723,7 +18728,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18723
18728
|
createElementVNode("div", {
|
|
18724
18729
|
style: normalizeStyle(unref(getModalStyle)),
|
|
18725
18730
|
class: "lew-modal-box",
|
|
18726
|
-
onClick: _cache[
|
|
18731
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
18727
18732
|
}, ["stop"]))
|
|
18728
18733
|
}, [
|
|
18729
18734
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
@@ -18743,7 +18748,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18743
18748
|
size: "18",
|
|
18744
18749
|
class: "lew-form-icon-clear",
|
|
18745
18750
|
type: "x",
|
|
18746
|
-
onClick:
|
|
18751
|
+
onClick: close
|
|
18747
18752
|
})
|
|
18748
18753
|
]),
|
|
18749
18754
|
_: 1
|
|
@@ -18782,7 +18787,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18782
18787
|
};
|
|
18783
18788
|
}
|
|
18784
18789
|
});
|
|
18785
|
-
const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18790
|
+
const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-9e6a39d2"]]);
|
|
18786
18791
|
const popokProps = {
|
|
18787
18792
|
type: {
|
|
18788
18793
|
type: String,
|