lew-ui 1.1.28 → 1.1.30
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/lew.es.ts +657 -380
- package/dist/lew.umd.ts +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lew.es.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, onUnmounted, onMounted, getCurrentInstance, h, ref, watch, createElementVNode, Fragment, renderList, toDisplayString, createCommentVNode, pushScopeId, popScopeId, resolveComponent, createBlock, withCtx, withDirectives, vModelText, vModelDynamic, withModifiers, createVNode, vShow, createTextVNode, nextTick, toRaw, isRef, vModelCheckbox,
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, onUnmounted, onMounted, getCurrentInstance, h, ref, watch, createElementVNode, Fragment, renderList, toDisplayString, createCommentVNode, pushScopeId, popScopeId, resolveComponent, createBlock, withCtx, withDirectives, vModelText, vModelDynamic, withModifiers, createVNode, vShow, createTextVNode, nextTick, toRaw, isRef, vModelCheckbox, getCurrentScope, onScopeDispose, reactive, Teleport, Transition, shallowRef, resolveDirective, createApp } from "vue";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function(e) {
|
|
4
4
|
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -15,7 +15,7 @@ function _mergeNamespaces(n, m) {
|
|
|
15
15
|
});
|
|
16
16
|
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
17
17
|
}
|
|
18
|
-
const _props$
|
|
18
|
+
const _props$e = {
|
|
19
19
|
direction: {
|
|
20
20
|
type: String,
|
|
21
21
|
default: "x"
|
|
@@ -44,24 +44,30 @@ const _props$g = {
|
|
|
44
44
|
},
|
|
45
45
|
width: { type: [String, Number] }
|
|
46
46
|
};
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return "alert-circle";
|
|
57
|
-
case "info":
|
|
58
|
-
return "bell";
|
|
59
|
-
default:
|
|
60
|
-
return "info";
|
|
47
|
+
const widthValidator = (value) => {
|
|
48
|
+
if (typeof value === "number") {
|
|
49
|
+
value = `${value}px`;
|
|
50
|
+
}
|
|
51
|
+
if (typeof value === "string") {
|
|
52
|
+
const lastChar = value.charAt(value.length - 1);
|
|
53
|
+
if (!isNaN(parseInt(lastChar))) {
|
|
54
|
+
value = `${value}px`;
|
|
55
|
+
}
|
|
61
56
|
}
|
|
57
|
+
return /^[1-9][0-9]*px$/.test(value);
|
|
58
|
+
};
|
|
59
|
+
const getIconType = (type) => {
|
|
60
|
+
let map2 = {
|
|
61
|
+
normal: "info",
|
|
62
|
+
warning: "alert-triangle",
|
|
63
|
+
success: "check",
|
|
64
|
+
error: "alert-circle",
|
|
65
|
+
info: "bell"
|
|
66
|
+
};
|
|
67
|
+
return map2[type] || "info";
|
|
62
68
|
};
|
|
63
69
|
const getPx = (num) => {
|
|
64
|
-
return typeof num
|
|
70
|
+
return typeof num === "string" ? num : num + "px";
|
|
65
71
|
};
|
|
66
72
|
var LewFlex_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
67
73
|
var _export_sfc = (sfc, props) => {
|
|
@@ -73,7 +79,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
73
79
|
};
|
|
74
80
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
75
81
|
__name: "LewFlex",
|
|
76
|
-
props: _props$
|
|
82
|
+
props: _props$e,
|
|
77
83
|
setup(__props) {
|
|
78
84
|
const props = __props;
|
|
79
85
|
const classObject = computed(() => {
|
|
@@ -1836,10 +1842,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
1836
1842
|
curIndex = index2;
|
|
1837
1843
|
}
|
|
1838
1844
|
};
|
|
1839
|
-
let
|
|
1845
|
+
let timer2;
|
|
1840
1846
|
const debounce2 = () => {
|
|
1841
|
-
clearTimeout(
|
|
1842
|
-
|
|
1847
|
+
clearTimeout(timer2);
|
|
1848
|
+
timer2 = setTimeout(() => {
|
|
1843
1849
|
console.log(1);
|
|
1844
1850
|
init();
|
|
1845
1851
|
}, 250);
|
|
@@ -1893,7 +1899,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1893
1899
|
}
|
|
1894
1900
|
});
|
|
1895
1901
|
var LewSteps = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5e4b1dfe"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/steps/src/LewSteps.vue"]]);
|
|
1896
|
-
const _props$
|
|
1902
|
+
const _props$d = {
|
|
1897
1903
|
options: {
|
|
1898
1904
|
type: Array,
|
|
1899
1905
|
default() {
|
|
@@ -1910,7 +1916,7 @@ const _props$f = {
|
|
|
1910
1916
|
var LewBreadcrumb_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
1911
1917
|
const _withScopeId$5 = (n) => (pushScopeId("data-v-5303b0ef"), n = n(), popScopeId(), n);
|
|
1912
1918
|
const _hoisted_1$q = { class: "lew-breadcrumb" };
|
|
1913
|
-
const _hoisted_2$
|
|
1919
|
+
const _hoisted_2$k = ["onClick"];
|
|
1914
1920
|
const _hoisted_3$d = {
|
|
1915
1921
|
key: 0,
|
|
1916
1922
|
class: "lew-breadcrumb-parting"
|
|
@@ -1945,7 +1951,7 @@ const _hoisted_9$2 = [
|
|
|
1945
1951
|
];
|
|
1946
1952
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1947
1953
|
__name: "LewBreadcrumb",
|
|
1948
|
-
props: _props$
|
|
1954
|
+
props: _props$d,
|
|
1949
1955
|
setup(__props) {
|
|
1950
1956
|
const { lewTo } = useLewTo();
|
|
1951
1957
|
return (_ctx, _cache) => {
|
|
@@ -1958,7 +1964,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1958
1964
|
createElementVNode("span", {
|
|
1959
1965
|
class: normalizeClass({ "lew-breadcrumb-isPath": !!item.to }),
|
|
1960
1966
|
onClick: ($event) => unref(lewTo)(item.to)
|
|
1961
|
-
}, toDisplayString(item.label), 11, _hoisted_2$
|
|
1967
|
+
}, toDisplayString(item.label), 11, _hoisted_2$k),
|
|
1962
1968
|
index2 != _ctx.options.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
1963
1969
|
_ctx.iconType === "sprit" ? (openBlock(), createElementBlock("svg", _hoisted_4$d, _hoisted_6$3)) : createCommentVNode("v-if", true),
|
|
1964
1970
|
_ctx.iconType === "shoulder" ? (openBlock(), createElementBlock("svg", _hoisted_7$2, _hoisted_9$2)) : createCommentVNode("v-if", true)
|
|
@@ -1970,7 +1976,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1970
1976
|
}
|
|
1971
1977
|
});
|
|
1972
1978
|
var LewBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-5303b0ef"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/breadcrumb/src/LewBreadcrumb.vue"]]);
|
|
1973
|
-
const _props$
|
|
1979
|
+
const _props$c = {
|
|
1974
1980
|
options: {
|
|
1975
1981
|
type: Array,
|
|
1976
1982
|
default() {
|
|
@@ -2006,7 +2012,7 @@ var LewDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
2006
2012
|
const _hoisted_1$p = ["onClick"];
|
|
2007
2013
|
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
2008
2014
|
__name: "LewDropdown",
|
|
2009
|
-
props: _props$
|
|
2015
|
+
props: _props$c,
|
|
2010
2016
|
emits: ["change"],
|
|
2011
2017
|
setup(__props, { expose, emit }) {
|
|
2012
2018
|
let lewPopoverRef = ref();
|
|
@@ -2117,7 +2123,7 @@ const inputProps = {
|
|
|
2117
2123
|
};
|
|
2118
2124
|
var LewInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2119
2125
|
const _hoisted_1$o = ["disabled", "readonly", "placeholder"];
|
|
2120
|
-
const _hoisted_2$
|
|
2126
|
+
const _hoisted_2$j = ["disabled", "placeholder", "type", "readonly"];
|
|
2121
2127
|
const _hoisted_3$c = {
|
|
2122
2128
|
key: 2,
|
|
2123
2129
|
class: "input-auto-width"
|
|
@@ -2159,7 +2165,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2159
2165
|
emit("update:modelValue", v.value);
|
|
2160
2166
|
emit("input", v.value);
|
|
2161
2167
|
};
|
|
2162
|
-
const
|
|
2168
|
+
const clear2 = () => {
|
|
2163
2169
|
emit("clear", v.value);
|
|
2164
2170
|
v.value = "";
|
|
2165
2171
|
emit("update:modelValue", v.value);
|
|
@@ -2259,7 +2265,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2259
2265
|
onChange: _cache[4] || (_cache[4] = ($event) => emit("change", v.value)),
|
|
2260
2266
|
onBlur: _cache[5] || (_cache[5] = ($event) => emit("blur", v.value)),
|
|
2261
2267
|
onFocus: focus
|
|
2262
|
-
}, null, 40, _hoisted_2$
|
|
2268
|
+
}, null, 40, _hoisted_2$j)), [
|
|
2263
2269
|
[vModelDynamic, v.value]
|
|
2264
2270
|
]),
|
|
2265
2271
|
_ctx.autoWidth ? (openBlock(), createElementBlock("label", _hoisted_3$c, toDisplayString(v.value), 1)) : createCommentVNode("v-if", true),
|
|
@@ -2294,7 +2300,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2294
2300
|
key: 2,
|
|
2295
2301
|
onMousedown: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
2296
2302
|
}, ["prevent"])),
|
|
2297
|
-
onClick:
|
|
2303
|
+
onClick: clear2,
|
|
2298
2304
|
class: "lew-input-clear"
|
|
2299
2305
|
}, [
|
|
2300
2306
|
createVNode(_component_lew_icon, {
|
|
@@ -2308,7 +2314,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2308
2314
|
}
|
|
2309
2315
|
});
|
|
2310
2316
|
var LewInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-156ce1e1"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/input/src/LewInput.vue"]]);
|
|
2311
|
-
const _props$
|
|
2317
|
+
const _props$b = {
|
|
2312
2318
|
type: {
|
|
2313
2319
|
type: String,
|
|
2314
2320
|
default: ""
|
|
@@ -2384,7 +2390,7 @@ var LewInputPro_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
2384
2390
|
const _hoisted_1$n = { class: "lew-input-pro" };
|
|
2385
2391
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
2386
2392
|
__name: "LewInputPro",
|
|
2387
|
-
props: _props$
|
|
2393
|
+
props: _props$b,
|
|
2388
2394
|
emits: [
|
|
2389
2395
|
"update:modelValue",
|
|
2390
2396
|
"clear",
|
|
@@ -2407,7 +2413,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2407
2413
|
emit("update:modelValue", value);
|
|
2408
2414
|
emit("input", value);
|
|
2409
2415
|
};
|
|
2410
|
-
const
|
|
2416
|
+
const clear2 = () => {
|
|
2411
2417
|
emit("clear", v.value);
|
|
2412
2418
|
v.value = "";
|
|
2413
2419
|
emit("update:modelValue", v.value);
|
|
@@ -2465,7 +2471,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
2465
2471
|
onChange: _cache[2] || (_cache[2] = ($event) => emit("change", v.value)),
|
|
2466
2472
|
onBlur: _cache[3] || (_cache[3] = ($event) => emit("blur", v.value)),
|
|
2467
2473
|
onFocus: focus,
|
|
2468
|
-
onClear:
|
|
2474
|
+
onClear: clear2
|
|
2469
2475
|
}, null, 8, ["modelValue", "type", "auto-width", "size", "align", "placeholder", "clearable"])
|
|
2470
2476
|
]),
|
|
2471
2477
|
_: 1
|
|
@@ -2491,7 +2497,7 @@ const inputTagProps = {
|
|
|
2491
2497
|
var LewInputTag_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2492
2498
|
const _withScopeId$4 = (n) => (pushScopeId("data-v-ad3c9b14"), n = n(), popScopeId(), n);
|
|
2493
2499
|
const _hoisted_1$m = { class: "lew-input-tag-view" };
|
|
2494
|
-
const _hoisted_2$
|
|
2500
|
+
const _hoisted_2$i = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "-10px", "height": "26px" } }, null, -1));
|
|
2495
2501
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
2496
2502
|
__name: "LewInputTag",
|
|
2497
2503
|
props: inputTagProps,
|
|
@@ -2558,7 +2564,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
2558
2564
|
const _component_lew_icon = resolveComponent("lew-icon");
|
|
2559
2565
|
const _component_lew_input = resolveComponent("lew-input");
|
|
2560
2566
|
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
2561
|
-
_hoisted_2$
|
|
2567
|
+
_hoisted_2$i,
|
|
2562
2568
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tagsValue.value, (item, index2) => {
|
|
2563
2569
|
return openBlock(), createBlock(_component_lew_tag, {
|
|
2564
2570
|
key: index2,
|
|
@@ -2637,7 +2643,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
2637
2643
|
var LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-a827f69e"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/form/src/LewForm.vue"]]);
|
|
2638
2644
|
var LewFormItem_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2639
2645
|
const _hoisted_1$l = { class: "lew-form-item-view" };
|
|
2640
|
-
const _hoisted_2$
|
|
2646
|
+
const _hoisted_2$h = { class: "lew-form-item-tips" };
|
|
2641
2647
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
2642
2648
|
__name: "LewFormItem",
|
|
2643
2649
|
props: {
|
|
@@ -2676,7 +2682,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2676
2682
|
}, toDisplayString(props.label), 5),
|
|
2677
2683
|
createElementVNode("div", _hoisted_1$l, [
|
|
2678
2684
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
2679
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
2685
|
+
withDirectives(createElementVNode("div", _hoisted_2$h, "\u8F93\u5165\u683C\u5F0F\u9519\u8BEF", 512), [
|
|
2680
2686
|
[vShow, false]
|
|
2681
2687
|
])
|
|
2682
2688
|
])
|
|
@@ -2685,7 +2691,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
2685
2691
|
}
|
|
2686
2692
|
});
|
|
2687
2693
|
var LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ef952438"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/form/src/LewFormItem.vue"]]);
|
|
2688
|
-
const _props$
|
|
2694
|
+
const _props$a = {
|
|
2689
2695
|
label: {
|
|
2690
2696
|
type: String,
|
|
2691
2697
|
default: () => {
|
|
@@ -2778,7 +2784,7 @@ const _hoisted_1$k = {
|
|
|
2778
2784
|
key: 0,
|
|
2779
2785
|
class: "icon-checkbox-box"
|
|
2780
2786
|
};
|
|
2781
|
-
const _hoisted_2$
|
|
2787
|
+
const _hoisted_2$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
2782
2788
|
class: "icon-checkbox",
|
|
2783
2789
|
viewBox: "0 0 24 24",
|
|
2784
2790
|
width: "24",
|
|
@@ -2792,7 +2798,7 @@ const _hoisted_2$f = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
2792
2798
|
/* @__PURE__ */ createElementVNode("polyline", { points: "20 6 9 17 4 12" })
|
|
2793
2799
|
], -1));
|
|
2794
2800
|
const _hoisted_3$b = [
|
|
2795
|
-
_hoisted_2$
|
|
2801
|
+
_hoisted_2$g
|
|
2796
2802
|
];
|
|
2797
2803
|
const _hoisted_4$b = ["checked"];
|
|
2798
2804
|
const _hoisted_5$8 = {
|
|
@@ -2801,7 +2807,7 @@ const _hoisted_5$8 = {
|
|
|
2801
2807
|
};
|
|
2802
2808
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2803
2809
|
__name: "LewCheckbox",
|
|
2804
|
-
props: _props$
|
|
2810
|
+
props: _props$a,
|
|
2805
2811
|
emits: ["change", "update:modelValue"],
|
|
2806
2812
|
setup(__props, { emit }) {
|
|
2807
2813
|
const props = __props;
|
|
@@ -2898,9 +2904,9 @@ const _hoisted_1$j = {
|
|
|
2898
2904
|
key: 0,
|
|
2899
2905
|
class: "icon-radio-box"
|
|
2900
2906
|
};
|
|
2901
|
-
const _hoisted_2$
|
|
2907
|
+
const _hoisted_2$f = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "icon-radio" }, null, -1));
|
|
2902
2908
|
const _hoisted_3$a = [
|
|
2903
|
-
_hoisted_2$
|
|
2909
|
+
_hoisted_2$f
|
|
2904
2910
|
];
|
|
2905
2911
|
const _hoisted_4$a = ["checked"];
|
|
2906
2912
|
const _hoisted_5$7 = {
|
|
@@ -4562,7 +4568,7 @@ var lodash = { exports: {} };
|
|
|
4562
4568
|
return value;
|
|
4563
4569
|
}
|
|
4564
4570
|
if (value == null) {
|
|
4565
|
-
return
|
|
4571
|
+
return identity2;
|
|
4566
4572
|
}
|
|
4567
4573
|
if (typeof value == "object") {
|
|
4568
4574
|
return isArray2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
@@ -4700,7 +4706,7 @@ var lodash = { exports: {} };
|
|
|
4700
4706
|
return iteratee2;
|
|
4701
4707
|
});
|
|
4702
4708
|
} else {
|
|
4703
|
-
iteratees = [
|
|
4709
|
+
iteratees = [identity2];
|
|
4704
4710
|
}
|
|
4705
4711
|
var index2 = -1;
|
|
4706
4712
|
iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
|
|
@@ -4796,7 +4802,7 @@ var lodash = { exports: {} };
|
|
|
4796
4802
|
return result2;
|
|
4797
4803
|
}
|
|
4798
4804
|
function baseRest(func, start2) {
|
|
4799
|
-
return setToString(overRest(func, start2,
|
|
4805
|
+
return setToString(overRest(func, start2, identity2), func + "");
|
|
4800
4806
|
}
|
|
4801
4807
|
function baseSample(collection) {
|
|
4802
4808
|
return arraySample(values(collection));
|
|
@@ -4828,11 +4834,11 @@ var lodash = { exports: {} };
|
|
|
4828
4834
|
}
|
|
4829
4835
|
return object;
|
|
4830
4836
|
}
|
|
4831
|
-
var baseSetData = !metaMap ?
|
|
4837
|
+
var baseSetData = !metaMap ? identity2 : function(func, data) {
|
|
4832
4838
|
metaMap.set(func, data);
|
|
4833
4839
|
return func;
|
|
4834
4840
|
};
|
|
4835
|
-
var baseSetToString = !defineProperty ?
|
|
4841
|
+
var baseSetToString = !defineProperty ? identity2 : function(func, string) {
|
|
4836
4842
|
return defineProperty(func, "toString", {
|
|
4837
4843
|
"configurable": true,
|
|
4838
4844
|
"enumerable": false,
|
|
@@ -4881,7 +4887,7 @@ var lodash = { exports: {} };
|
|
|
4881
4887
|
}
|
|
4882
4888
|
return high;
|
|
4883
4889
|
}
|
|
4884
|
-
return baseSortedIndexBy(array, value,
|
|
4890
|
+
return baseSortedIndexBy(array, value, identity2, retHighest);
|
|
4885
4891
|
}
|
|
4886
4892
|
function baseSortedIndexBy(array, value, iteratee2, retHighest) {
|
|
4887
4893
|
var low = 0, high = array == null ? 0 : array.length;
|
|
@@ -5037,7 +5043,7 @@ var lodash = { exports: {} };
|
|
|
5037
5043
|
return isArrayLikeObject(value) ? value : [];
|
|
5038
5044
|
}
|
|
5039
5045
|
function castFunction(value) {
|
|
5040
|
-
return typeof value == "function" ? value :
|
|
5046
|
+
return typeof value == "function" ? value : identity2;
|
|
5041
5047
|
}
|
|
5042
5048
|
function castPath(value, object) {
|
|
5043
5049
|
if (isArray2(value)) {
|
|
@@ -7387,7 +7393,7 @@ var lodash = { exports: {} };
|
|
|
7387
7393
|
value = nativeObjectToString2.call(value);
|
|
7388
7394
|
}
|
|
7389
7395
|
result2[value] = key;
|
|
7390
|
-
}, constant(
|
|
7396
|
+
}, constant(identity2));
|
|
7391
7397
|
var invertBy = createInverter(function(result2, value, key) {
|
|
7392
7398
|
if (value != null && typeof value.toString != "function") {
|
|
7393
7399
|
value = nativeObjectToString2.call(value);
|
|
@@ -7890,7 +7896,7 @@ var lodash = { exports: {} };
|
|
|
7890
7896
|
}
|
|
7891
7897
|
var flow = createFlow();
|
|
7892
7898
|
var flowRight = createFlow(true);
|
|
7893
|
-
function
|
|
7899
|
+
function identity2(value) {
|
|
7894
7900
|
return value;
|
|
7895
7901
|
}
|
|
7896
7902
|
function iteratee(func) {
|
|
@@ -8014,19 +8020,19 @@ var lodash = { exports: {} };
|
|
|
8014
8020
|
}, 1);
|
|
8015
8021
|
var floor = createRound("floor");
|
|
8016
8022
|
function max2(array) {
|
|
8017
|
-
return array && array.length ? baseExtremum(array,
|
|
8023
|
+
return array && array.length ? baseExtremum(array, identity2, baseGt) : undefined$1;
|
|
8018
8024
|
}
|
|
8019
8025
|
function maxBy(array, iteratee2) {
|
|
8020
8026
|
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined$1;
|
|
8021
8027
|
}
|
|
8022
8028
|
function mean(array) {
|
|
8023
|
-
return baseMean(array,
|
|
8029
|
+
return baseMean(array, identity2);
|
|
8024
8030
|
}
|
|
8025
8031
|
function meanBy(array, iteratee2) {
|
|
8026
8032
|
return baseMean(array, getIteratee(iteratee2, 2));
|
|
8027
8033
|
}
|
|
8028
8034
|
function min2(array) {
|
|
8029
|
-
return array && array.length ? baseExtremum(array,
|
|
8035
|
+
return array && array.length ? baseExtremum(array, identity2, baseLt) : undefined$1;
|
|
8030
8036
|
}
|
|
8031
8037
|
function minBy(array, iteratee2) {
|
|
8032
8038
|
return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined$1;
|
|
@@ -8039,7 +8045,7 @@ var lodash = { exports: {} };
|
|
|
8039
8045
|
return minuend - subtrahend;
|
|
8040
8046
|
}, 0);
|
|
8041
8047
|
function sum(array) {
|
|
8042
|
-
return array && array.length ? baseSum(array,
|
|
8048
|
+
return array && array.length ? baseSum(array, identity2) : 0;
|
|
8043
8049
|
}
|
|
8044
8050
|
function sumBy(array, iteratee2) {
|
|
8045
8051
|
return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0;
|
|
@@ -8236,7 +8242,7 @@ var lodash = { exports: {} };
|
|
|
8236
8242
|
lodash2.has = has;
|
|
8237
8243
|
lodash2.hasIn = hasIn;
|
|
8238
8244
|
lodash2.head = head;
|
|
8239
|
-
lodash2.identity =
|
|
8245
|
+
lodash2.identity = identity2;
|
|
8240
8246
|
lodash2.includes = includes;
|
|
8241
8247
|
lodash2.indexOf = indexOf2;
|
|
8242
8248
|
lodash2.inRange = inRange;
|
|
@@ -8406,7 +8412,7 @@ var lodash = { exports: {} };
|
|
|
8406
8412
|
};
|
|
8407
8413
|
});
|
|
8408
8414
|
LazyWrapper.prototype.compact = function() {
|
|
8409
|
-
return this.filter(
|
|
8415
|
+
return this.filter(identity2);
|
|
8410
8416
|
};
|
|
8411
8417
|
LazyWrapper.prototype.find = function(predicate) {
|
|
8412
8418
|
return this.filter(predicate).head();
|
|
@@ -8534,7 +8540,7 @@ const _hoisted_1$i = {
|
|
|
8534
8540
|
key: 0,
|
|
8535
8541
|
class: "lew-select-placeholder"
|
|
8536
8542
|
};
|
|
8537
|
-
const _hoisted_2$
|
|
8543
|
+
const _hoisted_2$e = { class: "lew-select-label-multiple" };
|
|
8538
8544
|
const _hoisted_3$9 = {
|
|
8539
8545
|
style: { "margin-left": "5px" },
|
|
8540
8546
|
class: "lew-isSelect-label-num"
|
|
@@ -8650,11 +8656,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8650
8656
|
};
|
|
8651
8657
|
expose({ show, hide: hide2 });
|
|
8652
8658
|
onMounted(() => {
|
|
8653
|
-
var _a2, _b;
|
|
8659
|
+
var _a2, _b, _c, _d;
|
|
8654
8660
|
if (props.multiple && props.modelValue instanceof Array) {
|
|
8655
8661
|
multipleLabelStr.value = filterSelect(props.modelValue, props.options);
|
|
8656
8662
|
} else if (typeof props.modelValue === "string") {
|
|
8657
8663
|
labelStr.value = labelStr.value = ((_b = (_a2 = props.options) == null ? void 0 : _a2.find((e) => e.value === props.modelValue)) == null ? void 0 : _b.label) || "";
|
|
8664
|
+
} else if (typeof props.modelValue === "number") {
|
|
8665
|
+
labelStr.value = labelStr.value = ((_d = (_c = props.options) == null ? void 0 : _c.find((e) => Number(e.value) === props.modelValue)) == null ? void 0 : _d.label) || "";
|
|
8658
8666
|
}
|
|
8659
8667
|
});
|
|
8660
8668
|
return (_ctx, _cache) => {
|
|
@@ -8688,7 +8696,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8688
8696
|
[vShow, !_ctx.multiple]
|
|
8689
8697
|
]),
|
|
8690
8698
|
createCommentVNode(" \u591A\u9009 "),
|
|
8691
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
8699
|
+
withDirectives(createElementVNode("div", _hoisted_2$e, [
|
|
8692
8700
|
withDirectives(createVNode(_component_lew_tag, {
|
|
8693
8701
|
type: "primary",
|
|
8694
8702
|
size: _ctx.size,
|
|
@@ -8815,7 +8823,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8815
8823
|
}
|
|
8816
8824
|
});
|
|
8817
8825
|
var LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-326752a1"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/select/src/LewSelect.vue"]]);
|
|
8818
|
-
const _props$
|
|
8826
|
+
const _props$9 = {
|
|
8819
8827
|
modelValue: {
|
|
8820
8828
|
type: Boolean,
|
|
8821
8829
|
default: () => {
|
|
@@ -8841,10 +8849,10 @@ const _props$b = {
|
|
|
8841
8849
|
var LewSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
8842
8850
|
const _withScopeId$1 = (n) => (pushScopeId("data-v-3d4d5d11"), n = n(), popScopeId(), n);
|
|
8843
8851
|
const _hoisted_1$h = ["disabled"];
|
|
8844
|
-
const _hoisted_2$
|
|
8852
|
+
const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "lew-switch-dot" }, null, -1));
|
|
8845
8853
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
8846
8854
|
__name: "LewSwitch",
|
|
8847
|
-
props: _props$
|
|
8855
|
+
props: _props$9,
|
|
8848
8856
|
emits: ["update:modelValue", "click", "change"],
|
|
8849
8857
|
setup(__props, { emit }) {
|
|
8850
8858
|
const props = __props;
|
|
@@ -8895,7 +8903,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8895
8903
|
[vShow, false],
|
|
8896
8904
|
[vModelCheckbox, v.value]
|
|
8897
8905
|
]),
|
|
8898
|
-
_hoisted_2$
|
|
8906
|
+
_hoisted_2$d
|
|
8899
8907
|
], 2);
|
|
8900
8908
|
};
|
|
8901
8909
|
}
|
|
@@ -8954,6 +8962,10 @@ const datePickerProps = {
|
|
|
8954
8962
|
type: Boolean,
|
|
8955
8963
|
default: false
|
|
8956
8964
|
},
|
|
8965
|
+
size: {
|
|
8966
|
+
type: String,
|
|
8967
|
+
default: "medium"
|
|
8968
|
+
},
|
|
8957
8969
|
autoClose: {
|
|
8958
8970
|
type: Boolean,
|
|
8959
8971
|
default: true
|
|
@@ -8968,6 +8980,10 @@ const dateRangePickerProps = {
|
|
|
8968
8980
|
type: Boolean,
|
|
8969
8981
|
default: false
|
|
8970
8982
|
},
|
|
8983
|
+
size: {
|
|
8984
|
+
type: String,
|
|
8985
|
+
default: "medium"
|
|
8986
|
+
},
|
|
8971
8987
|
autoClose: {
|
|
8972
8988
|
type: Boolean,
|
|
8973
8989
|
default: true
|
|
@@ -12897,7 +12913,7 @@ hooks.HTML5_FMT = {
|
|
|
12897
12913
|
};
|
|
12898
12914
|
var LewDate_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12899
12915
|
const _hoisted_1$g = { class: "lew-date" };
|
|
12900
|
-
const _hoisted_2$
|
|
12916
|
+
const _hoisted_2$c = { class: "lew-date-control-left" };
|
|
12901
12917
|
const _hoisted_3$8 = { class: "cur-date" };
|
|
12902
12918
|
const _hoisted_4$8 = { class: "lew-date-control-right" };
|
|
12903
12919
|
const _hoisted_5$5 = { class: "lew-date-box" };
|
|
@@ -12987,7 +13003,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
12987
13003
|
class: "lew-date-control"
|
|
12988
13004
|
}, {
|
|
12989
13005
|
default: withCtx(() => [
|
|
12990
|
-
createElementVNode("div", _hoisted_2$
|
|
13006
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
12991
13007
|
createCommentVNode(" \u4E0A\u4E00\u5E74 "),
|
|
12992
13008
|
createVNode(_component_lew_button, {
|
|
12993
13009
|
type: "normal",
|
|
@@ -13086,7 +13102,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13086
13102
|
var LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-29f4866a"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/date-picker/src/LewDate.vue"]]);
|
|
13087
13103
|
var LewDateRange_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13088
13104
|
const _hoisted_1$f = { class: "lew-date-range" };
|
|
13089
|
-
const _hoisted_2$
|
|
13105
|
+
const _hoisted_2$b = { class: "lew-date" };
|
|
13090
13106
|
const _hoisted_3$7 = { class: "lew-date-control-left" };
|
|
13091
13107
|
const _hoisted_4$7 = { class: "cur-date" };
|
|
13092
13108
|
const _hoisted_5$4 = { class: "lew-date-control-right" };
|
|
@@ -13390,7 +13406,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13390
13406
|
const _component_lew_button = resolveComponent("lew-button");
|
|
13391
13407
|
const _component_lew_flex = resolveComponent("lew-flex");
|
|
13392
13408
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
13393
|
-
createElementVNode("div", _hoisted_2$
|
|
13409
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
13394
13410
|
createVNode(_component_lew_flex, {
|
|
13395
13411
|
x: "start",
|
|
13396
13412
|
mode: "between",
|
|
@@ -13600,7 +13616,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13600
13616
|
});
|
|
13601
13617
|
var LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-37bbe4a3"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/date-picker/src/LewDateRange.vue"]]);
|
|
13602
13618
|
var LewDatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13603
|
-
const _hoisted_1$e = { class: "lew-date-picker-
|
|
13619
|
+
const _hoisted_1$e = { class: "lew-date-picker-input" };
|
|
13620
|
+
const _hoisted_2$a = { class: "lew-date-picker-placeholder" };
|
|
13604
13621
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
13605
13622
|
__name: "LewDatePicker",
|
|
13606
13623
|
props: datePickerProps,
|
|
@@ -13629,6 +13646,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13629
13646
|
hide2();
|
|
13630
13647
|
}
|
|
13631
13648
|
};
|
|
13649
|
+
const classObject = computed(() => {
|
|
13650
|
+
return {
|
|
13651
|
+
"lew-date-picker-focus": isShowPicker.value,
|
|
13652
|
+
[`lew-date-picker-${props.size}`]: props.size
|
|
13653
|
+
};
|
|
13654
|
+
});
|
|
13632
13655
|
expose({ show, hide: hide2 });
|
|
13633
13656
|
return (_ctx, _cache) => {
|
|
13634
13657
|
const _component_lew_icon = resolveComponent("lew-icon");
|
|
@@ -13644,19 +13667,21 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13644
13667
|
}, {
|
|
13645
13668
|
trigger: withCtx(() => [
|
|
13646
13669
|
createElementVNode("div", {
|
|
13647
|
-
class: normalizeClass(["lew-date-picker-
|
|
13670
|
+
class: normalizeClass(["lew-date-picker-view", unref(classObject)])
|
|
13648
13671
|
}, [
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13672
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
13673
|
+
withDirectives(createElementVNode("div", _hoisted_2$a, " \u8BF7\u9009\u62E9\u65E5\u671F ", 512), [
|
|
13674
|
+
[vShow, !unref(dateValue)]
|
|
13675
|
+
]),
|
|
13676
|
+
withDirectives(createElementVNode("div", { class: "lew-date-picker-dateValue" }, toDisplayString(unref(dateValue)), 513), [
|
|
13677
|
+
[vShow, unref(dateValue)]
|
|
13678
|
+
]),
|
|
13679
|
+
createVNode(_component_lew_icon, {
|
|
13680
|
+
class: "lew-date-picker-icon",
|
|
13681
|
+
size: "16px",
|
|
13682
|
+
type: "calendar"
|
|
13683
|
+
})
|
|
13684
|
+
])
|
|
13660
13685
|
], 2)
|
|
13661
13686
|
]),
|
|
13662
13687
|
"popover-body": withCtx(() => [
|
|
@@ -13675,10 +13700,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
13675
13700
|
var LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4c4a62d0"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/date-picker/src/LewDatePicker.vue"]]);
|
|
13676
13701
|
var LewDateRangePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13677
13702
|
const _withScopeId = (n) => (pushScopeId("data-v-f13243de"), n = n(), popScopeId(), n);
|
|
13678
|
-
const _hoisted_1$d = { class: "lew-date-picker-
|
|
13679
|
-
const _hoisted_2$9 = { class: "lew-date-picker-
|
|
13680
|
-
const _hoisted_3$6 =
|
|
13681
|
-
const _hoisted_4$6 = { class: "lew-date-picker-
|
|
13703
|
+
const _hoisted_1$d = { class: "lew-date-picker-input" };
|
|
13704
|
+
const _hoisted_2$9 = { class: "lew-date-picker-placeholder" };
|
|
13705
|
+
const _hoisted_3$6 = { class: "lew-date-picker-dateValue lew-date-picker-start" };
|
|
13706
|
+
const _hoisted_4$6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "lew-date-picker-mid" }, "-", -1));
|
|
13707
|
+
const _hoisted_5$3 = { class: "lew-date-picker-dateValue lew-date-picker-end" };
|
|
13682
13708
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
13683
13709
|
__name: "LewDateRangePicker",
|
|
13684
13710
|
props: dateRangePickerProps,
|
|
@@ -13707,6 +13733,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13707
13733
|
hide2();
|
|
13708
13734
|
}
|
|
13709
13735
|
};
|
|
13736
|
+
const classObject = computed(() => {
|
|
13737
|
+
return {
|
|
13738
|
+
"lew-date-picker-focus": isShowPicker.value,
|
|
13739
|
+
[`lew-date-picker-${props.size}`]: props.size
|
|
13740
|
+
};
|
|
13741
|
+
});
|
|
13710
13742
|
expose({ show, hide: hide2 });
|
|
13711
13743
|
return (_ctx, _cache) => {
|
|
13712
13744
|
const _component_lew_icon = resolveComponent("lew-icon");
|
|
@@ -13722,19 +13754,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
13722
13754
|
}, {
|
|
13723
13755
|
trigger: withCtx(() => [
|
|
13724
13756
|
createElementVNode("div", {
|
|
13725
|
-
class: normalizeClass(["lew-date-picker-
|
|
13757
|
+
class: normalizeClass(["lew-date-picker-view", unref(classObject)])
|
|
13726
13758
|
}, [
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13759
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
13760
|
+
withDirectives(createElementVNode("div", _hoisted_2$9, " \u8BF7\u9009\u62E9\u65E5\u671F ", 512), [
|
|
13761
|
+
[vShow, !unref(dateValue)]
|
|
13762
|
+
]),
|
|
13763
|
+
createElementVNode("div", _hoisted_3$6, toDisplayString(unref(dateValue)[0]), 1),
|
|
13764
|
+
_hoisted_4$6,
|
|
13765
|
+
createElementVNode("div", _hoisted_5$3, toDisplayString(unref(dateValue)[1]), 1),
|
|
13766
|
+
createVNode(_component_lew_icon, {
|
|
13767
|
+
class: "lew-date-picker-icon",
|
|
13768
|
+
size: "16px",
|
|
13769
|
+
type: "calendar"
|
|
13770
|
+
})
|
|
13771
|
+
])
|
|
13738
13772
|
], 2)
|
|
13739
13773
|
]),
|
|
13740
13774
|
"popover-body": withCtx(() => [
|
|
@@ -13945,7 +13979,7 @@ width:${column.width != "auto" ? column.width : unref(niceWidth) || "100px"};
|
|
|
13945
13979
|
}
|
|
13946
13980
|
});
|
|
13947
13981
|
var LewTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/table/src/LewTable.vue"]]);
|
|
13948
|
-
const _props$
|
|
13982
|
+
const _props$8 = {
|
|
13949
13983
|
total: {
|
|
13950
13984
|
type: Number,
|
|
13951
13985
|
default: 100
|
|
@@ -13968,72 +14002,230 @@ const _props$a = {
|
|
|
13968
14002
|
return [
|
|
13969
14003
|
{
|
|
13970
14004
|
label: "10 / \u9875",
|
|
13971
|
-
value:
|
|
14005
|
+
value: 10
|
|
13972
14006
|
},
|
|
13973
14007
|
{
|
|
13974
14008
|
label: "20 / \u9875",
|
|
13975
|
-
value:
|
|
14009
|
+
value: 20
|
|
13976
14010
|
},
|
|
13977
14011
|
{
|
|
13978
14012
|
label: "30 / \u9875",
|
|
13979
|
-
value:
|
|
14013
|
+
value: 30
|
|
13980
14014
|
},
|
|
13981
14015
|
{
|
|
13982
14016
|
label: "50 / \u9875",
|
|
13983
|
-
value:
|
|
14017
|
+
value: 50
|
|
13984
14018
|
},
|
|
13985
14019
|
{
|
|
13986
14020
|
label: "100 / \u9875",
|
|
13987
|
-
value:
|
|
14021
|
+
value: 100
|
|
13988
14022
|
}
|
|
13989
14023
|
];
|
|
13990
14024
|
}
|
|
13991
14025
|
}
|
|
13992
14026
|
};
|
|
14027
|
+
var _a;
|
|
14028
|
+
const isClient = typeof window !== "undefined";
|
|
14029
|
+
const isDef = (val) => typeof val !== "undefined";
|
|
14030
|
+
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
14031
|
+
function resolveUnref(r) {
|
|
14032
|
+
return typeof r === "function" ? r() : unref(r);
|
|
14033
|
+
}
|
|
14034
|
+
function identity(arg) {
|
|
14035
|
+
return arg;
|
|
14036
|
+
}
|
|
14037
|
+
function tryOnScopeDispose(fn2) {
|
|
14038
|
+
if (getCurrentScope()) {
|
|
14039
|
+
onScopeDispose(fn2);
|
|
14040
|
+
return true;
|
|
14041
|
+
}
|
|
14042
|
+
return false;
|
|
14043
|
+
}
|
|
14044
|
+
function useTimeoutFn(cb, interval, options = {}) {
|
|
14045
|
+
const {
|
|
14046
|
+
immediate = true
|
|
14047
|
+
} = options;
|
|
14048
|
+
const isPending = ref(false);
|
|
14049
|
+
let timer2 = null;
|
|
14050
|
+
function clear2() {
|
|
14051
|
+
if (timer2) {
|
|
14052
|
+
clearTimeout(timer2);
|
|
14053
|
+
timer2 = null;
|
|
14054
|
+
}
|
|
14055
|
+
}
|
|
14056
|
+
function stop() {
|
|
14057
|
+
isPending.value = false;
|
|
14058
|
+
clear2();
|
|
14059
|
+
}
|
|
14060
|
+
function start2(...args) {
|
|
14061
|
+
clear2();
|
|
14062
|
+
isPending.value = true;
|
|
14063
|
+
timer2 = setTimeout(() => {
|
|
14064
|
+
isPending.value = false;
|
|
14065
|
+
timer2 = null;
|
|
14066
|
+
cb(...args);
|
|
14067
|
+
}, resolveUnref(interval));
|
|
14068
|
+
}
|
|
14069
|
+
if (immediate) {
|
|
14070
|
+
isPending.value = true;
|
|
14071
|
+
if (isClient)
|
|
14072
|
+
start2();
|
|
14073
|
+
}
|
|
14074
|
+
tryOnScopeDispose(stop);
|
|
14075
|
+
return {
|
|
14076
|
+
isPending,
|
|
14077
|
+
start: start2,
|
|
14078
|
+
stop
|
|
14079
|
+
};
|
|
14080
|
+
}
|
|
14081
|
+
isClient ? window : void 0;
|
|
14082
|
+
isClient ? window.document : void 0;
|
|
14083
|
+
isClient ? window.navigator : void 0;
|
|
14084
|
+
isClient ? window.location : void 0;
|
|
14085
|
+
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
14086
|
+
const globalKey = "__vueuse_ssr_handlers__";
|
|
14087
|
+
_global[globalKey] = _global[globalKey] || {};
|
|
14088
|
+
_global[globalKey];
|
|
14089
|
+
var SwipeDirection;
|
|
14090
|
+
(function(SwipeDirection2) {
|
|
14091
|
+
SwipeDirection2["UP"] = "UP";
|
|
14092
|
+
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
14093
|
+
SwipeDirection2["DOWN"] = "DOWN";
|
|
14094
|
+
SwipeDirection2["LEFT"] = "LEFT";
|
|
14095
|
+
SwipeDirection2["NONE"] = "NONE";
|
|
14096
|
+
})(SwipeDirection || (SwipeDirection = {}));
|
|
14097
|
+
var __defProp = Object.defineProperty;
|
|
14098
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14099
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14100
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14101
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14102
|
+
var __spreadValues = (a, b) => {
|
|
14103
|
+
for (var prop in b || (b = {}))
|
|
14104
|
+
if (__hasOwnProp.call(b, prop))
|
|
14105
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14106
|
+
if (__getOwnPropSymbols)
|
|
14107
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14108
|
+
if (__propIsEnum.call(b, prop))
|
|
14109
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14110
|
+
}
|
|
14111
|
+
return a;
|
|
14112
|
+
};
|
|
14113
|
+
const _TransitionPresets = {
|
|
14114
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
14115
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
14116
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
14117
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
14118
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
14119
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
14120
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
14121
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
14122
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
14123
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
14124
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
14125
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
14126
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
14127
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
14128
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
14129
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
14130
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
14131
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
14132
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
14133
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
14134
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
14135
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
14136
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
14137
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
14138
|
+
};
|
|
14139
|
+
__spreadValues({
|
|
14140
|
+
linear: identity
|
|
14141
|
+
}, _TransitionPresets);
|
|
14142
|
+
function useVModel(props, key, emit, options = {}) {
|
|
14143
|
+
var _a2, _b, _c;
|
|
14144
|
+
const {
|
|
14145
|
+
passive: passive2 = false,
|
|
14146
|
+
eventName,
|
|
14147
|
+
deep = false,
|
|
14148
|
+
defaultValue
|
|
14149
|
+
} = options;
|
|
14150
|
+
const vm = getCurrentInstance();
|
|
14151
|
+
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a2 = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a2.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
|
|
14152
|
+
let event = eventName;
|
|
14153
|
+
if (!key) {
|
|
14154
|
+
{
|
|
14155
|
+
key = "modelValue";
|
|
14156
|
+
}
|
|
14157
|
+
}
|
|
14158
|
+
event = eventName || event || `update:${key.toString()}`;
|
|
14159
|
+
const getValue = () => isDef(props[key]) ? props[key] : defaultValue;
|
|
14160
|
+
if (passive2) {
|
|
14161
|
+
const proxy = ref(getValue());
|
|
14162
|
+
watch(() => props[key], (v) => proxy.value = v);
|
|
14163
|
+
watch(proxy, (v) => {
|
|
14164
|
+
if (v !== props[key] || deep)
|
|
14165
|
+
_emit(event, v);
|
|
14166
|
+
}, {
|
|
14167
|
+
deep
|
|
14168
|
+
});
|
|
14169
|
+
return proxy;
|
|
14170
|
+
} else {
|
|
14171
|
+
return computed({
|
|
14172
|
+
get() {
|
|
14173
|
+
return getValue();
|
|
14174
|
+
},
|
|
14175
|
+
set(value) {
|
|
14176
|
+
_emit(event, value);
|
|
14177
|
+
}
|
|
14178
|
+
});
|
|
14179
|
+
}
|
|
14180
|
+
}
|
|
14181
|
+
function useVModels(props, emit, options = {}) {
|
|
14182
|
+
const ret = {};
|
|
14183
|
+
for (const key in props)
|
|
14184
|
+
ret[key] = useVModel(props, key, emit, options);
|
|
14185
|
+
return ret;
|
|
14186
|
+
}
|
|
13993
14187
|
var LewPagination_vue_vue_type_style_index_0_lang = "";
|
|
13994
14188
|
const _hoisted_1$b = { class: "lew-pagination" };
|
|
13995
14189
|
const _hoisted_2$8 = ["onClick"];
|
|
13996
14190
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
13997
14191
|
__name: "LewPagination",
|
|
13998
|
-
props: _props$
|
|
13999
|
-
emits: [
|
|
14192
|
+
props: _props$8,
|
|
14193
|
+
emits: [
|
|
14194
|
+
"update:currentPage",
|
|
14195
|
+
"update:total",
|
|
14196
|
+
"update:pageSize",
|
|
14197
|
+
"change"
|
|
14198
|
+
],
|
|
14000
14199
|
setup(__props, { emit }) {
|
|
14001
14200
|
const props = __props;
|
|
14002
|
-
const
|
|
14003
|
-
|
|
14201
|
+
const { total, currentPage, pageSizeOptions } = useVModels(props, emit);
|
|
14202
|
+
let state = reactive({
|
|
14203
|
+
toPage: void 0,
|
|
14004
14204
|
pageSize: props.pageSize,
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14205
|
+
visiblePagesCount: props.visiblePagesCount
|
|
14206
|
+
});
|
|
14207
|
+
watch(total, () => {
|
|
14208
|
+
currentPage.value = 1;
|
|
14009
14209
|
});
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
state.total = props.total;
|
|
14014
|
-
let _visiblePagesCount = props.visiblePagesCount;
|
|
14015
|
-
if (_visiblePagesCount < 5) {
|
|
14016
|
-
_visiblePagesCount = 5;
|
|
14017
|
-
}
|
|
14018
|
-
if (_visiblePagesCount > 12) {
|
|
14019
|
-
_visiblePagesCount = 12;
|
|
14020
|
-
}
|
|
14021
|
-
console.log(_visiblePagesCount);
|
|
14022
|
-
state.visiblePagesCount = _visiblePagesCount;
|
|
14210
|
+
onMounted(() => {
|
|
14211
|
+
state.visiblePagesCount = Math.max(state.visiblePagesCount, 5);
|
|
14212
|
+
state.visiblePagesCount = Math.min(state.visiblePagesCount, 12);
|
|
14023
14213
|
});
|
|
14024
|
-
const totalPages = computed(() => Math.ceil(
|
|
14214
|
+
const totalPages = computed(() => Math.ceil(total.value / state.pageSize));
|
|
14025
14215
|
const visiblePages = computed(() => {
|
|
14026
|
-
let
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14216
|
+
let _currentPage = currentPage.value;
|
|
14217
|
+
let totalPages2 = Math.ceil(total.value / state.pageSize);
|
|
14218
|
+
let startPage = _currentPage - Math.floor(state.visiblePagesCount / 2);
|
|
14219
|
+
if (_currentPage < state.visiblePagesCount / 2 + 2) {
|
|
14220
|
+
startPage = 1;
|
|
14221
|
+
}
|
|
14030
14222
|
if (startPage < 1) {
|
|
14031
14223
|
startPage = 1;
|
|
14032
14224
|
}
|
|
14033
|
-
let endPage = startPage + visiblePagesCount - 1;
|
|
14225
|
+
let endPage = startPage + state.visiblePagesCount - 1;
|
|
14034
14226
|
if (endPage > totalPages2) {
|
|
14035
14227
|
endPage = totalPages2;
|
|
14036
|
-
startPage = endPage - visiblePagesCount + 1;
|
|
14228
|
+
startPage = endPage - state.visiblePagesCount + 1;
|
|
14037
14229
|
if (startPage < 1) {
|
|
14038
14230
|
startPage = 1;
|
|
14039
14231
|
}
|
|
@@ -14046,14 +14238,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14046
14238
|
});
|
|
14047
14239
|
const changePage = (page) => {
|
|
14048
14240
|
page = Math.floor(page);
|
|
14049
|
-
if (page < 1 || page > totalPages.value || page ===
|
|
14241
|
+
if (page < 1 || page > totalPages.value || page === currentPage.value) {
|
|
14050
14242
|
return;
|
|
14051
14243
|
}
|
|
14052
14244
|
emit("change", {
|
|
14053
|
-
currentPage:
|
|
14245
|
+
currentPage: currentPage.value,
|
|
14054
14246
|
pageSize: state.pageSize
|
|
14055
14247
|
});
|
|
14056
|
-
|
|
14248
|
+
currentPage.value = page;
|
|
14057
14249
|
};
|
|
14058
14250
|
const startEllipsis = computed(() => visiblePages.value[0] > 2);
|
|
14059
14251
|
const endEllipsis = computed(
|
|
@@ -14065,7 +14257,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14065
14257
|
);
|
|
14066
14258
|
const checkPageSize = (value) => {
|
|
14067
14259
|
state.pageSize = value;
|
|
14068
|
-
changePage(
|
|
14260
|
+
changePage(currentPage.value);
|
|
14069
14261
|
};
|
|
14070
14262
|
const checkPageNum = (value) => {
|
|
14071
14263
|
let page = Number(value);
|
|
@@ -14073,7 +14265,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14073
14265
|
if (page > totalPages.value || page < 1) {
|
|
14074
14266
|
return;
|
|
14075
14267
|
}
|
|
14076
|
-
|
|
14268
|
+
currentPage.value = page;
|
|
14077
14269
|
changePage(value);
|
|
14078
14270
|
};
|
|
14079
14271
|
return (_ctx, _cache) => {
|
|
@@ -14095,7 +14287,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14095
14287
|
default: withCtx(() => [
|
|
14096
14288
|
createElementVNode("div", {
|
|
14097
14289
|
class: "btn",
|
|
14098
|
-
onClick: _cache[0] || (_cache[0] = ($event) => changePage(
|
|
14290
|
+
onClick: _cache[0] || (_cache[0] = ($event) => changePage(unref(currentPage) - 1))
|
|
14099
14291
|
}, [
|
|
14100
14292
|
createVNode(_component_lew_icon, {
|
|
14101
14293
|
size: "14",
|
|
@@ -14109,9 +14301,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14109
14301
|
}, " 1 ")) : createCommentVNode("v-if", true),
|
|
14110
14302
|
unref(startEllipsis) ? (openBlock(), createElementBlock("div", {
|
|
14111
14303
|
key: 1,
|
|
14112
|
-
onClick: _cache[2] || (_cache[2] = ($event) => changePage(
|
|
14113
|
-
state.currentPage - state.visiblePagesCount + 1
|
|
14114
|
-
)),
|
|
14304
|
+
onClick: _cache[2] || (_cache[2] = ($event) => changePage(unref(currentPage) - unref(state).visiblePagesCount + 1)),
|
|
14115
14305
|
class: "btn control-btn"
|
|
14116
14306
|
}, [
|
|
14117
14307
|
createVNode(_component_lew_icon, {
|
|
@@ -14123,16 +14313,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14123
14313
|
return openBlock(), createElementBlock("div", {
|
|
14124
14314
|
key: index2,
|
|
14125
14315
|
class: normalizeClass(["btn", {
|
|
14126
|
-
active: Number(page) === Number(
|
|
14316
|
+
active: Number(page) === Number(unref(currentPage))
|
|
14127
14317
|
}]),
|
|
14128
14318
|
onClick: ($event) => changePage(page)
|
|
14129
14319
|
}, toDisplayString(page), 11, _hoisted_2$8);
|
|
14130
14320
|
}), 128)),
|
|
14131
14321
|
unref(endEllipsis) ? (openBlock(), createElementBlock("div", {
|
|
14132
14322
|
key: 2,
|
|
14133
|
-
onClick: _cache[3] || (_cache[3] = ($event) => changePage(
|
|
14134
|
-
state.currentPage + state.visiblePagesCount - 1
|
|
14135
|
-
)),
|
|
14323
|
+
onClick: _cache[3] || (_cache[3] = ($event) => changePage(unref(currentPage) + unref(state).visiblePagesCount - 1)),
|
|
14136
14324
|
class: "btn control-btn"
|
|
14137
14325
|
}, [
|
|
14138
14326
|
createVNode(_component_lew_icon, {
|
|
@@ -14147,7 +14335,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14147
14335
|
}, toDisplayString(unref(totalPages)), 1)) : createCommentVNode("v-if", true),
|
|
14148
14336
|
createElementVNode("div", {
|
|
14149
14337
|
class: "btn",
|
|
14150
|
-
onClick: _cache[5] || (_cache[5] = ($event) => changePage(
|
|
14338
|
+
onClick: _cache[5] || (_cache[5] = ($event) => changePage(unref(currentPage) + 1))
|
|
14151
14339
|
}, [
|
|
14152
14340
|
createVNode(_component_lew_icon, {
|
|
14153
14341
|
size: "14",
|
|
@@ -14160,20 +14348,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14160
14348
|
createVNode(_component_lew_select, {
|
|
14161
14349
|
style: { "width": "100px" },
|
|
14162
14350
|
align: "center",
|
|
14163
|
-
modelValue: state.pageSize,
|
|
14164
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => state.pageSize = $event),
|
|
14351
|
+
modelValue: unref(state).pageSize,
|
|
14352
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(state).pageSize = $event),
|
|
14165
14353
|
onChange: checkPageSize,
|
|
14166
14354
|
size: "small",
|
|
14167
14355
|
"show-icon": false,
|
|
14168
|
-
options:
|
|
14356
|
+
options: unref(pageSizeOptions)
|
|
14169
14357
|
}, null, 8, ["modelValue", "options"]),
|
|
14170
14358
|
createVNode(_component_lew_input, {
|
|
14171
14359
|
size: "small",
|
|
14172
14360
|
align: "center",
|
|
14173
14361
|
placeholder: "\u8DF3\u8F6C\u81F3",
|
|
14174
14362
|
"auto-width": "",
|
|
14175
|
-
modelValue: state.toPage,
|
|
14176
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => state.toPage = $event),
|
|
14363
|
+
modelValue: unref(state).toPage,
|
|
14364
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(state).toPage = $event),
|
|
14177
14365
|
onChange: checkPageNum
|
|
14178
14366
|
}, null, 8, ["modelValue"]),
|
|
14179
14367
|
renderSlot(_ctx.$slots, "right")
|
|
@@ -14185,21 +14373,75 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14185
14373
|
}
|
|
14186
14374
|
});
|
|
14187
14375
|
var LewPagination = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/pagination/src/LewPagination.vue"]]);
|
|
14188
|
-
const
|
|
14376
|
+
const DocsUrl = "https://lew.kamtao.com/#/Avatar";
|
|
14377
|
+
const avatarProps = {
|
|
14189
14378
|
round: {
|
|
14190
14379
|
type: Boolean,
|
|
14191
14380
|
default: false
|
|
14192
14381
|
},
|
|
14193
14382
|
status: {
|
|
14194
14383
|
type: String,
|
|
14384
|
+
validator: (value) => {
|
|
14385
|
+
const status = [
|
|
14386
|
+
"online",
|
|
14387
|
+
"processing",
|
|
14388
|
+
"away",
|
|
14389
|
+
"offline",
|
|
14390
|
+
"busy"
|
|
14391
|
+
];
|
|
14392
|
+
if (value && !status.includes(value)) {
|
|
14393
|
+
console.warn(
|
|
14394
|
+
`oooh! Warning!
|
|
14395
|
+
lew-avatar status${value} \u4E3A\u975E\u6CD5\u503C\u3002
|
|
14396
|
+
\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863 ${DocsUrl}
|
|
14397
|
+
|
|
14398
|
+
`
|
|
14399
|
+
);
|
|
14400
|
+
}
|
|
14401
|
+
return true;
|
|
14402
|
+
},
|
|
14195
14403
|
default: ""
|
|
14196
14404
|
},
|
|
14197
14405
|
statusPosition: {
|
|
14198
14406
|
type: String,
|
|
14199
|
-
|
|
14407
|
+
validator: (value) => {
|
|
14408
|
+
const position = [
|
|
14409
|
+
"top",
|
|
14410
|
+
"left",
|
|
14411
|
+
"right",
|
|
14412
|
+
"bottom",
|
|
14413
|
+
"top-left",
|
|
14414
|
+
"top-right",
|
|
14415
|
+
"bottom-left",
|
|
14416
|
+
"bottom-right",
|
|
14417
|
+
"left-top",
|
|
14418
|
+
"left-bottom",
|
|
14419
|
+
"right-top",
|
|
14420
|
+
"right-bottom"
|
|
14421
|
+
];
|
|
14422
|
+
if (value && !position.includes(value)) {
|
|
14423
|
+
console.warn(
|
|
14424
|
+
`oooh! Warning!
|
|
14425
|
+
lew-avatar statusPosition\uFF1A${value} \u4E3A\u975E\u6CD5\u503C\u3002
|
|
14426
|
+
\u8BF7\u53C2\u8003\u5B98\u65B9\u6587\u6863 ${DocsUrl}
|
|
14427
|
+
|
|
14428
|
+
`
|
|
14429
|
+
);
|
|
14430
|
+
}
|
|
14431
|
+
return true;
|
|
14432
|
+
},
|
|
14433
|
+
default: ""
|
|
14434
|
+
},
|
|
14435
|
+
width: {
|
|
14436
|
+
type: [String, Number],
|
|
14437
|
+
validator: widthValidator,
|
|
14438
|
+
default: 40
|
|
14439
|
+
},
|
|
14440
|
+
height: {
|
|
14441
|
+
type: [String, Number],
|
|
14442
|
+
validator: widthValidator,
|
|
14443
|
+
default: 40
|
|
14200
14444
|
},
|
|
14201
|
-
width: { type: String, default: "40px" },
|
|
14202
|
-
height: { type: String, default: "40px" },
|
|
14203
14445
|
errorSrc: {
|
|
14204
14446
|
type: String,
|
|
14205
14447
|
default: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"
|
|
@@ -14217,11 +14459,11 @@ var LewAvatar_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
14217
14459
|
const _hoisted_1$a = ["src", "alt"];
|
|
14218
14460
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
14219
14461
|
__name: "LewAvatar",
|
|
14220
|
-
props:
|
|
14462
|
+
props: avatarProps,
|
|
14221
14463
|
setup(__props) {
|
|
14222
14464
|
const props = __props;
|
|
14223
14465
|
const { round: round2, width, height, status, statusPosition, errorSrc } = props;
|
|
14224
|
-
let
|
|
14466
|
+
let loading2 = ref(true);
|
|
14225
14467
|
let imgRef = ref();
|
|
14226
14468
|
let count = 8e3;
|
|
14227
14469
|
let speed = 500;
|
|
@@ -14240,17 +14482,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14240
14482
|
setImg();
|
|
14241
14483
|
});
|
|
14242
14484
|
const setImg = () => {
|
|
14243
|
-
var
|
|
14485
|
+
var timer2 = setInterval(function() {
|
|
14244
14486
|
var _a2;
|
|
14245
14487
|
count -= speed;
|
|
14246
14488
|
if (count < 0) {
|
|
14247
|
-
|
|
14489
|
+
loading2.value = false;
|
|
14248
14490
|
loadErr.value = true;
|
|
14249
|
-
clearInterval(
|
|
14491
|
+
clearInterval(timer2);
|
|
14250
14492
|
}
|
|
14251
14493
|
if ((_a2 = imgRef.value) == null ? void 0 : _a2.complete) {
|
|
14252
|
-
|
|
14253
|
-
clearInterval(
|
|
14494
|
+
loading2.value = false;
|
|
14495
|
+
clearInterval(timer2);
|
|
14254
14496
|
}
|
|
14255
14497
|
}, speed);
|
|
14256
14498
|
};
|
|
@@ -14260,7 +14502,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14260
14502
|
const imageClassObject = computed(() => {
|
|
14261
14503
|
return {
|
|
14262
14504
|
"lew-avatar-round": round2,
|
|
14263
|
-
skeletons:
|
|
14505
|
+
skeletons: loading2.value && !loadErr.value
|
|
14264
14506
|
};
|
|
14265
14507
|
});
|
|
14266
14508
|
const styleObject = computed(() => {
|
|
@@ -14292,7 +14534,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14292
14534
|
alt: _ctx.alt,
|
|
14293
14535
|
lazy: ""
|
|
14294
14536
|
}, null, 8, _hoisted_1$a)), [
|
|
14295
|
-
[vShow, !unref(
|
|
14537
|
+
[vShow, !unref(loading2)]
|
|
14296
14538
|
]) : createCommentVNode("v-if", true)
|
|
14297
14539
|
], 2),
|
|
14298
14540
|
unref(status) ? (openBlock(), createElementBlock("span", {
|
|
@@ -14304,7 +14546,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
14304
14546
|
}
|
|
14305
14547
|
});
|
|
14306
14548
|
var LewAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-3ce1779b"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/avatar/src/LewAvatar.vue"]]);
|
|
14307
|
-
const _props$
|
|
14549
|
+
const _props$7 = {
|
|
14308
14550
|
type: {
|
|
14309
14551
|
type: String,
|
|
14310
14552
|
default: "normal"
|
|
@@ -14317,7 +14559,7 @@ const _hoisted_3$5 = { class: "content" };
|
|
|
14317
14559
|
const _hoisted_4$5 = { class: "footer" };
|
|
14318
14560
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
14319
14561
|
__name: "LewComment",
|
|
14320
|
-
props: _props$
|
|
14562
|
+
props: _props$7,
|
|
14321
14563
|
setup(__props) {
|
|
14322
14564
|
return (_ctx, _cache) => {
|
|
14323
14565
|
const _component_lew_flex = resolveComponent("lew-flex");
|
|
@@ -14381,7 +14623,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14381
14623
|
}
|
|
14382
14624
|
});
|
|
14383
14625
|
var LewTitle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-cfbccebe"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/title/src/LewTitle.vue"]]);
|
|
14384
|
-
const _props$
|
|
14626
|
+
const _props$6 = {
|
|
14385
14627
|
type: {
|
|
14386
14628
|
type: String,
|
|
14387
14629
|
default: () => {
|
|
@@ -14422,7 +14664,7 @@ var LewButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
14422
14664
|
const _hoisted_1$8 = ["disabled"];
|
|
14423
14665
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
14424
14666
|
__name: "LewButton",
|
|
14425
|
-
props: _props$
|
|
14667
|
+
props: _props$6,
|
|
14426
14668
|
emits: ["click"],
|
|
14427
14669
|
setup(__props, { emit }) {
|
|
14428
14670
|
const props = __props;
|
|
@@ -14470,7 +14712,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
14470
14712
|
}
|
|
14471
14713
|
});
|
|
14472
14714
|
var LewButton = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-e7956ae6"], ["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/button/src/LewButton.vue"]]);
|
|
14473
|
-
const _props$
|
|
14715
|
+
const _props$5 = {
|
|
14474
14716
|
type: {
|
|
14475
14717
|
type: String,
|
|
14476
14718
|
default: "normal"
|
|
@@ -14495,7 +14737,7 @@ const _hoisted_2$6 = {
|
|
|
14495
14737
|
};
|
|
14496
14738
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
14497
14739
|
__name: "LewBadge",
|
|
14498
|
-
props: _props$
|
|
14740
|
+
props: _props$5,
|
|
14499
14741
|
setup(__props) {
|
|
14500
14742
|
return (_ctx, _cache) => {
|
|
14501
14743
|
return openBlock(), createElementBlock("div", {
|
|
@@ -14511,7 +14753,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
14511
14753
|
var LewBadge = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/badge/src/LewBadge.vue"]]);
|
|
14512
14754
|
let sizeRules = ["small", "medium", "large"];
|
|
14513
14755
|
let typeRules = ["primary", "info", "success", "error", "warning", "normal"];
|
|
14514
|
-
const _props$
|
|
14756
|
+
const _props$4 = {
|
|
14515
14757
|
type: {
|
|
14516
14758
|
type: String,
|
|
14517
14759
|
default: "normal",
|
|
@@ -14561,7 +14803,7 @@ const _hoisted_4$4 = {
|
|
|
14561
14803
|
};
|
|
14562
14804
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
14563
14805
|
__name: "LewTag",
|
|
14564
|
-
props: _props$
|
|
14806
|
+
props: _props$4,
|
|
14565
14807
|
emits: ["close"],
|
|
14566
14808
|
setup(__props, { emit }) {
|
|
14567
14809
|
const props = __props;
|
|
@@ -14616,12 +14858,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
14616
14858
|
}
|
|
14617
14859
|
});
|
|
14618
14860
|
var LewTag = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "C:/Users/10570/Desktop/30secWorkSpace/Lew-UI/packages/components/tag/src/LewTag.vue"]]);
|
|
14619
|
-
const
|
|
14861
|
+
const alertProps = {
|
|
14620
14862
|
list: {
|
|
14621
14863
|
type: Array,
|
|
14622
|
-
|
|
14623
|
-
return [];
|
|
14624
|
-
}
|
|
14864
|
+
required: true
|
|
14625
14865
|
}
|
|
14626
14866
|
};
|
|
14627
14867
|
var LewAlert_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -14629,13 +14869,13 @@ const _hoisted_1$5 = { class: "lew-alert-group" };
|
|
|
14629
14869
|
const _hoisted_2$4 = { class: "alert-icon" };
|
|
14630
14870
|
const _hoisted_3$3 = { class: "message" };
|
|
14631
14871
|
const _hoisted_4$3 = { class: "title" };
|
|
14632
|
-
const _hoisted_5$
|
|
14872
|
+
const _hoisted_5$2 = { key: 0 };
|
|
14633
14873
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
14634
14874
|
__name: "LewAlert",
|
|
14635
|
-
props:
|
|
14875
|
+
props: alertProps,
|
|
14636
14876
|
emits: ["close"],
|
|
14637
14877
|
setup(__props, { emit }) {
|
|
14638
|
-
const
|
|
14878
|
+
const getClass2 = (item) => {
|
|
14639
14879
|
return `lew-alert-${item.type}`;
|
|
14640
14880
|
};
|
|
14641
14881
|
return (_ctx, _cache) => {
|
|
@@ -14644,7 +14884,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
14644
14884
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, i) => {
|
|
14645
14885
|
return openBlock(), createElementBlock("div", {
|
|
14646
14886
|
key: i,
|
|
14647
|
-
class: normalizeClass(["lew-alert",
|
|
14887
|
+
class: normalizeClass(["lew-alert", getClass2(item)])
|
|
14648
14888
|
}, [
|
|
14649
14889
|
createElementVNode("div", _hoisted_2$4, [
|
|
14650
14890
|
createVNode(_component_lew_icon, {
|
|
@@ -14658,7 +14898,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
14658
14898
|
[vShow, item.content]
|
|
14659
14899
|
])
|
|
14660
14900
|
]),
|
|
14661
|
-
item.
|
|
14901
|
+
item.closeable ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
14662
14902
|
createVNode(_component_lew_icon, {
|
|
14663
14903
|
size: "16",
|
|
14664
14904
|
class: "btn-close",
|
|
@@ -14693,12 +14933,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
14693
14933
|
visible: {
|
|
14694
14934
|
type: Boolean,
|
|
14695
14935
|
default: false
|
|
14936
|
+
},
|
|
14937
|
+
closeOnClickOverlay: {
|
|
14938
|
+
type: Boolean,
|
|
14939
|
+
default: false
|
|
14696
14940
|
}
|
|
14697
14941
|
},
|
|
14698
|
-
emits: ["
|
|
14942
|
+
emits: ["update:visible", "confirm"],
|
|
14699
14943
|
setup(__props, { emit }) {
|
|
14700
14944
|
const props = __props;
|
|
14701
14945
|
useDOMCreate("lew-modal");
|
|
14946
|
+
const { visible } = useVModels(props, emit);
|
|
14702
14947
|
let _visible = ref(props.visible);
|
|
14703
14948
|
let _visibleTimer = ref();
|
|
14704
14949
|
watch(
|
|
@@ -14708,14 +14953,18 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
14708
14953
|
clearTimeout(_visibleTimer.value);
|
|
14709
14954
|
_visibleTimer.value = setTimeout(() => {
|
|
14710
14955
|
_visible.value = v;
|
|
14956
|
+
visible.value = v;
|
|
14711
14957
|
}, 250);
|
|
14712
14958
|
} else {
|
|
14713
14959
|
_visible.value = v;
|
|
14960
|
+
visible.value = v;
|
|
14714
14961
|
}
|
|
14715
14962
|
}
|
|
14716
14963
|
);
|
|
14717
14964
|
const maskClick = () => {
|
|
14718
|
-
|
|
14965
|
+
if (props.closeOnClickOverlay) {
|
|
14966
|
+
visible.value = false;
|
|
14967
|
+
}
|
|
14719
14968
|
};
|
|
14720
14969
|
return (_ctx, _cache) => {
|
|
14721
14970
|
return openBlock(), createBlock(Teleport, { to: "#lew-modal" }, [
|
|
@@ -14723,13 +14972,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
14723
14972
|
key: 0,
|
|
14724
14973
|
class: "lew-modal",
|
|
14725
14974
|
style: normalizeStyle(
|
|
14726
|
-
|
|
14975
|
+
unref(visible) ? "animation: lewModalOpen 0.25s;" : "animation: lewModalClose 0.25s;"
|
|
14727
14976
|
),
|
|
14728
14977
|
onClick: maskClick
|
|
14729
14978
|
}, [
|
|
14730
14979
|
createElementVNode("div", {
|
|
14731
14980
|
class: "lew-modal-box",
|
|
14732
|
-
style: normalizeStyle(`width:${__props.width};height:${__props.height};${
|
|
14981
|
+
style: normalizeStyle(`width:${__props.width};height:${__props.height};${unref(visible) ? "animation: lewModalBoxOpen 0.25s;" : "animation: lewModalBoxClose 0.25s;"}`),
|
|
14733
14982
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14734
14983
|
}, ["stop"]))
|
|
14735
14984
|
}, [
|
|
@@ -14781,7 +15030,7 @@ const _hoisted_4$2 = {
|
|
|
14781
15030
|
key: 1,
|
|
14782
15031
|
class: "content"
|
|
14783
15032
|
};
|
|
14784
|
-
const _hoisted_5$
|
|
15033
|
+
const _hoisted_5$1 = { class: "footer" };
|
|
14785
15034
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
14786
15035
|
__name: "LewPopok",
|
|
14787
15036
|
props: _props$3,
|
|
@@ -14863,7 +15112,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
14863
15112
|
createElementVNode("div", _hoisted_2$3, [
|
|
14864
15113
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(_ctx.title), 1)) : createCommentVNode("v-if", true),
|
|
14865
15114
|
_ctx.content ? (openBlock(), createElementBlock("div", _hoisted_4$2, toDisplayString(_ctx.content), 1)) : createCommentVNode("v-if", true),
|
|
14866
|
-
createElementVNode("div", _hoisted_5$
|
|
15115
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
14867
15116
|
createVNode(unref(LewButton), {
|
|
14868
15117
|
size: "small",
|
|
14869
15118
|
type: "blank",
|
|
@@ -17879,7 +18128,7 @@ const _hoisted_1$1 = { class: "demo-box" };
|
|
|
17879
18128
|
const _hoisted_2$1 = { class: "demo-item" };
|
|
17880
18129
|
const _hoisted_3$1 = { class: "demo-cp" };
|
|
17881
18130
|
const _hoisted_4$1 = { class: "pre-box" };
|
|
17882
|
-
const _hoisted_5
|
|
18131
|
+
const _hoisted_5 = { class: "icon" };
|
|
17883
18132
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
17884
18133
|
__name: "LewDemoBox",
|
|
17885
18134
|
props: {
|
|
@@ -17958,7 +18207,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
17958
18207
|
class: "show-bar",
|
|
17959
18208
|
onClick: _cache[0] || (_cache[0] = ($event) => isRef(isShowCode) ? isShowCode.value = !unref(isShowCode) : isShowCode = !unref(isShowCode))
|
|
17960
18209
|
}, [
|
|
17961
|
-
createElementVNode("div", _hoisted_5
|
|
18210
|
+
createElementVNode("div", _hoisted_5, [
|
|
17962
18211
|
!unref(isShowCode) ? (openBlock(), createBlock(_component_lew_icon, {
|
|
17963
18212
|
key: 0,
|
|
17964
18213
|
size: "16",
|
|
@@ -18222,12 +18471,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18222
18471
|
if (!dom.value)
|
|
18223
18472
|
return;
|
|
18224
18473
|
emit("click");
|
|
18225
|
-
let
|
|
18474
|
+
let timer2 = setInterval(() => {
|
|
18226
18475
|
let scrollDom = dom.value;
|
|
18227
18476
|
let ispeed = Math.floor(-scrollDom.scrollTop / 5);
|
|
18228
18477
|
scrollDom.scrollTop = scrollDom.scrollTop + ispeed;
|
|
18229
18478
|
if (scrollDom.scrollTop === 0) {
|
|
18230
|
-
clearInterval(
|
|
18479
|
+
clearInterval(timer2);
|
|
18231
18480
|
}
|
|
18232
18481
|
}, 20);
|
|
18233
18482
|
};
|
|
@@ -18314,62 +18563,123 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
18314
18563
|
LewBackTop
|
|
18315
18564
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18316
18565
|
var index$9 = "";
|
|
18317
|
-
const warning$2 = (
|
|
18318
|
-
message(
|
|
18566
|
+
const warning$2 = (e) => {
|
|
18567
|
+
message({
|
|
18568
|
+
type: "warning",
|
|
18569
|
+
e
|
|
18570
|
+
});
|
|
18319
18571
|
};
|
|
18320
|
-
const error$2 = (
|
|
18321
|
-
message(
|
|
18572
|
+
const error$2 = (e) => {
|
|
18573
|
+
message({
|
|
18574
|
+
type: "error",
|
|
18575
|
+
e
|
|
18576
|
+
});
|
|
18322
18577
|
};
|
|
18323
|
-
const info$2 = (
|
|
18324
|
-
message(
|
|
18578
|
+
const info$2 = (e) => {
|
|
18579
|
+
message({
|
|
18580
|
+
type: "info",
|
|
18581
|
+
e
|
|
18582
|
+
});
|
|
18325
18583
|
};
|
|
18326
|
-
const normal$2 = (
|
|
18327
|
-
message(
|
|
18584
|
+
const normal$2 = (e) => {
|
|
18585
|
+
message({
|
|
18586
|
+
type: "normal",
|
|
18587
|
+
e
|
|
18588
|
+
});
|
|
18328
18589
|
};
|
|
18329
|
-
const success$2 = (
|
|
18330
|
-
message(
|
|
18590
|
+
const success$2 = (e) => {
|
|
18591
|
+
message({
|
|
18592
|
+
type: "success",
|
|
18593
|
+
e
|
|
18594
|
+
});
|
|
18595
|
+
};
|
|
18596
|
+
const loading = (e) => {
|
|
18597
|
+
message({
|
|
18598
|
+
type: "loading",
|
|
18599
|
+
e
|
|
18600
|
+
});
|
|
18601
|
+
};
|
|
18602
|
+
const clear = (id) => {
|
|
18603
|
+
const LewMessageDom = document.getElementById("lew-message");
|
|
18604
|
+
if (id) {
|
|
18605
|
+
let messageDom = document.getElementById(`message-id-${id}`);
|
|
18606
|
+
messageDom && messageDom.classList.add("message-hidden");
|
|
18607
|
+
setTimeout(() => {
|
|
18608
|
+
if (messageDom)
|
|
18609
|
+
LewMessageDom == null ? void 0 : LewMessageDom.removeChild(messageDom);
|
|
18610
|
+
}, 120);
|
|
18611
|
+
} else {
|
|
18612
|
+
if (LewMessageDom == null ? void 0 : LewMessageDom.childNodes) {
|
|
18613
|
+
Array.from(LewMessageDom == null ? void 0 : LewMessageDom.children).forEach((e) => {
|
|
18614
|
+
e && e.classList.add("message-hidden");
|
|
18615
|
+
setTimeout(() => {
|
|
18616
|
+
try {
|
|
18617
|
+
if (e)
|
|
18618
|
+
LewMessageDom == null ? void 0 : LewMessageDom.removeChild(e);
|
|
18619
|
+
} catch {
|
|
18620
|
+
}
|
|
18621
|
+
}, 120);
|
|
18622
|
+
});
|
|
18623
|
+
}
|
|
18624
|
+
}
|
|
18331
18625
|
};
|
|
18332
18626
|
const createMessageList$1 = () => {
|
|
18333
18627
|
const div2 = document.createElement("div");
|
|
18334
18628
|
div2.setAttribute("id", "lew-message");
|
|
18335
18629
|
document.body.appendChild(div2);
|
|
18336
18630
|
};
|
|
18337
|
-
const message = (type,
|
|
18631
|
+
const message = ({ type, e }) => {
|
|
18338
18632
|
if (!document.getElementById("lew-message")) {
|
|
18339
18633
|
createMessageList$1();
|
|
18340
|
-
message(type,
|
|
18634
|
+
message({ type, e });
|
|
18341
18635
|
} else {
|
|
18342
|
-
|
|
18636
|
+
setMessage({ type, e });
|
|
18343
18637
|
}
|
|
18344
18638
|
};
|
|
18345
|
-
|
|
18639
|
+
let timer = {};
|
|
18640
|
+
const setMessage = ({ type, e }) => {
|
|
18346
18641
|
const LewMessageDom = document.getElementById("lew-message");
|
|
18347
|
-
|
|
18642
|
+
let hasMessageById = e.id ? document.getElementById(`message-id-${e.id}`) : false;
|
|
18643
|
+
let messageDom = hasMessageById || document.createElement("div");
|
|
18348
18644
|
const svgArr = {
|
|
18349
18645
|
success: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check vue-feather__content"><polyline points="20 6 9 17 4 12"></polyline></svg>`,
|
|
18350
18646
|
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle vue-feather__content"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>`,
|
|
18351
18647
|
error: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-circle vue-feather__content"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>`,
|
|
18352
18648
|
normal: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info vue-feather__content"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`,
|
|
18353
|
-
info: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell vue-feather__content"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg
|
|
18649
|
+
info: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell vue-feather__content"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>`,
|
|
18650
|
+
loading: `<svg xmlns="http://www.w3.org/2000/svg" class="vue-feather--spin vue-feather--fast" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader vue-feather__content"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>`
|
|
18354
18651
|
};
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18652
|
+
messageDom.innerHTML = `${svgArr[type]}<div class="content">${e.content || e}</div>`;
|
|
18653
|
+
if (!hasMessageById) {
|
|
18654
|
+
if (e.id) {
|
|
18655
|
+
messageDom.setAttribute("id", `message-id-${e.id}`);
|
|
18656
|
+
}
|
|
18657
|
+
LewMessageDom == null ? void 0 : LewMessageDom.appendChild(messageDom, LewMessageDom == null ? void 0 : LewMessageDom.childNodes[0]);
|
|
18658
|
+
} else {
|
|
18659
|
+
clearTimeout(timer[e.id]);
|
|
18660
|
+
}
|
|
18661
|
+
messageDom.setAttribute(
|
|
18662
|
+
"class",
|
|
18663
|
+
`message message-${type} message-id-${e.id}`
|
|
18664
|
+
);
|
|
18358
18665
|
setTimeout(() => {
|
|
18359
|
-
|
|
18666
|
+
messageDom.setAttribute(
|
|
18360
18667
|
"class",
|
|
18361
18668
|
`message message-${type} message-show`
|
|
18362
18669
|
);
|
|
18363
|
-
setTimeout(() => {
|
|
18364
|
-
|
|
18670
|
+
timer[e.id] = setTimeout(() => {
|
|
18671
|
+
messageDom.setAttribute(
|
|
18365
18672
|
"class",
|
|
18366
18673
|
`message message-${type} message-hidden`
|
|
18367
18674
|
);
|
|
18368
18675
|
setTimeout(() => {
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18676
|
+
try {
|
|
18677
|
+
if (messageDom)
|
|
18678
|
+
LewMessageDom == null ? void 0 : LewMessageDom.removeChild(messageDom);
|
|
18679
|
+
} catch {
|
|
18680
|
+
}
|
|
18681
|
+
}, 120);
|
|
18682
|
+
}, e.duration || 3e3);
|
|
18373
18683
|
}, 10);
|
|
18374
18684
|
};
|
|
18375
18685
|
var index$8 = {
|
|
@@ -18378,7 +18688,9 @@ var index$8 = {
|
|
|
18378
18688
|
info: info$2,
|
|
18379
18689
|
normal: normal$2,
|
|
18380
18690
|
success: success$2,
|
|
18381
|
-
error: error$2
|
|
18691
|
+
error: error$2,
|
|
18692
|
+
loading,
|
|
18693
|
+
clear
|
|
18382
18694
|
};
|
|
18383
18695
|
const _props = {
|
|
18384
18696
|
visible: {
|
|
@@ -18396,10 +18708,16 @@ const _props = {
|
|
|
18396
18708
|
default: ""
|
|
18397
18709
|
},
|
|
18398
18710
|
ok: {
|
|
18399
|
-
type: Function
|
|
18711
|
+
type: Function,
|
|
18712
|
+
default: () => {
|
|
18713
|
+
return true;
|
|
18714
|
+
}
|
|
18400
18715
|
},
|
|
18401
18716
|
cancel: {
|
|
18402
|
-
type: Function
|
|
18717
|
+
type: Function,
|
|
18718
|
+
default: () => {
|
|
18719
|
+
return true;
|
|
18720
|
+
}
|
|
18403
18721
|
},
|
|
18404
18722
|
layout: {
|
|
18405
18723
|
type: String,
|
|
@@ -18410,51 +18728,49 @@ var LewDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
|
18410
18728
|
var LewDialog_vue_vue_type_style_index_1_lang = "";
|
|
18411
18729
|
const _hoisted_1 = { class: "left" };
|
|
18412
18730
|
const _hoisted_2 = { class: "right" };
|
|
18413
|
-
const _hoisted_3 = {
|
|
18414
|
-
|
|
18415
|
-
class: "lew-dialog-box lew-dialog-box-easy"
|
|
18416
|
-
};
|
|
18417
|
-
const _hoisted_4 = { class: "left" };
|
|
18418
|
-
const _hoisted_5 = { class: "right" };
|
|
18731
|
+
const _hoisted_3 = { class: "left" };
|
|
18732
|
+
const _hoisted_4 = { class: "right" };
|
|
18419
18733
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18420
18734
|
__name: "LewDialog",
|
|
18421
18735
|
props: _props,
|
|
18422
|
-
emits: ["
|
|
18736
|
+
emits: ["close"],
|
|
18423
18737
|
setup(__props, { emit }) {
|
|
18424
18738
|
const props = __props;
|
|
18425
18739
|
let okLoading = ref(false);
|
|
18426
18740
|
let cancelLoading = ref(false);
|
|
18427
|
-
const
|
|
18741
|
+
const maskClick = () => {
|
|
18428
18742
|
if (props == null ? void 0 : props.closeOnClickOverlay) {
|
|
18429
18743
|
close();
|
|
18430
18744
|
}
|
|
18431
18745
|
};
|
|
18432
|
-
let
|
|
18746
|
+
let visibleMask = ref(true);
|
|
18433
18747
|
let _visible = ref(true);
|
|
18434
|
-
let _visibleTimer = ref();
|
|
18435
18748
|
const close = () => {
|
|
18436
|
-
|
|
18437
|
-
|
|
18438
|
-
clearTimeout(_visibleTimer.value);
|
|
18439
|
-
_visibleTimer.value = setTimeout(() => {
|
|
18749
|
+
visibleMask.value = false;
|
|
18750
|
+
setTimeout(() => {
|
|
18440
18751
|
_visible.value = false;
|
|
18441
|
-
|
|
18752
|
+
emit("close");
|
|
18753
|
+
}, 200);
|
|
18442
18754
|
};
|
|
18443
|
-
const
|
|
18755
|
+
const ok = async () => {
|
|
18444
18756
|
if (typeof props.ok === "function") {
|
|
18445
18757
|
okLoading.value = true;
|
|
18446
|
-
await props.ok();
|
|
18758
|
+
const isOk = await props.ok();
|
|
18759
|
+
if (isOk !== false) {
|
|
18760
|
+
close();
|
|
18761
|
+
}
|
|
18447
18762
|
okLoading.value = false;
|
|
18448
18763
|
}
|
|
18449
|
-
close();
|
|
18450
18764
|
};
|
|
18451
|
-
const
|
|
18765
|
+
const cancel = async () => {
|
|
18452
18766
|
if (typeof props.cancel === "function") {
|
|
18453
18767
|
cancelLoading.value = true;
|
|
18454
|
-
await props.cancel();
|
|
18768
|
+
const isCancel = await props.cancel();
|
|
18769
|
+
if (isCancel !== false) {
|
|
18770
|
+
close();
|
|
18771
|
+
}
|
|
18455
18772
|
cancelLoading.value = false;
|
|
18456
18773
|
}
|
|
18457
|
-
close();
|
|
18458
18774
|
};
|
|
18459
18775
|
return (_ctx, _cache) => {
|
|
18460
18776
|
return openBlock(), createElementBlock("div", null, [
|
|
@@ -18463,86 +18779,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18463
18779
|
key: 0,
|
|
18464
18780
|
class: "lew-dialog",
|
|
18465
18781
|
style: normalizeStyle(
|
|
18466
|
-
unref(
|
|
18782
|
+
unref(visibleMask) ? "animation: lewDialogOpen 0.2s ease-out;" : "animation: lewDialogClose 0.2s ease-out;"
|
|
18467
18783
|
),
|
|
18468
|
-
onClick:
|
|
18784
|
+
onClick: maskClick
|
|
18469
18785
|
}, [
|
|
18470
|
-
|
|
18786
|
+
_ctx.layout === "normal" ? (openBlock(), createElementBlock("div", {
|
|
18787
|
+
key: 0,
|
|
18788
|
+
class: "lew-dialog-box lew-dialog-box-normal",
|
|
18471
18789
|
style: normalizeStyle(
|
|
18472
|
-
unref(
|
|
18473
|
-
)
|
|
18790
|
+
unref(visibleMask) ? "animation: lewDialogBoxOpen 0.25s ease-out; " : "animation: lewDialogBoxClose 0.25s ease-out; "
|
|
18791
|
+
),
|
|
18792
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
18793
|
+
}, ["stop"]))
|
|
18474
18794
|
}, [
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18795
|
+
createElementVNode("div", _hoisted_1, [
|
|
18796
|
+
createElementVNode("div", {
|
|
18797
|
+
class: normalizeClass(`icon-${_ctx.type}`)
|
|
18798
|
+
}, [
|
|
18799
|
+
createVNode(unref(script), {
|
|
18800
|
+
size: "30",
|
|
18801
|
+
type: unref(getIconType)(_ctx.type)
|
|
18802
|
+
}, null, 8, ["type"])
|
|
18803
|
+
], 2)
|
|
18804
|
+
]),
|
|
18805
|
+
createElementVNode("div", _hoisted_2, [
|
|
18806
|
+
createElementVNode("header", null, [
|
|
18807
|
+
renderSlot(_ctx.$slots, "title", {}, void 0, true),
|
|
18808
|
+
createElementVNode("span", {
|
|
18809
|
+
class: "gulu-dialog-close",
|
|
18810
|
+
onClick: _cache[0] || (_cache[0] = ($event) => close())
|
|
18811
|
+
})
|
|
18490
18812
|
]),
|
|
18491
|
-
createElementVNode("
|
|
18492
|
-
|
|
18493
|
-
renderSlot(_ctx.$slots, "title", {}, void 0, true),
|
|
18494
|
-
createElementVNode("span", {
|
|
18495
|
-
class: "gulu-dialog-close",
|
|
18496
|
-
onClick: close
|
|
18497
|
-
})
|
|
18498
|
-
]),
|
|
18499
|
-
createElementVNode("main", null, [
|
|
18500
|
-
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
18501
|
-
]),
|
|
18502
|
-
createElementVNode("footer", null, [
|
|
18503
|
-
createVNode(unref(LewButton), {
|
|
18504
|
-
loading: unref(cancelLoading),
|
|
18505
|
-
type: "blank",
|
|
18506
|
-
onClick: withModifiers(cancelHandle, ["stop"])
|
|
18507
|
-
}, {
|
|
18508
|
-
default: withCtx(() => [
|
|
18509
|
-
createTextVNode("\u53D6\u6D88 ")
|
|
18510
|
-
]),
|
|
18511
|
-
_: 1
|
|
18512
|
-
}, 8, ["loading", "onClick"]),
|
|
18513
|
-
createVNode(unref(LewButton), {
|
|
18514
|
-
loading: unref(okLoading),
|
|
18515
|
-
onClick: withModifiers(okHandle, ["stop"])
|
|
18516
|
-
}, {
|
|
18517
|
-
default: withCtx(() => [
|
|
18518
|
-
createTextVNode("\u786E\u8BA4")
|
|
18519
|
-
]),
|
|
18520
|
-
_: 1
|
|
18521
|
-
}, 8, ["loading", "onClick"])
|
|
18522
|
-
])
|
|
18523
|
-
])
|
|
18524
|
-
])) : createCommentVNode("v-if", true),
|
|
18525
|
-
_ctx.layout === "easy" ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
18526
|
-
createElementVNode("div", _hoisted_4, [
|
|
18527
|
-
createElementVNode("div", {
|
|
18528
|
-
class: normalizeClass(`icon-${_ctx.type}`)
|
|
18529
|
-
}, [
|
|
18530
|
-
createVNode(unref(script), {
|
|
18531
|
-
size: "20",
|
|
18532
|
-
type: unref(getIconType)(_ctx.type)
|
|
18533
|
-
}, null, 8, ["type"])
|
|
18534
|
-
], 2)
|
|
18813
|
+
createElementVNode("main", null, [
|
|
18814
|
+
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
18535
18815
|
]),
|
|
18536
|
-
createElementVNode("
|
|
18537
|
-
createElementVNode("main", null, [
|
|
18538
|
-
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
18539
|
-
]),
|
|
18816
|
+
createElementVNode("footer", null, [
|
|
18540
18817
|
createVNode(unref(LewButton), {
|
|
18541
|
-
style: { "margin-right": "10px" },
|
|
18542
|
-
type: "normal",
|
|
18543
|
-
size: "small",
|
|
18544
18818
|
loading: unref(cancelLoading),
|
|
18545
|
-
|
|
18819
|
+
type: "blank",
|
|
18820
|
+
onClick: withModifiers(cancel, ["stop"])
|
|
18546
18821
|
}, {
|
|
18547
18822
|
default: withCtx(() => [
|
|
18548
18823
|
createTextVNode("\u53D6\u6D88 ")
|
|
@@ -18551,17 +18826,63 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18551
18826
|
}, 8, ["loading", "onClick"]),
|
|
18552
18827
|
createVNode(unref(LewButton), {
|
|
18553
18828
|
loading: unref(okLoading),
|
|
18554
|
-
onClick: withModifiers(
|
|
18555
|
-
size: "small"
|
|
18829
|
+
onClick: withModifiers(ok, ["stop"])
|
|
18556
18830
|
}, {
|
|
18557
18831
|
default: withCtx(() => [
|
|
18558
|
-
createTextVNode("\u786E\u8BA4
|
|
18832
|
+
createTextVNode("\u786E\u8BA4")
|
|
18559
18833
|
]),
|
|
18560
18834
|
_: 1
|
|
18561
18835
|
}, 8, ["loading", "onClick"])
|
|
18562
18836
|
])
|
|
18563
|
-
])
|
|
18564
|
-
], 4)
|
|
18837
|
+
])
|
|
18838
|
+
], 4)) : createCommentVNode("v-if", true),
|
|
18839
|
+
_ctx.layout === "easy" ? (openBlock(), createElementBlock("div", {
|
|
18840
|
+
key: 1,
|
|
18841
|
+
class: "lew-dialog-box lew-dialog-box-easy",
|
|
18842
|
+
style: normalizeStyle(
|
|
18843
|
+
unref(visibleMask) ? "animation: lewDialogBoxOpen 0.25s ease-out;" : "animation: lewDialogBoxClose 0.25s ease-out;"
|
|
18844
|
+
),
|
|
18845
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
18846
|
+
}, ["stop"]))
|
|
18847
|
+
}, [
|
|
18848
|
+
createElementVNode("div", _hoisted_3, [
|
|
18849
|
+
createElementVNode("div", {
|
|
18850
|
+
class: normalizeClass(`icon-${_ctx.type}`)
|
|
18851
|
+
}, [
|
|
18852
|
+
createVNode(unref(script), {
|
|
18853
|
+
size: "20",
|
|
18854
|
+
type: unref(getIconType)(_ctx.type)
|
|
18855
|
+
}, null, 8, ["type"])
|
|
18856
|
+
], 2)
|
|
18857
|
+
]),
|
|
18858
|
+
createElementVNode("div", _hoisted_4, [
|
|
18859
|
+
createElementVNode("main", null, [
|
|
18860
|
+
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
18861
|
+
]),
|
|
18862
|
+
createVNode(unref(LewButton), {
|
|
18863
|
+
style: { "margin-right": "10px" },
|
|
18864
|
+
type: "normal",
|
|
18865
|
+
size: "small",
|
|
18866
|
+
loading: unref(cancelLoading),
|
|
18867
|
+
onClick: withModifiers(cancel, ["stop"])
|
|
18868
|
+
}, {
|
|
18869
|
+
default: withCtx(() => [
|
|
18870
|
+
createTextVNode("\u53D6\u6D88 ")
|
|
18871
|
+
]),
|
|
18872
|
+
_: 1
|
|
18873
|
+
}, 8, ["loading", "onClick"]),
|
|
18874
|
+
createVNode(unref(LewButton), {
|
|
18875
|
+
loading: unref(okLoading),
|
|
18876
|
+
onClick: withModifiers(ok, ["stop"]),
|
|
18877
|
+
size: "small"
|
|
18878
|
+
}, {
|
|
18879
|
+
default: withCtx(() => [
|
|
18880
|
+
createTextVNode("\u786E\u8BA4 ")
|
|
18881
|
+
]),
|
|
18882
|
+
_: 1
|
|
18883
|
+
}, 8, ["loading", "onClick"])
|
|
18884
|
+
])
|
|
18885
|
+
], 4)) : createCommentVNode("v-if", true)
|
|
18565
18886
|
], 4)) : createCommentVNode("v-if", true)
|
|
18566
18887
|
]))
|
|
18567
18888
|
]);
|
|
@@ -18588,7 +18909,6 @@ const dialog = (type, options) => {
|
|
|
18588
18909
|
const { title, content, ok, cancel, layout, closeOnClickOverlay } = options;
|
|
18589
18910
|
const div2 = document.createElement("div");
|
|
18590
18911
|
document.body.appendChild(div2);
|
|
18591
|
-
console.log(closeOnClickOverlay);
|
|
18592
18912
|
const app = createApp({
|
|
18593
18913
|
render() {
|
|
18594
18914
|
return h(
|
|
@@ -18597,9 +18917,16 @@ const dialog = (type, options) => {
|
|
|
18597
18917
|
closeOnClickOverlay,
|
|
18598
18918
|
type,
|
|
18599
18919
|
layout,
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18920
|
+
ok: ok ? ok : () => {
|
|
18921
|
+
return true;
|
|
18922
|
+
},
|
|
18923
|
+
onClose: () => {
|
|
18924
|
+
app.unmount(div2);
|
|
18925
|
+
div2.remove();
|
|
18926
|
+
},
|
|
18927
|
+
cancel: cancel ? cancel : () => {
|
|
18928
|
+
return true;
|
|
18929
|
+
}
|
|
18603
18930
|
},
|
|
18604
18931
|
{
|
|
18605
18932
|
title: () => title,
|
|
@@ -18684,12 +19011,12 @@ var index$5 = {
|
|
|
18684
19011
|
_toBackUp = () => {
|
|
18685
19012
|
if (!dom.value)
|
|
18686
19013
|
return;
|
|
18687
|
-
const
|
|
19014
|
+
const timer2 = setInterval(() => {
|
|
18688
19015
|
const scrollDom = dom.value;
|
|
18689
19016
|
const ispeed = Math.floor(-scrollDom.scrollTop / 5);
|
|
18690
19017
|
scrollDom.scrollTop = scrollDom.scrollTop + ispeed;
|
|
18691
19018
|
if (scrollDom.scrollTop === 0) {
|
|
18692
|
-
clearInterval(
|
|
19019
|
+
clearInterval(timer2);
|
|
18693
19020
|
}
|
|
18694
19021
|
}, 20);
|
|
18695
19022
|
};
|
|
@@ -18702,56 +19029,6 @@ var index$5 = {
|
|
|
18702
19029
|
}
|
|
18703
19030
|
};
|
|
18704
19031
|
var index$4 = "";
|
|
18705
|
-
var _a;
|
|
18706
|
-
const isClient = typeof window !== "undefined";
|
|
18707
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
18708
|
-
function resolveUnref(r) {
|
|
18709
|
-
return typeof r === "function" ? r() : unref(r);
|
|
18710
|
-
}
|
|
18711
|
-
function tryOnScopeDispose(fn2) {
|
|
18712
|
-
if (getCurrentScope()) {
|
|
18713
|
-
onScopeDispose(fn2);
|
|
18714
|
-
return true;
|
|
18715
|
-
}
|
|
18716
|
-
return false;
|
|
18717
|
-
}
|
|
18718
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
18719
|
-
const {
|
|
18720
|
-
immediate = true
|
|
18721
|
-
} = options;
|
|
18722
|
-
const isPending = ref(false);
|
|
18723
|
-
let timer = null;
|
|
18724
|
-
function clear() {
|
|
18725
|
-
if (timer) {
|
|
18726
|
-
clearTimeout(timer);
|
|
18727
|
-
timer = null;
|
|
18728
|
-
}
|
|
18729
|
-
}
|
|
18730
|
-
function stop() {
|
|
18731
|
-
isPending.value = false;
|
|
18732
|
-
clear();
|
|
18733
|
-
}
|
|
18734
|
-
function start2(...args) {
|
|
18735
|
-
clear();
|
|
18736
|
-
isPending.value = true;
|
|
18737
|
-
timer = setTimeout(() => {
|
|
18738
|
-
isPending.value = false;
|
|
18739
|
-
timer = null;
|
|
18740
|
-
cb(...args);
|
|
18741
|
-
}, resolveUnref(interval));
|
|
18742
|
-
}
|
|
18743
|
-
if (immediate) {
|
|
18744
|
-
isPending.value = true;
|
|
18745
|
-
if (isClient)
|
|
18746
|
-
start2();
|
|
18747
|
-
}
|
|
18748
|
-
tryOnScopeDispose(stop);
|
|
18749
|
-
return {
|
|
18750
|
-
isPending,
|
|
18751
|
-
start: start2,
|
|
18752
|
-
stop
|
|
18753
|
-
};
|
|
18754
|
-
}
|
|
18755
19032
|
const warning = ({ title, content, delay = 3e3 }) => {
|
|
18756
19033
|
notification("warning", title, content, delay);
|
|
18757
19034
|
};
|
|
@@ -18809,17 +19086,17 @@ const add = (type, title, content, delay) => {
|
|
|
18809
19086
|
"class",
|
|
18810
19087
|
`lew-notification lew-notification-${type}`
|
|
18811
19088
|
);
|
|
18812
|
-
let
|
|
19089
|
+
let timer2 = void 0;
|
|
18813
19090
|
let lock = false;
|
|
18814
19091
|
function startTimer() {
|
|
18815
19092
|
if (delay > 0) {
|
|
18816
|
-
({ stop:
|
|
19093
|
+
({ stop: timer2 } = useTimeoutFn(() => {
|
|
18817
19094
|
handleClose();
|
|
18818
19095
|
}, delay));
|
|
18819
19096
|
}
|
|
18820
19097
|
}
|
|
18821
19098
|
function clearTimer() {
|
|
18822
|
-
|
|
19099
|
+
timer2 == null ? void 0 : timer2();
|
|
18823
19100
|
}
|
|
18824
19101
|
function handleClose() {
|
|
18825
19102
|
if (lock) {
|
|
@@ -18913,7 +19190,7 @@ const install = function(Vue) {
|
|
|
18913
19190
|
);
|
|
18914
19191
|
_components.forEach((component) => {
|
|
18915
19192
|
if (component.hasOwnProperty("name") || component.hasOwnProperty("__name")) {
|
|
18916
|
-
Vue.component(component.name || component.__name
|
|
19193
|
+
Vue.component(`${component.name || component.__name}`, component);
|
|
18917
19194
|
}
|
|
18918
19195
|
});
|
|
18919
19196
|
_directives.forEach((directive) => {
|