snail.vue 2.0.30 → 2.0.31
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/snail.vue.d.ts +211 -149
- package/dist/snail.vue.js +340 -228
- package/dist/snail.vue.umd.js +339 -227
- package/dist/styles/snail.vue.vue.css +6 -4
- package/package.json +2 -2
package/dist/snail.vue.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//@ sourceURL=/snail.vue.js
|
|
2
2
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, computed, mergeProps, unref, createElementVNode, toDisplayString, Fragment, renderList, mergeModels, useModel, normalizeStyle, createCommentVNode, createBlock, nextTick, useTemplateRef, shallowRef, createVNode, watch, withDirectives, isRef, vModelText, withCtx, createApp, resolveDynamicComponent, TransitionGroup, Transition, normalizeProps, guardReactiveProps, ref, onErrorCaptured, createSlots, onMounted, withModifiers, getCurrentInstance, resolveComponent, vShow, onBeforeUnmount, onActivated, getCurrentScope, onScopeDispose } from 'vue';
|
|
3
3
|
import { throwError, isObject, correctNumber, correctString, useKey, isArray, mountScope, useScopes, throwIfFalse, isPromise, wait, isNumberNotNaN, isStringNotEmpty, hasAny, mustFunction, useScope, removeFromArray, mustObject, isArrayNotEmpty, hasOwnProperty, isString, script, delay, useTimer, runAsync, defer, useAsyncScope, useHook, newId, throwIfTrue, isFunction, isNullish, getTimeNumber, getDateValue, parseDate, formatDateValue, getDateByValue, parseTimeValue, getTimeValue, padStart, formatTimeValue, parseDateValue, correctDateFormat, isValidTime, getFromArray, onMountScope } from 'snail.core';
|
|
4
|
-
import { link, css, useObserver, useScroll, useAnimation } from 'snail.view';
|
|
4
|
+
import { link, css, useObserver, useScroll, useAnimation, useElastic } from 'snail.view';
|
|
5
5
|
|
|
6
|
-
const _hoisted_1$
|
|
7
|
-
var _sfc_main$
|
|
6
|
+
const _hoisted_1$p = ["title"];
|
|
7
|
+
var _sfc_main$G = defineComponent({
|
|
8
8
|
...{
|
|
9
9
|
name: "Button",
|
|
10
10
|
inheritAttrs: true
|
|
@@ -26,7 +26,7 @@ var _sfc_main$F = defineComponent({
|
|
|
26
26
|
class: normalizeClass(["snail-button", [__props.size, __props.type]]),
|
|
27
27
|
title: __props.title,
|
|
28
28
|
onClick: _cache[0] || (_cache[0] = evt => emits("click", evt))
|
|
29
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[1] || (_cache[1] = createTextVNode("按钮", -1))])], 10, _hoisted_1$
|
|
29
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[1] || (_cache[1] = createTextVNode("按钮", -1))])], 10, _hoisted_1$p);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
});
|
|
@@ -77,10 +77,10 @@ function getBuiltinIcon(iconType) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
const _hoisted_1$
|
|
81
|
-
const _hoisted_2$
|
|
82
|
-
const _hoisted_3$
|
|
83
|
-
var _sfc_main$
|
|
80
|
+
const _hoisted_1$o = ["viewBox"];
|
|
81
|
+
const _hoisted_2$i = ["textContent"];
|
|
82
|
+
const _hoisted_3$b = ["d"];
|
|
83
|
+
var _sfc_main$F = defineComponent({
|
|
84
84
|
__name: "icon",
|
|
85
85
|
props: {
|
|
86
86
|
title: {},
|
|
@@ -148,24 +148,24 @@ var _sfc_main$E = defineComponent({
|
|
|
148
148
|
onClick: _cache[0] || (_cache[0] = evt => emits("click", evt))
|
|
149
149
|
}), [createElementVNode("title", {
|
|
150
150
|
textContent: toDisplayString(__props.title || "")
|
|
151
|
-
}, null, 8, _hoisted_2$
|
|
151
|
+
}, null, 8, _hoisted_2$i), __props.custom == true ? renderSlot(_ctx.$slots, "default", {
|
|
152
152
|
key: 0
|
|
153
153
|
}) : (openBlock(true), createElementBlock(Fragment, {
|
|
154
154
|
key: 1
|
|
155
155
|
}, renderList(unref(getBuiltinIcon)(__props.type), d => {
|
|
156
156
|
return openBlock(), createElementBlock("path", {
|
|
157
157
|
d
|
|
158
|
-
}, null, 8, _hoisted_3$
|
|
159
|
-
}), 256))], 16, _hoisted_1$
|
|
158
|
+
}, null, 8, _hoisted_3$b);
|
|
159
|
+
}), 256))], 16, _hoisted_1$o);
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
-
const _hoisted_1$
|
|
165
|
-
const _hoisted_2$
|
|
166
|
-
const _hoisted_3$
|
|
167
|
-
const _hoisted_4$
|
|
168
|
-
var _sfc_main$
|
|
164
|
+
const _hoisted_1$n = ["title", "onClick"];
|
|
165
|
+
const _hoisted_2$h = ["type", "checked"];
|
|
166
|
+
const _hoisted_3$a = ["textContent"];
|
|
167
|
+
const _hoisted_4$7 = ["textContent"];
|
|
168
|
+
var _sfc_main$E = defineComponent({
|
|
169
169
|
...{
|
|
170
170
|
name: "Choose",
|
|
171
171
|
inheritAttrs: true
|
|
@@ -241,10 +241,10 @@ var _sfc_main$D = defineComponent({
|
|
|
241
241
|
key: 0,
|
|
242
242
|
type: unref(type),
|
|
243
243
|
checked: node.selected
|
|
244
|
-
}, null, 8, _hoisted_2$
|
|
244
|
+
}, null, 8, _hoisted_2$h)) : unref(mode) == "beautiful" ? (openBlock(), createElementBlock("div", {
|
|
245
245
|
key: 1,
|
|
246
246
|
class: normalizeClass(["status", [node.selected ? "selected" : ""]])
|
|
247
|
-
}, [node.selected ? (openBlock(), createBlock(_sfc_main$
|
|
247
|
+
}, [node.selected ? (openBlock(), createBlock(_sfc_main$F, {
|
|
248
248
|
key: 0,
|
|
249
249
|
type: "success",
|
|
250
250
|
size: 12,
|
|
@@ -253,17 +253,17 @@ var _sfc_main$D = defineComponent({
|
|
|
253
253
|
key: 2,
|
|
254
254
|
class: "item-text",
|
|
255
255
|
textContent: toDisplayString(node.item.text)
|
|
256
|
-
}, null, 8, _hoisted_3$
|
|
256
|
+
}, null, 8, _hoisted_3$a)) : createCommentVNode("", true), node.item.description ? (openBlock(), createElementBlock("span", {
|
|
257
257
|
key: 3,
|
|
258
258
|
class: "item-des",
|
|
259
259
|
textContent: toDisplayString(node.item.description)
|
|
260
|
-
}, null, 8, _hoisted_4$
|
|
260
|
+
}, null, 8, _hoisted_4$7)) : createCommentVNode("", true)], 14, _hoisted_1$n);
|
|
261
261
|
}), 128))], 2);
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
-
var _sfc_main$
|
|
266
|
+
var _sfc_main$D = defineComponent({
|
|
267
267
|
...{
|
|
268
268
|
name: "Footer",
|
|
269
269
|
inheritAttrs: true
|
|
@@ -294,13 +294,13 @@ var _sfc_main$C = defineComponent({
|
|
|
294
294
|
class: normalizeClass(["snail-footer", {
|
|
295
295
|
"start-divider": __props.divider
|
|
296
296
|
}, __props.align || "right"])
|
|
297
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
297
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
298
298
|
key: 0,
|
|
299
299
|
size: "max",
|
|
300
300
|
type: "default",
|
|
301
301
|
onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
|
|
302
302
|
textContent: toDisplayString(__props.cancelName || "取消")
|
|
303
|
-
}, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
303
|
+
}, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
304
304
|
key: 1,
|
|
305
305
|
size: "max",
|
|
306
306
|
type: "primary",
|
|
@@ -311,8 +311,8 @@ var _sfc_main$C = defineComponent({
|
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
|
|
314
|
-
const _hoisted_1$
|
|
315
|
-
var _sfc_main$
|
|
314
|
+
const _hoisted_1$m = ["textContent"];
|
|
315
|
+
var _sfc_main$C = defineComponent({
|
|
316
316
|
...{
|
|
317
317
|
name: "Header",
|
|
318
318
|
inheritAttrs: true
|
|
@@ -351,7 +351,7 @@ var _sfc_main$B = defineComponent({
|
|
|
351
351
|
key: 0,
|
|
352
352
|
textContent: toDisplayString(__props.title),
|
|
353
353
|
class: normalizeClass(["header-title", __props.titleAlign])
|
|
354
|
-
}, null, 10, _hoisted_1$
|
|
354
|
+
}, null, 10, _hoisted_1$m)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$F, {
|
|
355
355
|
key: 1,
|
|
356
356
|
class: "close-icon",
|
|
357
357
|
type: "close",
|
|
@@ -364,18 +364,18 @@ var _sfc_main$B = defineComponent({
|
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
366
|
|
|
367
|
-
const _hoisted_1$
|
|
368
|
-
const _hoisted_2$
|
|
367
|
+
const _hoisted_1$l = ["textContent"];
|
|
368
|
+
const _hoisted_2$g = {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "required",
|
|
371
371
|
textContent: "*"
|
|
372
372
|
};
|
|
373
|
-
const _hoisted_3$
|
|
373
|
+
const _hoisted_3$9 = {
|
|
374
374
|
class: "input-body"
|
|
375
375
|
};
|
|
376
|
-
const _hoisted_4$
|
|
376
|
+
const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
|
|
377
377
|
const _hoisted_5$3 = ["title"];
|
|
378
|
-
var _sfc_main$
|
|
378
|
+
var _sfc_main$B = defineComponent({
|
|
379
379
|
...{
|
|
380
380
|
name: "Input",
|
|
381
381
|
inheritAttrs: true
|
|
@@ -427,7 +427,7 @@ var _sfc_main$A = defineComponent({
|
|
|
427
427
|
}, [createElementVNode("span", {
|
|
428
428
|
class: "text",
|
|
429
429
|
textContent: toDisplayString(__props.title)
|
|
430
|
-
}, null, 8, _hoisted_1$
|
|
430
|
+
}, null, 8, _hoisted_1$l), __props.readonly != true && __props.required == true ? (openBlock(), createElementBlock("span", _hoisted_2$g)) : createCommentVNode("", true)], 4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_3$9, [createElementVNode("input", {
|
|
431
431
|
ref: "input-el",
|
|
432
432
|
type: __props.type || "text",
|
|
433
433
|
value: inputModel.value,
|
|
@@ -436,11 +436,11 @@ var _sfc_main$A = defineComponent({
|
|
|
436
436
|
title: inputModel.value,
|
|
437
437
|
onChange: onValueChange,
|
|
438
438
|
onClick: _cache[0] || (_cache[0] = $event => emits("click"))
|
|
439
|
-
}, null, 40, _hoisted_4$
|
|
439
|
+
}, null, 40, _hoisted_4$6), !!validateRef.value ? (openBlock(), createElementBlock("span", {
|
|
440
440
|
key: 0,
|
|
441
441
|
class: "validate",
|
|
442
442
|
title: validateRef.value
|
|
443
|
-
}, [createVNode(_sfc_main$
|
|
443
|
+
}, [createVNode(_sfc_main$F, {
|
|
444
444
|
type: "error",
|
|
445
445
|
button: "",
|
|
446
446
|
size: 16,
|
|
@@ -650,20 +650,20 @@ function useFormatter(options) {
|
|
|
650
650
|
return formatter;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
-
const _hoisted_1$
|
|
653
|
+
const _hoisted_1$k = {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: "number-prefix"
|
|
656
656
|
};
|
|
657
|
-
const _hoisted_2$
|
|
658
|
-
const _hoisted_3$
|
|
659
|
-
const _hoisted_4$
|
|
657
|
+
const _hoisted_2$f = ["textContent"];
|
|
658
|
+
const _hoisted_3$8 = ["inputmode", "placeholder", "title"];
|
|
659
|
+
const _hoisted_4$5 = {
|
|
660
660
|
key: 1,
|
|
661
661
|
class: "number-suffix"
|
|
662
662
|
};
|
|
663
663
|
const _hoisted_5$2 = ["textContent"];
|
|
664
664
|
const _hoisted_6$2 = ["title", "textContent"];
|
|
665
665
|
const _hoisted_7$1 = ["title", "textContent"];
|
|
666
|
-
var _sfc_main$
|
|
666
|
+
var _sfc_main$A = defineComponent({
|
|
667
667
|
__name: "number",
|
|
668
668
|
props: mergeModels({
|
|
669
669
|
placeholder: {},
|
|
@@ -810,10 +810,10 @@ var _sfc_main$z = defineComponent({
|
|
|
810
810
|
"has-prefix": unref(hasPrefix),
|
|
811
811
|
"has-suffix": unref(hasSuffix)
|
|
812
812
|
}])
|
|
813
|
-
}, [unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
813
|
+
}, [unref(hasPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [createElementVNode("span", {
|
|
814
814
|
class: "ellipsis",
|
|
815
815
|
textContent: toDisplayString(unref(prefix))
|
|
816
|
-
}, null, 8, _hoisted_2$
|
|
816
|
+
}, null, 8, _hoisted_2$f)])) : createCommentVNode("", true), createElementVNode("div", {
|
|
817
817
|
class: normalizeClass(["input-panel", unref(controls)])
|
|
818
818
|
}, [withDirectives(createElementVNode("input", {
|
|
819
819
|
type: "text",
|
|
@@ -825,19 +825,19 @@ var _sfc_main$z = defineComponent({
|
|
|
825
825
|
onFocus: _cache[1] || (_cache[1] = $event => isRef(needBackSection) ? needBackSection.value = true : needBackSection = true),
|
|
826
826
|
onPaste: _cache[2] || (_cache[2] = $event => isRef(needBackSection) ? needBackSection.value = false : needBackSection = false),
|
|
827
827
|
onBlur: _cache[3] || (_cache[3] = $event => formatOnEnd(true))
|
|
828
|
-
}, null, 40, _hoisted_3$
|
|
828
|
+
}, null, 40, _hoisted_3$8), [[vModelText, displayValueRef.value]]), unref(controls) == "default" ? (openBlock(), createElementBlock(Fragment, {
|
|
829
829
|
key: 0
|
|
830
830
|
}, [createElementVNode("div", {
|
|
831
831
|
class: "controls default subtract",
|
|
832
832
|
onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
|
|
833
|
-
}, [createVNode(_sfc_main$
|
|
833
|
+
}, [createVNode(_sfc_main$F, {
|
|
834
834
|
type: "subtract",
|
|
835
835
|
button: "",
|
|
836
836
|
size: 20
|
|
837
837
|
})]), createElementVNode("div", {
|
|
838
838
|
class: "controls default plus",
|
|
839
839
|
onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
|
|
840
|
-
}, [createVNode(_sfc_main$
|
|
840
|
+
}, [createVNode(_sfc_main$F, {
|
|
841
841
|
type: "plus",
|
|
842
842
|
button: "",
|
|
843
843
|
size: 20
|
|
@@ -846,7 +846,7 @@ var _sfc_main$z = defineComponent({
|
|
|
846
846
|
}, [createElementVNode("div", {
|
|
847
847
|
class: "controls right plus",
|
|
848
848
|
onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
|
|
849
|
-
}, [createVNode(_sfc_main$
|
|
849
|
+
}, [createVNode(_sfc_main$F, {
|
|
850
850
|
type: "arrow",
|
|
851
851
|
button: "",
|
|
852
852
|
size: 20,
|
|
@@ -854,12 +854,12 @@ var _sfc_main$z = defineComponent({
|
|
|
854
854
|
})]), createElementVNode("div", {
|
|
855
855
|
class: "controls right subtract",
|
|
856
856
|
onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
|
|
857
|
-
}, [createVNode(_sfc_main$
|
|
857
|
+
}, [createVNode(_sfc_main$F, {
|
|
858
858
|
type: "arrow",
|
|
859
859
|
button: "",
|
|
860
860
|
size: 20,
|
|
861
861
|
rotate: 90
|
|
862
|
-
})])], 64)) : createCommentVNode("", true)], 2), unref(hasSuffix) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
862
|
+
})])], 64)) : createCommentVNode("", true)], 2), unref(hasSuffix) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [createElementVNode("span", {
|
|
863
863
|
class: "ellipsis",
|
|
864
864
|
textContent: toDisplayString(unref(suffix))
|
|
865
865
|
}, null, 8, _hoisted_5$2)])) : createCommentVNode("", true), unref(upper) ? (openBlock(), createElementBlock("div", {
|
|
@@ -877,8 +877,8 @@ var _sfc_main$z = defineComponent({
|
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
|
|
880
|
-
const _hoisted_1$
|
|
881
|
-
var _sfc_main$
|
|
880
|
+
const _hoisted_1$j = ["placeholder", "readonly"];
|
|
881
|
+
var _sfc_main$z = defineComponent({
|
|
882
882
|
...{
|
|
883
883
|
name: "Search",
|
|
884
884
|
inheritAttrs: true
|
|
@@ -923,9 +923,9 @@ var _sfc_main$y = defineComponent({
|
|
|
923
923
|
readonly: __props.readonly,
|
|
924
924
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => textModel.value = $event),
|
|
925
925
|
onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
|
|
926
|
-
}, null, 40, _hoisted_1$
|
|
926
|
+
}, null, 40, _hoisted_1$j), [[vModelText, textModel.value, void 0, {
|
|
927
927
|
trim: true
|
|
928
|
-
}]]), createElementVNode("div", null, [createVNode(_sfc_main$
|
|
928
|
+
}]]), createElementVNode("div", null, [createVNode(_sfc_main$F, {
|
|
929
929
|
class: "search-button",
|
|
930
930
|
custom: "",
|
|
931
931
|
button: "",
|
|
@@ -1150,11 +1150,11 @@ function deducePosition(strategy, targetStart, targetEnd, contentSize, clientSiz
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
|
-
const _hoisted_1$
|
|
1153
|
+
const _hoisted_1$i = {
|
|
1154
1154
|
class: "snail-confirm flex-column"
|
|
1155
1155
|
};
|
|
1156
|
-
const _hoisted_2$
|
|
1157
|
-
var _sfc_main$
|
|
1156
|
+
const _hoisted_2$e = ["innerHTML"];
|
|
1157
|
+
var _sfc_main$y = defineComponent({
|
|
1158
1158
|
...{
|
|
1159
1159
|
name: "ConfirmContainer",
|
|
1160
1160
|
inheritAttrs: true
|
|
@@ -1182,14 +1182,14 @@ var _sfc_main$x = defineComponent({
|
|
|
1182
1182
|
},
|
|
1183
1183
|
setup(__props) {
|
|
1184
1184
|
return (_ctx, _cache) => {
|
|
1185
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1185
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [createVNode(_sfc_main$C, {
|
|
1186
1186
|
"use-to": "dialog",
|
|
1187
1187
|
title: __props.title || "提示",
|
|
1188
1188
|
onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
|
|
1189
1189
|
}, null, 8, ["title"]), createElementVNode("div", {
|
|
1190
1190
|
class: "confirm-body",
|
|
1191
1191
|
innerHTML: __props.message || "请确认?"
|
|
1192
|
-
}, null, 8, _hoisted_2$
|
|
1192
|
+
}, null, 8, _hoisted_2$e), createVNode(_sfc_main$D, {
|
|
1193
1193
|
align: "right",
|
|
1194
1194
|
"cancel-name": __props.cancelName,
|
|
1195
1195
|
"cancel-disabled": __props.cancelDisabled,
|
|
@@ -1250,7 +1250,7 @@ const MOTION = Object.freeze({
|
|
|
1250
1250
|
});
|
|
1251
1251
|
for (var key in MOTION) hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
|
|
1252
1252
|
|
|
1253
|
-
var _sfc_main$
|
|
1253
|
+
var _sfc_main$x = defineComponent({
|
|
1254
1254
|
__name: "motion",
|
|
1255
1255
|
props: {
|
|
1256
1256
|
multiple: {
|
|
@@ -1299,7 +1299,7 @@ var _sfc_main$w = defineComponent({
|
|
|
1299
1299
|
}
|
|
1300
1300
|
});
|
|
1301
1301
|
|
|
1302
|
-
var _sfc_main$
|
|
1302
|
+
var _sfc_main$w = defineComponent({
|
|
1303
1303
|
...{
|
|
1304
1304
|
name: "Loading",
|
|
1305
1305
|
inheritAttrs: true
|
|
@@ -1323,7 +1323,7 @@ var _sfc_main$v = defineComponent({
|
|
|
1323
1323
|
},
|
|
1324
1324
|
setup(__props) {
|
|
1325
1325
|
return (_ctx, _cache) => {
|
|
1326
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1326
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
1327
1327
|
effect: unref(MOTION).fade
|
|
1328
1328
|
}, {
|
|
1329
1329
|
default: withCtx(() => [__props.show ? (openBlock(), createElementBlock("div", {
|
|
@@ -1338,7 +1338,7 @@ var _sfc_main$v = defineComponent({
|
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
1340
1340
|
|
|
1341
|
-
var _sfc_main$
|
|
1341
|
+
var _sfc_main$v = defineComponent({
|
|
1342
1342
|
...{
|
|
1343
1343
|
name: "Dynamic",
|
|
1344
1344
|
inheritAttrs: false
|
|
@@ -1362,7 +1362,7 @@ var _sfc_main$u = defineComponent({
|
|
|
1362
1362
|
const loadingComponent = defineComponent({
|
|
1363
1363
|
inheritAttrs: false,
|
|
1364
1364
|
components: {
|
|
1365
|
-
Loading: _sfc_main$
|
|
1365
|
+
Loading: _sfc_main$w
|
|
1366
1366
|
},
|
|
1367
1367
|
template: "<Loading :mask-disabled='true' />"
|
|
1368
1368
|
});
|
|
@@ -1487,7 +1487,7 @@ function monitScroll(manager, root, options, emiter, classStyleRef) {
|
|
|
1487
1487
|
return scope;
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
|
-
var _sfc_main$
|
|
1490
|
+
var _sfc_main$u = defineComponent({
|
|
1491
1491
|
...{
|
|
1492
1492
|
name: "Scroll",
|
|
1493
1493
|
inheritAttrs: false
|
|
@@ -1531,7 +1531,7 @@ var _sfc_main$t = defineComponent({
|
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
|
|
1534
|
-
var _sfc_main$
|
|
1534
|
+
var _sfc_main$t = defineComponent({
|
|
1535
1535
|
__name: "wrapper",
|
|
1536
1536
|
props: {
|
|
1537
1537
|
inPopup: {
|
|
@@ -1550,7 +1550,7 @@ var _sfc_main$s = defineComponent({
|
|
|
1550
1550
|
return (_ctx, _cache) => {
|
|
1551
1551
|
return openBlock(), createElementBlock("div", {
|
|
1552
1552
|
class: normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
|
|
1553
|
-
}, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
1553
|
+
}, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$C, mergeProps({
|
|
1554
1554
|
key: 0
|
|
1555
1555
|
}, __props.header || {
|
|
1556
1556
|
useTo: "dialog",
|
|
@@ -1558,14 +1558,14 @@ var _sfc_main$s = defineComponent({
|
|
|
1558
1558
|
}, {
|
|
1559
1559
|
"use-to": (__props.header ? __props.header.useTo : void 0) || (__props.inPopup ? "dialog" : "page"),
|
|
1560
1560
|
onClose: _cache[0] || (_cache[0] = $event => emits("cancel"))
|
|
1561
|
-
}), null, 16, ["use-to"])) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
1561
|
+
}), null, 16, ["use-to"])) : createCommentVNode("", true), createVNode(_sfc_main$u, mergeProps({
|
|
1562
1562
|
class: "wrapper-body flex-1"
|
|
1563
1563
|
}, __props.content || {
|
|
1564
1564
|
scroll: "none"
|
|
1565
1565
|
}), {
|
|
1566
1566
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1567
1567
|
_: 3
|
|
1568
|
-
}, 16), __props.footer && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
1568
|
+
}, 16), __props.footer && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$D, mergeProps({
|
|
1569
1569
|
key: 1
|
|
1570
1570
|
}, __props.footer || {}, {
|
|
1571
1571
|
onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
|
|
@@ -1575,7 +1575,7 @@ var _sfc_main$s = defineComponent({
|
|
|
1575
1575
|
}
|
|
1576
1576
|
});
|
|
1577
1577
|
|
|
1578
|
-
var _sfc_main$
|
|
1578
|
+
var _sfc_main$s = defineComponent({
|
|
1579
1579
|
...{
|
|
1580
1580
|
name: "DialogContainer",
|
|
1581
1581
|
inheritAttrs: true
|
|
@@ -1634,7 +1634,7 @@ var _sfc_main$r = defineComponent({
|
|
|
1634
1634
|
onClick: _cache[3] || (_cache[3] = withModifiers($event => {
|
|
1635
1635
|
__props.options.closeOnMask && unref(closePopup)();
|
|
1636
1636
|
}, ["self"]))
|
|
1637
|
-
}, [__props.options.wrapper == void 0 ? (openBlock(), createBlock(_sfc_main$
|
|
1637
|
+
}, [__props.options.wrapper == void 0 ? (openBlock(), createBlock(_sfc_main$v, mergeProps({
|
|
1638
1638
|
key: 0,
|
|
1639
1639
|
class: "dialog-body",
|
|
1640
1640
|
name: __props.options.name,
|
|
@@ -1645,7 +1645,7 @@ var _sfc_main$r = defineComponent({
|
|
|
1645
1645
|
"popup-status": __props.popupStatus.value,
|
|
1646
1646
|
modelValue: unref(model),
|
|
1647
1647
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => isRef(model) ? model.value = $event : null)
|
|
1648
|
-
}), null, 16, ["name", "component", "url", "props", "popup-status", "modelValue"])) : (openBlock(), createBlock(_sfc_main$
|
|
1648
|
+
}), null, 16, ["name", "component", "url", "props", "popup-status", "modelValue"])) : (openBlock(), createBlock(_sfc_main$t, mergeProps({
|
|
1649
1649
|
key: 1,
|
|
1650
1650
|
class: "dialog-body dialog-builtin",
|
|
1651
1651
|
"in-popup": true
|
|
@@ -1653,7 +1653,7 @@ var _sfc_main$r = defineComponent({
|
|
|
1653
1653
|
onCancel: _cache[2] || (_cache[2] = $event => unref(closePopup)()),
|
|
1654
1654
|
onConfirm: onWrapperConfirm
|
|
1655
1655
|
}), {
|
|
1656
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1656
|
+
default: withCtx(() => [createVNode(_sfc_main$v, mergeProps({
|
|
1657
1657
|
name: __props.options.name,
|
|
1658
1658
|
component: __props.options.component,
|
|
1659
1659
|
url: __props.options.url,
|
|
@@ -1670,7 +1670,7 @@ var _sfc_main$r = defineComponent({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
|
|
1673
|
-
var _sfc_main$
|
|
1673
|
+
var _sfc_main$r = defineComponent({
|
|
1674
1674
|
...{
|
|
1675
1675
|
name: "FollowContainer",
|
|
1676
1676
|
inheritAttrs: true
|
|
@@ -1791,7 +1791,7 @@ var _sfc_main$q = defineComponent({
|
|
|
1791
1791
|
});
|
|
1792
1792
|
});
|
|
1793
1793
|
return (_ctx, _cache) => {
|
|
1794
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1794
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps({
|
|
1795
1795
|
class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1796
1796
|
style: {
|
|
1797
1797
|
"z-index": __props.zIndex
|
|
@@ -1808,7 +1808,7 @@ var _sfc_main$q = defineComponent({
|
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
1810
|
|
|
1811
|
-
var _sfc_main$
|
|
1811
|
+
var _sfc_main$q = defineComponent({
|
|
1812
1812
|
...{
|
|
1813
1813
|
name: "PopupContainer",
|
|
1814
1814
|
inheritAttrs: true
|
|
@@ -1828,7 +1828,7 @@ var _sfc_main$p = defineComponent({
|
|
|
1828
1828
|
model = shallowRef(void 0)
|
|
1829
1829
|
} = __props.options;
|
|
1830
1830
|
return (_ctx, _cache) => {
|
|
1831
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1831
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps({
|
|
1832
1832
|
class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1833
1833
|
style: {
|
|
1834
1834
|
"z-index": __props.zIndex
|
|
@@ -1846,12 +1846,12 @@ var _sfc_main$p = defineComponent({
|
|
|
1846
1846
|
}
|
|
1847
1847
|
});
|
|
1848
1848
|
|
|
1849
|
-
const _hoisted_1$
|
|
1849
|
+
const _hoisted_1$h = {
|
|
1850
1850
|
key: 1,
|
|
1851
1851
|
class: "icon"
|
|
1852
1852
|
};
|
|
1853
|
-
const _hoisted_2$
|
|
1854
|
-
var _sfc_main$
|
|
1853
|
+
const _hoisted_2$d = ["innerHTML"];
|
|
1854
|
+
var _sfc_main$p = defineComponent({
|
|
1855
1855
|
...{
|
|
1856
1856
|
name: "ToastContainer",
|
|
1857
1857
|
inheritAttrs: true
|
|
@@ -1888,7 +1888,7 @@ var _sfc_main$o = defineComponent({
|
|
|
1888
1888
|
}),
|
|
1889
1889
|
onMouseenter: _cache[1] || (_cache[1] = $event => onMouseEvent(false)),
|
|
1890
1890
|
onMouseleave: _cache[2] || (_cache[2] = $event => onMouseEvent(true))
|
|
1891
|
-
}, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
1891
|
+
}, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$F, {
|
|
1892
1892
|
key: 0,
|
|
1893
1893
|
class: "close-icon",
|
|
1894
1894
|
type: "close",
|
|
@@ -1899,21 +1899,21 @@ var _sfc_main$o = defineComponent({
|
|
|
1899
1899
|
onClick: _cache[0] || (_cache[0] = $event => {
|
|
1900
1900
|
unref(closePopup)();
|
|
1901
1901
|
})
|
|
1902
|
-
})) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1902
|
+
})) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$h, [createVNode(_sfc_main$F, {
|
|
1903
1903
|
type: unref(props).type,
|
|
1904
1904
|
color: "#707070",
|
|
1905
1905
|
size: 20
|
|
1906
1906
|
}, null, 8, ["type"])])) : createCommentVNode("", true), createElementVNode("div", {
|
|
1907
1907
|
class: "message",
|
|
1908
1908
|
innerHTML: unref(props).message
|
|
1909
|
-
}, null, 8, _hoisted_2$
|
|
1909
|
+
}, null, 8, _hoisted_2$d)], 38);
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
1912
|
});
|
|
1913
1913
|
|
|
1914
1914
|
function usePopup() {
|
|
1915
1915
|
function popup(options) {
|
|
1916
|
-
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$
|
|
1916
|
+
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$q, options);
|
|
1917
1917
|
return addScope2Scopes(scope);
|
|
1918
1918
|
}
|
|
1919
1919
|
function dialog(options) {
|
|
@@ -1946,7 +1946,7 @@ function usePopup() {
|
|
|
1946
1946
|
},
|
|
1947
1947
|
onBeforeClose: fn => hook.register("onBeforeClose", fn)
|
|
1948
1948
|
});
|
|
1949
|
-
const descriptor = openPopup(_sfc_main$
|
|
1949
|
+
const descriptor = openPopup(_sfc_main$s, options, extOptions);
|
|
1950
1950
|
scope = useAsyncScope(deferred.promise);
|
|
1951
1951
|
monitorDialog(descriptor, scope, deferred);
|
|
1952
1952
|
}
|
|
@@ -1964,14 +1964,14 @@ function usePopup() {
|
|
|
1964
1964
|
inPopup: "follow",
|
|
1965
1965
|
target
|
|
1966
1966
|
};
|
|
1967
|
-
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$
|
|
1967
|
+
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$r, options, extOptions);
|
|
1968
1968
|
}
|
|
1969
1969
|
return addScope2Scopes(scope);
|
|
1970
1970
|
}
|
|
1971
1971
|
function confirm(title, message, options) {
|
|
1972
1972
|
options = options || Object.create(null);
|
|
1973
1973
|
return dialog({
|
|
1974
|
-
component: _sfc_main$
|
|
1974
|
+
component: _sfc_main$y,
|
|
1975
1975
|
closeOnEscape: true,
|
|
1976
1976
|
props: {
|
|
1977
1977
|
...options,
|
|
@@ -1981,7 +1981,7 @@ function usePopup() {
|
|
|
1981
1981
|
});
|
|
1982
1982
|
}
|
|
1983
1983
|
function toast(type, message, options) {
|
|
1984
|
-
return popupInCustomContainer(_sfc_main$
|
|
1984
|
+
return popupInCustomContainer(_sfc_main$p, {
|
|
1985
1985
|
url: "#ToastContainer",
|
|
1986
1986
|
props: {
|
|
1987
1987
|
...(options || Object.create(null)),
|
|
@@ -2014,7 +2014,7 @@ function usePopup() {
|
|
|
2014
2014
|
},
|
|
2015
2015
|
...extOptions
|
|
2016
2016
|
});
|
|
2017
|
-
const descriptor = openPopup(container || _sfc_main$
|
|
2017
|
+
const descriptor = openPopup(container || _sfc_main$q, options, extOptions);
|
|
2018
2018
|
const scope = useAsyncScope(deferred.promise);
|
|
2019
2019
|
scope.onDestroy(() => destroyPopup(descriptor, deferred));
|
|
2020
2020
|
return scope;
|
|
@@ -2149,12 +2149,12 @@ function getNoDataBase64Image() {
|
|
|
2149
2149
|
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==";
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
|
-
const _hoisted_1$
|
|
2152
|
+
const _hoisted_1$g = {
|
|
2153
2153
|
class: "snail-empty"
|
|
2154
2154
|
};
|
|
2155
|
-
const _hoisted_2$
|
|
2156
|
-
const _hoisted_3$
|
|
2157
|
-
var _sfc_main$
|
|
2155
|
+
const _hoisted_2$c = ["src"];
|
|
2156
|
+
const _hoisted_3$7 = ["textContent"];
|
|
2157
|
+
var _sfc_main$o = defineComponent({
|
|
2158
2158
|
...{
|
|
2159
2159
|
name: "Empty",
|
|
2160
2160
|
inheritAttrs: true
|
|
@@ -2167,23 +2167,23 @@ var _sfc_main$n = defineComponent({
|
|
|
2167
2167
|
setup(__props) {
|
|
2168
2168
|
const defaultImageBase64 = getNoDataBase64Image();
|
|
2169
2169
|
return (_ctx, _cache) => {
|
|
2170
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2170
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [createElementVNode("img", {
|
|
2171
2171
|
src: __props.imageUrl || unref(defaultImageBase64)
|
|
2172
|
-
}, null, 8, _hoisted_2$
|
|
2172
|
+
}, null, 8, _hoisted_2$c), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
|
|
2173
2173
|
class: "message",
|
|
2174
2174
|
textContent: toDisplayString(__props.message || "无数据")
|
|
2175
|
-
}, null, 8, _hoisted_3$
|
|
2175
|
+
}, null, 8, _hoisted_3$7)])]);
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
2178
|
});
|
|
2179
2179
|
|
|
2180
|
-
const _hoisted_1$
|
|
2181
|
-
const _hoisted_2$
|
|
2182
|
-
const _hoisted_3$
|
|
2180
|
+
const _hoisted_1$f = ["title"];
|
|
2181
|
+
const _hoisted_2$b = ["textContent"];
|
|
2182
|
+
const _hoisted_3$6 = {
|
|
2183
2183
|
key: 1,
|
|
2184
2184
|
class: "select-status"
|
|
2185
2185
|
};
|
|
2186
|
-
var _sfc_main$
|
|
2186
|
+
var _sfc_main$n = defineComponent({
|
|
2187
2187
|
...{
|
|
2188
2188
|
name: "SelectNode",
|
|
2189
2189
|
inheritAttrs: true
|
|
@@ -2228,15 +2228,15 @@ var _sfc_main$m = defineComponent({
|
|
|
2228
2228
|
}, [createElementVNode("div", {
|
|
2229
2229
|
class: "item-text ellipsis",
|
|
2230
2230
|
textContent: toDisplayString(__props.item.text)
|
|
2231
|
-
}, null, 8, _hoisted_2$
|
|
2231
|
+
}, null, 8, _hoisted_2$b), __props.item.type == "group" ? (openBlock(), createBlock(_sfc_main$F, {
|
|
2232
2232
|
key: 0,
|
|
2233
2233
|
type: "arrow"
|
|
2234
|
-
})) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2234
|
+
})) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$6, [createVNode(_sfc_main$F, {
|
|
2235
2235
|
type: "success",
|
|
2236
2236
|
button: "",
|
|
2237
2237
|
size: 12,
|
|
2238
2238
|
color: "white"
|
|
2239
|
-
})])) : createCommentVNode("", true)], 42, _hoisted_1$
|
|
2239
|
+
})])) : createCommentVNode("", true)], 42, _hoisted_1$f)) : createCommentVNode("", true), showRef.value ? (openBlock(true), createElementBlock(Fragment, {
|
|
2240
2240
|
key: 1
|
|
2241
2241
|
}, renderList(unref(showChildrenRef), child => {
|
|
2242
2242
|
return openBlock(), createBlock(_component_SelectNode, {
|
|
@@ -2253,7 +2253,7 @@ var _sfc_main$m = defineComponent({
|
|
|
2253
2253
|
}
|
|
2254
2254
|
});
|
|
2255
2255
|
|
|
2256
|
-
var _sfc_main$
|
|
2256
|
+
var _sfc_main$m = defineComponent({
|
|
2257
2257
|
...{
|
|
2258
2258
|
name: "Select2Popup",
|
|
2259
2259
|
inheritAttrs: true
|
|
@@ -2425,13 +2425,13 @@ var _sfc_main$l = defineComponent({
|
|
|
2425
2425
|
key: 0
|
|
2426
2426
|
}, [createTextVNode(" 暂无选项 ")], 64)) : (openBlock(), createElementBlock(Fragment, {
|
|
2427
2427
|
key: 1
|
|
2428
|
-
}, [__props.search ? (openBlock(), createBlock(_sfc_main$
|
|
2428
|
+
}, [__props.search ? (openBlock(), createBlock(_sfc_main$z, mergeProps({
|
|
2429
2429
|
key: 0
|
|
2430
2430
|
}, __props.search, {
|
|
2431
2431
|
onSearch,
|
|
2432
2432
|
key: "select-search"
|
|
2433
2433
|
}), null, 16)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
|
|
2434
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2434
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
2435
2435
|
key: unref(context).getKey(item),
|
|
2436
2436
|
multiple: __props.multiple,
|
|
2437
2437
|
item,
|
|
@@ -2440,7 +2440,7 @@ var _sfc_main$l = defineComponent({
|
|
|
2440
2440
|
onEnter: onEnterSelectNode,
|
|
2441
2441
|
onClick: onClickSelectNode
|
|
2442
2442
|
}, null, 8, ["multiple", "item", "context"]);
|
|
2443
|
-
}), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$
|
|
2443
|
+
}), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$o, {
|
|
2444
2444
|
key: 1,
|
|
2445
2445
|
message: "无结果"
|
|
2446
2446
|
})) : createCommentVNode("", true), showClearButtonRef.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -2452,20 +2452,20 @@ var _sfc_main$l = defineComponent({
|
|
|
2452
2452
|
}
|
|
2453
2453
|
});
|
|
2454
2454
|
|
|
2455
|
-
const _hoisted_1$
|
|
2455
|
+
const _hoisted_1$e = {
|
|
2456
2456
|
key: 0,
|
|
2457
2457
|
class: "select-result"
|
|
2458
2458
|
};
|
|
2459
|
-
const _hoisted_2$
|
|
2460
|
-
const _hoisted_3$
|
|
2461
|
-
const _hoisted_4$
|
|
2459
|
+
const _hoisted_2$a = ["title", "textContent"];
|
|
2460
|
+
const _hoisted_3$5 = ["textContent"];
|
|
2461
|
+
const _hoisted_4$4 = {
|
|
2462
2462
|
key: 1,
|
|
2463
2463
|
class: "placeholder"
|
|
2464
2464
|
};
|
|
2465
2465
|
onAppCreated((app, type) => {
|
|
2466
|
-
type == "popup" && app.component("SelectPopup", _sfc_main$
|
|
2466
|
+
type == "popup" && app.component("SelectPopup", _sfc_main$m);
|
|
2467
2467
|
});
|
|
2468
|
-
var _sfc_main$
|
|
2468
|
+
var _sfc_main$l = defineComponent({
|
|
2469
2469
|
...{
|
|
2470
2470
|
name: "Select",
|
|
2471
2471
|
inheritAttrs: true
|
|
@@ -2597,26 +2597,26 @@ var _sfc_main$k = defineComponent({
|
|
|
2597
2597
|
ref: "select"
|
|
2598
2598
|
}, [__props.items && __props.items.length ? (openBlock(), createElementBlock(Fragment, {
|
|
2599
2599
|
key: 0
|
|
2600
|
-
}, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2600
|
+
}, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$e, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
|
|
2601
2601
|
class: "select-text ellipsis",
|
|
2602
2602
|
title: selectedTextRef.value,
|
|
2603
2603
|
textContent: toDisplayString(selectedTextRef.value)
|
|
2604
|
-
}, null, 8, _hoisted_2$
|
|
2604
|
+
}, null, 8, _hoisted_2$a)])])) : (openBlock(), createElementBlock("div", {
|
|
2605
2605
|
key: 1,
|
|
2606
2606
|
class: "placeholder",
|
|
2607
2607
|
textContent: toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
|
|
2608
|
-
}, null, 8, _hoisted_3$
|
|
2608
|
+
}, null, 8, _hoisted_3$5)), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$F, {
|
|
2609
2609
|
key: 2,
|
|
2610
2610
|
type: "arrow",
|
|
2611
2611
|
button: "",
|
|
2612
2612
|
size: 24,
|
|
2613
2613
|
rotate: 90
|
|
2614
|
-
})) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
2614
|
+
})) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$4, "暂无可选项"))], 2);
|
|
2615
2615
|
};
|
|
2616
2616
|
}
|
|
2617
2617
|
});
|
|
2618
2618
|
|
|
2619
|
-
var _sfc_main$
|
|
2619
|
+
var _sfc_main$k = defineComponent({
|
|
2620
2620
|
...{
|
|
2621
2621
|
name: "Switch",
|
|
2622
2622
|
inheritAttrs: true
|
|
@@ -2655,7 +2655,7 @@ var _sfc_main$j = defineComponent({
|
|
|
2655
2655
|
return openBlock(), createElementBlock("div", {
|
|
2656
2656
|
class: normalizeClass(["snail-switch", [switchModel.value ? "on" : "off", __props.readonly ? "readonly" : ""], __props.type || "switch"]),
|
|
2657
2657
|
onClick: onSwitchChange
|
|
2658
|
-
}, [__props.type == "checkbox" || __props.type == "radio" ? withDirectives((openBlock(), createBlock(_sfc_main$
|
|
2658
|
+
}, [__props.type == "checkbox" || __props.type == "radio" ? withDirectives((openBlock(), createBlock(_sfc_main$F, {
|
|
2659
2659
|
key: 0,
|
|
2660
2660
|
type: "success",
|
|
2661
2661
|
color: "white",
|
|
@@ -2673,8 +2673,8 @@ var _sfc_main$j = defineComponent({
|
|
|
2673
2673
|
}
|
|
2674
2674
|
});
|
|
2675
2675
|
|
|
2676
|
-
const _hoisted_1$
|
|
2677
|
-
var _sfc_main$
|
|
2676
|
+
const _hoisted_1$d = ["readonly", "placeholder", "rows"];
|
|
2677
|
+
var _sfc_main$j = defineComponent({
|
|
2678
2678
|
...{
|
|
2679
2679
|
name: "Textarea",
|
|
2680
2680
|
inheritAttrs: true
|
|
@@ -2734,14 +2734,14 @@ var _sfc_main$i = defineComponent({
|
|
|
2734
2734
|
onInput: _cache[2] || (_cache[2] = $event => emits("input", textareaDom.value.value)),
|
|
2735
2735
|
onBlur: _cache[3] || (_cache[3] = $event => emits("blur", textareaDom.value.value)),
|
|
2736
2736
|
onChange: _cache[4] || (_cache[4] = $event => emits("change", textareaDom.value.value))
|
|
2737
|
-
}, null, 40, _hoisted_1$
|
|
2737
|
+
}, null, 40, _hoisted_1$d)), [[vModelText, valueModel.value]]);
|
|
2738
2738
|
};
|
|
2739
2739
|
}
|
|
2740
2740
|
});
|
|
2741
2741
|
|
|
2742
|
-
const _hoisted_1$
|
|
2743
|
-
const _hoisted_2$
|
|
2744
|
-
var _sfc_main$
|
|
2742
|
+
const _hoisted_1$c = ["onClick"];
|
|
2743
|
+
const _hoisted_2$9 = ["textContent"];
|
|
2744
|
+
var _sfc_main$i = defineComponent({
|
|
2745
2745
|
__name: "action-items",
|
|
2746
2746
|
props: {
|
|
2747
2747
|
mode: {},
|
|
@@ -2779,7 +2779,7 @@ var _sfc_main$h = defineComponent({
|
|
|
2779
2779
|
"--hcolor": unref(correctString)(action.hoverColor, null, true)
|
|
2780
2780
|
}),
|
|
2781
2781
|
onClick: $event => onActionItemClick(action.code)
|
|
2782
|
-
}, [action.icon != void 0 ? (openBlock(), createBlock(_sfc_main$
|
|
2782
|
+
}, [action.icon != void 0 ? (openBlock(), createBlock(_sfc_main$F, mergeProps({
|
|
2783
2783
|
key: 0,
|
|
2784
2784
|
ref_for: true
|
|
2785
2785
|
}, action.icon, {
|
|
@@ -2788,20 +2788,20 @@ var _sfc_main$h = defineComponent({
|
|
|
2788
2788
|
}), null, 16)) : createCommentVNode("", true), createElementVNode("span", {
|
|
2789
2789
|
class: "ellipsis",
|
|
2790
2790
|
textContent: toDisplayString(action.name)
|
|
2791
|
-
}, null, 8, _hoisted_2$
|
|
2791
|
+
}, null, 8, _hoisted_2$9)], 12, _hoisted_1$c);
|
|
2792
2792
|
}), 128))], 2);
|
|
2793
2793
|
};
|
|
2794
2794
|
}
|
|
2795
2795
|
});
|
|
2796
2796
|
|
|
2797
|
-
const _hoisted_1$
|
|
2797
|
+
const _hoisted_1$b = {
|
|
2798
2798
|
class: "snail-action flex-cross-center",
|
|
2799
2799
|
ref: "snail-action"
|
|
2800
2800
|
};
|
|
2801
|
-
const _hoisted_2$
|
|
2801
|
+
const _hoisted_2$8 = {
|
|
2802
2802
|
class: "action-slot flex-cross-center"
|
|
2803
2803
|
};
|
|
2804
|
-
var _sfc_main$
|
|
2804
|
+
var _sfc_main$h = defineComponent({
|
|
2805
2805
|
__name: "action",
|
|
2806
2806
|
props: {
|
|
2807
2807
|
disabled: {
|
|
@@ -2839,7 +2839,7 @@ var _sfc_main$g = defineComponent({
|
|
|
2839
2839
|
popupScopeRef.value.destroy();
|
|
2840
2840
|
} else if (props.disabled != true) {
|
|
2841
2841
|
popupScopeRef.value = follow(rootDom.value, {
|
|
2842
|
-
component: _sfc_main$
|
|
2842
|
+
component: _sfc_main$i,
|
|
2843
2843
|
closeOnEscape: true,
|
|
2844
2844
|
closeOnMask: true,
|
|
2845
2845
|
closeOnResize: true,
|
|
@@ -2890,12 +2890,12 @@ var _sfc_main$g = defineComponent({
|
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
2892
2892
|
return (_ctx, _cache) => {
|
|
2893
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2893
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [createElementVNode("div", _hoisted_2$8, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotHandle))))]), __props.disabled != true && (__props.trigger == "hover" || __props.trigger == "always") ? (openBlock(), createElementBlock("div", {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
class: normalizeClass(["trigger-area", {
|
|
2896
2896
|
hidden: __props.trigger == "hover"
|
|
2897
2897
|
}])
|
|
2898
|
-
}, [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(unref(slotHandle))), () => [createVNode(_sfc_main$
|
|
2898
|
+
}, [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(unref(slotHandle))), () => [createVNode(_sfc_main$F, {
|
|
2899
2899
|
button: "",
|
|
2900
2900
|
type: "more",
|
|
2901
2901
|
size: 16,
|
|
@@ -2905,7 +2905,7 @@ var _sfc_main$g = defineComponent({
|
|
|
2905
2905
|
}
|
|
2906
2906
|
});
|
|
2907
2907
|
|
|
2908
|
-
var _sfc_main$
|
|
2908
|
+
var _sfc_main$g = defineComponent({
|
|
2909
2909
|
...{
|
|
2910
2910
|
name: "Elastic",
|
|
2911
2911
|
inheritAttrs: false
|
|
@@ -3111,7 +3111,7 @@ var _sfc_main$f = defineComponent({
|
|
|
3111
3111
|
}
|
|
3112
3112
|
});
|
|
3113
3113
|
|
|
3114
|
-
var _sfc_main$
|
|
3114
|
+
var _sfc_main$f = defineComponent({
|
|
3115
3115
|
...{
|
|
3116
3116
|
name: "Flex",
|
|
3117
3117
|
inheritAttrs: false
|
|
@@ -3206,13 +3206,13 @@ var _sfc_main$e = defineComponent({
|
|
|
3206
3206
|
}
|
|
3207
3207
|
});
|
|
3208
3208
|
|
|
3209
|
-
const _hoisted_1$
|
|
3210
|
-
const _hoisted_2$
|
|
3211
|
-
const _hoisted_3$
|
|
3209
|
+
const _hoisted_1$a = ["textContent"];
|
|
3210
|
+
const _hoisted_2$7 = ["textContent"];
|
|
3211
|
+
const _hoisted_3$4 = {
|
|
3212
3212
|
key: 1,
|
|
3213
3213
|
class: "status"
|
|
3214
3214
|
};
|
|
3215
|
-
var _sfc_main$
|
|
3215
|
+
var _sfc_main$e = defineComponent({
|
|
3216
3216
|
...{
|
|
3217
3217
|
name: "Fold",
|
|
3218
3218
|
inheritAttrs: true
|
|
@@ -3304,11 +3304,11 @@ var _sfc_main$d = defineComponent({
|
|
|
3304
3304
|
}, [renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps(slotHandle)), () => [createElementVNode("div", {
|
|
3305
3305
|
class: "title ellipsis",
|
|
3306
3306
|
textContent: toDisplayString(__props.title)
|
|
3307
|
-
}, null, 8, _hoisted_1$
|
|
3307
|
+
}, null, 8, _hoisted_1$a), !!__props.subtitle ? (openBlock(), createElementBlock("div", {
|
|
3308
3308
|
key: 0,
|
|
3309
3309
|
class: "subtitle ellipsis",
|
|
3310
3310
|
textContent: toDisplayString(__props.subtitle)
|
|
3311
|
-
}, null, 8, _hoisted_2$
|
|
3311
|
+
}, null, 8, _hoisted_2$7)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_3$4, [createVNode(_sfc_main$F, {
|
|
3312
3312
|
type: "arrow",
|
|
3313
3313
|
button: "",
|
|
3314
3314
|
title: statusModel.value == "expand" ? "收起" : "展开",
|
|
@@ -3322,7 +3322,7 @@ var _sfc_main$d = defineComponent({
|
|
|
3322
3322
|
}
|
|
3323
3323
|
});
|
|
3324
3324
|
|
|
3325
|
-
var _sfc_main$
|
|
3325
|
+
var _sfc_main$d = defineComponent({
|
|
3326
3326
|
__name: "layout",
|
|
3327
3327
|
props: {
|
|
3328
3328
|
direction: {},
|
|
@@ -3399,7 +3399,7 @@ var _sfc_main$c = defineComponent({
|
|
|
3399
3399
|
key: item
|
|
3400
3400
|
}, [areaMap.value[item] && _ctx.$slots[item] ? (openBlock(), createElementBlock(Fragment, {
|
|
3401
3401
|
key: 0
|
|
3402
|
-
}, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$
|
|
3402
|
+
}, [areaMap.value[item].scrollable ? (openBlock(), createBlock(_sfc_main$u, mergeProps({
|
|
3403
3403
|
key: 0,
|
|
3404
3404
|
class: areaMap.value[item].class,
|
|
3405
3405
|
style: areaMap.value[item].style
|
|
@@ -3418,7 +3418,7 @@ var _sfc_main$c = defineComponent({
|
|
|
3418
3418
|
}
|
|
3419
3419
|
});
|
|
3420
3420
|
|
|
3421
|
-
var _sfc_main$
|
|
3421
|
+
var _sfc_main$c = defineComponent({
|
|
3422
3422
|
...{
|
|
3423
3423
|
name: "Sort",
|
|
3424
3424
|
inheritAttrs: true
|
|
@@ -3519,10 +3519,10 @@ var _sfc_main$b = defineComponent({
|
|
|
3519
3519
|
}
|
|
3520
3520
|
});
|
|
3521
3521
|
|
|
3522
|
-
const _hoisted_1$
|
|
3522
|
+
const _hoisted_1$9 = {
|
|
3523
3523
|
class: "table-body"
|
|
3524
3524
|
};
|
|
3525
|
-
var _sfc_main$
|
|
3525
|
+
var _sfc_main$b = defineComponent({
|
|
3526
3526
|
...{
|
|
3527
3527
|
name: "Table",
|
|
3528
3528
|
inheritAttrs: true
|
|
@@ -3542,7 +3542,7 @@ var _sfc_main$a = defineComponent({
|
|
|
3542
3542
|
const hStyleRef = computed(() => css.buildStyle(props.headerStyle));
|
|
3543
3543
|
const fStyleRef = computed(() => css.buildStyle(props.footerStyle));
|
|
3544
3544
|
return (_ctx, _cache) => {
|
|
3545
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3545
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
3546
3546
|
class: normalizeClass(["snail-table", {
|
|
3547
3547
|
"start-border": __props.border == true
|
|
3548
3548
|
}]),
|
|
@@ -3552,7 +3552,7 @@ var _sfc_main$a = defineComponent({
|
|
|
3552
3552
|
default: withCtx(() => [createElementVNode("div", {
|
|
3553
3553
|
class: "table-header",
|
|
3554
3554
|
style: normalizeStyle(hStyleRef.value)
|
|
3555
|
-
}, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$
|
|
3555
|
+
}, [renderSlot(_ctx.$slots, "header")], 4), createElementVNode("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", {
|
|
3556
3556
|
class: "table-footer",
|
|
3557
3557
|
style: normalizeStyle(fStyleRef.value)
|
|
3558
3558
|
}, [renderSlot(_ctx.$slots, "footer")], 4)]),
|
|
@@ -3562,7 +3562,7 @@ var _sfc_main$a = defineComponent({
|
|
|
3562
3562
|
}
|
|
3563
3563
|
});
|
|
3564
3564
|
|
|
3565
|
-
var _sfc_main$
|
|
3565
|
+
var _sfc_main$a = defineComponent({
|
|
3566
3566
|
...{
|
|
3567
3567
|
name: "TableRow",
|
|
3568
3568
|
inheritAttrs: true
|
|
@@ -3585,7 +3585,7 @@ var _sfc_main$9 = defineComponent({
|
|
|
3585
3585
|
}
|
|
3586
3586
|
});
|
|
3587
3587
|
|
|
3588
|
-
var _sfc_main$
|
|
3588
|
+
var _sfc_main$9 = defineComponent({
|
|
3589
3589
|
...{
|
|
3590
3590
|
name: "TableCol",
|
|
3591
3591
|
inheritAttrs: true
|
|
@@ -3631,19 +3631,19 @@ var _sfc_main$8 = defineComponent({
|
|
|
3631
3631
|
}
|
|
3632
3632
|
});
|
|
3633
3633
|
|
|
3634
|
-
const _hoisted_1$
|
|
3634
|
+
const _hoisted_1$8 = {
|
|
3635
3635
|
key: 0,
|
|
3636
3636
|
class: "node-fold"
|
|
3637
3637
|
};
|
|
3638
|
-
const _hoisted_2$
|
|
3639
|
-
const _hoisted_3$
|
|
3638
|
+
const _hoisted_2$6 = ["title", "textContent"];
|
|
3639
|
+
const _hoisted_3$3 = {
|
|
3640
3640
|
class: "node-slot ellipsis"
|
|
3641
3641
|
};
|
|
3642
|
-
const _hoisted_4$
|
|
3642
|
+
const _hoisted_4$3 = {
|
|
3643
3643
|
class: "snail-tree-children",
|
|
3644
3644
|
ref: "children"
|
|
3645
3645
|
};
|
|
3646
|
-
var _sfc_main$
|
|
3646
|
+
var _sfc_main$8 = defineComponent({
|
|
3647
3647
|
...{
|
|
3648
3648
|
name: "TreeNode",
|
|
3649
3649
|
inheritAttrs: true
|
|
@@ -3751,7 +3751,7 @@ var _sfc_main$7 = defineComponent({
|
|
|
3751
3751
|
key: 1
|
|
3752
3752
|
}, [_cache[5] || (_cache[5] = createElementVNode("div", {
|
|
3753
3753
|
class: "indent"
|
|
3754
|
-
}, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3754
|
+
}, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$8, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
3755
3755
|
key: 0,
|
|
3756
3756
|
class: normalizeClass(statusRef.value),
|
|
3757
3757
|
custom: "",
|
|
@@ -3766,7 +3766,7 @@ var _sfc_main$7 = defineComponent({
|
|
|
3766
3766
|
class: "node-text ellipsis",
|
|
3767
3767
|
title: __props.node.text,
|
|
3768
3768
|
textContent: toDisplayString(__props.node.text)
|
|
3769
|
-
}, null, 8, _hoisted_2$
|
|
3769
|
+
}, null, 8, _hoisted_2$6), createElementVNode("div", _hoisted_3$3, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))))])], 64))], 34), [[vShow, showRef.value]]), withDirectives(createElementVNode("div", _hoisted_4$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.node.children, child => {
|
|
3770
3770
|
return openBlock(), createBlock(_component_TreeNode, {
|
|
3771
3771
|
key: __props.context.getKey(child),
|
|
3772
3772
|
node: child,
|
|
@@ -3786,10 +3786,10 @@ var _sfc_main$7 = defineComponent({
|
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
3788
|
|
|
3789
|
-
const _hoisted_1$
|
|
3789
|
+
const _hoisted_1$7 = {
|
|
3790
3790
|
class: "snail-tree"
|
|
3791
3791
|
};
|
|
3792
|
-
var _sfc_main$
|
|
3792
|
+
var _sfc_main$7 = defineComponent({
|
|
3793
3793
|
...{
|
|
3794
3794
|
name: "Tree",
|
|
3795
3795
|
inheritAttrs: true
|
|
@@ -3823,15 +3823,15 @@ var _sfc_main$6 = defineComponent({
|
|
|
3823
3823
|
emits("click", node, parents);
|
|
3824
3824
|
}
|
|
3825
3825
|
return (_ctx, _cache) => {
|
|
3826
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3826
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [__props.search ? (openBlock(), createBlock(_sfc_main$z, mergeProps({
|
|
3827
3827
|
key: 0
|
|
3828
3828
|
}, __props.search, {
|
|
3829
3829
|
onSearch
|
|
3830
|
-
}), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
3830
|
+
}), null, 16)) : createCommentVNode("", true), createVNode(_sfc_main$u, {
|
|
3831
3831
|
scroll: "y"
|
|
3832
3832
|
}, {
|
|
3833
3833
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.nodes || [], node => {
|
|
3834
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3834
|
+
return openBlock(), createBlock(_sfc_main$8, {
|
|
3835
3835
|
key: unref(context).getKey(node),
|
|
3836
3836
|
node,
|
|
3837
3837
|
parent: void 0,
|
|
@@ -3856,7 +3856,7 @@ function mount(target, options, onDestroyed) {
|
|
|
3856
3856
|
mustObject(options, "options");
|
|
3857
3857
|
target instanceof HTMLElement || throwError("target must be a HTMLElement");
|
|
3858
3858
|
target.classList.add("snail-app");
|
|
3859
|
-
const app = createApp(_sfc_main$
|
|
3859
|
+
const app = createApp(_sfc_main$v, options);
|
|
3860
3860
|
triggerAppCreated(app);
|
|
3861
3861
|
app.mount(target);
|
|
3862
3862
|
const scope = useScope().onDestroy(() => app.unmount());
|
|
@@ -3864,11 +3864,11 @@ function mount(target, options, onDestroyed) {
|
|
|
3864
3864
|
return scope;
|
|
3865
3865
|
}
|
|
3866
3866
|
|
|
3867
|
-
const _hoisted_1$
|
|
3867
|
+
const _hoisted_1$6 = {
|
|
3868
3868
|
class: "snail-flash-number"
|
|
3869
3869
|
};
|
|
3870
|
-
const _hoisted_2$
|
|
3871
|
-
var _sfc_main$
|
|
3870
|
+
const _hoisted_2$5 = ["textContent"];
|
|
3871
|
+
var _sfc_main$6 = defineComponent({
|
|
3872
3872
|
__name: "flash-number",
|
|
3873
3873
|
props: {
|
|
3874
3874
|
value: {}
|
|
@@ -3896,12 +3896,12 @@ var _sfc_main$5 = defineComponent({
|
|
|
3896
3896
|
buildNumberItems();
|
|
3897
3897
|
});
|
|
3898
3898
|
return (_ctx, _cache) => {
|
|
3899
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3899
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [(openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
|
|
3900
3900
|
return openBlock(), createElementBlock("span", {
|
|
3901
3901
|
key: item.id,
|
|
3902
3902
|
textContent: toDisplayString(item.text),
|
|
3903
3903
|
class: normalizeClass(unref(isNullish)(item.number) ? "" : "number-item")
|
|
3904
|
-
}, null, 10, _hoisted_2$
|
|
3904
|
+
}, null, 10, _hoisted_2$5);
|
|
3905
3905
|
}), 128)), _cache[0] || (_cache[0] = createElementVNode("span", {
|
|
3906
3906
|
style: {
|
|
3907
3907
|
"color": "red"
|
|
@@ -4027,23 +4027,23 @@ function buildSecondItems(minuteItem, min, max) {
|
|
|
4027
4027
|
return items;
|
|
4028
4028
|
}
|
|
4029
4029
|
|
|
4030
|
-
const _hoisted_1$
|
|
4030
|
+
const _hoisted_1$5 = {
|
|
4031
4031
|
class: "tz-item",
|
|
4032
4032
|
ref: "hour-items"
|
|
4033
4033
|
};
|
|
4034
|
-
const _hoisted_2$
|
|
4035
|
-
const _hoisted_3$
|
|
4034
|
+
const _hoisted_2$4 = ["textContent", "onClick", "onDblclick"];
|
|
4035
|
+
const _hoisted_3$2 = {
|
|
4036
4036
|
class: "tz-item",
|
|
4037
4037
|
ref: "minute-items"
|
|
4038
4038
|
};
|
|
4039
|
-
const _hoisted_4$
|
|
4039
|
+
const _hoisted_4$2 = ["textContent", "onClick", "onDblclick"];
|
|
4040
4040
|
const _hoisted_5$1 = {
|
|
4041
4041
|
key: 0,
|
|
4042
4042
|
class: "tz-item",
|
|
4043
4043
|
ref: "second-items"
|
|
4044
4044
|
};
|
|
4045
4045
|
const _hoisted_6$1 = ["textContent", "onClick", "onDblclick"];
|
|
4046
|
-
var _sfc_main$
|
|
4046
|
+
var _sfc_main$5 = defineComponent({
|
|
4047
4047
|
__name: "time-pc",
|
|
4048
4048
|
props: {
|
|
4049
4049
|
value: {},
|
|
@@ -4145,17 +4145,17 @@ var _sfc_main$4 = defineComponent({
|
|
|
4145
4145
|
}
|
|
4146
4146
|
onMounted(rebuildItems);
|
|
4147
4147
|
return (_ctx, _cache) => {
|
|
4148
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4148
|
+
return openBlock(), createBlock(_sfc_main$d, {
|
|
4149
4149
|
class: normalizeClass(["time-picker pc", {
|
|
4150
4150
|
"second-disabled": unref(format) != "HH:mm:ss"
|
|
4151
4151
|
}]),
|
|
4152
4152
|
direction: "vertical"
|
|
4153
4153
|
}, createSlots({
|
|
4154
|
-
main: withCtx(() => [createVNode(_sfc_main$
|
|
4154
|
+
main: withCtx(() => [createVNode(_sfc_main$x, {
|
|
4155
4155
|
multiple: "",
|
|
4156
4156
|
effect: unref(MOTION).top
|
|
4157
4157
|
}, {
|
|
4158
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
4158
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$5, [(openBlock(true), createElementBlock(Fragment, null, renderList(hourItems.value, item => {
|
|
4159
4159
|
return openBlock(), createElementBlock("div", {
|
|
4160
4160
|
class: normalizeClass(["tzi-number", {
|
|
4161
4161
|
active: item.hour == timeRef.value.hour,
|
|
@@ -4165,8 +4165,8 @@ var _sfc_main$4 = defineComponent({
|
|
|
4165
4165
|
textContent: toDisplayString(unref(padStart)(item.hour, 2, "0")),
|
|
4166
4166
|
onClick: $event => onHourClick(item),
|
|
4167
4167
|
onDblclick: $event => onHourClick(item)
|
|
4168
|
-
}, null, 42, _hoisted_2$
|
|
4169
|
-
}), 128))], 512), createElementVNode("div", _hoisted_3$
|
|
4168
|
+
}, null, 42, _hoisted_2$4);
|
|
4169
|
+
}), 128))], 512), createElementVNode("div", _hoisted_3$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(minuteItems.value, item => {
|
|
4170
4170
|
return openBlock(), createElementBlock("div", {
|
|
4171
4171
|
class: normalizeClass(["tzi-number", {
|
|
4172
4172
|
active: item.minute == timeRef.value.minute,
|
|
@@ -4176,7 +4176,7 @@ var _sfc_main$4 = defineComponent({
|
|
|
4176
4176
|
textContent: toDisplayString(unref(padStart)(item.minute, 2, "0")),
|
|
4177
4177
|
onClick: $event => onMinuteClick(item),
|
|
4178
4178
|
onDblclick: $event => onMinuteClick(item, true)
|
|
4179
|
-
}, null, 42, _hoisted_4$
|
|
4179
|
+
}, null, 42, _hoisted_4$2);
|
|
4180
4180
|
}), 128))], 512), unref(format) == "HH:mm:ss" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(secondItems.value, item => {
|
|
4181
4181
|
return openBlock(), createElementBlock("div", {
|
|
4182
4182
|
class: normalizeClass(["tzi-number", {
|
|
@@ -4194,19 +4194,19 @@ var _sfc_main$4 = defineComponent({
|
|
|
4194
4194
|
_: 2
|
|
4195
4195
|
}, [__props.toolbarDisabled != true ? {
|
|
4196
4196
|
name: "bottom",
|
|
4197
|
-
fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4197
|
+
fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
4198
4198
|
key: 0,
|
|
4199
4199
|
type: "link",
|
|
4200
4200
|
size: "small",
|
|
4201
4201
|
textContent: "清空",
|
|
4202
4202
|
onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
|
|
4203
|
-
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4203
|
+
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
4204
4204
|
key: 1,
|
|
4205
4205
|
type: "link",
|
|
4206
4206
|
size: "small",
|
|
4207
4207
|
textContent: "现在",
|
|
4208
4208
|
onClick: _cache[1] || (_cache[1] = $event => rebuildItems(unref(getTimeValue)(new Date())))
|
|
4209
|
-
})) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
4209
|
+
})) : createCommentVNode("", true), createVNode(_sfc_main$G, {
|
|
4210
4210
|
type: "link",
|
|
4211
4211
|
size: "small",
|
|
4212
4212
|
textContent: "确定",
|
|
@@ -4221,15 +4221,15 @@ var _sfc_main$4 = defineComponent({
|
|
|
4221
4221
|
}
|
|
4222
4222
|
});
|
|
4223
4223
|
|
|
4224
|
-
const _hoisted_1$
|
|
4225
|
-
const _hoisted_2$
|
|
4226
|
-
const _hoisted_3 = ["textContent"];
|
|
4227
|
-
const _hoisted_4 = ["textContent", "onClick", "onDblclick"];
|
|
4224
|
+
const _hoisted_1$4 = ["textContent"];
|
|
4225
|
+
const _hoisted_2$3 = ["textContent"];
|
|
4226
|
+
const _hoisted_3$1 = ["textContent"];
|
|
4227
|
+
const _hoisted_4$1 = ["textContent", "onClick", "onDblclick"];
|
|
4228
4228
|
const _hoisted_5 = ["textContent", "onClick", "onDblclick"];
|
|
4229
4229
|
const _hoisted_6 = ["textContent"];
|
|
4230
4230
|
const _hoisted_7 = ["textContent", "onClick", "onDblclick"];
|
|
4231
4231
|
const _hoisted_8 = ["textContent"];
|
|
4232
|
-
var _sfc_main$
|
|
4232
|
+
var _sfc_main$4 = defineComponent({
|
|
4233
4233
|
__name: "date-pc",
|
|
4234
4234
|
props: {
|
|
4235
4235
|
value: {},
|
|
@@ -4446,7 +4446,7 @@ var _sfc_main$3 = defineComponent({
|
|
|
4446
4446
|
dateRef.value == void 0 && (dateRef.value = electDateValue());
|
|
4447
4447
|
buildPickerItems(stepRef.value, 0);
|
|
4448
4448
|
return (_ctx, _cache) => {
|
|
4449
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4449
|
+
return openBlock(), createBlock(_sfc_main$d, {
|
|
4450
4450
|
class: normalizeClass(["date-picker pc", {
|
|
4451
4451
|
"time-now": __props.pinned && __props.pinned.value == true
|
|
4452
4452
|
}]),
|
|
@@ -4458,7 +4458,7 @@ var _sfc_main$3 = defineComponent({
|
|
|
4458
4458
|
height: "30px"
|
|
4459
4459
|
}
|
|
4460
4460
|
}, createSlots({
|
|
4461
|
-
top: withCtx(() => [createVNode(_sfc_main$
|
|
4461
|
+
top: withCtx(() => [createVNode(_sfc_main$F, {
|
|
4462
4462
|
type: "arrow",
|
|
4463
4463
|
button: "",
|
|
4464
4464
|
rotate: 180,
|
|
@@ -4471,16 +4471,16 @@ var _sfc_main$3 = defineComponent({
|
|
|
4471
4471
|
}, [stepRef.value == "year" ? (openBlock(), createElementBlock("div", {
|
|
4472
4472
|
key: 0,
|
|
4473
4473
|
textContent: toDisplayString(`${yearItems.value[0].year}年 - ${unref(getFromArray)(yearItems.value, -1).year}年`)
|
|
4474
|
-
}, null, 8, _hoisted_1$
|
|
4474
|
+
}, null, 8, _hoisted_1$4)) : (openBlock(), createElementBlock(Fragment, {
|
|
4475
4475
|
key: 1
|
|
4476
4476
|
}, [createElementVNode("div", {
|
|
4477
4477
|
textContent: toDisplayString(`${dateRef.value.year}年`),
|
|
4478
4478
|
onClick: _cache[1] || (_cache[1] = $event => onSwitchStepClick("year"))
|
|
4479
|
-
}, null, 8, _hoisted_2$
|
|
4479
|
+
}, null, 8, _hoisted_2$3), stepRef.value == "day" ? (openBlock(), createElementBlock("div", {
|
|
4480
4480
|
key: 0,
|
|
4481
4481
|
textContent: toDisplayString(`${dateRef.value.month}月`),
|
|
4482
4482
|
onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
|
|
4483
|
-
}, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$
|
|
4483
|
+
}, null, 8, _hoisted_3$1)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$F, {
|
|
4484
4484
|
class: "flex-0",
|
|
4485
4485
|
type: "arrow",
|
|
4486
4486
|
button: "",
|
|
@@ -4502,7 +4502,7 @@ var _sfc_main$3 = defineComponent({
|
|
|
4502
4502
|
textContent: toDisplayString(item.year),
|
|
4503
4503
|
onClick: $event => onYearItemClick(item),
|
|
4504
4504
|
onDblclick: $event => onYearItemClick(item, true)
|
|
4505
|
-
}, null, 40, _hoisted_4)], 2);
|
|
4505
|
+
}, null, 40, _hoisted_4$1)], 2);
|
|
4506
4506
|
}), 128)) : stepRef.value == "month" ? (openBlock(true), createElementBlock(Fragment, {
|
|
4507
4507
|
key: 1
|
|
4508
4508
|
}, renderList(monthItems.value, item => {
|
|
@@ -4552,19 +4552,19 @@ var _sfc_main$3 = defineComponent({
|
|
|
4552
4552
|
onClick: onSelectTime
|
|
4553
4553
|
}, null, 10, _hoisted_8)) : createCommentVNode("", true), __props.toolbarDisabled != true ? (openBlock(), createElementBlock(Fragment, {
|
|
4554
4554
|
key: 1
|
|
4555
|
-
}, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4555
|
+
}, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
4556
4556
|
key: 0,
|
|
4557
4557
|
type: "link",
|
|
4558
4558
|
size: "small",
|
|
4559
4559
|
textContent: "清空",
|
|
4560
4560
|
onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), unref(inPopup) && __props.closePopup("")))
|
|
4561
|
-
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4561
|
+
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$G, {
|
|
4562
4562
|
key: 1,
|
|
4563
4563
|
type: "link",
|
|
4564
4564
|
size: "small",
|
|
4565
4565
|
textContent: "现在",
|
|
4566
4566
|
onClick: onNow
|
|
4567
|
-
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
4567
|
+
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$G, {
|
|
4568
4568
|
type: "link",
|
|
4569
4569
|
size: "small",
|
|
4570
4570
|
textContent: "确定",
|
|
@@ -4579,19 +4579,129 @@ var _sfc_main$3 = defineComponent({
|
|
|
4579
4579
|
}
|
|
4580
4580
|
});
|
|
4581
4581
|
|
|
4582
|
+
const _hoisted_1$3 = {
|
|
4583
|
+
key: 0,
|
|
4584
|
+
class: "pick-header"
|
|
4585
|
+
};
|
|
4586
|
+
const _hoisted_2$2 = {
|
|
4587
|
+
class: "pick-body"
|
|
4588
|
+
};
|
|
4589
|
+
const _hoisted_3 = {
|
|
4590
|
+
class: "pick-items",
|
|
4591
|
+
ref: "pick-items"
|
|
4592
|
+
};
|
|
4593
|
+
const _hoisted_4 = ["textContent"];
|
|
4594
|
+
const itemHeight = 32;
|
|
4595
|
+
var _sfc_main$3 = defineComponent({
|
|
4596
|
+
__name: "scroll-picker",
|
|
4597
|
+
props: {
|
|
4598
|
+
items: {},
|
|
4599
|
+
value: {},
|
|
4600
|
+
title: {},
|
|
4601
|
+
inPopup: {},
|
|
4602
|
+
closePopup: {
|
|
4603
|
+
type: Function
|
|
4604
|
+
},
|
|
4605
|
+
onBeforeClose: {
|
|
4606
|
+
type: Function
|
|
4607
|
+
},
|
|
4608
|
+
popupStatus: {},
|
|
4609
|
+
popup: {},
|
|
4610
|
+
picker: {}
|
|
4611
|
+
},
|
|
4612
|
+
emits: ["select"],
|
|
4613
|
+
setup(__props, _ref) {
|
|
4614
|
+
var _ref2, _props$value, _props$items$;
|
|
4615
|
+
let {
|
|
4616
|
+
emit: __emit
|
|
4617
|
+
} = _ref;
|
|
4618
|
+
const props = __props;
|
|
4619
|
+
const emits = __emit;
|
|
4620
|
+
const {
|
|
4621
|
+
onSize
|
|
4622
|
+
} = useObserver();
|
|
4623
|
+
const {
|
|
4624
|
+
onTimeout
|
|
4625
|
+
} = useTimer();
|
|
4626
|
+
const pickItemsDom = useTemplateRef("pick-items");
|
|
4627
|
+
const elasticRef = shallowRef();
|
|
4628
|
+
const valueRef = ref((_ref2 = (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : (_props$items$ = props.items[0]) === null || _props$items$ === void 0 ? void 0 : _props$items$.code) !== null && _ref2 !== void 0 ? _ref2 : "");
|
|
4629
|
+
let backValue = void 0;
|
|
4630
|
+
function onElastic(detail) {
|
|
4631
|
+
if (detail.status == "start") {
|
|
4632
|
+
backValue = valueRef.value;
|
|
4633
|
+
} else {
|
|
4634
|
+
const index = parseInt((detail.position.y / itemHeight).toFixed(0));
|
|
4635
|
+
const item = props.items[-index];
|
|
4636
|
+
valueRef.value = item ? item.code : void 0;
|
|
4637
|
+
if (detail.status == "end") {
|
|
4638
|
+
elasticRef.value.scrollTo(void 0, index * itemHeight);
|
|
4639
|
+
backValue != valueRef.value && emits("select", valueRef.value);
|
|
4640
|
+
}
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
onMounted(async () => {
|
|
4644
|
+
onSize(pickItemsDom.value.parentElement, size => {
|
|
4645
|
+
const offset = (size.height - itemHeight) / 2;
|
|
4646
|
+
pickItemsDom.value.style.padding = `${offset}px 0`;
|
|
4647
|
+
});
|
|
4648
|
+
elasticRef.value = useElastic(pickItemsDom.value, {
|
|
4649
|
+
elastic: "y",
|
|
4650
|
+
distance: 100
|
|
4651
|
+
}, onElastic);
|
|
4652
|
+
const index = props.items.findIndex(item => item.code == valueRef.value);
|
|
4653
|
+
index != -1 && onTimeout(() => elasticRef.value.scrollTo(void 0, -itemHeight * index), 50);
|
|
4654
|
+
});
|
|
4655
|
+
return (_ctx, _cache) => {
|
|
4656
|
+
return openBlock(), createElementBlock("div", {
|
|
4657
|
+
class: normalizeClass(["snail-scroll-picker wh-fill", {
|
|
4658
|
+
"in-pupup": __props.inPopup
|
|
4659
|
+
}])
|
|
4660
|
+
}, [__props.inPopup ? (openBlock(), createElementBlock("div", _hoisted_1$3, "ddd")) : createCommentVNode("", true), createElementVNode("div", _hoisted_2$2, [createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, item => {
|
|
4661
|
+
return openBlock(), createElementBlock("span", {
|
|
4662
|
+
class: normalizeClass(["pick-item", {
|
|
4663
|
+
selected: item.code === valueRef.value,
|
|
4664
|
+
disabled: item.disabled
|
|
4665
|
+
}]),
|
|
4666
|
+
key: item.code,
|
|
4667
|
+
textContent: toDisplayString(item.text)
|
|
4668
|
+
}, null, 10, _hoisted_4);
|
|
4669
|
+
}), 128))], 512), _cache[0] || (_cache[0] = createElementVNode("div", {
|
|
4670
|
+
class: "pick-layer"
|
|
4671
|
+
}, [createElementVNode("span", {
|
|
4672
|
+
class: "layer-top"
|
|
4673
|
+
}), createElementVNode("span", {
|
|
4674
|
+
class: "layer-selection"
|
|
4675
|
+
}), createElementVNode("span", {
|
|
4676
|
+
class: "layer-bottom"
|
|
4677
|
+
})], -1))])], 2);
|
|
4678
|
+
};
|
|
4679
|
+
}
|
|
4680
|
+
});
|
|
4681
|
+
|
|
4582
4682
|
function usePicker() {
|
|
4583
4683
|
const popup = usePopup();
|
|
4584
4684
|
function showDate(target, options, popupOptions) {
|
|
4585
4685
|
options = {
|
|
4586
4686
|
...options
|
|
4587
4687
|
};
|
|
4588
|
-
return showPicker(target, _sfc_main$
|
|
4688
|
+
return showPicker(target, _sfc_main$4, options, popupOptions);
|
|
4589
4689
|
}
|
|
4590
4690
|
function showTime(target, options, popupOptions) {
|
|
4591
4691
|
options = {
|
|
4592
4692
|
...options
|
|
4593
4693
|
};
|
|
4594
|
-
return showPicker(target, _sfc_main$
|
|
4694
|
+
return showPicker(target, _sfc_main$5, options, popupOptions);
|
|
4695
|
+
}
|
|
4696
|
+
function showScroll(options) {
|
|
4697
|
+
const popupOptions = {
|
|
4698
|
+
mode: "dialog",
|
|
4699
|
+
dialog: {
|
|
4700
|
+
closeOnEscape: true,
|
|
4701
|
+
closeOnMask: true
|
|
4702
|
+
}
|
|
4703
|
+
};
|
|
4704
|
+
return showPicker(void 0, _sfc_main$3, options, popupOptions);
|
|
4595
4705
|
}
|
|
4596
4706
|
function showPicker(target, component, options, popupOptions) {
|
|
4597
4707
|
if (popupOptions && popupOptions.mode == "dialog") {
|
|
@@ -4629,7 +4739,8 @@ function usePicker() {
|
|
|
4629
4739
|
}
|
|
4630
4740
|
const manager = Object.freeze(mountScope({
|
|
4631
4741
|
showDate,
|
|
4632
|
-
showTime
|
|
4742
|
+
showTime,
|
|
4743
|
+
showScroll
|
|
4633
4744
|
}, "IPickerManager"));
|
|
4634
4745
|
manager.onDestroy(popup.destroy);
|
|
4635
4746
|
return manager;
|
|
@@ -4713,7 +4824,7 @@ var _sfc_main$2 = defineComponent({
|
|
|
4713
4824
|
"flex-1": __props.mode != "simple"
|
|
4714
4825
|
}]),
|
|
4715
4826
|
textContent: toDisplayString(valueRef.value)
|
|
4716
|
-
}, null, 10, _hoisted_2$1)) : createCommentVNode("", true), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$
|
|
4827
|
+
}, null, 10, _hoisted_2$1)) : createCommentVNode("", true), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$F, {
|
|
4717
4828
|
key: 1,
|
|
4718
4829
|
type: "datepicker",
|
|
4719
4830
|
button: "",
|
|
@@ -4801,7 +4912,7 @@ var _sfc_main$1 = defineComponent({
|
|
|
4801
4912
|
"flex-1": __props.mode != "simple"
|
|
4802
4913
|
}]),
|
|
4803
4914
|
textContent: toDisplayString(valueRef.value)
|
|
4804
|
-
}, null, 10, _hoisted_2)) : createCommentVNode("", true), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$
|
|
4915
|
+
}, null, 10, _hoisted_2)) : createCommentVNode("", true), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$F, {
|
|
4805
4916
|
key: 1,
|
|
4806
4917
|
type: "timepicker",
|
|
4807
4918
|
button: "",
|
|
@@ -4897,12 +5008,12 @@ var _sfc_main = defineComponent({
|
|
|
4897
5008
|
onTouchstart: onStartDrag,
|
|
4898
5009
|
onTouchmove: onDragMove,
|
|
4899
5010
|
onTouchend: onDragEnd
|
|
4900
|
-
}, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$
|
|
5011
|
+
}, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$F, {
|
|
4901
5012
|
key: 0,
|
|
4902
5013
|
type: "success",
|
|
4903
5014
|
size: 20,
|
|
4904
5015
|
color: "white"
|
|
4905
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
5016
|
+
})) : (openBlock(), createBlock(_sfc_main$F, {
|
|
4906
5017
|
key: 1,
|
|
4907
5018
|
custom: "",
|
|
4908
5019
|
size: 20,
|
|
@@ -4921,37 +5032,38 @@ var _sfc_main = defineComponent({
|
|
|
4921
5032
|
});
|
|
4922
5033
|
|
|
4923
5034
|
const components = {
|
|
4924
|
-
Action: _sfc_main$
|
|
4925
|
-
Button: _sfc_main$
|
|
4926
|
-
Choose: _sfc_main$
|
|
4927
|
-
Footer: _sfc_main$
|
|
4928
|
-
Header: _sfc_main$
|
|
4929
|
-
Icon: _sfc_main$
|
|
4930
|
-
Input: _sfc_main$
|
|
4931
|
-
Number: _sfc_main$
|
|
4932
|
-
Search: _sfc_main$
|
|
4933
|
-
Select: _sfc_main$
|
|
4934
|
-
Switch: _sfc_main$
|
|
4935
|
-
Textarea: _sfc_main$
|
|
4936
|
-
Dynamic: _sfc_main$
|
|
4937
|
-
Elastic: _sfc_main$
|
|
4938
|
-
Flex: _sfc_main$
|
|
4939
|
-
Fold: _sfc_main$
|
|
4940
|
-
Motion: _sfc_main$
|
|
4941
|
-
Layout: _sfc_main$
|
|
4942
|
-
Scroll: _sfc_main$
|
|
4943
|
-
Sort: _sfc_main$
|
|
4944
|
-
Table: _sfc_main$
|
|
4945
|
-
TableRow: _sfc_main$
|
|
4946
|
-
TableCol: _sfc_main$
|
|
4947
|
-
Tree: _sfc_main$
|
|
4948
|
-
Wrapper: _sfc_main$
|
|
4949
|
-
FlashNumber: _sfc_main$
|
|
5035
|
+
Action: _sfc_main$h,
|
|
5036
|
+
Button: _sfc_main$G,
|
|
5037
|
+
Choose: _sfc_main$E,
|
|
5038
|
+
Footer: _sfc_main$D,
|
|
5039
|
+
Header: _sfc_main$C,
|
|
5040
|
+
Icon: _sfc_main$F,
|
|
5041
|
+
Input: _sfc_main$B,
|
|
5042
|
+
Number: _sfc_main$A,
|
|
5043
|
+
Search: _sfc_main$z,
|
|
5044
|
+
Select: _sfc_main$l,
|
|
5045
|
+
Switch: _sfc_main$k,
|
|
5046
|
+
Textarea: _sfc_main$j,
|
|
5047
|
+
Dynamic: _sfc_main$v,
|
|
5048
|
+
Elastic: _sfc_main$g,
|
|
5049
|
+
Flex: _sfc_main$f,
|
|
5050
|
+
Fold: _sfc_main$e,
|
|
5051
|
+
Motion: _sfc_main$x,
|
|
5052
|
+
Layout: _sfc_main$d,
|
|
5053
|
+
Scroll: _sfc_main$u,
|
|
5054
|
+
Sort: _sfc_main$c,
|
|
5055
|
+
Table: _sfc_main$b,
|
|
5056
|
+
TableRow: _sfc_main$a,
|
|
5057
|
+
TableCol: _sfc_main$9,
|
|
5058
|
+
Tree: _sfc_main$7,
|
|
5059
|
+
Wrapper: _sfc_main$t,
|
|
5060
|
+
FlashNumber: _sfc_main$6,
|
|
4950
5061
|
DatePicker: _sfc_main$2,
|
|
5062
|
+
ScrollPicker: _sfc_main$3,
|
|
4951
5063
|
TimePicker: _sfc_main$1,
|
|
4952
5064
|
DragVerify: _sfc_main,
|
|
4953
|
-
Empty: _sfc_main$
|
|
4954
|
-
Loading: _sfc_main$
|
|
5065
|
+
Empty: _sfc_main$o,
|
|
5066
|
+
Loading: _sfc_main$w
|
|
4955
5067
|
};
|
|
4956
5068
|
|
|
4957
5069
|
onMountScope(scope => {
|