snail.vue 2.0.12 → 2.0.13
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 +186 -2
- package/dist/snail.vue.js +259 -143
- package/dist/snail.vue.umd.js +256 -139
- package/dist/styles/snail.vue.vue.css +25 -21
- package/package.json +3 -3
package/dist/snail.vue.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//@ sourceURL=/snail.vue.js
|
|
2
|
-
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, normalizeStyle, createElementVNode, toDisplayString, Fragment, renderList,
|
|
3
|
-
import { throwError, isArrayNotEmpty, isStringNotEmpty, useKey, isArray, useTimer, newId, script, isFunction, getFromArray, mountScope, useScopes, throwIfFalse, isPromise, wait, isObject, isNumberNotNaN, hasAny, mustFunction, useScope, removeFromArray, mustObject, delay, defer, useAsyncScope, useHook, throwIfTrue, correctTimeValue, getDateValue, formatDateValue, parseTimeValue, getTimeValue, padStart, formatTimeValue, parseDateValue, correctDateFormat, getDateByValue,
|
|
4
|
-
import {
|
|
2
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, normalizeStyle, unref, createElementVNode, toDisplayString, Fragment, renderList, mergeModels, useModel, computed, createCommentVNode, createBlock, nextTick, onMounted, onUnmounted, useTemplateRef, createVNode, watch, withDirectives, isRef, vModelText, createApp, Transition, withCtx, normalizeProps, guardReactiveProps, ref, onErrorCaptured, resolveDynamicComponent, mergeProps, createSlots, withModifiers, getCurrentInstance, resolveComponent, TransitionGroup, vShow, onBeforeUnmount, getCurrentScope, onScopeDispose } from 'vue';
|
|
3
|
+
import { throwError, isArrayNotEmpty, isStringNotEmpty, correctString, useKey, isArray, useTimer, newId, script, isFunction, getFromArray, mountScope, useScopes, throwIfFalse, isPromise, wait, isObject, isNumberNotNaN, hasAny, mustFunction, useScope, removeFromArray, mustObject, delay, defer, useAsyncScope, useHook, correctNumber, throwIfTrue, hasOwnProperty, correctTimeValue, getDateValue, formatDateValue, parseTimeValue, getTimeValue, padStart, formatTimeValue, parseDateValue, correctDateFormat, getDateByValue, onMountScope } from 'snail.core';
|
|
4
|
+
import { link, css, useObserver, useAnimation } from 'snail.view';
|
|
5
5
|
|
|
6
6
|
const _hoisted_1$k = ["title"];
|
|
7
|
-
var _sfc_main$
|
|
7
|
+
var _sfc_main$B = defineComponent({
|
|
8
8
|
...{
|
|
9
9
|
name: "Button",
|
|
10
10
|
inheritAttrs: true
|
|
@@ -25,6 +25,10 @@ var _sfc_main$z = defineComponent({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
var addLink = href => setTimeout(link.register, 0, href);
|
|
29
|
+
|
|
30
|
+
addLink("/styles/snail.vue.vue.css");
|
|
31
|
+
|
|
28
32
|
function getSvgDraw(iconType, draw) {
|
|
29
33
|
switch (iconType) {
|
|
30
34
|
case "success":
|
|
@@ -63,10 +67,10 @@ function getSvgDraw(iconType, draw) {
|
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
66
|
-
const _hoisted_1$j = ["width", "height"];
|
|
70
|
+
const _hoisted_1$j = ["viewBox", "width", "height"];
|
|
67
71
|
const _hoisted_2$c = ["textContent"];
|
|
68
72
|
const _hoisted_3$a = ["fill", "stroke", "stroke-width", "d"];
|
|
69
|
-
var _sfc_main$
|
|
73
|
+
var _sfc_main$A = defineComponent({
|
|
70
74
|
...{
|
|
71
75
|
name: "Icon",
|
|
72
76
|
inheritAttrs: true
|
|
@@ -75,6 +79,7 @@ var _sfc_main$y = defineComponent({
|
|
|
75
79
|
props: {
|
|
76
80
|
title: {},
|
|
77
81
|
type: {},
|
|
82
|
+
viewBox: {},
|
|
78
83
|
color: {},
|
|
79
84
|
hoverColor: {},
|
|
80
85
|
size: {},
|
|
@@ -88,7 +93,7 @@ var _sfc_main$y = defineComponent({
|
|
|
88
93
|
return (_ctx, _cache) => {
|
|
89
94
|
return openBlock(), createElementBlock("svg", {
|
|
90
95
|
class: normalizeClass(["snail-icon", __props.type]),
|
|
91
|
-
viewBox: "0 0 1024 1024",
|
|
96
|
+
viewBox: unref(correctString)(__props.viewBox, "0 0 1024 1024", false),
|
|
92
97
|
style: normalizeStyle(__props.rotate ? `transform: rotate(${__props.rotate}deg);` : ""),
|
|
93
98
|
width: __props.size || 24,
|
|
94
99
|
height: __props.size || 24,
|
|
@@ -112,7 +117,7 @@ const _hoisted_1$i = ["title", "onClick"];
|
|
|
112
117
|
const _hoisted_2$b = ["type", "checked"];
|
|
113
118
|
const _hoisted_3$9 = ["textContent"];
|
|
114
119
|
const _hoisted_4$7 = ["textContent"];
|
|
115
|
-
var _sfc_main$
|
|
120
|
+
var _sfc_main$z = defineComponent({
|
|
116
121
|
...{
|
|
117
122
|
name: "Choose",
|
|
118
123
|
inheritAttrs: true
|
|
@@ -191,7 +196,7 @@ var _sfc_main$x = defineComponent({
|
|
|
191
196
|
}, null, 8, _hoisted_2$b)) : unref(mode) == "beautiful" ? (openBlock(), createElementBlock("div", {
|
|
192
197
|
key: 1,
|
|
193
198
|
class: normalizeClass(["status", [node.selected ? "selected" : ""]])
|
|
194
|
-
}, [node.selected ? (openBlock(), createBlock(_sfc_main$
|
|
199
|
+
}, [node.selected ? (openBlock(), createBlock(_sfc_main$A, {
|
|
195
200
|
key: 0,
|
|
196
201
|
type: "success",
|
|
197
202
|
size: 12,
|
|
@@ -210,12 +215,8 @@ var _sfc_main$x = defineComponent({
|
|
|
210
215
|
}
|
|
211
216
|
});
|
|
212
217
|
|
|
213
|
-
var addLink = href => setTimeout(link.register, 0, href);
|
|
214
|
-
|
|
215
|
-
addLink("/styles/snail.vue.vue.css");
|
|
216
|
-
|
|
217
218
|
const _hoisted_1$h = ["id"];
|
|
218
|
-
var _sfc_main$
|
|
219
|
+
var _sfc_main$y = defineComponent({
|
|
219
220
|
__name: "datepicker",
|
|
220
221
|
props: {
|
|
221
222
|
type: {},
|
|
@@ -371,7 +372,7 @@ var _sfc_main$w = defineComponent({
|
|
|
371
372
|
}
|
|
372
373
|
});
|
|
373
374
|
|
|
374
|
-
var _sfc_main$
|
|
375
|
+
var _sfc_main$x = defineComponent({
|
|
375
376
|
...{
|
|
376
377
|
name: "Footer",
|
|
377
378
|
inheritAttrs: true
|
|
@@ -402,13 +403,13 @@ var _sfc_main$v = defineComponent({
|
|
|
402
403
|
class: normalizeClass(["snail-footer", {
|
|
403
404
|
"start-divider": __props.divider
|
|
404
405
|
}, __props.align || "right"])
|
|
405
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
406
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
406
407
|
key: 0,
|
|
407
408
|
size: "max",
|
|
408
409
|
type: "default",
|
|
409
410
|
onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
|
|
410
411
|
textContent: toDisplayString(__props.cancelName || "取消")
|
|
411
|
-
}, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
412
|
+
}, null, 8, ["textContent"])) : createCommentVNode("", true), __props.confirmDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
412
413
|
key: 1,
|
|
413
414
|
size: "max",
|
|
414
415
|
type: "primary",
|
|
@@ -420,7 +421,7 @@ var _sfc_main$v = defineComponent({
|
|
|
420
421
|
});
|
|
421
422
|
|
|
422
423
|
const _hoisted_1$g = ["textContent"];
|
|
423
|
-
var _sfc_main$
|
|
424
|
+
var _sfc_main$w = defineComponent({
|
|
424
425
|
...{
|
|
425
426
|
name: "Header",
|
|
426
427
|
inheritAttrs: true
|
|
@@ -459,7 +460,7 @@ var _sfc_main$u = defineComponent({
|
|
|
459
460
|
key: 0,
|
|
460
461
|
textContent: toDisplayString(__props.title),
|
|
461
462
|
class: normalizeClass(["header-title", __props.titleAlign])
|
|
462
|
-
}, null, 10, _hoisted_1$g)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
463
|
+
}, null, 10, _hoisted_1$g)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
|
|
463
464
|
key: 1,
|
|
464
465
|
type: "close",
|
|
465
466
|
size: 22,
|
|
@@ -482,7 +483,7 @@ const _hoisted_3$8 = {
|
|
|
482
483
|
};
|
|
483
484
|
const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
|
|
484
485
|
const _hoisted_5$4 = ["title"];
|
|
485
|
-
var _sfc_main$
|
|
486
|
+
var _sfc_main$v = defineComponent({
|
|
486
487
|
...{
|
|
487
488
|
name: "Input",
|
|
488
489
|
inheritAttrs: true
|
|
@@ -547,7 +548,7 @@ var _sfc_main$t = defineComponent({
|
|
|
547
548
|
key: 0,
|
|
548
549
|
class: "validate",
|
|
549
550
|
title: validateRef.value
|
|
550
|
-
}, [createVNode(_sfc_main$
|
|
551
|
+
}, [createVNode(_sfc_main$A, {
|
|
551
552
|
type: "error",
|
|
552
553
|
size: 16,
|
|
553
554
|
color: "red"
|
|
@@ -769,7 +770,7 @@ const _hoisted_4$5 = {
|
|
|
769
770
|
const _hoisted_5$3 = ["textContent"];
|
|
770
771
|
const _hoisted_6$2 = ["title", "textContent"];
|
|
771
772
|
const _hoisted_7$1 = ["title", "textContent"];
|
|
772
|
-
var _sfc_main$
|
|
773
|
+
var _sfc_main$u = defineComponent({
|
|
773
774
|
__name: "number",
|
|
774
775
|
props: mergeModels({
|
|
775
776
|
placeholder: {},
|
|
@@ -936,13 +937,13 @@ var _sfc_main$s = defineComponent({
|
|
|
936
937
|
}, [createElementVNode("div", {
|
|
937
938
|
class: "controls default subtract",
|
|
938
939
|
onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
|
|
939
|
-
}, [createVNode(_sfc_main$
|
|
940
|
+
}, [createVNode(_sfc_main$A, {
|
|
940
941
|
type: "subtract",
|
|
941
942
|
size: 20
|
|
942
943
|
})]), createElementVNode("div", {
|
|
943
944
|
class: "controls default plus",
|
|
944
945
|
onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
|
|
945
|
-
}, [createVNode(_sfc_main$
|
|
946
|
+
}, [createVNode(_sfc_main$A, {
|
|
946
947
|
type: "plus",
|
|
947
948
|
size: 20
|
|
948
949
|
})])], 64)) : unref(controls) == "right" ? (openBlock(), createElementBlock(Fragment, {
|
|
@@ -950,14 +951,14 @@ var _sfc_main$s = defineComponent({
|
|
|
950
951
|
}, [createElementVNode("div", {
|
|
951
952
|
class: "controls right plus",
|
|
952
953
|
onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
|
|
953
|
-
}, [createVNode(_sfc_main$
|
|
954
|
+
}, [createVNode(_sfc_main$A, {
|
|
954
955
|
type: "arrow",
|
|
955
956
|
size: 20,
|
|
956
957
|
rotate: 270
|
|
957
958
|
})]), createElementVNode("div", {
|
|
958
959
|
class: "controls right subtract",
|
|
959
960
|
onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
|
|
960
|
-
}, [createVNode(_sfc_main$
|
|
961
|
+
}, [createVNode(_sfc_main$A, {
|
|
961
962
|
type: "arrow",
|
|
962
963
|
size: 20,
|
|
963
964
|
rotate: 90
|
|
@@ -981,7 +982,7 @@ var _sfc_main$s = defineComponent({
|
|
|
981
982
|
|
|
982
983
|
const _hoisted_1$d = ["placeholder", "readonly"];
|
|
983
984
|
const searchIon = "M 860.16 824.32 l -163.84 -163.84 c 102.4 -120.32 97.28 -302.08 -17.92 -414.72 c -120.32 -120.32 -314.88 -120.32 -435.2 0 c -120.32 120.32 -120.32 314.88 0 435.2 c 112.64 112.64 294.4 120.32 414.72 17.92 l 163.84 163.84 c 10.24 10.24 25.6 10.24 35.84 0 c 12.8 -12.8 12.8 -28.16 2.56 -38.4 Z M 281.6 642.56 C 181.76 542.72 181.76 381.44 281.6 281.6 c 99.84 -99.84 261.12 -99.84 360.96 0 c 99.84 99.84 99.84 261.12 0 360.96 c -99.84 102.4 -261.12 102.4 -360.96 0 Z";
|
|
984
|
-
var _sfc_main$
|
|
985
|
+
var _sfc_main$t = defineComponent({
|
|
985
986
|
...{
|
|
986
987
|
name: "Search",
|
|
987
988
|
inheritAttrs: true
|
|
@@ -1028,7 +1029,7 @@ var _sfc_main$r = defineComponent({
|
|
|
1028
1029
|
onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
|
|
1029
1030
|
}, null, 40, _hoisted_1$d), [[vModelText, textModel.value, void 0, {
|
|
1030
1031
|
trim: true
|
|
1031
|
-
}]]), createElementVNode("div", null, [createVNode(_sfc_main$
|
|
1032
|
+
}]]), createElementVNode("div", null, [createVNode(_sfc_main$A, {
|
|
1032
1033
|
class: "search-button",
|
|
1033
1034
|
type: "custom",
|
|
1034
1035
|
draw: searchIon,
|
|
@@ -1253,7 +1254,7 @@ const _hoisted_1$c = {
|
|
|
1253
1254
|
class: "snail-confirm flex-column"
|
|
1254
1255
|
};
|
|
1255
1256
|
const _hoisted_2$8 = ["innerHTML"];
|
|
1256
|
-
var _sfc_main$
|
|
1257
|
+
var _sfc_main$s = defineComponent({
|
|
1257
1258
|
...{
|
|
1258
1259
|
name: "ConfirmContainer",
|
|
1259
1260
|
inheritAttrs: true
|
|
@@ -1281,14 +1282,14 @@ var _sfc_main$q = defineComponent({
|
|
|
1281
1282
|
},
|
|
1282
1283
|
setup(__props) {
|
|
1283
1284
|
return (_ctx, _cache) => {
|
|
1284
|
-
return openBlock(), createElementBlock("div", _hoisted_1$c, [createVNode(_sfc_main$
|
|
1285
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [createVNode(_sfc_main$w, {
|
|
1285
1286
|
"use-to": "dialog",
|
|
1286
1287
|
title: __props.title || "提示",
|
|
1287
1288
|
onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
|
|
1288
1289
|
}, null, 8, ["title"]), createElementVNode("div", {
|
|
1289
1290
|
class: "confirm-body",
|
|
1290
1291
|
innerHTML: __props.message || "请确认?"
|
|
1291
|
-
}, null, 8, _hoisted_2$8), createVNode(_sfc_main$
|
|
1292
|
+
}, null, 8, _hoisted_2$8), createVNode(_sfc_main$x, {
|
|
1292
1293
|
align: "right",
|
|
1293
1294
|
"cancel-name": __props.cancelName,
|
|
1294
1295
|
"cancel-disabled": __props.cancelDisabled,
|
|
@@ -1301,7 +1302,7 @@ var _sfc_main$q = defineComponent({
|
|
|
1301
1302
|
}
|
|
1302
1303
|
});
|
|
1303
1304
|
|
|
1304
|
-
var _sfc_main$
|
|
1305
|
+
var _sfc_main$r = defineComponent({
|
|
1305
1306
|
...{
|
|
1306
1307
|
name: "Loading",
|
|
1307
1308
|
inheritAttrs: true
|
|
@@ -1340,7 +1341,7 @@ var _sfc_main$p = defineComponent({
|
|
|
1340
1341
|
}
|
|
1341
1342
|
});
|
|
1342
1343
|
|
|
1343
|
-
var _sfc_main$
|
|
1344
|
+
var _sfc_main$q = defineComponent({
|
|
1344
1345
|
...{
|
|
1345
1346
|
name: "Dynamic",
|
|
1346
1347
|
inheritAttrs: false
|
|
@@ -1364,7 +1365,7 @@ var _sfc_main$o = defineComponent({
|
|
|
1364
1365
|
const loadingComponent = defineComponent({
|
|
1365
1366
|
inheritAttrs: false,
|
|
1366
1367
|
components: {
|
|
1367
|
-
Loading: _sfc_main$
|
|
1368
|
+
Loading: _sfc_main$r
|
|
1368
1369
|
},
|
|
1369
1370
|
template: "<Loading :mask-disabled='true' />"
|
|
1370
1371
|
});
|
|
@@ -1431,7 +1432,7 @@ var _sfc_main$o = defineComponent({
|
|
|
1431
1432
|
}
|
|
1432
1433
|
});
|
|
1433
1434
|
|
|
1434
|
-
var _sfc_main$
|
|
1435
|
+
var _sfc_main$p = defineComponent({
|
|
1435
1436
|
...{
|
|
1436
1437
|
name: "DialogContainer",
|
|
1437
1438
|
inheritAttrs: true
|
|
@@ -1476,7 +1477,7 @@ var _sfc_main$n = defineComponent({
|
|
|
1476
1477
|
onClick: _cache[1] || (_cache[1] = withModifiers($event => {
|
|
1477
1478
|
__props.options.closeOnMask && unref(closePopup)();
|
|
1478
1479
|
}, ["self"]))
|
|
1479
|
-
}, [createVNode(_sfc_main$
|
|
1480
|
+
}, [createVNode(_sfc_main$q, mergeProps({
|
|
1480
1481
|
class: "dialog-body",
|
|
1481
1482
|
name: __props.options.name,
|
|
1482
1483
|
component: __props.options.component,
|
|
@@ -1491,7 +1492,7 @@ var _sfc_main$n = defineComponent({
|
|
|
1491
1492
|
}
|
|
1492
1493
|
});
|
|
1493
1494
|
|
|
1494
|
-
var _sfc_main$
|
|
1495
|
+
var _sfc_main$o = defineComponent({
|
|
1495
1496
|
...{
|
|
1496
1497
|
name: "FollowContainer",
|
|
1497
1498
|
inheritAttrs: true
|
|
@@ -1612,7 +1613,7 @@ var _sfc_main$m = defineComponent({
|
|
|
1612
1613
|
});
|
|
1613
1614
|
});
|
|
1614
1615
|
return (_ctx, _cache) => {
|
|
1615
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1616
|
+
return openBlock(), createBlock(_sfc_main$q, mergeProps({
|
|
1616
1617
|
class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1617
1618
|
style: {
|
|
1618
1619
|
"z-index": __props.zIndex
|
|
@@ -1629,7 +1630,7 @@ var _sfc_main$m = defineComponent({
|
|
|
1629
1630
|
}
|
|
1630
1631
|
});
|
|
1631
1632
|
|
|
1632
|
-
var _sfc_main$
|
|
1633
|
+
var _sfc_main$n = defineComponent({
|
|
1633
1634
|
...{
|
|
1634
1635
|
name: "PopupContainer",
|
|
1635
1636
|
inheritAttrs: true
|
|
@@ -1649,7 +1650,7 @@ var _sfc_main$l = defineComponent({
|
|
|
1649
1650
|
model = shallowRef(void 0)
|
|
1650
1651
|
} = __props.options;
|
|
1651
1652
|
return (_ctx, _cache) => {
|
|
1652
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1653
|
+
return openBlock(), createBlock(_sfc_main$q, mergeProps({
|
|
1653
1654
|
class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1654
1655
|
style: {
|
|
1655
1656
|
"z-index": __props.zIndex
|
|
@@ -1672,7 +1673,7 @@ const _hoisted_1$b = {
|
|
|
1672
1673
|
class: "icon"
|
|
1673
1674
|
};
|
|
1674
1675
|
const _hoisted_2$7 = ["innerHTML"];
|
|
1675
|
-
var _sfc_main$
|
|
1676
|
+
var _sfc_main$m = defineComponent({
|
|
1676
1677
|
...{
|
|
1677
1678
|
name: "ToastContainer",
|
|
1678
1679
|
inheritAttrs: true
|
|
@@ -1710,7 +1711,7 @@ var _sfc_main$k = defineComponent({
|
|
|
1710
1711
|
}),
|
|
1711
1712
|
onMouseenter: _cache[3] || (_cache[3] = $event => onMouseEvent(false)),
|
|
1712
1713
|
onMouseleave: _cache[4] || (_cache[4] = $event => onMouseEvent(true))
|
|
1713
|
-
}, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
1714
|
+
}, [unref(props).closeDisabled != true ? (openBlock(), createBlock(_sfc_main$A, {
|
|
1714
1715
|
key: 0,
|
|
1715
1716
|
class: "close-icon",
|
|
1716
1717
|
type: "close",
|
|
@@ -1721,7 +1722,7 @@ var _sfc_main$k = defineComponent({
|
|
|
1721
1722
|
onClick: _cache[2] || (_cache[2] = $event => {
|
|
1722
1723
|
unref(closePopup)();
|
|
1723
1724
|
})
|
|
1724
|
-
}, null, 8, ["fill"])) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$b, [createVNode(_sfc_main$
|
|
1725
|
+
}, null, 8, ["fill"])) : createCommentVNode("", true), unref(props).type ? (openBlock(), createElementBlock("div", _hoisted_1$b, [createVNode(_sfc_main$A, {
|
|
1725
1726
|
type: unref(props).type,
|
|
1726
1727
|
fill: "#707070",
|
|
1727
1728
|
size: 20
|
|
@@ -1735,7 +1736,7 @@ var _sfc_main$k = defineComponent({
|
|
|
1735
1736
|
|
|
1736
1737
|
function usePopup() {
|
|
1737
1738
|
function popup(options) {
|
|
1738
|
-
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$
|
|
1739
|
+
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$n, options);
|
|
1739
1740
|
return addScope2Scopes(scope);
|
|
1740
1741
|
}
|
|
1741
1742
|
function dialog(options) {
|
|
@@ -1768,7 +1769,7 @@ function usePopup() {
|
|
|
1768
1769
|
},
|
|
1769
1770
|
onBeforeClose: fn => hook.register("onBeforeClose", fn)
|
|
1770
1771
|
});
|
|
1771
|
-
const descriptor = openPopup(_sfc_main$
|
|
1772
|
+
const descriptor = openPopup(_sfc_main$p, options, extOptions);
|
|
1772
1773
|
scope = useAsyncScope(deferred.promise);
|
|
1773
1774
|
monitorDialog(descriptor, scope, deferred);
|
|
1774
1775
|
}
|
|
@@ -1786,14 +1787,14 @@ function usePopup() {
|
|
|
1786
1787
|
inPopup: "follow",
|
|
1787
1788
|
target
|
|
1788
1789
|
};
|
|
1789
|
-
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$
|
|
1790
|
+
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$o, options, extOptions);
|
|
1790
1791
|
}
|
|
1791
1792
|
return addScope2Scopes(scope);
|
|
1792
1793
|
}
|
|
1793
1794
|
function confirm(title, message, options) {
|
|
1794
1795
|
options = options || Object.create(null);
|
|
1795
1796
|
return dialog({
|
|
1796
|
-
component: _sfc_main$
|
|
1797
|
+
component: _sfc_main$s,
|
|
1797
1798
|
closeOnEscape: true,
|
|
1798
1799
|
props: {
|
|
1799
1800
|
...options,
|
|
@@ -1803,7 +1804,7 @@ function usePopup() {
|
|
|
1803
1804
|
});
|
|
1804
1805
|
}
|
|
1805
1806
|
function toast(type, message, options) {
|
|
1806
|
-
return popupInCustomContainer(_sfc_main$
|
|
1807
|
+
return popupInCustomContainer(_sfc_main$m, {
|
|
1807
1808
|
url: "#ToastContainer",
|
|
1808
1809
|
props: {
|
|
1809
1810
|
...(options || Object.create(null)),
|
|
@@ -1836,7 +1837,7 @@ function usePopup() {
|
|
|
1836
1837
|
},
|
|
1837
1838
|
...extOptions
|
|
1838
1839
|
});
|
|
1839
|
-
const descriptor = openPopup(container || _sfc_main$
|
|
1840
|
+
const descriptor = openPopup(container || _sfc_main$n, options, extOptions);
|
|
1840
1841
|
const scope = useAsyncScope(deferred.promise);
|
|
1841
1842
|
scope.onDestroy(() => destroyPopup(descriptor, deferred));
|
|
1842
1843
|
return scope;
|
|
@@ -1979,7 +1980,7 @@ const _hoisted_1$a = {
|
|
|
1979
1980
|
};
|
|
1980
1981
|
const _hoisted_2$6 = ["src"];
|
|
1981
1982
|
const _hoisted_3$6 = ["textContent"];
|
|
1982
|
-
var _sfc_main$
|
|
1983
|
+
var _sfc_main$l = defineComponent({
|
|
1983
1984
|
...{
|
|
1984
1985
|
name: "Empty",
|
|
1985
1986
|
inheritAttrs: true
|
|
@@ -2008,7 +2009,7 @@ const _hoisted_3$5 = {
|
|
|
2008
2009
|
key: 1,
|
|
2009
2010
|
class: "select-status"
|
|
2010
2011
|
};
|
|
2011
|
-
var _sfc_main$
|
|
2012
|
+
var _sfc_main$k = defineComponent({
|
|
2012
2013
|
...{
|
|
2013
2014
|
name: "SelectNode",
|
|
2014
2015
|
inheritAttrs: true
|
|
@@ -2053,11 +2054,11 @@ var _sfc_main$i = defineComponent({
|
|
|
2053
2054
|
}, [createElementVNode("div", {
|
|
2054
2055
|
class: "item-text ellipsis",
|
|
2055
2056
|
textContent: toDisplayString(__props.item.text)
|
|
2056
|
-
}, null, 8, _hoisted_2$5), __props.item.type == "group" ? (openBlock(), createBlock(_sfc_main$
|
|
2057
|
+
}, null, 8, _hoisted_2$5), __props.item.type == "group" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
2057
2058
|
key: 0,
|
|
2058
2059
|
type: "arrow",
|
|
2059
2060
|
color: "#8a9099"
|
|
2060
|
-
})) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$5, [createVNode(_sfc_main$
|
|
2061
|
+
})) : __props.multiple == true ? (openBlock(), createElementBlock("div", _hoisted_3$5, [createVNode(_sfc_main$A, {
|
|
2061
2062
|
type: "success",
|
|
2062
2063
|
color: "white",
|
|
2063
2064
|
size: 12
|
|
@@ -2078,7 +2079,7 @@ var _sfc_main$i = defineComponent({
|
|
|
2078
2079
|
}
|
|
2079
2080
|
});
|
|
2080
2081
|
|
|
2081
|
-
var _sfc_main$
|
|
2082
|
+
var _sfc_main$j = defineComponent({
|
|
2082
2083
|
...{
|
|
2083
2084
|
name: "Select2Popup",
|
|
2084
2085
|
inheritAttrs: true
|
|
@@ -2250,13 +2251,13 @@ var _sfc_main$h = defineComponent({
|
|
|
2250
2251
|
key: 0
|
|
2251
2252
|
}, [createTextVNode(" 暂无选项 ")], 64)) : (openBlock(), createElementBlock(Fragment, {
|
|
2252
2253
|
key: 1
|
|
2253
|
-
}, [__props.search ? (openBlock(), createBlock(_sfc_main$
|
|
2254
|
+
}, [__props.search ? (openBlock(), createBlock(_sfc_main$t, mergeProps({
|
|
2254
2255
|
key: 0
|
|
2255
2256
|
}, __props.search, {
|
|
2256
2257
|
onSearch,
|
|
2257
2258
|
key: "select-search"
|
|
2258
2259
|
}), null, 16)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(itemsRef.value, item => {
|
|
2259
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2260
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
2260
2261
|
key: unref(context).getKey(item),
|
|
2261
2262
|
multiple: __props.multiple,
|
|
2262
2263
|
item,
|
|
@@ -2265,7 +2266,7 @@ var _sfc_main$h = defineComponent({
|
|
|
2265
2266
|
onEnter: onEnterSelectNode,
|
|
2266
2267
|
onClick: onClickSelectNode
|
|
2267
2268
|
}, null, 8, ["multiple", "item", "context"]);
|
|
2268
|
-
}), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$
|
|
2269
|
+
}), 128)), itemsRef.value.length == 0 ? (openBlock(), createBlock(_sfc_main$l, {
|
|
2269
2270
|
key: 1,
|
|
2270
2271
|
message: "无结果"
|
|
2271
2272
|
})) : createCommentVNode("", true), showClearButtonRef.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -2288,9 +2289,9 @@ const _hoisted_4$4 = {
|
|
|
2288
2289
|
class: "placeholder"
|
|
2289
2290
|
};
|
|
2290
2291
|
onAppCreated((app, type) => {
|
|
2291
|
-
type == "popup" && app.component("SelectPopup", _sfc_main$
|
|
2292
|
+
type == "popup" && app.component("SelectPopup", _sfc_main$j);
|
|
2292
2293
|
});
|
|
2293
|
-
var _sfc_main$
|
|
2294
|
+
var _sfc_main$i = defineComponent({
|
|
2294
2295
|
...{
|
|
2295
2296
|
name: "Select",
|
|
2296
2297
|
inheritAttrs: true
|
|
@@ -2430,7 +2431,7 @@ var _sfc_main$g = defineComponent({
|
|
|
2430
2431
|
key: 1,
|
|
2431
2432
|
class: "placeholder",
|
|
2432
2433
|
textContent: toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
|
|
2433
|
-
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$
|
|
2434
|
+
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (openBlock(), createBlock(_sfc_main$A, {
|
|
2434
2435
|
key: 2,
|
|
2435
2436
|
type: "arrow",
|
|
2436
2437
|
size: 24,
|
|
@@ -2443,7 +2444,7 @@ var _sfc_main$g = defineComponent({
|
|
|
2443
2444
|
}
|
|
2444
2445
|
});
|
|
2445
2446
|
|
|
2446
|
-
var _sfc_main$
|
|
2447
|
+
var _sfc_main$h = defineComponent({
|
|
2447
2448
|
...{
|
|
2448
2449
|
name: "Switch",
|
|
2449
2450
|
inheritAttrs: true
|
|
@@ -2493,7 +2494,7 @@ var _sfc_main$f = defineComponent({
|
|
|
2493
2494
|
});
|
|
2494
2495
|
|
|
2495
2496
|
const _hoisted_1$7 = ["readonly", "placeholder", "rows"];
|
|
2496
|
-
var _sfc_main$
|
|
2497
|
+
var _sfc_main$g = defineComponent({
|
|
2497
2498
|
...{
|
|
2498
2499
|
name: "Textarea"
|
|
2499
2500
|
},
|
|
@@ -2558,6 +2559,81 @@ var _sfc_main$e = defineComponent({
|
|
|
2558
2559
|
}
|
|
2559
2560
|
});
|
|
2560
2561
|
|
|
2562
|
+
var _sfc_main$f = defineComponent({
|
|
2563
|
+
__name: "transitions",
|
|
2564
|
+
props: {
|
|
2565
|
+
group: {
|
|
2566
|
+
type: Boolean
|
|
2567
|
+
},
|
|
2568
|
+
duration: {},
|
|
2569
|
+
customClass: {},
|
|
2570
|
+
effect: {}
|
|
2571
|
+
},
|
|
2572
|
+
setup(__props) {
|
|
2573
|
+
const props = __props;
|
|
2574
|
+
const classNames = computed(() => {
|
|
2575
|
+
const array = [props.customClass || "snail-transition"];
|
|
2576
|
+
if (isArray(props.effect)) {
|
|
2577
|
+
props.effect.length > 0 ? array.push(...props.effect) : array.push("fade");
|
|
2578
|
+
} else {
|
|
2579
|
+
array.push(props.effect || "fade");
|
|
2580
|
+
}
|
|
2581
|
+
props.duration === 0 && array.push("no-duration");
|
|
2582
|
+
return array.join(" ");
|
|
2583
|
+
});
|
|
2584
|
+
return (_ctx, _cache) => {
|
|
2585
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.group ? TransitionGroup : Transition), {
|
|
2586
|
+
appear: "",
|
|
2587
|
+
duration: __props.duration,
|
|
2588
|
+
"enter-active-class": `${classNames.value} enter-active`,
|
|
2589
|
+
"enter-from-class": `${classNames.value} enter-from`,
|
|
2590
|
+
"enter-to-class": `${classNames.value} enter-to`,
|
|
2591
|
+
"leave-active-class": `${classNames.value} leave-active`,
|
|
2592
|
+
"leave-from-class": `${classNames.value} leave-from`,
|
|
2593
|
+
"leave-to-class": `${classNames.value} leave-to`
|
|
2594
|
+
}, {
|
|
2595
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
2596
|
+
_: 3
|
|
2597
|
+
}, 8, ["duration", "enter-active-class", "enter-from-class", "enter-to-class", "leave-active-class", "leave-from-class", "leave-to-class"]);
|
|
2598
|
+
};
|
|
2599
|
+
}
|
|
2600
|
+
});
|
|
2601
|
+
|
|
2602
|
+
var _sfc_main$e = defineComponent({
|
|
2603
|
+
__name: "element",
|
|
2604
|
+
props: {
|
|
2605
|
+
tag: {},
|
|
2606
|
+
show: {
|
|
2607
|
+
type: Boolean
|
|
2608
|
+
},
|
|
2609
|
+
showMode: {},
|
|
2610
|
+
transition: {},
|
|
2611
|
+
children: {}
|
|
2612
|
+
},
|
|
2613
|
+
setup(__props) {
|
|
2614
|
+
return (_ctx, _cache) => {
|
|
2615
|
+
return openBlock(), createBlock(_sfc_main$f, mergeProps({
|
|
2616
|
+
group: false
|
|
2617
|
+
}, __props.transition, {
|
|
2618
|
+
duration: __props.transition ? __props.transition.duration : 0
|
|
2619
|
+
}), {
|
|
2620
|
+
default: withCtx(() => [(__props.showMode == "vShow" ? true : __props.show) ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(correctString)(__props.tag, "div", true)), {
|
|
2621
|
+
key: 0
|
|
2622
|
+
}, {
|
|
2623
|
+
default: withCtx(() => [createVNode(_sfc_main$f, mergeProps(__props.children, {
|
|
2624
|
+
duration: __props.children ? __props.children.duration : 0
|
|
2625
|
+
}), {
|
|
2626
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
2627
|
+
_: 3
|
|
2628
|
+
}, 16, ["duration"])]),
|
|
2629
|
+
_: 3
|
|
2630
|
+
}, 512)), [[vShow, __props.showMode == "vShow" ? __props.show : true]]) : createCommentVNode("", true)]),
|
|
2631
|
+
_: 3
|
|
2632
|
+
}, 16, ["duration"]);
|
|
2633
|
+
};
|
|
2634
|
+
}
|
|
2635
|
+
});
|
|
2636
|
+
|
|
2561
2637
|
const _hoisted_1$6 = {
|
|
2562
2638
|
class: "fold-header"
|
|
2563
2639
|
};
|
|
@@ -2648,7 +2724,7 @@ var _sfc_main$d = defineComponent({
|
|
|
2648
2724
|
key: 0,
|
|
2649
2725
|
class: "subtitle ellipsis",
|
|
2650
2726
|
textContent: toDisplayString(__props.subtitle)
|
|
2651
|
-
}, null, 8, _hoisted_3$3)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createVNode(_sfc_main$
|
|
2727
|
+
}, null, 8, _hoisted_3$3)) : createCommentVNode("", true), __props.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$3, [createVNode(_sfc_main$A, {
|
|
2652
2728
|
type: "arrow",
|
|
2653
2729
|
title: statusModel.value == "expand" ? "收起" : "展开",
|
|
2654
2730
|
onClick: onStatusClick
|
|
@@ -2873,6 +2949,36 @@ var _sfc_main$b = defineComponent({
|
|
|
2873
2949
|
});
|
|
2874
2950
|
|
|
2875
2951
|
var _sfc_main$a = defineComponent({
|
|
2952
|
+
__name: "motion",
|
|
2953
|
+
props: {
|
|
2954
|
+
enter: {},
|
|
2955
|
+
leave: {},
|
|
2956
|
+
multiple: {
|
|
2957
|
+
type: Boolean
|
|
2958
|
+
},
|
|
2959
|
+
duration: {},
|
|
2960
|
+
mode: {}
|
|
2961
|
+
},
|
|
2962
|
+
setup(__props) {
|
|
2963
|
+
const props = __props;
|
|
2964
|
+
const duration = correctNumber(props.duration, 200);
|
|
2965
|
+
return (_ctx, _cache) => {
|
|
2966
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.multiple ? TransitionGroup : Transition), {
|
|
2967
|
+
appear: "",
|
|
2968
|
+
type: "animation",
|
|
2969
|
+
duration: unref(duration),
|
|
2970
|
+
mode: __props.mode,
|
|
2971
|
+
"enter-active-class": unref(correctString)(props.enter, "fade-in", true),
|
|
2972
|
+
"leave-active-class": unref(correctString)(props.leave, "fade-out", true)
|
|
2973
|
+
}, {
|
|
2974
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
2975
|
+
_: 3
|
|
2976
|
+
}, 8, ["duration", "mode", "enter-active-class", "leave-active-class"]);
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
});
|
|
2980
|
+
|
|
2981
|
+
var _sfc_main$9 = defineComponent({
|
|
2876
2982
|
...{
|
|
2877
2983
|
name: "Sort",
|
|
2878
2984
|
inheritAttrs: true
|
|
@@ -2976,7 +3082,7 @@ var _sfc_main$a = defineComponent({
|
|
|
2976
3082
|
const _hoisted_1$5 = {
|
|
2977
3083
|
class: "table-body"
|
|
2978
3084
|
};
|
|
2979
|
-
var _sfc_main$
|
|
3085
|
+
var _sfc_main$8 = defineComponent({
|
|
2980
3086
|
...{
|
|
2981
3087
|
name: "Table",
|
|
2982
3088
|
inheritAttrs: true
|
|
@@ -3021,7 +3127,7 @@ var _sfc_main$9 = defineComponent({
|
|
|
3021
3127
|
}
|
|
3022
3128
|
});
|
|
3023
3129
|
|
|
3024
|
-
var _sfc_main$
|
|
3130
|
+
var _sfc_main$7 = defineComponent({
|
|
3025
3131
|
...{
|
|
3026
3132
|
name: "TableRow",
|
|
3027
3133
|
inheritAttrs: true
|
|
@@ -3044,7 +3150,7 @@ var _sfc_main$8 = defineComponent({
|
|
|
3044
3150
|
}
|
|
3045
3151
|
});
|
|
3046
3152
|
|
|
3047
|
-
var _sfc_main$
|
|
3153
|
+
var _sfc_main$6 = defineComponent({
|
|
3048
3154
|
...{
|
|
3049
3155
|
name: "TableCol",
|
|
3050
3156
|
inheritAttrs: true
|
|
@@ -3090,46 +3196,6 @@ var _sfc_main$7 = defineComponent({
|
|
|
3090
3196
|
}
|
|
3091
3197
|
});
|
|
3092
3198
|
|
|
3093
|
-
var _sfc_main$6 = defineComponent({
|
|
3094
|
-
__name: "transitions",
|
|
3095
|
-
props: {
|
|
3096
|
-
group: {
|
|
3097
|
-
type: Boolean
|
|
3098
|
-
},
|
|
3099
|
-
duration: {},
|
|
3100
|
-
customClass: {},
|
|
3101
|
-
effect: {}
|
|
3102
|
-
},
|
|
3103
|
-
setup(__props) {
|
|
3104
|
-
const props = __props;
|
|
3105
|
-
const classNames = computed(() => {
|
|
3106
|
-
const array = [props.customClass || "snail-transition"];
|
|
3107
|
-
if (isArray(props.effect)) {
|
|
3108
|
-
props.effect.length > 0 ? array.push(...props.effect) : array.push("fade");
|
|
3109
|
-
} else {
|
|
3110
|
-
array.push(props.effect || "fade");
|
|
3111
|
-
}
|
|
3112
|
-
console.log(array);
|
|
3113
|
-
return array.join(" ");
|
|
3114
|
-
});
|
|
3115
|
-
return (_ctx, _cache) => {
|
|
3116
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.group ? TransitionGroup : Transition), mergeProps(_ctx.$attrs, {
|
|
3117
|
-
appear: "",
|
|
3118
|
-
duration: __props.duration,
|
|
3119
|
-
"enter-active-class": `${classNames.value} enter-active`,
|
|
3120
|
-
"enter-from-class": `${classNames.value} enter-from`,
|
|
3121
|
-
"enter-to-class": `${classNames.value} enter-to`,
|
|
3122
|
-
"leave-active-class": `${classNames.value} leave-active`,
|
|
3123
|
-
"leave-from-class": `${classNames.value} leave-from`,
|
|
3124
|
-
"leave-to-class": `${classNames.value} leave-to`
|
|
3125
|
-
}), {
|
|
3126
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
3127
|
-
_: 3
|
|
3128
|
-
}, 16, ["duration", "enter-active-class", "enter-from-class", "enter-to-class", "leave-active-class", "leave-from-class", "leave-to-class"]);
|
|
3129
|
-
};
|
|
3130
|
-
}
|
|
3131
|
-
});
|
|
3132
|
-
|
|
3133
3199
|
const _hoisted_1$4 = {
|
|
3134
3200
|
key: 0,
|
|
3135
3201
|
class: "node-fold"
|
|
@@ -3261,7 +3327,7 @@ var _sfc_main$5 = defineComponent({
|
|
|
3261
3327
|
key: 1
|
|
3262
3328
|
}, [_cache[4] || (_cache[4] = createElementVNode("div", {
|
|
3263
3329
|
class: "indent"
|
|
3264
|
-
}, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$4, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$
|
|
3330
|
+
}, null, -1)), __props.options.foldDisabled != true ? (openBlock(), createElementBlock("div", _hoisted_1$4, [showChildrenRef.value ? (openBlock(), createBlock(_sfc_main$A, {
|
|
3265
3331
|
key: 0,
|
|
3266
3332
|
class: normalizeClass(statusRef.value),
|
|
3267
3333
|
type: "custom",
|
|
@@ -3330,7 +3396,7 @@ var _sfc_main$4 = defineComponent({
|
|
|
3330
3396
|
emits("click", node, parents);
|
|
3331
3397
|
}
|
|
3332
3398
|
return (_ctx, _cache) => {
|
|
3333
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [__props.search ? (openBlock(), createBlock(_sfc_main$
|
|
3399
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [__props.search ? (openBlock(), createBlock(_sfc_main$t, mergeProps({
|
|
3334
3400
|
key: 0
|
|
3335
3401
|
}, __props.search, {
|
|
3336
3402
|
onSearch
|
|
@@ -3381,7 +3447,7 @@ var _sfc_main$3 = defineComponent({
|
|
|
3381
3447
|
return (_ctx, _cache) => {
|
|
3382
3448
|
return openBlock(), createElementBlock("div", {
|
|
3383
3449
|
class: normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
|
|
3384
|
-
}, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
3450
|
+
}, [__props.header && __props.header.disabled != true ? (openBlock(), createBlock(_sfc_main$w, mergeProps({
|
|
3385
3451
|
key: 0
|
|
3386
3452
|
}, __props.header || {
|
|
3387
3453
|
useTo: "dialog",
|
|
@@ -3396,7 +3462,7 @@ var _sfc_main$3 = defineComponent({
|
|
|
3396
3462
|
}), {
|
|
3397
3463
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
3398
3464
|
_: 3
|
|
3399
|
-
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
3465
|
+
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (openBlock(), createBlock(_sfc_main$x, mergeProps({
|
|
3400
3466
|
key: 1
|
|
3401
3467
|
}, __props.footer || {}, {
|
|
3402
3468
|
onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
|
|
@@ -3410,7 +3476,7 @@ function mount(target, options, onDestroyed) {
|
|
|
3410
3476
|
mustObject(options, "options");
|
|
3411
3477
|
target instanceof HTMLElement || throwError("target must be a HTMLElement");
|
|
3412
3478
|
target.classList.add("snail-app");
|
|
3413
|
-
const app = createApp(_sfc_main$
|
|
3479
|
+
const app = createApp(_sfc_main$q, options);
|
|
3414
3480
|
triggerAppCreated(app);
|
|
3415
3481
|
app.mount(target);
|
|
3416
3482
|
const scope = useScope().onDestroy(() => app.unmount());
|
|
@@ -3418,6 +3484,54 @@ function mount(target, options, onDestroyed) {
|
|
|
3418
3484
|
return scope;
|
|
3419
3485
|
}
|
|
3420
3486
|
|
|
3487
|
+
const MOTION = Object.freeze({
|
|
3488
|
+
"fade": {
|
|
3489
|
+
enter: "fade-in",
|
|
3490
|
+
leave: "fade-out"
|
|
3491
|
+
},
|
|
3492
|
+
"scale": {
|
|
3493
|
+
enter: "scale-in",
|
|
3494
|
+
leave: "scale-out"
|
|
3495
|
+
},
|
|
3496
|
+
"rotate": {
|
|
3497
|
+
enter: "rotate-in",
|
|
3498
|
+
leave: "rotate-out"
|
|
3499
|
+
},
|
|
3500
|
+
"top": {
|
|
3501
|
+
enter: "top-in",
|
|
3502
|
+
leave: "top-out"
|
|
3503
|
+
},
|
|
3504
|
+
"topBottom": {
|
|
3505
|
+
enter: "top-in",
|
|
3506
|
+
leave: "bottom-out"
|
|
3507
|
+
},
|
|
3508
|
+
"bottom": {
|
|
3509
|
+
enter: "bottom-in",
|
|
3510
|
+
leave: "bottom-out"
|
|
3511
|
+
},
|
|
3512
|
+
"bottomTop": {
|
|
3513
|
+
enter: "bottom-in",
|
|
3514
|
+
leave: "top-out"
|
|
3515
|
+
},
|
|
3516
|
+
"left": {
|
|
3517
|
+
enter: "left-in",
|
|
3518
|
+
leave: "left-out"
|
|
3519
|
+
},
|
|
3520
|
+
"leftRight": {
|
|
3521
|
+
enter: "left-in",
|
|
3522
|
+
leave: "right-out"
|
|
3523
|
+
},
|
|
3524
|
+
"right": {
|
|
3525
|
+
enter: "right-in",
|
|
3526
|
+
leave: "right-out"
|
|
3527
|
+
},
|
|
3528
|
+
"rightLeft": {
|
|
3529
|
+
enter: "right-in",
|
|
3530
|
+
leave: "left-out"
|
|
3531
|
+
}
|
|
3532
|
+
});
|
|
3533
|
+
for (var key in MOTION) hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
|
|
3534
|
+
|
|
3421
3535
|
function initStepByFormat(format) {
|
|
3422
3536
|
switch (format) {
|
|
3423
3537
|
case "yyyy":
|
|
@@ -3685,7 +3799,7 @@ var _sfc_main$2 = defineComponent({
|
|
|
3685
3799
|
}]),
|
|
3686
3800
|
mode: "vertical"
|
|
3687
3801
|
}, createSlots({
|
|
3688
|
-
main: withCtx(() => [createVNode(_sfc_main$
|
|
3802
|
+
main: withCtx(() => [createVNode(_sfc_main$f, {
|
|
3689
3803
|
group: true,
|
|
3690
3804
|
effect: "down-up"
|
|
3691
3805
|
}, {
|
|
@@ -3725,19 +3839,19 @@ var _sfc_main$2 = defineComponent({
|
|
|
3725
3839
|
_: 2
|
|
3726
3840
|
}, [__props.toolbarDisabled != true ? {
|
|
3727
3841
|
name: "bottom",
|
|
3728
|
-
fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
3842
|
+
fn: withCtx(() => [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
3729
3843
|
key: 0,
|
|
3730
3844
|
type: "link",
|
|
3731
3845
|
size: "small",
|
|
3732
3846
|
textContent: "清空",
|
|
3733
3847
|
onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
|
|
3734
|
-
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
3848
|
+
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
3735
3849
|
key: 1,
|
|
3736
3850
|
type: "link",
|
|
3737
3851
|
size: "small",
|
|
3738
3852
|
textContent: "现在",
|
|
3739
3853
|
onClick: _cache[1] || (_cache[1] = $event => rebuildItems(unref(getTimeValue)(new Date())))
|
|
3740
|
-
})) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
3854
|
+
})) : createCommentVNode("", true), createVNode(_sfc_main$B, {
|
|
3741
3855
|
type: "link",
|
|
3742
3856
|
size: "small",
|
|
3743
3857
|
textContent: "确定",
|
|
@@ -3988,7 +4102,7 @@ var _sfc_main$1 = defineComponent({
|
|
|
3988
4102
|
height: "30px"
|
|
3989
4103
|
}
|
|
3990
4104
|
}, createSlots({
|
|
3991
|
-
top: withCtx(() => [createVNode(_sfc_main$
|
|
4105
|
+
top: withCtx(() => [createVNode(_sfc_main$A, {
|
|
3992
4106
|
type: "arrow",
|
|
3993
4107
|
rotate: 180,
|
|
3994
4108
|
size: 26,
|
|
@@ -4007,7 +4121,7 @@ var _sfc_main$1 = defineComponent({
|
|
|
4007
4121
|
key: 0,
|
|
4008
4122
|
textContent: toDisplayString(`${dateRef.value.month}月`),
|
|
4009
4123
|
onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
|
|
4010
|
-
}, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$
|
|
4124
|
+
}, null, 8, _hoisted_3)) : createCommentVNode("", true)], 64))], 2), createVNode(_sfc_main$A, {
|
|
4011
4125
|
type: "arrow",
|
|
4012
4126
|
size: 26,
|
|
4013
4127
|
onClick: _cache[3] || (_cache[3] = $event => buildPickerItems(stepRef.value, 1))
|
|
@@ -4072,19 +4186,19 @@ var _sfc_main$1 = defineComponent({
|
|
|
4072
4186
|
onClick: onSelectTime
|
|
4073
4187
|
}, null, 10, _hoisted_8)) : createCommentVNode("", true), __props.toolbarDisabled != true ? (openBlock(), createElementBlock(Fragment, {
|
|
4074
4188
|
key: 1
|
|
4075
|
-
}, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4189
|
+
}, [__props.clearDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
4076
4190
|
key: 0,
|
|
4077
4191
|
type: "link",
|
|
4078
4192
|
size: "small",
|
|
4079
4193
|
textContent: "清空",
|
|
4080
4194
|
onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), unref(inPopup) && __props.closePopup("")))
|
|
4081
|
-
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$
|
|
4195
|
+
})) : createCommentVNode("", true), __props.nowDisabled != true ? (openBlock(), createBlock(_sfc_main$B, {
|
|
4082
4196
|
key: 1,
|
|
4083
4197
|
type: "link",
|
|
4084
4198
|
size: "small",
|
|
4085
4199
|
textContent: "现在",
|
|
4086
4200
|
onClick: onNow
|
|
4087
|
-
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
4201
|
+
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), createVNode(_sfc_main$B, {
|
|
4088
4202
|
type: "link",
|
|
4089
4203
|
size: "small",
|
|
4090
4204
|
textContent: "确定",
|
|
@@ -4235,12 +4349,12 @@ var _sfc_main = defineComponent({
|
|
|
4235
4349
|
onTouchstart: onStartDrag,
|
|
4236
4350
|
onTouchmove: onDragMove,
|
|
4237
4351
|
onTouchend: onDragEnd
|
|
4238
|
-
}, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$
|
|
4352
|
+
}, [dragInfoRef.value.status == "success" ? (openBlock(), createBlock(_sfc_main$A, {
|
|
4239
4353
|
key: 0,
|
|
4240
4354
|
type: "success",
|
|
4241
4355
|
size: 20,
|
|
4242
4356
|
color: "white"
|
|
4243
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
4357
|
+
})) : (openBlock(), createBlock(_sfc_main$A, {
|
|
4244
4358
|
key: 1,
|
|
4245
4359
|
type: "custom",
|
|
4246
4360
|
size: 20,
|
|
@@ -4252,36 +4366,38 @@ var _sfc_main = defineComponent({
|
|
|
4252
4366
|
});
|
|
4253
4367
|
|
|
4254
4368
|
const components = {
|
|
4255
|
-
Button: _sfc_main$
|
|
4256
|
-
Choose: _sfc_main$
|
|
4257
|
-
DatePicker: _sfc_main$
|
|
4258
|
-
Footer: _sfc_main$
|
|
4259
|
-
Header: _sfc_main$
|
|
4260
|
-
Icon: _sfc_main$
|
|
4261
|
-
Input: _sfc_main$
|
|
4262
|
-
Number: _sfc_main$
|
|
4263
|
-
Search: _sfc_main$
|
|
4264
|
-
Select: _sfc_main$
|
|
4265
|
-
Switch: _sfc_main$
|
|
4266
|
-
Textarea: _sfc_main$
|
|
4267
|
-
Dynamic: _sfc_main$
|
|
4369
|
+
Button: _sfc_main$B,
|
|
4370
|
+
Choose: _sfc_main$z,
|
|
4371
|
+
DatePicker: _sfc_main$y,
|
|
4372
|
+
Footer: _sfc_main$x,
|
|
4373
|
+
Header: _sfc_main$w,
|
|
4374
|
+
Icon: _sfc_main$A,
|
|
4375
|
+
Input: _sfc_main$v,
|
|
4376
|
+
Number: _sfc_main$u,
|
|
4377
|
+
Search: _sfc_main$t,
|
|
4378
|
+
Select: _sfc_main$i,
|
|
4379
|
+
Switch: _sfc_main$h,
|
|
4380
|
+
Textarea: _sfc_main$g,
|
|
4381
|
+
Dynamic: _sfc_main$q,
|
|
4382
|
+
Element: _sfc_main$e,
|
|
4268
4383
|
Fold: _sfc_main$d,
|
|
4384
|
+
Motion: _sfc_main$a,
|
|
4269
4385
|
Layout: _sfc_main$b,
|
|
4270
4386
|
Scroll: _sfc_main$c,
|
|
4271
|
-
Sort: _sfc_main$
|
|
4272
|
-
Table: _sfc_main$
|
|
4273
|
-
TableRow: _sfc_main$
|
|
4274
|
-
TableCol: _sfc_main$
|
|
4275
|
-
Transitions: _sfc_main$
|
|
4387
|
+
Sort: _sfc_main$9,
|
|
4388
|
+
Table: _sfc_main$8,
|
|
4389
|
+
TableRow: _sfc_main$7,
|
|
4390
|
+
TableCol: _sfc_main$6,
|
|
4391
|
+
Transitions: _sfc_main$f,
|
|
4276
4392
|
Tree: _sfc_main$4,
|
|
4277
4393
|
Wrapper: _sfc_main$3,
|
|
4278
4394
|
DragVerify: _sfc_main,
|
|
4279
|
-
Empty: _sfc_main$
|
|
4280
|
-
Loading: _sfc_main$
|
|
4395
|
+
Empty: _sfc_main$l,
|
|
4396
|
+
Loading: _sfc_main$r
|
|
4281
4397
|
};
|
|
4282
4398
|
|
|
4283
4399
|
onMountScope(scope => {
|
|
4284
4400
|
getCurrentScope() && onScopeDispose(scope.destroy);
|
|
4285
4401
|
});
|
|
4286
4402
|
|
|
4287
|
-
export { components, getSvgDraw, mount, onAppCreated, triggerAppCreated, usePicker, usePopup, useReactive, useTreeContext };
|
|
4403
|
+
export { MOTION, components, getSvgDraw, mount, onAppCreated, triggerAppCreated, usePicker, usePopup, useReactive, useTreeContext };
|