zartui 3.1.10 → 3.1.12
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/README.md +23 -23
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +24 -1
- package/es/cell/Cell.mjs +30 -5
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +14 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/composables/use-touch.d.ts +1 -0
- package/es/composables/use-touch.mjs +8 -1
- package/es/config-provider/types.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/es/date-time-picker/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/field/Field.d.ts +17 -2
- package/es/field/index.d.ts +12 -2
- package/es/floating-bubble/FloatingBubble.d.ts +81 -0
- package/es/floating-bubble/FloatingBubble.mjs +181 -0
- package/es/floating-bubble/index.css +1 -0
- package/es/floating-bubble/index.d.ts +63 -0
- package/es/floating-bubble/index.mjs +10 -0
- package/es/floating-bubble/style/index.d.ts +1 -0
- package/es/floating-bubble/style/index.mjs +4 -0
- package/es/floating-bubble/types.d.ts +20 -0
- package/es/floating-bubble/types.mjs +0 -0
- package/es/hierarchy-select/HierarchySelect.mjs +1 -0
- package/es/index-bar/IndexBar.mjs +27 -19
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/types.d.ts +1 -0
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/radio-picker/RadioPicker.d.ts +1 -1
- package/es/radio-picker/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/search/Search.d.ts +2 -2
- package/es/search/index.d.ts +2 -2
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/utils/closest.d.ts +1 -0
- package/es/utils/closest.mjs +8 -0
- package/es/utils/constant.d.ts +1 -0
- package/es/utils/constant.mjs +3 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +24 -1
- package/lib/cell/Cell.js +28 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +14 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +1 -0
- package/lib/composables/use-touch.js +8 -1
- package/lib/config-provider/types.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/field/Field.d.ts +17 -2
- package/lib/field/index.d.ts +12 -2
- package/lib/floating-bubble/FloatingBubble.d.ts +81 -0
- package/lib/floating-bubble/FloatingBubble.js +210 -0
- package/lib/floating-bubble/index.css +1 -0
- package/lib/floating-bubble/index.d.ts +63 -0
- package/lib/floating-bubble/index.js +39 -0
- package/lib/floating-bubble/style/index.d.ts +1 -0
- package/lib/floating-bubble/style/index.js +4 -0
- package/lib/floating-bubble/types.d.ts +20 -0
- package/lib/floating-bubble/types.js +15 -0
- package/lib/hierarchy-select/HierarchySelect.js +1 -0
- package/lib/index-bar/IndexBar.js +27 -19
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/types.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +1 -1
- package/lib/radio-picker/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/index.d.ts +2 -2
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/utils/closest.d.ts +1 -0
- package/lib/utils/closest.js +27 -0
- package/lib/utils/constant.d.ts +1 -0
- package/lib/utils/constant.js +3 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +698 -478
- package/lib/zartui.es.js +698 -478
- package/lib/zartui.js +698 -478
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -5
package/lib/zartui.js
CHANGED
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
});
|
|
521
521
|
return to;
|
|
522
522
|
}
|
|
523
|
-
var stdin_default$
|
|
523
|
+
var stdin_default$1S = {
|
|
524
524
|
name: "姓名",
|
|
525
525
|
tel: "电话",
|
|
526
526
|
save: "保存",
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
};
|
|
568
568
|
const lang = vue.ref("zh-CN");
|
|
569
569
|
const messages = vue.reactive({
|
|
570
|
-
"zh-CN": stdin_default$
|
|
570
|
+
"zh-CN": stdin_default$1S
|
|
571
571
|
});
|
|
572
572
|
const Locale = {
|
|
573
573
|
messages() {
|
|
@@ -581,11 +581,11 @@
|
|
|
581
581
|
deepAssign(messages, newMessages);
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
var stdin_default$
|
|
584
|
+
var stdin_default$1R = Locale;
|
|
585
585
|
function createTranslate(name2) {
|
|
586
586
|
const prefix = camelize(name2) + ".";
|
|
587
587
|
return (path, ...args) => {
|
|
588
|
-
const messages2 = stdin_default$
|
|
588
|
+
const messages2 = stdin_default$1R.messages();
|
|
589
589
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
590
590
|
return isFunction(message) ? message(...args) : message;
|
|
591
591
|
};
|
|
@@ -636,6 +636,7 @@
|
|
|
636
636
|
const ELLIPSIS = "zt-ellipsis";
|
|
637
637
|
const FORM_KEY = Symbol("zt-form");
|
|
638
638
|
const LONG_PRESS_START_TIME = 500;
|
|
639
|
+
const TAP_OFFSET = 5;
|
|
639
640
|
function callInterceptor(interceptor, {
|
|
640
641
|
args = [],
|
|
641
642
|
done,
|
|
@@ -671,7 +672,12 @@
|
|
|
671
672
|
};
|
|
672
673
|
return options;
|
|
673
674
|
}
|
|
674
|
-
|
|
675
|
+
function closest(arr, target) {
|
|
676
|
+
return arr.reduce(
|
|
677
|
+
(pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
const [name$1m, bem$1i] = createNamespace("badge");
|
|
675
681
|
const badgeProps = {
|
|
676
682
|
dot: Boolean,
|
|
677
683
|
max: numericProp,
|
|
@@ -684,8 +690,8 @@
|
|
|
684
690
|
badgeClass: String,
|
|
685
691
|
position: makeStringProp("top-right")
|
|
686
692
|
};
|
|
687
|
-
var stdin_default$
|
|
688
|
-
name: name$
|
|
693
|
+
var stdin_default$1Q = vue.defineComponent({
|
|
694
|
+
name: name$1m,
|
|
689
695
|
props: badgeProps,
|
|
690
696
|
setup(props, {
|
|
691
697
|
slots
|
|
@@ -712,11 +718,11 @@
|
|
|
712
718
|
}
|
|
713
719
|
if (isDef(max) && isNumeric(content) && +content > +max) {
|
|
714
720
|
return vue.createVNode("p", {
|
|
715
|
-
"class": [bem$
|
|
721
|
+
"class": [bem$1i("wrapper", "badge-num")]
|
|
716
722
|
}, [`${max}+`]);
|
|
717
723
|
}
|
|
718
724
|
return vue.createVNode("p", {
|
|
719
|
-
"class": [bem$
|
|
725
|
+
"class": [bem$1i("wrapper", "badge-num")]
|
|
720
726
|
}, [content]);
|
|
721
727
|
}
|
|
722
728
|
};
|
|
@@ -744,7 +750,7 @@
|
|
|
744
750
|
const renderBadge = () => {
|
|
745
751
|
if (hasContent() || props.dot) {
|
|
746
752
|
return vue.createVNode("div", {
|
|
747
|
-
"class": [bem$
|
|
753
|
+
"class": [bem$1i([props.position, {
|
|
748
754
|
dot: props.dot,
|
|
749
755
|
fixed: !!slots.default
|
|
750
756
|
}]), props.badgeClass],
|
|
@@ -758,7 +764,7 @@
|
|
|
758
764
|
tag
|
|
759
765
|
} = props;
|
|
760
766
|
return vue.createVNode(tag, {
|
|
761
|
-
"class": bem$
|
|
767
|
+
"class": bem$1i("wrapper")
|
|
762
768
|
}, {
|
|
763
769
|
default: () => [slots.default(), renderBadge()]
|
|
764
770
|
});
|
|
@@ -767,14 +773,14 @@
|
|
|
767
773
|
};
|
|
768
774
|
}
|
|
769
775
|
});
|
|
770
|
-
const Badge = withInstall(stdin_default$
|
|
776
|
+
const Badge = withInstall(stdin_default$1Q);
|
|
771
777
|
let globalZIndex = 2e3;
|
|
772
778
|
const useGlobalZIndex = () => ++globalZIndex;
|
|
773
779
|
const setGlobalZIndex = (val) => {
|
|
774
780
|
globalZIndex = val;
|
|
775
781
|
};
|
|
776
|
-
const [name$
|
|
777
|
-
const CONFIG_PROVIDER_KEY = Symbol(name$
|
|
782
|
+
const [name$1l, bem$1h] = createNamespace("config-provider");
|
|
783
|
+
const CONFIG_PROVIDER_KEY = Symbol(name$1l);
|
|
778
784
|
const configProviderProps = {
|
|
779
785
|
tag: makeStringProp("div"),
|
|
780
786
|
theme: makeStringProp("light"),
|
|
@@ -808,8 +814,8 @@
|
|
|
808
814
|
}
|
|
809
815
|
});
|
|
810
816
|
}
|
|
811
|
-
var stdin_default$
|
|
812
|
-
name: name$
|
|
817
|
+
var stdin_default$1P = vue.defineComponent({
|
|
818
|
+
name: name$1l,
|
|
813
819
|
props: configProviderProps,
|
|
814
820
|
setup(props, {
|
|
815
821
|
slots
|
|
@@ -857,7 +863,7 @@
|
|
|
857
863
|
}
|
|
858
864
|
});
|
|
859
865
|
return () => vue.createVNode(props.tag, {
|
|
860
|
-
"class": bem$
|
|
866
|
+
"class": bem$1h(),
|
|
861
867
|
"style": props.themeVarsScope === "local" ? style.value : void 0
|
|
862
868
|
}, {
|
|
863
869
|
default: () => {
|
|
@@ -867,7 +873,7 @@
|
|
|
867
873
|
});
|
|
868
874
|
}
|
|
869
875
|
});
|
|
870
|
-
const [name$
|
|
876
|
+
const [name$1k, bem$1g] = createNamespace("icon");
|
|
871
877
|
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
872
878
|
const iconProps = {
|
|
873
879
|
dot: Boolean,
|
|
@@ -879,14 +885,14 @@
|
|
|
879
885
|
badgeProps: Object,
|
|
880
886
|
classPrefix: String
|
|
881
887
|
};
|
|
882
|
-
var stdin_default$
|
|
883
|
-
name: name$
|
|
888
|
+
var stdin_default$1O = vue.defineComponent({
|
|
889
|
+
name: name$1k,
|
|
884
890
|
props: iconProps,
|
|
885
891
|
setup(props, {
|
|
886
892
|
slots
|
|
887
893
|
}) {
|
|
888
894
|
const config = vue.inject(CONFIG_PROVIDER_KEY, null);
|
|
889
|
-
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$
|
|
895
|
+
const classPrefix = vue.computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem$1g());
|
|
890
896
|
return () => {
|
|
891
897
|
const {
|
|
892
898
|
tag,
|
|
@@ -910,7 +916,7 @@
|
|
|
910
916
|
default: () => {
|
|
911
917
|
var _a;
|
|
912
918
|
return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && vue.createVNode("img", {
|
|
913
|
-
"class": bem$
|
|
919
|
+
"class": bem$1g("image"),
|
|
914
920
|
"src": name2
|
|
915
921
|
}, null)];
|
|
916
922
|
}
|
|
@@ -918,8 +924,8 @@
|
|
|
918
924
|
};
|
|
919
925
|
}
|
|
920
926
|
});
|
|
921
|
-
const Icon = withInstall(stdin_default$
|
|
922
|
-
var stdin_default$
|
|
927
|
+
const Icon = withInstall(stdin_default$1O);
|
|
928
|
+
var stdin_default$1N = Icon;
|
|
923
929
|
const popupSharedProps = {
|
|
924
930
|
// whether to show popup
|
|
925
931
|
show: Boolean,
|
|
@@ -972,6 +978,7 @@
|
|
|
972
978
|
const offsetX = vue.ref(0);
|
|
973
979
|
const offsetY = vue.ref(0);
|
|
974
980
|
const direction = vue.ref("");
|
|
981
|
+
const isTap = vue.ref(true);
|
|
975
982
|
const isVertical = () => direction.value === "vertical";
|
|
976
983
|
const isHorizontal = () => direction.value === "horizontal";
|
|
977
984
|
const reset = () => {
|
|
@@ -980,6 +987,7 @@
|
|
|
980
987
|
offsetX.value = 0;
|
|
981
988
|
offsetY.value = 0;
|
|
982
989
|
direction.value = "";
|
|
990
|
+
isTap.value = true;
|
|
983
991
|
};
|
|
984
992
|
const start2 = (event) => {
|
|
985
993
|
reset();
|
|
@@ -996,6 +1004,9 @@
|
|
|
996
1004
|
if (!direction.value || offsetX.value < LOCK_DIRECTION_DISTANCE && offsetY.value < LOCK_DIRECTION_DISTANCE) {
|
|
997
1005
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
998
1006
|
}
|
|
1007
|
+
if (isTap.value && (offsetX.value > TAP_OFFSET || offsetY.value > TAP_OFFSET)) {
|
|
1008
|
+
isTap.value = false;
|
|
1009
|
+
}
|
|
999
1010
|
};
|
|
1000
1011
|
return {
|
|
1001
1012
|
move,
|
|
@@ -1009,7 +1020,8 @@
|
|
|
1009
1020
|
offsetY,
|
|
1010
1021
|
direction,
|
|
1011
1022
|
isVertical,
|
|
1012
|
-
isHorizontal
|
|
1023
|
+
isHorizontal,
|
|
1024
|
+
isTap
|
|
1013
1025
|
};
|
|
1014
1026
|
}
|
|
1015
1027
|
let totalLockCount = 0;
|
|
@@ -1090,7 +1102,7 @@
|
|
|
1090
1102
|
const { scopeId } = ((_a = vue.getCurrentInstance()) == null ? void 0 : _a.vnode) || {};
|
|
1091
1103
|
return scopeId ? { [scopeId]: "" } : null;
|
|
1092
1104
|
};
|
|
1093
|
-
const [name$
|
|
1105
|
+
const [name$1j, bem$1f] = createNamespace("overlay");
|
|
1094
1106
|
const overlayProps = {
|
|
1095
1107
|
show: Boolean,
|
|
1096
1108
|
zIndex: numericProp,
|
|
@@ -1100,8 +1112,8 @@
|
|
|
1100
1112
|
lazyRender: truthProp,
|
|
1101
1113
|
customStyle: Object
|
|
1102
1114
|
};
|
|
1103
|
-
var stdin_default$
|
|
1104
|
-
name: name$
|
|
1115
|
+
var stdin_default$1M = vue.defineComponent({
|
|
1116
|
+
name: name$1j,
|
|
1105
1117
|
props: overlayProps,
|
|
1106
1118
|
setup(props, {
|
|
1107
1119
|
slots
|
|
@@ -1118,7 +1130,7 @@
|
|
|
1118
1130
|
}
|
|
1119
1131
|
return vue.withDirectives(vue.createVNode("div", {
|
|
1120
1132
|
"style": style,
|
|
1121
|
-
"class": [bem$
|
|
1133
|
+
"class": [bem$1f(), props.className],
|
|
1122
1134
|
"onTouchmove": props.lockScroll ? preventTouchMove : noop
|
|
1123
1135
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), [[vue.vShow, props.show]]);
|
|
1124
1136
|
});
|
|
@@ -1130,7 +1142,7 @@
|
|
|
1130
1142
|
});
|
|
1131
1143
|
}
|
|
1132
1144
|
});
|
|
1133
|
-
const Overlay = withInstall(stdin_default$
|
|
1145
|
+
const Overlay = withInstall(stdin_default$1M);
|
|
1134
1146
|
const popupProps$2 = extend({}, popupSharedProps, {
|
|
1135
1147
|
round: Boolean,
|
|
1136
1148
|
position: makeStringProp("center"),
|
|
@@ -1148,9 +1160,9 @@
|
|
|
1148
1160
|
maxDragHeight: makeStringProp("85vh"),
|
|
1149
1161
|
slideable: Boolean
|
|
1150
1162
|
});
|
|
1151
|
-
const [name$
|
|
1152
|
-
var stdin_default$
|
|
1153
|
-
name: name$
|
|
1163
|
+
const [name$1i, bem$1e] = createNamespace("popup");
|
|
1164
|
+
var stdin_default$1L = vue.defineComponent({
|
|
1165
|
+
name: name$1i,
|
|
1154
1166
|
inheritAttrs: false,
|
|
1155
1167
|
props: popupProps$2,
|
|
1156
1168
|
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
|
@@ -1266,7 +1278,7 @@
|
|
|
1266
1278
|
"role": "button",
|
|
1267
1279
|
"tabindex": 0,
|
|
1268
1280
|
"name": props.closeIcon,
|
|
1269
|
-
"class": [bem$
|
|
1281
|
+
"class": [bem$1e("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
|
|
1270
1282
|
"classPrefix": props.iconPrefix,
|
|
1271
1283
|
"onClick": onClickCloseIcon
|
|
1272
1284
|
}, null);
|
|
@@ -1286,7 +1298,7 @@
|
|
|
1286
1298
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
|
1287
1299
|
"ref": popupRef,
|
|
1288
1300
|
"style": style.value,
|
|
1289
|
-
"class": [bem$
|
|
1301
|
+
"class": [bem$1e({
|
|
1290
1302
|
round: round2,
|
|
1291
1303
|
[position]: position
|
|
1292
1304
|
}), {
|
|
@@ -1299,18 +1311,18 @@
|
|
|
1299
1311
|
const sliderRenderPopup = lazyRender(() => {
|
|
1300
1312
|
var _a, _b;
|
|
1301
1313
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
|
1302
|
-
"class": bem$
|
|
1314
|
+
"class": bem$1e("slider"),
|
|
1303
1315
|
"ref": popupRef,
|
|
1304
1316
|
"style": style.value,
|
|
1305
1317
|
"onKeydown": onKeydown
|
|
1306
1318
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots), renderCloseIcon(), vue.createVNode("div", {
|
|
1307
|
-
"class": bem$
|
|
1319
|
+
"class": bem$1e("slider-title"),
|
|
1308
1320
|
"style": `height:${touchAreaHeight}px;`,
|
|
1309
1321
|
"ref": root
|
|
1310
1322
|
}, [vue.createVNode("div", {
|
|
1311
|
-
"class": bem$
|
|
1323
|
+
"class": bem$1e("slider-bar")
|
|
1312
1324
|
}, null)]), vue.createVNode("div", {
|
|
1313
|
-
"class": bem$
|
|
1325
|
+
"class": bem$1e("slider-content"),
|
|
1314
1326
|
"style": contentStyle.value
|
|
1315
1327
|
}, [(_b = slots.default) == null ? void 0 : _b.call(slots)])]), [[vue.vShow, props.show]]);
|
|
1316
1328
|
});
|
|
@@ -1404,9 +1416,9 @@
|
|
|
1404
1416
|
};
|
|
1405
1417
|
}
|
|
1406
1418
|
});
|
|
1407
|
-
const Popup = withInstall(stdin_default$
|
|
1408
|
-
var stdin_default$
|
|
1409
|
-
const [name$
|
|
1419
|
+
const Popup = withInstall(stdin_default$1L);
|
|
1420
|
+
var stdin_default$1K = Popup;
|
|
1421
|
+
const [name$1h, bem$1d] = createNamespace("loading");
|
|
1410
1422
|
const loadingProps = {
|
|
1411
1423
|
size: numericProp,
|
|
1412
1424
|
type: makeStringProp("snake"),
|
|
@@ -1419,12 +1431,12 @@
|
|
|
1419
1431
|
const LoadingIcon = (props) => {
|
|
1420
1432
|
if (props.type === "spinner") {
|
|
1421
1433
|
return Array(12).fill(null).map((_, index) => vue.createVNode("i", {
|
|
1422
|
-
"class": bem$
|
|
1434
|
+
"class": bem$1d("line", String(index + 1))
|
|
1423
1435
|
}, null));
|
|
1424
1436
|
}
|
|
1425
1437
|
if (props.type === "circular") {
|
|
1426
1438
|
return vue.createVNode("svg", {
|
|
1427
|
-
"class": bem$
|
|
1439
|
+
"class": bem$1d("circular"),
|
|
1428
1440
|
"viewBox": "25 25 50 50"
|
|
1429
1441
|
}, [vue.createVNode("circle", {
|
|
1430
1442
|
"cx": "50",
|
|
@@ -1436,7 +1448,7 @@
|
|
|
1436
1448
|
const firstHalfId = svgElementId++;
|
|
1437
1449
|
const secondHalfId = svgElementId++;
|
|
1438
1450
|
return vue.createVNode("svg", {
|
|
1439
|
-
"class": bem$
|
|
1451
|
+
"class": bem$1d("snake"),
|
|
1440
1452
|
"width": "200",
|
|
1441
1453
|
"height": "200",
|
|
1442
1454
|
"viewBox": "0 0 200 200",
|
|
@@ -1475,8 +1487,8 @@
|
|
|
1475
1487
|
"d": "M 9 100 A 91 91 0 0 1 9 100"
|
|
1476
1488
|
}, null)])]);
|
|
1477
1489
|
};
|
|
1478
|
-
var stdin_default$
|
|
1479
|
-
name: name$
|
|
1490
|
+
var stdin_default$1J = vue.defineComponent({
|
|
1491
|
+
name: name$1h,
|
|
1480
1492
|
props: loadingProps,
|
|
1481
1493
|
setup(props, {
|
|
1482
1494
|
slots
|
|
@@ -1488,7 +1500,7 @@
|
|
|
1488
1500
|
var _a;
|
|
1489
1501
|
if (slots.default) {
|
|
1490
1502
|
return vue.createVNode("span", {
|
|
1491
|
-
"class": bem$
|
|
1503
|
+
"class": bem$1d("text"),
|
|
1492
1504
|
"style": {
|
|
1493
1505
|
fontSize: addUnit(props.textSize),
|
|
1494
1506
|
color: (_a = props.textColor) != null ? _a : props.color
|
|
@@ -1502,21 +1514,21 @@
|
|
|
1502
1514
|
vertical
|
|
1503
1515
|
} = props;
|
|
1504
1516
|
return vue.createVNode("div", {
|
|
1505
|
-
"class": bem$
|
|
1517
|
+
"class": bem$1d([type, {
|
|
1506
1518
|
vertical
|
|
1507
1519
|
}]),
|
|
1508
1520
|
"aria-live": "polite",
|
|
1509
1521
|
"aria-busy": true
|
|
1510
1522
|
}, [vue.createVNode("span", {
|
|
1511
|
-
"class": bem$
|
|
1523
|
+
"class": bem$1d("spinner", type),
|
|
1512
1524
|
"style": spinnerStyle.value
|
|
1513
1525
|
}, [LoadingIcon(props)]), renderText()]);
|
|
1514
1526
|
};
|
|
1515
1527
|
}
|
|
1516
1528
|
});
|
|
1517
|
-
const Loading = withInstall(stdin_default$
|
|
1518
|
-
var stdin_default$
|
|
1519
|
-
const [name$
|
|
1529
|
+
const Loading = withInstall(stdin_default$1J);
|
|
1530
|
+
var stdin_default$1I = Loading;
|
|
1531
|
+
const [name$1g, bem$1c] = createNamespace("action-sheet");
|
|
1520
1532
|
const actionSheetProps = extend({}, popupSharedProps, {
|
|
1521
1533
|
title: String,
|
|
1522
1534
|
round: truthProp,
|
|
@@ -1530,8 +1542,8 @@
|
|
|
1530
1542
|
safeAreaInsetBottom: truthProp
|
|
1531
1543
|
});
|
|
1532
1544
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1533
|
-
var stdin_default$
|
|
1534
|
-
name: name$
|
|
1545
|
+
var stdin_default$1H = vue.defineComponent({
|
|
1546
|
+
name: name$1g,
|
|
1535
1547
|
props: actionSheetProps,
|
|
1536
1548
|
emits: ["select", "cancel", "update:show"],
|
|
1537
1549
|
setup(props, {
|
|
@@ -1546,10 +1558,10 @@
|
|
|
1546
1558
|
const renderHeader = () => {
|
|
1547
1559
|
if (props.title) {
|
|
1548
1560
|
return vue.createVNode("div", {
|
|
1549
|
-
"class": bem$
|
|
1561
|
+
"class": bem$1c("header")
|
|
1550
1562
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
|
1551
1563
|
"name": props.closeIcon,
|
|
1552
|
-
"class": [bem$
|
|
1564
|
+
"class": [bem$1c("close"), HAPTICS_FEEDBACK],
|
|
1553
1565
|
"onClick": onCancel
|
|
1554
1566
|
}, null)]);
|
|
1555
1567
|
}
|
|
@@ -1557,10 +1569,10 @@
|
|
|
1557
1569
|
const renderCancel = () => {
|
|
1558
1570
|
if (slots.cancel || props.cancelText) {
|
|
1559
1571
|
return [vue.createVNode("div", {
|
|
1560
|
-
"class": bem$
|
|
1572
|
+
"class": bem$1c("cancel")
|
|
1561
1573
|
}, [vue.createVNode("button", {
|
|
1562
1574
|
"type": "button",
|
|
1563
|
-
"class": bem$
|
|
1575
|
+
"class": bem$1c("cancel-btn"),
|
|
1564
1576
|
"onClick": onCancel
|
|
1565
1577
|
}, [slots.cancel ? slots.cancel() : props.cancelText])])];
|
|
1566
1578
|
}
|
|
@@ -1568,7 +1580,7 @@
|
|
|
1568
1580
|
const renderActionContent = (action, index) => {
|
|
1569
1581
|
if (action.loading) {
|
|
1570
1582
|
return vue.createVNode(Loading, {
|
|
1571
|
-
"class": bem$
|
|
1583
|
+
"class": bem$1c("loading-icon")
|
|
1572
1584
|
}, null);
|
|
1573
1585
|
}
|
|
1574
1586
|
if (slots.action) {
|
|
@@ -1578,9 +1590,9 @@
|
|
|
1578
1590
|
});
|
|
1579
1591
|
}
|
|
1580
1592
|
return [vue.createVNode("span", {
|
|
1581
|
-
"class": bem$
|
|
1593
|
+
"class": bem$1c("name")
|
|
1582
1594
|
}, [action.name]), action.subname && vue.createVNode("div", {
|
|
1583
|
-
"class": bem$
|
|
1595
|
+
"class": bem$1c("subname")
|
|
1584
1596
|
}, [action.subname])];
|
|
1585
1597
|
};
|
|
1586
1598
|
const renderAction = (action, index) => {
|
|
@@ -1613,7 +1625,7 @@
|
|
|
1613
1625
|
"style": {
|
|
1614
1626
|
color
|
|
1615
1627
|
},
|
|
1616
|
-
"class": [bem$
|
|
1628
|
+
"class": [bem$1c("item", {
|
|
1617
1629
|
loading,
|
|
1618
1630
|
disabled,
|
|
1619
1631
|
"with-sub": action.subname
|
|
@@ -1627,29 +1639,29 @@
|
|
|
1627
1639
|
if (props.description || slots.description) {
|
|
1628
1640
|
const content = slots.description ? slots.description() : props.description;
|
|
1629
1641
|
return vue.createVNode("div", {
|
|
1630
|
-
"class": bem$
|
|
1642
|
+
"class": bem$1c("description", {
|
|
1631
1643
|
custom: !!slots.description
|
|
1632
1644
|
})
|
|
1633
1645
|
}, [content]);
|
|
1634
1646
|
}
|
|
1635
1647
|
};
|
|
1636
1648
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
1637
|
-
"class": bem$
|
|
1649
|
+
"class": bem$1c(),
|
|
1638
1650
|
"position": "bottom",
|
|
1639
1651
|
"onUpdate:show": updateShow
|
|
1640
1652
|
}, pick(props, popupInheritKeys$1)), {
|
|
1641
1653
|
default: () => {
|
|
1642
1654
|
var _a;
|
|
1643
1655
|
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
|
1644
|
-
"class": bem$
|
|
1656
|
+
"class": bem$1c("content")
|
|
1645
1657
|
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
1646
1658
|
}
|
|
1647
1659
|
});
|
|
1648
1660
|
}
|
|
1649
1661
|
});
|
|
1650
|
-
const ActionSheet = withInstall(stdin_default$
|
|
1651
|
-
var stdin_default$
|
|
1652
|
-
const [name$
|
|
1662
|
+
const ActionSheet = withInstall(stdin_default$1H);
|
|
1663
|
+
var stdin_default$1G = ActionSheet;
|
|
1664
|
+
const [name$1f, bem$1b] = createNamespace("image");
|
|
1653
1665
|
const imageProps = {
|
|
1654
1666
|
src: String,
|
|
1655
1667
|
alt: String,
|
|
@@ -1668,8 +1680,8 @@
|
|
|
1668
1680
|
showLoading: truthProp,
|
|
1669
1681
|
loadingIcon: makeStringProp("photo-default")
|
|
1670
1682
|
};
|
|
1671
|
-
var stdin_default$
|
|
1672
|
-
name: name$
|
|
1683
|
+
var stdin_default$1F = vue.defineComponent({
|
|
1684
|
+
name: name$1f,
|
|
1673
1685
|
props: imageProps,
|
|
1674
1686
|
emits: ["load", "error"],
|
|
1675
1687
|
setup(props, {
|
|
@@ -1720,13 +1732,13 @@
|
|
|
1720
1732
|
const renderPlaceholder = () => {
|
|
1721
1733
|
if (loading.value && props.showLoading) {
|
|
1722
1734
|
return vue.createVNode("div", {
|
|
1723
|
-
"class": bem$
|
|
1724
|
-
}, [renderIcon(props.loadingIcon, bem$
|
|
1735
|
+
"class": bem$1b("loading")
|
|
1736
|
+
}, [renderIcon(props.loadingIcon, bem$1b("loading-icon"), slots.loading)]);
|
|
1725
1737
|
}
|
|
1726
1738
|
if (error.value && props.showError) {
|
|
1727
1739
|
return vue.createVNode("div", {
|
|
1728
|
-
"class": bem$
|
|
1729
|
-
}, [renderIcon(props.errorIcon, bem$
|
|
1740
|
+
"class": bem$1b("error")
|
|
1741
|
+
}, [renderIcon(props.errorIcon, bem$1b("error-icon"), slots.error)]);
|
|
1730
1742
|
}
|
|
1731
1743
|
};
|
|
1732
1744
|
const renderImage = () => {
|
|
@@ -1735,7 +1747,7 @@
|
|
|
1735
1747
|
}
|
|
1736
1748
|
const attrs = {
|
|
1737
1749
|
alt: props.alt,
|
|
1738
|
-
class: bem$
|
|
1750
|
+
class: bem$1b("img"),
|
|
1739
1751
|
style: {
|
|
1740
1752
|
objectFit: props.fit,
|
|
1741
1753
|
objectPosition: props.position
|
|
@@ -1784,7 +1796,7 @@
|
|
|
1784
1796
|
return () => {
|
|
1785
1797
|
var _a;
|
|
1786
1798
|
return vue.createVNode("div", {
|
|
1787
|
-
"class": bem$
|
|
1799
|
+
"class": bem$1b({
|
|
1788
1800
|
round: props.round,
|
|
1789
1801
|
block: props.block
|
|
1790
1802
|
}),
|
|
@@ -1793,9 +1805,9 @@
|
|
|
1793
1805
|
};
|
|
1794
1806
|
}
|
|
1795
1807
|
});
|
|
1796
|
-
const Image$1 = withInstall(stdin_default$
|
|
1797
|
-
var stdin_default$
|
|
1798
|
-
const [name$
|
|
1808
|
+
const Image$1 = withInstall(stdin_default$1F);
|
|
1809
|
+
var stdin_default$1E = Image$1;
|
|
1810
|
+
const [name$1e, bem$1a] = createNamespace("avatar");
|
|
1799
1811
|
const avatarProps = {
|
|
1800
1812
|
src: makeStringProp(""),
|
|
1801
1813
|
size: makeStringProp("medium"),
|
|
@@ -1804,8 +1816,8 @@
|
|
|
1804
1816
|
textBgColor: String,
|
|
1805
1817
|
border: Boolean
|
|
1806
1818
|
};
|
|
1807
|
-
var stdin_default$
|
|
1808
|
-
name: name$
|
|
1819
|
+
var stdin_default$1D = vue.defineComponent({
|
|
1820
|
+
name: name$1e,
|
|
1809
1821
|
props: avatarProps,
|
|
1810
1822
|
setup(props) {
|
|
1811
1823
|
const headText = vue.computed(() => {
|
|
@@ -1836,7 +1848,7 @@
|
|
|
1836
1848
|
}
|
|
1837
1849
|
});
|
|
1838
1850
|
const renderText = () => vue.createVNode("div", {
|
|
1839
|
-
"class": bem$
|
|
1851
|
+
"class": bem$1a("img", [classArr.value, {
|
|
1840
1852
|
border: props.border
|
|
1841
1853
|
}]),
|
|
1842
1854
|
"style": style.value
|
|
@@ -1845,9 +1857,9 @@
|
|
|
1845
1857
|
if (!props.src) {
|
|
1846
1858
|
return renderText();
|
|
1847
1859
|
}
|
|
1848
|
-
return vue.createVNode(stdin_default$
|
|
1860
|
+
return vue.createVNode(stdin_default$1E, {
|
|
1849
1861
|
"round": props.shape === "round",
|
|
1850
|
-
"class": bem$
|
|
1862
|
+
"class": bem$1a("img", [classArr.value, {
|
|
1851
1863
|
border: props.border
|
|
1852
1864
|
}]),
|
|
1853
1865
|
"style": style.value,
|
|
@@ -1858,7 +1870,7 @@
|
|
|
1858
1870
|
};
|
|
1859
1871
|
}
|
|
1860
1872
|
});
|
|
1861
|
-
const Avatar = withInstall(stdin_default$
|
|
1873
|
+
const Avatar = withInstall(stdin_default$1D);
|
|
1862
1874
|
const routeProps = {
|
|
1863
1875
|
to: [String, Object],
|
|
1864
1876
|
url: String,
|
|
@@ -1880,7 +1892,7 @@
|
|
|
1880
1892
|
const vm = vue.getCurrentInstance().proxy;
|
|
1881
1893
|
return () => route(vm);
|
|
1882
1894
|
}
|
|
1883
|
-
const [name$
|
|
1895
|
+
const [name$1d, bem$19] = createNamespace("button");
|
|
1884
1896
|
const buttonProps = extend({}, routeProps, {
|
|
1885
1897
|
tag: makeStringProp("button"),
|
|
1886
1898
|
text: String,
|
|
@@ -1907,8 +1919,8 @@
|
|
|
1907
1919
|
loadingType: String,
|
|
1908
1920
|
iconPosition: makeStringProp("left")
|
|
1909
1921
|
});
|
|
1910
|
-
var stdin_default$
|
|
1911
|
-
name: name$
|
|
1922
|
+
var stdin_default$1C = vue.defineComponent({
|
|
1923
|
+
name: name$1d,
|
|
1912
1924
|
props: buttonProps,
|
|
1913
1925
|
emits: ["click"],
|
|
1914
1926
|
setup(props, {
|
|
@@ -1923,7 +1935,7 @@
|
|
|
1923
1935
|
return vue.createVNode(Loading, {
|
|
1924
1936
|
"size": props.loadingSize,
|
|
1925
1937
|
"type": props.loadingType,
|
|
1926
|
-
"class": bem$
|
|
1938
|
+
"class": bem$19("loading")
|
|
1927
1939
|
}, null);
|
|
1928
1940
|
};
|
|
1929
1941
|
const renderIcon = () => {
|
|
@@ -1935,14 +1947,14 @@
|
|
|
1935
1947
|
} = props;
|
|
1936
1948
|
if (slots.icon) {
|
|
1937
1949
|
return vue.createVNode("div", {
|
|
1938
|
-
"class": bem$
|
|
1950
|
+
"class": bem$19("icon", size)
|
|
1939
1951
|
}, [slots.icon()]);
|
|
1940
1952
|
}
|
|
1941
1953
|
if (props.icon) {
|
|
1942
1954
|
return vue.createVNode(Icon, {
|
|
1943
1955
|
"name": props.icon,
|
|
1944
1956
|
"color": props.iconColor,
|
|
1945
|
-
"class": bem$
|
|
1957
|
+
"class": bem$19("icon", size),
|
|
1946
1958
|
"classPrefix": props.iconPrefix
|
|
1947
1959
|
}, null);
|
|
1948
1960
|
}
|
|
@@ -1956,7 +1968,7 @@
|
|
|
1956
1968
|
}
|
|
1957
1969
|
if (text) {
|
|
1958
1970
|
return vue.createVNode("span", {
|
|
1959
|
-
"class": bem$
|
|
1971
|
+
"class": bem$19("text")
|
|
1960
1972
|
}, [text]);
|
|
1961
1973
|
}
|
|
1962
1974
|
};
|
|
@@ -2013,7 +2025,7 @@
|
|
|
2013
2025
|
nativeType,
|
|
2014
2026
|
iconPosition
|
|
2015
2027
|
} = props;
|
|
2016
|
-
const classes = [bem$
|
|
2028
|
+
const classes = [bem$19([type, size, {
|
|
2017
2029
|
plain,
|
|
2018
2030
|
block,
|
|
2019
2031
|
"block-inner": blockInner ? "block-inner" : "",
|
|
@@ -2033,16 +2045,16 @@
|
|
|
2033
2045
|
"onClick": onClick
|
|
2034
2046
|
}, {
|
|
2035
2047
|
default: () => [vue.createVNode("div", {
|
|
2036
|
-
"class": bem$
|
|
2048
|
+
"class": bem$19("content")
|
|
2037
2049
|
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
|
2038
2050
|
});
|
|
2039
2051
|
};
|
|
2040
2052
|
}
|
|
2041
2053
|
});
|
|
2042
|
-
const Button = withInstall(stdin_default$
|
|
2043
|
-
var stdin_default$
|
|
2054
|
+
const Button = withInstall(stdin_default$1C);
|
|
2055
|
+
var stdin_default$1B = Button;
|
|
2044
2056
|
const monthsOfYear = 12;
|
|
2045
|
-
const [name$
|
|
2057
|
+
const [name$1c, bem$18, t$8] = createNamespace("calendar");
|
|
2046
2058
|
const formatMonthTitle = (date) => t$8("ztCalendar.monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
2047
2059
|
function compareMonth(date1, date2) {
|
|
2048
2060
|
const year1 = date1.getFullYear();
|
|
@@ -2128,7 +2140,7 @@
|
|
|
2128
2140
|
}
|
|
2129
2141
|
}
|
|
2130
2142
|
}
|
|
2131
|
-
const [name$
|
|
2143
|
+
const [name$1b, bem$17] = createNamespace("toast");
|
|
2132
2144
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
2133
2145
|
const toastProps = {
|
|
2134
2146
|
icon: String,
|
|
@@ -2151,8 +2163,8 @@
|
|
|
2151
2163
|
closeOnClick: Boolean,
|
|
2152
2164
|
closeOnClickOverlay: Boolean
|
|
2153
2165
|
};
|
|
2154
|
-
var stdin_default$
|
|
2155
|
-
name: name$
|
|
2166
|
+
var stdin_default$1A = vue.defineComponent({
|
|
2167
|
+
name: name$1b,
|
|
2156
2168
|
props: toastProps,
|
|
2157
2169
|
emits: ["update:show"],
|
|
2158
2170
|
setup(props, {
|
|
@@ -2187,13 +2199,13 @@
|
|
|
2187
2199
|
return vue.createVNode(Icon, {
|
|
2188
2200
|
"name": icon || type,
|
|
2189
2201
|
"size": iconSize,
|
|
2190
|
-
"class": bem$
|
|
2202
|
+
"class": bem$17("icon"),
|
|
2191
2203
|
"classPrefix": iconPrefix
|
|
2192
2204
|
}, null);
|
|
2193
2205
|
}
|
|
2194
2206
|
if (type === "loading") {
|
|
2195
2207
|
return vue.createVNode(Loading, {
|
|
2196
|
-
"class": bem$
|
|
2208
|
+
"class": bem$17("loading"),
|
|
2197
2209
|
"size": iconSize,
|
|
2198
2210
|
"type": loadingType
|
|
2199
2211
|
}, null);
|
|
@@ -2207,10 +2219,10 @@
|
|
|
2207
2219
|
if (isDef(message) && message !== "") {
|
|
2208
2220
|
return type === "html" ? vue.createVNode("div", {
|
|
2209
2221
|
"key": 0,
|
|
2210
|
-
"class": bem$
|
|
2222
|
+
"class": bem$17("text"),
|
|
2211
2223
|
"innerHTML": String(message)
|
|
2212
2224
|
}, null) : vue.createVNode("div", {
|
|
2213
|
-
"class": bem$
|
|
2225
|
+
"class": bem$17("text")
|
|
2214
2226
|
}, [message]);
|
|
2215
2227
|
}
|
|
2216
2228
|
};
|
|
@@ -2226,7 +2238,7 @@
|
|
|
2226
2238
|
vue.onMounted(toggleClickable);
|
|
2227
2239
|
vue.onUnmounted(toggleClickable);
|
|
2228
2240
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
2229
|
-
"class": [bem$
|
|
2241
|
+
"class": [bem$17([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
|
|
2230
2242
|
[props.type]: !props.icon
|
|
2231
2243
|
}]), props.className],
|
|
2232
2244
|
"lockScroll": false,
|
|
@@ -2327,7 +2339,7 @@
|
|
|
2327
2339
|
onClosed,
|
|
2328
2340
|
"onUpdate:show": toggle
|
|
2329
2341
|
};
|
|
2330
|
-
return vue.createVNode(stdin_default$
|
|
2342
|
+
return vue.createVNode(stdin_default$1A, vue.mergeProps(state, attrs), null);
|
|
2331
2343
|
};
|
|
2332
2344
|
vue.watch(message, (val) => {
|
|
2333
2345
|
state.message = val;
|
|
@@ -2397,7 +2409,7 @@
|
|
|
2397
2409
|
const allowMultipleToast = (value = true) => {
|
|
2398
2410
|
allowMultiple = value;
|
|
2399
2411
|
};
|
|
2400
|
-
const Toast = withInstall(stdin_default$
|
|
2412
|
+
const Toast = withInstall(stdin_default$1A);
|
|
2401
2413
|
const useHeight = (element, withSafeArea) => {
|
|
2402
2414
|
const height2 = vue.ref();
|
|
2403
2415
|
const setHeight = () => {
|
|
@@ -2413,9 +2425,9 @@
|
|
|
2413
2425
|
});
|
|
2414
2426
|
return height2;
|
|
2415
2427
|
};
|
|
2416
|
-
const [name$
|
|
2417
|
-
var stdin_default$
|
|
2418
|
-
name: name$
|
|
2428
|
+
const [name$1a] = createNamespace("calendar-day");
|
|
2429
|
+
var stdin_default$1z = vue.defineComponent({
|
|
2430
|
+
name: name$1a,
|
|
2419
2431
|
props: {
|
|
2420
2432
|
item: makeRequiredProp(Object),
|
|
2421
2433
|
color: String,
|
|
@@ -2489,7 +2501,7 @@
|
|
|
2489
2501
|
const Nodes = [text];
|
|
2490
2502
|
if (type === "selected") {
|
|
2491
2503
|
return vue.createVNode("div", {
|
|
2492
|
-
"class": bem$
|
|
2504
|
+
"class": bem$18("selected-day"),
|
|
2493
2505
|
"style": {
|
|
2494
2506
|
width: rowHeight,
|
|
2495
2507
|
height: rowHeight,
|
|
@@ -2507,21 +2519,21 @@
|
|
|
2507
2519
|
} = props.item;
|
|
2508
2520
|
if (type === "placeholder") {
|
|
2509
2521
|
return vue.createVNode("div", {
|
|
2510
|
-
"class": bem$
|
|
2522
|
+
"class": bem$18("day"),
|
|
2511
2523
|
"style": style.value
|
|
2512
2524
|
}, null);
|
|
2513
2525
|
}
|
|
2514
2526
|
return vue.createVNode("div", {
|
|
2515
2527
|
"role": "gridcell",
|
|
2516
2528
|
"style": style.value,
|
|
2517
|
-
"class": [bem$
|
|
2529
|
+
"class": [bem$18("day", type), className],
|
|
2518
2530
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
2519
2531
|
"onClick": onClick
|
|
2520
2532
|
}, [renderContent()]);
|
|
2521
2533
|
};
|
|
2522
2534
|
}
|
|
2523
2535
|
});
|
|
2524
|
-
const [name$
|
|
2536
|
+
const [name$19] = createNamespace("calendar-month");
|
|
2525
2537
|
const calendarMonthProps = {
|
|
2526
2538
|
date: makeRequiredProp(Date),
|
|
2527
2539
|
showType: makeStringProp("inline"),
|
|
@@ -2540,8 +2552,8 @@
|
|
|
2540
2552
|
firstDayOfWeek: Number,
|
|
2541
2553
|
disabledDate: Function
|
|
2542
2554
|
};
|
|
2543
|
-
var stdin_default$
|
|
2544
|
-
name: name$
|
|
2555
|
+
var stdin_default$1y = vue.defineComponent({
|
|
2556
|
+
name: name$19,
|
|
2545
2557
|
props: calendarMonthProps,
|
|
2546
2558
|
emits: ["click"],
|
|
2547
2559
|
setup(props, {
|
|
@@ -2652,7 +2664,7 @@
|
|
|
2652
2664
|
const renderTitle = () => {
|
|
2653
2665
|
if (props.showMonthTitle) {
|
|
2654
2666
|
return vue.createVNode("div", {
|
|
2655
|
-
"class": bem$
|
|
2667
|
+
"class": bem$18("month-title")
|
|
2656
2668
|
}, [title.value]);
|
|
2657
2669
|
}
|
|
2658
2670
|
};
|
|
@@ -2725,7 +2737,7 @@
|
|
|
2725
2737
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
|
2726
2738
|
}
|
|
2727
2739
|
};
|
|
2728
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
|
2740
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1z, {
|
|
2729
2741
|
"item": item,
|
|
2730
2742
|
"index": index,
|
|
2731
2743
|
"color": props.color,
|
|
@@ -2736,7 +2748,7 @@
|
|
|
2736
2748
|
const renderDays = () => vue.createVNode("div", {
|
|
2737
2749
|
"ref": daysRef,
|
|
2738
2750
|
"role": "grid",
|
|
2739
|
-
"class": bem$
|
|
2751
|
+
"class": bem$18("days")
|
|
2740
2752
|
}, [(shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
2741
2753
|
useExpose({
|
|
2742
2754
|
getTitle,
|
|
@@ -2747,14 +2759,14 @@
|
|
|
2747
2759
|
disabledDays
|
|
2748
2760
|
});
|
|
2749
2761
|
return () => vue.createVNode("div", {
|
|
2750
|
-
"class": bem$
|
|
2762
|
+
"class": bem$18("month"),
|
|
2751
2763
|
"ref": monthRef
|
|
2752
2764
|
}, [renderTitle(), renderDays()]);
|
|
2753
2765
|
}
|
|
2754
2766
|
});
|
|
2755
|
-
const [name$
|
|
2756
|
-
var stdin_default$
|
|
2757
|
-
name: name$
|
|
2767
|
+
const [name$18] = createNamespace("calendar-header");
|
|
2768
|
+
var stdin_default$1x = vue.defineComponent({
|
|
2769
|
+
name: name$18,
|
|
2758
2770
|
props: {
|
|
2759
2771
|
title: String,
|
|
2760
2772
|
subtitle: String,
|
|
@@ -2777,7 +2789,7 @@
|
|
|
2777
2789
|
const text = props.title || "请选择日期";
|
|
2778
2790
|
const title = slots.title ? slots.title() : text;
|
|
2779
2791
|
return vue.createVNode("div", {
|
|
2780
|
-
"class": bem$
|
|
2792
|
+
"class": bem$18("header-title")
|
|
2781
2793
|
}, [title]);
|
|
2782
2794
|
}
|
|
2783
2795
|
};
|
|
@@ -2807,7 +2819,7 @@
|
|
|
2807
2819
|
"fill-rule": "evenodd"
|
|
2808
2820
|
}, [vue.createVNode("g", {
|
|
2809
2821
|
"transform": "translate(-32.000000, -320.000000)",
|
|
2810
|
-
"class": bem$
|
|
2822
|
+
"class": bem$18("svg-defs-path-fill"),
|
|
2811
2823
|
"fill-rule": "nonzero"
|
|
2812
2824
|
}, [vue.createVNode("g", {
|
|
2813
2825
|
"transform": "translate(0.000000, 70.000000)"
|
|
@@ -2845,7 +2857,7 @@
|
|
|
2845
2857
|
"fill-rule": "evenodd"
|
|
2846
2858
|
}, [vue.createVNode("g", {
|
|
2847
2859
|
"transform": "translate(-80.000000, -320.000000)",
|
|
2848
|
-
"class": bem$
|
|
2860
|
+
"class": bem$18("svg-defs-path-fill"),
|
|
2849
2861
|
"fill-rule": "nonzero"
|
|
2850
2862
|
}, [vue.createVNode("g", {
|
|
2851
2863
|
"transform": "translate(0.000000, 70.000000)"
|
|
@@ -2870,21 +2882,21 @@
|
|
|
2870
2882
|
if (props.showSubtitle) {
|
|
2871
2883
|
const title = slots.subtitle ? slots.subtitle() : props.subtitle;
|
|
2872
2884
|
return vue.createVNode("div", {
|
|
2873
|
-
"class": bem$
|
|
2885
|
+
"class": bem$18("header-subtitle")
|
|
2874
2886
|
}, [vue.createVNode("div", {
|
|
2875
|
-
"class": bem$
|
|
2887
|
+
"class": bem$18("header-subtitle", ["opt", props.yearPreEnable ? "enable" : "unenable"]),
|
|
2876
2888
|
"onClick": onClickPreIcon(false, true)
|
|
2877
2889
|
}, [fastForwardImg()]), vue.createVNode("div", {
|
|
2878
|
-
"class": bem$
|
|
2890
|
+
"class": bem$18("header-subtitle", ["opt", props.monthPreEnable ? "enable" : "unenable"]),
|
|
2879
2891
|
"onClick": onClickPreIcon(true, false)
|
|
2880
2892
|
}, [slowForward()]), vue.createVNode("label", {
|
|
2881
|
-
"class": bem$
|
|
2893
|
+
"class": bem$18("header-subtitle-text"),
|
|
2882
2894
|
"onClick": onClickSubtitle
|
|
2883
2895
|
}, [title]), vue.createVNode("div", {
|
|
2884
|
-
"class": bem$
|
|
2896
|
+
"class": bem$18("header-subtitle", ["opt", "right", [props.monthNextEnable ? "enable" : "unenable"]]),
|
|
2885
2897
|
"onClick": onClickNextIcon(true, false)
|
|
2886
2898
|
}, [slowForward()]), vue.createVNode("div", {
|
|
2887
|
-
"class": bem$
|
|
2899
|
+
"class": bem$18("header-subtitle", ["opt", "right", [props.yearNextEnable ? "enable" : "unenable"]]),
|
|
2888
2900
|
"onClick": onClickNextIcon(false, true)
|
|
2889
2901
|
}, [fastForwardImg()])]);
|
|
2890
2902
|
}
|
|
@@ -2899,13 +2911,13 @@
|
|
|
2899
2911
|
const weekdays = ["一", "二", "三", "四", "五", "六", "日"];
|
|
2900
2912
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek - 1), ...weekdays.slice(0, firstDayOfWeek - 1)];
|
|
2901
2913
|
return vue.createVNode("div", {
|
|
2902
|
-
"class": bem$
|
|
2914
|
+
"class": bem$18("weekdays")
|
|
2903
2915
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
|
2904
|
-
"class": bem$
|
|
2916
|
+
"class": bem$18("weekday")
|
|
2905
2917
|
}, [text]))]);
|
|
2906
2918
|
};
|
|
2907
2919
|
return () => vue.createVNode("div", {
|
|
2908
|
-
"class": bem$
|
|
2920
|
+
"class": bem$18("header")
|
|
2909
2921
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
2910
2922
|
}
|
|
2911
2923
|
});
|
|
@@ -2948,8 +2960,8 @@
|
|
|
2948
2960
|
},
|
|
2949
2961
|
disabledDate: Function
|
|
2950
2962
|
};
|
|
2951
|
-
var stdin_default$
|
|
2952
|
-
name: name$
|
|
2963
|
+
var stdin_default$1w = vue.defineComponent({
|
|
2964
|
+
name: name$1c,
|
|
2953
2965
|
props: calendarProps,
|
|
2954
2966
|
emits: ["select", "confirm", "cancel", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
|
2955
2967
|
setup(props, {
|
|
@@ -3301,7 +3313,7 @@
|
|
|
3301
3313
|
const updateShow = (value) => emit("update:show", value);
|
|
3302
3314
|
const renderMonth = (date, index) => {
|
|
3303
3315
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
|
3304
|
-
return vue.createVNode(stdin_default$
|
|
3316
|
+
return vue.createVNode(stdin_default$1y, vue.mergeProps({
|
|
3305
3317
|
"ref": setMonthRefs(index),
|
|
3306
3318
|
"date": date,
|
|
3307
3319
|
"currentDate": currentDate.value,
|
|
@@ -3345,13 +3357,13 @@
|
|
|
3345
3357
|
}
|
|
3346
3358
|
};
|
|
3347
3359
|
const renderFooter = () => vue.createVNode("div", {
|
|
3348
|
-
"class": [bem$
|
|
3360
|
+
"class": [bem$18("footer"), {
|
|
3349
3361
|
"zt-safe-area-bottom": props.safeAreaInsetBottom
|
|
3350
3362
|
}]
|
|
3351
3363
|
}, [renderFooterButton()]);
|
|
3352
3364
|
const renderCalendar = () => vue.createVNode("div", {
|
|
3353
|
-
"class": bem$
|
|
3354
|
-
}, [vue.createVNode(stdin_default$
|
|
3365
|
+
"class": bem$18()
|
|
3366
|
+
}, [vue.createVNode(stdin_default$1x, {
|
|
3355
3367
|
"title": props.title,
|
|
3356
3368
|
"subtitle": subtitle.value,
|
|
3357
3369
|
"showTitle": props.showTitle,
|
|
@@ -3367,7 +3379,7 @@
|
|
|
3367
3379
|
"monthNextEnable": monthNextEnable.value
|
|
3368
3380
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
|
3369
3381
|
"ref": bodyRef,
|
|
3370
|
-
"class": bem$
|
|
3382
|
+
"class": bem$18("body"),
|
|
3371
3383
|
"onScroll": onScroll
|
|
3372
3384
|
}, [months.value.map(renderMonth)]), props.popup ? renderFooter() : ""]);
|
|
3373
3385
|
vue.watch(() => props.show, init);
|
|
@@ -3391,7 +3403,7 @@
|
|
|
3391
3403
|
if (props.popup) {
|
|
3392
3404
|
return vue.createVNode(Popup, {
|
|
3393
3405
|
"show": props.show,
|
|
3394
|
-
"class": bem$
|
|
3406
|
+
"class": bem$18("popup"),
|
|
3395
3407
|
"round": props.round,
|
|
3396
3408
|
"position": props.position,
|
|
3397
3409
|
"teleport": props.teleport,
|
|
@@ -3407,7 +3419,7 @@
|
|
|
3407
3419
|
};
|
|
3408
3420
|
}
|
|
3409
3421
|
});
|
|
3410
|
-
const Calendar = withInstall(stdin_default$
|
|
3422
|
+
const Calendar = withInstall(stdin_default$1w);
|
|
3411
3423
|
function scrollLeftTo(scroller, to, duration) {
|
|
3412
3424
|
let count = 0;
|
|
3413
3425
|
const from = scroller.scrollLeft;
|
|
@@ -3469,7 +3481,7 @@
|
|
|
3469
3481
|
vue.onBeforeUnmount(unobserve);
|
|
3470
3482
|
onMountedOrActivated(observe);
|
|
3471
3483
|
}
|
|
3472
|
-
const [name$
|
|
3484
|
+
const [name$17, bem$16] = createNamespace("sticky");
|
|
3473
3485
|
const stickyProps = {
|
|
3474
3486
|
zIndex: numericProp,
|
|
3475
3487
|
position: makeStringProp("top"),
|
|
@@ -3477,8 +3489,8 @@
|
|
|
3477
3489
|
offsetTop: makeNumericProp(0),
|
|
3478
3490
|
offsetBottom: makeNumericProp(0)
|
|
3479
3491
|
};
|
|
3480
|
-
var stdin_default$
|
|
3481
|
-
name: name$
|
|
3492
|
+
var stdin_default$1v = vue.defineComponent({
|
|
3493
|
+
name: name$17,
|
|
3482
3494
|
props: stickyProps,
|
|
3483
3495
|
emits: ["scroll", "change"],
|
|
3484
3496
|
setup(props, {
|
|
@@ -3575,7 +3587,7 @@
|
|
|
3575
3587
|
"ref": root,
|
|
3576
3588
|
"style": rootStyle.value
|
|
3577
3589
|
}, [vue.createVNode("div", {
|
|
3578
|
-
"class": bem$
|
|
3590
|
+
"class": bem$16({
|
|
3579
3591
|
fixed: state.fixed
|
|
3580
3592
|
}),
|
|
3581
3593
|
"style": stickyStyle.value
|
|
@@ -3583,10 +3595,10 @@
|
|
|
3583
3595
|
};
|
|
3584
3596
|
}
|
|
3585
3597
|
});
|
|
3586
|
-
const Sticky = withInstall(stdin_default$
|
|
3587
|
-
const [name$
|
|
3588
|
-
var stdin_default$
|
|
3589
|
-
name: name$
|
|
3598
|
+
const Sticky = withInstall(stdin_default$1v);
|
|
3599
|
+
const [name$16, bem$15] = createNamespace("tab");
|
|
3600
|
+
var stdin_default$1u = vue.defineComponent({
|
|
3601
|
+
name: name$16,
|
|
3590
3602
|
props: {
|
|
3591
3603
|
id: String,
|
|
3592
3604
|
dot: Boolean,
|
|
@@ -3641,7 +3653,7 @@
|
|
|
3641
3653
|
});
|
|
3642
3654
|
const renderText = () => {
|
|
3643
3655
|
const Text = vue.createVNode("span", {
|
|
3644
|
-
"class": bem$
|
|
3656
|
+
"class": bem$15("text", {
|
|
3645
3657
|
ellipsis: !props.scrollable
|
|
3646
3658
|
})
|
|
3647
3659
|
}, [slots.title ? slots.title() : props.title]);
|
|
@@ -3659,7 +3671,7 @@
|
|
|
3659
3671
|
return () => vue.createVNode("div", {
|
|
3660
3672
|
"id": props.id,
|
|
3661
3673
|
"role": "tab",
|
|
3662
|
-
"class": [bem$
|
|
3674
|
+
"class": [bem$15([props.type, {
|
|
3663
3675
|
grow: props.scrollable && !props.shrink,
|
|
3664
3676
|
shrink: props.shrink,
|
|
3665
3677
|
active: props.isActive,
|
|
@@ -3673,7 +3685,7 @@
|
|
|
3673
3685
|
}, [renderText()]);
|
|
3674
3686
|
}
|
|
3675
3687
|
});
|
|
3676
|
-
const [name$
|
|
3688
|
+
const [name$15, bem$14] = createNamespace("swipe");
|
|
3677
3689
|
const swipeProps = {
|
|
3678
3690
|
loop: truthProp,
|
|
3679
3691
|
width: numericProp,
|
|
@@ -3689,9 +3701,9 @@
|
|
|
3689
3701
|
stopPropagation: truthProp,
|
|
3690
3702
|
title: Array
|
|
3691
3703
|
};
|
|
3692
|
-
const SWIPE_KEY = Symbol(name$
|
|
3693
|
-
var stdin_default$
|
|
3694
|
-
name: name$
|
|
3704
|
+
const SWIPE_KEY = Symbol(name$15);
|
|
3705
|
+
var stdin_default$1t = vue.defineComponent({
|
|
3706
|
+
name: name$15,
|
|
3695
3707
|
props: swipeProps,
|
|
3696
3708
|
emits: ["change", "dragStart", "dragEnd"],
|
|
3697
3709
|
setup(props, {
|
|
@@ -3962,7 +3974,7 @@
|
|
|
3962
3974
|
const renderDot = (_, index) => {
|
|
3963
3975
|
const active = index === activeIndicator.value;
|
|
3964
3976
|
return vue.createVNode("i", {
|
|
3965
|
-
"class": bem$
|
|
3977
|
+
"class": bem$14("indicator", {
|
|
3966
3978
|
active
|
|
3967
3979
|
})
|
|
3968
3980
|
}, null);
|
|
@@ -3976,7 +3988,7 @@
|
|
|
3976
3988
|
}
|
|
3977
3989
|
if (props.showIndicators && count.value > 1) {
|
|
3978
3990
|
return vue.createVNode("div", {
|
|
3979
|
-
"class": bem$
|
|
3991
|
+
"class": bem$14("indicators", {
|
|
3980
3992
|
vertical: props.vertical
|
|
3981
3993
|
})
|
|
3982
3994
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -3985,17 +3997,17 @@
|
|
|
3985
3997
|
const titleDiv = () => {
|
|
3986
3998
|
if (Array.isArray(props.title)) {
|
|
3987
3999
|
return vue.createVNode("div", {
|
|
3988
|
-
"class": bem$
|
|
4000
|
+
"class": bem$14("title")
|
|
3989
4001
|
}, [activeIndicator.value < props.title.length ? props.title[activeIndicator.value] : ""]);
|
|
3990
4002
|
}
|
|
3991
4003
|
return vue.createVNode("div", {
|
|
3992
|
-
"class": bem$
|
|
4004
|
+
"class": bem$14("title")
|
|
3993
4005
|
}, [props.title]);
|
|
3994
4006
|
};
|
|
3995
4007
|
const foot = () => {
|
|
3996
4008
|
if (props.title) {
|
|
3997
4009
|
return vue.createVNode("div", {
|
|
3998
|
-
"class": bem$
|
|
4010
|
+
"class": bem$14("foot")
|
|
3999
4011
|
}, [titleDiv(), renderIndicator()]);
|
|
4000
4012
|
}
|
|
4001
4013
|
return vue.createVNode("div", null, [titleDiv(), renderIndicator()]);
|
|
@@ -4035,10 +4047,10 @@
|
|
|
4035
4047
|
var _a;
|
|
4036
4048
|
return vue.createVNode("div", {
|
|
4037
4049
|
"ref": root,
|
|
4038
|
-
"class": bem$
|
|
4050
|
+
"class": bem$14()
|
|
4039
4051
|
}, [vue.createVNode("div", {
|
|
4040
4052
|
"style": trackStyle.value,
|
|
4041
|
-
"class": bem$
|
|
4053
|
+
"class": bem$14("track", {
|
|
4042
4054
|
vertical: props.vertical
|
|
4043
4055
|
}),
|
|
4044
4056
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -4049,10 +4061,10 @@
|
|
|
4049
4061
|
};
|
|
4050
4062
|
}
|
|
4051
4063
|
});
|
|
4052
|
-
const Swipe = withInstall(stdin_default$
|
|
4053
|
-
const [name$
|
|
4054
|
-
var stdin_default$
|
|
4055
|
-
name: name$
|
|
4064
|
+
const Swipe = withInstall(stdin_default$1t);
|
|
4065
|
+
const [name$14, bem$13] = createNamespace("tabs");
|
|
4066
|
+
var stdin_default$1s = vue.defineComponent({
|
|
4067
|
+
name: name$14,
|
|
4056
4068
|
props: {
|
|
4057
4069
|
count: makeRequiredProp(Number),
|
|
4058
4070
|
inited: Boolean,
|
|
@@ -4076,7 +4088,7 @@
|
|
|
4076
4088
|
return vue.createVNode(Swipe, {
|
|
4077
4089
|
"ref": swipeRef,
|
|
4078
4090
|
"loop": false,
|
|
4079
|
-
"class": bem$
|
|
4091
|
+
"class": bem$13("track"),
|
|
4080
4092
|
"duration": +props.duration * 1e3,
|
|
4081
4093
|
"touchable": props.swipeable,
|
|
4082
4094
|
"lazyRender": props.lazyRender,
|
|
@@ -4101,13 +4113,13 @@
|
|
|
4101
4113
|
swipeToCurrentTab(props.currentIndex);
|
|
4102
4114
|
});
|
|
4103
4115
|
return () => vue.createVNode("div", {
|
|
4104
|
-
"class": bem$
|
|
4116
|
+
"class": bem$13("content", {
|
|
4105
4117
|
animated: props.animated || props.swipeable
|
|
4106
4118
|
})
|
|
4107
4119
|
}, [renderChildren()]);
|
|
4108
4120
|
}
|
|
4109
4121
|
});
|
|
4110
|
-
const [name$
|
|
4122
|
+
const [name$13, bem$12] = createNamespace("tabs");
|
|
4111
4123
|
const tabsProps = {
|
|
4112
4124
|
type: makeStringProp("line"),
|
|
4113
4125
|
color: String,
|
|
@@ -4130,9 +4142,9 @@
|
|
|
4130
4142
|
titleActiveColor: String,
|
|
4131
4143
|
titleInactiveColor: String
|
|
4132
4144
|
};
|
|
4133
|
-
const TABS_KEY = Symbol(name$
|
|
4134
|
-
var stdin_default$
|
|
4135
|
-
name: name$
|
|
4145
|
+
const TABS_KEY = Symbol(name$13);
|
|
4146
|
+
var stdin_default$1r = vue.defineComponent({
|
|
4147
|
+
name: name$13,
|
|
4136
4148
|
props: tabsProps,
|
|
4137
4149
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
|
4138
4150
|
setup(props, {
|
|
@@ -4322,7 +4334,7 @@
|
|
|
4322
4334
|
state.showLeftOverlay = Math.floor(target.scrollLeft) > 0;
|
|
4323
4335
|
state.showRightOverlay = hasScrollToEnd(target);
|
|
4324
4336
|
};
|
|
4325
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
|
4337
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1u, vue.mergeProps({
|
|
4326
4338
|
"key": item.id,
|
|
4327
4339
|
"id": `${id}-${index}`,
|
|
4328
4340
|
"ref": setTitleRefs(index),
|
|
@@ -4343,7 +4355,7 @@
|
|
|
4343
4355
|
const renderLine = () => {
|
|
4344
4356
|
if (props.type === "line" && children.length) {
|
|
4345
4357
|
return vue.createVNode("div", {
|
|
4346
|
-
"class": bem$
|
|
4358
|
+
"class": bem$12("line"),
|
|
4347
4359
|
"style": state.lineStyle
|
|
4348
4360
|
}, null);
|
|
4349
4361
|
}
|
|
@@ -4351,14 +4363,14 @@
|
|
|
4351
4363
|
const renderOverlayLeft = () => {
|
|
4352
4364
|
if (state.showLeftOverlay) {
|
|
4353
4365
|
return vue.createVNode("div", {
|
|
4354
|
-
"class": bem$
|
|
4366
|
+
"class": bem$12("overlay-left")
|
|
4355
4367
|
}, null);
|
|
4356
4368
|
}
|
|
4357
4369
|
};
|
|
4358
4370
|
const renderOverlayRight = () => {
|
|
4359
4371
|
if (state.showRightOverlay) {
|
|
4360
4372
|
return vue.createVNode("div", {
|
|
4361
|
-
"class": bem$
|
|
4373
|
+
"class": bem$12("overlay-right")
|
|
4362
4374
|
}, null);
|
|
4363
4375
|
}
|
|
4364
4376
|
};
|
|
@@ -4370,13 +4382,13 @@
|
|
|
4370
4382
|
} = props;
|
|
4371
4383
|
return vue.createVNode("div", {
|
|
4372
4384
|
"ref": wrapRef,
|
|
4373
|
-
"class": [bem$
|
|
4385
|
+
"class": [bem$12("wrap"), {
|
|
4374
4386
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
4375
4387
|
}]
|
|
4376
4388
|
}, [vue.createVNode("div", {
|
|
4377
4389
|
"ref": navRef,
|
|
4378
4390
|
"role": "tablist",
|
|
4379
|
-
"class": bem$
|
|
4391
|
+
"class": bem$12("nav", [type, {
|
|
4380
4392
|
shrink: props.shrink,
|
|
4381
4393
|
complete: scrollable.value
|
|
4382
4394
|
}]),
|
|
@@ -4446,7 +4458,7 @@
|
|
|
4446
4458
|
var _a;
|
|
4447
4459
|
return vue.createVNode("div", {
|
|
4448
4460
|
"ref": root,
|
|
4449
|
-
"class": bem$
|
|
4461
|
+
"class": bem$12([props.type])
|
|
4450
4462
|
}, [props.sticky ? vue.createVNode(Sticky, {
|
|
4451
4463
|
"container": root.value,
|
|
4452
4464
|
"offsetTop": offsetTopPx.value,
|
|
@@ -4456,7 +4468,7 @@
|
|
|
4456
4468
|
var _a2;
|
|
4457
4469
|
return [renderHeader(), (_a2 = slots["nav-bottom"]) == null ? void 0 : _a2.call(slots)];
|
|
4458
4470
|
}
|
|
4459
|
-
}) : [renderHeader(), (_a = slots["nav-bottom"]) == null ? void 0 : _a.call(slots)], vue.createVNode(stdin_default$
|
|
4471
|
+
}) : [renderHeader(), (_a = slots["nav-bottom"]) == null ? void 0 : _a.call(slots)], vue.createVNode(stdin_default$1s, {
|
|
4460
4472
|
"count": children.length,
|
|
4461
4473
|
"inited": state.inited,
|
|
4462
4474
|
"animated": props.animated,
|
|
@@ -4476,9 +4488,9 @@
|
|
|
4476
4488
|
});
|
|
4477
4489
|
const TAB_STATUS_KEY = Symbol();
|
|
4478
4490
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
|
4479
|
-
const [name$
|
|
4480
|
-
var stdin_default$
|
|
4481
|
-
name: name$
|
|
4491
|
+
const [name$12, bem$11] = createNamespace("swipe-item");
|
|
4492
|
+
var stdin_default$1q = vue.defineComponent({
|
|
4493
|
+
name: name$12,
|
|
4482
4494
|
setup(props, {
|
|
4483
4495
|
slots
|
|
4484
4496
|
}) {
|
|
@@ -4540,14 +4552,14 @@
|
|
|
4540
4552
|
return () => {
|
|
4541
4553
|
var _a;
|
|
4542
4554
|
return vue.createVNode("div", {
|
|
4543
|
-
"class": bem$
|
|
4555
|
+
"class": bem$11(),
|
|
4544
4556
|
"style": style.value
|
|
4545
4557
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
4546
4558
|
};
|
|
4547
4559
|
}
|
|
4548
4560
|
});
|
|
4549
|
-
const SwipeItem = withInstall(stdin_default$
|
|
4550
|
-
const [name$
|
|
4561
|
+
const SwipeItem = withInstall(stdin_default$1q);
|
|
4562
|
+
const [name$11, bem$10] = createNamespace("tab");
|
|
4551
4563
|
const tabProps = extend({}, routeProps, {
|
|
4552
4564
|
dot: Boolean,
|
|
4553
4565
|
name: numericProp,
|
|
@@ -4558,8 +4570,8 @@
|
|
|
4558
4570
|
titleStyle: [String, Object],
|
|
4559
4571
|
showZeroBadge: truthProp
|
|
4560
4572
|
});
|
|
4561
|
-
var stdin_default$
|
|
4562
|
-
name: name$
|
|
4573
|
+
var stdin_default$1p = vue.defineComponent({
|
|
4574
|
+
name: name$11,
|
|
4563
4575
|
props: tabProps,
|
|
4564
4576
|
setup(props, {
|
|
4565
4577
|
slots
|
|
@@ -4614,7 +4626,7 @@
|
|
|
4614
4626
|
return vue.createVNode(SwipeItem, {
|
|
4615
4627
|
"id": id,
|
|
4616
4628
|
"role": "tabpanel",
|
|
4617
|
-
"class": bem
|
|
4629
|
+
"class": bem$10("panel-wrapper", {
|
|
4618
4630
|
inactive: !active.value
|
|
4619
4631
|
}),
|
|
4620
4632
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -4624,7 +4636,7 @@
|
|
|
4624
4636
|
default: () => {
|
|
4625
4637
|
var _a2;
|
|
4626
4638
|
return [vue.createVNode("div", {
|
|
4627
|
-
"class": bem
|
|
4639
|
+
"class": bem$10("panel")
|
|
4628
4640
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
4629
4641
|
}
|
|
4630
4642
|
});
|
|
@@ -4637,23 +4649,23 @@
|
|
|
4637
4649
|
return vue.withDirectives(vue.createVNode("div", {
|
|
4638
4650
|
"id": id,
|
|
4639
4651
|
"role": "tabpanel",
|
|
4640
|
-
"class": bem
|
|
4652
|
+
"class": bem$10("panel"),
|
|
4641
4653
|
"tabindex": show ? 0 : -1,
|
|
4642
4654
|
"aria-labelledby": label
|
|
4643
4655
|
}, [Content]), [[vue.vShow, show]]);
|
|
4644
4656
|
};
|
|
4645
4657
|
}
|
|
4646
4658
|
});
|
|
4647
|
-
const Tab = withInstall(stdin_default$
|
|
4648
|
-
const Tabs = withInstall(stdin_default$
|
|
4649
|
-
const [name
|
|
4659
|
+
const Tab = withInstall(stdin_default$1p);
|
|
4660
|
+
const Tabs = withInstall(stdin_default$1r);
|
|
4661
|
+
const [name$10, bem$$] = createNamespace("divider");
|
|
4650
4662
|
const dividerProps = {
|
|
4651
4663
|
dashed: Boolean,
|
|
4652
4664
|
hairline: truthProp,
|
|
4653
4665
|
contentPosition: makeStringProp("center")
|
|
4654
4666
|
};
|
|
4655
|
-
var stdin_default$
|
|
4656
|
-
name: name
|
|
4667
|
+
var stdin_default$1o = vue.defineComponent({
|
|
4668
|
+
name: name$10,
|
|
4657
4669
|
props: dividerProps,
|
|
4658
4670
|
setup(props, {
|
|
4659
4671
|
slots
|
|
@@ -4662,7 +4674,7 @@
|
|
|
4662
4674
|
var _a;
|
|
4663
4675
|
return vue.createVNode("div", {
|
|
4664
4676
|
"role": "separator",
|
|
4665
|
-
"class": bem
|
|
4677
|
+
"class": bem$$({
|
|
4666
4678
|
dashed: props.dashed,
|
|
4667
4679
|
hairline: props.hairline,
|
|
4668
4680
|
[`content-${props.contentPosition}`]: !!slots.default
|
|
@@ -4671,8 +4683,8 @@
|
|
|
4671
4683
|
};
|
|
4672
4684
|
}
|
|
4673
4685
|
});
|
|
4674
|
-
const Divider = withInstall(stdin_default$
|
|
4675
|
-
const [name
|
|
4686
|
+
const Divider = withInstall(stdin_default$1o);
|
|
4687
|
+
const [name$$, bem$_, t$7] = createNamespace("cascader");
|
|
4676
4688
|
const cascaderProps = {
|
|
4677
4689
|
title: String,
|
|
4678
4690
|
show: Boolean,
|
|
@@ -4692,8 +4704,8 @@
|
|
|
4692
4704
|
safeAreaInsetTop: Boolean,
|
|
4693
4705
|
closeOnClickOverlay: truthProp
|
|
4694
4706
|
};
|
|
4695
|
-
var stdin_default$
|
|
4696
|
-
name: name
|
|
4707
|
+
var stdin_default$1n = vue.defineComponent({
|
|
4708
|
+
name: name$$,
|
|
4697
4709
|
props: cascaderProps,
|
|
4698
4710
|
emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
|
|
4699
4711
|
setup(props, {
|
|
@@ -4807,9 +4819,9 @@
|
|
|
4807
4819
|
title
|
|
4808
4820
|
}) => emit("clickTab", name2, title);
|
|
4809
4821
|
const renderHeader = () => vue.createVNode("div", {
|
|
4810
|
-
"class": bem$
|
|
4822
|
+
"class": bem$_("header")
|
|
4811
4823
|
}, [vue.createVNode("h2", {
|
|
4812
|
-
"class": bem$
|
|
4824
|
+
"class": bem$_("title")
|
|
4813
4825
|
}, [slots.title ? slots.title() : props.title])]);
|
|
4814
4826
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
4815
4827
|
const {
|
|
@@ -4823,7 +4835,7 @@
|
|
|
4823
4835
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
|
4824
4836
|
return vue.createVNode("li", {
|
|
4825
4837
|
"role": "menuitemradio",
|
|
4826
|
-
"class": [bem$
|
|
4838
|
+
"class": [bem$_("option", {
|
|
4827
4839
|
selected,
|
|
4828
4840
|
disabled
|
|
4829
4841
|
}), option.className],
|
|
@@ -4836,12 +4848,12 @@
|
|
|
4836
4848
|
"onClick": () => onSelect(option, tabIndex)
|
|
4837
4849
|
}, [Text, selected ? vue.createVNode(Icon, {
|
|
4838
4850
|
"name": "success",
|
|
4839
|
-
"class": bem$
|
|
4851
|
+
"class": bem$_("selected-icon")
|
|
4840
4852
|
}, null) : null]);
|
|
4841
4853
|
};
|
|
4842
4854
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
|
4843
4855
|
"role": "menu",
|
|
4844
|
-
"class": bem$
|
|
4856
|
+
"class": bem$_("options")
|
|
4845
4857
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
4846
4858
|
const renderDivider = () => vue.createVNode(Divider, {
|
|
4847
4859
|
"style": {
|
|
@@ -4857,7 +4869,7 @@
|
|
|
4857
4869
|
const title = selected ? selected[textKey] : placeholder;
|
|
4858
4870
|
return vue.createVNode(Tab, {
|
|
4859
4871
|
"title": title,
|
|
4860
|
-
"titleClass": bem$
|
|
4872
|
+
"titleClass": bem$_("tab", {
|
|
4861
4873
|
unselected: !selected
|
|
4862
4874
|
})
|
|
4863
4875
|
}, {
|
|
@@ -4875,15 +4887,15 @@
|
|
|
4875
4887
|
"active": activeTab.value,
|
|
4876
4888
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
4877
4889
|
"animated": true,
|
|
4878
|
-
"class": bem$
|
|
4890
|
+
"class": bem$_("tabs"),
|
|
4879
4891
|
"color": props.activeColor,
|
|
4880
4892
|
"swipeable": props.swipeable,
|
|
4881
4893
|
"onClickTab": onClickTab
|
|
4882
4894
|
}, {
|
|
4883
4895
|
default: () => [tabs.value.map(renderTab)]
|
|
4884
4896
|
});
|
|
4885
|
-
const renderMenu = () => vue.createVNode(stdin_default$
|
|
4886
|
-
"class": bem$
|
|
4897
|
+
const renderMenu = () => vue.createVNode(stdin_default$1C, {
|
|
4898
|
+
"class": bem$_("cancel"),
|
|
4887
4899
|
"onClick": onCancel
|
|
4888
4900
|
}, {
|
|
4889
4901
|
default: () => [vue.createTextVNode("取消")]
|
|
@@ -4920,7 +4932,7 @@
|
|
|
4920
4932
|
updateTabs();
|
|
4921
4933
|
});
|
|
4922
4934
|
const renderCascade = () => vue.createVNode("div", {
|
|
4923
|
-
"class": bem$
|
|
4935
|
+
"class": bem$_()
|
|
4924
4936
|
}, [renderHeader(), renderDivider(), renderTabs(), props.popup ? renderDivider() : "", props.popup ? renderMenu() : ""]);
|
|
4925
4937
|
return () => {
|
|
4926
4938
|
if (props.popup) {
|
|
@@ -4941,8 +4953,8 @@
|
|
|
4941
4953
|
};
|
|
4942
4954
|
}
|
|
4943
4955
|
});
|
|
4944
|
-
const Cascader = withInstall(stdin_default$
|
|
4945
|
-
const [name$
|
|
4956
|
+
const Cascader = withInstall(stdin_default$1n);
|
|
4957
|
+
const [name$_, bem$Z] = createNamespace("cell");
|
|
4946
4958
|
const cellSharedProps = {
|
|
4947
4959
|
leftIcon: String,
|
|
4948
4960
|
titleIcon: String,
|
|
@@ -4963,23 +4975,26 @@
|
|
|
4963
4975
|
clickable: {
|
|
4964
4976
|
type: Boolean,
|
|
4965
4977
|
default: null
|
|
4966
|
-
}
|
|
4978
|
+
},
|
|
4979
|
+
clearable: Boolean,
|
|
4980
|
+
clearIcon: makeStringProp("clear-r")
|
|
4967
4981
|
};
|
|
4968
4982
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
4969
|
-
var stdin_default$
|
|
4970
|
-
name: name$
|
|
4983
|
+
var stdin_default$1m = vue.defineComponent({
|
|
4984
|
+
name: name$_,
|
|
4971
4985
|
props: cellProps,
|
|
4972
|
-
emits: ["click"],
|
|
4986
|
+
emits: ["click", "clear"],
|
|
4973
4987
|
setup(props, {
|
|
4974
4988
|
slots,
|
|
4975
4989
|
emit
|
|
4976
4990
|
}) {
|
|
4977
4991
|
const route2 = useRoute();
|
|
4992
|
+
const clearIconRef = vue.ref();
|
|
4978
4993
|
const renderLabel = () => {
|
|
4979
4994
|
const showLabel = slots.label || isDef(props.label);
|
|
4980
4995
|
if (showLabel) {
|
|
4981
4996
|
return vue.createVNode("div", {
|
|
4982
|
-
"class": [bem$
|
|
4997
|
+
"class": [bem$Z("label"), props.labelClass]
|
|
4983
4998
|
}, [slots.label ? slots.label() : props.label]);
|
|
4984
4999
|
}
|
|
4985
5000
|
};
|
|
@@ -4990,7 +5005,7 @@
|
|
|
4990
5005
|
if (props.titleIcon) {
|
|
4991
5006
|
return vue.createVNode(Icon, {
|
|
4992
5007
|
"name": props.titleIcon,
|
|
4993
|
-
"class": bem$
|
|
5008
|
+
"class": bem$Z("title-icon"),
|
|
4994
5009
|
"classPrefix": props.iconPrefix
|
|
4995
5010
|
}, null);
|
|
4996
5011
|
}
|
|
@@ -5000,13 +5015,13 @@
|
|
|
5000
5015
|
const hasValue = slots.value || slots.default || props.value;
|
|
5001
5016
|
const isHorizontal = props.direction === "horizontal";
|
|
5002
5017
|
return vue.createVNode("div", {
|
|
5003
|
-
"class": [bem$
|
|
5018
|
+
"class": [bem$Z("title", {
|
|
5004
5019
|
[props.direction]: true,
|
|
5005
5020
|
"with-value": isHorizontal && hasValue
|
|
5006
5021
|
}), props.titleClass],
|
|
5007
5022
|
"style": props.titleStyle
|
|
5008
5023
|
}, [slots.title ? slots.title() : [renderTitleIcon(), vue.createVNode("span", {
|
|
5009
|
-
"class": bem$
|
|
5024
|
+
"class": bem$Z("title-text")
|
|
5010
5025
|
}, [props.title])], renderLabel()]);
|
|
5011
5026
|
}
|
|
5012
5027
|
};
|
|
@@ -5018,7 +5033,7 @@
|
|
|
5018
5033
|
const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : "arrow-right";
|
|
5019
5034
|
return vue.createVNode(Icon, {
|
|
5020
5035
|
"name": name2,
|
|
5021
|
-
"class": bem$
|
|
5036
|
+
"class": bem$Z("right-icon"),
|
|
5022
5037
|
"size": "20"
|
|
5023
5038
|
}, null);
|
|
5024
5039
|
}
|
|
@@ -5033,20 +5048,41 @@
|
|
|
5033
5048
|
emit("click");
|
|
5034
5049
|
}
|
|
5035
5050
|
};
|
|
5051
|
+
const onClear = (event) => {
|
|
5052
|
+
preventDefault(event, true);
|
|
5053
|
+
emit("clear", event);
|
|
5054
|
+
};
|
|
5055
|
+
function getClearIconListenerEvent() {
|
|
5056
|
+
if ("ontouchstart" in document.documentElement) {
|
|
5057
|
+
return "touchstart";
|
|
5058
|
+
}
|
|
5059
|
+
return "click";
|
|
5060
|
+
}
|
|
5061
|
+
useEventListener(getClearIconListenerEvent(), onClear, {
|
|
5062
|
+
target: vue.computed(() => {
|
|
5063
|
+
var _a;
|
|
5064
|
+
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
5065
|
+
})
|
|
5066
|
+
});
|
|
5036
5067
|
const renderValue = () => {
|
|
5037
5068
|
var _a;
|
|
5038
5069
|
const slot = slots.value || slots.default;
|
|
5039
5070
|
const hasValue = slot || isDef(props.value);
|
|
5040
5071
|
const isHorizontal = props.direction === "horizontal";
|
|
5072
|
+
const showClear = props.clearable && isDef(props.value) && props.value !== "";
|
|
5041
5073
|
if (hasValue) {
|
|
5042
5074
|
return vue.createVNode("div", {
|
|
5043
|
-
"class": [bem$
|
|
5075
|
+
"class": [bem$Z("value", {
|
|
5044
5076
|
[props.direction]: true
|
|
5045
5077
|
}), props.valueClass],
|
|
5046
5078
|
"onClick": () => onClick(isHorizontal)
|
|
5047
5079
|
}, [slot ? slot() : vue.createVNode("span", {
|
|
5048
|
-
"class": bem$
|
|
5049
|
-
}, [props.value]),
|
|
5080
|
+
"class": bem$Z("value-text")
|
|
5081
|
+
}, [props.value]), showClear && vue.createVNode(Icon, {
|
|
5082
|
+
"ref": clearIconRef,
|
|
5083
|
+
"name": props.clearIcon,
|
|
5084
|
+
"class": bem$Z("value-clear")
|
|
5085
|
+
}, null), (_a = slots.extra) == null ? void 0 : _a.call(slots), renderRightIcon()]);
|
|
5050
5086
|
}
|
|
5051
5087
|
};
|
|
5052
5088
|
const renderLeftIcon = () => {
|
|
@@ -5056,7 +5092,7 @@
|
|
|
5056
5092
|
if (props.leftIcon) {
|
|
5057
5093
|
return vue.createVNode(Icon, {
|
|
5058
5094
|
"name": props.leftIcon,
|
|
5059
|
-
"class": bem$
|
|
5095
|
+
"class": bem$Z("left-icon"),
|
|
5060
5096
|
"classPrefix": props.iconPrefix
|
|
5061
5097
|
}, null);
|
|
5062
5098
|
}
|
|
@@ -5088,7 +5124,7 @@
|
|
|
5088
5124
|
classes.borderless = true;
|
|
5089
5125
|
}
|
|
5090
5126
|
return vue.createVNode("div", {
|
|
5091
|
-
"class": bem$
|
|
5127
|
+
"class": bem$Z(classes),
|
|
5092
5128
|
"role": clickable ? "button" : void 0,
|
|
5093
5129
|
"tabindex": clickable ? 0 : void 0,
|
|
5094
5130
|
"onClick": () => onClick(props.direction === "vertical")
|
|
@@ -5096,7 +5132,7 @@
|
|
|
5096
5132
|
};
|
|
5097
5133
|
if (hasLeftIcon) {
|
|
5098
5134
|
return vue.createVNode("div", {
|
|
5099
|
-
"class": [bem$
|
|
5135
|
+
"class": [bem$Z("with-left", {
|
|
5100
5136
|
borderless: !border
|
|
5101
5137
|
})]
|
|
5102
5138
|
}, [renderLeftIcon(), renderWrapper()]);
|
|
@@ -5105,15 +5141,15 @@
|
|
|
5105
5141
|
};
|
|
5106
5142
|
}
|
|
5107
5143
|
});
|
|
5108
|
-
const Cell = withInstall(stdin_default$
|
|
5109
|
-
const [name$
|
|
5144
|
+
const Cell = withInstall(stdin_default$1m);
|
|
5145
|
+
const [name$Z, bem$Y] = createNamespace("cell-group");
|
|
5110
5146
|
const cellGroupProps = {
|
|
5111
5147
|
title: String,
|
|
5112
5148
|
inset: Boolean,
|
|
5113
5149
|
border: truthProp
|
|
5114
5150
|
};
|
|
5115
|
-
var stdin_default$
|
|
5116
|
-
name: name$
|
|
5151
|
+
var stdin_default$1l = vue.defineComponent({
|
|
5152
|
+
name: name$Z,
|
|
5117
5153
|
inheritAttrs: false,
|
|
5118
5154
|
props: cellGroupProps,
|
|
5119
5155
|
setup(props, {
|
|
@@ -5123,7 +5159,7 @@
|
|
|
5123
5159
|
const renderGroup = () => {
|
|
5124
5160
|
var _a;
|
|
5125
5161
|
return vue.createVNode("div", vue.mergeProps({
|
|
5126
|
-
"class": [bem$
|
|
5162
|
+
"class": [bem$Y({
|
|
5127
5163
|
inset: props.inset
|
|
5128
5164
|
}), {
|
|
5129
5165
|
[BORDER_TOP_BOTTOM]: props.border && !props.inset
|
|
@@ -5131,7 +5167,7 @@
|
|
|
5131
5167
|
}, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
5132
5168
|
};
|
|
5133
5169
|
const renderTitle = () => vue.createVNode("div", {
|
|
5134
|
-
"class": bem$
|
|
5170
|
+
"class": bem$Y("title", {
|
|
5135
5171
|
inset: props.inset
|
|
5136
5172
|
})
|
|
5137
5173
|
}, [slots.title ? slots.title() : props.title]);
|
|
@@ -5143,8 +5179,8 @@
|
|
|
5143
5179
|
};
|
|
5144
5180
|
}
|
|
5145
5181
|
});
|
|
5146
|
-
const CellGroup = withInstall(stdin_default$
|
|
5147
|
-
const [name$
|
|
5182
|
+
const CellGroup = withInstall(stdin_default$1l);
|
|
5183
|
+
const [name$Y, bem$X] = createNamespace("checkbox-group");
|
|
5148
5184
|
const checkboxGroupProps = {
|
|
5149
5185
|
max: numericProp,
|
|
5150
5186
|
disabled: Boolean,
|
|
@@ -5153,9 +5189,9 @@
|
|
|
5153
5189
|
modelValue: makeArrayProp(),
|
|
5154
5190
|
checkedColor: String
|
|
5155
5191
|
};
|
|
5156
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
|
5157
|
-
var stdin_default$
|
|
5158
|
-
name: name$
|
|
5192
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$Y);
|
|
5193
|
+
var stdin_default$1k = vue.defineComponent({
|
|
5194
|
+
name: name$Y,
|
|
5159
5195
|
props: checkboxGroupProps,
|
|
5160
5196
|
emits: ["change", "update:modelValue"],
|
|
5161
5197
|
setup(props, {
|
|
@@ -5201,7 +5237,7 @@
|
|
|
5201
5237
|
return () => {
|
|
5202
5238
|
var _a;
|
|
5203
5239
|
return vue.createVNode("div", {
|
|
5204
|
-
"class": bem$
|
|
5240
|
+
"class": bem$X([props.direction])
|
|
5205
5241
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
5206
5242
|
};
|
|
5207
5243
|
}
|
|
@@ -5216,7 +5252,7 @@
|
|
|
5216
5252
|
labelPosition: String,
|
|
5217
5253
|
labelDisabled: Boolean
|
|
5218
5254
|
};
|
|
5219
|
-
var stdin_default$
|
|
5255
|
+
var stdin_default$1j = vue.defineComponent({
|
|
5220
5256
|
props: extend({}, checkerProps, {
|
|
5221
5257
|
bem: makeRequiredProp(Function),
|
|
5222
5258
|
role: String,
|
|
@@ -5317,7 +5353,7 @@
|
|
|
5317
5353
|
};
|
|
5318
5354
|
}
|
|
5319
5355
|
});
|
|
5320
|
-
const [name$
|
|
5356
|
+
const [name$X, bem$W] = createNamespace("checkbox");
|
|
5321
5357
|
const checkboxProps = extend({}, checkerProps, {
|
|
5322
5358
|
bindGroup: truthProp,
|
|
5323
5359
|
indeterminate: {
|
|
@@ -5325,8 +5361,8 @@
|
|
|
5325
5361
|
default: null
|
|
5326
5362
|
}
|
|
5327
5363
|
});
|
|
5328
|
-
var stdin_default$
|
|
5329
|
-
name: name$
|
|
5364
|
+
var stdin_default$1i = vue.defineComponent({
|
|
5365
|
+
name: name$X,
|
|
5330
5366
|
props: checkboxProps,
|
|
5331
5367
|
emits: ["change", "update:modelValue"],
|
|
5332
5368
|
setup(props, {
|
|
@@ -5390,8 +5426,8 @@
|
|
|
5390
5426
|
checked
|
|
5391
5427
|
});
|
|
5392
5428
|
useCustomFieldValue(() => props.modelValue);
|
|
5393
|
-
return () => vue.createVNode(stdin_default$
|
|
5394
|
-
"bem": bem$
|
|
5429
|
+
return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
|
|
5430
|
+
"bem": bem$W,
|
|
5395
5431
|
"role": "checkbox",
|
|
5396
5432
|
"parent": parent,
|
|
5397
5433
|
"checked": checked.value,
|
|
@@ -5399,10 +5435,10 @@
|
|
|
5399
5435
|
}, props), pick(slots, ["default", "icon"]));
|
|
5400
5436
|
}
|
|
5401
5437
|
});
|
|
5402
|
-
const Checkbox = withInstall(stdin_default$
|
|
5403
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
5404
|
-
const [name$
|
|
5405
|
-
const ROW_KEY = Symbol(name$
|
|
5438
|
+
const Checkbox = withInstall(stdin_default$1i);
|
|
5439
|
+
const CheckboxGroup = withInstall(stdin_default$1k);
|
|
5440
|
+
const [name$W, bem$V] = createNamespace("row");
|
|
5441
|
+
const ROW_KEY = Symbol(name$W);
|
|
5406
5442
|
const rowProps = {
|
|
5407
5443
|
tag: makeStringProp("div"),
|
|
5408
5444
|
wrap: truthProp,
|
|
@@ -5410,8 +5446,8 @@
|
|
|
5410
5446
|
gutter: makeNumericProp(0),
|
|
5411
5447
|
justify: String
|
|
5412
5448
|
};
|
|
5413
|
-
var stdin_default$
|
|
5414
|
-
name: name$
|
|
5449
|
+
var stdin_default$1h = vue.defineComponent({
|
|
5450
|
+
name: name$W,
|
|
5415
5451
|
props: rowProps,
|
|
5416
5452
|
setup(props, {
|
|
5417
5453
|
slots
|
|
@@ -5470,7 +5506,7 @@
|
|
|
5470
5506
|
justify
|
|
5471
5507
|
} = props;
|
|
5472
5508
|
return vue.createVNode(tag, {
|
|
5473
|
-
"class": bem$
|
|
5509
|
+
"class": bem$V({
|
|
5474
5510
|
[`align-${align}`]: align,
|
|
5475
5511
|
[`justify-${justify}`]: justify,
|
|
5476
5512
|
nowrap: !wrap
|
|
@@ -5484,14 +5520,14 @@
|
|
|
5484
5520
|
};
|
|
5485
5521
|
}
|
|
5486
5522
|
});
|
|
5487
|
-
const [name$
|
|
5523
|
+
const [name$V, bem$U] = createNamespace("col");
|
|
5488
5524
|
const colProps = {
|
|
5489
5525
|
tag: makeStringProp("div"),
|
|
5490
5526
|
span: makeNumericProp(0),
|
|
5491
5527
|
offset: numericProp
|
|
5492
5528
|
};
|
|
5493
|
-
var stdin_default$
|
|
5494
|
-
name: name$
|
|
5529
|
+
var stdin_default$1g = vue.defineComponent({
|
|
5530
|
+
name: name$V,
|
|
5495
5531
|
props: colProps,
|
|
5496
5532
|
setup(props, {
|
|
5497
5533
|
slots
|
|
@@ -5526,7 +5562,7 @@
|
|
|
5526
5562
|
} = props;
|
|
5527
5563
|
return vue.createVNode(tag, {
|
|
5528
5564
|
"style": style.value,
|
|
5529
|
-
"class": bem$
|
|
5565
|
+
"class": bem$U({
|
|
5530
5566
|
[span]: span,
|
|
5531
5567
|
[`offset-${offset2}`]: offset2
|
|
5532
5568
|
})
|
|
@@ -5539,9 +5575,9 @@
|
|
|
5539
5575
|
};
|
|
5540
5576
|
}
|
|
5541
5577
|
});
|
|
5542
|
-
const Col = withInstall(stdin_default$
|
|
5543
|
-
const [name$
|
|
5544
|
-
const COLLAPSE_KEY = Symbol(name$
|
|
5578
|
+
const Col = withInstall(stdin_default$1g);
|
|
5579
|
+
const [name$U, bem$T] = createNamespace("collapse");
|
|
5580
|
+
const COLLAPSE_KEY = Symbol(name$U);
|
|
5545
5581
|
const collapseProps = {
|
|
5546
5582
|
border: truthProp,
|
|
5547
5583
|
accordion: Boolean,
|
|
@@ -5550,8 +5586,8 @@
|
|
|
5550
5586
|
default: ""
|
|
5551
5587
|
}
|
|
5552
5588
|
};
|
|
5553
|
-
var stdin_default$
|
|
5554
|
-
name: name$
|
|
5589
|
+
var stdin_default$1f = vue.defineComponent({
|
|
5590
|
+
name: name$U,
|
|
5555
5591
|
props: collapseProps,
|
|
5556
5592
|
emits: ["change", "update:modelValue"],
|
|
5557
5593
|
setup(props, {
|
|
@@ -5618,15 +5654,15 @@
|
|
|
5618
5654
|
return () => {
|
|
5619
5655
|
var _a;
|
|
5620
5656
|
return vue.createVNode("div", {
|
|
5621
|
-
"class": [bem$
|
|
5657
|
+
"class": [bem$T(), {
|
|
5622
5658
|
[BORDER_TOP_BOTTOM]: props.border
|
|
5623
5659
|
}]
|
|
5624
5660
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
5625
5661
|
};
|
|
5626
5662
|
}
|
|
5627
5663
|
});
|
|
5628
|
-
const Collapse = withInstall(stdin_default$
|
|
5629
|
-
const [name$
|
|
5664
|
+
const Collapse = withInstall(stdin_default$1f);
|
|
5665
|
+
const [name$T, bem$S] = createNamespace("collapse-item");
|
|
5630
5666
|
const collapseItemProps = extend({}, {
|
|
5631
5667
|
name: numericProp,
|
|
5632
5668
|
title: numericProp,
|
|
@@ -5636,8 +5672,8 @@
|
|
|
5636
5672
|
titleBackground: String,
|
|
5637
5673
|
color: String
|
|
5638
5674
|
});
|
|
5639
|
-
var stdin_default$
|
|
5640
|
-
name: name$
|
|
5675
|
+
var stdin_default$1e = vue.defineComponent({
|
|
5676
|
+
name: name$T,
|
|
5641
5677
|
props: collapseItemProps,
|
|
5642
5678
|
setup(props, {
|
|
5643
5679
|
slots
|
|
@@ -5705,23 +5741,23 @@
|
|
|
5705
5741
|
color
|
|
5706
5742
|
} = props;
|
|
5707
5743
|
return vue.createVNode("div", {
|
|
5708
|
-
"class": [bem$
|
|
5744
|
+
"class": [bem$S("title"), expanded.value ? BORDER_BOTTOM : "", HAPTICS_FEEDBACK],
|
|
5709
5745
|
"style": titleBackground ? `background:${titleBackground};color:#fff;` : "",
|
|
5710
5746
|
"onClick": onClickTitle
|
|
5711
5747
|
}, [vue.createVNode("span", {
|
|
5712
|
-
"class": bem$
|
|
5748
|
+
"class": bem$S("bar", {
|
|
5713
5749
|
custom: titleBackground
|
|
5714
5750
|
}),
|
|
5715
5751
|
"style": color ? `background:${color};` : ""
|
|
5716
5752
|
}, null), vue.createVNode("span", {
|
|
5717
5753
|
"style": color ? `color:${color};` : "",
|
|
5718
|
-
"class": bem$
|
|
5754
|
+
"class": bem$S("text", {
|
|
5719
5755
|
custom: titleBackground
|
|
5720
5756
|
})
|
|
5721
|
-
}, [props.title]), vue.createVNode(stdin_default$
|
|
5757
|
+
}, [props.title]), vue.createVNode(stdin_default$1O, {
|
|
5722
5758
|
"name": "keyboard-arrow-down",
|
|
5723
5759
|
"style": color ? `color:${color};` : "",
|
|
5724
|
-
"class": bem$
|
|
5760
|
+
"class": bem$S("icon", {
|
|
5725
5761
|
expanded: expanded.value,
|
|
5726
5762
|
custom: titleBackground
|
|
5727
5763
|
})
|
|
@@ -5731,11 +5767,11 @@
|
|
|
5731
5767
|
var _a;
|
|
5732
5768
|
return vue.withDirectives(vue.createVNode("div", {
|
|
5733
5769
|
"ref": wrapperRef,
|
|
5734
|
-
"class": bem$
|
|
5770
|
+
"class": bem$S("wrapper"),
|
|
5735
5771
|
"onTransitionend": onTransitionEnd
|
|
5736
5772
|
}, [vue.createVNode("div", {
|
|
5737
5773
|
"ref": contentRef,
|
|
5738
|
-
"class": bem$
|
|
5774
|
+
"class": bem$S("content")
|
|
5739
5775
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), [[vue.vShow, show.value]]);
|
|
5740
5776
|
});
|
|
5741
5777
|
useExpose({
|
|
@@ -5744,13 +5780,13 @@
|
|
|
5744
5780
|
itemName: name2
|
|
5745
5781
|
});
|
|
5746
5782
|
return () => vue.createVNode("div", {
|
|
5747
|
-
"class": [bem$
|
|
5783
|
+
"class": [bem$S()]
|
|
5748
5784
|
}, [renderTitle(), renderContent()]);
|
|
5749
5785
|
}
|
|
5750
5786
|
});
|
|
5751
|
-
const CollapseItem = withInstall(stdin_default$
|
|
5752
|
-
const ConfigProvider = withInstall(stdin_default$
|
|
5753
|
-
const [name$
|
|
5787
|
+
const CollapseItem = withInstall(stdin_default$1e);
|
|
5788
|
+
const ConfigProvider = withInstall(stdin_default$1P);
|
|
5789
|
+
const [name$S, bem$R, t$6] = createNamespace("picker");
|
|
5754
5790
|
const getFirstEnabledOption$1 = (options) => options.find((option) => !option.disabled) || options[0];
|
|
5755
5791
|
function getColumnsType$1(columns, fields) {
|
|
5756
5792
|
const firstColumn = columns[0];
|
|
@@ -5819,10 +5855,10 @@
|
|
|
5819
5855
|
const DEFAULT_DURATION$2 = 200;
|
|
5820
5856
|
const MOMENTUM_TIME$2 = 300;
|
|
5821
5857
|
const MOMENTUM_DISTANCE$2 = 15;
|
|
5822
|
-
const [name$
|
|
5823
|
-
const PICKER_KEY$1 = Symbol(name$
|
|
5824
|
-
var stdin_default$
|
|
5825
|
-
name: name$
|
|
5858
|
+
const [name$R, bem$Q] = createNamespace("picker-column");
|
|
5859
|
+
const PICKER_KEY$1 = Symbol(name$R);
|
|
5860
|
+
var stdin_default$1d = vue.defineComponent({
|
|
5861
|
+
name: name$R,
|
|
5826
5862
|
props: {
|
|
5827
5863
|
value: numericProp,
|
|
5828
5864
|
unit: makeStringProp(""),
|
|
@@ -5956,7 +5992,7 @@
|
|
|
5956
5992
|
role: "button",
|
|
5957
5993
|
style: optionStyle,
|
|
5958
5994
|
tabindex: disabled ? -1 : 0,
|
|
5959
|
-
class: [bem$
|
|
5995
|
+
class: [bem$Q("item", {
|
|
5960
5996
|
disabled,
|
|
5961
5997
|
selected: value === props.value
|
|
5962
5998
|
}), option.className],
|
|
@@ -5976,14 +6012,14 @@
|
|
|
5976
6012
|
[props.allowHtml ? "innerHTML" : "textContent"]: props.value
|
|
5977
6013
|
};
|
|
5978
6014
|
return vue.createVNode("div", {
|
|
5979
|
-
"class": bem$
|
|
6015
|
+
"class": bem$Q("unit")
|
|
5980
6016
|
}, [vue.createVNode("span", {
|
|
5981
6017
|
"style": "visibility: hidden",
|
|
5982
|
-
"class": [bem$
|
|
6018
|
+
"class": [bem$Q("unit-text"), "zt-ellipsis"]
|
|
5983
6019
|
}, [props.unit]), vue.createVNode("span", vue.mergeProps({
|
|
5984
6020
|
"style": "visibility: hidden"
|
|
5985
6021
|
}, childData), null), vue.createVNode("span", {
|
|
5986
|
-
"class": [bem$
|
|
6022
|
+
"class": [bem$Q("unit-text"), "zt-ellipsis"]
|
|
5987
6023
|
}, [props.unit])]);
|
|
5988
6024
|
}
|
|
5989
6025
|
};
|
|
@@ -6001,7 +6037,7 @@
|
|
|
6001
6037
|
});
|
|
6002
6038
|
return () => vue.createVNode("div", {
|
|
6003
6039
|
"ref": root,
|
|
6004
|
-
"class": bem$
|
|
6040
|
+
"class": bem$Q(),
|
|
6005
6041
|
"onTouchstartPassive": onTouchStart,
|
|
6006
6042
|
"onTouchend": onTouchEnd,
|
|
6007
6043
|
"onTouchcancel": onTouchEnd
|
|
@@ -6012,12 +6048,12 @@
|
|
|
6012
6048
|
transitionDuration: `${currentDuration.value}ms`,
|
|
6013
6049
|
transitionProperty: currentDuration.value ? "all" : "none"
|
|
6014
6050
|
},
|
|
6015
|
-
"class": bem$
|
|
6051
|
+
"class": bem$Q("wrapper"),
|
|
6016
6052
|
"onTransitionend": stopMomentum
|
|
6017
6053
|
}, [renderOptions()])]);
|
|
6018
6054
|
}
|
|
6019
6055
|
});
|
|
6020
|
-
const [name$
|
|
6056
|
+
const [name$Q] = createNamespace("picker-toolbar");
|
|
6021
6057
|
const pickerToolbarProps$1 = {
|
|
6022
6058
|
// title: String,
|
|
6023
6059
|
cancelButtonText: String,
|
|
@@ -6025,8 +6061,8 @@
|
|
|
6025
6061
|
};
|
|
6026
6062
|
const pickerToolbarSlots$1 = ["cancel", "confirm", "title", "toolbar"];
|
|
6027
6063
|
const pickerToolbarPropKeys$1 = Object.keys(pickerToolbarProps$1);
|
|
6028
|
-
var stdin_default$
|
|
6029
|
-
name: name$
|
|
6064
|
+
var stdin_default$1c = vue.defineComponent({
|
|
6065
|
+
name: name$Q,
|
|
6030
6066
|
props: pickerToolbarProps$1,
|
|
6031
6067
|
emits: ["confirm", "cancel"],
|
|
6032
6068
|
setup(props, {
|
|
@@ -6040,7 +6076,7 @@
|
|
|
6040
6076
|
return vue.createVNode(Button, {
|
|
6041
6077
|
"type": "default",
|
|
6042
6078
|
"hairline": true,
|
|
6043
|
-
"class": bem$
|
|
6079
|
+
"class": bem$R("cancel"),
|
|
6044
6080
|
"onClick": onCancel
|
|
6045
6081
|
}, {
|
|
6046
6082
|
default: () => [slots.cancel ? slots.cancel() : text]
|
|
@@ -6050,14 +6086,14 @@
|
|
|
6050
6086
|
const text = props.confirmButtonText || t$6("confirm");
|
|
6051
6087
|
return vue.createVNode(Button, {
|
|
6052
6088
|
"type": "primary",
|
|
6053
|
-
"class": [bem$
|
|
6089
|
+
"class": [bem$R("confirm"), HAPTICS_FEEDBACK],
|
|
6054
6090
|
"onClick": onConfirm
|
|
6055
6091
|
}, {
|
|
6056
6092
|
default: () => [slots.confirm ? slots.confirm() : text]
|
|
6057
6093
|
});
|
|
6058
6094
|
};
|
|
6059
6095
|
return () => vue.createVNode("div", {
|
|
6060
|
-
"class": bem$
|
|
6096
|
+
"class": bem$R("toolbar")
|
|
6061
6097
|
}, [slots.toolbar ? slots.toolbar() : [renderCancel(), renderConfirm()]]);
|
|
6062
6098
|
}
|
|
6063
6099
|
});
|
|
@@ -6081,8 +6117,8 @@
|
|
|
6081
6117
|
showPicker: Boolean,
|
|
6082
6118
|
popup: truthProp
|
|
6083
6119
|
});
|
|
6084
|
-
var stdin_default$
|
|
6085
|
-
name: name$
|
|
6120
|
+
var stdin_default$1b = vue.defineComponent({
|
|
6121
|
+
name: name$S,
|
|
6086
6122
|
props: pickerProps,
|
|
6087
6123
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
|
|
6088
6124
|
setup(props, {
|
|
@@ -6168,7 +6204,7 @@
|
|
|
6168
6204
|
};
|
|
6169
6205
|
const updateShow = (value) => emit("update:showPicker", value);
|
|
6170
6206
|
const hasUnit = props.columnsUnit.length === currentColumns.value.length;
|
|
6171
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$
|
|
6207
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(stdin_default$1d, {
|
|
6172
6208
|
"value": selectedValues.value[columnIndex],
|
|
6173
6209
|
"fields": fields.value,
|
|
6174
6210
|
"options": options,
|
|
@@ -6192,10 +6228,10 @@
|
|
|
6192
6228
|
backgroundSize: `100% ${(wrapHeight - optionHeight.value) / 2}px`
|
|
6193
6229
|
};
|
|
6194
6230
|
return [vue.createVNode("div", {
|
|
6195
|
-
"class": bem$
|
|
6231
|
+
"class": bem$R("mask"),
|
|
6196
6232
|
"style": maskStyle
|
|
6197
6233
|
}, null), vue.createVNode("div", {
|
|
6198
|
-
"class": bem$
|
|
6234
|
+
"class": bem$R("frame"),
|
|
6199
6235
|
"style": frameStyle
|
|
6200
6236
|
}, null)];
|
|
6201
6237
|
}
|
|
@@ -6207,13 +6243,13 @@
|
|
|
6207
6243
|
};
|
|
6208
6244
|
return vue.createVNode("div", {
|
|
6209
6245
|
"ref": columnsRef,
|
|
6210
|
-
"class": bem$
|
|
6246
|
+
"class": bem$R("columns"),
|
|
6211
6247
|
"style": columnsStyle
|
|
6212
6248
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
|
6213
6249
|
};
|
|
6214
6250
|
const renderToolbar = () => {
|
|
6215
6251
|
if (props.showToolbar) {
|
|
6216
|
-
return vue.createVNode(stdin_default$
|
|
6252
|
+
return vue.createVNode(stdin_default$1c, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
6217
6253
|
"onConfirm": confirm,
|
|
6218
6254
|
"onCancel": cancel
|
|
6219
6255
|
}), pick(slots, pickerToolbarSlots$1));
|
|
@@ -6225,7 +6261,7 @@
|
|
|
6225
6261
|
return slots["title-bar"]();
|
|
6226
6262
|
}
|
|
6227
6263
|
return vue.createVNode("div", {
|
|
6228
|
-
"class": [bem$
|
|
6264
|
+
"class": [bem$R("title"), HAPTICS_FEEDBACK]
|
|
6229
6265
|
}, [props.title]);
|
|
6230
6266
|
}
|
|
6231
6267
|
};
|
|
@@ -6272,14 +6308,14 @@
|
|
|
6272
6308
|
const renderPicker = () => {
|
|
6273
6309
|
var _a, _b;
|
|
6274
6310
|
return vue.createVNode("div", {
|
|
6275
|
-
"class": bem$
|
|
6311
|
+
"class": bem$R()
|
|
6276
6312
|
}, [renderTitleBar(), props.loading ? vue.createVNode(Loading, {
|
|
6277
|
-
"class": bem$
|
|
6313
|
+
"class": bem$R("loading")
|
|
6278
6314
|
}, null) : null, topDivider(), (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), buttomDivider(), renderToolbar()]);
|
|
6279
6315
|
};
|
|
6280
6316
|
return () => {
|
|
6281
6317
|
if (props.popup) {
|
|
6282
|
-
return vue.createVNode(stdin_default$
|
|
6318
|
+
return vue.createVNode(stdin_default$1K, {
|
|
6283
6319
|
"show": showPicker.value,
|
|
6284
6320
|
"onUpdate:show": [($event) => showPicker.value = $event, updateShow],
|
|
6285
6321
|
"round": true,
|
|
@@ -6334,9 +6370,9 @@
|
|
|
6334
6370
|
}
|
|
6335
6371
|
return value;
|
|
6336
6372
|
});
|
|
6337
|
-
const Picker = withInstall(stdin_default$
|
|
6338
|
-
var stdin_default$
|
|
6339
|
-
var stdin_default$
|
|
6373
|
+
const Picker = withInstall(stdin_default$1b);
|
|
6374
|
+
var stdin_default$1a = Picker;
|
|
6375
|
+
var stdin_default$19 = vue.defineComponent({
|
|
6340
6376
|
name: "Arrow",
|
|
6341
6377
|
emits: ["click"],
|
|
6342
6378
|
setup(_, {
|
|
@@ -6358,13 +6394,13 @@
|
|
|
6358
6394
|
}, null)]);
|
|
6359
6395
|
}
|
|
6360
6396
|
});
|
|
6361
|
-
const [name$
|
|
6362
|
-
const TIME_PICKER_KEY = Symbol(name$
|
|
6397
|
+
const [name$P, bem$P] = createNamespace("time-picker-column");
|
|
6398
|
+
const TIME_PICKER_KEY = Symbol(name$P);
|
|
6363
6399
|
const MOMENTUM_TIME$1 = 300;
|
|
6364
6400
|
const MOMENTUM_DISTANCE$1 = 15;
|
|
6365
6401
|
const DEFAULT_DURATION$1 = 200;
|
|
6366
|
-
var stdin_default$
|
|
6367
|
-
name: name$
|
|
6402
|
+
var stdin_default$18 = vue.defineComponent({
|
|
6403
|
+
name: name$P,
|
|
6368
6404
|
props: {
|
|
6369
6405
|
value: numericProp,
|
|
6370
6406
|
unit: makeStringProp(""),
|
|
@@ -6496,7 +6532,7 @@
|
|
|
6496
6532
|
role: "button",
|
|
6497
6533
|
style: optionStyle,
|
|
6498
6534
|
tabindex: disabled ? -1 : 0,
|
|
6499
|
-
class: [bem$
|
|
6535
|
+
class: [bem$P("item", {
|
|
6500
6536
|
disabled,
|
|
6501
6537
|
selected: value === props.value
|
|
6502
6538
|
}), option.className],
|
|
@@ -6509,7 +6545,7 @@
|
|
|
6509
6545
|
const renderOption = () => {
|
|
6510
6546
|
if (props.unit) {
|
|
6511
6547
|
return vue.createVNode(vue.Fragment, null, [vue.createVNode("div", childData, null), vue.createVNode("span", {
|
|
6512
|
-
"class": [bem$
|
|
6548
|
+
"class": [bem$P("unit-text"), "zt-ellipsis"],
|
|
6513
6549
|
"style": "visibility: hidden"
|
|
6514
6550
|
}, [props.unit])]);
|
|
6515
6551
|
}
|
|
@@ -6525,11 +6561,11 @@
|
|
|
6525
6561
|
[props.allowHtml ? "innerHTML" : "textContent"]: props.value
|
|
6526
6562
|
};
|
|
6527
6563
|
return vue.createVNode("div", {
|
|
6528
|
-
"class": bem$
|
|
6564
|
+
"class": bem$P("unit")
|
|
6529
6565
|
}, [vue.createVNode("span", vue.mergeProps({
|
|
6530
6566
|
"style": "visibility: hidden"
|
|
6531
6567
|
}, childData), null), vue.createVNode("span", {
|
|
6532
|
-
"class": [bem$
|
|
6568
|
+
"class": [bem$P("unit-text"), "zt-ellipsis"]
|
|
6533
6569
|
}, [props.unit])]);
|
|
6534
6570
|
}
|
|
6535
6571
|
};
|
|
@@ -6538,11 +6574,11 @@
|
|
|
6538
6574
|
currentDuration.value = DEFAULT_DURATION$1;
|
|
6539
6575
|
updateValueByIndex(isUp ? index - 1 : index + 1);
|
|
6540
6576
|
};
|
|
6541
|
-
const renderArrow = () => [vue.createVNode(stdin_default$
|
|
6542
|
-
"class": bem$
|
|
6577
|
+
const renderArrow = () => [vue.createVNode(stdin_default$19, {
|
|
6578
|
+
"class": bem$P("arrow-top"),
|
|
6543
6579
|
"onClick": () => onArrowClick(true)
|
|
6544
|
-
}, null), vue.createVNode(stdin_default$
|
|
6545
|
-
"class": bem$
|
|
6580
|
+
}, null), vue.createVNode(stdin_default$19, {
|
|
6581
|
+
"class": bem$P("arrow-bottom"),
|
|
6546
6582
|
"onClick": () => onArrowClick(false)
|
|
6547
6583
|
}, null)];
|
|
6548
6584
|
useParent(TIME_PICKER_KEY);
|
|
@@ -6563,7 +6599,7 @@
|
|
|
6563
6599
|
return () => vue.createVNode("div", {
|
|
6564
6600
|
"ref": root,
|
|
6565
6601
|
"style": columnStyle,
|
|
6566
|
-
"class": bem$
|
|
6602
|
+
"class": bem$P(),
|
|
6567
6603
|
"onTouchstartPassive": onTouchStart,
|
|
6568
6604
|
"onTouchend": onTouchEnd,
|
|
6569
6605
|
"onTouchcancel": onTouchEnd
|
|
@@ -6574,12 +6610,12 @@
|
|
|
6574
6610
|
transitionDuration: `${currentDuration.value}ms`,
|
|
6575
6611
|
transitionProperty: currentDuration.value ? "all" : "none"
|
|
6576
6612
|
},
|
|
6577
|
-
"class": bem$
|
|
6613
|
+
"class": bem$P("wrapper"),
|
|
6578
6614
|
"onTransitionend": stopMomentum
|
|
6579
6615
|
}, [renderOptions()]), renderArrow()]);
|
|
6580
6616
|
}
|
|
6581
6617
|
});
|
|
6582
|
-
const [name$
|
|
6618
|
+
const [name$O, bem$O] = createNamespace("time-picker");
|
|
6583
6619
|
const timePickerProps = extend({}, sharedProps, {
|
|
6584
6620
|
minHour: makeNumericProp(0),
|
|
6585
6621
|
maxHour: makeNumericProp(23),
|
|
@@ -6596,8 +6632,8 @@
|
|
|
6596
6632
|
default: () => ["hour", "minute"]
|
|
6597
6633
|
}
|
|
6598
6634
|
});
|
|
6599
|
-
var stdin_default$
|
|
6600
|
-
name: name$
|
|
6635
|
+
var stdin_default$17 = vue.defineComponent({
|
|
6636
|
+
name: name$O,
|
|
6601
6637
|
props: timePickerProps,
|
|
6602
6638
|
emits: ["clickOption", "change", "update:modelValue"],
|
|
6603
6639
|
setup(props, {
|
|
@@ -6671,7 +6707,7 @@
|
|
|
6671
6707
|
currentOption
|
|
6672
6708
|
}, getEventParams()));
|
|
6673
6709
|
const hasUnit = props.columnsUnit.length === currentColumns.value.length;
|
|
6674
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$
|
|
6710
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => vue.createVNode(vue.Fragment, null, [vue.createVNode(stdin_default$18, {
|
|
6675
6711
|
"value": selectedValues.value[columnIndex],
|
|
6676
6712
|
"fields": fields.value,
|
|
6677
6713
|
"options": options,
|
|
@@ -6690,9 +6726,9 @@
|
|
|
6690
6726
|
const separatorCount = currentColumns.value && currentColumns.value.length - 1;
|
|
6691
6727
|
if (separatorCount > 0) {
|
|
6692
6728
|
return vue.createVNode("div", {
|
|
6693
|
-
"class": bem$
|
|
6729
|
+
"class": bem$O("separator")
|
|
6694
6730
|
}, [Array(separatorCount).fill(null).map(() => vue.createVNode("span", {
|
|
6695
|
-
"class": bem$
|
|
6731
|
+
"class": bem$O("colon")
|
|
6696
6732
|
}, null))]);
|
|
6697
6733
|
}
|
|
6698
6734
|
};
|
|
@@ -6703,7 +6739,7 @@
|
|
|
6703
6739
|
};
|
|
6704
6740
|
return vue.createVNode("div", {
|
|
6705
6741
|
"ref": columnsRef,
|
|
6706
|
-
"class": bem$
|
|
6742
|
+
"class": bem$O("columns"),
|
|
6707
6743
|
"style": columnsStyle
|
|
6708
6744
|
}, [renderSeparators(), renderColumnItems()]);
|
|
6709
6745
|
};
|
|
@@ -6736,13 +6772,13 @@
|
|
|
6736
6772
|
target: columnsRef
|
|
6737
6773
|
});
|
|
6738
6774
|
return () => vue.createVNode("div", {
|
|
6739
|
-
"class": bem$
|
|
6775
|
+
"class": bem$O()
|
|
6740
6776
|
}, [renderColumns()]);
|
|
6741
6777
|
}
|
|
6742
6778
|
});
|
|
6743
|
-
const TimePicker = withInstall(stdin_default$
|
|
6744
|
-
var stdin_default$
|
|
6745
|
-
const [name$
|
|
6779
|
+
const TimePicker = withInstall(stdin_default$17);
|
|
6780
|
+
var stdin_default$16 = TimePicker;
|
|
6781
|
+
const [name$N, bem$N] = createNamespace("date-time-picker-wrapper");
|
|
6746
6782
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6747
6783
|
const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
|
|
6748
6784
|
range: Boolean,
|
|
@@ -6765,8 +6801,8 @@
|
|
|
6765
6801
|
startValue: makeArrayProp(),
|
|
6766
6802
|
endValue: makeArrayProp()
|
|
6767
6803
|
});
|
|
6768
|
-
var stdin_default$
|
|
6769
|
-
name: name$
|
|
6804
|
+
var stdin_default$15 = vue.defineComponent({
|
|
6805
|
+
name: name$N,
|
|
6770
6806
|
props: dateTimePickerProps,
|
|
6771
6807
|
emits: ["change", "update:modelValue"],
|
|
6772
6808
|
setup(props, {
|
|
@@ -6960,7 +6996,7 @@
|
|
|
6960
6996
|
});
|
|
6961
6997
|
const hasDateColumn = props.columnsType.includes("year") || props.columnsType.includes("month") || props.columnsType.includes("day");
|
|
6962
6998
|
const hasTimeColumn = props.columnsType.includes("hour") || props.columnsType.includes("minute") || props.columnsType.includes("second");
|
|
6963
|
-
const renderTimePicker = () => vue.createVNode(stdin_default$
|
|
6999
|
+
const renderTimePicker = () => vue.createVNode(stdin_default$16, {
|
|
6964
7000
|
"modelValue": timeValuesRef.value,
|
|
6965
7001
|
"onUpdate:modelValue": ($event) => timeValuesRef.value = $event,
|
|
6966
7002
|
"columnsUnit": timeUnits.value,
|
|
@@ -6968,10 +7004,10 @@
|
|
|
6968
7004
|
"columnsType": timeColumnsType.value
|
|
6969
7005
|
}, null);
|
|
6970
7006
|
const renderPicker = () => vue.createVNode("div", {
|
|
6971
|
-
"class": bem$
|
|
7007
|
+
"class": bem$N()
|
|
6972
7008
|
}, [hasDateColumn ? vue.createVNode(Divider, {
|
|
6973
7009
|
"style": "margin: 0"
|
|
6974
|
-
}, null) : null, hasDateColumn ? vue.createVNode(stdin_default$
|
|
7010
|
+
}, null) : null, hasDateColumn ? vue.createVNode(stdin_default$1a, vue.mergeProps({
|
|
6975
7011
|
"popup": false,
|
|
6976
7012
|
"columnsUnit": dateUnits.value,
|
|
6977
7013
|
"modelValue": dateValuesRef.value,
|
|
@@ -6985,9 +7021,9 @@
|
|
|
6985
7021
|
return () => renderPicker();
|
|
6986
7022
|
}
|
|
6987
7023
|
});
|
|
6988
|
-
const [name$
|
|
6989
|
-
var stdin_default$
|
|
6990
|
-
name: name$
|
|
7024
|
+
const [name$M, bem$M] = createNamespace("date-time-picker");
|
|
7025
|
+
var stdin_default$14 = vue.defineComponent({
|
|
7026
|
+
name: name$M,
|
|
6991
7027
|
props: dateTimePickerProps,
|
|
6992
7028
|
emits: ["confirm", "cancel", "change", "startChange", "endChange", "update:show", "update:modelValue", "update:startValue", "update:endValue"],
|
|
6993
7029
|
setup(props, {
|
|
@@ -7127,17 +7163,17 @@
|
|
|
7127
7163
|
const renderTitle = () => {
|
|
7128
7164
|
if (!props.range) {
|
|
7129
7165
|
return vue.createVNode("div", {
|
|
7130
|
-
"class": bem$
|
|
7166
|
+
"class": bem$M("title-bar")
|
|
7131
7167
|
}, [vue.createVNode("div", {
|
|
7132
|
-
"class": [ELLIPSIS, bem$
|
|
7168
|
+
"class": [ELLIPSIS, bem$M("title")]
|
|
7133
7169
|
}, [props.title]), vue.createVNode("div", {
|
|
7134
|
-
"class": [ELLIPSIS, bem$
|
|
7170
|
+
"class": [ELLIPSIS, bem$M("value")]
|
|
7135
7171
|
}, [currentText.value])]);
|
|
7136
7172
|
}
|
|
7137
7173
|
return vue.createVNode("div", {
|
|
7138
|
-
"class": bem$
|
|
7174
|
+
"class": bem$M("title-tab-bar")
|
|
7139
7175
|
}, [vue.createVNode("div", {
|
|
7140
|
-
"class": [HAPTICS_FEEDBACK, bem$
|
|
7176
|
+
"class": [HAPTICS_FEEDBACK, bem$M("title-bar", {
|
|
7141
7177
|
selected: rangeSelectedIndex.value === 0,
|
|
7142
7178
|
unselected: rangeSelectedIndex.value === 1
|
|
7143
7179
|
})],
|
|
@@ -7145,16 +7181,16 @@
|
|
|
7145
7181
|
rangeSelectedIndex.value = 0;
|
|
7146
7182
|
}
|
|
7147
7183
|
}, [vue.createVNode("div", {
|
|
7148
|
-
"class": [ELLIPSIS, bem$
|
|
7184
|
+
"class": [ELLIPSIS, bem$M("title", {
|
|
7149
7185
|
selected: rangeSelectedIndex.value === 0,
|
|
7150
7186
|
unselected: rangeSelectedIndex.value === 1
|
|
7151
7187
|
})]
|
|
7152
7188
|
}, [vue.createTextVNode("开始时间")]), vue.createVNode("div", {
|
|
7153
|
-
"class": [ELLIPSIS, bem$
|
|
7189
|
+
"class": [ELLIPSIS, bem$M("value")]
|
|
7154
7190
|
}, [currentStartText.value])]), vue.createVNode("span", {
|
|
7155
|
-
"class": bem$
|
|
7191
|
+
"class": bem$M("title-separator")
|
|
7156
7192
|
}, null), vue.createVNode("div", {
|
|
7157
|
-
"class": [HAPTICS_FEEDBACK, bem$
|
|
7193
|
+
"class": [HAPTICS_FEEDBACK, bem$M("title-bar", {
|
|
7158
7194
|
selected: rangeSelectedIndex.value === 1,
|
|
7159
7195
|
unselected: rangeSelectedIndex.value === 0
|
|
7160
7196
|
})],
|
|
@@ -7162,17 +7198,17 @@
|
|
|
7162
7198
|
rangeSelectedIndex.value = 1;
|
|
7163
7199
|
}
|
|
7164
7200
|
}, [vue.createVNode("div", {
|
|
7165
|
-
"class": [ELLIPSIS, bem$
|
|
7201
|
+
"class": [ELLIPSIS, bem$M("title", {
|
|
7166
7202
|
selected: rangeSelectedIndex.value === 1,
|
|
7167
7203
|
unselected: rangeSelectedIndex.value === 0
|
|
7168
7204
|
})]
|
|
7169
7205
|
}, [vue.createTextVNode("结束时间")]), vue.createVNode("div", {
|
|
7170
|
-
"class": [ELLIPSIS, bem$
|
|
7206
|
+
"class": [ELLIPSIS, bem$M("value")]
|
|
7171
7207
|
}, [currentEndText.value])])]);
|
|
7172
7208
|
};
|
|
7173
7209
|
const renderPicker = () => {
|
|
7174
7210
|
if (!props.range) {
|
|
7175
|
-
return vue.createVNode(stdin_default$
|
|
7211
|
+
return vue.createVNode(stdin_default$15, vue.mergeProps({
|
|
7176
7212
|
"ref": currentPickerRef,
|
|
7177
7213
|
"modelValue": props.modelValue,
|
|
7178
7214
|
"onUpdate:modelValue": ($event) => props.modelValue = $event,
|
|
@@ -7184,7 +7220,7 @@
|
|
|
7184
7220
|
showTitle: false
|
|
7185
7221
|
})), null);
|
|
7186
7222
|
}
|
|
7187
|
-
return [vue.withDirectives(vue.createVNode(stdin_default$
|
|
7223
|
+
return [vue.withDirectives(vue.createVNode(stdin_default$15, vue.mergeProps({
|
|
7188
7224
|
"ref": currentStartPickerRef,
|
|
7189
7225
|
"modelValue": props.startValue,
|
|
7190
7226
|
"onUpdate:modelValue": ($event) => props.startValue = $event,
|
|
@@ -7194,7 +7230,7 @@
|
|
|
7194
7230
|
"minDate": props.minDate
|
|
7195
7231
|
}, extend(pick(props, pickerInheritKeys), {
|
|
7196
7232
|
showTitle: false
|
|
7197
|
-
})), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$
|
|
7233
|
+
})), null), [[vue.vShow, rangeSelectedIndex.value === 0]]), vue.withDirectives(vue.createVNode(stdin_default$15, vue.mergeProps({
|
|
7198
7234
|
"ref": currentEndPickerRef,
|
|
7199
7235
|
"modelValue": props.endValue,
|
|
7200
7236
|
"onUpdate:modelValue": ($event) => props.endValue = $event,
|
|
@@ -7208,15 +7244,15 @@
|
|
|
7208
7244
|
};
|
|
7209
7245
|
const renderToolbar = () => {
|
|
7210
7246
|
if (props.showToolbar) {
|
|
7211
|
-
return [vue.createVNode(stdin_default$
|
|
7247
|
+
return [vue.createVNode(stdin_default$1o, {
|
|
7212
7248
|
"style": "margin: 0"
|
|
7213
|
-
}, null), vue.createVNode(stdin_default$
|
|
7249
|
+
}, null), vue.createVNode(stdin_default$1c, vue.mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7214
7250
|
"onConfirm": onConfirm,
|
|
7215
7251
|
"onCancel": onCancel
|
|
7216
7252
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
7217
7253
|
}
|
|
7218
7254
|
};
|
|
7219
|
-
return () => vue.createVNode(stdin_default$
|
|
7255
|
+
return () => vue.createVNode(stdin_default$1L, {
|
|
7220
7256
|
"round": true,
|
|
7221
7257
|
"position": "bottom",
|
|
7222
7258
|
"onOpen": onOpen,
|
|
@@ -7227,8 +7263,8 @@
|
|
|
7227
7263
|
});
|
|
7228
7264
|
}
|
|
7229
7265
|
});
|
|
7230
|
-
const DateTimePicker = withInstall(stdin_default$
|
|
7231
|
-
const [name$
|
|
7266
|
+
const DateTimePicker = withInstall(stdin_default$14);
|
|
7267
|
+
const [name$L, bem$L, t$5] = createNamespace("dialog");
|
|
7232
7268
|
const dialogProps = extend({}, popupSharedProps, {
|
|
7233
7269
|
title: String,
|
|
7234
7270
|
primaryHeader: Boolean,
|
|
@@ -7252,8 +7288,8 @@
|
|
|
7252
7288
|
closeOnClickOverlay: Boolean
|
|
7253
7289
|
});
|
|
7254
7290
|
const popupInheritKeys = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
|
7255
|
-
var stdin_default$
|
|
7256
|
-
name: name$
|
|
7291
|
+
var stdin_default$13 = vue.defineComponent({
|
|
7292
|
+
name: name$L,
|
|
7257
7293
|
props: dialogProps,
|
|
7258
7294
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
|
7259
7295
|
setup(props, {
|
|
@@ -7317,7 +7353,7 @@
|
|
|
7317
7353
|
// }])}
|
|
7318
7354
|
// >
|
|
7319
7355
|
vue.createVNode("div", {
|
|
7320
|
-
"class": bem$
|
|
7356
|
+
"class": bem$L("header", {
|
|
7321
7357
|
isolated: !props.message && !slots.default,
|
|
7322
7358
|
"custom-title": !!slots.title,
|
|
7323
7359
|
primary: props.primaryHeader
|
|
@@ -7340,7 +7376,7 @@
|
|
|
7340
7376
|
} else if (hasTitle) {
|
|
7341
7377
|
mods["has-title"] = hasTitle;
|
|
7342
7378
|
}
|
|
7343
|
-
const classNames = bem$
|
|
7379
|
+
const classNames = bem$L("message", mods);
|
|
7344
7380
|
const content = isFunction(message) ? message() : message;
|
|
7345
7381
|
if (allowHtml && typeof content === "string") {
|
|
7346
7382
|
return vue.createVNode("div", {
|
|
@@ -7355,7 +7391,7 @@
|
|
|
7355
7391
|
const renderContent = () => {
|
|
7356
7392
|
if (slots.default) {
|
|
7357
7393
|
return vue.createVNode("div", {
|
|
7358
|
-
"class": bem$
|
|
7394
|
+
"class": bem$L("content")
|
|
7359
7395
|
}, [slots.default()]);
|
|
7360
7396
|
}
|
|
7361
7397
|
const {
|
|
@@ -7367,19 +7403,19 @@
|
|
|
7367
7403
|
const hasTitle = !!(title || slots.title);
|
|
7368
7404
|
return vue.createVNode("div", {
|
|
7369
7405
|
"key": allowHtml ? 1 : 0,
|
|
7370
|
-
"class": bem$
|
|
7406
|
+
"class": bem$L("content", {
|
|
7371
7407
|
isolated: !hasTitle
|
|
7372
7408
|
})
|
|
7373
7409
|
}, [renderMessage(hasTitle)]);
|
|
7374
7410
|
}
|
|
7375
7411
|
};
|
|
7376
7412
|
const renderButtons = () => vue.createVNode("div", {
|
|
7377
|
-
"class": bem$
|
|
7413
|
+
"class": bem$L("footer")
|
|
7378
7414
|
}, [props.showCancelButton && vue.createVNode(Button, {
|
|
7379
7415
|
"type": "default",
|
|
7380
7416
|
"hairline": true,
|
|
7381
7417
|
"text": props.cancelButtonText || t$5("cancel"),
|
|
7382
|
-
"class": bem$
|
|
7418
|
+
"class": bem$L("cancel"),
|
|
7383
7419
|
"style": {
|
|
7384
7420
|
color: props.cancelButtonColor
|
|
7385
7421
|
},
|
|
@@ -7389,7 +7425,7 @@
|
|
|
7389
7425
|
}, null), props.showConfirmButton && vue.createVNode(Button, {
|
|
7390
7426
|
"type": "primary",
|
|
7391
7427
|
"text": props.confirmButtonText || t$5("confirm"),
|
|
7392
|
-
"class": bem$
|
|
7428
|
+
"class": bem$L("confirm", {
|
|
7393
7429
|
"with-cancel": props.showCancelButton
|
|
7394
7430
|
}),
|
|
7395
7431
|
"style": {
|
|
@@ -7416,7 +7452,7 @@
|
|
|
7416
7452
|
return vue.createVNode(Popup, vue.mergeProps({
|
|
7417
7453
|
"ref": root,
|
|
7418
7454
|
"role": "dialog",
|
|
7419
|
-
"class": [bem$
|
|
7455
|
+
"class": [bem$L([theme]), className],
|
|
7420
7456
|
"style": {
|
|
7421
7457
|
width: addUnit(width2)
|
|
7422
7458
|
},
|
|
@@ -7466,7 +7502,7 @@
|
|
|
7466
7502
|
state,
|
|
7467
7503
|
toggle
|
|
7468
7504
|
} = usePopupState();
|
|
7469
|
-
return () => vue.createVNode(stdin_default$
|
|
7505
|
+
return () => vue.createVNode(stdin_default$13, vue.mergeProps(state, {
|
|
7470
7506
|
"onUpdate:show": toggle
|
|
7471
7507
|
}), null);
|
|
7472
7508
|
}
|
|
@@ -7504,8 +7540,8 @@
|
|
|
7504
7540
|
instance$2.toggle(false);
|
|
7505
7541
|
}
|
|
7506
7542
|
};
|
|
7507
|
-
const Dialog = withInstall(stdin_default$
|
|
7508
|
-
const [name$
|
|
7543
|
+
const Dialog = withInstall(stdin_default$13);
|
|
7544
|
+
const [name$K, bem$K] = createNamespace("dropdown-menu");
|
|
7509
7545
|
const dropdownMenuProps = {
|
|
7510
7546
|
overlay: truthProp,
|
|
7511
7547
|
zIndex: numericProp,
|
|
@@ -7515,9 +7551,9 @@
|
|
|
7515
7551
|
closeOnClickOutside: truthProp,
|
|
7516
7552
|
closeOnClickOverlay: truthProp
|
|
7517
7553
|
};
|
|
7518
|
-
const DROPDOWN_KEY = Symbol(name$
|
|
7519
|
-
var stdin_default$
|
|
7520
|
-
name: name$
|
|
7554
|
+
const DROPDOWN_KEY = Symbol(name$K);
|
|
7555
|
+
var stdin_default$12 = vue.defineComponent({
|
|
7556
|
+
name: name$K,
|
|
7521
7557
|
props: dropdownMenuProps,
|
|
7522
7558
|
setup(props, {
|
|
7523
7559
|
slots
|
|
@@ -7584,7 +7620,7 @@
|
|
|
7584
7620
|
"id": `${id}-${index}`,
|
|
7585
7621
|
"role": "button",
|
|
7586
7622
|
"tabindex": disabled ? void 0 : 0,
|
|
7587
|
-
"class": [bem$
|
|
7623
|
+
"class": [bem$K("item", {
|
|
7588
7624
|
disabled
|
|
7589
7625
|
}), {
|
|
7590
7626
|
[HAPTICS_FEEDBACK]: !disabled
|
|
@@ -7595,7 +7631,7 @@
|
|
|
7595
7631
|
}
|
|
7596
7632
|
}
|
|
7597
7633
|
}, [vue.createVNode("span", {
|
|
7598
|
-
"class": [bem$
|
|
7634
|
+
"class": [bem$K("title", {
|
|
7599
7635
|
down: showPopup === (props.direction === "down"),
|
|
7600
7636
|
active: showPopup
|
|
7601
7637
|
}), titleClass],
|
|
@@ -7605,8 +7641,8 @@
|
|
|
7605
7641
|
}, [vue.createVNode("div", {
|
|
7606
7642
|
"class": "zt-ellipsis",
|
|
7607
7643
|
"style": "padding-right: 18px"
|
|
7608
|
-
}, [slots.title || item.renderTitle(), slots.icon || vue.createVNode(stdin_default$
|
|
7609
|
-
"class": bem$
|
|
7644
|
+
}, [slots.title || item.renderTitle(), slots.icon || vue.createVNode(stdin_default$1N, {
|
|
7645
|
+
"class": bem$K("icon"),
|
|
7610
7646
|
"name": "spinner-expand"
|
|
7611
7647
|
}, null)])])]);
|
|
7612
7648
|
};
|
|
@@ -7625,18 +7661,18 @@
|
|
|
7625
7661
|
var _a;
|
|
7626
7662
|
return vue.createVNode("div", {
|
|
7627
7663
|
"ref": root,
|
|
7628
|
-
"class": bem$
|
|
7664
|
+
"class": bem$K()
|
|
7629
7665
|
}, [vue.createVNode("div", {
|
|
7630
7666
|
"ref": barRef,
|
|
7631
7667
|
"style": barStyle.value,
|
|
7632
|
-
"class": bem$
|
|
7668
|
+
"class": bem$K("bar", {
|
|
7633
7669
|
opened: opened.value
|
|
7634
7670
|
})
|
|
7635
7671
|
}, [children.map(renderTitle)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
7636
7672
|
};
|
|
7637
7673
|
}
|
|
7638
7674
|
});
|
|
7639
|
-
const [name$
|
|
7675
|
+
const [name$J, bem$J] = createNamespace("dropdown-item");
|
|
7640
7676
|
const dropdownItemProps = {
|
|
7641
7677
|
title: String,
|
|
7642
7678
|
options: makeArrayProp(),
|
|
@@ -7648,8 +7684,8 @@
|
|
|
7648
7684
|
titleClass: unknownProp,
|
|
7649
7685
|
multiSelect: Boolean
|
|
7650
7686
|
};
|
|
7651
|
-
var stdin_default$
|
|
7652
|
-
name: name$
|
|
7687
|
+
var stdin_default$11 = vue.defineComponent({
|
|
7688
|
+
name: name$J,
|
|
7653
7689
|
inheritAttrs: false,
|
|
7654
7690
|
props: dropdownItemProps,
|
|
7655
7691
|
emits: ["open", "opened", "close", "closed", "change", "update:modelValue", "reset", "confirm"],
|
|
@@ -7781,7 +7817,7 @@
|
|
|
7781
7817
|
}
|
|
7782
7818
|
if (active) {
|
|
7783
7819
|
return vue.createVNode(Icon, {
|
|
7784
|
-
"class": bem$
|
|
7820
|
+
"class": bem$J("icon"),
|
|
7785
7821
|
"color": activeColor,
|
|
7786
7822
|
"name": "success"
|
|
7787
7823
|
}, null);
|
|
@@ -7794,7 +7830,7 @@
|
|
|
7794
7830
|
"title-icon": option.icon,
|
|
7795
7831
|
"title": option.text,
|
|
7796
7832
|
"direction": "horizontal",
|
|
7797
|
-
"class": [bem$
|
|
7833
|
+
"class": [bem$J("option", {
|
|
7798
7834
|
active
|
|
7799
7835
|
}), HAPTICS_FEEDBACK],
|
|
7800
7836
|
"style": {
|
|
@@ -7813,7 +7849,7 @@
|
|
|
7813
7849
|
"title-icon": option.icon,
|
|
7814
7850
|
"title": option.text,
|
|
7815
7851
|
"direction": "horizontal",
|
|
7816
|
-
"class": [bem$
|
|
7852
|
+
"class": [bem$J("option", {
|
|
7817
7853
|
active
|
|
7818
7854
|
}), HAPTICS_FEEDBACK],
|
|
7819
7855
|
"style": {
|
|
@@ -7862,13 +7898,13 @@
|
|
|
7862
7898
|
}
|
|
7863
7899
|
return vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
|
7864
7900
|
"style": style,
|
|
7865
|
-
"class": bem$
|
|
7901
|
+
"class": bem$J([direction]),
|
|
7866
7902
|
"onClick": onClickWrapper
|
|
7867
7903
|
}, attrs), [vue.createVNode(Popup, {
|
|
7868
7904
|
"show": state.showPopup,
|
|
7869
7905
|
"onUpdate:show": ($event) => state.showPopup = $event,
|
|
7870
7906
|
"role": "menu",
|
|
7871
|
-
"class": bem$
|
|
7907
|
+
"class": bem$J("content"),
|
|
7872
7908
|
"style": contentStyle,
|
|
7873
7909
|
"overlay": overlay,
|
|
7874
7910
|
"position": direction === "down" ? "top" : "bottom",
|
|
@@ -7887,20 +7923,20 @@
|
|
|
7887
7923
|
default: () => {
|
|
7888
7924
|
var _a;
|
|
7889
7925
|
return [vue.withDirectives(vue.createVNode("div", null, [props.options.map(renderOption)]), [[vue.vShow, !props.multiSelect]]), vue.withDirectives(vue.createVNode("div", {
|
|
7890
|
-
"class": bem$
|
|
7926
|
+
"class": bem$J("options"),
|
|
7891
7927
|
"style": optionsStyle
|
|
7892
7928
|
}, [props.options.map(renderOption)]), [[vue.vShow, props.multiSelect]]), vue.withDirectives(vue.createVNode("div", {
|
|
7893
|
-
"class": bem$
|
|
7929
|
+
"class": bem$J("button"),
|
|
7894
7930
|
"style": buttonStyle
|
|
7895
7931
|
}, [vue.createVNode(Button, {
|
|
7896
7932
|
"onClick": onClickReset,
|
|
7897
|
-
"class": bem$
|
|
7933
|
+
"class": bem$J("button-reset")
|
|
7898
7934
|
}, {
|
|
7899
7935
|
default: () => [vue.createTextVNode("重置")]
|
|
7900
7936
|
}), vue.createVNode(Button, {
|
|
7901
7937
|
"type": "primary",
|
|
7902
7938
|
"onClick": onClickConfirm,
|
|
7903
|
-
"class": bem$
|
|
7939
|
+
"class": bem$J("button-confirm")
|
|
7904
7940
|
}, {
|
|
7905
7941
|
default: () => [vue.createTextVNode("确定")]
|
|
7906
7942
|
})]), [[vue.vShow, props.multiSelect]]), (_a = slots.default) == null ? void 0 : _a.call(slots)];
|
|
@@ -7924,8 +7960,8 @@
|
|
|
7924
7960
|
};
|
|
7925
7961
|
}
|
|
7926
7962
|
});
|
|
7927
|
-
const DropdownItem = withInstall(stdin_default$
|
|
7928
|
-
const DropdownMenu = withInstall(stdin_default$
|
|
7963
|
+
const DropdownItem = withInstall(stdin_default$11);
|
|
7964
|
+
const DropdownMenu = withInstall(stdin_default$12);
|
|
7929
7965
|
const renderNotFound = (bem2) => vue.createVNode("svg", {
|
|
7930
7966
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
7931
7967
|
"viewBox": "0 0 160 160",
|
|
@@ -9059,7 +9095,7 @@
|
|
|
9059
9095
|
"fill": "#FFF",
|
|
9060
9096
|
"xlink:href": "#4roobwtpf__8hxpuw7vce"
|
|
9061
9097
|
}, null)])])]);
|
|
9062
|
-
const [name$
|
|
9098
|
+
const [name$I, bem$I] = createNamespace("empty");
|
|
9063
9099
|
const PRESET_IMAGES = {
|
|
9064
9100
|
default: renderNotFound,
|
|
9065
9101
|
error: renderNotFound,
|
|
@@ -9079,8 +9115,8 @@
|
|
|
9079
9115
|
imageSize: [Number, String, Array],
|
|
9080
9116
|
description: String
|
|
9081
9117
|
};
|
|
9082
|
-
var stdin_default
|
|
9083
|
-
name: name$
|
|
9118
|
+
var stdin_default$10 = vue.defineComponent({
|
|
9119
|
+
name: name$I,
|
|
9084
9120
|
props: emptyProps,
|
|
9085
9121
|
setup(props, {
|
|
9086
9122
|
slots
|
|
@@ -9090,7 +9126,7 @@
|
|
|
9090
9126
|
if (slots.image) {
|
|
9091
9127
|
return slots.image();
|
|
9092
9128
|
}
|
|
9093
|
-
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$
|
|
9129
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$I)) || vue.createVNode("img", {
|
|
9094
9130
|
"src": props.image
|
|
9095
9131
|
}, null);
|
|
9096
9132
|
};
|
|
@@ -9098,26 +9134,26 @@
|
|
|
9098
9134
|
const description = slots.description ? slots.description() : props.description;
|
|
9099
9135
|
if (description) {
|
|
9100
9136
|
return vue.createVNode("p", {
|
|
9101
|
-
"class": bem$
|
|
9137
|
+
"class": bem$I("description")
|
|
9102
9138
|
}, [description]);
|
|
9103
9139
|
}
|
|
9104
9140
|
};
|
|
9105
9141
|
const renderBottom = () => {
|
|
9106
9142
|
if (slots.default) {
|
|
9107
9143
|
return vue.createVNode("div", {
|
|
9108
|
-
"class": bem$
|
|
9144
|
+
"class": bem$I("bottom")
|
|
9109
9145
|
}, [slots.default()]);
|
|
9110
9146
|
}
|
|
9111
9147
|
};
|
|
9112
9148
|
return () => vue.createVNode("div", {
|
|
9113
|
-
"class": bem$
|
|
9149
|
+
"class": bem$I()
|
|
9114
9150
|
}, [vue.createVNode("div", {
|
|
9115
|
-
"class": bem$
|
|
9151
|
+
"class": bem$I("image"),
|
|
9116
9152
|
"style": getSizeStyle(props.imageSize)
|
|
9117
9153
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
|
9118
9154
|
}
|
|
9119
9155
|
});
|
|
9120
|
-
const Empty = withInstall(stdin_default
|
|
9156
|
+
const Empty = withInstall(stdin_default$10);
|
|
9121
9157
|
function isEmptyValue(value) {
|
|
9122
9158
|
if (Array.isArray(value)) {
|
|
9123
9159
|
return !value.length;
|
|
@@ -9206,7 +9242,7 @@
|
|
|
9206
9242
|
function cutString(str, maxlength) {
|
|
9207
9243
|
return [...str].slice(0, maxlength).join("");
|
|
9208
9244
|
}
|
|
9209
|
-
const [name$
|
|
9245
|
+
const [name$H, bem$H] = createNamespace("field");
|
|
9210
9246
|
const fieldSharedProps = {
|
|
9211
9247
|
id: String,
|
|
9212
9248
|
name: String,
|
|
@@ -9256,8 +9292,8 @@
|
|
|
9256
9292
|
default: null
|
|
9257
9293
|
}
|
|
9258
9294
|
});
|
|
9259
|
-
var stdin_default
|
|
9260
|
-
name: name$
|
|
9295
|
+
var stdin_default$$ = vue.defineComponent({
|
|
9296
|
+
name: name$H,
|
|
9261
9297
|
props: fieldProps,
|
|
9262
9298
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
|
9263
9299
|
setup(props, {
|
|
@@ -9489,7 +9525,7 @@
|
|
|
9489
9525
|
const getInputId = () => props.id || `${id}-input`;
|
|
9490
9526
|
const getValidationStatus = () => state.status;
|
|
9491
9527
|
const renderInput = () => {
|
|
9492
|
-
const controlClass = bem$
|
|
9528
|
+
const controlClass = bem$H("control", [getProp("inputAlign"), {
|
|
9493
9529
|
error: showError.value,
|
|
9494
9530
|
custom: !!slots.input,
|
|
9495
9531
|
"min-height": props.type === "textarea" && !props.autosize
|
|
@@ -9527,7 +9563,7 @@
|
|
|
9527
9563
|
}
|
|
9528
9564
|
if (props.type === "password") {
|
|
9529
9565
|
return vue.createVNode("div", {
|
|
9530
|
-
"class": bem$
|
|
9566
|
+
"class": bem$H("password")
|
|
9531
9567
|
}, [vue.createVNode("input", vue.mergeProps({
|
|
9532
9568
|
"type": state.showPassword ? "text" : "password"
|
|
9533
9569
|
}, inputAttrs), null), vue.createVNode(Icon, {
|
|
@@ -9541,7 +9577,7 @@
|
|
|
9541
9577
|
const leftIconSlot = slots["left-icon"];
|
|
9542
9578
|
if (props.leftIcon || leftIconSlot) {
|
|
9543
9579
|
return vue.createVNode("div", {
|
|
9544
|
-
"class": bem$
|
|
9580
|
+
"class": bem$H("left-icon"),
|
|
9545
9581
|
"onClick": onClickLeftIcon
|
|
9546
9582
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
|
9547
9583
|
"name": props.leftIcon,
|
|
@@ -9553,7 +9589,7 @@
|
|
|
9553
9589
|
const titleIconSlot = slots["title-icon"];
|
|
9554
9590
|
if (props.titleIcon || titleIconSlot) {
|
|
9555
9591
|
return vue.createVNode("div", {
|
|
9556
|
-
"class": bem$
|
|
9592
|
+
"class": bem$H("title-icon")
|
|
9557
9593
|
}, [titleIconSlot ? titleIconSlot() : vue.createVNode(Icon, {
|
|
9558
9594
|
"name": props.titleIcon,
|
|
9559
9595
|
"classPrefix": props.iconPrefix
|
|
@@ -9564,7 +9600,7 @@
|
|
|
9564
9600
|
const rightIconSlot = slots["right-icon"];
|
|
9565
9601
|
if (props.rightIcon || rightIconSlot) {
|
|
9566
9602
|
return vue.createVNode("div", {
|
|
9567
|
-
"class": bem$
|
|
9603
|
+
"class": bem$H("right-icon"),
|
|
9568
9604
|
"onClick": onClickRightIcon
|
|
9569
9605
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
|
9570
9606
|
"name": props.rightIcon,
|
|
@@ -9576,9 +9612,9 @@
|
|
|
9576
9612
|
if (props.showWordLimit && props.maxlength) {
|
|
9577
9613
|
const count = getStringLength(getModelValue());
|
|
9578
9614
|
return vue.createVNode("div", {
|
|
9579
|
-
"class": bem$
|
|
9615
|
+
"class": bem$H("word-limit")
|
|
9580
9616
|
}, [vue.createVNode("span", {
|
|
9581
|
-
"class": bem$
|
|
9617
|
+
"class": bem$H("word-num", count >= +props.maxlength ? "exceed" : "")
|
|
9582
9618
|
}, [count]), vue.createTextVNode("/"), props.maxlength]);
|
|
9583
9619
|
}
|
|
9584
9620
|
};
|
|
@@ -9587,7 +9623,7 @@
|
|
|
9587
9623
|
return;
|
|
9588
9624
|
}
|
|
9589
9625
|
return vue.createVNode("div", {
|
|
9590
|
-
"class": [bem$
|
|
9626
|
+
"class": [bem$H("description"), props.descriptionClass]
|
|
9591
9627
|
}, [props.description]);
|
|
9592
9628
|
};
|
|
9593
9629
|
const showMessage = vue.computed(() => !(form && form.props.showErrorMessage === false) && (props.errorMessage || state.validateMessage));
|
|
@@ -9600,7 +9636,7 @@
|
|
|
9600
9636
|
const slot = slots["error-message"];
|
|
9601
9637
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
9602
9638
|
return vue.createVNode("div", {
|
|
9603
|
-
"class": bem$
|
|
9639
|
+
"class": bem$H("error-message", errorMessageAlign)
|
|
9604
9640
|
}, [slot ? slot({
|
|
9605
9641
|
message
|
|
9606
9642
|
}) : message]);
|
|
@@ -9611,7 +9647,7 @@
|
|
|
9611
9647
|
return;
|
|
9612
9648
|
}
|
|
9613
9649
|
return vue.createVNode("div", {
|
|
9614
|
-
"class": bem$
|
|
9650
|
+
"class": bem$H("bottom")
|
|
9615
9651
|
}, [renderDescription(), renderMessage()]);
|
|
9616
9652
|
};
|
|
9617
9653
|
const renderLabel = () => {
|
|
@@ -9627,13 +9663,13 @@
|
|
|
9627
9663
|
}
|
|
9628
9664
|
};
|
|
9629
9665
|
const renderFieldBody = () => [vue.createVNode("div", {
|
|
9630
|
-
"class": bem$
|
|
9666
|
+
"class": bem$H("body")
|
|
9631
9667
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
|
9632
9668
|
"ref": clearIconRef,
|
|
9633
9669
|
"name": props.clearIcon,
|
|
9634
|
-
"class": bem$
|
|
9670
|
+
"class": bem$H("clear")
|
|
9635
9671
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
9636
|
-
"class": bem$
|
|
9672
|
+
"class": bem$H("button")
|
|
9637
9673
|
}, [slots.button()])]), renderWordLimit()];
|
|
9638
9674
|
useExpose({
|
|
9639
9675
|
blur,
|
|
@@ -9675,7 +9711,7 @@
|
|
|
9675
9711
|
"direction": props.direction,
|
|
9676
9712
|
"title-icon": props.titleIcon,
|
|
9677
9713
|
"left-icon": props.leftIcon,
|
|
9678
|
-
"class": bem$
|
|
9714
|
+
"class": bem$H({
|
|
9679
9715
|
error: showError.value,
|
|
9680
9716
|
disabled,
|
|
9681
9717
|
readonly,
|
|
@@ -9689,8 +9725,8 @@
|
|
|
9689
9725
|
"isLink": props.isLink,
|
|
9690
9726
|
"clickable": props.clickable,
|
|
9691
9727
|
"titleStyle": labelStyle.value,
|
|
9692
|
-
"valueClass": bem$
|
|
9693
|
-
"titleClass": [bem$
|
|
9728
|
+
"valueClass": bem$H("value"),
|
|
9729
|
+
"titleClass": [bem$H("label", [labelAlign, {
|
|
9694
9730
|
required: props.required
|
|
9695
9731
|
}]), props.labelClass],
|
|
9696
9732
|
"arrowDirection": props.arrowDirection
|
|
@@ -9705,7 +9741,179 @@
|
|
|
9705
9741
|
};
|
|
9706
9742
|
}
|
|
9707
9743
|
});
|
|
9708
|
-
const Field = withInstall(stdin_default
|
|
9744
|
+
const Field = withInstall(stdin_default$$);
|
|
9745
|
+
const floatingBubbleProps = {
|
|
9746
|
+
gap: makeNumberProp(24),
|
|
9747
|
+
icon: String,
|
|
9748
|
+
axis: makeStringProp("y"),
|
|
9749
|
+
magnetic: String,
|
|
9750
|
+
offset: {
|
|
9751
|
+
type: Object,
|
|
9752
|
+
default: () => ({
|
|
9753
|
+
x: -1,
|
|
9754
|
+
y: -1
|
|
9755
|
+
})
|
|
9756
|
+
},
|
|
9757
|
+
teleport: {
|
|
9758
|
+
type: [String, Object],
|
|
9759
|
+
default: "body"
|
|
9760
|
+
}
|
|
9761
|
+
};
|
|
9762
|
+
const [name$G, bem$G] = createNamespace("floating-bubble");
|
|
9763
|
+
var stdin_default$_ = vue.defineComponent({
|
|
9764
|
+
name: name$G,
|
|
9765
|
+
inheritAttrs: false,
|
|
9766
|
+
props: floatingBubbleProps,
|
|
9767
|
+
emits: ["click", "update:offset", "offsetChange"],
|
|
9768
|
+
setup(props, {
|
|
9769
|
+
slots,
|
|
9770
|
+
emit,
|
|
9771
|
+
attrs
|
|
9772
|
+
}) {
|
|
9773
|
+
const rootRef = vue.ref();
|
|
9774
|
+
const state = vue.ref({
|
|
9775
|
+
x: 0,
|
|
9776
|
+
y: 0,
|
|
9777
|
+
width: 0,
|
|
9778
|
+
height: 0
|
|
9779
|
+
});
|
|
9780
|
+
const boundary = vue.computed(() => ({
|
|
9781
|
+
top: props.gap,
|
|
9782
|
+
right: windowWidth.value - state.value.width - props.gap,
|
|
9783
|
+
bottom: windowHeight.value - state.value.height - props.gap,
|
|
9784
|
+
left: props.gap
|
|
9785
|
+
}));
|
|
9786
|
+
const dragging = vue.ref(false);
|
|
9787
|
+
let initialized = false;
|
|
9788
|
+
const rootStyle = vue.computed(() => {
|
|
9789
|
+
const style = {};
|
|
9790
|
+
const x2 = addUnit(state.value.x);
|
|
9791
|
+
const y2 = addUnit(state.value.y);
|
|
9792
|
+
style.transform = `translate3d(${x2}, ${y2}, 0)`;
|
|
9793
|
+
if (dragging.value || !initialized) {
|
|
9794
|
+
style.transition = "none";
|
|
9795
|
+
}
|
|
9796
|
+
return style;
|
|
9797
|
+
});
|
|
9798
|
+
const updateState = () => {
|
|
9799
|
+
if (!show.value)
|
|
9800
|
+
return;
|
|
9801
|
+
const {
|
|
9802
|
+
width: width2,
|
|
9803
|
+
height: height2
|
|
9804
|
+
} = useRect(rootRef.value);
|
|
9805
|
+
const {
|
|
9806
|
+
offset: offset2
|
|
9807
|
+
} = props;
|
|
9808
|
+
state.value = {
|
|
9809
|
+
x: offset2.x > -1 ? offset2.x : windowWidth.value - width2 - props.gap,
|
|
9810
|
+
y: offset2.y > -1 ? offset2.y : windowHeight.value - height2 - props.gap,
|
|
9811
|
+
width: width2,
|
|
9812
|
+
height: height2
|
|
9813
|
+
};
|
|
9814
|
+
};
|
|
9815
|
+
const touch = useTouch();
|
|
9816
|
+
let prevX = 0;
|
|
9817
|
+
let prevY = 0;
|
|
9818
|
+
const onTouchStart = (e2) => {
|
|
9819
|
+
touch.start(e2);
|
|
9820
|
+
dragging.value = true;
|
|
9821
|
+
prevX = state.value.x;
|
|
9822
|
+
prevY = state.value.y;
|
|
9823
|
+
};
|
|
9824
|
+
const onTouchMove = (e2) => {
|
|
9825
|
+
e2.preventDefault();
|
|
9826
|
+
touch.move(e2);
|
|
9827
|
+
if (props.axis === "lock")
|
|
9828
|
+
return;
|
|
9829
|
+
if (!touch.isTap.value) {
|
|
9830
|
+
if (props.axis === "x" || props.axis === "xy") {
|
|
9831
|
+
let nextX = prevX + touch.deltaX.value;
|
|
9832
|
+
if (nextX < boundary.value.left)
|
|
9833
|
+
nextX = boundary.value.left;
|
|
9834
|
+
if (nextX > boundary.value.right)
|
|
9835
|
+
nextX = boundary.value.right;
|
|
9836
|
+
state.value.x = nextX;
|
|
9837
|
+
}
|
|
9838
|
+
if (props.axis === "y" || props.axis === "xy") {
|
|
9839
|
+
let nextY = prevY + touch.deltaY.value;
|
|
9840
|
+
if (nextY < boundary.value.top)
|
|
9841
|
+
nextY = boundary.value.top;
|
|
9842
|
+
if (nextY > boundary.value.bottom)
|
|
9843
|
+
nextY = boundary.value.bottom;
|
|
9844
|
+
state.value.y = nextY;
|
|
9845
|
+
}
|
|
9846
|
+
const offset2 = pick(state.value, ["x", "y"]);
|
|
9847
|
+
emit("update:offset", offset2);
|
|
9848
|
+
}
|
|
9849
|
+
};
|
|
9850
|
+
useEventListener("touchmove", onTouchMove, {
|
|
9851
|
+
target: rootRef
|
|
9852
|
+
});
|
|
9853
|
+
const onTouchEnd = () => {
|
|
9854
|
+
dragging.value = false;
|
|
9855
|
+
vue.nextTick(() => {
|
|
9856
|
+
if (props.magnetic === "x") {
|
|
9857
|
+
const nextX = closest([boundary.value.left, boundary.value.right], state.value.x);
|
|
9858
|
+
state.value.x = nextX;
|
|
9859
|
+
}
|
|
9860
|
+
if (props.magnetic === "y") {
|
|
9861
|
+
const nextY = closest([boundary.value.top, boundary.value.bottom], state.value.y);
|
|
9862
|
+
state.value.y = nextY;
|
|
9863
|
+
}
|
|
9864
|
+
if (!touch.isTap.value) {
|
|
9865
|
+
const offset2 = pick(state.value, ["x", "y"]);
|
|
9866
|
+
emit("update:offset", offset2);
|
|
9867
|
+
if (prevX !== offset2.x || prevY !== offset2.y) {
|
|
9868
|
+
emit("offsetChange", offset2);
|
|
9869
|
+
}
|
|
9870
|
+
}
|
|
9871
|
+
});
|
|
9872
|
+
};
|
|
9873
|
+
const onClick = (e2) => {
|
|
9874
|
+
if (touch.isTap.value)
|
|
9875
|
+
emit("click", e2);
|
|
9876
|
+
else
|
|
9877
|
+
e2.stopPropagation();
|
|
9878
|
+
};
|
|
9879
|
+
vue.onMounted(() => {
|
|
9880
|
+
updateState();
|
|
9881
|
+
vue.nextTick(() => {
|
|
9882
|
+
initialized = true;
|
|
9883
|
+
});
|
|
9884
|
+
});
|
|
9885
|
+
vue.watch([windowWidth, windowHeight, () => props.gap, () => props.offset], updateState);
|
|
9886
|
+
const show = vue.ref(true);
|
|
9887
|
+
vue.onActivated(() => {
|
|
9888
|
+
show.value = true;
|
|
9889
|
+
});
|
|
9890
|
+
vue.onDeactivated(() => {
|
|
9891
|
+
if (props.teleport) {
|
|
9892
|
+
show.value = false;
|
|
9893
|
+
}
|
|
9894
|
+
});
|
|
9895
|
+
return () => {
|
|
9896
|
+
const Content = vue.withDirectives(vue.createVNode("div", vue.mergeProps({
|
|
9897
|
+
"class": bem$G(),
|
|
9898
|
+
"ref": rootRef,
|
|
9899
|
+
"onTouchstartPassive": onTouchStart,
|
|
9900
|
+
"onTouchend": onTouchEnd,
|
|
9901
|
+
"onTouchcancel": onTouchEnd,
|
|
9902
|
+
"onClick": onClick,
|
|
9903
|
+
"style": rootStyle.value
|
|
9904
|
+
}, attrs), [slots.default ? slots.default() : vue.createVNode(stdin_default$1N, {
|
|
9905
|
+
"name": props.icon,
|
|
9906
|
+
"class": bem$G("icon")
|
|
9907
|
+
}, null)]), [[vue.vShow, show.value]]);
|
|
9908
|
+
return props.teleport ? vue.createVNode(vue.Teleport, {
|
|
9909
|
+
"to": props.teleport
|
|
9910
|
+
}, {
|
|
9911
|
+
default: () => [Content]
|
|
9912
|
+
}) : Content;
|
|
9913
|
+
};
|
|
9914
|
+
}
|
|
9915
|
+
});
|
|
9916
|
+
const FloatingBubble = withInstall(stdin_default$_);
|
|
9709
9917
|
const [name$F, bem$F] = createNamespace("form");
|
|
9710
9918
|
const formProps = {
|
|
9711
9919
|
colon: Boolean,
|
|
@@ -10090,7 +10298,7 @@
|
|
|
10090
10298
|
}
|
|
10091
10299
|
}, [props.breadcrumbTitle]), props.data.map((item, index) => vue.createVNode("div", {
|
|
10092
10300
|
"class": bem$C("item")
|
|
10093
|
-
}, [vue.createVNode(stdin_default$
|
|
10301
|
+
}, [vue.createVNode(stdin_default$1N, {
|
|
10094
10302
|
"class": bem$C("icon"),
|
|
10095
10303
|
"name": "arrow-right",
|
|
10096
10304
|
"color": "#C6CED9"
|
|
@@ -10137,6 +10345,7 @@
|
|
|
10137
10345
|
asyncGetter: {
|
|
10138
10346
|
type: Function
|
|
10139
10347
|
},
|
|
10348
|
+
// 是否开启自动全选、半选功能
|
|
10140
10349
|
unanimous: {
|
|
10141
10350
|
type: Boolean,
|
|
10142
10351
|
default: true
|
|
@@ -10346,7 +10555,7 @@
|
|
|
10346
10555
|
round: true,
|
|
10347
10556
|
checked: getChecked(item)
|
|
10348
10557
|
})
|
|
10349
|
-
}, [vue.createVNode(stdin_default$
|
|
10558
|
+
}, [vue.createVNode(stdin_default$1N, {
|
|
10350
10559
|
"name": "checkbox-select"
|
|
10351
10560
|
}, null)]);
|
|
10352
10561
|
}
|
|
@@ -10356,14 +10565,14 @@
|
|
|
10356
10565
|
checked: true,
|
|
10357
10566
|
round: true
|
|
10358
10567
|
})
|
|
10359
|
-
}, [vue.createVNode(stdin_default$
|
|
10568
|
+
}, [vue.createVNode(stdin_default$1N, {
|
|
10360
10569
|
"name": "checkbox-select"
|
|
10361
10570
|
}, null)]) : vue.createVNode("span", {
|
|
10362
10571
|
"class": bem$B("icon", {
|
|
10363
10572
|
round: true,
|
|
10364
10573
|
indeterminate
|
|
10365
10574
|
})
|
|
10366
|
-
}, [vue.createVNode(stdin_default$
|
|
10575
|
+
}, [vue.createVNode(stdin_default$1N, {
|
|
10367
10576
|
"name": indeterminate ? "minus" : "check-blank-r",
|
|
10368
10577
|
"class": bem$B("uncheck-icon")
|
|
10369
10578
|
}, null)]);
|
|
@@ -10603,8 +10812,8 @@
|
|
|
10603
10812
|
} = touch;
|
|
10604
10813
|
const deltaTime = Date.now() - touchStartTime;
|
|
10605
10814
|
const TAP_TIME = 250;
|
|
10606
|
-
const
|
|
10607
|
-
if (offsetX.value <
|
|
10815
|
+
const TAP_OFFSET2 = 5;
|
|
10816
|
+
if (offsetX.value < TAP_OFFSET2 && offsetY.value < TAP_OFFSET2) {
|
|
10608
10817
|
if (deltaTime < TAP_TIME) {
|
|
10609
10818
|
if (doubleTapTimer) {
|
|
10610
10819
|
clearTimeout(doubleTapTimer);
|
|
@@ -10990,7 +11199,7 @@
|
|
|
10990
11199
|
default: genAlphabet
|
|
10991
11200
|
},
|
|
10992
11201
|
indexBarMaxHeight: makeNumericProp("70vh"),
|
|
10993
|
-
contractionPointText: makeStringProp("
|
|
11202
|
+
contractionPointText: makeStringProp("•")
|
|
10994
11203
|
};
|
|
10995
11204
|
const INDEX_BAR_KEY = Symbol(name$z);
|
|
10996
11205
|
const MIN_CONTRACTION_NUM = 2;
|
|
@@ -11006,9 +11215,9 @@
|
|
|
11006
11215
|
const sidebar = vue.ref();
|
|
11007
11216
|
const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
11008
11217
|
const touchIndex = vue.ref("");
|
|
11009
|
-
const indexBarMaxHeight = () => {
|
|
11218
|
+
const indexBarMaxHeight = vue.computed(() => {
|
|
11010
11219
|
return props.indexBarMaxHeight ? unitToPx(props.indexBarMaxHeight) : unitToPx("100vh");
|
|
11011
|
-
};
|
|
11220
|
+
});
|
|
11012
11221
|
const touch = useTouch();
|
|
11013
11222
|
const scrollParent = useScrollParent(root);
|
|
11014
11223
|
const {
|
|
@@ -11207,9 +11416,9 @@
|
|
|
11207
11416
|
};
|
|
11208
11417
|
const adaptorIndexListByHeight = () => {
|
|
11209
11418
|
const actualIndexListHeight = props.indexList.length * getIndexHeight();
|
|
11210
|
-
if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight
|
|
11419
|
+
if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight.value) {
|
|
11211
11420
|
const adaptedIndexList = deepClone(props.indexList);
|
|
11212
|
-
const renderedNum = Math.floor(indexBarMaxHeight
|
|
11421
|
+
const renderedNum = Math.floor(indexBarMaxHeight.value / getIndexHeight());
|
|
11213
11422
|
const renderedPointNum = Math.floor(renderedNum / MIN_CONTRACTION_NUM);
|
|
11214
11423
|
const renderedIndexNum = renderedNum - renderedPointNum;
|
|
11215
11424
|
const hiddenIndexNum = adaptedIndexList.length - renderedIndexNum;
|
|
@@ -11267,23 +11476,31 @@
|
|
|
11267
11476
|
}, [vue.createVNode("div", {
|
|
11268
11477
|
"class": bem$y("touch-text")
|
|
11269
11478
|
}, [touchActiveText]), vue.createVNode("svg", {
|
|
11270
|
-
"class": bem$y("icon"),
|
|
11271
11479
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
11272
|
-
"viewBox": "0 0 20 32"
|
|
11273
|
-
}, [vue.createVNode("defs", null, [vue.createVNode("path", {
|
|
11274
|
-
"id": "7rkhbmqvk__gc482iacwa",
|
|
11275
|
-
"d": "M0 0H20V32H0z"
|
|
11276
|
-
}, null)]), vue.createVNode("g", {
|
|
11277
11480
|
"fill": "none",
|
|
11278
|
-
"
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
"
|
|
11282
|
-
|
|
11481
|
+
"viewBox": "0 0 20 32",
|
|
11482
|
+
"class": bem$y("icon")
|
|
11483
|
+
}, [vue.createVNode("defs", null, [vue.createVNode("mask", {
|
|
11484
|
+
"id": "ei8r0nsyx__b6fjzymnfa"
|
|
11485
|
+
}, [vue.createVNode("rect", {
|
|
11486
|
+
"width": "20",
|
|
11487
|
+
"height": "32",
|
|
11488
|
+
"rx": "0",
|
|
11489
|
+
"fill": "#FFF"
|
|
11490
|
+
}, null)])]), vue.createVNode("g", {
|
|
11491
|
+
"mask": "url(#ei8r0nsyx__b6fjzymnfa)"
|
|
11492
|
+
}, [vue.createVNode("rect", {
|
|
11493
|
+
"width": "20",
|
|
11494
|
+
"height": "32",
|
|
11495
|
+
"rx": "0"
|
|
11496
|
+
}, null), vue.createVNode("path", {
|
|
11497
|
+
"d": "M-1.0000000000000497,0C7.83656,0,15,7.16344,15,16C15,24.8366,7.83656,32,-1,32L-1.0000000000000497,0Z",
|
|
11498
|
+
"fill-rule": "evenodd",
|
|
11499
|
+
"class": bem$y("icon-fill")
|
|
11283
11500
|
}, null), vue.createVNode("path", {
|
|
11284
|
-
"d": "M12.
|
|
11285
|
-
"fill": "
|
|
11286
|
-
"
|
|
11501
|
+
"d": "M12.243150099299784,24.98157383041382L19.435507386779786,16.65358383041382C19.759737386779786,16.27815383041382,19.759737386779786,15.721773830413818,19.435507386779786,15.346343830413819L12.243151433939785,7.018357001713818C13.983177386779785,9.578993830413818,14.999997386779786,12.670733830413818,14.999997386779786,15.999963830413819C14.999997386779786,19.32917383041382,13.983177386779785,22.420973830413818,12.243150099299784,24.98157383041382Z",
|
|
11502
|
+
"fill-rule": "evenodd",
|
|
11503
|
+
"class": bem$y("icon-fill")
|
|
11287
11504
|
}, null)])])]), vue.createVNode("div", {
|
|
11288
11505
|
"data-index": index,
|
|
11289
11506
|
"data-index-map": contractionPointMapList,
|
|
@@ -11687,7 +11904,7 @@
|
|
|
11687
11904
|
}
|
|
11688
11905
|
}
|
|
11689
11906
|
};
|
|
11690
|
-
return () => vue.createVNode(stdin_default$
|
|
11907
|
+
return () => vue.createVNode(stdin_default$1K, {
|
|
11691
11908
|
"class": bem$v(),
|
|
11692
11909
|
"show": props.show,
|
|
11693
11910
|
"position": "bottom",
|
|
@@ -13712,10 +13929,10 @@
|
|
|
13712
13929
|
message
|
|
13713
13930
|
} = media;
|
|
13714
13931
|
if (status === "uploading" || status === "failed") {
|
|
13715
|
-
const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$
|
|
13932
|
+
const MaskIcon = status === "failed" ? vue.createVNode(stdin_default$1N, {
|
|
13716
13933
|
"name": "close",
|
|
13717
13934
|
"class": bem$u("mask-icon")
|
|
13718
|
-
}, null) : vue.createVNode(stdin_default$
|
|
13935
|
+
}, null) : vue.createVNode(stdin_default$1I, {
|
|
13719
13936
|
"class": bem$u("loading")
|
|
13720
13937
|
}, null);
|
|
13721
13938
|
const showMessage = isDef(message) && message !== "";
|
|
@@ -13734,7 +13951,7 @@
|
|
|
13734
13951
|
};
|
|
13735
13952
|
const renderMediaThumbnail = (media) => {
|
|
13736
13953
|
if (media.showSrc) {
|
|
13737
|
-
return vue.createVNode(stdin_default$
|
|
13954
|
+
return vue.createVNode(stdin_default$1E, {
|
|
13738
13955
|
"src": media.showSrc,
|
|
13739
13956
|
"fit": "cover",
|
|
13740
13957
|
"radius": "4"
|
|
@@ -13824,7 +14041,7 @@
|
|
|
13824
14041
|
"onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
|
|
13825
14042
|
"mediaType": mediaTypeToPlay.value,
|
|
13826
14043
|
"mediaUrl": mediaUrlToPlay.value
|
|
13827
|
-
}, null), vue.createVNode(stdin_default$
|
|
14044
|
+
}, null), vue.createVNode(stdin_default$1G, {
|
|
13828
14045
|
"show": actionVisible.value,
|
|
13829
14046
|
"onUpdate:show": ($event) => actionVisible.value = $event,
|
|
13830
14047
|
"actions": actionOptions.value,
|
|
@@ -14027,7 +14244,7 @@
|
|
|
14027
14244
|
};
|
|
14028
14245
|
const genCancel = () => {
|
|
14029
14246
|
const text = props.cancelButtonText || "取消";
|
|
14030
|
-
return vue.createVNode(stdin_default$
|
|
14247
|
+
return vue.createVNode(stdin_default$1B, {
|
|
14031
14248
|
"size": "normal",
|
|
14032
14249
|
"block": true,
|
|
14033
14250
|
"style": {
|
|
@@ -14040,7 +14257,7 @@
|
|
|
14040
14257
|
};
|
|
14041
14258
|
const genConfirm = () => {
|
|
14042
14259
|
const text = props.confirmButtonText || "确定";
|
|
14043
|
-
return vue.createVNode(stdin_default$
|
|
14260
|
+
return vue.createVNode(stdin_default$1B, {
|
|
14044
14261
|
"type": "primary",
|
|
14045
14262
|
"size": "normal",
|
|
14046
14263
|
"block": true,
|
|
@@ -14089,10 +14306,10 @@
|
|
|
14089
14306
|
}, [genOptionItems()]);
|
|
14090
14307
|
const renderMultiplePicker = () => vue.createVNode("div", {
|
|
14091
14308
|
"class": bem$s()
|
|
14092
|
-
}, [genTitle(), props.loading ? vue.createVNode(stdin_default$
|
|
14309
|
+
}, [genTitle(), props.loading ? vue.createVNode(stdin_default$1I, {
|
|
14093
14310
|
"class": bem$s("loading")
|
|
14094
14311
|
}, null) : "", genOptions2(), props.toolbarPosition === "bottom" ? genToolbar() : ""]);
|
|
14095
|
-
return () => vue.createVNode(stdin_default$
|
|
14312
|
+
return () => vue.createVNode(stdin_default$1K, {
|
|
14096
14313
|
"show": currentShow.value,
|
|
14097
14314
|
"onUpdate:show": [($event) => currentShow.value = $event, updateShow],
|
|
14098
14315
|
"round": true,
|
|
@@ -14259,7 +14476,7 @@
|
|
|
14259
14476
|
return slots["left-icon"]();
|
|
14260
14477
|
}
|
|
14261
14478
|
if (props.leftIcon) {
|
|
14262
|
-
return vue.createVNode(stdin_default$
|
|
14479
|
+
return vue.createVNode(stdin_default$1N, {
|
|
14263
14480
|
"class": bem$q("left-icon"),
|
|
14264
14481
|
"name": props.leftIcon
|
|
14265
14482
|
}, null);
|
|
@@ -14285,7 +14502,7 @@
|
|
|
14285
14502
|
}
|
|
14286
14503
|
const name2 = getRightIconName();
|
|
14287
14504
|
if (name2) {
|
|
14288
|
-
return vue.createVNode(stdin_default$
|
|
14505
|
+
return vue.createVNode(stdin_default$1N, {
|
|
14289
14506
|
"name": name2,
|
|
14290
14507
|
"class": bem$q("right-icon"),
|
|
14291
14508
|
"onClick": onClickRightIcon
|
|
@@ -14473,11 +14690,11 @@
|
|
|
14473
14690
|
};
|
|
14474
14691
|
const Notify = withInstall(stdin_default$x);
|
|
14475
14692
|
const [name$p, bem$o] = createNamespace("key");
|
|
14476
|
-
const CollapseIcon = vue.createVNode(stdin_default$
|
|
14693
|
+
const CollapseIcon = vue.createVNode(stdin_default$1N, {
|
|
14477
14694
|
"name": "keyboard-shrink",
|
|
14478
14695
|
"size": "40"
|
|
14479
14696
|
}, null);
|
|
14480
|
-
const DeleteIcon = vue.createVNode(stdin_default$
|
|
14697
|
+
const DeleteIcon = vue.createVNode(stdin_default$1N, {
|
|
14481
14698
|
"name": "backspace",
|
|
14482
14699
|
"size": "40"
|
|
14483
14700
|
}, null);
|
|
@@ -16687,7 +16904,7 @@
|
|
|
16687
16904
|
emit("update:modelValue", props.name);
|
|
16688
16905
|
}
|
|
16689
16906
|
};
|
|
16690
|
-
return () => vue.createVNode(stdin_default$
|
|
16907
|
+
return () => vue.createVNode(stdin_default$1j, vue.mergeProps({
|
|
16691
16908
|
"bem": bem$i,
|
|
16692
16909
|
"role": "radio",
|
|
16693
16910
|
"parent": parent,
|
|
@@ -17083,7 +17300,7 @@
|
|
|
17083
17300
|
if (slots.searchEmpty) {
|
|
17084
17301
|
return (_a = slots.searchEmpty) == null ? void 0 : _a.call(slots);
|
|
17085
17302
|
}
|
|
17086
|
-
return vue.createVNode(stdin_default
|
|
17303
|
+
return vue.createVNode(stdin_default$10, {
|
|
17087
17304
|
"class": bem$f("search-empty"),
|
|
17088
17305
|
"image": "no-search-result"
|
|
17089
17306
|
}, {
|
|
@@ -17474,7 +17691,7 @@
|
|
|
17474
17691
|
};
|
|
17475
17692
|
return () => {
|
|
17476
17693
|
if (props.popup) {
|
|
17477
|
-
return vue.createVNode(stdin_default$
|
|
17694
|
+
return vue.createVNode(stdin_default$1K, {
|
|
17478
17695
|
"show": showPicker.value,
|
|
17479
17696
|
"onUpdate:show": [($event) => showPicker.value = $event, updateShow],
|
|
17480
17697
|
"round": true,
|
|
@@ -17696,7 +17913,7 @@
|
|
|
17696
17913
|
}
|
|
17697
17914
|
});
|
|
17698
17915
|
const Rate = withInstall(stdin_default$k);
|
|
17699
|
-
const Row = withInstall(stdin_default$
|
|
17916
|
+
const Row = withInstall(stdin_default$1h);
|
|
17700
17917
|
const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
|
|
17701
17918
|
const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
|
|
17702
17919
|
const resultStyle = {
|
|
@@ -17962,20 +18179,20 @@
|
|
|
17962
18179
|
"height": canvasHeight.value
|
|
17963
18180
|
}, null), [[vue.vShow, isCanvasSupported.value]])]), vue.createVNode("div", {
|
|
17964
18181
|
"class": bem$d("actions")
|
|
17965
|
-
}, [vue.createVNode(stdin_default$
|
|
18182
|
+
}, [vue.createVNode(stdin_default$1B, {
|
|
17966
18183
|
"plain": true,
|
|
17967
18184
|
"type": "warning",
|
|
17968
18185
|
"onClick": () => clear(),
|
|
17969
18186
|
"class": bem$d("button-again")
|
|
17970
18187
|
}, {
|
|
17971
18188
|
default: () => [vue.createTextVNode("重签")]
|
|
17972
|
-
}), vue.createVNode(stdin_default$
|
|
18189
|
+
}), vue.createVNode(stdin_default$1B, {
|
|
17973
18190
|
"type": "default",
|
|
17974
18191
|
"onClick": cancel,
|
|
17975
18192
|
"class": bem$d("button-cancel")
|
|
17976
18193
|
}, {
|
|
17977
18194
|
default: () => [vue.createTextVNode("取消")]
|
|
17978
|
-
}), vue.createVNode(stdin_default$
|
|
18195
|
+
}), vue.createVNode(stdin_default$1B, {
|
|
17979
18196
|
"block": true,
|
|
17980
18197
|
"type": "primary",
|
|
17981
18198
|
"disabled": isCompleteButtonDisabled.value,
|
|
@@ -18479,7 +18696,7 @@
|
|
|
18479
18696
|
}
|
|
18480
18697
|
],
|
|
18481
18698
|
"aria-disabled": minusDisabled.value || void 0
|
|
18482
|
-
}, createListeners("minus")), [vue.createVNode(stdin_default$
|
|
18699
|
+
}, createListeners("minus")), [vue.createVNode(stdin_default$1N, {
|
|
18483
18700
|
"name": "minus",
|
|
18484
18701
|
"size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
|
|
18485
18702
|
}, null)]), [[vue.vShow, props.showMinus]]), vue.withDirectives(vue.createVNode("input", {
|
|
@@ -18512,7 +18729,7 @@
|
|
|
18512
18729
|
// { [HAPTICS_FEEDBACK]: !plusDisabled.value },
|
|
18513
18730
|
],
|
|
18514
18731
|
"aria-disabled": plusDisabled.value || void 0
|
|
18515
|
-
}, createListeners("plus")), [vue.createVNode(stdin_default$
|
|
18732
|
+
}, createListeners("plus")), [vue.createVNode(stdin_default$1N, {
|
|
18516
18733
|
"name": "plus",
|
|
18517
18734
|
"size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
|
|
18518
18735
|
}, null)]), [[vue.vShow, props.showPlus]])]);
|
|
@@ -19231,7 +19448,7 @@
|
|
|
19231
19448
|
}, null);
|
|
19232
19449
|
const LeftIcon = () => {
|
|
19233
19450
|
if (props.image) {
|
|
19234
|
-
return vue.createVNode(stdin_default$
|
|
19451
|
+
return vue.createVNode(stdin_default$1E, {
|
|
19235
19452
|
"class": bem$3("image"),
|
|
19236
19453
|
"src": props.image
|
|
19237
19454
|
}, null);
|
|
@@ -21011,7 +21228,7 @@
|
|
|
21011
21228
|
});
|
|
21012
21229
|
}
|
|
21013
21230
|
};
|
|
21014
|
-
const version = "3.1.
|
|
21231
|
+
const version = "3.1.12";
|
|
21015
21232
|
function install(app) {
|
|
21016
21233
|
const components = [
|
|
21017
21234
|
ActionSheet,
|
|
@@ -21035,6 +21252,7 @@
|
|
|
21035
21252
|
DropdownMenu,
|
|
21036
21253
|
Empty,
|
|
21037
21254
|
Field,
|
|
21255
|
+
FloatingBubble,
|
|
21038
21256
|
Form,
|
|
21039
21257
|
Grid,
|
|
21040
21258
|
GridItem,
|
|
@@ -21121,6 +21339,7 @@
|
|
|
21121
21339
|
exports2.DropdownMenu = DropdownMenu;
|
|
21122
21340
|
exports2.Empty = Empty;
|
|
21123
21341
|
exports2.Field = Field;
|
|
21342
|
+
exports2.FloatingBubble = FloatingBubble;
|
|
21124
21343
|
exports2.Form = Form;
|
|
21125
21344
|
exports2.Grid = Grid;
|
|
21126
21345
|
exports2.GridItem = GridItem;
|
|
@@ -21188,6 +21407,7 @@
|
|
|
21188
21407
|
exports2.dialogProps = dialogProps;
|
|
21189
21408
|
exports2.dropdownItemProps = dropdownItemProps;
|
|
21190
21409
|
exports2.dropdownMenuProps = dropdownMenuProps;
|
|
21410
|
+
exports2.floatingBubbleProps = floatingBubbleProps;
|
|
21191
21411
|
exports2.gridItemProps = gridItemProps;
|
|
21192
21412
|
exports2.gridProps = gridProps;
|
|
21193
21413
|
exports2.imagePreviewProps = imagePreviewProps;
|