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.umd.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
})(this, (function (exports, vue, snail_core, snail_view) { 'use strict';
|
|
7
7
|
|
|
8
8
|
const _hoisted_1$k = ["title"];
|
|
9
|
-
var _sfc_main$
|
|
9
|
+
var _sfc_main$B = vue.defineComponent({
|
|
10
10
|
...{
|
|
11
11
|
name: "Button",
|
|
12
12
|
inheritAttrs: true
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
+
var addLink = href => setTimeout(snail_view.link.register, 0, href);
|
|
31
|
+
|
|
32
|
+
addLink("/styles/snail.vue.vue.css");
|
|
33
|
+
|
|
30
34
|
function getSvgDraw(iconType, draw) {
|
|
31
35
|
switch (iconType) {
|
|
32
36
|
case "success":
|
|
@@ -65,10 +69,10 @@
|
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
|
-
const _hoisted_1$j = ["width", "height"];
|
|
72
|
+
const _hoisted_1$j = ["viewBox", "width", "height"];
|
|
69
73
|
const _hoisted_2$c = ["textContent"];
|
|
70
74
|
const _hoisted_3$a = ["fill", "stroke", "stroke-width", "d"];
|
|
71
|
-
var _sfc_main$
|
|
75
|
+
var _sfc_main$A = vue.defineComponent({
|
|
72
76
|
...{
|
|
73
77
|
name: "Icon",
|
|
74
78
|
inheritAttrs: true
|
|
@@ -77,6 +81,7 @@
|
|
|
77
81
|
props: {
|
|
78
82
|
title: {},
|
|
79
83
|
type: {},
|
|
84
|
+
viewBox: {},
|
|
80
85
|
color: {},
|
|
81
86
|
hoverColor: {},
|
|
82
87
|
size: {},
|
|
@@ -90,7 +95,7 @@
|
|
|
90
95
|
return (_ctx, _cache) => {
|
|
91
96
|
return vue.openBlock(), vue.createElementBlock("svg", {
|
|
92
97
|
class: vue.normalizeClass(["snail-icon", __props.type]),
|
|
93
|
-
viewBox: "0 0 1024 1024",
|
|
98
|
+
viewBox: vue.unref(snail_core.correctString)(__props.viewBox, "0 0 1024 1024", false),
|
|
94
99
|
style: vue.normalizeStyle(__props.rotate ? `transform: rotate(${__props.rotate}deg);` : ""),
|
|
95
100
|
width: __props.size || 24,
|
|
96
101
|
height: __props.size || 24,
|
|
@@ -114,7 +119,7 @@
|
|
|
114
119
|
const _hoisted_2$b = ["type", "checked"];
|
|
115
120
|
const _hoisted_3$9 = ["textContent"];
|
|
116
121
|
const _hoisted_4$7 = ["textContent"];
|
|
117
|
-
var _sfc_main$
|
|
122
|
+
var _sfc_main$z = vue.defineComponent({
|
|
118
123
|
...{
|
|
119
124
|
name: "Choose",
|
|
120
125
|
inheritAttrs: true
|
|
@@ -193,7 +198,7 @@
|
|
|
193
198
|
}, null, 8, _hoisted_2$b)) : vue.unref(mode) == "beautiful" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
194
199
|
key: 1,
|
|
195
200
|
class: vue.normalizeClass(["status", [node.selected ? "selected" : ""]])
|
|
196
|
-
}, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
201
|
+
}, [node.selected ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
197
202
|
key: 0,
|
|
198
203
|
type: "success",
|
|
199
204
|
size: 12,
|
|
@@ -212,12 +217,8 @@
|
|
|
212
217
|
}
|
|
213
218
|
});
|
|
214
219
|
|
|
215
|
-
var addLink = href => setTimeout(snail_view.link.register, 0, href);
|
|
216
|
-
|
|
217
|
-
addLink("/styles/snail.vue.vue.css");
|
|
218
|
-
|
|
219
220
|
const _hoisted_1$h = ["id"];
|
|
220
|
-
var _sfc_main$
|
|
221
|
+
var _sfc_main$y = vue.defineComponent({
|
|
221
222
|
__name: "datepicker",
|
|
222
223
|
props: {
|
|
223
224
|
type: {},
|
|
@@ -373,7 +374,7 @@
|
|
|
373
374
|
}
|
|
374
375
|
});
|
|
375
376
|
|
|
376
|
-
var _sfc_main$
|
|
377
|
+
var _sfc_main$x = vue.defineComponent({
|
|
377
378
|
...{
|
|
378
379
|
name: "Footer",
|
|
379
380
|
inheritAttrs: true
|
|
@@ -404,13 +405,13 @@
|
|
|
404
405
|
class: vue.normalizeClass(["snail-footer", {
|
|
405
406
|
"start-divider": __props.divider
|
|
406
407
|
}, __props.align || "right"])
|
|
407
|
-
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
408
|
+
}, [vue.renderSlot(_ctx.$slots, "default", {}, () => [__props.cancelDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
408
409
|
key: 0,
|
|
409
410
|
size: "max",
|
|
410
411
|
type: "default",
|
|
411
412
|
onClick: _cache[0] || (_cache[0] = $event => emits("cancel")),
|
|
412
413
|
textContent: vue.toDisplayString(__props.cancelName || "取消")
|
|
413
|
-
}, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
414
|
+
}, null, 8, ["textContent"])) : vue.createCommentVNode("", true), __props.confirmDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
414
415
|
key: 1,
|
|
415
416
|
size: "max",
|
|
416
417
|
type: "primary",
|
|
@@ -422,7 +423,7 @@
|
|
|
422
423
|
});
|
|
423
424
|
|
|
424
425
|
const _hoisted_1$g = ["textContent"];
|
|
425
|
-
var _sfc_main$
|
|
426
|
+
var _sfc_main$w = vue.defineComponent({
|
|
426
427
|
...{
|
|
427
428
|
name: "Header",
|
|
428
429
|
inheritAttrs: true
|
|
@@ -461,7 +462,7 @@
|
|
|
461
462
|
key: 0,
|
|
462
463
|
textContent: vue.toDisplayString(__props.title),
|
|
463
464
|
class: vue.normalizeClass(["header-title", __props.titleAlign])
|
|
464
|
-
}, null, 10, _hoisted_1$g)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
465
|
+
}, null, 10, _hoisted_1$g)) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default"), __props.closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
465
466
|
key: 1,
|
|
466
467
|
type: "close",
|
|
467
468
|
size: 22,
|
|
@@ -484,7 +485,7 @@
|
|
|
484
485
|
};
|
|
485
486
|
const _hoisted_4$6 = ["type", "value", "readonly", "placeholder", "title"];
|
|
486
487
|
const _hoisted_5$4 = ["title"];
|
|
487
|
-
var _sfc_main$
|
|
488
|
+
var _sfc_main$v = vue.defineComponent({
|
|
488
489
|
...{
|
|
489
490
|
name: "Input",
|
|
490
491
|
inheritAttrs: true
|
|
@@ -549,7 +550,7 @@
|
|
|
549
550
|
key: 0,
|
|
550
551
|
class: "validate",
|
|
551
552
|
title: validateRef.value
|
|
552
|
-
}, [vue.createVNode(_sfc_main$
|
|
553
|
+
}, [vue.createVNode(_sfc_main$A, {
|
|
553
554
|
type: "error",
|
|
554
555
|
size: 16,
|
|
555
556
|
color: "red"
|
|
@@ -771,7 +772,7 @@
|
|
|
771
772
|
const _hoisted_5$3 = ["textContent"];
|
|
772
773
|
const _hoisted_6$2 = ["title", "textContent"];
|
|
773
774
|
const _hoisted_7$1 = ["title", "textContent"];
|
|
774
|
-
var _sfc_main$
|
|
775
|
+
var _sfc_main$u = vue.defineComponent({
|
|
775
776
|
__name: "number",
|
|
776
777
|
props: vue.mergeModels({
|
|
777
778
|
placeholder: {},
|
|
@@ -938,13 +939,13 @@
|
|
|
938
939
|
}, [vue.createElementVNode("div", {
|
|
939
940
|
class: "controls default subtract",
|
|
940
941
|
onClick: _cache[4] || (_cache[4] = $event => onStepClick(false))
|
|
941
|
-
}, [vue.createVNode(_sfc_main$
|
|
942
|
+
}, [vue.createVNode(_sfc_main$A, {
|
|
942
943
|
type: "subtract",
|
|
943
944
|
size: 20
|
|
944
945
|
})]), vue.createElementVNode("div", {
|
|
945
946
|
class: "controls default plus",
|
|
946
947
|
onClick: _cache[5] || (_cache[5] = $event => onStepClick(true))
|
|
947
|
-
}, [vue.createVNode(_sfc_main$
|
|
948
|
+
}, [vue.createVNode(_sfc_main$A, {
|
|
948
949
|
type: "plus",
|
|
949
950
|
size: 20
|
|
950
951
|
})])], 64)) : vue.unref(controls) == "right" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
@@ -952,14 +953,14 @@
|
|
|
952
953
|
}, [vue.createElementVNode("div", {
|
|
953
954
|
class: "controls right plus",
|
|
954
955
|
onClick: _cache[6] || (_cache[6] = $event => onStepClick(true))
|
|
955
|
-
}, [vue.createVNode(_sfc_main$
|
|
956
|
+
}, [vue.createVNode(_sfc_main$A, {
|
|
956
957
|
type: "arrow",
|
|
957
958
|
size: 20,
|
|
958
959
|
rotate: 270
|
|
959
960
|
})]), vue.createElementVNode("div", {
|
|
960
961
|
class: "controls right subtract",
|
|
961
962
|
onClick: _cache[7] || (_cache[7] = $event => onStepClick(false))
|
|
962
|
-
}, [vue.createVNode(_sfc_main$
|
|
963
|
+
}, [vue.createVNode(_sfc_main$A, {
|
|
963
964
|
type: "arrow",
|
|
964
965
|
size: 20,
|
|
965
966
|
rotate: 90
|
|
@@ -983,7 +984,7 @@
|
|
|
983
984
|
|
|
984
985
|
const _hoisted_1$d = ["placeholder", "readonly"];
|
|
985
986
|
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";
|
|
986
|
-
var _sfc_main$
|
|
987
|
+
var _sfc_main$t = vue.defineComponent({
|
|
987
988
|
...{
|
|
988
989
|
name: "Search",
|
|
989
990
|
inheritAttrs: true
|
|
@@ -1030,7 +1031,7 @@
|
|
|
1030
1031
|
onKeyup: _cache[1] || (_cache[1] = $event => onSearch($event))
|
|
1031
1032
|
}, null, 40, _hoisted_1$d), [[vue.vModelText, textModel.value, void 0, {
|
|
1032
1033
|
trim: true
|
|
1033
|
-
}]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$
|
|
1034
|
+
}]]), vue.createElementVNode("div", null, [vue.createVNode(_sfc_main$A, {
|
|
1034
1035
|
class: "search-button",
|
|
1035
1036
|
type: "custom",
|
|
1036
1037
|
draw: searchIon,
|
|
@@ -1255,7 +1256,7 @@
|
|
|
1255
1256
|
class: "snail-confirm flex-column"
|
|
1256
1257
|
};
|
|
1257
1258
|
const _hoisted_2$8 = ["innerHTML"];
|
|
1258
|
-
var _sfc_main$
|
|
1259
|
+
var _sfc_main$s = vue.defineComponent({
|
|
1259
1260
|
...{
|
|
1260
1261
|
name: "ConfirmContainer",
|
|
1261
1262
|
inheritAttrs: true
|
|
@@ -1283,14 +1284,14 @@
|
|
|
1283
1284
|
},
|
|
1284
1285
|
setup(__props) {
|
|
1285
1286
|
return (_ctx, _cache) => {
|
|
1286
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [vue.createVNode(_sfc_main$
|
|
1287
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [vue.createVNode(_sfc_main$w, {
|
|
1287
1288
|
"use-to": "dialog",
|
|
1288
1289
|
title: __props.title || "提示",
|
|
1289
1290
|
onClose: _cache[0] || (_cache[0] = $event => __props.closePopup(false))
|
|
1290
1291
|
}, null, 8, ["title"]), vue.createElementVNode("div", {
|
|
1291
1292
|
class: "confirm-body",
|
|
1292
1293
|
innerHTML: __props.message || "请确认?"
|
|
1293
|
-
}, null, 8, _hoisted_2$8), vue.createVNode(_sfc_main$
|
|
1294
|
+
}, null, 8, _hoisted_2$8), vue.createVNode(_sfc_main$x, {
|
|
1294
1295
|
align: "right",
|
|
1295
1296
|
"cancel-name": __props.cancelName,
|
|
1296
1297
|
"cancel-disabled": __props.cancelDisabled,
|
|
@@ -1303,7 +1304,7 @@
|
|
|
1303
1304
|
}
|
|
1304
1305
|
});
|
|
1305
1306
|
|
|
1306
|
-
var _sfc_main$
|
|
1307
|
+
var _sfc_main$r = vue.defineComponent({
|
|
1307
1308
|
...{
|
|
1308
1309
|
name: "Loading",
|
|
1309
1310
|
inheritAttrs: true
|
|
@@ -1342,7 +1343,7 @@
|
|
|
1342
1343
|
}
|
|
1343
1344
|
});
|
|
1344
1345
|
|
|
1345
|
-
var _sfc_main$
|
|
1346
|
+
var _sfc_main$q = vue.defineComponent({
|
|
1346
1347
|
...{
|
|
1347
1348
|
name: "Dynamic",
|
|
1348
1349
|
inheritAttrs: false
|
|
@@ -1366,7 +1367,7 @@
|
|
|
1366
1367
|
const loadingComponent = vue.defineComponent({
|
|
1367
1368
|
inheritAttrs: false,
|
|
1368
1369
|
components: {
|
|
1369
|
-
Loading: _sfc_main$
|
|
1370
|
+
Loading: _sfc_main$r
|
|
1370
1371
|
},
|
|
1371
1372
|
template: "<Loading :mask-disabled='true' />"
|
|
1372
1373
|
});
|
|
@@ -1433,7 +1434,7 @@
|
|
|
1433
1434
|
}
|
|
1434
1435
|
});
|
|
1435
1436
|
|
|
1436
|
-
var _sfc_main$
|
|
1437
|
+
var _sfc_main$p = vue.defineComponent({
|
|
1437
1438
|
...{
|
|
1438
1439
|
name: "DialogContainer",
|
|
1439
1440
|
inheritAttrs: true
|
|
@@ -1478,7 +1479,7 @@
|
|
|
1478
1479
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers($event => {
|
|
1479
1480
|
__props.options.closeOnMask && vue.unref(closePopup)();
|
|
1480
1481
|
}, ["self"]))
|
|
1481
|
-
}, [vue.createVNode(_sfc_main$
|
|
1482
|
+
}, [vue.createVNode(_sfc_main$q, vue.mergeProps({
|
|
1482
1483
|
class: "dialog-body",
|
|
1483
1484
|
name: __props.options.name,
|
|
1484
1485
|
component: __props.options.component,
|
|
@@ -1493,7 +1494,7 @@
|
|
|
1493
1494
|
}
|
|
1494
1495
|
});
|
|
1495
1496
|
|
|
1496
|
-
var _sfc_main$
|
|
1497
|
+
var _sfc_main$o = vue.defineComponent({
|
|
1497
1498
|
...{
|
|
1498
1499
|
name: "FollowContainer",
|
|
1499
1500
|
inheritAttrs: true
|
|
@@ -1614,7 +1615,7 @@
|
|
|
1614
1615
|
});
|
|
1615
1616
|
});
|
|
1616
1617
|
return (_ctx, _cache) => {
|
|
1617
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1618
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$q, vue.mergeProps({
|
|
1618
1619
|
class: ["snail-follow initial", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1619
1620
|
style: {
|
|
1620
1621
|
"z-index": __props.zIndex
|
|
@@ -1631,7 +1632,7 @@
|
|
|
1631
1632
|
}
|
|
1632
1633
|
});
|
|
1633
1634
|
|
|
1634
|
-
var _sfc_main$
|
|
1635
|
+
var _sfc_main$n = vue.defineComponent({
|
|
1635
1636
|
...{
|
|
1636
1637
|
name: "PopupContainer",
|
|
1637
1638
|
inheritAttrs: true
|
|
@@ -1651,7 +1652,7 @@
|
|
|
1651
1652
|
model = vue.shallowRef(void 0)
|
|
1652
1653
|
} = __props.options;
|
|
1653
1654
|
return (_ctx, _cache) => {
|
|
1654
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1655
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$q, vue.mergeProps({
|
|
1655
1656
|
class: ["snail-popup", [__props.popupStatus.value, __props.popupTransition.value]],
|
|
1656
1657
|
style: {
|
|
1657
1658
|
"z-index": __props.zIndex
|
|
@@ -1674,7 +1675,7 @@
|
|
|
1674
1675
|
class: "icon"
|
|
1675
1676
|
};
|
|
1676
1677
|
const _hoisted_2$7 = ["innerHTML"];
|
|
1677
|
-
var _sfc_main$
|
|
1678
|
+
var _sfc_main$m = vue.defineComponent({
|
|
1678
1679
|
...{
|
|
1679
1680
|
name: "ToastContainer",
|
|
1680
1681
|
inheritAttrs: true
|
|
@@ -1712,7 +1713,7 @@
|
|
|
1712
1713
|
}),
|
|
1713
1714
|
onMouseenter: _cache[3] || (_cache[3] = $event => onMouseEvent(false)),
|
|
1714
1715
|
onMouseleave: _cache[4] || (_cache[4] = $event => onMouseEvent(true))
|
|
1715
|
-
}, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
1716
|
+
}, [vue.unref(props).closeDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
1716
1717
|
key: 0,
|
|
1717
1718
|
class: "close-icon",
|
|
1718
1719
|
type: "close",
|
|
@@ -1723,7 +1724,7 @@
|
|
|
1723
1724
|
onClick: _cache[2] || (_cache[2] = $event => {
|
|
1724
1725
|
vue.unref(closePopup)();
|
|
1725
1726
|
})
|
|
1726
|
-
}, null, 8, ["fill"])) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [vue.createVNode(_sfc_main$
|
|
1727
|
+
}, null, 8, ["fill"])) : vue.createCommentVNode("", true), vue.unref(props).type ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b, [vue.createVNode(_sfc_main$A, {
|
|
1727
1728
|
type: vue.unref(props).type,
|
|
1728
1729
|
fill: "#707070",
|
|
1729
1730
|
size: 20
|
|
@@ -1737,7 +1738,7 @@
|
|
|
1737
1738
|
|
|
1738
1739
|
function usePopup() {
|
|
1739
1740
|
function popup(options) {
|
|
1740
|
-
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$
|
|
1741
|
+
const scope = checkOptions(options, checkPopup) || popupInCustomContainer(_sfc_main$n, options);
|
|
1741
1742
|
return addScope2Scopes(scope);
|
|
1742
1743
|
}
|
|
1743
1744
|
function dialog(options) {
|
|
@@ -1770,7 +1771,7 @@
|
|
|
1770
1771
|
},
|
|
1771
1772
|
onBeforeClose: fn => hook.register("onBeforeClose", fn)
|
|
1772
1773
|
});
|
|
1773
|
-
const descriptor = openPopup(_sfc_main$
|
|
1774
|
+
const descriptor = openPopup(_sfc_main$p, options, extOptions);
|
|
1774
1775
|
scope = snail_core.useAsyncScope(deferred.promise);
|
|
1775
1776
|
monitorDialog(descriptor, scope, deferred);
|
|
1776
1777
|
}
|
|
@@ -1788,14 +1789,14 @@
|
|
|
1788
1789
|
inPopup: "follow",
|
|
1789
1790
|
target
|
|
1790
1791
|
};
|
|
1791
|
-
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$
|
|
1792
|
+
scope = checkOptions(options, checkFollow) || popupInCustomContainer(_sfc_main$o, options, extOptions);
|
|
1792
1793
|
}
|
|
1793
1794
|
return addScope2Scopes(scope);
|
|
1794
1795
|
}
|
|
1795
1796
|
function confirm(title, message, options) {
|
|
1796
1797
|
options = options || Object.create(null);
|
|
1797
1798
|
return dialog({
|
|
1798
|
-
component: _sfc_main$
|
|
1799
|
+
component: _sfc_main$s,
|
|
1799
1800
|
closeOnEscape: true,
|
|
1800
1801
|
props: {
|
|
1801
1802
|
...options,
|
|
@@ -1805,7 +1806,7 @@
|
|
|
1805
1806
|
});
|
|
1806
1807
|
}
|
|
1807
1808
|
function toast(type, message, options) {
|
|
1808
|
-
return popupInCustomContainer(_sfc_main$
|
|
1809
|
+
return popupInCustomContainer(_sfc_main$m, {
|
|
1809
1810
|
url: "#ToastContainer",
|
|
1810
1811
|
props: {
|
|
1811
1812
|
...(options || Object.create(null)),
|
|
@@ -1838,7 +1839,7 @@
|
|
|
1838
1839
|
},
|
|
1839
1840
|
...extOptions
|
|
1840
1841
|
});
|
|
1841
|
-
const descriptor = openPopup(container || _sfc_main$
|
|
1842
|
+
const descriptor = openPopup(container || _sfc_main$n, options, extOptions);
|
|
1842
1843
|
const scope = snail_core.useAsyncScope(deferred.promise);
|
|
1843
1844
|
scope.onDestroy(() => destroyPopup(descriptor, deferred));
|
|
1844
1845
|
return scope;
|
|
@@ -1981,7 +1982,7 @@
|
|
|
1981
1982
|
};
|
|
1982
1983
|
const _hoisted_2$6 = ["src"];
|
|
1983
1984
|
const _hoisted_3$6 = ["textContent"];
|
|
1984
|
-
var _sfc_main$
|
|
1985
|
+
var _sfc_main$l = vue.defineComponent({
|
|
1985
1986
|
...{
|
|
1986
1987
|
name: "Empty",
|
|
1987
1988
|
inheritAttrs: true
|
|
@@ -2010,7 +2011,7 @@
|
|
|
2010
2011
|
key: 1,
|
|
2011
2012
|
class: "select-status"
|
|
2012
2013
|
};
|
|
2013
|
-
var _sfc_main$
|
|
2014
|
+
var _sfc_main$k = vue.defineComponent({
|
|
2014
2015
|
...{
|
|
2015
2016
|
name: "SelectNode",
|
|
2016
2017
|
inheritAttrs: true
|
|
@@ -2055,11 +2056,11 @@
|
|
|
2055
2056
|
}, [vue.createElementVNode("div", {
|
|
2056
2057
|
class: "item-text ellipsis",
|
|
2057
2058
|
textContent: vue.toDisplayString(__props.item.text)
|
|
2058
|
-
}, null, 8, _hoisted_2$5), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2059
|
+
}, null, 8, _hoisted_2$5), __props.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
2059
2060
|
key: 0,
|
|
2060
2061
|
type: "arrow",
|
|
2061
2062
|
color: "#8a9099"
|
|
2062
|
-
})) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [vue.createVNode(_sfc_main$
|
|
2063
|
+
})) : __props.multiple == true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, [vue.createVNode(_sfc_main$A, {
|
|
2063
2064
|
type: "success",
|
|
2064
2065
|
color: "white",
|
|
2065
2066
|
size: 12
|
|
@@ -2080,7 +2081,7 @@
|
|
|
2080
2081
|
}
|
|
2081
2082
|
});
|
|
2082
2083
|
|
|
2083
|
-
var _sfc_main$
|
|
2084
|
+
var _sfc_main$j = vue.defineComponent({
|
|
2084
2085
|
...{
|
|
2085
2086
|
name: "Select2Popup",
|
|
2086
2087
|
inheritAttrs: true
|
|
@@ -2252,13 +2253,13 @@
|
|
|
2252
2253
|
key: 0
|
|
2253
2254
|
}, [vue.createTextVNode(" 暂无选项 ")], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2254
2255
|
key: 1
|
|
2255
|
-
}, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2256
|
+
}, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$t, vue.mergeProps({
|
|
2256
2257
|
key: 0
|
|
2257
2258
|
}, __props.search, {
|
|
2258
2259
|
onSearch,
|
|
2259
2260
|
key: "select-search"
|
|
2260
2261
|
}), null, 16)) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(itemsRef.value, item => {
|
|
2261
|
-
return vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2262
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
2262
2263
|
key: vue.unref(context).getKey(item),
|
|
2263
2264
|
multiple: __props.multiple,
|
|
2264
2265
|
item,
|
|
@@ -2267,7 +2268,7 @@
|
|
|
2267
2268
|
onEnter: onEnterSelectNode,
|
|
2268
2269
|
onClick: onClickSelectNode
|
|
2269
2270
|
}, null, 8, ["multiple", "item", "context"]);
|
|
2270
|
-
}), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2271
|
+
}), 128)), itemsRef.value.length == 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
2271
2272
|
key: 1,
|
|
2272
2273
|
message: "无结果"
|
|
2273
2274
|
})) : vue.createCommentVNode("", true), showClearButtonRef.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -2290,9 +2291,9 @@
|
|
|
2290
2291
|
class: "placeholder"
|
|
2291
2292
|
};
|
|
2292
2293
|
onAppCreated((app, type) => {
|
|
2293
|
-
type == "popup" && app.component("SelectPopup", _sfc_main$
|
|
2294
|
+
type == "popup" && app.component("SelectPopup", _sfc_main$j);
|
|
2294
2295
|
});
|
|
2295
|
-
var _sfc_main$
|
|
2296
|
+
var _sfc_main$i = vue.defineComponent({
|
|
2296
2297
|
...{
|
|
2297
2298
|
name: "Select",
|
|
2298
2299
|
inheritAttrs: true
|
|
@@ -2432,7 +2433,7 @@
|
|
|
2432
2433
|
key: 1,
|
|
2433
2434
|
class: "placeholder",
|
|
2434
2435
|
textContent: vue.toDisplayString(__props.readonly ? "" : __props.placeholder || "请选择")
|
|
2435
|
-
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
2436
|
+
}, null, 8, _hoisted_3$4)), __props.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
2436
2437
|
key: 2,
|
|
2437
2438
|
type: "arrow",
|
|
2438
2439
|
size: 24,
|
|
@@ -2445,7 +2446,7 @@
|
|
|
2445
2446
|
}
|
|
2446
2447
|
});
|
|
2447
2448
|
|
|
2448
|
-
var _sfc_main$
|
|
2449
|
+
var _sfc_main$h = vue.defineComponent({
|
|
2449
2450
|
...{
|
|
2450
2451
|
name: "Switch",
|
|
2451
2452
|
inheritAttrs: true
|
|
@@ -2495,7 +2496,7 @@
|
|
|
2495
2496
|
});
|
|
2496
2497
|
|
|
2497
2498
|
const _hoisted_1$7 = ["readonly", "placeholder", "rows"];
|
|
2498
|
-
var _sfc_main$
|
|
2499
|
+
var _sfc_main$g = vue.defineComponent({
|
|
2499
2500
|
...{
|
|
2500
2501
|
name: "Textarea"
|
|
2501
2502
|
},
|
|
@@ -2560,6 +2561,81 @@
|
|
|
2560
2561
|
}
|
|
2561
2562
|
});
|
|
2562
2563
|
|
|
2564
|
+
var _sfc_main$f = vue.defineComponent({
|
|
2565
|
+
__name: "transitions",
|
|
2566
|
+
props: {
|
|
2567
|
+
group: {
|
|
2568
|
+
type: Boolean
|
|
2569
|
+
},
|
|
2570
|
+
duration: {},
|
|
2571
|
+
customClass: {},
|
|
2572
|
+
effect: {}
|
|
2573
|
+
},
|
|
2574
|
+
setup(__props) {
|
|
2575
|
+
const props = __props;
|
|
2576
|
+
const classNames = vue.computed(() => {
|
|
2577
|
+
const array = [props.customClass || "snail-transition"];
|
|
2578
|
+
if (snail_core.isArray(props.effect)) {
|
|
2579
|
+
props.effect.length > 0 ? array.push(...props.effect) : array.push("fade");
|
|
2580
|
+
} else {
|
|
2581
|
+
array.push(props.effect || "fade");
|
|
2582
|
+
}
|
|
2583
|
+
props.duration === 0 && array.push("no-duration");
|
|
2584
|
+
return array.join(" ");
|
|
2585
|
+
});
|
|
2586
|
+
return (_ctx, _cache) => {
|
|
2587
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.group ? vue.TransitionGroup : vue.Transition), {
|
|
2588
|
+
appear: "",
|
|
2589
|
+
duration: __props.duration,
|
|
2590
|
+
"enter-active-class": `${classNames.value} enter-active`,
|
|
2591
|
+
"enter-from-class": `${classNames.value} enter-from`,
|
|
2592
|
+
"enter-to-class": `${classNames.value} enter-to`,
|
|
2593
|
+
"leave-active-class": `${classNames.value} leave-active`,
|
|
2594
|
+
"leave-from-class": `${classNames.value} leave-from`,
|
|
2595
|
+
"leave-to-class": `${classNames.value} leave-to`
|
|
2596
|
+
}, {
|
|
2597
|
+
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
2598
|
+
_: 3
|
|
2599
|
+
}, 8, ["duration", "enter-active-class", "enter-from-class", "enter-to-class", "leave-active-class", "leave-from-class", "leave-to-class"]);
|
|
2600
|
+
};
|
|
2601
|
+
}
|
|
2602
|
+
});
|
|
2603
|
+
|
|
2604
|
+
var _sfc_main$e = vue.defineComponent({
|
|
2605
|
+
__name: "element",
|
|
2606
|
+
props: {
|
|
2607
|
+
tag: {},
|
|
2608
|
+
show: {
|
|
2609
|
+
type: Boolean
|
|
2610
|
+
},
|
|
2611
|
+
showMode: {},
|
|
2612
|
+
transition: {},
|
|
2613
|
+
children: {}
|
|
2614
|
+
},
|
|
2615
|
+
setup(__props) {
|
|
2616
|
+
return (_ctx, _cache) => {
|
|
2617
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$f, vue.mergeProps({
|
|
2618
|
+
group: false
|
|
2619
|
+
}, __props.transition, {
|
|
2620
|
+
duration: __props.transition ? __props.transition.duration : 0
|
|
2621
|
+
}), {
|
|
2622
|
+
default: vue.withCtx(() => [(__props.showMode == "vShow" ? true : __props.show) ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(snail_core.correctString)(__props.tag, "div", true)), {
|
|
2623
|
+
key: 0
|
|
2624
|
+
}, {
|
|
2625
|
+
default: vue.withCtx(() => [vue.createVNode(_sfc_main$f, vue.mergeProps(__props.children, {
|
|
2626
|
+
duration: __props.children ? __props.children.duration : 0
|
|
2627
|
+
}), {
|
|
2628
|
+
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
2629
|
+
_: 3
|
|
2630
|
+
}, 16, ["duration"])]),
|
|
2631
|
+
_: 3
|
|
2632
|
+
}, 512)), [[vue.vShow, __props.showMode == "vShow" ? __props.show : true]]) : vue.createCommentVNode("", true)]),
|
|
2633
|
+
_: 3
|
|
2634
|
+
}, 16, ["duration"]);
|
|
2635
|
+
};
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
|
|
2563
2639
|
const _hoisted_1$6 = {
|
|
2564
2640
|
class: "fold-header"
|
|
2565
2641
|
};
|
|
@@ -2650,7 +2726,7 @@
|
|
|
2650
2726
|
key: 0,
|
|
2651
2727
|
class: "subtitle ellipsis",
|
|
2652
2728
|
textContent: vue.toDisplayString(__props.subtitle)
|
|
2653
|
-
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [vue.createVNode(_sfc_main$
|
|
2729
|
+
}, null, 8, _hoisted_3$3)) : vue.createCommentVNode("", true), __props.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [vue.createVNode(_sfc_main$A, {
|
|
2654
2730
|
type: "arrow",
|
|
2655
2731
|
title: statusModel.value == "expand" ? "收起" : "展开",
|
|
2656
2732
|
onClick: onStatusClick
|
|
@@ -2875,6 +2951,36 @@
|
|
|
2875
2951
|
});
|
|
2876
2952
|
|
|
2877
2953
|
var _sfc_main$a = vue.defineComponent({
|
|
2954
|
+
__name: "motion",
|
|
2955
|
+
props: {
|
|
2956
|
+
enter: {},
|
|
2957
|
+
leave: {},
|
|
2958
|
+
multiple: {
|
|
2959
|
+
type: Boolean
|
|
2960
|
+
},
|
|
2961
|
+
duration: {},
|
|
2962
|
+
mode: {}
|
|
2963
|
+
},
|
|
2964
|
+
setup(__props) {
|
|
2965
|
+
const props = __props;
|
|
2966
|
+
const duration = snail_core.correctNumber(props.duration, 200);
|
|
2967
|
+
return (_ctx, _cache) => {
|
|
2968
|
+
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.multiple ? vue.TransitionGroup : vue.Transition), {
|
|
2969
|
+
appear: "",
|
|
2970
|
+
type: "animation",
|
|
2971
|
+
duration: vue.unref(duration),
|
|
2972
|
+
mode: __props.mode,
|
|
2973
|
+
"enter-active-class": vue.unref(snail_core.correctString)(props.enter, "fade-in", true),
|
|
2974
|
+
"leave-active-class": vue.unref(snail_core.correctString)(props.leave, "fade-out", true)
|
|
2975
|
+
}, {
|
|
2976
|
+
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
2977
|
+
_: 3
|
|
2978
|
+
}, 8, ["duration", "mode", "enter-active-class", "leave-active-class"]);
|
|
2979
|
+
};
|
|
2980
|
+
}
|
|
2981
|
+
});
|
|
2982
|
+
|
|
2983
|
+
var _sfc_main$9 = vue.defineComponent({
|
|
2878
2984
|
...{
|
|
2879
2985
|
name: "Sort",
|
|
2880
2986
|
inheritAttrs: true
|
|
@@ -2978,7 +3084,7 @@
|
|
|
2978
3084
|
const _hoisted_1$5 = {
|
|
2979
3085
|
class: "table-body"
|
|
2980
3086
|
};
|
|
2981
|
-
var _sfc_main$
|
|
3087
|
+
var _sfc_main$8 = vue.defineComponent({
|
|
2982
3088
|
...{
|
|
2983
3089
|
name: "Table",
|
|
2984
3090
|
inheritAttrs: true
|
|
@@ -3023,7 +3129,7 @@
|
|
|
3023
3129
|
}
|
|
3024
3130
|
});
|
|
3025
3131
|
|
|
3026
|
-
var _sfc_main$
|
|
3132
|
+
var _sfc_main$7 = vue.defineComponent({
|
|
3027
3133
|
...{
|
|
3028
3134
|
name: "TableRow",
|
|
3029
3135
|
inheritAttrs: true
|
|
@@ -3046,7 +3152,7 @@
|
|
|
3046
3152
|
}
|
|
3047
3153
|
});
|
|
3048
3154
|
|
|
3049
|
-
var _sfc_main$
|
|
3155
|
+
var _sfc_main$6 = vue.defineComponent({
|
|
3050
3156
|
...{
|
|
3051
3157
|
name: "TableCol",
|
|
3052
3158
|
inheritAttrs: true
|
|
@@ -3092,46 +3198,6 @@
|
|
|
3092
3198
|
}
|
|
3093
3199
|
});
|
|
3094
3200
|
|
|
3095
|
-
var _sfc_main$6 = vue.defineComponent({
|
|
3096
|
-
__name: "transitions",
|
|
3097
|
-
props: {
|
|
3098
|
-
group: {
|
|
3099
|
-
type: Boolean
|
|
3100
|
-
},
|
|
3101
|
-
duration: {},
|
|
3102
|
-
customClass: {},
|
|
3103
|
-
effect: {}
|
|
3104
|
-
},
|
|
3105
|
-
setup(__props) {
|
|
3106
|
-
const props = __props;
|
|
3107
|
-
const classNames = vue.computed(() => {
|
|
3108
|
-
const array = [props.customClass || "snail-transition"];
|
|
3109
|
-
if (snail_core.isArray(props.effect)) {
|
|
3110
|
-
props.effect.length > 0 ? array.push(...props.effect) : array.push("fade");
|
|
3111
|
-
} else {
|
|
3112
|
-
array.push(props.effect || "fade");
|
|
3113
|
-
}
|
|
3114
|
-
console.log(array);
|
|
3115
|
-
return array.join(" ");
|
|
3116
|
-
});
|
|
3117
|
-
return (_ctx, _cache) => {
|
|
3118
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.group ? vue.TransitionGroup : vue.Transition), vue.mergeProps(_ctx.$attrs, {
|
|
3119
|
-
appear: "",
|
|
3120
|
-
duration: __props.duration,
|
|
3121
|
-
"enter-active-class": `${classNames.value} enter-active`,
|
|
3122
|
-
"enter-from-class": `${classNames.value} enter-from`,
|
|
3123
|
-
"enter-to-class": `${classNames.value} enter-to`,
|
|
3124
|
-
"leave-active-class": `${classNames.value} leave-active`,
|
|
3125
|
-
"leave-from-class": `${classNames.value} leave-from`,
|
|
3126
|
-
"leave-to-class": `${classNames.value} leave-to`
|
|
3127
|
-
}), {
|
|
3128
|
-
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
3129
|
-
_: 3
|
|
3130
|
-
}, 16, ["duration", "enter-active-class", "enter-from-class", "enter-to-class", "leave-active-class", "leave-from-class", "leave-to-class"]);
|
|
3131
|
-
};
|
|
3132
|
-
}
|
|
3133
|
-
});
|
|
3134
|
-
|
|
3135
3201
|
const _hoisted_1$4 = {
|
|
3136
3202
|
key: 0,
|
|
3137
3203
|
class: "node-fold"
|
|
@@ -3263,7 +3329,7 @@
|
|
|
3263
3329
|
key: 1
|
|
3264
3330
|
}, [_cache[4] || (_cache[4] = vue.createElementVNode("div", {
|
|
3265
3331
|
class: "indent"
|
|
3266
|
-
}, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3332
|
+
}, null, -1)), __props.options.foldDisabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [showChildrenRef.value ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
3267
3333
|
key: 0,
|
|
3268
3334
|
class: vue.normalizeClass(statusRef.value),
|
|
3269
3335
|
type: "custom",
|
|
@@ -3332,7 +3398,7 @@
|
|
|
3332
3398
|
emits("click", node, parents);
|
|
3333
3399
|
}
|
|
3334
3400
|
return (_ctx, _cache) => {
|
|
3335
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3401
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [__props.search ? (vue.openBlock(), vue.createBlock(_sfc_main$t, vue.mergeProps({
|
|
3336
3402
|
key: 0
|
|
3337
3403
|
}, __props.search, {
|
|
3338
3404
|
onSearch
|
|
@@ -3383,7 +3449,7 @@
|
|
|
3383
3449
|
return (_ctx, _cache) => {
|
|
3384
3450
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
3385
3451
|
class: vue.normalizeClass(["snail-wrapper", __props.inPopup ? "in-popup" : "in-normal"])
|
|
3386
|
-
}, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3452
|
+
}, [__props.header && __props.header.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$w, vue.mergeProps({
|
|
3387
3453
|
key: 0
|
|
3388
3454
|
}, __props.header || {
|
|
3389
3455
|
useTo: "dialog",
|
|
@@ -3398,7 +3464,7 @@
|
|
|
3398
3464
|
}), {
|
|
3399
3465
|
default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default")]),
|
|
3400
3466
|
_: 3
|
|
3401
|
-
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3467
|
+
}, 16), __props.footer && __props.readonly != true && __props.footer.disabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$x, vue.mergeProps({
|
|
3402
3468
|
key: 1
|
|
3403
3469
|
}, __props.footer || {}, {
|
|
3404
3470
|
onCancel: _cache[1] || (_cache[1] = $event => emits("cancel")),
|
|
@@ -3412,7 +3478,7 @@
|
|
|
3412
3478
|
snail_core.mustObject(options, "options");
|
|
3413
3479
|
target instanceof HTMLElement || snail_core.throwError("target must be a HTMLElement");
|
|
3414
3480
|
target.classList.add("snail-app");
|
|
3415
|
-
const app = vue.createApp(_sfc_main$
|
|
3481
|
+
const app = vue.createApp(_sfc_main$q, options);
|
|
3416
3482
|
triggerAppCreated(app);
|
|
3417
3483
|
app.mount(target);
|
|
3418
3484
|
const scope = snail_core.useScope().onDestroy(() => app.unmount());
|
|
@@ -3420,6 +3486,54 @@
|
|
|
3420
3486
|
return scope;
|
|
3421
3487
|
}
|
|
3422
3488
|
|
|
3489
|
+
const MOTION = Object.freeze({
|
|
3490
|
+
"fade": {
|
|
3491
|
+
enter: "fade-in",
|
|
3492
|
+
leave: "fade-out"
|
|
3493
|
+
},
|
|
3494
|
+
"scale": {
|
|
3495
|
+
enter: "scale-in",
|
|
3496
|
+
leave: "scale-out"
|
|
3497
|
+
},
|
|
3498
|
+
"rotate": {
|
|
3499
|
+
enter: "rotate-in",
|
|
3500
|
+
leave: "rotate-out"
|
|
3501
|
+
},
|
|
3502
|
+
"top": {
|
|
3503
|
+
enter: "top-in",
|
|
3504
|
+
leave: "top-out"
|
|
3505
|
+
},
|
|
3506
|
+
"topBottom": {
|
|
3507
|
+
enter: "top-in",
|
|
3508
|
+
leave: "bottom-out"
|
|
3509
|
+
},
|
|
3510
|
+
"bottom": {
|
|
3511
|
+
enter: "bottom-in",
|
|
3512
|
+
leave: "bottom-out"
|
|
3513
|
+
},
|
|
3514
|
+
"bottomTop": {
|
|
3515
|
+
enter: "bottom-in",
|
|
3516
|
+
leave: "top-out"
|
|
3517
|
+
},
|
|
3518
|
+
"left": {
|
|
3519
|
+
enter: "left-in",
|
|
3520
|
+
leave: "left-out"
|
|
3521
|
+
},
|
|
3522
|
+
"leftRight": {
|
|
3523
|
+
enter: "left-in",
|
|
3524
|
+
leave: "right-out"
|
|
3525
|
+
},
|
|
3526
|
+
"right": {
|
|
3527
|
+
enter: "right-in",
|
|
3528
|
+
leave: "right-out"
|
|
3529
|
+
},
|
|
3530
|
+
"rightLeft": {
|
|
3531
|
+
enter: "right-in",
|
|
3532
|
+
leave: "left-out"
|
|
3533
|
+
}
|
|
3534
|
+
});
|
|
3535
|
+
for (var key in MOTION) snail_core.hasOwnProperty(MOTION, key) && Object.freeze(MOTION[key]);
|
|
3536
|
+
|
|
3423
3537
|
function initStepByFormat(format) {
|
|
3424
3538
|
switch (format) {
|
|
3425
3539
|
case "yyyy":
|
|
@@ -3687,7 +3801,7 @@
|
|
|
3687
3801
|
}]),
|
|
3688
3802
|
mode: "vertical"
|
|
3689
3803
|
}, vue.createSlots({
|
|
3690
|
-
main: vue.withCtx(() => [vue.createVNode(_sfc_main$
|
|
3804
|
+
main: vue.withCtx(() => [vue.createVNode(_sfc_main$f, {
|
|
3691
3805
|
group: true,
|
|
3692
3806
|
effect: "down-up"
|
|
3693
3807
|
}, {
|
|
@@ -3727,19 +3841,19 @@
|
|
|
3727
3841
|
_: 2
|
|
3728
3842
|
}, [__props.toolbarDisabled != true ? {
|
|
3729
3843
|
name: "bottom",
|
|
3730
|
-
fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3844
|
+
fn: vue.withCtx(() => [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
3731
3845
|
key: 0,
|
|
3732
3846
|
type: "link",
|
|
3733
3847
|
size: "small",
|
|
3734
3848
|
textContent: "清空",
|
|
3735
3849
|
onClick: _cache[0] || (_cache[0] = $event => (emits("clear"), __props.inPopup && __props.closePopup("")))
|
|
3736
|
-
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
3850
|
+
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
3737
3851
|
key: 1,
|
|
3738
3852
|
type: "link",
|
|
3739
3853
|
size: "small",
|
|
3740
3854
|
textContent: "现在",
|
|
3741
3855
|
onClick: _cache[1] || (_cache[1] = $event => rebuildItems(vue.unref(snail_core.getTimeValue)(new Date())))
|
|
3742
|
-
})) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$
|
|
3856
|
+
})) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$B, {
|
|
3743
3857
|
type: "link",
|
|
3744
3858
|
size: "small",
|
|
3745
3859
|
textContent: "确定",
|
|
@@ -3990,7 +4104,7 @@
|
|
|
3990
4104
|
height: "30px"
|
|
3991
4105
|
}
|
|
3992
4106
|
}, vue.createSlots({
|
|
3993
|
-
top: vue.withCtx(() => [vue.createVNode(_sfc_main$
|
|
4107
|
+
top: vue.withCtx(() => [vue.createVNode(_sfc_main$A, {
|
|
3994
4108
|
type: "arrow",
|
|
3995
4109
|
rotate: 180,
|
|
3996
4110
|
size: 26,
|
|
@@ -4009,7 +4123,7 @@
|
|
|
4009
4123
|
key: 0,
|
|
4010
4124
|
textContent: vue.toDisplayString(`${dateRef.value.month}月`),
|
|
4011
4125
|
onClick: _cache[2] || (_cache[2] = $event => onSwitchStepClick("month"))
|
|
4012
|
-
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$
|
|
4126
|
+
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true)], 64))], 2), vue.createVNode(_sfc_main$A, {
|
|
4013
4127
|
type: "arrow",
|
|
4014
4128
|
size: 26,
|
|
4015
4129
|
onClick: _cache[3] || (_cache[3] = $event => buildPickerItems(stepRef.value, 1))
|
|
@@ -4074,19 +4188,19 @@
|
|
|
4074
4188
|
onClick: onSelectTime
|
|
4075
4189
|
}, null, 10, _hoisted_8)) : vue.createCommentVNode("", true), __props.toolbarDisabled != true ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
4076
4190
|
key: 1
|
|
4077
|
-
}, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4191
|
+
}, [__props.clearDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
4078
4192
|
key: 0,
|
|
4079
4193
|
type: "link",
|
|
4080
4194
|
size: "small",
|
|
4081
4195
|
textContent: "清空",
|
|
4082
4196
|
onClick: _cache[4] || (_cache[4] = $event => (emits("clear"), vue.unref(inPopup) && __props.closePopup("")))
|
|
4083
|
-
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4197
|
+
})) : vue.createCommentVNode("", true), __props.nowDisabled != true ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
|
|
4084
4198
|
key: 1,
|
|
4085
4199
|
type: "link",
|
|
4086
4200
|
size: "small",
|
|
4087
4201
|
textContent: "现在",
|
|
4088
4202
|
onClick: onNow
|
|
4089
|
-
})) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$
|
|
4203
|
+
})) : vue.createCommentVNode("", true)], 64)) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$B, {
|
|
4090
4204
|
type: "link",
|
|
4091
4205
|
size: "small",
|
|
4092
4206
|
textContent: "确定",
|
|
@@ -4237,12 +4351,12 @@
|
|
|
4237
4351
|
onTouchstart: onStartDrag,
|
|
4238
4352
|
onTouchmove: onDragMove,
|
|
4239
4353
|
onTouchend: onDragEnd
|
|
4240
|
-
}, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4354
|
+
}, [dragInfoRef.value.status == "success" ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
4241
4355
|
key: 0,
|
|
4242
4356
|
type: "success",
|
|
4243
4357
|
size: 20,
|
|
4244
4358
|
color: "white"
|
|
4245
|
-
})) : (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
4359
|
+
})) : (vue.openBlock(), vue.createBlock(_sfc_main$A, {
|
|
4246
4360
|
key: 1,
|
|
4247
4361
|
type: "custom",
|
|
4248
4362
|
size: 20,
|
|
@@ -4254,38 +4368,41 @@
|
|
|
4254
4368
|
});
|
|
4255
4369
|
|
|
4256
4370
|
const components = {
|
|
4257
|
-
Button: _sfc_main$
|
|
4258
|
-
Choose: _sfc_main$
|
|
4259
|
-
DatePicker: _sfc_main$
|
|
4260
|
-
Footer: _sfc_main$
|
|
4261
|
-
Header: _sfc_main$
|
|
4262
|
-
Icon: _sfc_main$
|
|
4263
|
-
Input: _sfc_main$
|
|
4264
|
-
Number: _sfc_main$
|
|
4265
|
-
Search: _sfc_main$
|
|
4266
|
-
Select: _sfc_main$
|
|
4267
|
-
Switch: _sfc_main$
|
|
4268
|
-
Textarea: _sfc_main$
|
|
4269
|
-
Dynamic: _sfc_main$
|
|
4371
|
+
Button: _sfc_main$B,
|
|
4372
|
+
Choose: _sfc_main$z,
|
|
4373
|
+
DatePicker: _sfc_main$y,
|
|
4374
|
+
Footer: _sfc_main$x,
|
|
4375
|
+
Header: _sfc_main$w,
|
|
4376
|
+
Icon: _sfc_main$A,
|
|
4377
|
+
Input: _sfc_main$v,
|
|
4378
|
+
Number: _sfc_main$u,
|
|
4379
|
+
Search: _sfc_main$t,
|
|
4380
|
+
Select: _sfc_main$i,
|
|
4381
|
+
Switch: _sfc_main$h,
|
|
4382
|
+
Textarea: _sfc_main$g,
|
|
4383
|
+
Dynamic: _sfc_main$q,
|
|
4384
|
+
Element: _sfc_main$e,
|
|
4270
4385
|
Fold: _sfc_main$d,
|
|
4386
|
+
Motion: _sfc_main$a,
|
|
4271
4387
|
Layout: _sfc_main$b,
|
|
4272
4388
|
Scroll: _sfc_main$c,
|
|
4273
|
-
Sort: _sfc_main$
|
|
4274
|
-
Table: _sfc_main$
|
|
4275
|
-
TableRow: _sfc_main$
|
|
4276
|
-
TableCol: _sfc_main$
|
|
4277
|
-
Transitions: _sfc_main$
|
|
4389
|
+
Sort: _sfc_main$9,
|
|
4390
|
+
Table: _sfc_main$8,
|
|
4391
|
+
TableRow: _sfc_main$7,
|
|
4392
|
+
TableCol: _sfc_main$6,
|
|
4393
|
+
Transitions: _sfc_main$f,
|
|
4278
4394
|
Tree: _sfc_main$4,
|
|
4279
4395
|
Wrapper: _sfc_main$3,
|
|
4280
4396
|
DragVerify: _sfc_main,
|
|
4281
|
-
Empty: _sfc_main$
|
|
4282
|
-
Loading: _sfc_main$
|
|
4397
|
+
Empty: _sfc_main$l,
|
|
4398
|
+
Loading: _sfc_main$r
|
|
4283
4399
|
};
|
|
4284
4400
|
|
|
4285
4401
|
snail_core.onMountScope(scope => {
|
|
4286
4402
|
vue.getCurrentScope() && vue.onScopeDispose(scope.destroy);
|
|
4287
4403
|
});
|
|
4288
4404
|
|
|
4405
|
+
exports.MOTION = MOTION;
|
|
4289
4406
|
exports.components = components;
|
|
4290
4407
|
exports.getSvgDraw = getSvgDraw;
|
|
4291
4408
|
exports.mount = mount;
|