snail.vue 1.0.54 → 2.0.1
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 +2 -2
- package/dist/snail.vue.js +26 -25
- package/dist/snail.vue.umd.js +25 -24
- package/dist/styles/snail.vue.vue.css +20 -20
- package/package.json +2 -2
- package/{.code-snippets → vue.code-snippets} +1 -14
- package/dist/styles/app.css +0 -1
package/dist/snail.vue.d.ts
CHANGED
|
@@ -1566,9 +1566,9 @@ type InputEvents = {
|
|
|
1566
1566
|
type PopupOptions<Props = void, Model = void> = ComponentOptions & ComponentBindOptions<Props, Model> & {
|
|
1567
1567
|
/**
|
|
1568
1568
|
* 弹窗动画名
|
|
1569
|
-
* - 不传则默认“
|
|
1569
|
+
* - 不传则默认“fade”
|
|
1570
1570
|
* - 动画规则:打开弹窗时,为 [transition]-in ;关闭弹窗时,为[transition]-out
|
|
1571
|
-
* - - 传入 "
|
|
1571
|
+
* - - 传入 "scale",则打开弹窗为 "scale-in";关闭弹窗时为 "scale-out"
|
|
1572
1572
|
*/
|
|
1573
1573
|
transition?: string;
|
|
1574
1574
|
/**
|
package/dist/snail.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@ sourceURL=/snail.vue.js
|
|
2
2
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createTextVNode, shallowRef, normalizeStyle, createElementVNode, toDisplayString, Fragment, renderList, unref, mergeModels, useModel, computed, createCommentVNode, createBlock, nextTick, onMounted, onUnmounted, withDirectives, vModelText, createVNode, createApp, Transition, withCtx, normalizeProps, guardReactiveProps, watch, ref, onErrorCaptured, resolveDynamicComponent, mergeProps, createSlots, withModifiers, isRef, getCurrentInstance, useTemplateRef, resolveComponent, onBeforeUnmount, getCurrentScope, onScopeDispose } from 'vue';
|
|
3
3
|
import { throwError, isArrayNotEmpty, isStringNotEmpty, useKey, isArray, useTimer, newId, script, isFunction, getFromArray, mustFunction, useScope, removeFromArray, mustObject, throwIfFalse, isObject, isNumberNotNaN, mountScope, useScopes, isPromise, wait, delay, defer, useAsyncScope, useHook, hasAny, throwIfTrue, onMountScope } from 'snail.core';
|
|
4
|
-
import {
|
|
4
|
+
import { css, link, useObserver, useAnimation } from 'snail.view';
|
|
5
5
|
|
|
6
6
|
const _hoisted_1$h = ["title"];
|
|
7
7
|
var _sfc_main$u = defineComponent({
|
|
@@ -25,10 +25,6 @@ var _sfc_main$u = 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
|
-
|
|
32
28
|
function getSvgDraw(iconType, draw) {
|
|
33
29
|
switch (iconType) {
|
|
34
30
|
case "success":
|
|
@@ -204,6 +200,10 @@ var _sfc_main$s = defineComponent({
|
|
|
204
200
|
}
|
|
205
201
|
});
|
|
206
202
|
|
|
203
|
+
var addLink = href => setTimeout(link.register, 0, href);
|
|
204
|
+
|
|
205
|
+
addLink("/styles/snail.vue.vue.css");
|
|
206
|
+
|
|
207
207
|
const _hoisted_1$e = ["id"];
|
|
208
208
|
var _sfc_main$r = defineComponent({
|
|
209
209
|
__name: "datepicker",
|
|
@@ -551,7 +551,7 @@ function openPopup(container, options, extOptions) {
|
|
|
551
551
|
options,
|
|
552
552
|
extOptions,
|
|
553
553
|
zIndex: options.zIndex || DEFAULT_ZINDEX,
|
|
554
|
-
popupTransition: shallowRef(`${options.transition || "
|
|
554
|
+
popupTransition: shallowRef(`${options.transition || "fade"}-in`)
|
|
555
555
|
});
|
|
556
556
|
{
|
|
557
557
|
const app = createApp(container, descriptor);
|
|
@@ -574,7 +574,7 @@ function destroyPopup(descriptor, task) {
|
|
|
574
574
|
popupStatus.value = "closed";
|
|
575
575
|
task.resolve(void 0);
|
|
576
576
|
}
|
|
577
|
-
popupTransition.value = `${options.transition || "
|
|
577
|
+
popupTransition.value = `${options.transition || "fade"}-out`;
|
|
578
578
|
const app = POPUPMAPS.get(popupId);
|
|
579
579
|
if (app != void 0) {
|
|
580
580
|
POPUPMAPS.delete(popupId);
|
|
@@ -732,7 +732,7 @@ function deducePosition(strategy, targetStart, targetEnd, contentSize, clientSiz
|
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
const _hoisted_1$b = {
|
|
735
|
-
class: "snail-confirm"
|
|
735
|
+
class: "snail-confirm flex-column"
|
|
736
736
|
};
|
|
737
737
|
const _hoisted_2$8 = ["innerHTML"];
|
|
738
738
|
var _sfc_main$n = defineComponent({
|
|
@@ -1547,7 +1547,7 @@ var _sfc_main$f = defineComponent({
|
|
|
1547
1547
|
onMouseenter: _cache[0] || (_cache[0] = $event => emits("enter", rootDom.value, _ctx.item)),
|
|
1548
1548
|
onClick: _cache[1] || (_cache[1] = () => emits("click", _ctx.item))
|
|
1549
1549
|
}, [createElementVNode("div", {
|
|
1550
|
-
class: "item-text",
|
|
1550
|
+
class: "item-text ellipsis",
|
|
1551
1551
|
textContent: toDisplayString(_ctx.item.text)
|
|
1552
1552
|
}, null, 8, _hoisted_2$5), _ctx.item.type == "group" ? (openBlock(), createBlock(_sfc_main$t, {
|
|
1553
1553
|
key: 0,
|
|
@@ -1631,9 +1631,8 @@ var _sfc_main$e = defineComponent({
|
|
|
1631
1631
|
} = props;
|
|
1632
1632
|
const itemsRef = computed(() => (props.items || []).filter(item => context.isShow(item, true)));
|
|
1633
1633
|
const classRef = computed(() => ({
|
|
1634
|
-
"snail-select-popup": true,
|
|
1635
1634
|
"child-popup": props.level > 1,
|
|
1636
|
-
"
|
|
1635
|
+
"placeholder": itemsRef.value.length == 0,
|
|
1637
1636
|
"has-group": itemsRef.value.find(node => node.type == "group") != void 0
|
|
1638
1637
|
}));
|
|
1639
1638
|
var mouseStatus = "Leave";
|
|
@@ -1739,11 +1738,11 @@ var _sfc_main$e = defineComponent({
|
|
|
1739
1738
|
watcher(popupStatus, newValue => newValue == "closed" && childFollowScope && childFollowScope.destroy());
|
|
1740
1739
|
return (_ctx, _cache) => {
|
|
1741
1740
|
return openBlock(), createElementBlock("div", {
|
|
1742
|
-
class: normalizeClass(classRef.value),
|
|
1741
|
+
class: normalizeClass(["snail-select-popup", classRef.value]),
|
|
1743
1742
|
style: normalizeStyle(_ctx.popupStyle),
|
|
1744
1743
|
onMouseenter: onEnterPopup,
|
|
1745
1744
|
onMouseleave: onLeavePopup
|
|
1746
|
-
}, [classRef.value["child-popup"] && classRef.value["
|
|
1745
|
+
}, [classRef.value["child-popup"] && classRef.value["placeholder"] ? (openBlock(), createElementBlock(Fragment, {
|
|
1747
1746
|
key: 0
|
|
1748
1747
|
}, [createTextVNode(" 暂无选项 ")], 64)) : (openBlock(), createElementBlock(Fragment, {
|
|
1749
1748
|
key: 1
|
|
@@ -1782,7 +1781,7 @@ const _hoisted_2$4 = ["title", "textContent"];
|
|
|
1782
1781
|
const _hoisted_3$3 = ["textContent"];
|
|
1783
1782
|
const _hoisted_4$3 = {
|
|
1784
1783
|
key: 1,
|
|
1785
|
-
class: "
|
|
1784
|
+
class: "placeholder"
|
|
1786
1785
|
};
|
|
1787
1786
|
onAppCreated((app, type) => {
|
|
1788
1787
|
type == "popup" && app.component("SelectPopup", _sfc_main$e);
|
|
@@ -1912,28 +1911,30 @@ var _sfc_main$d = defineComponent({
|
|
|
1912
1911
|
return (_ctx, _cache) => {
|
|
1913
1912
|
return openBlock(), createElementBlock("div", {
|
|
1914
1913
|
class: normalizeClass(["snail-select", {
|
|
1915
|
-
"readonly": _ctx.readonly
|
|
1914
|
+
"readonly": _ctx.readonly,
|
|
1915
|
+
"empty": !(_ctx.items && _ctx.items.length)
|
|
1916
1916
|
}]),
|
|
1917
1917
|
onClick: _cache[0] || (_cache[0] = $event => onClick()),
|
|
1918
1918
|
ref: "select"
|
|
1919
|
-
}, [_ctx.items && _ctx.items.length
|
|
1919
|
+
}, [_ctx.items && _ctx.items.length ? (openBlock(), createElementBlock(Fragment, {
|
|
1920
1920
|
key: 0
|
|
1921
|
-
}, [selectedItemsRef.value.length
|
|
1922
|
-
class: "select-text",
|
|
1921
|
+
}, [selectedItemsRef.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$7, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))), () => [createElementVNode("div", {
|
|
1922
|
+
class: "select-text ellipsis",
|
|
1923
1923
|
title: selectedTextRef.value,
|
|
1924
1924
|
textContent: toDisplayString(selectedTextRef.value)
|
|
1925
1925
|
}, null, 8, _hoisted_2$4)])])) : (openBlock(), createElementBlock("div", {
|
|
1926
1926
|
key: 1,
|
|
1927
|
-
class: "
|
|
1927
|
+
class: "placeholder",
|
|
1928
1928
|
textContent: toDisplayString(_ctx.readonly ? "" : _ctx.placeholder || "请选择")
|
|
1929
|
-
}, null, 8, _hoisted_3$3)),
|
|
1929
|
+
}, null, 8, _hoisted_3$3)), _ctx.readonly != true ? (openBlock(), createBlock(_sfc_main$t, {
|
|
1930
|
+
key: 2,
|
|
1930
1931
|
type: "arrow",
|
|
1931
1932
|
size: 24,
|
|
1932
1933
|
color: "#8a9099",
|
|
1933
1934
|
style: {
|
|
1934
1935
|
"transform": "rotate(90deg)"
|
|
1935
1936
|
}
|
|
1936
|
-
})], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
|
|
1937
|
+
})) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
|
|
1937
1938
|
};
|
|
1938
1939
|
}
|
|
1939
1940
|
});
|
|
@@ -2071,11 +2072,11 @@ var _sfc_main$b = defineComponent({
|
|
|
2071
2072
|
return openBlock(), createElementBlock("div", {
|
|
2072
2073
|
class: normalizeClass(["snail-fold", statusModel.value])
|
|
2073
2074
|
}, [createElementVNode("div", _hoisted_1$6, [renderSlot(_ctx.$slots, "header", {}, () => [createElementVNode("div", {
|
|
2074
|
-
class: "title",
|
|
2075
|
+
class: "title ellipsis",
|
|
2075
2076
|
textContent: toDisplayString(_ctx.title)
|
|
2076
2077
|
}, null, 8, _hoisted_2$3), !!_ctx.subtitle ? (openBlock(), createElementBlock("div", {
|
|
2077
2078
|
key: 0,
|
|
2078
|
-
class: "subtitle",
|
|
2079
|
+
class: "subtitle ellipsis",
|
|
2079
2080
|
textContent: toDisplayString(_ctx.subtitle)
|
|
2080
2081
|
}, null, 8, _hoisted_3$2)) : createCommentVNode("", true), _ctx.disabled != true ? (openBlock(), createElementBlock("div", _hoisted_4$2, [createVNode(_sfc_main$t, {
|
|
2081
2082
|
type: "arrow",
|
|
@@ -2432,7 +2433,7 @@ const _hoisted_1$3 = {
|
|
|
2432
2433
|
};
|
|
2433
2434
|
const _hoisted_2$1 = ["title", "textContent"];
|
|
2434
2435
|
const _hoisted_3$1 = {
|
|
2435
|
-
class: "node-slot"
|
|
2436
|
+
class: "node-slot ellipsis"
|
|
2436
2437
|
};
|
|
2437
2438
|
const _hoisted_4$1 = {
|
|
2438
2439
|
key: 1,
|
|
@@ -2564,7 +2565,7 @@ var _sfc_main$4 = defineComponent({
|
|
|
2564
2565
|
draw: "M 298.667 426.667 l 213.333 256 l 213.333 -256 Z",
|
|
2565
2566
|
onClick: toggleFold
|
|
2566
2567
|
}, null, 8, ["class"])) : createCommentVNode("", true)])) : createCommentVNode("", true), createElementVNode("div", {
|
|
2567
|
-
class: "node-text",
|
|
2568
|
+
class: "node-text ellipsis",
|
|
2568
2569
|
title: _ctx.node.text,
|
|
2569
2570
|
textContent: toDisplayString(_ctx.node.text)
|
|
2570
2571
|
}, null, 8, _hoisted_2$1), createElementVNode("div", _hoisted_3$1, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotOptions))))])], 64))], 34)) : createCommentVNode("", true), showRef.value && showChildrenRef.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.node.children, child => {
|
package/dist/snail.vue.umd.js
CHANGED
|
@@ -27,10 +27,6 @@
|
|
|
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
|
-
|
|
34
30
|
function getSvgDraw(iconType, draw) {
|
|
35
31
|
switch (iconType) {
|
|
36
32
|
case "success":
|
|
@@ -206,6 +202,10 @@
|
|
|
206
202
|
}
|
|
207
203
|
});
|
|
208
204
|
|
|
205
|
+
var addLink = href => setTimeout(snail_view.link.register, 0, href);
|
|
206
|
+
|
|
207
|
+
addLink("/styles/snail.vue.vue.css");
|
|
208
|
+
|
|
209
209
|
const _hoisted_1$e = ["id"];
|
|
210
210
|
var _sfc_main$r = vue.defineComponent({
|
|
211
211
|
__name: "datepicker",
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
options,
|
|
554
554
|
extOptions,
|
|
555
555
|
zIndex: options.zIndex || DEFAULT_ZINDEX,
|
|
556
|
-
popupTransition: vue.shallowRef(`${options.transition || "
|
|
556
|
+
popupTransition: vue.shallowRef(`${options.transition || "fade"}-in`)
|
|
557
557
|
});
|
|
558
558
|
{
|
|
559
559
|
const app = vue.createApp(container, descriptor);
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
popupStatus.value = "closed";
|
|
577
577
|
task.resolve(void 0);
|
|
578
578
|
}
|
|
579
|
-
popupTransition.value = `${options.transition || "
|
|
579
|
+
popupTransition.value = `${options.transition || "fade"}-out`;
|
|
580
580
|
const app = POPUPMAPS.get(popupId);
|
|
581
581
|
if (app != void 0) {
|
|
582
582
|
POPUPMAPS.delete(popupId);
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
const _hoisted_1$b = {
|
|
737
|
-
class: "snail-confirm"
|
|
737
|
+
class: "snail-confirm flex-column"
|
|
738
738
|
};
|
|
739
739
|
const _hoisted_2$8 = ["innerHTML"];
|
|
740
740
|
var _sfc_main$n = vue.defineComponent({
|
|
@@ -1549,7 +1549,7 @@
|
|
|
1549
1549
|
onMouseenter: _cache[0] || (_cache[0] = $event => emits("enter", rootDom.value, _ctx.item)),
|
|
1550
1550
|
onClick: _cache[1] || (_cache[1] = () => emits("click", _ctx.item))
|
|
1551
1551
|
}, [vue.createElementVNode("div", {
|
|
1552
|
-
class: "item-text",
|
|
1552
|
+
class: "item-text ellipsis",
|
|
1553
1553
|
textContent: vue.toDisplayString(_ctx.item.text)
|
|
1554
1554
|
}, null, 8, _hoisted_2$5), _ctx.item.type == "group" ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
1555
1555
|
key: 0,
|
|
@@ -1633,9 +1633,8 @@
|
|
|
1633
1633
|
} = props;
|
|
1634
1634
|
const itemsRef = vue.computed(() => (props.items || []).filter(item => context.isShow(item, true)));
|
|
1635
1635
|
const classRef = vue.computed(() => ({
|
|
1636
|
-
"snail-select-popup": true,
|
|
1637
1636
|
"child-popup": props.level > 1,
|
|
1638
|
-
"
|
|
1637
|
+
"placeholder": itemsRef.value.length == 0,
|
|
1639
1638
|
"has-group": itemsRef.value.find(node => node.type == "group") != void 0
|
|
1640
1639
|
}));
|
|
1641
1640
|
var mouseStatus = "Leave";
|
|
@@ -1741,11 +1740,11 @@
|
|
|
1741
1740
|
watcher(popupStatus, newValue => newValue == "closed" && childFollowScope && childFollowScope.destroy());
|
|
1742
1741
|
return (_ctx, _cache) => {
|
|
1743
1742
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1744
|
-
class: vue.normalizeClass(classRef.value),
|
|
1743
|
+
class: vue.normalizeClass(["snail-select-popup", classRef.value]),
|
|
1745
1744
|
style: vue.normalizeStyle(_ctx.popupStyle),
|
|
1746
1745
|
onMouseenter: onEnterPopup,
|
|
1747
1746
|
onMouseleave: onLeavePopup
|
|
1748
|
-
}, [classRef.value["child-popup"] && classRef.value["
|
|
1747
|
+
}, [classRef.value["child-popup"] && classRef.value["placeholder"] ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1749
1748
|
key: 0
|
|
1750
1749
|
}, [vue.createTextVNode(" 暂无选项 ")], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1751
1750
|
key: 1
|
|
@@ -1784,7 +1783,7 @@
|
|
|
1784
1783
|
const _hoisted_3$3 = ["textContent"];
|
|
1785
1784
|
const _hoisted_4$3 = {
|
|
1786
1785
|
key: 1,
|
|
1787
|
-
class: "
|
|
1786
|
+
class: "placeholder"
|
|
1788
1787
|
};
|
|
1789
1788
|
onAppCreated((app, type) => {
|
|
1790
1789
|
type == "popup" && app.component("SelectPopup", _sfc_main$e);
|
|
@@ -1914,28 +1913,30 @@
|
|
|
1914
1913
|
return (_ctx, _cache) => {
|
|
1915
1914
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1916
1915
|
class: vue.normalizeClass(["snail-select", {
|
|
1917
|
-
"readonly": _ctx.readonly
|
|
1916
|
+
"readonly": _ctx.readonly,
|
|
1917
|
+
"empty": !(_ctx.items && _ctx.items.length)
|
|
1918
1918
|
}]),
|
|
1919
1919
|
onClick: _cache[0] || (_cache[0] = $event => onClick()),
|
|
1920
1920
|
ref: "select"
|
|
1921
|
-
}, [_ctx.items && _ctx.items.length
|
|
1921
|
+
}, [_ctx.items && _ctx.items.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1922
1922
|
key: 0
|
|
1923
|
-
}, [selectedItemsRef.value.length
|
|
1924
|
-
class: "select-text",
|
|
1923
|
+
}, [selectedItemsRef.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))), () => [vue.createElementVNode("div", {
|
|
1924
|
+
class: "select-text ellipsis",
|
|
1925
1925
|
title: selectedTextRef.value,
|
|
1926
1926
|
textContent: vue.toDisplayString(selectedTextRef.value)
|
|
1927
1927
|
}, null, 8, _hoisted_2$4)])])) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
1928
1928
|
key: 1,
|
|
1929
|
-
class: "
|
|
1929
|
+
class: "placeholder",
|
|
1930
1930
|
textContent: vue.toDisplayString(_ctx.readonly ? "" : _ctx.placeholder || "请选择")
|
|
1931
|
-
}, null, 8, _hoisted_3$3)), vue.
|
|
1931
|
+
}, null, 8, _hoisted_3$3)), _ctx.readonly != true ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
|
|
1932
|
+
key: 2,
|
|
1932
1933
|
type: "arrow",
|
|
1933
1934
|
size: 24,
|
|
1934
1935
|
color: "#8a9099",
|
|
1935
1936
|
style: {
|
|
1936
1937
|
"transform": "rotate(90deg)"
|
|
1937
1938
|
}
|
|
1938
|
-
})], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
|
|
1939
|
+
})) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, "暂无可选项"))], 2);
|
|
1939
1940
|
};
|
|
1940
1941
|
}
|
|
1941
1942
|
});
|
|
@@ -2073,11 +2074,11 @@
|
|
|
2073
2074
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2074
2075
|
class: vue.normalizeClass(["snail-fold", statusModel.value])
|
|
2075
2076
|
}, [vue.createElementVNode("div", _hoisted_1$6, [vue.renderSlot(_ctx.$slots, "header", {}, () => [vue.createElementVNode("div", {
|
|
2076
|
-
class: "title",
|
|
2077
|
+
class: "title ellipsis",
|
|
2077
2078
|
textContent: vue.toDisplayString(_ctx.title)
|
|
2078
2079
|
}, null, 8, _hoisted_2$3), !!_ctx.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
2079
2080
|
key: 0,
|
|
2080
|
-
class: "subtitle",
|
|
2081
|
+
class: "subtitle ellipsis",
|
|
2081
2082
|
textContent: vue.toDisplayString(_ctx.subtitle)
|
|
2082
2083
|
}, null, 8, _hoisted_3$2)) : vue.createCommentVNode("", true), _ctx.disabled != true ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [vue.createVNode(_sfc_main$t, {
|
|
2083
2084
|
type: "arrow",
|
|
@@ -2434,7 +2435,7 @@
|
|
|
2434
2435
|
};
|
|
2435
2436
|
const _hoisted_2$1 = ["title", "textContent"];
|
|
2436
2437
|
const _hoisted_3$1 = {
|
|
2437
|
-
class: "node-slot"
|
|
2438
|
+
class: "node-slot ellipsis"
|
|
2438
2439
|
};
|
|
2439
2440
|
const _hoisted_4$1 = {
|
|
2440
2441
|
key: 1,
|
|
@@ -2566,7 +2567,7 @@
|
|
|
2566
2567
|
draw: "M 298.667 426.667 l 213.333 256 l 213.333 -256 Z",
|
|
2567
2568
|
onClick: toggleFold
|
|
2568
2569
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true), vue.createElementVNode("div", {
|
|
2569
|
-
class: "node-text",
|
|
2570
|
+
class: "node-text ellipsis",
|
|
2570
2571
|
title: _ctx.node.text,
|
|
2571
2572
|
textContent: vue.toDisplayString(_ctx.node.text)
|
|
2572
2573
|
}, null, 8, _hoisted_2$1), vue.createElementVNode("div", _hoisted_3$1, [vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(slotOptions))))])], 64))], 34)) : vue.createCommentVNode("", true), showRef.value && showChildrenRef.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.node.children, child => {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/* src:base\button.vue index:0 */
|
|
2
|
-
.snail-button{align-items:center;border-radius:2px;cursor:pointer;display:flex;display:inline-flex;justify-content:center;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.snail-button.max{height:40px;width:120px}.snail-button.middle{height:32px;width:90px}.snail-button.normal{height:28px;width:54px}.snail-button.small{height:20px;width:30px}.snail-button.primary{background-color:#5ca3ff;color:#fff}.snail-button.default{background-color:#fff;border:1px solid #dddfed;color:#2e2f33}.snail-button.link{color:#4c9aff}
|
|
3
1
|
/* src:base\choose.vue index:0 */
|
|
4
2
|
.snail-choose{align-items:center;display:flex;flex-wrap:wrap;overflow-x:hidden}.snail-choose>div.choose-item{align-items:center;cursor:pointer;display:flex;flex-shrink:0;margin:0 8px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.snail-choose>div.choose-item:first-child{margin-left:0}.snail-choose>div.choose-item:after{content:"";height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.snail-choose>div.choose-item>input::checkmark{background-color:#2196f3;border-color:#2196f3}.snail-choose>div.choose-item>div.item-beautiful{align-items:center;display:flex;flex-shrink:0;justify-content:center;overflow:hidden}.snail-choose>div.choose-item>div.item-beautiful.radio{border-radius:50%;height:16px;width:16px}.snail-choose>div.choose-item>div.item-beautiful.checkbox{height:14px;width:14px}.snail-choose>div.choose-item>div.item-beautiful.item-unchecked{border:1px solid #8a9099}.snail-choose>div.choose-item>div.item-beautiful.item-checked{background-color:#4c9aff;border:1px solid #4c9aff}.snail-choose>div.choose-item>span{margin-left:4px}.snail-choose>div.choose-item>span.item-des{color:#8a9099}.snail-choose.readonly>div.choose-item{cursor:auto}.snail-choose.readonly>div.choose-item>div.item-beautiful.item-unchecked{opacity:.5}.snail-choose.readonly>div.choose-item>div.item-beautiful.item-checked{background-color:#d5d7db;border-color:#d5d7db}
|
|
3
|
+
/* src:base\button.vue index:0 */
|
|
4
|
+
.snail-button{align-items:center;border-radius:2px;cursor:pointer;display:flex;display:inline-flex;justify-content:center;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.snail-button.max{height:40px;width:120px}.snail-button.middle{height:32px;width:90px}.snail-button.normal{height:28px;width:54px}.snail-button.small{height:20px;width:30px}.snail-button.primary{background-color:#5ca3ff;color:#fff}.snail-button.default{background-color:#fff;border:1px solid #dddfed;color:#2e2f33}.snail-button.link{color:#4c9aff}
|
|
5
|
+
/* src:base\header.vue index:0 */
|
|
6
|
+
.snail-header{align-items:center;background-color:#fff;display:flex;flex-shrink:0;position:relative;width:100%}.snail-header>.header-title{color:#2e3033;flex:1;line-height:48px;overflow:hidden;padding:0 30px;text-overflow:ellipsis;white-space:nowrap}.snail-header>.header-title.left{text-align:left}.snail-header>.header-title.center{text-align:center}.snail-header>.header-title.right{text-align:right}.snail-header.start-divider{border-bottom:1px solid #dddfed}.snail-header.page{height:48px}.snail-header.page>.header-title{font-size:16px;font-weight:bold}.snail-header.page>.close-icon{margin-right:18px}.snail-header.dialog{height:64px;padding-top:16px}.snail-header.dialog>.header-title{font-size:20px}.snail-header.dialog>.close-icon{position:absolute;right:8px;top:8px}
|
|
5
7
|
/* src:base\datepicker.vue index:0 */
|
|
6
8
|
.snail-datepicker{height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;width:100%}
|
|
7
|
-
/* src:base\footer.vue index:0 */
|
|
8
|
-
.snail-footer{align-items:center;background-color:#fff;display:flex;flex-shrink:0;height:72px;padding:0 40px;width:100%}.snail-footer>.snail-button:nth-child(n+2){margin-left:20px}.snail-footer.start-divider{border-top:1px solid #dddfed}.snail-footer.left{justify-content:flex-start}.snail-footer.center{justify-content:center}.snail-footer.right{justify-content:flex-end}
|
|
9
|
-
/* src:base\header.vue index:0 */
|
|
10
|
-
.snail-header{align-items:center;background-color:#fff;display:flex;flex-shrink:0;position:relative;width:100%}.snail-header>.header-title{color:#2e3033;flex:1;line-height:48px;overflow:hidden;padding:0 30px;text-overflow:ellipsis;white-space:nowrap;width:100%}.snail-header>.header-title.left{text-align:left}.snail-header>.header-title.center{text-align:center}.snail-header>.header-title.right{text-align:right}.snail-header.start-divider{border-bottom:1px solid #dddfed}.snail-header.page{height:48px}.snail-header.page>.header-title{font-size:16px;font-weight:bold}.snail-header.page>.close-icon{margin-right:18px}.snail-header.dialog{height:64px;padding-top:16px}.snail-header.dialog>.header-title{font-size:20px}.snail-header.dialog>.close-icon{position:absolute;right:8px;top:8px}
|
|
11
9
|
/* src:base\icon.vue index:0 */
|
|
12
10
|
.snail-icon{cursor:pointer;opacity:1}
|
|
13
|
-
/* src:base\
|
|
14
|
-
.snail-
|
|
11
|
+
/* src:base\footer.vue index:0 */
|
|
12
|
+
.snail-footer{align-items:center;background-color:#fff;display:flex;flex-shrink:0;height:72px;padding:0 40px;width:100%}.snail-footer>.snail-button:nth-child(n+2){margin-left:20px}.snail-footer.start-divider{border-top:1px solid #dddfed}.snail-footer.left{justify-content:flex-start}.snail-footer.center{justify-content:center}.snail-footer.right{justify-content:flex-end}
|
|
15
13
|
/* src:base\select.vue index:0 */
|
|
16
|
-
.snail-select{align-items:center;background-color:#fff;border:1px solid #dddfed;border-radius:4px;color:#2e3033;
|
|
14
|
+
.snail-select{align-items:center;background-color:#fff;border:1px solid #dddfed;border-radius:4px;color:#2e3033;display:flex;height:32px;width:100%}.snail-select:not(.readonly,.empty){cursor:pointer}.snail-select>div.select-result{align-items:center;display:flex;flex:1;flex-wrap:nowrap;height:30px;overflow:hidden;padding:0 10px 0 6px}.snail-select>div.placeholder{flex:1;padding:0 10px 0 6px}.snail-select>svg.snail-icon{flex-shrink:0;margin-right:4px}.snail-select>div.no-items{flex:1;padding:0 8px}
|
|
17
15
|
/* src:base\switch.vue index:0 */
|
|
18
16
|
.snail-switch{border-radius:10px 10px 10px 10px;cursor:pointer;height:20px!important;overflow:hidden;position:relative;width:36px!important}.snail-switch>div{height:100%;width:100%}.snail-switch>div.on{background-color:#5ca3ff}.snail-switch>div.off{background-color:#c4c8cc;position:absolute;transition:left .2s ease}.snail-switch>div.status{background:#fff;border-radius:10px 10px 10px 10px;height:16px;position:absolute;top:2px;transition:left .2s ease;width:16px}.snail-switch.on>div.off{left:100%;top:0}.snail-switch.on>div.status{left:calc(100% - 18px)}.snail-switch.off>div.off{left:0;top:0}.snail-switch.off>div.status{left:2px}.snail-switch.readonly{cursor:not-allowed}
|
|
19
17
|
/* src:container\fold.vue index:0 */
|
|
20
|
-
.snail-fold{flex-shrink:0}.snail-fold>div.fold-header{align-items:center;display:flex;height:32px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.snail-fold>div.fold-header:before{background-color:#2c97fb;content:"";height:18px;left:0;position:absolute;top:7px;width:4px}.snail-fold>div.fold-header>.
|
|
18
|
+
.snail-fold{flex-shrink:0}.snail-fold>div.fold-header{align-items:center;display:flex;height:32px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.snail-fold>div.fold-header:before{background-color:#2c97fb;content:"";height:18px;left:0;position:absolute;top:7px;width:4px}.snail-fold>div.fold-header>.title{color:#2e3033;font-weight:bold;padding-left:20px}.snail-fold>div.fold-header>.subtitle{color:#8a9099;font-size:13px}.snail-fold>div.fold-header>div.status{align-items:flex-end;display:flex;flex:1;justify-content:flex-end}.snail-fold>div.fold-header>div.status>svg.snail-icon{transition:transform .2s ease}.snail-fold>div.fold-body{padding-left:20px}.snail-fold.expand>div.fold-header>div.status>svg.snail-icon{transform:rotate(-90deg)}.snail-fold.fold>div.fold-header>div.status>svg.snail-icon{transform:rotate(90deg)}
|
|
19
|
+
/* src:base\search.vue index:0 */
|
|
20
|
+
.snail-search{align-items:center;background:#fff;display:flex;flex-shrink:0;height:34px}.snail-search>input{border-radius:0!important;flex:1;height:100%}.snail-search>div{align-items:center;border:1px solid #dddfed;border-left:none;display:flex;flex-shrink:0;height:100%;justify-content:center;width:34px}
|
|
21
21
|
/* src:container\dynamic.vue index:0 */
|
|
22
22
|
.snail-dynamic-error{color:red}.snail-dynamic-error>span{color:gray}
|
|
23
23
|
/* src:container\layout.vue index:0 */
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
.snail-input{display:inline-flex;min-height:34px}.snail-input>.input-title{flex-shrink:0;padding-top:6px}.snail-input>.input-title>span.text{color:#2e3033}.snail-input>.input-title>span.required{color:#f74b4b;margin-left:2px}.snail-input>.input-body{align-self:start;display:flex;flex:1;height:32px}.snail-input>.input-body>input{flex:1}.snail-input>.input-body>span{background-color:red;flex-shrink:0}
|
|
41
41
|
/* src:prompt\drag-verify.vue index:0 */
|
|
42
42
|
.snail-drag-verify{background:#f8f9fa;border:1px solid #dddfed;border-radius:8px;height:40px;overflow:hidden;position:relative;width:100%}.snail-drag-verify>div{height:100%;width:100%}.snail-drag-verify>.drag-progress{background-color:#0c6;transition:width .5s ease-in-out}.snail-drag-verify>.drag-handle,.snail-drag-verify>.verify-message{left:0;position:absolute;top:0;transition:left .5s ease-in-out}.snail-drag-verify>.verify-message{background-image:-webkit-linear-gradient(left,#666,#666 45%,#fff 50%,#666 55%,#666);-webkit-text-fill-color:transparent;align-items:center;animation:snail-drag-verify 2s linear infinite;-webkit-background-clip:text;background-clip:text;background-size:200% 100%;color:#7e848c;display:flex;font-size:12px;font-weight:400;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.snail-drag-verify>.drag-handle{align-items:center;background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAnUExURQAAAGBQUGBaWmJZWWJYWGNYWGNZWWJYWGJZWWBYWGNYWGNZWWRYWIqwlb0AAAANdFJOUwAQMMDQoFBgcCCw4ECQ8pPMAAAAP0lEQVQI12NgwATTGBgawAwRBYZwMIPRiYErAcxSFmA0AjN4HBikBcCsUgYmQxQGE0wKphhIQrSzwAyEW4EOACHhB32zIad6AAAAAElFTkSuQmCC);background-position:50%;background-repeat:no-repeat;border-right:1px solid #dddfed;cursor:move;display:flex;justify-content:center;width:40px}.snail-drag-verify.dragging>.drag-handle,.snail-drag-verify.dragging>.drag-progress{transition:none!important}.snail-drag-verify.success>.verify-message{-webkit-text-fill-color:#fff;color:#fff}.snail-drag-verify.success>.drag-handle>svg{background:#76c61d;border-radius:50%;padding:4px}@keyframes snail-drag-verify{0%{background-position:0 0}to{background-position:-200% 0}}
|
|
43
|
-
/* src:prompt\empty.vue index:0 */
|
|
44
|
-
.snail-empty{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;min-height:150px;width:100%}.snail-empty>img{height:60px;width:60px}.snail-empty>div.message{color:#babdc2;font-weight:400;padding:0 10px 10px}
|
|
45
43
|
/* src:prompt\loading.vue index:0 */
|
|
46
44
|
.snail-loading{height:100%;left:0;position:absolute;top:0;width:100%;z-index:10000}.snail-loading.show-mask{background-color:rgba(0,0,0,.15)}.snail-loading:after,.snail-loading:before{animation:snail-loading-stretch 1s ease-in-out infinite;border-radius:50%;content:"";display:block;display:inline-block;height:10px;left:50%;margin-left:-18px;margin-top:-6px;position:absolute;top:50%;width:10px}.snail-loading:before{background-color:#279bf1}.snail-loading:after{animation-delay:-.5s;background:#64d214;margin-left:0;margin-right:-18px}@keyframes snail-loading-stretch{0%,to{transform:scale(1)}50%{transform:scale(2)}}.snail-loading-enter-active,.snail-loading-leave-active{transition:opacity .3s ease-in-out}.snail-loading-enter-from,.snail-loading-leave-to{opacity:0}
|
|
45
|
+
/* src:prompt\empty.vue index:0 */
|
|
46
|
+
.snail-empty{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;min-height:150px;width:100%}.snail-empty>img{height:60px;width:60px}.snail-empty>div.message{color:#babdc2;font-weight:400;padding:0 10px 10px}
|
|
47
47
|
/* src:popup\components\confirm-container.vue index:0 */
|
|
48
|
-
.snail-confirm{background-color:#fff;border-radius:4px;color:#2e2f33;
|
|
49
|
-
/* src:popup\components\dialog-container.vue index:0 */
|
|
50
|
-
.snail-dialog{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%}.snail-dialog:before{background-color:rgba(24,27,33,.45);content:"";height:100%;opacity:1;position:absolute;transition:opacity .4s ease-in-out;width:100%}.snail-dialog>.dialog-body{background-color:#fff;border-radius:4px;box-shadow:0 0 15px rgba(0,0,0,.3);position:relative}.snail-dialog.unactive:before{opacity:0}.snail-dialog.unactive>.dialog-body{box-shadow:0 0 4px rgba(0,0,0,.3)}
|
|
51
|
-
/* src:popup\components\follow-container.vue index:0 */
|
|
52
|
-
.snail-follow{background-color:#fff;display:inline-block;max-height:100%;max-width:100%;position:fixed;transition-duration:.1s;transition-property:left,top;transition-timing-function:ease}.snail-follow.initial{top:100%;transition:none}
|
|
48
|
+
.snail-confirm{background-color:#fff;border-radius:4px;color:#2e2f33;max-height:350px;max-width:548px;min-width:348px}.snail-confirm>div.confirm-body{flex:1;margin:20px 40px;overflow:auto;word-wrap:break-word}
|
|
53
49
|
/* src:popup\components\toast-container.vue index:0 */
|
|
54
50
|
.snail-toast{background:rgba(0,0,0,.7);border-radius:10px;color:#fff;display:flex;left:50%;max-height:200px;max-width:400px;min-width:200px;overflow:hidden;padding:20px 35px 20px 15px;position:fixed;top:50%;transform:translate(-50%,-50%)}.snail-toast>svg.close-icon{position:absolute;right:10px;top:12px}.snail-toast>div.icon{align-items:center;align-self:center;background:hsla(0,0%,100%,.15);border-radius:50%;display:flex;height:26px;justify-content:center;margin-right:6px;width:26px}.snail-toast>div.icon>svg{background:#fff;border-radius:50%;cursor:none!important;padding:2px}.snail-toast>div.message{flex:1;line-height:24px;overflow:hidden;word-break:break-all}
|
|
51
|
+
/* src:popup\components\dialog-container.vue index:0 */
|
|
52
|
+
.snail-dialog{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%}.snail-dialog:before{background-color:rgba(24,27,33,.45);content:"";height:100%;opacity:1;position:absolute;transition:opacity .4s ease-in-out;width:100%}.snail-dialog>.dialog-body{background-color:#fff;border-radius:4px;box-shadow:0 0 15px rgba(0,0,0,.3);position:relative}.snail-dialog.unactive:before{opacity:0}.snail-dialog.unactive>.dialog-body{box-shadow:0 0 4px rgba(0,0,0,.3)}
|
|
55
53
|
/* src:popup\components\popup-container.vue index:0 */
|
|
56
54
|
.snail-popup{left:0;position:fixed;top:0}
|
|
55
|
+
/* src:popup\components\follow-container.vue index:0 */
|
|
56
|
+
.snail-follow{background-color:#fff;display:inline-block;max-height:100%;max-width:100%;position:fixed;transition-duration:.1s;transition-property:left,top;transition-timing-function:ease}.snail-follow.initial{top:100%;transition:none}
|
|
57
57
|
/* src:container\components\tree-node.vue index:0 */
|
|
58
|
-
.snail-tree-node{align-items:center;display:flex;flex-wrap:nowrap;height:40px;width:100%}.snail-tree-node:hover{background-color:#f8f9fa}.snail-tree-node>.indent,.snail-tree-node>.node-slot,.snail-tree-node>.snail-icon{flex-shrink:0}.snail-tree-node>.node-fold{align-items:center;display:flex;height:100%;justify-content:center;width:24px}.snail-tree-node>.node-fold>.snail-icon{transition:transform .1s ease-in}.snail-tree-node>.node-fold>.snail-icon.fold{transform:rotate(-90deg)}.snail-tree-node>.node-
|
|
58
|
+
.snail-tree-node{align-items:center;display:flex;flex-wrap:nowrap;height:40px;width:100%}.snail-tree-node:hover{background-color:#f8f9fa}.snail-tree-node>.indent,.snail-tree-node>.node-slot,.snail-tree-node>.snail-icon{flex-shrink:0}.snail-tree-node>.node-fold{align-items:center;display:flex;height:100%;justify-content:center;width:24px}.snail-tree-node>.node-fold>.snail-icon{transition:transform .1s ease-in}.snail-tree-node>.node-fold>.snail-icon.fold{transform:rotate(-90deg)}.snail-tree-node>.node-text{color:#2e3033;flex:1;min-width:30px}.snail-tree-node.clickable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.snail-tree-children{width:100%}.snail-tree-children.hidden{display:none;height:0;overflow:hidden}.snail-tree-node.level-1>.indent{padding-left:4px}.snail-tree-node.level-2>.indent{padding-left:24px}.snail-tree-node.level-3>.indent{padding-left:48px}.snail-tree-node.level-4>.indent{padding-left:72px}.snail-tree-node.level-5>.indent{padding-left:96px}.snail-tree-node.level-6>.indent{padding-left:120px}.snail-tree-node.level-7>.indent{padding-left:144px}.snail-tree-node.level-8>.indent{padding-left:168px}.snail-tree-node.level-9>.indent{padding-left:192px}.snail-tree-node.level-10>.indent{padding-left:216px}
|
|
59
59
|
/* src:base\components\select-popup.vue index:0 */
|
|
60
|
-
.snail-select-popup{background:#fff;border:1px solid #dddfed;border-radius:4px;box-shadow:0 1px 5px 1px #dddfed;display:flex;flex-direction:column;max-height:90%;min-height:32px;overflow:auto}.snail-select-popup>div.snail-search{margin:12px}.snail-select-popup>div.clear-all{align-items:center;background-color:#fff;border-top:1px solid #dddfed;bottom:0;color:#8a9099;cursor:pointer;display:flex;flex-shrink:0;height:32px;padding:0 12px;position:sticky!important;z-index:1}.snail-select-popup>div.clear-all:hover{color:#ff4c4c}.snail-select-popup.child-popup{max-width:250px;min-width:200px;padding-bottom:6px;padding-top:6px}.snail-select-popup.child-popup.
|
|
60
|
+
.snail-select-popup{background:#fff;border:1px solid #dddfed;border-radius:4px;box-shadow:0 1px 5px 1px #dddfed;display:flex;flex-direction:column;max-height:90%;min-height:32px;overflow:auto}.snail-select-popup>div.snail-search{margin:12px}.snail-select-popup>div.clear-all{align-items:center;background-color:#fff;border-top:1px solid #dddfed;bottom:0;color:#8a9099;cursor:pointer;display:flex;flex-shrink:0;height:32px;padding:0 12px;position:sticky!important;z-index:1}.snail-select-popup>div.clear-all:hover{color:#ff4c4c}.snail-select-popup.child-popup{max-width:250px;min-width:200px;padding-bottom:6px;padding-top:6px}.snail-select-popup.child-popup.placeholder{justify-content:center;padding:0 12px;width:100px!important}
|
|
61
61
|
/* src:base\components\select-node.vue index:0 */
|
|
62
|
-
.snail-select-popup>div.select-node{align-items:center;display:flex;flex-shrink:0;flex-wrap:nowrap;height:32px;padding-left:12px}.snail-select-popup>div.select-node:hover{background:#f8f9fa}.snail-select-popup>div.select-node.clickable{cursor:pointer}.snail-select-popup>div.select-node.group{color:#8a9099}.snail-select-popup>div.select-node.item{color:#2e3033;padding-right:10px}.snail-select-popup>div.select-node.selected{color:#4c9aff!important}.snail-select-popup>div.select-node>div.item-text{flex:1
|
|
62
|
+
.snail-select-popup>div.select-node{align-items:center;display:flex;flex-shrink:0;flex-wrap:nowrap;height:32px;padding-left:12px}.snail-select-popup>div.select-node:hover{background:#f8f9fa}.snail-select-popup>div.select-node.clickable{cursor:pointer}.snail-select-popup>div.select-node.group{color:#8a9099}.snail-select-popup>div.select-node.item{color:#2e3033;padding-right:10px}.snail-select-popup>div.select-node.selected{color:#4c9aff!important}.snail-select-popup>div.select-node>div.item-text{flex:1}.snail-select-popup>div.select-node>svg.snail-icon{cursor:default;display:none}.snail-select-popup>div.select-node>div.select-status{background:#fff;border:1px solid #8a9099;flex-shrink:0;height:14px;margin-left:4px;width:14px}.snail-select-popup>div.select-node>div.select-status>svg{display:none}.snail-select-popup>div.select-node.selected>div.select-status{background-color:#5ca3ff;border:1px solid #5ca3ff}.snail-select-popup>div.select-node.selected>div.select-status>svg{display:block}.snail-select-popup>div.select-node.child{color:#2e3033;padding-left:24px}.snail-select-popup>div.select-node.child>svg.snail-icon{display:initial}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "依赖【snail】,基于vue封装常用UI组件",
|
|
4
4
|
"author": "snail_dev@163.com",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "2.0.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/snail.vue.js",
|
|
9
9
|
"module": "dist/snail.vue.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"vue": "^3.5.14",
|
|
17
17
|
"snail.core": ">=2.0.16",
|
|
18
|
-
"snail.view": ">=
|
|
18
|
+
"snail.view": ">=2.0.0",
|
|
19
19
|
"sortablejs": ">=1.15.6",
|
|
20
20
|
"zane-calendar": "2.2.8"
|
|
21
21
|
},
|
|
@@ -27,23 +27,10 @@
|
|
|
27
27
|
"",
|
|
28
28
|
"<style lang=\"less\">",
|
|
29
29
|
"// 引入基础Mixins样式",
|
|
30
|
-
"@import \"snail.view/dist/styles/
|
|
30
|
+
"@import \"snail.view/dist/styles/mixins.less\";",
|
|
31
31
|
"",
|
|
32
32
|
"</style>"
|
|
33
33
|
],
|
|
34
34
|
"description": "Vue组件模板代码"
|
|
35
35
|
},
|
|
36
|
-
// ***************************************** 👉 公共类样式 *****************************************
|
|
37
|
-
".text-tips": {
|
|
38
|
-
"prefix": "text-tips",
|
|
39
|
-
"scope": "html",
|
|
40
|
-
"description": "公共类样式:提示文本",
|
|
41
|
-
"body": "class=\"text-tips\"",
|
|
42
|
-
},
|
|
43
|
-
".placeholder":{
|
|
44
|
-
"prefix": ".placeholder",
|
|
45
|
-
"scope": "html",
|
|
46
|
-
"description": "placeholder,针对div、span元素,设置placeholder样式",
|
|
47
|
-
"body": "placeholder",
|
|
48
|
-
}
|
|
49
36
|
}
|
package/dist/styles/app.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.snail-app{font-family:"Microsoft YaHei","微软雅黑","Hiragino Sans GB","tahoma","arial","simsun","宋体","sans-serif"}.snail-app,.snail-app *{box-sizing:border-box!important}.snail-app div,.snail-app span{font-size:14px}.snail-app input[type=email],.snail-app input[type=number],.snail-app input[type=password],.snail-app input[type=search],.snail-app input[type=text],.snail-app input[type=url]{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;border:1px solid #dddfed;border-radius:4px;color:#2e3033;font:inherit;font-size:14px;font-weight:400;margin:0;min-width:10px;outline:0!important;padding:0 10px;text-overflow:ellipsis}.snail-app input[type=email]::-webkit-search-cancel-button,.snail-app input[type=number]::-webkit-search-cancel-button,.snail-app input[type=password]::-webkit-search-cancel-button,.snail-app input[type=search]::-webkit-search-cancel-button,.snail-app input[type=text]::-webkit-search-cancel-button,.snail-app input[type=url]::-webkit-search-cancel-button{display:none}.snail-app input[type=email]:focus,.snail-app input[type=number]:focus,.snail-app input[type=password]:focus,.snail-app input[type=search]:focus,.snail-app input[type=text]:focus,.snail-app input[type=url]:focus{border:1px solid #3292ea}.snail-app input[type=email]:-moz-read-only:focus,.snail-app input[type=number]:-moz-read-only:focus,.snail-app input[type=password]:-moz-read-only:focus,.snail-app input[type=search]:-moz-read-only:focus,.snail-app input[type=text]:-moz-read-only:focus,.snail-app input[type=url]:-moz-read-only:focus{border:1px solid #dddfed}.snail-app input[type=email]:read-only:focus,.snail-app input[type=number]:read-only:focus,.snail-app input[type=password]:read-only:focus,.snail-app input[type=search]:read-only:focus,.snail-app input[type=text]:read-only:focus,.snail-app input[type=url]:read-only:focus{border:1px solid #dddfed}.snail-app input[type=checkbox],.snail-app input[type=radio]{margin:0;padding:0}.snail-app input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;margin:0}.snail-app input[type=number]::-webkit-inner-spin-button,.snail-app input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.snail-app input::-moz-placeholder,.snail-app textarea::-moz-placeholder{color:#8a9099}.snail-app div.placeholder,.snail-app input::placeholder,.snail-app span.placeholder,.snail-app textarea::placeholder{color:#8a9099}.snail-app ::-webkit-scrollbar{background-color:transparent;border-radius:12px;height:10px;width:10px}.snail-app ::-webkit-scrollbar-button{display:none!important;height:0;width:0}.snail-app ::-webkit-scrollbar-thumb{background-color:hsla(0,0%,71%,.9);border:1px solid hsla(0,0%,100%,.85);border-radius:10px}.snail-app ::-webkit-scrollbar-track{background-color:transparent;border-radius:10px}.snail-app .text-tips{color:#8a9099;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
|