snail.vue 2.0.20 → 2.0.22
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/LICENSE +21 -21
- package/README.md +86 -86
- package/dist/snail.vue.d.ts +108 -3
- package/dist/snail.vue.js +295 -140
- package/dist/snail.vue.umd.js +294 -139
- package/dist/styles/snail.vue.vue.css +52 -48
- package/package.json +31 -31
- package/vue.code-snippets +35 -35
package/dist/snail.vue.umd.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SnailVue = global.SnailVue || {}, global.Vue, global.Snail, global.SnailView));
|
|
6
6
|
})(this, (function (exports, vue, snail_core, snail_view) { 'use strict';
|
|
7
7
|
|
|
8
|
-
const _hoisted_1$
|
|
9
|
-
var _sfc_main$
|
|
8
|
+
const _hoisted_1$o = ["title"];
|
|
9
|
+
var _sfc_main$F = vue.defineComponent({
|
|
10
10
|
...{
|
|
11
11
|
name: "Button",
|
|
12
12
|
inheritAttrs: true
|
|
@@ -22,11 +22,15 @@
|
|
|
22
22
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
23
23
|
class: vue.normalizeClass(["snail-button", [__props.size, __props.type]]),
|
|
24
24
|
title: __props.title
|
|
25
|
-
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$
|
|
25
|
+
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = vue.createTextVNode("按钮", -1))])], 10, _hoisted_1$o);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
+
var addLink = href => setTimeout(snail_view.link.register, 0, href);
|
|
31
|
+
|
|
32
|
+
addLink("/styles/snail.vue.vue.css");
|
|
33
|
+
|
|
30
34
|
function getBuiltinIcon(iconType) {
|
|
31
35
|
switch (iconType) {
|
|
32
36
|
case "success":
|
|
@@ -65,10 +69,10 @@
|
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
|
-
const _hoisted_1$
|
|
69
|
-
const _hoisted_2$
|
|
72
|
+
const _hoisted_1$n = ["viewBox"];
|
|
73
|
+
const _hoisted_2$f = ["textContent"];
|
|
70
74
|
const _hoisted_3$a = ["d"];
|
|
71
|
-
var _sfc_main$
|
|
75
|
+
var _sfc_main$E = vue.defineComponent({
|
|
72
76
|
__name: "icon",
|
|
73
77
|
props: {
|
|
74
78
|
title: {},
|
|
@@ -123,7 +127,7 @@
|
|
|
123
127
|
onMouseleave: _cache[1] || (_cache[1] = $event => isMouseEnterRef.value = false)
|
|
124
128
|
}), [vue.createElementVNode("title", {
|
|
125
129
|
textContent: vue.toDisplayString(__props.title || "")
|
|
126
|
-
}, null, 8, _hoisted_2$
|
|
130
|
+
}, null, 8, _hoisted_2$f), __props.custom == true ? vue.renderSlot(_ctx.$slots, "default", {
|
|
127
131
|
key: 0
|
|
128
132
|
}) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
129
133
|
key: 1
|
|
@@ -131,16 +135,16 @@
|
|
|
131
135
|
return vue.openBlock(), vue.createElementBlock("path", {
|
|
132
136
|
d
|
|
133
137
|
}, null, 8, _hoisted_3$a);
|
|
134
|
-
}), 256))], 16, _hoisted_1$
|
|
138
|
+
}), 256))], 16, _hoisted_1$n);
|
|
135
139
|
};
|
|
136
140
|
}
|
|
137
141
|
});
|
|
138
142
|
|
|
139
|
-
const _hoisted_1$
|
|
140
|
-
const _hoisted_2$
|
|
143
|
+
const _hoisted_1$m = ["title", "onClick"];
|
|
144
|
+
const _hoisted_2$e = ["type", "checked"];
|
|
141
145
|
const _hoisted_3$9 = ["textContent"];
|
|
142
146
|
const _hoisted_4$7 = ["textContent"];
|
|
143
|
-
var _sfc_main$
|
|
147
|
+
var _sfc_main$D = vue.defineComponent({
|
|
144
148
|
...{
|
|
145
149
|
name: "Choose",
|
|
146
150
|
inheritAttrs: true
|
|
@@ -216,10 +220,10 @@
|
|
|
216
220
|
key: 0,
|
|
217
221
|
type: vue.unref(type),
|
|
218
222
|
checked: node.selected
|
|
219
|
-
}, null, 8, _hoisted_2$
|
|
223
|
+
}, null, 8, _hoisted_2$e)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
220
224
|
key: 1,
|
|
221
225
|
class: vue.normalizeClass(["status", [node.selected ? "selected" : ""]])
|
|
222
|
-
}, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
226
|
+
}, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
223
227
|
key: 0,
|
|
224
228
|
type: "success",
|
|
225
229
|
size: 12,
|
|
@@ -232,17 +236,13 @@
|
|
|
232
236
|
key: 3,
|
|
233
237
|
class: "item-des",
|
|
234
238
|
textContent: vue.toDisplayString(node.item.description)
|
|
235
|
-
}, null, 8, _hoisted_4$7)) : vue.createCommentVNode("", true)], 14, _hoisted_1$
|
|
239
|
+
}, null, 8, _hoisted_4$7)) : vue.createCommentVNode("", true)], 14, _hoisted_1$m);
|
|
236
240
|
}), 128))], 2);
|
|
237
241
|
};
|
|
238
242
|
}
|
|
239
243
|
});
|
|
240
244
|
|
|
241
|
-
var
|
|
242
|
-
|
|
243
|
-
addLink("/styles/snail.vue.vue.css");
|
|
244
|
-
|
|
245
|
-
var _sfc_main$A = vue.defineComponent({
|
|
245
|
+
var _sfc_main$C = vue.defineComponent({
|
|
246
246
|
...{
|
|
247
247
|
name: "Footer",
|
|
248
248
|
inheritAttrs: true
|
|
@@ -273,13 +273,13 @@
|
|
|
273
273
|
class: vue.normalizeClass(["snail-footer", {
|
|
274
274
|
"start-divider": __props.divider
|
|
275
275
|
}, __props.align || "right"])
|
|
276
|
-
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
276
|
+
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
277
277
|
key: 0,
|
|
278
278
|
size: "max",
|
|
279
279
|
type: "default",
|
|
280
280
|
onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
|
|
281
281
|
textContent: vue.toDisplayString(__props.cancelName || "取消")
|
|
282
|
-
}, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
282
|
+
}, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
283
283
|
key: 1,
|
|
284
284
|
size: "max",
|
|
285
285
|
type: "primary",
|
|
@@ -290,8 +290,8 @@
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
const _hoisted_1$
|
|
294
|
-
var _sfc_main$
|
|
293
|
+
const _hoisted_1$l = ["textContent"];
|
|
294
|
+
var _sfc_main$B = vue.defineComponent({
|
|
295
295
|
...{
|
|
296
296
|
name: "Header",
|
|
297
297
|
inheritAttrs: true
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
key: 0,
|
|
331
331
|
textContent: vue.toDisplayString(__props.title),
|
|
332
332
|
class: vue.normalizeClass(["header-title", __props.titleAlign])
|
|
333
|
-
}, null, 10, _hoisted_1$
|
|
333
|
+
}, null, 10, _hoisted_1$l)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
334
334
|
key: 1,
|
|
335
335
|
class: "close-icon",
|
|
336
336
|
type: "close",
|
|
@@ -343,8 +343,8 @@
|
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
345
|
|
|
346
|
-
const _hoisted_1$
|
|
347
|
-
const _hoisted_2$
|
|
346
|
+
const _hoisted_1$k = ["textContent"];
|
|
347
|
+
const _hoisted_2$d = {
|
|
348
348
|
key: 0,
|
|
349
349
|
class: "required",
|
|
350
350
|
textContent: "*"
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
};
|
|
355
355
|
const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
|
|
356
356
|
const _hoisted_5$4 = ["title"];
|
|
357
|
-
var _sfc_main$
|
|
357
|
+
var _sfc_main$A = vue.defineComponent({
|
|
358
358
|
...{
|
|
359
359
|
name: "Input",
|
|
360
360
|
inheritAttrs: true
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
}, [vue.createElementVNode("span", {
|
|
407
407
|
class: "text",
|
|
408
408
|
textContent: vue.toDisplayString(__props.title)
|
|
409
|
-
}, null, 8, _hoisted_1$
|
|
409
|
+
}, null, 8, _hoisted_1$k), __props.readonly != true && __props.required == true ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$d)) : vue.createCommentVNode("", true)], 4)) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_3$8, [vue.createElementVNode("input", {
|
|
410
410
|
ref: "input-el",
|
|
411
411
|
type: __props.type || "text",
|
|
412
412
|
value: inputModel.value,
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
key: 0,
|
|
420
420
|
class: "validate",
|
|
421
421
|
title: validateRef.value
|
|
422
|
-
}, [vue.createVNode(_sfc_main$
|
|
422
|
+
}, [vue.createVNode(_sfc_main$E, {
|
|
423
423
|
type: "error",
|
|
424
424
|
button: "",
|
|
425
425
|
size: 16,
|
|
@@ -629,11 +629,11 @@
|
|
|
629
629
|
return formatter;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
const _hoisted_1$
|
|
632
|
+
const _hoisted_1$j = {
|
|
633
633
|
key: 0,
|
|
634
634
|
class: "number-prefix"
|
|
635
635
|
};
|
|
636
|
-
const _hoisted_2$
|
|
636
|
+
const _hoisted_2$c = ["textContent"];
|
|
637
637
|
const _hoisted_3$7 = ["inputmode", "placeholder", "title"];
|
|
638
638
|
const _hoisted_4$5 = {
|
|
639
639
|
key: 1,
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
const _hoisted_5$3 = ["textContent"];
|
|
643
643
|
const _hoisted_6$2 = ["title", "textContent"];
|
|
644
644
|
const _hoisted_7$1 = ["title", "textContent"];
|
|
645
|
-
var _sfc_main$
|
|
645
|
+
var _sfc_main$z = vue.defineComponent({
|
|
646
646
|
__name: "number",
|
|
647
647
|
props: vue.mergeModels({
|
|
648
648
|
placeholder: {},
|
|
@@ -789,10 +789,10 @@
|
|
|
789
789
|
"has-prefix": vue.unref(hasPrefix),
|
|
790
790
|
"has-suffix": vue.unref(hasSuffix)
|
|
791
791
|
}])
|
|
792
|
-
}, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
792
|
+
}, [vue.unref(hasPrefix) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [vue.createElementVNode("span", {
|
|
793
793
|
class: "ellipsis",
|
|
794
794
|
textContent: vue.toDisplayString(vue.unref(prefix))
|
|
795
|
-
}, null, 8, _hoisted_2$
|
|
795
|
+
}, null, 8, _hoisted_2$c)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
|
|
796
796
|
class: vue.normalizeClass(["input-panel", vue.unref(controls)])
|
|
797
797
|
}, [vue.withDirectives(vue.createElementVNode("input", {
|
|
798
798
|
type: "text",
|
|
@@ -809,14 +809,14 @@
|
|
|
809
809
|
}, [vue.createElementVNode("div", {
|
|
810
810
|
class: "controls default subtract",
|
|
811
811
|
onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
|
|
812
|
-
}, [vue.createVNode(_sfc_main$
|
|
812
|
+
}, [vue.createVNode(_sfc_main$E, {
|
|
813
813
|
type: "subtract",
|
|
814
814
|
button: "",
|
|
815
815
|
size: 20
|
|
816
816
|
})]), vue.createElementVNode("div", {
|
|
817
817
|
class: "controls default plus",
|
|
818
818
|
onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
|
|
819
|
-
}, [vue.createVNode(_sfc_main$
|
|
819
|
+
}, [vue.createVNode(_sfc_main$E, {
|
|
820
820
|
type: "plus",
|
|
821
821
|
button: "",
|
|
822
822
|
size: 20
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
}, [vue.createElementVNode("div", {
|
|
826
826
|
class: "controls right plus",
|
|
827
827
|
onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
|
|
828
|
-
}, [vue.createVNode(_sfc_main$
|
|
828
|
+
}, [vue.createVNode(_sfc_main$E, {
|
|
829
829
|
type: "arrow",
|
|
830
830
|
button: "",
|
|
831
831
|
size: 20,
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
})]), vue.createElementVNode("div", {
|
|
834
834
|
class: "controls right subtract",
|
|
835
835
|
onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
|
|
836
|
-
}, [vue.createVNode(_sfc_main$
|
|
836
|
+
}, [vue.createVNode(_sfc_main$E, {
|
|
837
837
|
type: "arrow",
|
|
838
838
|
button: "",
|
|
839
839
|
size: 20,
|
|
@@ -856,8 +856,8 @@
|
|
|
856
856
|
}
|
|
857
857
|
});
|
|
858
858
|
|
|
859
|
-
const _hoisted_1$
|
|
860
|
-
var _sfc_main$
|
|
859
|
+
const _hoisted_1$i = ["placeholder", "readonly"];
|
|
860
|
+
var _sfc_main$y = vue.defineComponent({
|
|
861
861
|
...{
|
|
862
862
|
name: "Search",
|
|
863
863
|
inheritAttrs: true
|
|
@@ -902,9 +902,9 @@
|
|
|
902
902
|
readonly: __props.readonly,
|
|
903
903
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => textModel.value = $event),
|
|
904
904
|
onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
|
|
905
|
-
}, null, 40, _hoisted_1$
|
|
905
|
+
}, null, 40, _hoisted_1$i), [[vue.vModelText, textModel.value, void 0, {
|
|
906
906
|
trim: true
|
|
907
|
-
}]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$
|
|
907
|
+
}]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$E, {
|
|
908
908
|
class: "search-button",
|
|
909
909
|
custom: "",
|
|
910
910
|
button: "",
|
|
@@ -1129,11 +1129,11 @@
|
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
const _hoisted_1$
|
|
1132
|
+
const _hoisted_1$h = {
|
|
1133
1133
|
class: "snail-confirm flex-column"
|
|
1134
1134
|
};
|
|
1135
|
-
const _hoisted_2$
|
|
1136
|
-
var _sfc_main$
|
|
1135
|
+
const _hoisted_2$b = ["innerHTML"];
|
|
1136
|
+
var _sfc_main$x = vue.defineComponent({
|
|
1137
1137
|
...{
|
|
1138
1138
|
name: "ConfirmContainer",
|
|
1139
1139
|
inheritAttrs: true
|
|
@@ -1161,14 +1161,14 @@
|
|
|
1161
1161
|
},
|
|
1162
1162
|
setup(__props) {
|
|
1163
1163
|
return (_ctx, _cache) => {
|
|
1164
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1164
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [vue.createVNode(_sfc_main$B, {
|
|
1165
1165
|
"use-to": "dialog",
|
|
1166
1166
|
title: __props.title || "提示",
|
|
1167
1167
|
onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
|
|
1168
1168
|
}, null, 8, ["title"]), vue.createElementVNode("div", {
|
|
1169
1169
|
class: "confirm-body",
|
|
1170
1170
|
innerHTML: __props.message || "请确认?"
|
|
1171
|
-
}, null, 8, _hoisted_2$
|
|
1171
|
+
}, null, 8, _hoisted_2$b), vue.createVNode(_sfc_main$C, {
|
|
1172
1172
|
align: "right",
|
|
1173
1173
|
"cancel-name": __props.cancelName,
|
|
1174
1174
|
"cancel-disabled": __props.cancelDisabled,
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
});
|
|
1230
1230
|
for (var key in MOTION) snail_core.hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
|
|
1231
1231
|
|
|
1232
|
-
var _sfc_main$
|
|
1232
|
+
var _sfc_main$w = vue.defineComponent({
|
|
1233
1233
|
__name: "motion",
|
|
1234
1234
|
props: {
|
|
1235
1235
|
multiple: {
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
}
|
|
1279
1279
|
});
|
|
1280
1280
|
|
|
1281
|
-
var _sfc_main$
|
|
1281
|
+
var _sfc_main$v = vue.defineComponent({
|
|
1282
1282
|
...{
|
|
1283
1283
|
name: "Loading",
|
|
1284
1284
|
inheritAttrs: true
|
|
@@ -1302,7 +1302,7 @@
|
|
|
1302
1302
|
},
|
|
1303
1303
|
setup(__props) {
|
|
1304
1304
|
return (_ctx, _cache) => {
|
|
1305
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1305
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$w, {
|
|
1306
1306
|
effect: vue.unref(MOTION).fade
|
|
1307
1307
|
}, {
|
|
1308
1308
|
default: vue.withCtx(() => [__props.show ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1317,7 +1317,7 @@
|
|
|
1317
1317
|
}
|
|
1318
1318
|
});
|
|
1319
1319
|
|
|
1320
|
-
var _sfc_main$
|
|
1320
|
+
var _sfc_main$u = vue.defineComponent({
|
|
1321
1321
|
...{
|
|
1322
1322
|
name: "Dynamic",
|
|
1323
1323
|
inheritAttrs: false
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
const loadingComponent = vue.defineComponent({
|
|
1342
1342
|
inheritAttrs: false,
|
|
1343
1343
|
components: {
|
|
1344
|
-
Loading: _sfc_main$
|
|
1344
|
+
Loading: _sfc_main$v
|
|
1345
1345
|
},
|
|
1346
1346
|
template: "<Loading :mask-disabled='true' />"
|
|
1347
1347
|
});
|
|
@@ -1408,7 +1408,7 @@
|
|
|
1408
1408
|
}
|
|
1409
1409
|
});
|
|
1410
1410
|
|
|
1411
|
-
var _sfc_main$
|
|
1411
|
+
var _sfc_main$t = vue.defineComponent({
|
|
1412
1412
|
...{
|
|
1413
1413
|
name: "DialogContainer",
|
|
1414
1414
|
inheritAttrs: true
|
|
@@ -1453,7 +1453,7 @@
|
|
|
1453
1453
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers($event => {
|
|
1454
1454
|
__props.options.closeOnMask && vue.unref(closePopup)();
|
|
1455
1455
|
}, ["self"]))
|
|
1456
|
-
}, [vue.createVNode(_sfc_main$
|
|
1456
|
+
}, [vue.createVNode(_sfc_main$u, vue.mergeProps({
|
|
1457
1457
|
class: "dialog-body",
|
|
1458
1458
|
name: __props.options.name,
|
|
1459
1459
|
component: __props.options.component,
|
|
@@ -1468,7 +1468,7 @@
|
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
1470
|
|
|
1471
|
-
var _sfc_main$
|
|
1471
|
+
var _sfc_main$s = vue.defineComponent({
|
|
1472
1472
|
...{
|
|
1473
1473
|
name: "FollowContainer",
|
|
1474
1474
|
inheritAttrs: true
|
|
@@ -1589,7 +1589,7 @@
|
|
|
1589
1589
|
});
|
|
1590
1590
|
});
|
|
1591
1591
|
return (_ctx, _cache) => {
|
|
1592
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1592
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
|
|
1593
1593
|
class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1594
1594
|
style: {
|
|
1595
1595
|
"z-index": __props.zIndex
|
|
@@ -1606,7 +1606,7 @@
|
|
|
1606
1606
|
}
|
|
1607
1607
|
});
|
|
1608
1608
|
|
|
1609
|
-
var _sfc_main$
|
|
1609
|
+
var _sfc_main$r = vue.defineComponent({
|
|
1610
1610
|
...{
|
|
1611
1611
|
name: "PopupContainer",
|
|
1612
1612
|
inheritAttrs: true
|
|
@@ -1626,7 +1626,7 @@
|
|
|
1626
1626
|
model = vue.shallowRef(void 0)
|
|
1627
1627
|
} = __props.options;
|
|
1628
1628
|
return (_ctx, _cache) => {
|
|
1629
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1629
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$u, vue.mergeProps({
|
|
1630
1630
|
class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1631
1631
|
style: {
|
|
1632
1632
|
"z-index": __props.zIndex
|
|
@@ -1644,12 +1644,12 @@
|
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
|
|
1647
|
-
const _hoisted_1$
|
|
1647
|
+
const _hoisted_1$g = {
|
|
1648
1648
|
key: 1,
|
|
1649
1649
|
class: "icon"
|
|
1650
1650
|
};
|
|
1651
|
-
const _hoisted_2$
|
|
1652
|
-
var _sfc_main$
|
|
1651
|
+
const _hoisted_2$a = ["innerHTML"];
|
|
1652
|
+
var _sfc_main$q = vue.defineComponent({
|
|
1653
1653
|
...{
|
|
1654
1654
|
name: "ToastContainer",
|
|
1655
1655
|
inheritAttrs: true
|
|
@@ -1686,7 +1686,7 @@
|
|
|
1686
1686
|
}),
|
|
1687
1687
|
onMouseenter: _cache[1] || (_cache[1] = $event => onMouseEvent(false)),
|
|
1688
1688
|
onMouseleave: _cache[2] || (_cache[2] = $event => onMouseEvent(true))
|
|
1689
|
-
}, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1689
|
+
}, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
1690
1690
|
key: 0,
|
|
1691
1691
|
class: "close-icon",
|
|
1692
1692
|
type: "close",
|
|
@@ -1697,21 +1697,21 @@
|
|
|
1697
1697
|
onClick: _cache[0] || (_cache[0] = $event => {
|
|
1698
1698
|
vue.unref(closePopup)();
|
|
1699
1699
|
})
|
|
1700
|
-
})) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1700
|
+
})) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [vue.createVNode(_sfc_main$E, {
|
|
1701
1701
|
type: vue.unref(props).type,
|
|
1702
1702
|
color: "#707070",
|
|
1703
1703
|
size: 20
|
|
1704
1704
|
}, null, 8, ["type"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
|
|
1705
1705
|
class: "message",
|
|
1706
1706
|
innerHTML: vue.unref(props).message
|
|
1707
|
-
}, null, 8, _hoisted_2$
|
|
1707
|
+
}, null, 8, _hoisted_2$a)], 38);
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
|
|
1712
1712
|
function usePopup() {
|
|
1713
1713
|
function popup(options) {
|
|
1714
|
-
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$
|
|
1714
|
+
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$r, options);
|
|
1715
1715
|
return addScope2Scopes(scope);
|
|
1716
1716
|
}
|
|
1717
1717
|
function dialog(options) {
|
|
@@ -1744,7 +1744,7 @@
|
|
|
1744
1744
|
},
|
|
1745
1745
|
onBeforeClose: fn => hook.register("onBeforeClose", fn)
|
|
1746
1746
|
});
|
|
1747
|
-
const descriptor = openPopup(_sfc_main$
|
|
1747
|
+
const descriptor = openPopup(_sfc_main$t, options, extOptions);
|
|
1748
1748
|
scope = snail_core.useAsyncScope(deferred.promise);
|
|
1749
1749
|
monitorDialog(descriptor, scope, deferred);
|
|
1750
1750
|
}
|
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
}
|
|
1753
1753
|
function follow(target, options) {
|
|
1754
1754
|
var scope = void 0;
|
|
1755
|
-
if (target instanceof
|
|
1755
|
+
if (target instanceof Element == false) {
|
|
1756
1756
|
const deferred = snail_core.defer();
|
|
1757
1757
|
deferred.reject("follow: target must be an HTMLElement.");
|
|
1758
1758
|
scope = snail_core.useAsyncScope(deferred.promise);
|
|
@@ -1762,14 +1762,14 @@
|
|
|
1762
1762
|
inPopup: "follow",
|
|
1763
1763
|
target
|
|
1764
1764
|
};
|
|
1765
|
-
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$
|
|
1765
|
+
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$s, options, extOptions);
|
|
1766
1766
|
}
|
|
1767
1767
|
return addScope2Scopes(scope);
|
|
1768
1768
|
}
|
|
1769
1769
|
function confirm(title, message, options) {
|
|
1770
1770
|
options = options || Object.create(null);
|
|
1771
1771
|
return dialog({
|
|
1772
|
-
component: _sfc_main$
|
|
1772
|
+
component: _sfc_main$x,
|
|
1773
1773
|
closeOnEscape: true,
|
|
1774
1774
|
props: {
|
|
1775
1775
|
...options,
|
|
@@ -1779,7 +1779,7 @@
|
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
function toast(type, message, options) {
|
|
1782
|
-
return popupInCustomContainer(_sfc_main$
|
|
1782
|
+
return popupInCustomContainer(_sfc_main$q, {
|
|
1783
1783
|
url: "#ToastContainer",
|
|
1784
1784
|
props: {
|
|
1785
1785
|
...(options || Object.create(null)),
|
|
@@ -1812,7 +1812,7 @@
|
|
|
1812
1812
|
},
|
|
1813
1813
|
...extOptions
|
|
1814
1814
|
});
|
|
1815
|
-
const descriptor = openPopup(container || _sfc_main$
|
|
1815
|
+
const descriptor = openPopup(container || _sfc_main$r, options, extOptions);
|
|
1816
1816
|
const scope = snail_core.useAsyncScope(deferred.promise);
|
|
1817
1817
|
scope.onDestroy(() => destroyPopup(descriptor, deferred));
|
|
1818
1818
|
return scope;
|
|
@@ -1947,12 +1947,12 @@
|
|
|
1947
1947
|
return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyREREODhFQ0M5M0UxMUU5ODlFREVENzc4Njk0RjQ2MiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyREREODhFREM5M0UxMUU5ODlFREVENzc4Njk0RjQ2MiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjJEREQ4OEVBQzkzRTExRTk4OUVERUQ3Nzg2OTRGNDYyIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjJEREQ4OEVCQzkzRTExRTk4OUVERUQ3Nzg2OTRGNDYyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8++keGxAAAA5lJREFUeNrsmktoE0EYx3eSTdpsk2abvnwcFBVp8QFqVPDgQaGgIogIoictelKKVhARBA8q+KAVrFqooh4qXgRfiHpTEHqw9iCKXqQHSVstpqlt0yabrP9p52K1yW72GTMf/JhZMrM7/3l+37REVVWhlMwjlJhxwVwwF8wFc8FcMBfsnIlGKg98TxRa9RbYAFYXUnl+XbjoRpiKXVXMU9qns3xK76CC/YC4QfA1MAg26aiTZGlQQ9la8AZ0g3VuENwLqsArsFVnXW+e30PgKVgGnoA+Nwi+Cw6DAHgGdmqoMwJoXJrJUcYPHoGN4C3Yl6e8rWv4Nmhma/kh2J6n/HW2JsdylLkKtoAPYAeYcPxYmmX32AjcAVHwPEfZFxreR2fAJ9Z5CbMaSYzceMxxDtN198vKo8Vt57ClYh0d4f/OtTTgOjpquaa8WEhldISM5DRYWYCXZdTS4DVoR9tSegdI9y6Nl1KBL5k/7JRto99HW/ZAtGralJ7DTtCPEUKUmqqKPlH0rtXgMZk2utms2jk0PEqPqt3gEOiybJdGjy5BcobmI7LUC7HrbRQ7HaR4PORoOBRoY+f0RbSp3spjqQNIPtEb8/vEqFMnixTwH0T6gPnwbZYIRk/uZWtHqApLQzaP7GyL1kSCPUinqIuKtjWZKhgvpFt1O82X+cXPXq9njdNHD2ZZC/aRTvZ4A20sN3OEz7IgXJDDkls8laV11aEBpHGaB62mCEbPNSA5QvNYO+88hDS6xcHABtbq9XiusMdTYJ4ZI3yBORdKZTBQ6zKnqq62OiQh7WdByzmjgqlzsWs6BAqW9xAiLHJdMECEY36f9zJ7pLt3oxHH4/j0O4kwWREoW8BuKvSYxG4utFoWjOoVHZErlg/+GP2I7ApwkgnXHy1h/VLntNJA76sROfgFI9CgoXh8OD72OJ3OHDA46Am4m3KhU7rSyJfRl2QiOaXVE3oPsU0mzPKw3RcAf5iiZEPaOkf9KsxcyVq7s1vu7SsZEQ5/LO81ydhk3I5Q05Y/tcQTExKLY/+9U2XV++PJVLMtZ7cdH0mlFfnnyPgIpm3s758y3Qj3NiNfY8sxlmeXNt2NhC/ej0grllXVdHIyVY/RbTD7G9iliZkXAIZsKqUspjjmjgolZlwwF1xigr8VoaYBI4I7ilBwl5Hw8JIwcx3aAha6XCj9t4ub4HzBjgfftLhgLpgL5oK5YC6YC+aCuWDt9luAAQC2EPxjL8cUkwAAAABJRU5ErkJggg==";
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
1950
|
-
const _hoisted_1$
|
|
1950
|
+
const _hoisted_1$f = {
|
|
1951
1951
|
class: "snail-empty"
|
|
1952
1952
|
};
|
|
1953
|
-
const _hoisted_2$
|
|
1953
|
+
const _hoisted_2$9 = ["src"];
|
|
1954
1954
|
const _hoisted_3$6 = ["textContent"];
|
|
1955
|
-
var _sfc_main$
|
|
1955
|
+
var _sfc_main$p = vue.defineComponent({
|
|
1956
1956
|
...{
|
|
1957
1957
|
name: "Empty",
|
|
1958
1958
|
inheritAttrs: true
|
|
@@ -1965,9 +1965,9 @@
|
|
|
1965
1965
|
setup(__props) {
|
|
1966
1966
|
const defaultImageBase64 = getNoDataBase64Image();
|
|
1967
1967
|
return (_ctx, _cache) => {
|
|
1968
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1968
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [vue.createElementVNode("img", {
|
|
1969
1969
|
src: __props.imageUrl || vue.unref(defaultImageBase64)
|
|
1970
|
-
}, null, 8, _hoisted_2$
|
|
1970
|
+
}, null, 8, _hoisted_2$9), vue.renderSlot(_ctx.$slots, "default", {}, () => [vue.createElementVNode("div", {
|
|
1971
1971
|
class: "message",
|
|
1972
1972
|
textContent: vue.toDisplayString(__props.message || "无数据")
|
|
1973
1973
|
}, null, 8, _hoisted_3$6)])]);
|
|
@@ -1975,13 +1975,13 @@
|
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
1977
|
|
|
1978
|
-
const _hoisted_1$
|
|
1979
|
-
const _hoisted_2$
|
|
1978
|
+
const _hoisted_1$e = ["title"];
|
|
1979
|
+
const _hoisted_2$8 = ["textContent"];
|
|
1980
1980
|
const _hoisted_3$5 = {
|
|
1981
1981
|
key: 1,
|
|
1982
1982
|
class: "select-status"
|
|
1983
1983
|
};
|
|
1984
|
-
var _sfc_main$
|
|
1984
|
+
var _sfc_main$o = vue.defineComponent({
|
|
1985
1985
|
...{
|
|
1986
1986
|
name: "SelectNode",
|
|
1987
1987
|
inheritAttrs: true
|
|
@@ -2026,15 +2026,15 @@
|
|
|
2026
2026
|
}, [vue.createElementVNode("div", {
|
|
2027
2027
|
class: "item-text ellipsis",
|
|
2028
2028
|
textContent: vue.toDisplayString(__props.item.text)
|
|
2029
|
-
}, null, 8, _hoisted_2$
|
|
2029
|
+
}, null, 8, _hoisted_2$8), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
2030
2030
|
key: 0,
|
|
2031
2031
|
type: "arrow"
|
|
2032
|
-
})) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [vue.createVNode(_sfc_main$
|
|
2032
|
+
})) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [vue.createVNode(_sfc_main$E, {
|
|
2033
2033
|
type: "success",
|
|
2034
2034
|
button: "",
|
|
2035
2035
|
size: 12,
|
|
2036
2036
|
color: "white"
|
|
2037
|
-
})])) : vue.createCommentVNode("", true)], 42, _hoisted_1$
|
|
2037
|
+
})])) : vue.createCommentVNode("", true)], 42, _hoisted_1$e)) : vue.createCommentVNode("", true), showRef.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
2038
2038
|
key: 1
|
|
2039
2039
|
}, vue.renderList(vue.unref(showChildrenRef), child => {
|
|
2040
2040
|
return vue.openBlock(), vue.createBlock(_component_SelectNode, {
|
|
@@ -2051,7 +2051,7 @@
|
|
|
2051
2051
|
}
|
|
2052
2052
|
});
|
|
2053
2053
|
|
|
2054
|
-
var _sfc_main$
|
|
2054
|
+
var _sfc_main$n = vue.defineComponent({
|
|
2055
2055
|
...{
|
|
2056
2056
|
name: "Select2Popup",
|
|
2057
2057
|
inheritAttrs: true
|
|
@@ -2223,13 +2223,13 @@
|
|
|
2223
2223
|
key: 0
|
|
2224
2224
|
}, [vue.createTextVNode(" 暂无选项 ")], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2225
2225
|
key: 1
|
|
2226
|
-
}, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2226
|
+
}, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
|
|
2227
2227
|
key: 0
|
|
2228
2228
|
}, __props.search, {
|
|
2229
2229
|
onSearch,
|
|
2230
2230
|
key: "select-search"
|
|
2231
2231
|
}), null, 16)) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(itemsRef.value, item => {
|
|
2232
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2232
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$o, {
|
|
2233
2233
|
key: vue.unref(context).getKey(item),
|
|
2234
2234
|
multiple: __props.multiple,
|
|
2235
2235
|
item,
|
|
@@ -2238,7 +2238,7 @@
|
|
|
2238
2238
|
onEnter: onEnterSelectNode,
|
|
2239
2239
|
onClick: onClickSelectNode
|
|
2240
2240
|
}, null, 8, ["multiple", "item", "context"]);
|
|
2241
|
-
}), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2241
|
+
}), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$p, {
|
|
2242
2242
|
key: 1,
|
|
2243
2243
|
message: "无结果"
|
|
2244
2244
|
})) : vue.createCommentVNode("", true), showClearButtonRef.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -2250,20 +2250,20 @@
|
|
|
2250
2250
|
}
|
|
2251
2251
|
});
|
|
2252
2252
|
|
|
2253
|
-
const _hoisted_1$
|
|
2253
|
+
const _hoisted_1$d = {
|
|
2254
2254
|
key: 0,
|
|
2255
2255
|
class: "select-result"
|
|
2256
2256
|
};
|
|
2257
|
-
const _hoisted_2$
|
|
2257
|
+
const _hoisted_2$7 = ["title", "textContent"];
|
|
2258
2258
|
const _hoisted_3$4 = ["textContent"];
|
|
2259
2259
|
const _hoisted_4$4 = {
|
|
2260
2260
|
key: 1,
|
|
2261
2261
|
class: "placeholder"
|
|
2262
2262
|
};
|
|
2263
2263
|
onAppCreated((app, type) => {
|
|
2264
|
-
type == "popup" && app.component("SelectPopup", _sfc_main$
|
|
2264
|
+
type == "popup" && app.component("SelectPopup", _sfc_main$n);
|
|
2265
2265
|
});
|
|
2266
|
-
var _sfc_main$
|
|
2266
|
+
var _sfc_main$m = vue.defineComponent({
|
|
2267
2267
|
...{
|
|
2268
2268
|
name: "Select",
|
|
2269
2269
|
inheritAttrs: true
|
|
@@ -2395,15 +2395,15 @@
|
|
|
2395
2395
|
ref: "select"
|
|
2396
2396
|
}, [__props.items && __props.items.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2397
2397
|
key: 0
|
|
2398
|
-
}, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
2398
|
+
}, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
|
|
2399
2399
|
class: "select-text ellipsis",
|
|
2400
2400
|
title: selectedTextRef.value,
|
|
2401
2401
|
textContent: vue.toDisplayString(selectedTextRef.value)
|
|
2402
|
-
}, null, 8, _hoisted_2$
|
|
2402
|
+
}, null, 8, _hoisted_2$7)])])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
2403
2403
|
key: 1,
|
|
2404
2404
|
class: "placeholder",
|
|
2405
2405
|
textContent: vue.toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
|
|
2406
|
-
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2406
|
+
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
2407
2407
|
key: 2,
|
|
2408
2408
|
type: "arrow",
|
|
2409
2409
|
button: "",
|
|
@@ -2414,7 +2414,7 @@
|
|
|
2414
2414
|
}
|
|
2415
2415
|
});
|
|
2416
2416
|
|
|
2417
|
-
var _sfc_main$
|
|
2417
|
+
var _sfc_main$l = vue.defineComponent({
|
|
2418
2418
|
...{
|
|
2419
2419
|
name: "Switch",
|
|
2420
2420
|
inheritAttrs: true
|
|
@@ -2463,8 +2463,8 @@
|
|
|
2463
2463
|
}
|
|
2464
2464
|
});
|
|
2465
2465
|
|
|
2466
|
-
const _hoisted_1$
|
|
2467
|
-
var _sfc_main$
|
|
2466
|
+
const _hoisted_1$c = ["readonly", "placeholder", "rows"];
|
|
2467
|
+
var _sfc_main$k = vue.defineComponent({
|
|
2468
2468
|
...{
|
|
2469
2469
|
name: "Textarea",
|
|
2470
2470
|
inheritAttrs: true
|
|
@@ -2524,7 +2524,161 @@
|
|
|
2524
2524
|
onInput: _cache[2] || (_cache[2] = $event => emits("input", textareaDom.value.value)),
|
|
2525
2525
|
onBlur: _cache[3] || (_cache[3] = $event => emits("blur", textareaDom.value.value)),
|
|
2526
2526
|
onChange: _cache[4] || (_cache[4] = $event => emits("change", textareaDom.value.value))
|
|
2527
|
-
}, null, 40, _hoisted_1$
|
|
2527
|
+
}, null, 40, _hoisted_1$c)), [[vue.vModelText, valueModel.value]]);
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
});
|
|
2531
|
+
|
|
2532
|
+
const _hoisted_1$b = ["onClick"];
|
|
2533
|
+
const _hoisted_2$6 = ["textContent"];
|
|
2534
|
+
var _sfc_main$j = vue.defineComponent({
|
|
2535
|
+
__name: "action-items",
|
|
2536
|
+
props: {
|
|
2537
|
+
mode: {},
|
|
2538
|
+
actions: {},
|
|
2539
|
+
inPopup: {},
|
|
2540
|
+
closePopup: {
|
|
2541
|
+
type: Function
|
|
2542
|
+
},
|
|
2543
|
+
popupStatus: {},
|
|
2544
|
+
target: {},
|
|
2545
|
+
followX: {},
|
|
2546
|
+
followY: {},
|
|
2547
|
+
pinned: {}
|
|
2548
|
+
},
|
|
2549
|
+
emits: ["trigger"],
|
|
2550
|
+
setup(__props, _ref) {
|
|
2551
|
+
let {
|
|
2552
|
+
emit: __emit
|
|
2553
|
+
} = _ref;
|
|
2554
|
+
const props = __props;
|
|
2555
|
+
const emits = __emit;
|
|
2556
|
+
function onActionItemClick(code) {
|
|
2557
|
+
emits("trigger", code);
|
|
2558
|
+
props.inPopup && props.closePopup(code);
|
|
2559
|
+
}
|
|
2560
|
+
return (_ctx, _cache) => {
|
|
2561
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2562
|
+
class: vue.normalizeClass(["snail-action-items", [vue.unref(snail_core.correctString)(__props.mode, "vertical", true), vue.unref(snail_core.isStringNotEmpty)(__props.inPopup) ? "in-popup" : ""]])
|
|
2563
|
+
}, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.actions, action => {
|
|
2564
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2565
|
+
class: "action-item flex-cross-center",
|
|
2566
|
+
key: action.code,
|
|
2567
|
+
style: vue.normalizeStyle({
|
|
2568
|
+
"--color": vue.unref(snail_core.correctString)(action.color, null, true),
|
|
2569
|
+
"--hcolor": vue.unref(snail_core.correctString)(action.hoverColor, null, true)
|
|
2570
|
+
}),
|
|
2571
|
+
onClick: $event => onActionItemClick(action.code)
|
|
2572
|
+
}, [action.icon != void 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$E, vue.mergeProps({
|
|
2573
|
+
key: 0,
|
|
2574
|
+
ref_for: true
|
|
2575
|
+
}, action.icon, {
|
|
2576
|
+
custom: false,
|
|
2577
|
+
size: 20
|
|
2578
|
+
}), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", {
|
|
2579
|
+
class: "ellipsis",
|
|
2580
|
+
textContent: vue.toDisplayString(action.name)
|
|
2581
|
+
}, null, 8, _hoisted_2$6)], 12, _hoisted_1$b);
|
|
2582
|
+
}), 128))], 2);
|
|
2583
|
+
};
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
|
|
2587
|
+
const _hoisted_1$a = {
|
|
2588
|
+
class: "snail-action flex-cross-center",
|
|
2589
|
+
ref: "snail-action"
|
|
2590
|
+
};
|
|
2591
|
+
const _hoisted_2$5 = {
|
|
2592
|
+
class: "action-slot flex-cross-center"
|
|
2593
|
+
};
|
|
2594
|
+
var _sfc_main$i = vue.defineComponent({
|
|
2595
|
+
__name: "action",
|
|
2596
|
+
props: {
|
|
2597
|
+
trigger: {},
|
|
2598
|
+
actions: {}
|
|
2599
|
+
},
|
|
2600
|
+
emits: ["trigger"],
|
|
2601
|
+
setup(__props, _ref) {
|
|
2602
|
+
let {
|
|
2603
|
+
emit: __emit
|
|
2604
|
+
} = _ref;
|
|
2605
|
+
const props = __props;
|
|
2606
|
+
const emits = __emit;
|
|
2607
|
+
const {
|
|
2608
|
+
follow
|
|
2609
|
+
} = usePopup();
|
|
2610
|
+
const {
|
|
2611
|
+
onEvent
|
|
2612
|
+
} = snail_view.useObserver();
|
|
2613
|
+
const rootDom = vue.useTemplateRef("snail-action");
|
|
2614
|
+
let popupScope = void 0;
|
|
2615
|
+
let pressStartDate = void 0;
|
|
2616
|
+
async function onFollowShow(longPress) {
|
|
2617
|
+
if (popupScope && popupScope.destroyed != true) {
|
|
2618
|
+
popupScope.destroy();
|
|
2619
|
+
return;
|
|
2620
|
+
}
|
|
2621
|
+
popupScope = follow(rootDom.value, {
|
|
2622
|
+
component: _sfc_main$j,
|
|
2623
|
+
closeOnEscape: true,
|
|
2624
|
+
closeOnMask: true,
|
|
2625
|
+
closeOnResize: true,
|
|
2626
|
+
closeOnTarget: true,
|
|
2627
|
+
followX: longPress ? ["center", "start", "end"] : ["after", "end", "start", "end", "center"],
|
|
2628
|
+
followY: longPress ? ["center", "after", "before"] : ["after", "before", "center", "end", "after"],
|
|
2629
|
+
props: {
|
|
2630
|
+
mode: "vertical",
|
|
2631
|
+
actions: props.actions
|
|
2632
|
+
}
|
|
2633
|
+
});
|
|
2634
|
+
const code = await popupScope;
|
|
2635
|
+
snail_core.isStringNotEmpty(code) && emits("trigger", code);
|
|
2636
|
+
}
|
|
2637
|
+
function onMouseDown() {
|
|
2638
|
+
if (props.trigger == "long-press" && pressStartDate == void 0) {
|
|
2639
|
+
pressStartDate = new Date();
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
function onMouseUp() {
|
|
2643
|
+
if (pressStartDate != void 0) {
|
|
2644
|
+
const time = ((new Date()).getTime() - pressStartDate.getTime()) / 1e3;
|
|
2645
|
+
pressStartDate = void 0;
|
|
2646
|
+
if (time >= 0.5) {
|
|
2647
|
+
navigator.vibrate && navigator.vibrate(200);
|
|
2648
|
+
onFollowShow(true);
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
function onMouseCancel() {
|
|
2653
|
+
setTimeout(() => pressStartDate = void 0, 10);
|
|
2654
|
+
}
|
|
2655
|
+
vue.onMounted(() => {
|
|
2656
|
+
onEvent(rootDom.value, "mousedown", onMouseDown);
|
|
2657
|
+
onEvent(rootDom.value, "mouseup", onMouseUp);
|
|
2658
|
+
if ("ontouchstart" in window) {
|
|
2659
|
+
onEvent(rootDom.value, "touchstart", onMouseDown);
|
|
2660
|
+
onEvent(rootDom.value, "touchend", onMouseUp);
|
|
2661
|
+
}
|
|
2662
|
+
onEvent(window, "mouseup", onMouseCancel);
|
|
2663
|
+
if ("ontouchstart" in window) {
|
|
2664
|
+
onEvent(window, "touchend", onMouseCancel);
|
|
2665
|
+
onEvent(window, "touchcancel", onMouseCancel);
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
return (_ctx, _cache) => {
|
|
2669
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [vue.createElementVNode("div", _hoisted_2$5, [vue.renderSlot(_ctx.$slots, "default")]), __props.trigger == "hover" ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
2670
|
+
key: 0,
|
|
2671
|
+
class: "hover-tips",
|
|
2672
|
+
button: "",
|
|
2673
|
+
custom: "",
|
|
2674
|
+
size: 16,
|
|
2675
|
+
onClick: _cache[0] || (_cache[0] = $event => onFollowShow(false))
|
|
2676
|
+
}, {
|
|
2677
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [vue.createElementVNode("path", {
|
|
2678
|
+
d: "M415.93 223.79c0-52.98 43.004-95.984 95.984-95.984s95.984 43.004 95.984 95.984-43.004 95.984-95.984 95.984-95.984-43.003-95.984-95.984zM415.93 511.742c0-52.98 43.004-95.984 95.984-95.984s95.984 43.004 95.984 95.984-43.004 95.984-95.984 95.984-95.984-43.004-95.984-95.984zM415.93 799.866c0-52.98 43.004-95.984 95.984-95.984s95.984 43.003 95.984 95.984-43.004 95.983-95.984 95.983-95.984-43.175-95.984-95.983z"
|
|
2679
|
+
}, null, -1)]))]),
|
|
2680
|
+
_: 1
|
|
2681
|
+
})) : vue.createCommentVNode("", true)], 512);
|
|
2528
2682
|
};
|
|
2529
2683
|
}
|
|
2530
2684
|
});
|
|
@@ -2766,10 +2920,10 @@
|
|
|
2766
2920
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(_ctx.$attrs, {
|
|
2767
2921
|
class: "snail-elastic"
|
|
2768
2922
|
}), [springYRef.value == true && __props.downRefresh == true ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
2769
|
-
key: 0,
|
|
2770
2923
|
class: vue.normalizeClass(["down-refresh", {
|
|
2771
2924
|
"running": loadingRef.value == "refresh"
|
|
2772
2925
|
}]),
|
|
2926
|
+
key: "down-refresh",
|
|
2773
2927
|
ref: "down-refresh"
|
|
2774
2928
|
}, [vue.renderSlot(_ctx.$slots, "down-refresh", {}, () => [_cache[0] || (_cache[0] = vue.createElementVNode("div", {
|
|
2775
2929
|
class: "flex-center default-loading"
|
|
@@ -2781,10 +2935,10 @@
|
|
|
2781
2935
|
key: "main-body",
|
|
2782
2936
|
style: vue.normalizeStyle(buildMainBodyStyle())
|
|
2783
2937
|
}, [vue.renderSlot(_ctx.$slots, "default")], 6), springYRef.value == true && __props.upMore == true ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
2784
|
-
key: 1,
|
|
2785
2938
|
class: vue.normalizeClass(["up-more", {
|
|
2786
2939
|
"running": loadingRef.value == "more"
|
|
2787
2940
|
}]),
|
|
2941
|
+
key: "up-more",
|
|
2788
2942
|
ref: "up-more"
|
|
2789
2943
|
}, [vue.renderSlot(_ctx.$slots, "up-more", {}, () => [_cache[1] || (_cache[1] = vue.createElementVNode("div", {
|
|
2790
2944
|
class: "flex-center default-loading"
|
|
@@ -2978,7 +3132,7 @@
|
|
|
2978
3132
|
key: 0,
|
|
2979
3133
|
class: "subtitle ellipsis",
|
|
2980
3134
|
textContent: vue.toDisplayString(__props.subtitle)
|
|
2981
|
-
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [vue.createVNode(_sfc_main$
|
|
3135
|
+
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [vue.createVNode(_sfc_main$E, {
|
|
2982
3136
|
custom: false,
|
|
2983
3137
|
type: "arrow",
|
|
2984
3138
|
button: "",
|
|
@@ -3050,29 +3204,29 @@
|
|
|
3050
3204
|
const map = Object.create(null);
|
|
3051
3205
|
map.main = {
|
|
3052
3206
|
scrollable: props.main && props.main.scroll != void 0,
|
|
3053
|
-
class: "main-area",
|
|
3207
|
+
class: props.main && snail_core.isStringNotEmpty(props.main.class) ? `main-area ${props.main.class}` : "main-area",
|
|
3054
3208
|
style: void 0
|
|
3055
3209
|
};
|
|
3056
3210
|
if (props.mode == "vertical") {
|
|
3057
3211
|
map.top = {
|
|
3058
3212
|
scrollable: props.top && props.top.scroll != void 0,
|
|
3059
|
-
class: "top-area",
|
|
3213
|
+
class: props.top && snail_core.isStringNotEmpty(props.top.class) ? `top-area ${props.top.class}` : "top-area",
|
|
3060
3214
|
style: buildHeightStyle(props.top)
|
|
3061
3215
|
};
|
|
3062
3216
|
map.bottom = {
|
|
3063
3217
|
scrollable: props.bottom && props.bottom.scroll != void 0,
|
|
3064
|
-
class: "bottom-area",
|
|
3218
|
+
class: props.bottom && snail_core.isStringNotEmpty(props.bottom.class) ? `bottom-area ${props.bottom.class}` : "bottom-area",
|
|
3065
3219
|
style: buildHeightStyle(props.bottom)
|
|
3066
3220
|
};
|
|
3067
3221
|
} else {
|
|
3068
3222
|
map.left = {
|
|
3069
3223
|
scrollable: props.left && props.left.scroll != void 0,
|
|
3070
|
-
class: "left-area",
|
|
3224
|
+
class: props.left && snail_core.isStringNotEmpty(props.left.class) ? `left-area ${props.left.class}` : "left-area",
|
|
3071
3225
|
style: buildWidthStyle(props.left)
|
|
3072
3226
|
};
|
|
3073
3227
|
map.right = {
|
|
3074
3228
|
scrollable: props.right && props.right.scroll != void 0,
|
|
3075
|
-
class: "right-area",
|
|
3229
|
+
class: props.right && snail_core.isStringNotEmpty(props.right.class) ? `right-area ${props.right.class}` : "right-area",
|
|
3076
3230
|
style: buildWidthStyle(props.right)
|
|
3077
3231
|
};
|
|
3078
3232
|
}
|
|
@@ -3452,7 +3606,7 @@
|
|
|
3452
3606
|
key: 1
|
|
3453
3607
|
}, [_cache[5] || (_cache[5] = vue.createElementVNode("div", {
|
|
3454
3608
|
class: "indent"
|
|
3455
|
-
}, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3609
|
+
}, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
3456
3610
|
key: 0,
|
|
3457
3611
|
class: vue.normalizeClass(statusRef.value),
|
|
3458
3612
|
custom: "",
|
|
@@ -3524,7 +3678,7 @@
|
|
|
3524
3678
|
emits("click", node, parents);
|
|
3525
3679
|
}
|
|
3526
3680
|
return (_ctx, _cache) => {
|
|
3527
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3681
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
|
|
3528
3682
|
key: 0
|
|
3529
3683
|
}, __props.search, {
|
|
3530
3684
|
onSearch
|
|
@@ -3575,7 +3729,7 @@
|
|
|
3575
3729
|
return (_ctx, _cache) => {
|
|
3576
3730
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
3577
3731
|
class: vue.normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
|
|
3578
|
-
}, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3732
|
+
}, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, vue.mergeProps({
|
|
3579
3733
|
key: 0
|
|
3580
3734
|
}, __props.header || {
|
|
3581
3735
|
useTo: "dialog",
|
|
@@ -3589,7 +3743,7 @@
|
|
|
3589
3743
|
}), {
|
|
3590
3744
|
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
3591
3745
|
_: 3
|
|
3592
|
-
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3746
|
+
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$C, vue.mergeProps({
|
|
3593
3747
|
key: 1
|
|
3594
3748
|
}, __props.footer || {}, {
|
|
3595
3749
|
onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
|
|
@@ -3603,7 +3757,7 @@
|
|
|
3603
3757
|
snail_core.mustObject(options, "options");
|
|
3604
3758
|
target instanceof HTMLElement || snail_core.throwError("target must be a HTMLElement");
|
|
3605
3759
|
target.classList.add("snail-app");
|
|
3606
|
-
const app = vue.createApp(_sfc_main$
|
|
3760
|
+
const app = vue.createApp(_sfc_main$u, options);
|
|
3607
3761
|
triggerAppCreated(app);
|
|
3608
3762
|
app.mount(target);
|
|
3609
3763
|
const scope = snail_core.useScope().onDestroy(() => app.unmount());
|
|
@@ -3899,7 +4053,7 @@
|
|
|
3899
4053
|
}]),
|
|
3900
4054
|
mode: "vertical"
|
|
3901
4055
|
}, vue.createSlots({
|
|
3902
|
-
main: vue.withCtx(() => [vue.createVNode(_sfc_main$
|
|
4056
|
+
main: vue.withCtx(() => [vue.createVNode(_sfc_main$w, {
|
|
3903
4057
|
multiple: "",
|
|
3904
4058
|
effect: vue.unref(MOTION).top
|
|
3905
4059
|
}, {
|
|
@@ -3939,19 +4093,19 @@
|
|
|
3939
4093
|
_: 2
|
|
3940
4094
|
}, [__props.toolbarDisabled != true ? {
|
|
3941
4095
|
name: "bottom",
|
|
3942
|
-
fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4096
|
+
fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
3943
4097
|
key: 0,
|
|
3944
4098
|
type: "link",
|
|
3945
4099
|
size: "small",
|
|
3946
4100
|
textContent: "清空",
|
|
3947
4101
|
onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
|
|
3948
|
-
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4102
|
+
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
3949
4103
|
key: 1,
|
|
3950
4104
|
type: "link",
|
|
3951
4105
|
size: "small",
|
|
3952
4106
|
textContent: "现在",
|
|
3953
4107
|
onClick: _cache[1] || (_cache[1] = $event => rebuildItems(vue.unref(snail_core.getTimeValue)(new Date())))
|
|
3954
|
-
})) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$
|
|
4108
|
+
})) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$F, {
|
|
3955
4109
|
type: "link",
|
|
3956
4110
|
size: "small",
|
|
3957
4111
|
textContent: "确定",
|
|
@@ -4205,7 +4359,7 @@
|
|
|
4205
4359
|
height: "30px"
|
|
4206
4360
|
}
|
|
4207
4361
|
}, vue.createSlots({
|
|
4208
|
-
top: vue.withCtx(() => [vue.createVNode(_sfc_main$
|
|
4362
|
+
top: vue.withCtx(() => [vue.createVNode(_sfc_main$E, {
|
|
4209
4363
|
type: "arrow",
|
|
4210
4364
|
button: "",
|
|
4211
4365
|
rotate: 180,
|
|
@@ -4225,7 +4379,7 @@
|
|
|
4225
4379
|
key: 0,
|
|
4226
4380
|
textContent: vue.toDisplayString(`${dateRef.value.month}月`),
|
|
4227
4381
|
onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
|
|
4228
|
-
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$
|
|
4382
|
+
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$E, {
|
|
4229
4383
|
type: "arrow",
|
|
4230
4384
|
button: "",
|
|
4231
4385
|
size: 26,
|
|
@@ -4291,19 +4445,19 @@
|
|
|
4291
4445
|
onClick: onSelectTime
|
|
4292
4446
|
}, null, 10, _hoisted_8)) : vue.createCommentVNode("", true), __props.toolbarDisabled != true ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
4293
4447
|
key: 1
|
|
4294
|
-
}, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4448
|
+
}, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
4295
4449
|
key: 0,
|
|
4296
4450
|
type: "link",
|
|
4297
4451
|
size: "small",
|
|
4298
4452
|
textContent: "清空",
|
|
4299
4453
|
onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), vue.unref(inPopup) && __props.closePopup("")))
|
|
4300
|
-
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4454
|
+
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
4301
4455
|
key: 1,
|
|
4302
4456
|
type: "link",
|
|
4303
4457
|
size: "small",
|
|
4304
4458
|
textContent: "现在",
|
|
4305
4459
|
onClick: onNow
|
|
4306
|
-
})) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$
|
|
4460
|
+
})) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$F, {
|
|
4307
4461
|
type: "link",
|
|
4308
4462
|
size: "small",
|
|
4309
4463
|
textContent: "确定",
|
|
@@ -4337,7 +4491,7 @@
|
|
|
4337
4491
|
popupOptions = {
|
|
4338
4492
|
...popupOptions
|
|
4339
4493
|
};
|
|
4340
|
-
popupOptions.followX = popupOptions.followX || ["start", "end", "center"];
|
|
4494
|
+
popupOptions.followX = popupOptions.followX || ["start", "end", "center", "before", "after"];
|
|
4341
4495
|
popupOptions.spaceX = snail_core.correctNumber(popupOptions.spaceX, 2);
|
|
4342
4496
|
popupOptions.spaceY = snail_core.correctNumber(popupOptions.spaceY, 2);
|
|
4343
4497
|
popupOptions.spaceClient = snail_core.correctNumber(popupOptions.spaceClient, 10);
|
|
@@ -4437,7 +4591,7 @@
|
|
|
4437
4591
|
type: "text",
|
|
4438
4592
|
readonly: "",
|
|
4439
4593
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
|
|
4440
|
-
}, null, 512), [[vue.vModelText, valueRef.value]]), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4594
|
+
}, null, 512), [[vue.vModelText, valueRef.value]]), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
4441
4595
|
key: 0,
|
|
4442
4596
|
type: "datepicker",
|
|
4443
4597
|
button: "",
|
|
@@ -4523,7 +4677,7 @@
|
|
|
4523
4677
|
type: "text",
|
|
4524
4678
|
readonly: "",
|
|
4525
4679
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => valueRef.value = $event)
|
|
4526
|
-
}, null, 512), [[vue.vModelText, valueRef.value]]), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4680
|
+
}, null, 512), [[vue.vModelText, valueRef.value]]), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
4527
4681
|
key: 0,
|
|
4528
4682
|
type: "timepicker",
|
|
4529
4683
|
button: "",
|
|
@@ -4619,12 +4773,12 @@
|
|
|
4619
4773
|
onTouchstart: onStartDrag,
|
|
4620
4774
|
onTouchmove: onDragMove,
|
|
4621
4775
|
onTouchend: onDragEnd
|
|
4622
|
-
}, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4776
|
+
}, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
4623
4777
|
key: 0,
|
|
4624
4778
|
type: "success",
|
|
4625
4779
|
size: 20,
|
|
4626
4780
|
color: "white"
|
|
4627
|
-
})) : (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4781
|
+
})) : (vue.openBlock(), vue.createBlock(_sfc_main$E, {
|
|
4628
4782
|
key: 1,
|
|
4629
4783
|
custom: "",
|
|
4630
4784
|
size: 20,
|
|
@@ -4643,22 +4797,23 @@
|
|
|
4643
4797
|
});
|
|
4644
4798
|
|
|
4645
4799
|
const components = {
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4800
|
+
Action: _sfc_main$i,
|
|
4801
|
+
Button: _sfc_main$F,
|
|
4802
|
+
Choose: _sfc_main$D,
|
|
4803
|
+
Footer: _sfc_main$C,
|
|
4804
|
+
Header: _sfc_main$B,
|
|
4805
|
+
Icon: _sfc_main$E,
|
|
4806
|
+
Input: _sfc_main$A,
|
|
4807
|
+
Number: _sfc_main$z,
|
|
4808
|
+
Search: _sfc_main$y,
|
|
4809
|
+
Select: _sfc_main$m,
|
|
4810
|
+
Switch: _sfc_main$l,
|
|
4811
|
+
Textarea: _sfc_main$k,
|
|
4812
|
+
Dynamic: _sfc_main$u,
|
|
4658
4813
|
Elastic: _sfc_main$h,
|
|
4659
4814
|
Flex: _sfc_main$g,
|
|
4660
4815
|
Fold: _sfc_main$f,
|
|
4661
|
-
Motion: _sfc_main$
|
|
4816
|
+
Motion: _sfc_main$w,
|
|
4662
4817
|
Layout: _sfc_main$d,
|
|
4663
4818
|
Scroll: _sfc_main$e,
|
|
4664
4819
|
Sort: _sfc_main$c,
|
|
@@ -4671,8 +4826,8 @@
|
|
|
4671
4826
|
DatePicker: _sfc_main$2,
|
|
4672
4827
|
TimePicker: _sfc_main$1,
|
|
4673
4828
|
DragVerify: _sfc_main,
|
|
4674
|
-
Empty: _sfc_main$
|
|
4675
|
-
Loading: _sfc_main$
|
|
4829
|
+
Empty: _sfc_main$p,
|
|
4830
|
+
Loading: _sfc_main$v
|
|
4676
4831
|
};
|
|
4677
4832
|
|
|
4678
4833
|
snail_core.onMountScope(scope => {
|