lew-ui 2.5.1 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +12 -11
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11791,7 +11791,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11791
11791
|
};
|
|
11792
11792
|
if (props2.okByEnter) {
|
|
11793
11793
|
watch(enter, (v) => {
|
|
11794
|
+
var _a2;
|
|
11794
11795
|
if (v && isFocus.value) {
|
|
11796
|
+
(_a2 = lewInputRef.value) == null ? void 0 : _a2.blur();
|
|
11795
11797
|
ok();
|
|
11796
11798
|
}
|
|
11797
11799
|
});
|
|
@@ -11882,7 +11884,6 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11882
11884
|
type: unref(getType),
|
|
11883
11885
|
readonly: _ctx.readonly,
|
|
11884
11886
|
maxlength: _ctx.maxLength,
|
|
11885
|
-
onkeypress: "if(window.event.keyCode==13) this.blur()",
|
|
11886
11887
|
onInput: _cache[3] || (_cache[3] = ($event) => emit2("input", modelValue2.value)),
|
|
11887
11888
|
onChange: _cache[4] || (_cache[4] = ($event) => emit2("change", modelValue2.value)),
|
|
11888
11889
|
onBlur: blur,
|
|
@@ -11988,7 +11989,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11988
11989
|
};
|
|
11989
11990
|
}
|
|
11990
11991
|
});
|
|
11991
|
-
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
11992
|
+
const LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-916732fc"]]);
|
|
11992
11993
|
const inputNumberModel = {
|
|
11993
11994
|
modelValue: {
|
|
11994
11995
|
type: Number,
|
|
@@ -18198,43 +18199,43 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18198
18199
|
switch (size) {
|
|
18199
18200
|
case "small":
|
|
18200
18201
|
return {
|
|
18201
|
-
"--lew-switch-width": "
|
|
18202
|
+
"--lew-switch-width": "42px",
|
|
18202
18203
|
"--lew-switch-height": "26px",
|
|
18203
18204
|
"--lew-switch-dot-width": "18px",
|
|
18204
18205
|
"--lew-switch-dot-height": "18px",
|
|
18205
18206
|
"--lew-switch-dot-width-active": "20px",
|
|
18206
18207
|
"--lew-switch-dot-transform": "translate(4px, 4px)",
|
|
18207
|
-
"--lew-switch-dot-transform-active": "translate(
|
|
18208
|
+
"--lew-switch-dot-transform-active": "translate(17px, 4px)"
|
|
18208
18209
|
};
|
|
18209
18210
|
case "medium":
|
|
18210
18211
|
return {
|
|
18211
|
-
"--lew-switch-width": "
|
|
18212
|
+
"--lew-switch-width": "44px",
|
|
18212
18213
|
"--lew-switch-height": "28px",
|
|
18213
18214
|
"--lew-switch-dot-width": "20px",
|
|
18214
18215
|
"--lew-switch-dot-height": "20px",
|
|
18215
18216
|
"--lew-switch-dot-width-active": "22px",
|
|
18216
18217
|
"--lew-switch-dot-transform": "translate(4px, 4px)",
|
|
18217
|
-
"--lew-switch-dot-transform-active": "translate(
|
|
18218
|
+
"--lew-switch-dot-transform-active": "translate(17px, 4px)"
|
|
18218
18219
|
};
|
|
18219
18220
|
case "large":
|
|
18220
18221
|
return {
|
|
18221
|
-
"--lew-switch-width": "
|
|
18222
|
+
"--lew-switch-width": "46px",
|
|
18222
18223
|
"--lew-switch-height": "30px",
|
|
18223
18224
|
"--lew-switch-dot-width": "22px",
|
|
18224
18225
|
"--lew-switch-dot-height": "22px",
|
|
18225
18226
|
"--lew-switch-dot-width-active": "24px",
|
|
18226
18227
|
"--lew-switch-dot-transform": "translate(4px, 4px)",
|
|
18227
|
-
"--lew-switch-dot-transform-active": "translate(
|
|
18228
|
+
"--lew-switch-dot-transform-active": "translate(17px, 4px)"
|
|
18228
18229
|
};
|
|
18229
18230
|
default:
|
|
18230
18231
|
return {
|
|
18231
|
-
"--lew-switch-width": "
|
|
18232
|
+
"--lew-switch-width": "44px",
|
|
18232
18233
|
"--lew-switch-height": "28px",
|
|
18233
18234
|
"--lew-switch-dot-width": "20px",
|
|
18234
18235
|
"--lew-switch-dot-height": "20px",
|
|
18235
18236
|
"--lew-switch-dot-width-active": "24px",
|
|
18236
18237
|
"--lew-switch-dot-transform": "translate(4px, 4px)",
|
|
18237
|
-
"--lew-switch-dot-transform-active": "translate(
|
|
18238
|
+
"--lew-switch-dot-transform-active": "translate(17px, 4px)"
|
|
18238
18239
|
};
|
|
18239
18240
|
}
|
|
18240
18241
|
});
|
|
@@ -18257,7 +18258,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18257
18258
|
};
|
|
18258
18259
|
}
|
|
18259
18260
|
});
|
|
18260
|
-
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-
|
|
18261
|
+
const LewSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f9d855ca"]]);
|
|
18261
18262
|
const sliderModel = {
|
|
18262
18263
|
modelValue: {
|
|
18263
18264
|
type: [Number, void 0],
|