zartui 3.1.18 → 3.1.19
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/calendar/Calendar.mjs +1 -2
- package/es/date-time-picker/DateTimePicker.mjs +15 -0
- package/es/dialog/index.css +1 -1
- package/es/drawer-select/DrawerSelect.d.ts +17 -1
- package/es/drawer-select/DrawerSelect.mjs +9 -4
- package/es/drawer-select/index.d.ts +11 -0
- package/es/dropdown-item/DropdownItem.d.ts +26 -0
- package/es/dropdown-item/DropdownItem.mjs +11 -9
- package/es/dropdown-item/index.d.ts +18 -0
- package/es/dropdown-menu/DropdownMenu.mjs +4 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/empty/Empty.mjs +5 -1
- package/es/empty/Images.d.ts +14 -11
- package/es/empty/Images.mjs +89 -89
- package/es/empty/types.d.ts +1 -0
- package/es/hierarchy-select/index.css +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/media-picker/MediaPicker.d.ts +4 -0
- package/es/media-picker/MediaPicker.mjs +28 -14
- package/es/media-picker/index.d.ts +3 -0
- package/es/media-picker/type.d.ts +2 -0
- package/es/media-picker/util/wx-util.d.ts +4 -0
- package/es/media-picker/util/wx-util.mjs +67 -0
- package/es/popup/index.css +1 -1
- package/es/slider/Slider.mjs +15 -16
- package/es/slider/index.css +1 -1
- package/es/table/Table.d.ts +13 -0
- package/es/table/Table.mjs +28 -7
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +9 -0
- package/es/table/style/index.mjs +6 -0
- package/es/tabs/TabsTitle.mjs +1 -0
- package/es/tabs/index.css +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +13 -0
- package/es/text-ellipsis/TextEllipsis.mjs +15 -4
- package/es/text-ellipsis/index.d.ts +9 -0
- package/es/text-ellipsis/style/index.mjs +7 -0
- package/es/toast/index.css +1 -1
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/calendar/Calendar.js +1 -2
- package/lib/date-time-picker/DateTimePicker.js +15 -0
- package/lib/dialog/index.css +1 -1
- package/lib/drawer-select/DrawerSelect.d.ts +17 -1
- package/lib/drawer-select/DrawerSelect.js +9 -4
- package/lib/drawer-select/index.d.ts +11 -0
- package/lib/dropdown-item/DropdownItem.d.ts +26 -0
- package/lib/dropdown-item/DropdownItem.js +10 -8
- package/lib/dropdown-item/index.d.ts +18 -0
- package/lib/dropdown-menu/DropdownMenu.js +4 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/empty/Empty.js +5 -1
- package/lib/empty/Images.d.ts +14 -11
- package/lib/empty/Images.js +89 -89
- package/lib/empty/types.d.ts +1 -0
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/media-picker/MediaPicker.d.ts +4 -0
- package/lib/media-picker/MediaPicker.js +27 -13
- package/lib/media-picker/index.d.ts +3 -0
- package/lib/media-picker/type.d.ts +2 -0
- package/lib/media-picker/util/wx-util.d.ts +4 -0
- package/lib/media-picker/util/wx-util.js +86 -0
- package/lib/popup/index.css +1 -1
- package/lib/slider/Slider.js +15 -16
- package/lib/slider/index.css +1 -1
- package/lib/table/Table.d.ts +13 -0
- package/lib/table/Table.js +37 -6
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +9 -0
- package/lib/table/style/index.js +6 -0
- package/lib/tabs/TabsTitle.js +1 -0
- package/lib/tabs/index.css +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +13 -0
- package/lib/text-ellipsis/TextEllipsis.js +13 -2
- package/lib/text-ellipsis/index.d.ts +9 -0
- package/lib/text-ellipsis/style/index.js +7 -0
- package/lib/toast/index.css +1 -1
- 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 +710 -577
- package/lib/zartui.es.js +710 -577
- package/lib/zartui.js +710 -577
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/lib/zartui.es.js
CHANGED
|
@@ -270,7 +270,7 @@ function deepAssign(to, from) {
|
|
|
270
270
|
});
|
|
271
271
|
return to;
|
|
272
272
|
}
|
|
273
|
-
var stdin_default$
|
|
273
|
+
var stdin_default$1X = {
|
|
274
274
|
name: "姓名",
|
|
275
275
|
tel: "电话",
|
|
276
276
|
save: "保存",
|
|
@@ -317,7 +317,7 @@ var stdin_default$1W = {
|
|
|
317
317
|
};
|
|
318
318
|
const lang = ref("zh-CN");
|
|
319
319
|
const messages = reactive({
|
|
320
|
-
"zh-CN": stdin_default$
|
|
320
|
+
"zh-CN": stdin_default$1X
|
|
321
321
|
});
|
|
322
322
|
const Locale = {
|
|
323
323
|
messages() {
|
|
@@ -331,11 +331,11 @@ const Locale = {
|
|
|
331
331
|
deepAssign(messages, newMessages);
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
var stdin_default$
|
|
334
|
+
var stdin_default$1W = Locale;
|
|
335
335
|
function createTranslate(name2) {
|
|
336
336
|
const prefix = camelize(name2) + ".";
|
|
337
337
|
return (path, ...args) => {
|
|
338
|
-
const messages2 = stdin_default$
|
|
338
|
+
const messages2 = stdin_default$1W.messages();
|
|
339
339
|
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
340
340
|
return isFunction(message) ? message(...args) : message;
|
|
341
341
|
};
|
|
@@ -440,7 +440,7 @@ const badgeProps = {
|
|
|
440
440
|
badgeClass: String,
|
|
441
441
|
position: makeStringProp("top-right")
|
|
442
442
|
};
|
|
443
|
-
var stdin_default$
|
|
443
|
+
var stdin_default$1V = defineComponent({
|
|
444
444
|
name: name$1p,
|
|
445
445
|
props: badgeProps,
|
|
446
446
|
setup(props, {
|
|
@@ -523,7 +523,7 @@ var stdin_default$1U = defineComponent({
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
});
|
|
526
|
-
const Badge = withInstall(stdin_default$
|
|
526
|
+
const Badge = withInstall(stdin_default$1V);
|
|
527
527
|
let globalZIndex = 2e3;
|
|
528
528
|
const useGlobalZIndex = () => ++globalZIndex;
|
|
529
529
|
const setGlobalZIndex = (val) => {
|
|
@@ -564,7 +564,7 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
|
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
var stdin_default$
|
|
567
|
+
var stdin_default$1U = defineComponent({
|
|
568
568
|
name: name$1o,
|
|
569
569
|
props: configProviderProps,
|
|
570
570
|
setup(props, {
|
|
@@ -635,7 +635,7 @@ const iconProps = {
|
|
|
635
635
|
badgeProps: Object,
|
|
636
636
|
classPrefix: String
|
|
637
637
|
};
|
|
638
|
-
var stdin_default$
|
|
638
|
+
var stdin_default$1T = defineComponent({
|
|
639
639
|
name: name$1n,
|
|
640
640
|
props: iconProps,
|
|
641
641
|
setup(props, {
|
|
@@ -674,8 +674,8 @@ var stdin_default$1S = defineComponent({
|
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
|
-
const Icon = withInstall(stdin_default$
|
|
678
|
-
var stdin_default$
|
|
677
|
+
const Icon = withInstall(stdin_default$1T);
|
|
678
|
+
var stdin_default$1S = Icon;
|
|
679
679
|
const popupSharedProps = {
|
|
680
680
|
// whether to show popup
|
|
681
681
|
show: Boolean,
|
|
@@ -862,7 +862,7 @@ const overlayProps = {
|
|
|
862
862
|
lazyRender: truthProp,
|
|
863
863
|
customStyle: Object
|
|
864
864
|
};
|
|
865
|
-
var stdin_default$
|
|
865
|
+
var stdin_default$1R = defineComponent({
|
|
866
866
|
name: name$1m,
|
|
867
867
|
props: overlayProps,
|
|
868
868
|
setup(props, {
|
|
@@ -892,7 +892,7 @@ var stdin_default$1Q = defineComponent({
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
});
|
|
895
|
-
const Overlay = withInstall(stdin_default$
|
|
895
|
+
const Overlay = withInstall(stdin_default$1R);
|
|
896
896
|
const popupProps$2 = extend({}, popupSharedProps, {
|
|
897
897
|
round: Boolean,
|
|
898
898
|
position: makeStringProp("center"),
|
|
@@ -911,7 +911,7 @@ const popupProps$2 = extend({}, popupSharedProps, {
|
|
|
911
911
|
slideable: Boolean
|
|
912
912
|
});
|
|
913
913
|
const [name$1l, bem$1h] = createNamespace("popup");
|
|
914
|
-
var stdin_default$
|
|
914
|
+
var stdin_default$1Q = defineComponent({
|
|
915
915
|
name: name$1l,
|
|
916
916
|
inheritAttrs: false,
|
|
917
917
|
props: popupProps$2,
|
|
@@ -1166,8 +1166,8 @@ var stdin_default$1P = defineComponent({
|
|
|
1166
1166
|
};
|
|
1167
1167
|
}
|
|
1168
1168
|
});
|
|
1169
|
-
const Popup = withInstall(stdin_default$
|
|
1170
|
-
var stdin_default$
|
|
1169
|
+
const Popup = withInstall(stdin_default$1Q);
|
|
1170
|
+
var stdin_default$1P = Popup;
|
|
1171
1171
|
const [name$1k, bem$1g] = createNamespace("loading");
|
|
1172
1172
|
const loadingProps = {
|
|
1173
1173
|
size: numericProp,
|
|
@@ -1237,7 +1237,7 @@ const LoadingIcon = (props) => {
|
|
|
1237
1237
|
"d": "M 9 100 A 91 91 0 0 1 9 100"
|
|
1238
1238
|
}, null)])]);
|
|
1239
1239
|
};
|
|
1240
|
-
var stdin_default$
|
|
1240
|
+
var stdin_default$1O = defineComponent({
|
|
1241
1241
|
name: name$1k,
|
|
1242
1242
|
props: loadingProps,
|
|
1243
1243
|
setup(props, {
|
|
@@ -1276,8 +1276,8 @@ var stdin_default$1N = defineComponent({
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
|
-
const Loading = withInstall(stdin_default$
|
|
1280
|
-
var stdin_default$
|
|
1279
|
+
const Loading = withInstall(stdin_default$1O);
|
|
1280
|
+
var stdin_default$1N = Loading;
|
|
1281
1281
|
const [name$1j, bem$1f] = createNamespace("action-sheet");
|
|
1282
1282
|
const actionSheetProps = extend({}, popupSharedProps, {
|
|
1283
1283
|
title: String,
|
|
@@ -1292,7 +1292,7 @@ const actionSheetProps = extend({}, popupSharedProps, {
|
|
|
1292
1292
|
safeAreaInsetBottom: truthProp
|
|
1293
1293
|
});
|
|
1294
1294
|
const popupInheritKeys$1 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1295
|
-
var stdin_default$
|
|
1295
|
+
var stdin_default$1M = defineComponent({
|
|
1296
1296
|
name: name$1j,
|
|
1297
1297
|
props: actionSheetProps,
|
|
1298
1298
|
emits: ["select", "cancel", "update:show"],
|
|
@@ -1409,8 +1409,8 @@ var stdin_default$1L = defineComponent({
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
});
|
|
1412
|
-
const ActionSheet = withInstall(stdin_default$
|
|
1413
|
-
var stdin_default$
|
|
1412
|
+
const ActionSheet = withInstall(stdin_default$1M);
|
|
1413
|
+
var stdin_default$1L = ActionSheet;
|
|
1414
1414
|
const [name$1i, bem$1e] = createNamespace("image");
|
|
1415
1415
|
const imageProps = {
|
|
1416
1416
|
src: String,
|
|
@@ -1430,7 +1430,7 @@ const imageProps = {
|
|
|
1430
1430
|
showLoading: truthProp,
|
|
1431
1431
|
loadingIcon: makeStringProp("photo-default")
|
|
1432
1432
|
};
|
|
1433
|
-
var stdin_default$
|
|
1433
|
+
var stdin_default$1K = defineComponent({
|
|
1434
1434
|
name: name$1i,
|
|
1435
1435
|
props: imageProps,
|
|
1436
1436
|
emits: ["load", "error"],
|
|
@@ -1555,8 +1555,8 @@ var stdin_default$1J = defineComponent({
|
|
|
1555
1555
|
};
|
|
1556
1556
|
}
|
|
1557
1557
|
});
|
|
1558
|
-
const Image$1 = withInstall(stdin_default$
|
|
1559
|
-
var stdin_default$
|
|
1558
|
+
const Image$1 = withInstall(stdin_default$1K);
|
|
1559
|
+
var stdin_default$1J = Image$1;
|
|
1560
1560
|
const [name$1h, bem$1d] = createNamespace("avatar");
|
|
1561
1561
|
const avatarProps = {
|
|
1562
1562
|
src: makeStringProp(""),
|
|
@@ -1566,7 +1566,7 @@ const avatarProps = {
|
|
|
1566
1566
|
textBgColor: String,
|
|
1567
1567
|
border: Boolean
|
|
1568
1568
|
};
|
|
1569
|
-
var stdin_default$
|
|
1569
|
+
var stdin_default$1I = defineComponent({
|
|
1570
1570
|
name: name$1h,
|
|
1571
1571
|
props: avatarProps,
|
|
1572
1572
|
setup(props) {
|
|
@@ -1607,7 +1607,7 @@ var stdin_default$1H = defineComponent({
|
|
|
1607
1607
|
if (!props.src) {
|
|
1608
1608
|
return renderText();
|
|
1609
1609
|
}
|
|
1610
|
-
return createVNode(stdin_default$
|
|
1610
|
+
return createVNode(stdin_default$1J, {
|
|
1611
1611
|
"round": props.shape === "round",
|
|
1612
1612
|
"class": bem$1d("img", [classArr.value, {
|
|
1613
1613
|
border: props.border
|
|
@@ -1620,7 +1620,7 @@ var stdin_default$1H = defineComponent({
|
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
1622
1622
|
});
|
|
1623
|
-
const Avatar = withInstall(stdin_default$
|
|
1623
|
+
const Avatar = withInstall(stdin_default$1I);
|
|
1624
1624
|
const routeProps = {
|
|
1625
1625
|
to: [String, Object],
|
|
1626
1626
|
url: String,
|
|
@@ -1669,7 +1669,7 @@ const buttonProps = extend({}, routeProps, {
|
|
|
1669
1669
|
loadingType: String,
|
|
1670
1670
|
iconPosition: makeStringProp("left")
|
|
1671
1671
|
});
|
|
1672
|
-
var stdin_default$
|
|
1672
|
+
var stdin_default$1H = defineComponent({
|
|
1673
1673
|
name: name$1g,
|
|
1674
1674
|
props: buttonProps,
|
|
1675
1675
|
emits: ["click"],
|
|
@@ -1801,8 +1801,8 @@ var stdin_default$1G = defineComponent({
|
|
|
1801
1801
|
};
|
|
1802
1802
|
}
|
|
1803
1803
|
});
|
|
1804
|
-
const Button = withInstall(stdin_default$
|
|
1805
|
-
var stdin_default$
|
|
1804
|
+
const Button = withInstall(stdin_default$1H);
|
|
1805
|
+
var stdin_default$1G = Button;
|
|
1806
1806
|
const monthsOfYear = 12;
|
|
1807
1807
|
const [name$1f, bem$1b, t$7] = createNamespace("calendar");
|
|
1808
1808
|
const formatMonthTitle = (date) => t$7("ztCalendar.monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
@@ -1913,7 +1913,7 @@ const toastProps = {
|
|
|
1913
1913
|
closeOnClick: Boolean,
|
|
1914
1914
|
closeOnClickOverlay: Boolean
|
|
1915
1915
|
};
|
|
1916
|
-
var stdin_default$
|
|
1916
|
+
var stdin_default$1F = defineComponent({
|
|
1917
1917
|
name: name$1e,
|
|
1918
1918
|
props: toastProps,
|
|
1919
1919
|
emits: ["update:show"],
|
|
@@ -2089,7 +2089,7 @@ function createInstance() {
|
|
|
2089
2089
|
onClosed,
|
|
2090
2090
|
"onUpdate:show": toggle
|
|
2091
2091
|
};
|
|
2092
|
-
return createVNode(stdin_default$
|
|
2092
|
+
return createVNode(stdin_default$1F, mergeProps(state, attrs), null);
|
|
2093
2093
|
};
|
|
2094
2094
|
watch(message, (val) => {
|
|
2095
2095
|
state.message = val;
|
|
@@ -2159,7 +2159,7 @@ const resetToastDefaultOptions = (type) => {
|
|
|
2159
2159
|
const allowMultipleToast = (value = true) => {
|
|
2160
2160
|
allowMultiple = value;
|
|
2161
2161
|
};
|
|
2162
|
-
const Toast = withInstall(stdin_default$
|
|
2162
|
+
const Toast = withInstall(stdin_default$1F);
|
|
2163
2163
|
const useHeight = (element, withSafeArea) => {
|
|
2164
2164
|
const height = ref();
|
|
2165
2165
|
const setHeight = () => {
|
|
@@ -2176,7 +2176,7 @@ const useHeight = (element, withSafeArea) => {
|
|
|
2176
2176
|
return height;
|
|
2177
2177
|
};
|
|
2178
2178
|
const [name$1d] = createNamespace("calendar-day");
|
|
2179
|
-
var stdin_default$
|
|
2179
|
+
var stdin_default$1E = defineComponent({
|
|
2180
2180
|
name: name$1d,
|
|
2181
2181
|
props: {
|
|
2182
2182
|
item: makeRequiredProp(Object),
|
|
@@ -2302,7 +2302,7 @@ const calendarMonthProps = {
|
|
|
2302
2302
|
firstDayOfWeek: Number,
|
|
2303
2303
|
disabledDate: Function
|
|
2304
2304
|
};
|
|
2305
|
-
var stdin_default$
|
|
2305
|
+
var stdin_default$1D = defineComponent({
|
|
2306
2306
|
name: name$1c,
|
|
2307
2307
|
props: calendarMonthProps,
|
|
2308
2308
|
emits: ["click"],
|
|
@@ -2487,7 +2487,7 @@ var stdin_default$1C = defineComponent({
|
|
|
2487
2487
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
|
-
const renderDay = (item, index) => createVNode(stdin_default$
|
|
2490
|
+
const renderDay = (item, index) => createVNode(stdin_default$1E, {
|
|
2491
2491
|
"item": item,
|
|
2492
2492
|
"index": index,
|
|
2493
2493
|
"color": props.color,
|
|
@@ -2515,7 +2515,7 @@ var stdin_default$1C = defineComponent({
|
|
|
2515
2515
|
}
|
|
2516
2516
|
});
|
|
2517
2517
|
const [name$1b] = createNamespace("calendar-header");
|
|
2518
|
-
var stdin_default$
|
|
2518
|
+
var stdin_default$1C = defineComponent({
|
|
2519
2519
|
name: name$1b,
|
|
2520
2520
|
props: {
|
|
2521
2521
|
title: String,
|
|
@@ -2710,7 +2710,7 @@ const calendarProps = {
|
|
|
2710
2710
|
},
|
|
2711
2711
|
disabledDate: Function
|
|
2712
2712
|
};
|
|
2713
|
-
var stdin_default$
|
|
2713
|
+
var stdin_default$1B = defineComponent({
|
|
2714
2714
|
name: name$1f,
|
|
2715
2715
|
props: calendarProps,
|
|
2716
2716
|
emits: ["select", "confirm", "cancel", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
|
@@ -3063,7 +3063,7 @@ var stdin_default$1A = defineComponent({
|
|
|
3063
3063
|
const updateShow = (value) => emit("update:show", value);
|
|
3064
3064
|
const renderMonth = (date, index) => {
|
|
3065
3065
|
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
|
3066
|
-
return createVNode(stdin_default$
|
|
3066
|
+
return createVNode(stdin_default$1D, mergeProps({
|
|
3067
3067
|
"ref": setMonthRefs(index),
|
|
3068
3068
|
"date": date,
|
|
3069
3069
|
"currentDate": currentDate.value,
|
|
@@ -3113,7 +3113,7 @@ var stdin_default$1A = defineComponent({
|
|
|
3113
3113
|
}, [renderFooterButton()]);
|
|
3114
3114
|
const renderCalendar = () => createVNode("div", {
|
|
3115
3115
|
"class": bem$1b()
|
|
3116
|
-
}, [createVNode(stdin_default$
|
|
3116
|
+
}, [createVNode(stdin_default$1C, {
|
|
3117
3117
|
"title": props.title,
|
|
3118
3118
|
"subtitle": subtitle.value,
|
|
3119
3119
|
"showTitle": props.showTitle,
|
|
@@ -3135,8 +3135,7 @@ var stdin_default$1A = defineComponent({
|
|
|
3135
3135
|
watch(() => props.show, init);
|
|
3136
3136
|
watch(() => [props.type, props.minDate, props.maxDate], () => reset(getInitialDate(currentDate.value)));
|
|
3137
3137
|
watch(() => props.defaultDate, (value = null) => {
|
|
3138
|
-
|
|
3139
|
-
scrollToCurrentDate();
|
|
3138
|
+
reset(value);
|
|
3140
3139
|
});
|
|
3141
3140
|
watch(titleDate, (newValue) => {
|
|
3142
3141
|
if (props.showType === "inline" && newValue) {
|
|
@@ -3169,7 +3168,7 @@ var stdin_default$1A = defineComponent({
|
|
|
3169
3168
|
};
|
|
3170
3169
|
}
|
|
3171
3170
|
});
|
|
3172
|
-
const Calendar = withInstall(stdin_default$
|
|
3171
|
+
const Calendar = withInstall(stdin_default$1B);
|
|
3173
3172
|
function scrollLeftTo(scroller, to, duration) {
|
|
3174
3173
|
let count = 0;
|
|
3175
3174
|
const from = scroller.scrollLeft;
|
|
@@ -3242,7 +3241,7 @@ const stickyProps = {
|
|
|
3242
3241
|
offsetTop: makeNumericProp(0),
|
|
3243
3242
|
offsetBottom: makeNumericProp(0)
|
|
3244
3243
|
};
|
|
3245
|
-
var stdin_default$
|
|
3244
|
+
var stdin_default$1A = defineComponent({
|
|
3246
3245
|
name: name$1a,
|
|
3247
3246
|
props: stickyProps,
|
|
3248
3247
|
emits: ["scroll", "change"],
|
|
@@ -3348,9 +3347,9 @@ var stdin_default$1z = defineComponent({
|
|
|
3348
3347
|
};
|
|
3349
3348
|
}
|
|
3350
3349
|
});
|
|
3351
|
-
const Sticky = withInstall(stdin_default$
|
|
3350
|
+
const Sticky = withInstall(stdin_default$1A);
|
|
3352
3351
|
const [name$19, bem$18] = createNamespace("tab");
|
|
3353
|
-
var stdin_default$
|
|
3352
|
+
var stdin_default$1z = defineComponent({
|
|
3354
3353
|
name: name$19,
|
|
3355
3354
|
props: {
|
|
3356
3355
|
id: String,
|
|
@@ -3444,6 +3443,7 @@ var stdin_default$1y = defineComponent({
|
|
|
3444
3443
|
"aria-disabled": props.disabled || void 0,
|
|
3445
3444
|
"aria-controls": props.controls
|
|
3446
3445
|
}, [slots.prefix ? slots.prefix() : null, createVNode("div", {
|
|
3446
|
+
"class": bem$18("title"),
|
|
3447
3447
|
"style": style.value
|
|
3448
3448
|
}, [renderText()]), slots.suffix ? slots.suffix() : null]);
|
|
3449
3449
|
}
|
|
@@ -3465,7 +3465,7 @@ const swipeProps = {
|
|
|
3465
3465
|
title: Array
|
|
3466
3466
|
};
|
|
3467
3467
|
const SWIPE_KEY = Symbol(name$18);
|
|
3468
|
-
var stdin_default$
|
|
3468
|
+
var stdin_default$1y = defineComponent({
|
|
3469
3469
|
name: name$18,
|
|
3470
3470
|
props: swipeProps,
|
|
3471
3471
|
emits: ["change", "dragStart", "dragEnd"],
|
|
@@ -3824,9 +3824,9 @@ var stdin_default$1x = defineComponent({
|
|
|
3824
3824
|
};
|
|
3825
3825
|
}
|
|
3826
3826
|
});
|
|
3827
|
-
const Swipe = withInstall(stdin_default$
|
|
3827
|
+
const Swipe = withInstall(stdin_default$1y);
|
|
3828
3828
|
const [name$17, bem$16] = createNamespace("tabs");
|
|
3829
|
-
var stdin_default$
|
|
3829
|
+
var stdin_default$1x = defineComponent({
|
|
3830
3830
|
name: name$17,
|
|
3831
3831
|
props: {
|
|
3832
3832
|
count: makeRequiredProp(Number),
|
|
@@ -3906,7 +3906,7 @@ const tabsProps = {
|
|
|
3906
3906
|
titleInactiveColor: String
|
|
3907
3907
|
};
|
|
3908
3908
|
const TABS_KEY = Symbol(name$16);
|
|
3909
|
-
var stdin_default$
|
|
3909
|
+
var stdin_default$1w = defineComponent({
|
|
3910
3910
|
name: name$16,
|
|
3911
3911
|
props: tabsProps,
|
|
3912
3912
|
emits: ["change", "scroll", "rendered", "clickTab", "update:active"],
|
|
@@ -4102,7 +4102,7 @@ var stdin_default$1v = defineComponent({
|
|
|
4102
4102
|
state.showLeftOverlay = Math.floor(target.scrollLeft) > 0;
|
|
4103
4103
|
state.showRightOverlay = hasScrollToEnd(target);
|
|
4104
4104
|
};
|
|
4105
|
-
const renderNav = () => children.map((item, index) => createVNode(stdin_default$
|
|
4105
|
+
const renderNav = () => children.map((item, index) => createVNode(stdin_default$1z, mergeProps({
|
|
4106
4106
|
"key": item.id,
|
|
4107
4107
|
"id": `${id}-${index}`,
|
|
4108
4108
|
"ref": setTitleRefs(index),
|
|
@@ -4240,7 +4240,7 @@ var stdin_default$1v = defineComponent({
|
|
|
4240
4240
|
"ref": navTopRef
|
|
4241
4241
|
}, [(_a2 = slots["nav-top"]) == null ? void 0 : _a2.call(slots)]) : null, renderHeader(), (_b2 = slots["nav-bottom"]) == null ? void 0 : _b2.call(slots)];
|
|
4242
4242
|
}
|
|
4243
|
-
}) : [(_a = slots["nav-top"]) == null ? void 0 : _a.call(slots), renderHeader(), (_b = slots["nav-bottom"]) == null ? void 0 : _b.call(slots)], createVNode(stdin_default$
|
|
4243
|
+
}) : [(_a = slots["nav-top"]) == null ? void 0 : _a.call(slots), renderHeader(), (_b = slots["nav-bottom"]) == null ? void 0 : _b.call(slots)], createVNode(stdin_default$1x, {
|
|
4244
4244
|
"count": children.length,
|
|
4245
4245
|
"inited": state.inited,
|
|
4246
4246
|
"animated": props.animated,
|
|
@@ -4261,7 +4261,7 @@ var stdin_default$1v = defineComponent({
|
|
|
4261
4261
|
const TAB_STATUS_KEY = Symbol();
|
|
4262
4262
|
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
|
|
4263
4263
|
const [name$15, bem$14] = createNamespace("swipe-item");
|
|
4264
|
-
var stdin_default$
|
|
4264
|
+
var stdin_default$1v = defineComponent({
|
|
4265
4265
|
name: name$15,
|
|
4266
4266
|
setup(props, {
|
|
4267
4267
|
slots
|
|
@@ -4333,7 +4333,7 @@ var stdin_default$1u = defineComponent({
|
|
|
4333
4333
|
};
|
|
4334
4334
|
}
|
|
4335
4335
|
});
|
|
4336
|
-
const SwipeItem = withInstall(stdin_default$
|
|
4336
|
+
const SwipeItem = withInstall(stdin_default$1v);
|
|
4337
4337
|
const [name$14, bem$13] = createNamespace("tab");
|
|
4338
4338
|
const tabProps = extend({}, routeProps, {
|
|
4339
4339
|
dot: Boolean,
|
|
@@ -4345,7 +4345,7 @@ const tabProps = extend({}, routeProps, {
|
|
|
4345
4345
|
titleStyle: [String, Object],
|
|
4346
4346
|
showZeroBadge: truthProp
|
|
4347
4347
|
});
|
|
4348
|
-
var stdin_default$
|
|
4348
|
+
var stdin_default$1u = defineComponent({
|
|
4349
4349
|
name: name$14,
|
|
4350
4350
|
props: tabProps,
|
|
4351
4351
|
setup(props, {
|
|
@@ -4434,15 +4434,15 @@ var stdin_default$1t = defineComponent({
|
|
|
4434
4434
|
};
|
|
4435
4435
|
}
|
|
4436
4436
|
});
|
|
4437
|
-
const Tab = withInstall(stdin_default$
|
|
4438
|
-
const Tabs = withInstall(stdin_default$
|
|
4437
|
+
const Tab = withInstall(stdin_default$1u);
|
|
4438
|
+
const Tabs = withInstall(stdin_default$1w);
|
|
4439
4439
|
const [name$13, bem$12] = createNamespace("divider");
|
|
4440
4440
|
const dividerProps = {
|
|
4441
4441
|
dashed: Boolean,
|
|
4442
4442
|
hairline: truthProp,
|
|
4443
4443
|
contentPosition: makeStringProp("center")
|
|
4444
4444
|
};
|
|
4445
|
-
var stdin_default$
|
|
4445
|
+
var stdin_default$1t = defineComponent({
|
|
4446
4446
|
name: name$13,
|
|
4447
4447
|
props: dividerProps,
|
|
4448
4448
|
setup(props, {
|
|
@@ -4461,7 +4461,7 @@ var stdin_default$1s = defineComponent({
|
|
|
4461
4461
|
};
|
|
4462
4462
|
}
|
|
4463
4463
|
});
|
|
4464
|
-
const Divider = withInstall(stdin_default$
|
|
4464
|
+
const Divider = withInstall(stdin_default$1t);
|
|
4465
4465
|
const [name$12, bem$11, t$6] = createNamespace("cascader");
|
|
4466
4466
|
const cascaderProps = {
|
|
4467
4467
|
title: String,
|
|
@@ -4482,7 +4482,7 @@ const cascaderProps = {
|
|
|
4482
4482
|
safeAreaInsetTop: Boolean,
|
|
4483
4483
|
closeOnClickOverlay: truthProp
|
|
4484
4484
|
};
|
|
4485
|
-
var stdin_default$
|
|
4485
|
+
var stdin_default$1s = defineComponent({
|
|
4486
4486
|
name: name$12,
|
|
4487
4487
|
props: cascaderProps,
|
|
4488
4488
|
emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
|
|
@@ -4672,7 +4672,7 @@ var stdin_default$1r = defineComponent({
|
|
|
4672
4672
|
}, {
|
|
4673
4673
|
default: () => [tabs.value.map(renderTab)]
|
|
4674
4674
|
});
|
|
4675
|
-
const renderMenu = () => createVNode(stdin_default$
|
|
4675
|
+
const renderMenu = () => createVNode(stdin_default$1H, {
|
|
4676
4676
|
"class": bem$11("cancel"),
|
|
4677
4677
|
"onClick": onCancel
|
|
4678
4678
|
}, {
|
|
@@ -4731,7 +4731,7 @@ var stdin_default$1r = defineComponent({
|
|
|
4731
4731
|
};
|
|
4732
4732
|
}
|
|
4733
4733
|
});
|
|
4734
|
-
const Cascader = withInstall(stdin_default$
|
|
4734
|
+
const Cascader = withInstall(stdin_default$1s);
|
|
4735
4735
|
function isEmptyValue(value) {
|
|
4736
4736
|
if (Array.isArray(value)) {
|
|
4737
4737
|
return !value.length;
|
|
@@ -4851,7 +4851,7 @@ const cellSharedProps = {
|
|
|
4851
4851
|
description: makeStringProp("")
|
|
4852
4852
|
};
|
|
4853
4853
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
4854
|
-
var stdin_default$
|
|
4854
|
+
var stdin_default$1r = defineComponent({
|
|
4855
4855
|
name: name$11,
|
|
4856
4856
|
props: cellProps,
|
|
4857
4857
|
emits: ["click", "clear"],
|
|
@@ -5059,14 +5059,14 @@ var stdin_default$1q = defineComponent({
|
|
|
5059
5059
|
};
|
|
5060
5060
|
}
|
|
5061
5061
|
});
|
|
5062
|
-
const Cell = withInstall(stdin_default$
|
|
5062
|
+
const Cell = withInstall(stdin_default$1r);
|
|
5063
5063
|
const [name$10, bem$$] = createNamespace("cell-group");
|
|
5064
5064
|
const cellGroupProps = {
|
|
5065
5065
|
title: String,
|
|
5066
5066
|
inset: Boolean,
|
|
5067
5067
|
border: truthProp
|
|
5068
5068
|
};
|
|
5069
|
-
var stdin_default$
|
|
5069
|
+
var stdin_default$1q = defineComponent({
|
|
5070
5070
|
name: name$10,
|
|
5071
5071
|
inheritAttrs: false,
|
|
5072
5072
|
props: cellGroupProps,
|
|
@@ -5097,7 +5097,7 @@ var stdin_default$1p = defineComponent({
|
|
|
5097
5097
|
};
|
|
5098
5098
|
}
|
|
5099
5099
|
});
|
|
5100
|
-
const CellGroup = withInstall(stdin_default$
|
|
5100
|
+
const CellGroup = withInstall(stdin_default$1q);
|
|
5101
5101
|
const [name$$, bem$_] = createNamespace("checkbox-group");
|
|
5102
5102
|
const checkboxGroupProps = {
|
|
5103
5103
|
max: numericProp,
|
|
@@ -5108,7 +5108,7 @@ const checkboxGroupProps = {
|
|
|
5108
5108
|
checkedColor: String
|
|
5109
5109
|
};
|
|
5110
5110
|
const CHECKBOX_GROUP_KEY = Symbol(name$$);
|
|
5111
|
-
var stdin_default$
|
|
5111
|
+
var stdin_default$1p = defineComponent({
|
|
5112
5112
|
name: name$$,
|
|
5113
5113
|
props: checkboxGroupProps,
|
|
5114
5114
|
emits: ["change", "update:modelValue"],
|
|
@@ -5170,7 +5170,7 @@ const checkerProps = {
|
|
|
5170
5170
|
labelPosition: String,
|
|
5171
5171
|
labelDisabled: Boolean
|
|
5172
5172
|
};
|
|
5173
|
-
var stdin_default$
|
|
5173
|
+
var stdin_default$1o = defineComponent({
|
|
5174
5174
|
props: extend({}, checkerProps, {
|
|
5175
5175
|
bem: makeRequiredProp(Function),
|
|
5176
5176
|
role: String,
|
|
@@ -5279,7 +5279,7 @@ const checkboxProps = extend({}, checkerProps, {
|
|
|
5279
5279
|
default: null
|
|
5280
5280
|
}
|
|
5281
5281
|
});
|
|
5282
|
-
var stdin_default$
|
|
5282
|
+
var stdin_default$1n = defineComponent({
|
|
5283
5283
|
name: name$_,
|
|
5284
5284
|
props: checkboxProps,
|
|
5285
5285
|
emits: ["change", "update:modelValue"],
|
|
@@ -5344,7 +5344,7 @@ var stdin_default$1m = defineComponent({
|
|
|
5344
5344
|
checked
|
|
5345
5345
|
});
|
|
5346
5346
|
useCustomFieldValue(() => props.modelValue);
|
|
5347
|
-
return () => createVNode(stdin_default$
|
|
5347
|
+
return () => createVNode(stdin_default$1o, mergeProps({
|
|
5348
5348
|
"bem": bem$Z,
|
|
5349
5349
|
"role": "checkbox",
|
|
5350
5350
|
"parent": parent,
|
|
@@ -5353,8 +5353,8 @@ var stdin_default$1m = defineComponent({
|
|
|
5353
5353
|
}, props), pick(slots, ["default", "icon"]));
|
|
5354
5354
|
}
|
|
5355
5355
|
});
|
|
5356
|
-
const Checkbox = withInstall(stdin_default$
|
|
5357
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
5356
|
+
const Checkbox = withInstall(stdin_default$1n);
|
|
5357
|
+
const CheckboxGroup = withInstall(stdin_default$1p);
|
|
5358
5358
|
const [name$Z, bem$Y] = createNamespace("row");
|
|
5359
5359
|
const ROW_KEY = Symbol(name$Z);
|
|
5360
5360
|
const rowProps = {
|
|
@@ -5364,7 +5364,7 @@ const rowProps = {
|
|
|
5364
5364
|
gutter: makeNumericProp(0),
|
|
5365
5365
|
justify: String
|
|
5366
5366
|
};
|
|
5367
|
-
var stdin_default$
|
|
5367
|
+
var stdin_default$1m = defineComponent({
|
|
5368
5368
|
name: name$Z,
|
|
5369
5369
|
props: rowProps,
|
|
5370
5370
|
setup(props, {
|
|
@@ -5444,7 +5444,7 @@ const colProps = {
|
|
|
5444
5444
|
span: makeNumericProp(0),
|
|
5445
5445
|
offset: numericProp
|
|
5446
5446
|
};
|
|
5447
|
-
var stdin_default$
|
|
5447
|
+
var stdin_default$1l = defineComponent({
|
|
5448
5448
|
name: name$Y,
|
|
5449
5449
|
props: colProps,
|
|
5450
5450
|
setup(props, {
|
|
@@ -5493,7 +5493,7 @@ var stdin_default$1k = defineComponent({
|
|
|
5493
5493
|
};
|
|
5494
5494
|
}
|
|
5495
5495
|
});
|
|
5496
|
-
const Col = withInstall(stdin_default$
|
|
5496
|
+
const Col = withInstall(stdin_default$1l);
|
|
5497
5497
|
const [name$X, bem$W] = createNamespace("collapse");
|
|
5498
5498
|
const COLLAPSE_KEY = Symbol(name$X);
|
|
5499
5499
|
const collapseProps = {
|
|
@@ -5515,7 +5515,7 @@ function validateModelValue(modelValue, accordion) {
|
|
|
5515
5515
|
}
|
|
5516
5516
|
return true;
|
|
5517
5517
|
}
|
|
5518
|
-
var stdin_default$
|
|
5518
|
+
var stdin_default$1k = defineComponent({
|
|
5519
5519
|
name: name$X,
|
|
5520
5520
|
props: collapseProps,
|
|
5521
5521
|
emits: ["change", "update:modelValue"],
|
|
@@ -5593,7 +5593,7 @@ var stdin_default$1j = defineComponent({
|
|
|
5593
5593
|
};
|
|
5594
5594
|
}
|
|
5595
5595
|
});
|
|
5596
|
-
const Collapse = withInstall(stdin_default$
|
|
5596
|
+
const Collapse = withInstall(stdin_default$1k);
|
|
5597
5597
|
const [name$W, bem$V] = createNamespace("collapse-item");
|
|
5598
5598
|
const collapseItemProps = extend({}, {
|
|
5599
5599
|
name: numericProp,
|
|
@@ -5604,7 +5604,7 @@ const collapseItemProps = extend({}, {
|
|
|
5604
5604
|
titleBackground: String,
|
|
5605
5605
|
color: String
|
|
5606
5606
|
});
|
|
5607
|
-
var stdin_default$
|
|
5607
|
+
var stdin_default$1j = defineComponent({
|
|
5608
5608
|
name: name$W,
|
|
5609
5609
|
props: collapseItemProps,
|
|
5610
5610
|
setup(props, {
|
|
@@ -5690,7 +5690,7 @@ var stdin_default$1i = defineComponent({
|
|
|
5690
5690
|
"class": bem$V("text", {
|
|
5691
5691
|
custom: titleBackground
|
|
5692
5692
|
})
|
|
5693
|
-
}, [props.title]), createVNode(stdin_default$
|
|
5693
|
+
}, [props.title]), createVNode(stdin_default$1T, {
|
|
5694
5694
|
"name": "keyboard-arrow-down",
|
|
5695
5695
|
"style": color ? `color:${color};` : "",
|
|
5696
5696
|
"class": bem$V("icon", {
|
|
@@ -5720,8 +5720,8 @@ var stdin_default$1i = defineComponent({
|
|
|
5720
5720
|
}, [renderTitle(), renderContent()]);
|
|
5721
5721
|
}
|
|
5722
5722
|
});
|
|
5723
|
-
const CollapseItem = withInstall(stdin_default$
|
|
5724
|
-
const ConfigProvider = withInstall(stdin_default$
|
|
5723
|
+
const CollapseItem = withInstall(stdin_default$1j);
|
|
5724
|
+
const ConfigProvider = withInstall(stdin_default$1U);
|
|
5725
5725
|
const [name$V, bem$U, t$5] = createNamespace("picker");
|
|
5726
5726
|
const getFirstEnabledOption$1 = (options) => options.find((option) => !option.disabled) || options[0];
|
|
5727
5727
|
function getColumnsType$1(columns, fields) {
|
|
@@ -5793,7 +5793,7 @@ const MOMENTUM_TIME$2 = 300;
|
|
|
5793
5793
|
const MOMENTUM_DISTANCE$2 = 15;
|
|
5794
5794
|
const [name$U, bem$T] = createNamespace("picker-column");
|
|
5795
5795
|
const PICKER_KEY$1 = Symbol(name$U);
|
|
5796
|
-
var stdin_default$
|
|
5796
|
+
var stdin_default$1i = defineComponent({
|
|
5797
5797
|
name: name$U,
|
|
5798
5798
|
props: {
|
|
5799
5799
|
value: numericProp,
|
|
@@ -5997,7 +5997,7 @@ const pickerToolbarProps$1 = {
|
|
|
5997
5997
|
};
|
|
5998
5998
|
const pickerToolbarSlots$1 = ["cancel", "confirm", "title", "toolbar"];
|
|
5999
5999
|
const pickerToolbarPropKeys$1 = Object.keys(pickerToolbarProps$1);
|
|
6000
|
-
var stdin_default$
|
|
6000
|
+
var stdin_default$1h = defineComponent({
|
|
6001
6001
|
name: name$T,
|
|
6002
6002
|
props: pickerToolbarProps$1,
|
|
6003
6003
|
emits: ["confirm", "cancel"],
|
|
@@ -6043,7 +6043,7 @@ const pickerOptionsProps = {
|
|
|
6043
6043
|
columnCounts: makeNumberProp(3),
|
|
6044
6044
|
options: makeArrayProp()
|
|
6045
6045
|
};
|
|
6046
|
-
var stdin_default$
|
|
6046
|
+
var stdin_default$1g = defineComponent({
|
|
6047
6047
|
name: name$S,
|
|
6048
6048
|
props: pickerOptionsProps,
|
|
6049
6049
|
emits: ["change", "clickOption"],
|
|
@@ -6142,7 +6142,7 @@ const pickerProps = extend({}, pickerSharedProps$1, {
|
|
|
6142
6142
|
showType: makeStringProp("default"),
|
|
6143
6143
|
columnCounts: makeNumberProp(3)
|
|
6144
6144
|
});
|
|
6145
|
-
var stdin_default$
|
|
6145
|
+
var stdin_default$1f = defineComponent({
|
|
6146
6146
|
name: name$V,
|
|
6147
6147
|
props: pickerProps,
|
|
6148
6148
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
|
|
@@ -6235,7 +6235,7 @@ var stdin_default$1e = defineComponent({
|
|
|
6235
6235
|
};
|
|
6236
6236
|
const updateShow = (value) => emit("update:showPicker", value);
|
|
6237
6237
|
const hasUnit = props.columnsUnit.length === currentColumns.value.length;
|
|
6238
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
|
6238
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$1i, {
|
|
6239
6239
|
"value": selectedValues.value[columnIndex],
|
|
6240
6240
|
"fields": fields.value,
|
|
6241
6241
|
"options": options,
|
|
@@ -6280,7 +6280,7 @@ var stdin_default$1e = defineComponent({
|
|
|
6280
6280
|
};
|
|
6281
6281
|
const renderToolbar = () => {
|
|
6282
6282
|
if (props.showToolbar) {
|
|
6283
|
-
return createVNode(stdin_default$
|
|
6283
|
+
return createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
6284
6284
|
"onConfirm": confirm,
|
|
6285
6285
|
"onCancel": cancel
|
|
6286
6286
|
}), pick(slots, pickerToolbarSlots$1));
|
|
@@ -6347,7 +6347,7 @@ var stdin_default$1e = defineComponent({
|
|
|
6347
6347
|
};
|
|
6348
6348
|
const renderOptionItems = () => {
|
|
6349
6349
|
return currentColumns.value.map((options, columnIndex) => {
|
|
6350
|
-
return createVNode(stdin_default$
|
|
6350
|
+
return createVNode(stdin_default$1g, {
|
|
6351
6351
|
"ref": pickerOptions,
|
|
6352
6352
|
"value": selectedValues.value[columnIndex],
|
|
6353
6353
|
"columnCounts": props.columnCounts,
|
|
@@ -6377,7 +6377,7 @@ var stdin_default$1e = defineComponent({
|
|
|
6377
6377
|
return () => {
|
|
6378
6378
|
if (isButtonPicker.value) {
|
|
6379
6379
|
if (props.popup) {
|
|
6380
|
-
return createVNode(stdin_default$
|
|
6380
|
+
return createVNode(stdin_default$1P, {
|
|
6381
6381
|
"show": showPicker.value,
|
|
6382
6382
|
"onUpdate:show": [($event) => showPicker.value = $event, updateShow],
|
|
6383
6383
|
"round": true,
|
|
@@ -6389,7 +6389,7 @@ var stdin_default$1e = defineComponent({
|
|
|
6389
6389
|
return renderTiledPicker();
|
|
6390
6390
|
} else {
|
|
6391
6391
|
if (props.popup) {
|
|
6392
|
-
return createVNode(stdin_default$
|
|
6392
|
+
return createVNode(stdin_default$1P, {
|
|
6393
6393
|
"show": showPicker.value,
|
|
6394
6394
|
"onUpdate:show": [($event) => showPicker.value = $event, updateShow],
|
|
6395
6395
|
"round": true,
|
|
@@ -6445,9 +6445,9 @@ const formatValueRange = (values, columns) => values.map((value, index) => {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
return value;
|
|
6447
6447
|
});
|
|
6448
|
-
const Picker = withInstall(stdin_default$
|
|
6449
|
-
var stdin_default$
|
|
6450
|
-
var stdin_default$
|
|
6448
|
+
const Picker = withInstall(stdin_default$1f);
|
|
6449
|
+
var stdin_default$1e = Picker;
|
|
6450
|
+
var stdin_default$1d = defineComponent({
|
|
6451
6451
|
name: "Arrow",
|
|
6452
6452
|
emits: ["click"],
|
|
6453
6453
|
setup(_, {
|
|
@@ -6474,7 +6474,7 @@ const TIME_PICKER_KEY = Symbol(name$R);
|
|
|
6474
6474
|
const MOMENTUM_TIME$1 = 300;
|
|
6475
6475
|
const MOMENTUM_DISTANCE$1 = 15;
|
|
6476
6476
|
const DEFAULT_DURATION$1 = 200;
|
|
6477
|
-
var stdin_default$
|
|
6477
|
+
var stdin_default$1c = defineComponent({
|
|
6478
6478
|
name: name$R,
|
|
6479
6479
|
props: {
|
|
6480
6480
|
value: numericProp,
|
|
@@ -6649,10 +6649,10 @@ var stdin_default$1b = defineComponent({
|
|
|
6649
6649
|
currentDuration.value = DEFAULT_DURATION$1;
|
|
6650
6650
|
updateValueByIndex(isUp ? index - 1 : index + 1);
|
|
6651
6651
|
};
|
|
6652
|
-
const renderArrow = () => [createVNode(stdin_default$
|
|
6652
|
+
const renderArrow = () => [createVNode(stdin_default$1d, {
|
|
6653
6653
|
"class": bem$R("arrow-top"),
|
|
6654
6654
|
"onClick": () => onArrowClick(true)
|
|
6655
|
-
}, null), createVNode(stdin_default$
|
|
6655
|
+
}, null), createVNode(stdin_default$1d, {
|
|
6656
6656
|
"class": bem$R("arrow-bottom"),
|
|
6657
6657
|
"onClick": () => onArrowClick(false)
|
|
6658
6658
|
}, null)];
|
|
@@ -6707,7 +6707,7 @@ const timePickerProps = extend({}, sharedProps, {
|
|
|
6707
6707
|
default: () => ["hour", "minute"]
|
|
6708
6708
|
}
|
|
6709
6709
|
});
|
|
6710
|
-
var stdin_default$
|
|
6710
|
+
var stdin_default$1b = defineComponent({
|
|
6711
6711
|
name: name$Q,
|
|
6712
6712
|
props: timePickerProps,
|
|
6713
6713
|
emits: ["clickOption", "change", "update:modelValue"],
|
|
@@ -6782,7 +6782,7 @@ var stdin_default$1a = defineComponent({
|
|
|
6782
6782
|
currentOption
|
|
6783
6783
|
}, getEventParams()));
|
|
6784
6784
|
const hasUnit = props.columnsUnit.length === currentColumns.value.length;
|
|
6785
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(Fragment, null, [createVNode(stdin_default$
|
|
6785
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(Fragment, null, [createVNode(stdin_default$1c, {
|
|
6786
6786
|
"value": selectedValues.value[columnIndex],
|
|
6787
6787
|
"fields": fields.value,
|
|
6788
6788
|
"options": options,
|
|
@@ -6851,8 +6851,8 @@ var stdin_default$1a = defineComponent({
|
|
|
6851
6851
|
}, [renderColumns()]);
|
|
6852
6852
|
}
|
|
6853
6853
|
});
|
|
6854
|
-
const TimePicker = withInstall(stdin_default$
|
|
6855
|
-
var stdin_default$
|
|
6854
|
+
const TimePicker = withInstall(stdin_default$1b);
|
|
6855
|
+
var stdin_default$1a = TimePicker;
|
|
6856
6856
|
const [name$P, bem$P] = createNamespace("date-time-picker-wrapper");
|
|
6857
6857
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6858
6858
|
const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
|
|
@@ -6876,7 +6876,7 @@ const dateTimePickerProps = extend({}, sharedProps, popupSharedProps, {
|
|
|
6876
6876
|
startValue: makeArrayProp(),
|
|
6877
6877
|
endValue: makeArrayProp()
|
|
6878
6878
|
});
|
|
6879
|
-
var stdin_default$
|
|
6879
|
+
var stdin_default$19 = defineComponent({
|
|
6880
6880
|
name: name$P,
|
|
6881
6881
|
props: dateTimePickerProps,
|
|
6882
6882
|
emits: ["change", "update:modelValue"],
|
|
@@ -7071,7 +7071,7 @@ var stdin_default$18 = defineComponent({
|
|
|
7071
7071
|
});
|
|
7072
7072
|
const hasDateColumn = props.columnsType.includes("year") || props.columnsType.includes("month") || props.columnsType.includes("day");
|
|
7073
7073
|
const hasTimeColumn = props.columnsType.includes("hour") || props.columnsType.includes("minute") || props.columnsType.includes("second");
|
|
7074
|
-
const renderTimePicker = () => createVNode(stdin_default$
|
|
7074
|
+
const renderTimePicker = () => createVNode(stdin_default$1a, {
|
|
7075
7075
|
"modelValue": timeValuesRef.value,
|
|
7076
7076
|
"onUpdate:modelValue": ($event) => timeValuesRef.value = $event,
|
|
7077
7077
|
"columnsUnit": timeUnits.value,
|
|
@@ -7082,7 +7082,7 @@ var stdin_default$18 = defineComponent({
|
|
|
7082
7082
|
"class": bem$P()
|
|
7083
7083
|
}, [hasDateColumn ? createVNode(Divider, {
|
|
7084
7084
|
"style": "margin: 0"
|
|
7085
|
-
}, null) : null, hasDateColumn ? createVNode(stdin_default$
|
|
7085
|
+
}, null) : null, hasDateColumn ? createVNode(stdin_default$1e, mergeProps({
|
|
7086
7086
|
"popup": false,
|
|
7087
7087
|
"columnsUnit": dateUnits.value,
|
|
7088
7088
|
"modelValue": dateValuesRef.value,
|
|
@@ -7097,7 +7097,7 @@ var stdin_default$18 = defineComponent({
|
|
|
7097
7097
|
}
|
|
7098
7098
|
});
|
|
7099
7099
|
const [name$O, bem$O] = createNamespace("date-time-picker");
|
|
7100
|
-
var stdin_default$
|
|
7100
|
+
var stdin_default$18 = defineComponent({
|
|
7101
7101
|
name: name$O,
|
|
7102
7102
|
props: dateTimePickerProps,
|
|
7103
7103
|
emits: ["confirm", "cancel", "change", "startChange", "endChange", "update:show", "update:modelValue", "update:startValue", "update:endValue"],
|
|
@@ -7235,6 +7235,21 @@ var stdin_default$17 = defineComponent({
|
|
|
7235
7235
|
}
|
|
7236
7236
|
}
|
|
7237
7237
|
};
|
|
7238
|
+
watch(() => props.modelValue, onOpen, {
|
|
7239
|
+
deep: true
|
|
7240
|
+
});
|
|
7241
|
+
watch(() => props.startValue, () => {
|
|
7242
|
+
currentStartValue.value = props.startValue;
|
|
7243
|
+
currentStartText.value = genOriginValueText(props.startValue);
|
|
7244
|
+
}, {
|
|
7245
|
+
deep: true
|
|
7246
|
+
});
|
|
7247
|
+
watch(() => props.endValue, () => {
|
|
7248
|
+
currentEndValue.value = props.endValue;
|
|
7249
|
+
currentEndText.value = genOriginValueText(props.endValue);
|
|
7250
|
+
}, {
|
|
7251
|
+
deep: true
|
|
7252
|
+
});
|
|
7238
7253
|
const renderTitle = () => {
|
|
7239
7254
|
if (!props.range) {
|
|
7240
7255
|
return createVNode("div", {
|
|
@@ -7283,7 +7298,7 @@ var stdin_default$17 = defineComponent({
|
|
|
7283
7298
|
};
|
|
7284
7299
|
const renderPicker = () => {
|
|
7285
7300
|
if (!props.range) {
|
|
7286
|
-
return createVNode(stdin_default$
|
|
7301
|
+
return createVNode(stdin_default$19, mergeProps({
|
|
7287
7302
|
"ref": currentPickerRef,
|
|
7288
7303
|
"modelValue": props.modelValue,
|
|
7289
7304
|
"onUpdate:modelValue": ($event) => props.modelValue = $event,
|
|
@@ -7295,7 +7310,7 @@ var stdin_default$17 = defineComponent({
|
|
|
7295
7310
|
showTitle: false
|
|
7296
7311
|
})), null);
|
|
7297
7312
|
}
|
|
7298
|
-
return [withDirectives(createVNode(stdin_default$
|
|
7313
|
+
return [withDirectives(createVNode(stdin_default$19, mergeProps({
|
|
7299
7314
|
"ref": currentStartPickerRef,
|
|
7300
7315
|
"modelValue": props.startValue,
|
|
7301
7316
|
"onUpdate:modelValue": ($event) => props.startValue = $event,
|
|
@@ -7305,7 +7320,7 @@ var stdin_default$17 = defineComponent({
|
|
|
7305
7320
|
"minDate": props.minDate
|
|
7306
7321
|
}, extend(pick(props, pickerInheritKeys), {
|
|
7307
7322
|
showTitle: false
|
|
7308
|
-
})), null), [[vShow, rangeSelectedIndex.value === 0]]), withDirectives(createVNode(stdin_default$
|
|
7323
|
+
})), null), [[vShow, rangeSelectedIndex.value === 0]]), withDirectives(createVNode(stdin_default$19, mergeProps({
|
|
7309
7324
|
"ref": currentEndPickerRef,
|
|
7310
7325
|
"modelValue": props.endValue,
|
|
7311
7326
|
"onUpdate:modelValue": ($event) => props.endValue = $event,
|
|
@@ -7319,15 +7334,15 @@ var stdin_default$17 = defineComponent({
|
|
|
7319
7334
|
};
|
|
7320
7335
|
const renderToolbar = () => {
|
|
7321
7336
|
if (props.showToolbar) {
|
|
7322
|
-
return [createVNode(stdin_default$
|
|
7337
|
+
return [createVNode(stdin_default$1t, {
|
|
7323
7338
|
"style": "margin: 0"
|
|
7324
|
-
}, null), createVNode(stdin_default$
|
|
7339
|
+
}, null), createVNode(stdin_default$1h, mergeProps(pick(props, pickerToolbarPropKeys$1), {
|
|
7325
7340
|
"onConfirm": onConfirm,
|
|
7326
7341
|
"onCancel": onCancel
|
|
7327
7342
|
}), pick(slots, pickerToolbarSlots$1))];
|
|
7328
7343
|
}
|
|
7329
7344
|
};
|
|
7330
|
-
return () => createVNode(stdin_default$
|
|
7345
|
+
return () => createVNode(stdin_default$1Q, {
|
|
7331
7346
|
"round": true,
|
|
7332
7347
|
"position": "bottom",
|
|
7333
7348
|
"onOpen": onOpen,
|
|
@@ -7338,7 +7353,7 @@ var stdin_default$17 = defineComponent({
|
|
|
7338
7353
|
});
|
|
7339
7354
|
}
|
|
7340
7355
|
});
|
|
7341
|
-
const DateTimePicker = withInstall(stdin_default$
|
|
7356
|
+
const DateTimePicker = withInstall(stdin_default$18);
|
|
7342
7357
|
const [name$N, bem$N, t$4] = createNamespace("dialog");
|
|
7343
7358
|
const dialogProps = extend({}, popupSharedProps, {
|
|
7344
7359
|
title: String,
|
|
@@ -7363,7 +7378,7 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
|
7363
7378
|
closeOnClickOverlay: Boolean
|
|
7364
7379
|
});
|
|
7365
7380
|
const popupInheritKeys = [...popupSharedPropKeys, "transition", "closeOnPopstate"];
|
|
7366
|
-
var stdin_default$
|
|
7381
|
+
var stdin_default$17 = defineComponent({
|
|
7367
7382
|
name: name$N,
|
|
7368
7383
|
props: dialogProps,
|
|
7369
7384
|
emits: ["confirm", "cancel", "keydown", "update:show"],
|
|
@@ -7577,7 +7592,7 @@ function initInstance$2() {
|
|
|
7577
7592
|
state,
|
|
7578
7593
|
toggle
|
|
7579
7594
|
} = usePopupState();
|
|
7580
|
-
return () => createVNode(stdin_default$
|
|
7595
|
+
return () => createVNode(stdin_default$17, mergeProps(state, {
|
|
7581
7596
|
"onUpdate:show": toggle
|
|
7582
7597
|
}), null);
|
|
7583
7598
|
}
|
|
@@ -7615,7 +7630,7 @@ const closeDialog = () => {
|
|
|
7615
7630
|
instance$2.toggle(false);
|
|
7616
7631
|
}
|
|
7617
7632
|
};
|
|
7618
|
-
const Dialog = withInstall(stdin_default$
|
|
7633
|
+
const Dialog = withInstall(stdin_default$17);
|
|
7619
7634
|
const [name$M, bem$M] = createNamespace("field");
|
|
7620
7635
|
const fieldSharedProps = {
|
|
7621
7636
|
id: String,
|
|
@@ -7666,7 +7681,7 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
7666
7681
|
default: null
|
|
7667
7682
|
}
|
|
7668
7683
|
});
|
|
7669
|
-
var stdin_default$
|
|
7684
|
+
var stdin_default$16 = defineComponent({
|
|
7670
7685
|
name: name$M,
|
|
7671
7686
|
props: fieldProps,
|
|
7672
7687
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
|
@@ -8123,7 +8138,7 @@ var stdin_default$15 = defineComponent({
|
|
|
8123
8138
|
};
|
|
8124
8139
|
}
|
|
8125
8140
|
});
|
|
8126
|
-
const Field = withInstall(stdin_default$
|
|
8141
|
+
const Field = withInstall(stdin_default$16);
|
|
8127
8142
|
const [name$L, bem$L] = createNamespace("search");
|
|
8128
8143
|
const searchProps = extend({}, fieldSharedProps, {
|
|
8129
8144
|
shape: makeStringProp("round"),
|
|
@@ -8137,7 +8152,7 @@ const searchProps = extend({}, fieldSharedProps, {
|
|
|
8137
8152
|
actionText: String,
|
|
8138
8153
|
showAction: Boolean
|
|
8139
8154
|
});
|
|
8140
|
-
var stdin_default$
|
|
8155
|
+
var stdin_default$15 = defineComponent({
|
|
8141
8156
|
name: name$L,
|
|
8142
8157
|
props: searchProps,
|
|
8143
8158
|
emits: [
|
|
@@ -8250,8 +8265,8 @@ var stdin_default$14 = defineComponent({
|
|
|
8250
8265
|
};
|
|
8251
8266
|
}
|
|
8252
8267
|
});
|
|
8253
|
-
const Search = withInstall(stdin_default$
|
|
8254
|
-
var stdin_default$
|
|
8268
|
+
const Search = withInstall(stdin_default$15);
|
|
8269
|
+
var stdin_default$14 = Search;
|
|
8255
8270
|
const parseNumber = (obj, defaultValue = 0) => {
|
|
8256
8271
|
let result = parseInt(obj, 10);
|
|
8257
8272
|
if (isNaN(result)) {
|
|
@@ -8287,7 +8302,7 @@ const tagProps = {
|
|
|
8287
8302
|
stamp: Boolean,
|
|
8288
8303
|
stampDiameter: makeNumberProp(60)
|
|
8289
8304
|
};
|
|
8290
|
-
var stdin_default$
|
|
8305
|
+
var stdin_default$13 = defineComponent({
|
|
8291
8306
|
name: name$K,
|
|
8292
8307
|
props: tagProps,
|
|
8293
8308
|
emits: ["close"],
|
|
@@ -8344,7 +8359,7 @@ var stdin_default$12 = defineComponent({
|
|
|
8344
8359
|
}, null);
|
|
8345
8360
|
const LeftIcon = () => {
|
|
8346
8361
|
if (props.image) {
|
|
8347
|
-
return createVNode(stdin_default$
|
|
8362
|
+
return createVNode(stdin_default$1J, {
|
|
8348
8363
|
"class": bem$K("image"),
|
|
8349
8364
|
"src": props.image
|
|
8350
8365
|
}, null);
|
|
@@ -8411,8 +8426,8 @@ var stdin_default$12 = defineComponent({
|
|
|
8411
8426
|
});
|
|
8412
8427
|
}
|
|
8413
8428
|
});
|
|
8414
|
-
const Tag = withInstall(stdin_default$
|
|
8415
|
-
var stdin_default$
|
|
8429
|
+
const Tag = withInstall(stdin_default$13);
|
|
8430
|
+
var stdin_default$12 = Tag;
|
|
8416
8431
|
function deepClone(obj) {
|
|
8417
8432
|
if (!isDef(obj)) {
|
|
8418
8433
|
return obj;
|
|
@@ -8438,9 +8453,11 @@ const drawerSelectProps = {
|
|
|
8438
8453
|
expandAll: {
|
|
8439
8454
|
type: Boolean,
|
|
8440
8455
|
default: false
|
|
8441
|
-
}
|
|
8456
|
+
},
|
|
8457
|
+
defaultSelectNode: Object,
|
|
8458
|
+
activeClassName: makeStringProp("")
|
|
8442
8459
|
};
|
|
8443
|
-
var stdin_default$
|
|
8460
|
+
var stdin_default$11 = defineComponent({
|
|
8444
8461
|
name: name$J,
|
|
8445
8462
|
props: drawerSelectProps,
|
|
8446
8463
|
emits: ["change", "select"],
|
|
@@ -8449,7 +8466,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8449
8466
|
}) {
|
|
8450
8467
|
const keyword = ref("");
|
|
8451
8468
|
const expandNode = ref();
|
|
8452
|
-
const selectNode = ref();
|
|
8469
|
+
const selectNode = ref(props.defaultSelectNode);
|
|
8453
8470
|
const flatArray = ref([]);
|
|
8454
8471
|
const show = ref(false);
|
|
8455
8472
|
const searchRef = ref();
|
|
@@ -8627,7 +8644,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8627
8644
|
"onClick": () => item.expand = !item.expand
|
|
8628
8645
|
}, [createVNode("span", {
|
|
8629
8646
|
"class": [bem$J("label--placeholder")]
|
|
8630
|
-
}, [children2.length > 0 && createVNode(stdin_default$
|
|
8647
|
+
}, [children2.length > 0 && createVNode(stdin_default$1S, {
|
|
8631
8648
|
"name": "play-small",
|
|
8632
8649
|
"class": [bem$J("label--icon", {
|
|
8633
8650
|
active: item.expand
|
|
@@ -8648,6 +8665,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8648
8665
|
const renderItem = (item) => {
|
|
8649
8666
|
var _a, _b;
|
|
8650
8667
|
const empty = isEmpty(item);
|
|
8668
|
+
const active = empty && ((_a = selectNode.value) == null ? void 0 : _a.value) == item[fields.value.value];
|
|
8651
8669
|
return createVNode("div", {
|
|
8652
8670
|
"onClick": (e) => {
|
|
8653
8671
|
e.stopPropagation();
|
|
@@ -8658,7 +8676,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8658
8676
|
"class": [bem$J("item--header")]
|
|
8659
8677
|
}, [createVNode("span", {
|
|
8660
8678
|
"class": [bem$J("item--placeholder")]
|
|
8661
|
-
}, [!empty && createVNode(stdin_default$
|
|
8679
|
+
}, [!empty && createVNode(stdin_default$1S, {
|
|
8662
8680
|
"name": "play-small",
|
|
8663
8681
|
"class": [bem$J("item--icon", {
|
|
8664
8682
|
active: item.checked
|
|
@@ -8666,8 +8684,10 @@ var stdin_default$10 = defineComponent({
|
|
|
8666
8684
|
"size": "20"
|
|
8667
8685
|
}, null)]), createVNode("div", {
|
|
8668
8686
|
"class": [bem$J("item--label", {
|
|
8669
|
-
active
|
|
8670
|
-
}), "zt-hairline--top"
|
|
8687
|
+
active
|
|
8688
|
+
}), "zt-hairline--top", {
|
|
8689
|
+
[props.activeClassName]: active
|
|
8690
|
+
}]
|
|
8671
8691
|
}, [item[fields.value.text]])]), createVNode("div", {
|
|
8672
8692
|
"class": [bem$J("item--child")]
|
|
8673
8693
|
}, [!empty && item.checked && ((_b = item[fields.value.children]) == null ? void 0 : _b.map(renderItem))])]);
|
|
@@ -8694,7 +8714,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8694
8714
|
}, [createVNode("div", {
|
|
8695
8715
|
"class": [bem$J("search")],
|
|
8696
8716
|
"ref": searchRef
|
|
8697
|
-
}, [createVNode(stdin_default$
|
|
8717
|
+
}, [createVNode(stdin_default$14, {
|
|
8698
8718
|
"modelValue": keyword.value,
|
|
8699
8719
|
"onUpdate:modelValue": [($event) => keyword.value = $event, onSearch],
|
|
8700
8720
|
"placeholder": props.placeholder,
|
|
@@ -8708,7 +8728,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8708
8728
|
"style": {
|
|
8709
8729
|
top: `${offset2.value}px`
|
|
8710
8730
|
}
|
|
8711
|
-
}, [createVNode(stdin_default$
|
|
8731
|
+
}, [createVNode(stdin_default$1P, {
|
|
8712
8732
|
"class": [bem$J("popup")],
|
|
8713
8733
|
"position": "top",
|
|
8714
8734
|
"show": show.value,
|
|
@@ -8734,7 +8754,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8734
8754
|
"class": [bem$J("history--title"), "zt-hairline--bottom"]
|
|
8735
8755
|
}, [createTextVNode("搜索历史")]), createVNode("div", {
|
|
8736
8756
|
"class": [bem$J("history--content")]
|
|
8737
|
-
}, [historyList.value.map((item) => createVNode(stdin_default$
|
|
8757
|
+
}, [historyList.value.map((item) => createVNode(stdin_default$12, {
|
|
8738
8758
|
"onClick": () => onHistoryClick(item),
|
|
8739
8759
|
"round": true,
|
|
8740
8760
|
"text-color": "var(--zt-gray-a8)",
|
|
@@ -8744,7 +8764,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8744
8764
|
}))]), createVNode("div", {
|
|
8745
8765
|
"class": [bem$J("history--clear")],
|
|
8746
8766
|
"onClick": onClearHistory
|
|
8747
|
-
}, [createVNode(stdin_default$
|
|
8767
|
+
}, [createVNode(stdin_default$1S, {
|
|
8748
8768
|
"name": "delete",
|
|
8749
8769
|
"size": "20"
|
|
8750
8770
|
}, null), createTextVNode("清空搜索历史")])]), historyList.value.length === 0 && createVNode("div", {
|
|
@@ -8775,7 +8795,7 @@ var stdin_default$10 = defineComponent({
|
|
|
8775
8795
|
};
|
|
8776
8796
|
}
|
|
8777
8797
|
});
|
|
8778
|
-
const DrawerSelect = withInstall(stdin_default$
|
|
8798
|
+
const DrawerSelect = withInstall(stdin_default$11);
|
|
8779
8799
|
const [name$I, bem$I] = createNamespace("dropdown-menu");
|
|
8780
8800
|
const dropdownMenuProps = {
|
|
8781
8801
|
overlay: truthProp,
|
|
@@ -8787,7 +8807,7 @@ const dropdownMenuProps = {
|
|
|
8787
8807
|
closeOnClickOverlay: truthProp
|
|
8788
8808
|
};
|
|
8789
8809
|
const DROPDOWN_KEY = Symbol(name$I);
|
|
8790
|
-
var stdin_default
|
|
8810
|
+
var stdin_default$10 = defineComponent({
|
|
8791
8811
|
name: name$I,
|
|
8792
8812
|
props: dropdownMenuProps,
|
|
8793
8813
|
setup(props, {
|
|
@@ -8854,6 +8874,7 @@ var stdin_default$$ = defineComponent({
|
|
|
8854
8874
|
if (item.$slots.header) {
|
|
8855
8875
|
return item.$slots.header(item);
|
|
8856
8876
|
}
|
|
8877
|
+
const itemTitle = item.renderTitle();
|
|
8857
8878
|
return createVNode("div", {
|
|
8858
8879
|
"id": `${id}-${index}`,
|
|
8859
8880
|
"role": "button",
|
|
@@ -8879,7 +8900,9 @@ var stdin_default$$ = defineComponent({
|
|
|
8879
8900
|
}, [createVNode("div", {
|
|
8880
8901
|
"class": "zt-ellipsis",
|
|
8881
8902
|
"style": "padding-right: 18px"
|
|
8882
|
-
}, [slots.title ||
|
|
8903
|
+
}, [slots.title || (itemTitle ? itemTitle : createVNode("div", {
|
|
8904
|
+
"class": [bem$I("placeholder")]
|
|
8905
|
+
}, [item.placeholder])), slots.icon || createVNode(stdin_default$1S, {
|
|
8883
8906
|
"class": bem$I("icon"),
|
|
8884
8907
|
"name": "spinner-expand"
|
|
8885
8908
|
}, null)])])]);
|
|
@@ -8922,9 +8945,11 @@ const dropdownItemProps = {
|
|
|
8922
8945
|
modelValueArray: makeArrayProp(),
|
|
8923
8946
|
titleClass: unknownProp,
|
|
8924
8947
|
multiSelect: Boolean,
|
|
8925
|
-
itemLabel: String
|
|
8948
|
+
itemLabel: String,
|
|
8949
|
+
placeholder: makeStringProp("未选择"),
|
|
8950
|
+
resetDefaultValue: makeArrayProp()
|
|
8926
8951
|
};
|
|
8927
|
-
var stdin_default
|
|
8952
|
+
var stdin_default$$ = defineComponent({
|
|
8928
8953
|
name: name$H,
|
|
8929
8954
|
inheritAttrs: false,
|
|
8930
8955
|
props: dropdownItemProps,
|
|
@@ -8979,10 +9004,9 @@ var stdin_default$_ = defineComponent({
|
|
|
8979
9004
|
}
|
|
8980
9005
|
};
|
|
8981
9006
|
const onClickReset = () => {
|
|
8982
|
-
|
|
8983
|
-
item.selected = false;
|
|
8984
|
-
});
|
|
9007
|
+
var _a;
|
|
8985
9008
|
modelArray.splice(0);
|
|
9009
|
+
modelArray.push(...(_a = props.resetDefaultValue) != null ? _a : []);
|
|
8986
9010
|
state.showPopup = false;
|
|
8987
9011
|
emit("reset");
|
|
8988
9012
|
};
|
|
@@ -9018,7 +9042,7 @@ var stdin_default$_ = defineComponent({
|
|
|
9018
9042
|
if (title.length > 0) {
|
|
9019
9043
|
title = title.substring(0, title.length - 1);
|
|
9020
9044
|
}
|
|
9021
|
-
return title
|
|
9045
|
+
return title;
|
|
9022
9046
|
}
|
|
9023
9047
|
const match = props.options.find((option) => option[fields.value.value] === props.modelValue);
|
|
9024
9048
|
return match ? match[fields.value.text] : "";
|
|
@@ -9031,8 +9055,11 @@ var stdin_default$_ = defineComponent({
|
|
|
9031
9055
|
const text = option[fields.value.text];
|
|
9032
9056
|
let active = false;
|
|
9033
9057
|
if (props.multiSelect) {
|
|
9034
|
-
if (
|
|
9058
|
+
if (modelArray == null ? void 0 : modelArray.includes(value)) {
|
|
9035
9059
|
active = true;
|
|
9060
|
+
option.selected = true;
|
|
9061
|
+
} else {
|
|
9062
|
+
option.selected = false;
|
|
9036
9063
|
}
|
|
9037
9064
|
} else {
|
|
9038
9065
|
active = value === props.modelValue;
|
|
@@ -9040,12 +9067,10 @@ var stdin_default$_ = defineComponent({
|
|
|
9040
9067
|
const onClick = () => {
|
|
9041
9068
|
if (props.multiSelect) {
|
|
9042
9069
|
if (option.selected) {
|
|
9043
|
-
option.selected = false;
|
|
9044
9070
|
modelArray.splice(modelArray.indexOf(value), 1);
|
|
9045
9071
|
emit("update:modelValue", -value);
|
|
9046
9072
|
emit("change", -value);
|
|
9047
9073
|
} else {
|
|
9048
|
-
option.selected = true;
|
|
9049
9074
|
modelArray.push(value);
|
|
9050
9075
|
emit("update:modelValue", value);
|
|
9051
9076
|
emit("change", value);
|
|
@@ -9215,9 +9240,9 @@ var stdin_default$_ = defineComponent({
|
|
|
9215
9240
|
};
|
|
9216
9241
|
}
|
|
9217
9242
|
});
|
|
9218
|
-
const DropdownItem = withInstall(stdin_default
|
|
9219
|
-
const DropdownMenu = withInstall(stdin_default
|
|
9220
|
-
const renderNotFound = (bem2) => createVNode("svg", {
|
|
9243
|
+
const DropdownItem = withInstall(stdin_default$$);
|
|
9244
|
+
const DropdownMenu = withInstall(stdin_default$10);
|
|
9245
|
+
const renderNotFound = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9221
9246
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9222
9247
|
"viewBox": "0 0 160 160",
|
|
9223
9248
|
"class": "design-iconfont"
|
|
@@ -9226,7 +9251,7 @@ const renderNotFound = (bem2) => createVNode("svg", {
|
|
|
9226
9251
|
"y1": "100%",
|
|
9227
9252
|
"x2": "50%",
|
|
9228
9253
|
"y2": "0%",
|
|
9229
|
-
"id":
|
|
9254
|
+
"id": getId(1)
|
|
9230
9255
|
}, [createVNode("stop", {
|
|
9231
9256
|
"class": bem2("svg-defs-stop-color-gradient"),
|
|
9232
9257
|
"stop-opacity": ".1",
|
|
@@ -9240,7 +9265,7 @@ const renderNotFound = (bem2) => createVNode("svg", {
|
|
|
9240
9265
|
"y1": "100%",
|
|
9241
9266
|
"x2": "50%",
|
|
9242
9267
|
"y2": "0%",
|
|
9243
|
-
"id":
|
|
9268
|
+
"id": getId(2)
|
|
9244
9269
|
}, [createVNode("stop", {
|
|
9245
9270
|
"class": bem2("svg-defs-stop-color"),
|
|
9246
9271
|
"stop-opacity": "0",
|
|
@@ -9254,7 +9279,7 @@ const renderNotFound = (bem2) => createVNode("svg", {
|
|
|
9254
9279
|
"y1": "100%",
|
|
9255
9280
|
"x2": "50%",
|
|
9256
9281
|
"y2": "0%",
|
|
9257
|
-
"id":
|
|
9282
|
+
"id": getId(3)
|
|
9258
9283
|
}, [createVNode("stop", {
|
|
9259
9284
|
"class": bem2("svg-defs-stop-color"),
|
|
9260
9285
|
"offset": "0%"
|
|
@@ -9317,14 +9342,14 @@ const renderNotFound = (bem2) => createVNode("svg", {
|
|
|
9317
9342
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9318
9343
|
}, null), createVNode("path", {
|
|
9319
9344
|
"d": "M120,68 C124.418278,68 128,71.581722 128,76 L128,124 C128,128.418278 124.418278,132 120,132 L88,132 C84.2724501,132 81.1403373,129.450631 80.2521271,126.000358 L99,126 C107.836556,126 115,118.836556 115,110 L114.999127,68 L120,68 Z",
|
|
9320
|
-
"fill":
|
|
9345
|
+
"fill": getUrlById(1)
|
|
9321
9346
|
}, null), createVNode("path", {
|
|
9322
9347
|
"d": "M16,4 L56,4 C62.627417,4 68,9.372583 68,16 L68,80 C68,86.627417 62.627417,92 56,92 L16,92 C9.372583,92 4,86.627417 4,80 L4,16 C4,9.372583 9.372583,4 16,4 Z",
|
|
9323
|
-
"fill":
|
|
9348
|
+
"fill": getUrlById(2),
|
|
9324
9349
|
"transform": "translate(43 30)"
|
|
9325
9350
|
}, null), createVNode("path", {
|
|
9326
9351
|
"d": "M56,0 C64.836556,0 72,7.163444 72,16 L72,80 C72,88.836556 64.836556,96 56,96 L16,96 C7.163444,96 0,88.836556 0,80 L0,16 C0,7.163444 7.163444,0 16,0 L56,0 Z M48,12 C48,14.209139 46.209139,16 44,16 L28,16 C25.790861,16 24,14.209139 24,12 L24,8 L16,8 C11.581722,8 8,11.581722 8,16 L8,80 C8,84.418278 11.581722,88 16,88 L56,88 C60.418278,88 64,84.418278 64,80 L64,16 C64,11.581722 60.418278,8 56,8 L48,8 L48,12 Z",
|
|
9327
|
-
"fill":
|
|
9352
|
+
"fill": getUrlById(3),
|
|
9328
9353
|
"transform": "translate(43 30)"
|
|
9329
9354
|
}, null), createVNode("g", {
|
|
9330
9355
|
"transform": "translate(43 30)"
|
|
@@ -9345,7 +9370,7 @@ const renderNotFound = (bem2) => createVNode("svg", {
|
|
|
9345
9370
|
"fill": "#FFF",
|
|
9346
9371
|
"xlink:href": "#iwtsazmcp__qni97e1yqg"
|
|
9347
9372
|
}, null)])])]);
|
|
9348
|
-
const renderServerError = (bem2) => createVNode("svg", {
|
|
9373
|
+
const renderServerError = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9349
9374
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9350
9375
|
"viewBox": "0 0 160 160",
|
|
9351
9376
|
"class": "design-iconfont"
|
|
@@ -9354,7 +9379,7 @@ const renderServerError = (bem2) => createVNode("svg", {
|
|
|
9354
9379
|
"y1": "100%",
|
|
9355
9380
|
"x2": "50%",
|
|
9356
9381
|
"y2": "0%",
|
|
9357
|
-
"id":
|
|
9382
|
+
"id": getId(1)
|
|
9358
9383
|
}, [createVNode("stop", {
|
|
9359
9384
|
"class": bem2("svg-defs-stop-color-gradient"),
|
|
9360
9385
|
"stop-opacity": ".1",
|
|
@@ -9368,7 +9393,7 @@ const renderServerError = (bem2) => createVNode("svg", {
|
|
|
9368
9393
|
"y1": "100%",
|
|
9369
9394
|
"x2": "50%",
|
|
9370
9395
|
"y2": "0%",
|
|
9371
|
-
"id":
|
|
9396
|
+
"id": getId(2)
|
|
9372
9397
|
}, [createVNode("stop", {
|
|
9373
9398
|
"class": bem2("svg-defs-stop-color"),
|
|
9374
9399
|
"stop-opacity": "0",
|
|
@@ -9382,7 +9407,7 @@ const renderServerError = (bem2) => createVNode("svg", {
|
|
|
9382
9407
|
"y1": "100%",
|
|
9383
9408
|
"x2": "50%",
|
|
9384
9409
|
"y2": "0%",
|
|
9385
|
-
"id":
|
|
9410
|
+
"id": getId(3)
|
|
9386
9411
|
}, [createVNode("stop", {
|
|
9387
9412
|
"class": bem2("svg-defs-stop-color"),
|
|
9388
9413
|
"offset": "0%"
|
|
@@ -9444,13 +9469,13 @@ const renderServerError = (bem2) => createVNode("svg", {
|
|
|
9444
9469
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9445
9470
|
}, null), createVNode("path", {
|
|
9446
9471
|
"d": "M118,68 C122.418278,68 126,71.581722 126,76 L126,124 C126,128.418278 122.418278,132 118,132 L86,132 C82.2724501,132 79.1403373,129.450631 78.2521271,126.000358 L97,126 C105.836556,126 113,118.836556 113,110 L112.999127,68 L118,68 Z",
|
|
9447
|
-
"fill":
|
|
9472
|
+
"fill": getUrlById(1)
|
|
9448
9473
|
}, null), createVNode("path", {
|
|
9449
9474
|
"d": "M57,34 L97,34 C103.627417,34 109,39.372583 109,46 L109,110 C109,116.627417 103.627417,122 97,122 L57,122 C50.372583,122 45,116.627417 45,110 L45,46 C45,39.372583 50.372583,34 57,34 Z",
|
|
9450
|
-
"fill":
|
|
9475
|
+
"fill": getUrlById(2)
|
|
9451
9476
|
}, null), createVNode("path", {
|
|
9452
9477
|
"d": "M97,30 C105.836556,30 113,37.163444 113,46 L113,110 C113,118.836556 105.836556,126 97,126 L57,126 C48.163444,126 41,118.836556 41,110 L41,46 C41,37.163444 48.163444,30 57,30 L97,30 Z M89,42 C89,44.209139 87.209139,46 85,46 L69,46 C66.790861,46 65,44.209139 65,42 L65,38 L57,38 C52.581722,38 49,41.581722 49,46 L49,110 C49,114.418278 52.581722,118 57,118 L97,118 C101.418278,118 105,114.418278 105,110 L105,46 C105,41.581722 101.418278,38 97,38 L89,38 L89,42 Z",
|
|
9453
|
-
"fill":
|
|
9478
|
+
"fill": getUrlById(3)
|
|
9454
9479
|
}, null), createVNode("g", {
|
|
9455
9480
|
"transform": "translate(53.42222 65.5)"
|
|
9456
9481
|
}, [createVNode("use", {
|
|
@@ -9470,7 +9495,7 @@ const renderServerError = (bem2) => createVNode("svg", {
|
|
|
9470
9495
|
"fill": "#FFF",
|
|
9471
9496
|
"xlink:href": "#7kkq7j5p7__45z80jbylg"
|
|
9472
9497
|
}, null)])])]);
|
|
9473
|
-
const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
9498
|
+
const renderAccessRestricted = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9474
9499
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9475
9500
|
"viewBox": "0 0 160 160",
|
|
9476
9501
|
"class": "design-iconfont"
|
|
@@ -9479,7 +9504,7 @@ const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
|
9479
9504
|
"y1": "100%",
|
|
9480
9505
|
"x2": "50%",
|
|
9481
9506
|
"y2": "0%",
|
|
9482
|
-
"id":
|
|
9507
|
+
"id": getId(1)
|
|
9483
9508
|
}, [createVNode("stop", {
|
|
9484
9509
|
"class": bem2("svg-defs-stop-color"),
|
|
9485
9510
|
"stop-opacity": ".1",
|
|
@@ -9493,7 +9518,7 @@ const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
|
9493
9518
|
"y1": "100%",
|
|
9494
9519
|
"x2": "50%",
|
|
9495
9520
|
"y2": "0%",
|
|
9496
|
-
"id":
|
|
9521
|
+
"id": getId(2)
|
|
9497
9522
|
}, [createVNode("stop", {
|
|
9498
9523
|
"class": bem2("svg-defs-stop-color"),
|
|
9499
9524
|
"stop-opacity": "0",
|
|
@@ -9507,7 +9532,7 @@ const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
|
9507
9532
|
"y1": "100%",
|
|
9508
9533
|
"x2": "50%",
|
|
9509
9534
|
"y2": "0%",
|
|
9510
|
-
"id":
|
|
9535
|
+
"id": getId(3)
|
|
9511
9536
|
}, [createVNode("stop", {
|
|
9512
9537
|
"class": bem2("svg-defs-stop-color"),
|
|
9513
9538
|
"offset": "0%"
|
|
@@ -9544,13 +9569,13 @@ const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
|
9544
9569
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9545
9570
|
}, null), createVNode("path", {
|
|
9546
9571
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
9547
|
-
"fill":
|
|
9572
|
+
"fill": getUrlById(1)
|
|
9548
9573
|
}, null), createVNode("path", {
|
|
9549
9574
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
9550
|
-
"fill":
|
|
9575
|
+
"fill": getUrlById(2)
|
|
9551
9576
|
}, null), createVNode("path", {
|
|
9552
9577
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
9553
|
-
"fill":
|
|
9578
|
+
"fill": getUrlById(3)
|
|
9554
9579
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
9555
9580
|
"class": bem2("svg-defs-path-fill"),
|
|
9556
9581
|
"filter": "url(#osn32hg6k__96p18i5xad)",
|
|
@@ -9559,7 +9584,7 @@ const renderAccessRestricted = (bem2) => createVNode("svg", {
|
|
|
9559
9584
|
"fill": "#FFF",
|
|
9560
9585
|
"xlink:href": "#osn32hg6k__2vtr6xgyge"
|
|
9561
9586
|
}, null)])])]);
|
|
9562
|
-
const renderDeveloping = (bem2) => createVNode("svg", {
|
|
9587
|
+
const renderDeveloping = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9563
9588
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9564
9589
|
"viewBox": "0 0 160 160",
|
|
9565
9590
|
"class": "design-iconfont"
|
|
@@ -9568,7 +9593,7 @@ const renderDeveloping = (bem2) => createVNode("svg", {
|
|
|
9568
9593
|
"y1": "100%",
|
|
9569
9594
|
"x2": "50%",
|
|
9570
9595
|
"y2": "0%",
|
|
9571
|
-
"id":
|
|
9596
|
+
"id": getId(1)
|
|
9572
9597
|
}, [createVNode("stop", {
|
|
9573
9598
|
"class": bem2("svg-defs-stop-color"),
|
|
9574
9599
|
"stop-opacity": ".1",
|
|
@@ -9582,7 +9607,7 @@ const renderDeveloping = (bem2) => createVNode("svg", {
|
|
|
9582
9607
|
"y1": "100%",
|
|
9583
9608
|
"x2": "50%",
|
|
9584
9609
|
"y2": "0%",
|
|
9585
|
-
"id":
|
|
9610
|
+
"id": getId(2)
|
|
9586
9611
|
}, [createVNode("stop", {
|
|
9587
9612
|
"class": bem2("svg-defs-stop-color"),
|
|
9588
9613
|
"offset": "0%"
|
|
@@ -9594,7 +9619,7 @@ const renderDeveloping = (bem2) => createVNode("svg", {
|
|
|
9594
9619
|
"y1": "100%",
|
|
9595
9620
|
"x2": "50%",
|
|
9596
9621
|
"y2": "0%",
|
|
9597
|
-
"id":
|
|
9622
|
+
"id": getId(3)
|
|
9598
9623
|
}, [createVNode("stop", {
|
|
9599
9624
|
"class": bem2("svg-defs-stop-color"),
|
|
9600
9625
|
"stop-opacity": "0",
|
|
@@ -9633,15 +9658,15 @@ const renderDeveloping = (bem2) => createVNode("svg", {
|
|
|
9633
9658
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9634
9659
|
}, null), createVNode("path", {
|
|
9635
9660
|
"d": "M30.9499998,77 L57.0500002,77 C59.7838096,77 62,79.2161904 62,81.9499998 L62,82.0500002 C62,84.7838096 59.7838096,87 57.0500002,87 L30.9499998,87 C28.2161904,87 26,84.7838096 26,82.0500002 L26,81.9499998 C26,79.2161904 28.2161904,77 30.9499998,77 Z",
|
|
9636
|
-
"fill":
|
|
9661
|
+
"fill": getUrlById(1),
|
|
9637
9662
|
"transform": "translate(36 37)"
|
|
9638
9663
|
}, null), createVNode("path", {
|
|
9639
9664
|
"d": "M79,1.42108547e-14 C83.8011292,1.42108547e-14 88,4.20251975 88,9 L88,54 C88,62.9808979 80.9869924,70 72,70 L16,70 C7.01300757,70 0,62.9808979 0,54 L0,9 C0,4.20251975 4.19887078,1.42108547e-14 9,1.42108547e-14 L79,1.42108547e-14 Z M79,18 L9,18 C8.62504067,18 8,18.62538 8,19 L8,54 C8,58.5604098 11.4377237,62 16,62 L72,62 C76.5622763,62 80,58.5604098 80,54 L80,19 C80,18.62538 79.3749593,18 79,18 Z",
|
|
9640
|
-
"fill":
|
|
9665
|
+
"fill": getUrlById(2),
|
|
9641
9666
|
"transform": "translate(36 37)"
|
|
9642
9667
|
}, null), createVNode("path", {
|
|
9643
9668
|
"d": "M78.5842697,18 L9.41573034,18 C8.63384406,18 8,18.62538 8,19.3968254 L8,54.3174603 C8,58.5604098 11.4861423,62 15.7865169,62 L72.2134831,62 C76.5138577,62 80,58.5604098 80,54.3174603 L80,19.3968254 C80,18.62538 79.3661559,18 78.5842697,18 Z",
|
|
9644
|
-
"fill":
|
|
9669
|
+
"fill": getUrlById(3),
|
|
9645
9670
|
"transform": "translate(36 37)"
|
|
9646
9671
|
}, null), createVNode("path", {
|
|
9647
9672
|
"d": "M11,12 C12.6568542,12 14,10.6568542 14,9 C14,7.34314575 12.6568542,6 11,6 C9.34314575,6 8,7.34314575 8,9 C8,10.6568542 9.34314575,12 11,12 Z M20,12 C21.6568542,12 23,10.6568542 23,9 C23,7.34314575 21.6568542,6 20,6 C18.3431458,6 17,7.34314575 17,9 C17,10.6568542 18.3431458,12 20,12 Z M29,12 C30.6568542,12 32,10.6568542 32,9 C32,7.34314575 30.6568542,6 29,6 C27.3431458,6 26,7.34314575 26,9 C26,10.6568542 27.3431458,12 29,12 Z",
|
|
@@ -9657,7 +9682,7 @@ const renderDeveloping = (bem2) => createVNode("svg", {
|
|
|
9657
9682
|
"fill": "#FFF",
|
|
9658
9683
|
"xlink:href": "#0rplvus3a__7t0ftckj4e"
|
|
9659
9684
|
}, null)])])]);
|
|
9660
|
-
const renderNetworkError = (bem2) => createVNode("svg", {
|
|
9685
|
+
const renderNetworkError = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9661
9686
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9662
9687
|
"viewBox": "0 0 160 160",
|
|
9663
9688
|
"class": "design-iconfont"
|
|
@@ -9666,7 +9691,7 @@ const renderNetworkError = (bem2) => createVNode("svg", {
|
|
|
9666
9691
|
"y1": "100%",
|
|
9667
9692
|
"x2": "50%",
|
|
9668
9693
|
"y2": "0%",
|
|
9669
|
-
"id":
|
|
9694
|
+
"id": getId(1)
|
|
9670
9695
|
}, [createVNode("stop", {
|
|
9671
9696
|
"class": bem2("svg-defs-stop-color-gradient"),
|
|
9672
9697
|
"stop-opacity": "0",
|
|
@@ -9680,7 +9705,7 @@ const renderNetworkError = (bem2) => createVNode("svg", {
|
|
|
9680
9705
|
"y1": "0%",
|
|
9681
9706
|
"x2": "50%",
|
|
9682
9707
|
"y2": "100%",
|
|
9683
|
-
"id":
|
|
9708
|
+
"id": getId(2)
|
|
9684
9709
|
}, [createVNode("stop", {
|
|
9685
9710
|
"class": bem2("svg-defs-stop-color-gradient"),
|
|
9686
9711
|
"offset": "0%"
|
|
@@ -9721,9 +9746,9 @@ const renderNetworkError = (bem2) => createVNode("svg", {
|
|
|
9721
9746
|
"opacity": ".24220203"
|
|
9722
9747
|
}, null), createVNode("path", {
|
|
9723
9748
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
9724
|
-
"stroke":
|
|
9749
|
+
"stroke": getUrlById(2),
|
|
9725
9750
|
"stroke-width": "8",
|
|
9726
|
-
"fill":
|
|
9751
|
+
"fill": getUrlById(1)
|
|
9727
9752
|
}, null), createVNode("use", {
|
|
9728
9753
|
"class": bem2("svg-defs-path-fill"),
|
|
9729
9754
|
"filter": "url(#xg345q5xi__ky1vat27oc)",
|
|
@@ -9746,7 +9771,7 @@ const renderNetworkError = (bem2) => createVNode("svg", {
|
|
|
9746
9771
|
"height": "16",
|
|
9747
9772
|
"rx": "4"
|
|
9748
9773
|
}, null)])]);
|
|
9749
|
-
const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
9774
|
+
const renderEmptyResult = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9750
9775
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9751
9776
|
"viewBox": "0 0 160 160",
|
|
9752
9777
|
"class": "design-iconfont"
|
|
@@ -9755,7 +9780,7 @@ const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
|
9755
9780
|
"y1": "100%",
|
|
9756
9781
|
"x2": "50%",
|
|
9757
9782
|
"y2": "0%",
|
|
9758
|
-
"id":
|
|
9783
|
+
"id": getId(1)
|
|
9759
9784
|
}, [createVNode("stop", {
|
|
9760
9785
|
"class": bem2("svg-defs-stop-color"),
|
|
9761
9786
|
"stop-opacity": ".1",
|
|
@@ -9769,7 +9794,7 @@ const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
|
9769
9794
|
"y1": "100%",
|
|
9770
9795
|
"x2": "50%",
|
|
9771
9796
|
"y2": "0%",
|
|
9772
|
-
"id":
|
|
9797
|
+
"id": getId(2)
|
|
9773
9798
|
}, [createVNode("stop", {
|
|
9774
9799
|
"class": bem2("svg-defs-stop-color"),
|
|
9775
9800
|
"stop-opacity": "0",
|
|
@@ -9783,7 +9808,7 @@ const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
|
9783
9808
|
"y1": "100%",
|
|
9784
9809
|
"x2": "50%",
|
|
9785
9810
|
"y2": "0%",
|
|
9786
|
-
"id":
|
|
9811
|
+
"id": getId(3)
|
|
9787
9812
|
}, [createVNode("stop", {
|
|
9788
9813
|
"class": bem2("svg-defs-stop-color"),
|
|
9789
9814
|
"offset": "0%"
|
|
@@ -9820,13 +9845,13 @@ const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
|
9820
9845
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9821
9846
|
}, null), createVNode("path", {
|
|
9822
9847
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
9823
|
-
"fill":
|
|
9848
|
+
"fill": getUrlById(1)
|
|
9824
9849
|
}, null), createVNode("path", {
|
|
9825
9850
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
9826
|
-
"fill":
|
|
9851
|
+
"fill": getUrlById(2)
|
|
9827
9852
|
}, null), createVNode("path", {
|
|
9828
9853
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
9829
|
-
"fill":
|
|
9854
|
+
"fill": getUrlById(3)
|
|
9830
9855
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
9831
9856
|
"class": bem2("svg-defs-path-fill"),
|
|
9832
9857
|
"filter": "url(#cgogdnfso__7fi3sy00cd)",
|
|
@@ -9835,7 +9860,7 @@ const renderEmptyResult = (bem2) => createVNode("svg", {
|
|
|
9835
9860
|
"fill": "#FFF",
|
|
9836
9861
|
"xlink:href": "#cgogdnfso__sffqrzc91e"
|
|
9837
9862
|
}, null)])])]);
|
|
9838
|
-
const renderFindNull = (bem2) => createVNode("svg", {
|
|
9863
|
+
const renderFindNull = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9839
9864
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9840
9865
|
"viewBox": "0 0 160 160",
|
|
9841
9866
|
"class": "design-iconfont"
|
|
@@ -9844,7 +9869,7 @@ const renderFindNull = (bem2) => createVNode("svg", {
|
|
|
9844
9869
|
"y1": "100%",
|
|
9845
9870
|
"x2": "50%",
|
|
9846
9871
|
"y2": "0%",
|
|
9847
|
-
"id":
|
|
9872
|
+
"id": getId(1)
|
|
9848
9873
|
}, [createVNode("stop", {
|
|
9849
9874
|
"class": bem2("svg-defs-stop-color"),
|
|
9850
9875
|
"stop-opacity": ".1",
|
|
@@ -9858,7 +9883,7 @@ const renderFindNull = (bem2) => createVNode("svg", {
|
|
|
9858
9883
|
"y1": "100%",
|
|
9859
9884
|
"x2": "50%",
|
|
9860
9885
|
"y2": "0%",
|
|
9861
|
-
"id":
|
|
9886
|
+
"id": getId(2)
|
|
9862
9887
|
}, [createVNode("stop", {
|
|
9863
9888
|
"class": bem2("svg-defs-stop-color"),
|
|
9864
9889
|
"stop-opacity": "0",
|
|
@@ -9872,7 +9897,7 @@ const renderFindNull = (bem2) => createVNode("svg", {
|
|
|
9872
9897
|
"y1": "100%",
|
|
9873
9898
|
"x2": "50%",
|
|
9874
9899
|
"y2": "0%",
|
|
9875
|
-
"id":
|
|
9900
|
+
"id": getId(3)
|
|
9876
9901
|
}, [createVNode("stop", {
|
|
9877
9902
|
"class": bem2("svg-defs-stop-color"),
|
|
9878
9903
|
"offset": "0%"
|
|
@@ -9885,7 +9910,7 @@ const renderFindNull = (bem2) => createVNode("svg", {
|
|
|
9885
9910
|
"width": "181.2%",
|
|
9886
9911
|
"height": "183.9%",
|
|
9887
9912
|
"filterUnits": "objectBoundingBox",
|
|
9888
|
-
"id":
|
|
9913
|
+
"id": getId(4)
|
|
9889
9914
|
}, [createVNode("feOffset", {
|
|
9890
9915
|
"dy": "2",
|
|
9891
9916
|
"in": "SourceGraphic",
|
|
@@ -9909,22 +9934,22 @@ const renderFindNull = (bem2) => createVNode("svg", {
|
|
|
9909
9934
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9910
9935
|
}, null), createVNode("path", {
|
|
9911
9936
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
9912
|
-
"fill":
|
|
9937
|
+
"fill": getUrlById(1)
|
|
9913
9938
|
}, null), createVNode("path", {
|
|
9914
9939
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
9915
|
-
"fill":
|
|
9940
|
+
"fill": getUrlById(2)
|
|
9916
9941
|
}, null), createVNode("path", {
|
|
9917
9942
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
9918
|
-
"fill":
|
|
9943
|
+
"fill": getUrlById(3)
|
|
9919
9944
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
9920
9945
|
"class": bem2("svg-defs-path-fill"),
|
|
9921
|
-
"filter":
|
|
9946
|
+
"filter": getUrlById(4),
|
|
9922
9947
|
"xlink:href": "#cgogdnfso__sffqrzc91e"
|
|
9923
9948
|
}, null), createVNode("use", {
|
|
9924
9949
|
"fill": "#FFF",
|
|
9925
9950
|
"xlink:href": "#cgogdnfso__sffqrzc91e"
|
|
9926
9951
|
}, null)])])]);
|
|
9927
|
-
const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
9952
|
+
const renderEmptyInterface = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
9928
9953
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
9929
9954
|
"viewBox": "0 0 160 160",
|
|
9930
9955
|
"class": "design-iconfont"
|
|
@@ -9933,7 +9958,7 @@ const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
|
9933
9958
|
"y1": "100%",
|
|
9934
9959
|
"x2": "50%",
|
|
9935
9960
|
"y2": "0%",
|
|
9936
|
-
"id":
|
|
9961
|
+
"id": getId(1)
|
|
9937
9962
|
}, [createVNode("stop", {
|
|
9938
9963
|
"class": bem2("svg-defs-stop-color"),
|
|
9939
9964
|
"stop-opacity": ".1",
|
|
@@ -9947,7 +9972,7 @@ const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
|
9947
9972
|
"y1": "100%",
|
|
9948
9973
|
"x2": "50%",
|
|
9949
9974
|
"y2": "0%",
|
|
9950
|
-
"id":
|
|
9975
|
+
"id": getId(2)
|
|
9951
9976
|
}, [createVNode("stop", {
|
|
9952
9977
|
"class": bem2("svg-defs-stop-color"),
|
|
9953
9978
|
"stop-opacity": "0",
|
|
@@ -9961,7 +9986,7 @@ const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
|
9961
9986
|
"y1": "100%",
|
|
9962
9987
|
"x2": "50%",
|
|
9963
9988
|
"y2": "0%",
|
|
9964
|
-
"id":
|
|
9989
|
+
"id": getId(3)
|
|
9965
9990
|
}, [createVNode("stop", {
|
|
9966
9991
|
"class": bem2("svg-defs-stop-color"),
|
|
9967
9992
|
"offset": "0%"
|
|
@@ -9974,7 +9999,7 @@ const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
|
9974
9999
|
"width": "172.2%",
|
|
9975
10000
|
"height": "425%",
|
|
9976
10001
|
"filterUnits": "objectBoundingBox",
|
|
9977
|
-
"id":
|
|
10002
|
+
"id": getId(4)
|
|
9978
10003
|
}, [createVNode("feOffset", {
|
|
9979
10004
|
"dy": "2",
|
|
9980
10005
|
"in": "SourceGraphic",
|
|
@@ -9998,22 +10023,22 @@ const renderEmptyInterface = (bem2) => createVNode("svg", {
|
|
|
9998
10023
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
9999
10024
|
}, null), createVNode("path", {
|
|
10000
10025
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
10001
|
-
"fill":
|
|
10026
|
+
"fill": getUrlById(1)
|
|
10002
10027
|
}, null), createVNode("path", {
|
|
10003
10028
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
10004
|
-
"fill":
|
|
10029
|
+
"fill": getUrlById(2)
|
|
10005
10030
|
}, null), createVNode("path", {
|
|
10006
10031
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
10007
|
-
"fill":
|
|
10032
|
+
"fill": getUrlById(3)
|
|
10008
10033
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
10009
10034
|
"class": bem2("svg-defs-path-fill"),
|
|
10010
|
-
"filter":
|
|
10035
|
+
"filter": getUrlById(4),
|
|
10011
10036
|
"xlink:href": "#6t7l7j7ds__41nn7lg6ve"
|
|
10012
10037
|
}, null), createVNode("use", {
|
|
10013
10038
|
"fill": "#FFF",
|
|
10014
10039
|
"xlink:href": "#6t7l7j7ds__41nn7lg6ve"
|
|
10015
10040
|
}, null)])])]);
|
|
10016
|
-
const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
10041
|
+
const renderReportSuccess = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
10017
10042
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
10018
10043
|
"viewBox": "0 0 160 160",
|
|
10019
10044
|
"class": "design-iconfont"
|
|
@@ -10022,7 +10047,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10022
10047
|
"y1": "100%",
|
|
10023
10048
|
"x2": "50%",
|
|
10024
10049
|
"y2": "0%",
|
|
10025
|
-
"id":
|
|
10050
|
+
"id": getId(1)
|
|
10026
10051
|
}, [createVNode("stop", {
|
|
10027
10052
|
"class": bem2("svg-defs-stop-color"),
|
|
10028
10053
|
"stop-opacity": ".1",
|
|
@@ -10036,7 +10061,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10036
10061
|
"y1": "100%",
|
|
10037
10062
|
"x2": "50%",
|
|
10038
10063
|
"y2": "0%",
|
|
10039
|
-
"id":
|
|
10064
|
+
"id": getId(2)
|
|
10040
10065
|
}, [createVNode("stop", {
|
|
10041
10066
|
"class": bem2("svg-defs-stop-color"),
|
|
10042
10067
|
"stop-opacity": "0",
|
|
@@ -10050,7 +10075,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10050
10075
|
"y1": "100%",
|
|
10051
10076
|
"x2": "50%",
|
|
10052
10077
|
"y2": "0%",
|
|
10053
|
-
"id":
|
|
10078
|
+
"id": getId(3)
|
|
10054
10079
|
}, [createVNode("stop", {
|
|
10055
10080
|
"class": bem2("svg-defs-stop-color"),
|
|
10056
10081
|
"offset": "0%"
|
|
@@ -10063,7 +10088,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10063
10088
|
"width": "169.6%",
|
|
10064
10089
|
"height": "168.4%",
|
|
10065
10090
|
"filterUnits": "objectBoundingBox",
|
|
10066
|
-
"id":
|
|
10091
|
+
"id": getId(4)
|
|
10067
10092
|
}, [createVNode("feOffset", {
|
|
10068
10093
|
"dy": "2",
|
|
10069
10094
|
"in": "SourceGraphic",
|
|
@@ -10081,7 +10106,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10081
10106
|
"width": "220%",
|
|
10082
10107
|
"height": "220%",
|
|
10083
10108
|
"filterUnits": "objectBoundingBox",
|
|
10084
|
-
"id":
|
|
10109
|
+
"id": getId(5)
|
|
10085
10110
|
}, [createVNode("feOffset", {
|
|
10086
10111
|
"dy": "3",
|
|
10087
10112
|
"in": "SourceGraphic",
|
|
@@ -10108,16 +10133,16 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10108
10133
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
10109
10134
|
}, null), createVNode("path", {
|
|
10110
10135
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
10111
|
-
"fill":
|
|
10136
|
+
"fill": getUrlById(1)
|
|
10112
10137
|
}, null), createVNode("path", {
|
|
10113
10138
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
10114
|
-
"fill":
|
|
10139
|
+
"fill": getUrlById(2)
|
|
10115
10140
|
}, null), createVNode("path", {
|
|
10116
10141
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
10117
|
-
"fill":
|
|
10142
|
+
"fill": getUrlById(3)
|
|
10118
10143
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
10119
10144
|
"class": bem2("svg-defs-path-fill"),
|
|
10120
|
-
"filter":
|
|
10145
|
+
"filter": getUrlById(4),
|
|
10121
10146
|
"xlink:href": "#h3r8rva5d__d7rd04hahe"
|
|
10122
10147
|
}, null), createVNode("use", {
|
|
10123
10148
|
"fill": "#FFF",
|
|
@@ -10126,7 +10151,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10126
10151
|
"transform": "translate(78 77)"
|
|
10127
10152
|
}, [createVNode("use", {
|
|
10128
10153
|
"class": bem2("svg-defs-path-fill"),
|
|
10129
|
-
"filter":
|
|
10154
|
+
"filter": getUrlById(5),
|
|
10130
10155
|
"xlink:href": "#h3r8rva5d__jk95ntyavg"
|
|
10131
10156
|
}, null), createVNode("use", {
|
|
10132
10157
|
"fill": "#28CD78",
|
|
@@ -10137,7 +10162,7 @@ const renderReportSuccess = (bem2) => createVNode("svg", {
|
|
|
10137
10162
|
"fill-rule": "nonzero",
|
|
10138
10163
|
"transform": "translate(78 77)"
|
|
10139
10164
|
}, null)])]);
|
|
10140
|
-
const renderReportError = (bem2) => createVNode("svg", {
|
|
10165
|
+
const renderReportError = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
10141
10166
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
10142
10167
|
"viewBox": "0 0 160 160",
|
|
10143
10168
|
"class": "design-iconfont"
|
|
@@ -10146,7 +10171,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10146
10171
|
"y1": "100%",
|
|
10147
10172
|
"x2": "50%",
|
|
10148
10173
|
"y2": "0%",
|
|
10149
|
-
"id":
|
|
10174
|
+
"id": getId(1)
|
|
10150
10175
|
}, [createVNode("stop", {
|
|
10151
10176
|
"class": bem2("svg-defs-stop-color"),
|
|
10152
10177
|
"stop-opacity": ".1",
|
|
@@ -10160,7 +10185,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10160
10185
|
"y1": "100%",
|
|
10161
10186
|
"x2": "50%",
|
|
10162
10187
|
"y2": "0%",
|
|
10163
|
-
"id":
|
|
10188
|
+
"id": getId(2)
|
|
10164
10189
|
}, [createVNode("stop", {
|
|
10165
10190
|
"class": bem2("svg-defs-stop-color"),
|
|
10166
10191
|
"stop-opacity": "0",
|
|
@@ -10174,7 +10199,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10174
10199
|
"y1": "100%",
|
|
10175
10200
|
"x2": "50%",
|
|
10176
10201
|
"y2": "0%",
|
|
10177
|
-
"id":
|
|
10202
|
+
"id": getId(3)
|
|
10178
10203
|
}, [createVNode("stop", {
|
|
10179
10204
|
"class": bem2("svg-defs-stop-color"),
|
|
10180
10205
|
"offset": "0%"
|
|
@@ -10187,7 +10212,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10187
10212
|
"width": "169.6%",
|
|
10188
10213
|
"height": "168.4%",
|
|
10189
10214
|
"filterUnits": "objectBoundingBox",
|
|
10190
|
-
"id":
|
|
10215
|
+
"id": getId(4)
|
|
10191
10216
|
}, [createVNode("feOffset", {
|
|
10192
10217
|
"dy": "2",
|
|
10193
10218
|
"in": "SourceGraphic",
|
|
@@ -10205,7 +10230,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10205
10230
|
"width": "170%",
|
|
10206
10231
|
"height": "170%",
|
|
10207
10232
|
"filterUnits": "objectBoundingBox",
|
|
10208
|
-
"id":
|
|
10233
|
+
"id": getId(5)
|
|
10209
10234
|
}, [createVNode("feOffset", {
|
|
10210
10235
|
"dy": "2",
|
|
10211
10236
|
"in": "SourceGraphic",
|
|
@@ -10232,16 +10257,16 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10232
10257
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
10233
10258
|
}, null), createVNode("path", {
|
|
10234
10259
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
10235
|
-
"fill":
|
|
10260
|
+
"fill": getUrlById(1)
|
|
10236
10261
|
}, null), createVNode("path", {
|
|
10237
10262
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
10238
|
-
"fill":
|
|
10263
|
+
"fill": getUrlById(2)
|
|
10239
10264
|
}, null), createVNode("path", {
|
|
10240
10265
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
10241
|
-
"fill":
|
|
10266
|
+
"fill": getUrlById(3)
|
|
10242
10267
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
10243
10268
|
"class": bem2("svg-defs-path-fill"),
|
|
10244
|
-
"filter":
|
|
10269
|
+
"filter": getUrlById(4),
|
|
10245
10270
|
"xlink:href": "#hjjrs2jmp__inq21tde9e"
|
|
10246
10271
|
}, null), createVNode("use", {
|
|
10247
10272
|
"fill": "#FFF",
|
|
@@ -10250,7 +10275,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10250
10275
|
"transform": "translate(78 77)"
|
|
10251
10276
|
}, [createVNode("use", {
|
|
10252
10277
|
"class": bem2("svg-defs-path-fill"),
|
|
10253
|
-
"filter":
|
|
10278
|
+
"filter": getUrlById(5),
|
|
10254
10279
|
"xlink:href": "#hjjrs2jmp__l8g1n1l71g"
|
|
10255
10280
|
}, null), createVNode("use", {
|
|
10256
10281
|
"fill": "#FF5023",
|
|
@@ -10261,7 +10286,7 @@ const renderReportError = (bem2) => createVNode("svg", {
|
|
|
10261
10286
|
"fill-rule": "nonzero",
|
|
10262
10287
|
"transform": "translate(78 77)"
|
|
10263
10288
|
}, null)])]);
|
|
10264
|
-
const renderNoCollect = (bem2) => createVNode("svg", {
|
|
10289
|
+
const renderNoCollect = (bem2, getId, getUrlById) => createVNode("svg", {
|
|
10265
10290
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
10266
10291
|
"viewBox": "0 0 160 160",
|
|
10267
10292
|
"class": "design-iconfont"
|
|
@@ -10270,7 +10295,7 @@ const renderNoCollect = (bem2) => createVNode("svg", {
|
|
|
10270
10295
|
"y1": "100%",
|
|
10271
10296
|
"x2": "50%",
|
|
10272
10297
|
"y2": "0%",
|
|
10273
|
-
"id":
|
|
10298
|
+
"id": getId(1)
|
|
10274
10299
|
}, [createVNode("stop", {
|
|
10275
10300
|
"class": bem2("svg-defs-stop-color"),
|
|
10276
10301
|
"stop-opacity": ".1",
|
|
@@ -10284,7 +10309,7 @@ const renderNoCollect = (bem2) => createVNode("svg", {
|
|
|
10284
10309
|
"y1": "100%",
|
|
10285
10310
|
"x2": "50%",
|
|
10286
10311
|
"y2": "0%",
|
|
10287
|
-
"id":
|
|
10312
|
+
"id": getId(2)
|
|
10288
10313
|
}, [createVNode("stop", {
|
|
10289
10314
|
"class": bem2("svg-defs-stop-color"),
|
|
10290
10315
|
"stop-opacity": "0",
|
|
@@ -10298,7 +10323,7 @@ const renderNoCollect = (bem2) => createVNode("svg", {
|
|
|
10298
10323
|
"y1": "100%",
|
|
10299
10324
|
"x2": "50%",
|
|
10300
10325
|
"y2": "0%",
|
|
10301
|
-
"id":
|
|
10326
|
+
"id": getId(3)
|
|
10302
10327
|
}, [createVNode("stop", {
|
|
10303
10328
|
"class": bem2("svg-defs-stop-color"),
|
|
10304
10329
|
"offset": "0%"
|
|
@@ -10311,7 +10336,7 @@ const renderNoCollect = (bem2) => createVNode("svg", {
|
|
|
10311
10336
|
"width": "182.1%",
|
|
10312
10337
|
"height": "186.4%",
|
|
10313
10338
|
"filterUnits": "objectBoundingBox",
|
|
10314
|
-
"id":
|
|
10339
|
+
"id": getId(4)
|
|
10315
10340
|
}, [createVNode("feOffset", {
|
|
10316
10341
|
"dy": "2",
|
|
10317
10342
|
"in": "SourceGraphic",
|
|
@@ -10335,16 +10360,16 @@ const renderNoCollect = (bem2) => createVNode("svg", {
|
|
|
10335
10360
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
10336
10361
|
}, null), createVNode("path", {
|
|
10337
10362
|
"d": "M114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C84.1855747,128 80.9946648,125.330413 80.1937019,121.757672 C98.1007036,119.680283 112,104.463319 112,86 L112,80 L114,80 Z",
|
|
10338
|
-
"fill":
|
|
10363
|
+
"fill": getUrlById(1)
|
|
10339
10364
|
}, null), createVNode("path", {
|
|
10340
10365
|
"d": "M56,44 L96,44 C102.627417,44 108,49.372583 108,56 L108,86 C108,103.673112 93.673112,118 76,118 L56,118 C49.372583,118 44,112.627417 44,106 L44,56 C44,49.372583 49.372583,44 56,44 Z",
|
|
10341
|
-
"fill":
|
|
10366
|
+
"fill": getUrlById(2)
|
|
10342
10367
|
}, null), createVNode("path", {
|
|
10343
10368
|
"d": "M90,31 C92.209139,31 94,32.790861 94,35 L94,40 L96,40 C104.836556,40 112,47.163444 112,56 L112,86 C112,105.882251 95.882251,122 76,122 L56,122 C47.163444,122 40,114.836556 40,106 L40,56 C40,47.163444 47.163444,40 56,40 L58,40 L58,35 C58,32.790861 59.790861,31 62,31 C64.209139,31 66,32.790861 66,35 L66,40 L86,40 L86,35 C86,32.790861 87.790861,31 90,31 Z M96,48 L56,48 C51.581722,48 48,51.581722 48,56 L48,106 C48,110.418278 51.581722,114 56,114 L76,114 C91.463973,114 104,101.463973 104,86 L104,56 C104,51.581722 100.418278,48 96,48 Z",
|
|
10344
|
-
"fill":
|
|
10369
|
+
"fill": getUrlById(3)
|
|
10345
10370
|
}, null), createVNode("g", null, [createVNode("use", {
|
|
10346
10371
|
"class": bem2("svg-defs-path-fill"),
|
|
10347
|
-
"filter":
|
|
10372
|
+
"filter": getUrlById(4),
|
|
10348
10373
|
"xlink:href": "#4roobwtpf__8hxpuw7vce"
|
|
10349
10374
|
}, null), createVNode("use", {
|
|
10350
10375
|
"fill": "#FFF",
|
|
@@ -10370,18 +10395,21 @@ const emptyProps = {
|
|
|
10370
10395
|
imageSize: [Number, String, Array],
|
|
10371
10396
|
description: String
|
|
10372
10397
|
};
|
|
10373
|
-
var stdin_default$
|
|
10398
|
+
var stdin_default$_ = defineComponent({
|
|
10374
10399
|
name: name$G,
|
|
10375
10400
|
props: emptyProps,
|
|
10376
10401
|
setup(props, {
|
|
10377
10402
|
slots
|
|
10378
10403
|
}) {
|
|
10404
|
+
const baseId = useId();
|
|
10405
|
+
const getId = (num) => `${baseId}-${num}`;
|
|
10406
|
+
const getUrlById = (num) => `url(#${getId(num)})`;
|
|
10379
10407
|
const renderImage = () => {
|
|
10380
10408
|
var _a;
|
|
10381
10409
|
if (slots.image) {
|
|
10382
10410
|
return slots.image();
|
|
10383
10411
|
}
|
|
10384
|
-
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G)) || createVNode("img", {
|
|
10412
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem$G, getId, getUrlById)) || createVNode("img", {
|
|
10385
10413
|
"src": props.image
|
|
10386
10414
|
}, null);
|
|
10387
10415
|
};
|
|
@@ -10408,7 +10436,7 @@ var stdin_default$Z = defineComponent({
|
|
|
10408
10436
|
}, [renderImage()]), renderDescription(), renderBottom()]);
|
|
10409
10437
|
}
|
|
10410
10438
|
});
|
|
10411
|
-
const Empty = withInstall(stdin_default$
|
|
10439
|
+
const Empty = withInstall(stdin_default$_);
|
|
10412
10440
|
const floatingBubbleProps = {
|
|
10413
10441
|
gap: makeNumberProp(24),
|
|
10414
10442
|
icon: String,
|
|
@@ -10427,7 +10455,7 @@ const floatingBubbleProps = {
|
|
|
10427
10455
|
}
|
|
10428
10456
|
};
|
|
10429
10457
|
const [name$F, bem$F] = createNamespace("floating-bubble");
|
|
10430
|
-
var stdin_default$
|
|
10458
|
+
var stdin_default$Z = defineComponent({
|
|
10431
10459
|
name: name$F,
|
|
10432
10460
|
inheritAttrs: false,
|
|
10433
10461
|
props: floatingBubbleProps,
|
|
@@ -10568,7 +10596,7 @@ var stdin_default$Y = defineComponent({
|
|
|
10568
10596
|
"onTouchcancel": onTouchEnd,
|
|
10569
10597
|
"onClick": onClick,
|
|
10570
10598
|
"style": rootStyle.value
|
|
10571
|
-
}, attrs), [slots.default ? slots.default() : createVNode(stdin_default$
|
|
10599
|
+
}, attrs), [slots.default ? slots.default() : createVNode(stdin_default$1S, {
|
|
10572
10600
|
"name": props.icon,
|
|
10573
10601
|
"class": bem$F("icon")
|
|
10574
10602
|
}, null)]), [[vShow, show.value]]);
|
|
@@ -10580,7 +10608,7 @@ var stdin_default$Y = defineComponent({
|
|
|
10580
10608
|
};
|
|
10581
10609
|
}
|
|
10582
10610
|
});
|
|
10583
|
-
const FloatingBubble = withInstall(stdin_default$
|
|
10611
|
+
const FloatingBubble = withInstall(stdin_default$Z);
|
|
10584
10612
|
const [name$E, bem$E] = createNamespace("form");
|
|
10585
10613
|
const formProps = {
|
|
10586
10614
|
colon: Boolean,
|
|
@@ -10600,7 +10628,7 @@ const formProps = {
|
|
|
10600
10628
|
default: "onBlur"
|
|
10601
10629
|
}
|
|
10602
10630
|
};
|
|
10603
|
-
var stdin_default$
|
|
10631
|
+
var stdin_default$Y = defineComponent({
|
|
10604
10632
|
name: name$E,
|
|
10605
10633
|
props: formProps,
|
|
10606
10634
|
emits: ["submit", "failed"],
|
|
@@ -10731,7 +10759,7 @@ var stdin_default$X = defineComponent({
|
|
|
10731
10759
|
};
|
|
10732
10760
|
}
|
|
10733
10761
|
});
|
|
10734
|
-
const Form = withInstall(stdin_default$
|
|
10762
|
+
const Form = withInstall(stdin_default$Y);
|
|
10735
10763
|
const [name$D, bem$D] = createNamespace("grid");
|
|
10736
10764
|
const gridProps = {
|
|
10737
10765
|
square: Boolean,
|
|
@@ -10745,7 +10773,7 @@ const gridProps = {
|
|
|
10745
10773
|
columnNum: makeNumericProp(4)
|
|
10746
10774
|
};
|
|
10747
10775
|
const GRID_KEY = Symbol(name$D);
|
|
10748
|
-
var stdin_default$
|
|
10776
|
+
var stdin_default$X = defineComponent({
|
|
10749
10777
|
name: name$D,
|
|
10750
10778
|
props: gridProps,
|
|
10751
10779
|
setup(props, {
|
|
@@ -10770,8 +10798,8 @@ var stdin_default$W = defineComponent({
|
|
|
10770
10798
|
};
|
|
10771
10799
|
}
|
|
10772
10800
|
});
|
|
10773
|
-
const Grid = withInstall(stdin_default$
|
|
10774
|
-
var stdin_default$
|
|
10801
|
+
const Grid = withInstall(stdin_default$X);
|
|
10802
|
+
var stdin_default$W = Grid;
|
|
10775
10803
|
const [name$C, bem$C] = createNamespace("grid-item");
|
|
10776
10804
|
const gridItemProps = extend({}, routeProps, {
|
|
10777
10805
|
dot: Boolean,
|
|
@@ -10782,7 +10810,7 @@ const gridItemProps = extend({}, routeProps, {
|
|
|
10782
10810
|
iconPrefix: String,
|
|
10783
10811
|
badgeProps: Object
|
|
10784
10812
|
});
|
|
10785
|
-
var stdin_default$
|
|
10813
|
+
var stdin_default$V = defineComponent({
|
|
10786
10814
|
name: name$C,
|
|
10787
10815
|
props: gridItemProps,
|
|
10788
10816
|
setup(props, {
|
|
@@ -10906,8 +10934,8 @@ var stdin_default$U = defineComponent({
|
|
|
10906
10934
|
};
|
|
10907
10935
|
}
|
|
10908
10936
|
});
|
|
10909
|
-
const GridItem = withInstall(stdin_default$
|
|
10910
|
-
var stdin_default$
|
|
10937
|
+
const GridItem = withInstall(stdin_default$V);
|
|
10938
|
+
var stdin_default$U = GridItem;
|
|
10911
10939
|
const SubIcon = (bem2) => createVNode("svg", {
|
|
10912
10940
|
"class": bem2("svg-sub-icon"),
|
|
10913
10941
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
@@ -10928,7 +10956,7 @@ const BreadcrumbProps = {
|
|
|
10928
10956
|
textKey: makeStringProp("name"),
|
|
10929
10957
|
breadcrumbTitle: makeStringProp("全部")
|
|
10930
10958
|
};
|
|
10931
|
-
var stdin_default$
|
|
10959
|
+
var stdin_default$T = defineComponent({
|
|
10932
10960
|
name: name$B,
|
|
10933
10961
|
props: BreadcrumbProps,
|
|
10934
10962
|
emits: ["chooseSenior"],
|
|
@@ -10952,7 +10980,7 @@ var stdin_default$S = defineComponent({
|
|
|
10952
10980
|
}
|
|
10953
10981
|
}, [props.breadcrumbTitle]), props.data.map((item, index) => createVNode("div", {
|
|
10954
10982
|
"class": bem$B("item")
|
|
10955
|
-
}, [createVNode(stdin_default$
|
|
10983
|
+
}, [createVNode(stdin_default$1S, {
|
|
10956
10984
|
"class": bem$B("icon"),
|
|
10957
10985
|
"name": "arrow-right",
|
|
10958
10986
|
"color": "#C6CED9"
|
|
@@ -11013,7 +11041,7 @@ const hierarchySelectProps = {
|
|
|
11013
11041
|
breadcrumbTitle: makeStringProp("全部"),
|
|
11014
11042
|
autoChangeToChildren: Boolean
|
|
11015
11043
|
};
|
|
11016
|
-
var stdin_default$
|
|
11044
|
+
var stdin_default$S = defineComponent({
|
|
11017
11045
|
name: name$A,
|
|
11018
11046
|
props: hierarchySelectProps,
|
|
11019
11047
|
emits: ["asyncGetter", "selected", "change", "update:checkedList"],
|
|
@@ -11216,7 +11244,7 @@ var stdin_default$R = defineComponent({
|
|
|
11216
11244
|
round: true,
|
|
11217
11245
|
checked: getChecked(item)
|
|
11218
11246
|
})
|
|
11219
|
-
}, [createVNode(stdin_default$
|
|
11247
|
+
}, [createVNode(stdin_default$1S, {
|
|
11220
11248
|
"name": "checkbox-select"
|
|
11221
11249
|
}, null)]);
|
|
11222
11250
|
}
|
|
@@ -11226,14 +11254,14 @@ var stdin_default$R = defineComponent({
|
|
|
11226
11254
|
checked: true,
|
|
11227
11255
|
round: true
|
|
11228
11256
|
})
|
|
11229
|
-
}, [createVNode(stdin_default$
|
|
11257
|
+
}, [createVNode(stdin_default$1S, {
|
|
11230
11258
|
"name": "checkbox-select"
|
|
11231
11259
|
}, null)]) : createVNode("span", {
|
|
11232
11260
|
"class": bem$A("icon", {
|
|
11233
11261
|
round: true,
|
|
11234
11262
|
indeterminate
|
|
11235
11263
|
})
|
|
11236
|
-
}, [createVNode(stdin_default$
|
|
11264
|
+
}, [createVNode(stdin_default$1S, {
|
|
11237
11265
|
"name": indeterminate ? "minus" : "check-blank-r",
|
|
11238
11266
|
"class": bem$A("uncheck-icon")
|
|
11239
11267
|
}, null)]);
|
|
@@ -11282,7 +11310,7 @@ var stdin_default$R = defineComponent({
|
|
|
11282
11310
|
});
|
|
11283
11311
|
return () => createVNode("div", {
|
|
11284
11312
|
"class": bem$A()
|
|
11285
|
-
}, [createVNode(stdin_default$
|
|
11313
|
+
}, [createVNode(stdin_default$T, {
|
|
11286
11314
|
"data": breadcrumbData.value,
|
|
11287
11315
|
"valueKey": props.valueKey,
|
|
11288
11316
|
"textKey": props.textKey,
|
|
@@ -11314,10 +11342,10 @@ var stdin_default$R = defineComponent({
|
|
|
11314
11342
|
}, [SubIcon(bem$A)]), createVNode("span", null, [createTextVNode("下级")])])])]))]);
|
|
11315
11343
|
}
|
|
11316
11344
|
});
|
|
11317
|
-
const HierarchySelect = withInstall(stdin_default$
|
|
11345
|
+
const HierarchySelect = withInstall(stdin_default$S);
|
|
11318
11346
|
const getDistance = (touches) => Math.sqrt((touches[0].clientX - touches[1].clientX) ** 2 + (touches[0].clientY - touches[1].clientY) ** 2);
|
|
11319
11347
|
const bem$z = createNamespace("image-preview")[1];
|
|
11320
|
-
var stdin_default$
|
|
11348
|
+
var stdin_default$R = defineComponent({
|
|
11321
11349
|
props: {
|
|
11322
11350
|
src: String,
|
|
11323
11351
|
show: Boolean,
|
|
@@ -11602,7 +11630,7 @@ const imagePreviewProps = {
|
|
|
11602
11630
|
closeIconPosition: makeStringProp("top-right"),
|
|
11603
11631
|
teleport: [String, Object]
|
|
11604
11632
|
};
|
|
11605
|
-
var stdin_default$
|
|
11633
|
+
var stdin_default$Q = defineComponent({
|
|
11606
11634
|
name: name$z,
|
|
11607
11635
|
props: imagePreviewProps,
|
|
11608
11636
|
emits: ["scale", "close", "closed", "change", "longPress", "update:show"],
|
|
@@ -11690,7 +11718,7 @@ var stdin_default$P = defineComponent({
|
|
|
11690
11718
|
"onDragEnd": onDragEnd,
|
|
11691
11719
|
"onDragStart": onDragStart
|
|
11692
11720
|
}, {
|
|
11693
|
-
default: () => [props.images.map((image, index) => createVNode(stdin_default$
|
|
11721
|
+
default: () => [props.images.map((image, index) => createVNode(stdin_default$R, {
|
|
11694
11722
|
"src": image.url,
|
|
11695
11723
|
"show": props.show,
|
|
11696
11724
|
"active": state.active,
|
|
@@ -11797,7 +11825,7 @@ function initInstance$1() {
|
|
|
11797
11825
|
const onClosed = () => {
|
|
11798
11826
|
state.images = [];
|
|
11799
11827
|
};
|
|
11800
|
-
return () => createVNode(stdin_default$
|
|
11828
|
+
return () => createVNode(stdin_default$Q, mergeProps(state, {
|
|
11801
11829
|
"onClosed": onClosed,
|
|
11802
11830
|
"onUpdate:show": toggle
|
|
11803
11831
|
}), null);
|
|
@@ -11830,7 +11858,7 @@ const showImagePreview = (options, startPosition = 0) => {
|
|
|
11830
11858
|
instance$1.open(extend({}, defaultConfig, options));
|
|
11831
11859
|
return instance$1;
|
|
11832
11860
|
};
|
|
11833
|
-
const ImagePreview = withInstall(stdin_default$
|
|
11861
|
+
const ImagePreview = withInstall(stdin_default$Q);
|
|
11834
11862
|
function genAlphabet() {
|
|
11835
11863
|
const charCodeOfA = "A".charCodeAt(0);
|
|
11836
11864
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
|
@@ -11853,7 +11881,7 @@ const indexBarProps = {
|
|
|
11853
11881
|
};
|
|
11854
11882
|
const INDEX_BAR_KEY = Symbol(name$y);
|
|
11855
11883
|
const MIN_CONTRACTION_NUM = 2;
|
|
11856
|
-
var stdin_default$
|
|
11884
|
+
var stdin_default$P = defineComponent({
|
|
11857
11885
|
name: name$y,
|
|
11858
11886
|
props: indexBarProps,
|
|
11859
11887
|
emits: ["select", "change", "anchorClick", "update:activeAnchor"],
|
|
@@ -12241,7 +12269,7 @@ const [name$x, bem$w] = createNamespace("index-anchor");
|
|
|
12241
12269
|
const indexAnchorProps = {
|
|
12242
12270
|
index: numericProp
|
|
12243
12271
|
};
|
|
12244
|
-
var stdin_default$
|
|
12272
|
+
var stdin_default$O = defineComponent({
|
|
12245
12273
|
name: name$x,
|
|
12246
12274
|
props: indexAnchorProps,
|
|
12247
12275
|
setup(props, {
|
|
@@ -12314,8 +12342,8 @@ var stdin_default$N = defineComponent({
|
|
|
12314
12342
|
};
|
|
12315
12343
|
}
|
|
12316
12344
|
});
|
|
12317
|
-
const IndexAnchor = withInstall(stdin_default$
|
|
12318
|
-
const IndexBar = withInstall(stdin_default$
|
|
12345
|
+
const IndexAnchor = withInstall(stdin_default$O);
|
|
12346
|
+
const IndexBar = withInstall(stdin_default$P);
|
|
12319
12347
|
const [name$w, bem$v, t$3] = createNamespace("list");
|
|
12320
12348
|
const listProps = {
|
|
12321
12349
|
error: Boolean,
|
|
@@ -12329,7 +12357,7 @@ const listProps = {
|
|
|
12329
12357
|
finishedText: String,
|
|
12330
12358
|
immediateCheck: truthProp
|
|
12331
12359
|
};
|
|
12332
|
-
var stdin_default$
|
|
12360
|
+
var stdin_default$N = defineComponent({
|
|
12333
12361
|
name: name$w,
|
|
12334
12362
|
props: listProps,
|
|
12335
12363
|
emits: ["load", "update:error", "update:loading"],
|
|
@@ -12453,8 +12481,8 @@ var stdin_default$M = defineComponent({
|
|
|
12453
12481
|
};
|
|
12454
12482
|
}
|
|
12455
12483
|
});
|
|
12456
|
-
const List = withInstall(stdin_default$
|
|
12457
|
-
var stdin_default$
|
|
12484
|
+
const List = withInstall(stdin_default$N);
|
|
12485
|
+
var stdin_default$M = defineComponent({
|
|
12458
12486
|
name: "DeleteIcon",
|
|
12459
12487
|
setup() {
|
|
12460
12488
|
return () => createVNode("svg", {
|
|
@@ -12485,7 +12513,7 @@ const mediaPlayerProps = {
|
|
|
12485
12513
|
mediaUrl: makeStringProp("")
|
|
12486
12514
|
};
|
|
12487
12515
|
const [name$v, bem$u] = createNamespace("media-player");
|
|
12488
|
-
var stdin_default$
|
|
12516
|
+
var stdin_default$L = defineComponent({
|
|
12489
12517
|
name: name$v,
|
|
12490
12518
|
props: mediaPlayerProps,
|
|
12491
12519
|
emits: ["update:show"],
|
|
@@ -12557,7 +12585,7 @@ var stdin_default$K = defineComponent({
|
|
|
12557
12585
|
}
|
|
12558
12586
|
}
|
|
12559
12587
|
};
|
|
12560
|
-
return () => createVNode(stdin_default$
|
|
12588
|
+
return () => createVNode(stdin_default$1P, {
|
|
12561
12589
|
"class": bem$u(),
|
|
12562
12590
|
"show": props.show,
|
|
12563
12591
|
"position": "bottom",
|
|
@@ -12577,9 +12605,9 @@ var stdin_default$K = defineComponent({
|
|
|
12577
12605
|
});
|
|
12578
12606
|
}
|
|
12579
12607
|
});
|
|
12580
|
-
const MediaPlayer = withInstall(stdin_default$
|
|
12581
|
-
var stdin_default$
|
|
12582
|
-
var stdin_default$
|
|
12608
|
+
const MediaPlayer = withInstall(stdin_default$L);
|
|
12609
|
+
var stdin_default$K = MediaPlayer;
|
|
12610
|
+
var stdin_default$J = defineComponent({
|
|
12583
12611
|
name: "DefaultVideoIcon",
|
|
12584
12612
|
setup() {
|
|
12585
12613
|
return () => createVNode("svg", {
|
|
@@ -12693,7 +12721,7 @@ var stdin_default$I = defineComponent({
|
|
|
12693
12721
|
}, null)])]);
|
|
12694
12722
|
}
|
|
12695
12723
|
});
|
|
12696
|
-
var stdin_default$
|
|
12724
|
+
var stdin_default$I = defineComponent({
|
|
12697
12725
|
name: "DefaultAudioIcon",
|
|
12698
12726
|
setup() {
|
|
12699
12727
|
return () => createVNode("svg", {
|
|
@@ -12786,7 +12814,7 @@ var stdin_default$H = defineComponent({
|
|
|
12786
12814
|
}, null)])])]);
|
|
12787
12815
|
}
|
|
12788
12816
|
});
|
|
12789
|
-
var stdin_default$
|
|
12817
|
+
var stdin_default$H = defineComponent({
|
|
12790
12818
|
name: "DefaultFileIcon",
|
|
12791
12819
|
setup() {
|
|
12792
12820
|
return () => createVNode("svg", {
|
|
@@ -12868,7 +12896,7 @@ var stdin_default$G = defineComponent({
|
|
|
12868
12896
|
}, null)])])]);
|
|
12869
12897
|
}
|
|
12870
12898
|
});
|
|
12871
|
-
var stdin_default$
|
|
12899
|
+
var stdin_default$G = defineComponent({
|
|
12872
12900
|
name: "TakePhotoIcon",
|
|
12873
12901
|
setup() {
|
|
12874
12902
|
return () => createVNode("svg", {
|
|
@@ -12890,7 +12918,7 @@ var stdin_default$F = defineComponent({
|
|
|
12890
12918
|
}, null)])])]);
|
|
12891
12919
|
}
|
|
12892
12920
|
});
|
|
12893
|
-
var stdin_default$
|
|
12921
|
+
var stdin_default$F = defineComponent({
|
|
12894
12922
|
name: "PickPhotoIcon",
|
|
12895
12923
|
setup() {
|
|
12896
12924
|
return () => createVNode("svg", {
|
|
@@ -12912,7 +12940,7 @@ var stdin_default$E = defineComponent({
|
|
|
12912
12940
|
}, null)])])]);
|
|
12913
12941
|
}
|
|
12914
12942
|
});
|
|
12915
|
-
var stdin_default$
|
|
12943
|
+
var stdin_default$E = defineComponent({
|
|
12916
12944
|
name: "TakeVideoIcon",
|
|
12917
12945
|
setup() {
|
|
12918
12946
|
return () => createVNode("svg", {
|
|
@@ -12934,7 +12962,7 @@ var stdin_default$D = defineComponent({
|
|
|
12934
12962
|
}, null)])])]);
|
|
12935
12963
|
}
|
|
12936
12964
|
});
|
|
12937
|
-
var stdin_default$
|
|
12965
|
+
var stdin_default$D = defineComponent({
|
|
12938
12966
|
name: "TakeAudioIcon",
|
|
12939
12967
|
setup() {
|
|
12940
12968
|
return () => createVNode("svg", {
|
|
@@ -12956,7 +12984,7 @@ var stdin_default$C = defineComponent({
|
|
|
12956
12984
|
}, null)])])]);
|
|
12957
12985
|
}
|
|
12958
12986
|
});
|
|
12959
|
-
var stdin_default$
|
|
12987
|
+
var stdin_default$C = defineComponent({
|
|
12960
12988
|
name: "PickFileIcon",
|
|
12961
12989
|
setup() {
|
|
12962
12990
|
return () => createVNode("svg", {
|
|
@@ -13994,6 +14022,68 @@ class ImageProcessor {
|
|
|
13994
14022
|
);
|
|
13995
14023
|
}
|
|
13996
14024
|
}
|
|
14025
|
+
const chooseImage = (type) => {
|
|
14026
|
+
return new Promise((resolve, reject) => {
|
|
14027
|
+
window.wx.chooseImage({
|
|
14028
|
+
count: 1,
|
|
14029
|
+
sizeType: ["original", "compressed"],
|
|
14030
|
+
// 可以指定是原图还是压缩图,默认二者都有
|
|
14031
|
+
sourceType: [type],
|
|
14032
|
+
// 可以指定来源是相册还是相机,默认二者都有
|
|
14033
|
+
success: function({ localIds }) {
|
|
14034
|
+
resolve(localIds);
|
|
14035
|
+
},
|
|
14036
|
+
fail: function(res) {
|
|
14037
|
+
reject(res);
|
|
14038
|
+
}
|
|
14039
|
+
});
|
|
14040
|
+
});
|
|
14041
|
+
};
|
|
14042
|
+
const uploadImage = (localId) => {
|
|
14043
|
+
return new Promise((resolve, reject) => {
|
|
14044
|
+
window.wx.uploadImage({
|
|
14045
|
+
localId,
|
|
14046
|
+
// 需要上传的图片的本地ID,由chooseImage接口获得
|
|
14047
|
+
isShowProgressTips: 1,
|
|
14048
|
+
// 默认为1,显示进度提示
|
|
14049
|
+
success: function({ serverId }) {
|
|
14050
|
+
resolve(serverId);
|
|
14051
|
+
},
|
|
14052
|
+
fail: function(res) {
|
|
14053
|
+
reject(res);
|
|
14054
|
+
}
|
|
14055
|
+
});
|
|
14056
|
+
});
|
|
14057
|
+
};
|
|
14058
|
+
const wxUploadImage = (type) => {
|
|
14059
|
+
return new Promise((resolve) => {
|
|
14060
|
+
const newMedias = [];
|
|
14061
|
+
chooseImage(type).then((localIds) => {
|
|
14062
|
+
const time = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
14063
|
+
const media = {
|
|
14064
|
+
type: "photo",
|
|
14065
|
+
uniqueCode: time,
|
|
14066
|
+
fileSize: 0,
|
|
14067
|
+
fileName: time,
|
|
14068
|
+
originalName: time,
|
|
14069
|
+
originalSize: 0,
|
|
14070
|
+
lastModified: 0,
|
|
14071
|
+
deletable: true
|
|
14072
|
+
};
|
|
14073
|
+
localIds.forEach((localId) => {
|
|
14074
|
+
media.showSrc = localId;
|
|
14075
|
+
media.url = localId;
|
|
14076
|
+
uploadImage(localId).then((serverId) => {
|
|
14077
|
+
media.wxServerId = serverId;
|
|
14078
|
+
newMedias.push(media);
|
|
14079
|
+
if (newMedias.length === localIds.length) {
|
|
14080
|
+
resolve(newMedias);
|
|
14081
|
+
}
|
|
14082
|
+
});
|
|
14083
|
+
});
|
|
14084
|
+
});
|
|
14085
|
+
});
|
|
14086
|
+
};
|
|
13997
14087
|
const [name$u, bem$t] = createNamespace("media-picker");
|
|
13998
14088
|
const FILE_SIZE_LIMIT = 100;
|
|
13999
14089
|
const mediaPickerProps = {
|
|
@@ -14043,9 +14133,11 @@ const mediaPickerProps = {
|
|
|
14043
14133
|
// 文件读取完成后的回调函数,获取到对应的 media 对象
|
|
14044
14134
|
afterRead: Function,
|
|
14045
14135
|
// 文件删除前的回调函数,返回 false 可终止文件读取,支持返回 Promise
|
|
14046
|
-
beforeDelete: Function
|
|
14136
|
+
beforeDelete: Function,
|
|
14137
|
+
// 是否强制使用微信
|
|
14138
|
+
useWx: Boolean
|
|
14047
14139
|
};
|
|
14048
|
-
var stdin_default$
|
|
14140
|
+
var stdin_default$B = defineComponent({
|
|
14049
14141
|
name: name$u,
|
|
14050
14142
|
props: mediaPickerProps,
|
|
14051
14143
|
emits: ["update:mediaList", "delete"],
|
|
@@ -14099,10 +14191,17 @@ var stdin_default$A = defineComponent({
|
|
|
14099
14191
|
return;
|
|
14100
14192
|
}
|
|
14101
14193
|
if (mediaType === "photo") {
|
|
14102
|
-
if (
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14194
|
+
if (props.useWx && isWeixin() && window.wx) {
|
|
14195
|
+
const type = mediaAddType === "take" ? "camera" : "album";
|
|
14196
|
+
wxUploadImage(type).then((newMedias) => {
|
|
14197
|
+
emit("update:mediaList", [...props.mediaList, ...newMedias]);
|
|
14198
|
+
});
|
|
14199
|
+
} else {
|
|
14200
|
+
if (mediaAddType === "take") {
|
|
14201
|
+
triggerHiddenInput(cameraInputRef.value);
|
|
14202
|
+
} else if (mediaAddType === "pick") {
|
|
14203
|
+
triggerHiddenInput(imageInputRef.value);
|
|
14204
|
+
}
|
|
14106
14205
|
}
|
|
14107
14206
|
} else if (mediaType === "video") {
|
|
14108
14207
|
if (mediaAddType === "take") {
|
|
@@ -14434,24 +14533,24 @@ var stdin_default$A = defineComponent({
|
|
|
14434
14533
|
const renderIcon = (mediaType, mediaAddType) => {
|
|
14435
14534
|
if (mediaType === "photo") {
|
|
14436
14535
|
if (mediaAddType === "take") {
|
|
14437
|
-
return createVNode(stdin_default$
|
|
14536
|
+
return createVNode(stdin_default$G, {
|
|
14438
14537
|
"class": bem$t("icon")
|
|
14439
14538
|
}, null);
|
|
14440
14539
|
} else if (mediaAddType === "pick") {
|
|
14441
|
-
return createVNode(stdin_default$
|
|
14540
|
+
return createVNode(stdin_default$F, {
|
|
14442
14541
|
"class": bem$t("icon")
|
|
14443
14542
|
}, null);
|
|
14444
14543
|
}
|
|
14445
14544
|
} else if (mediaType === "video") {
|
|
14446
|
-
return createVNode(stdin_default$
|
|
14545
|
+
return createVNode(stdin_default$E, {
|
|
14447
14546
|
"class": bem$t("icon")
|
|
14448
14547
|
}, null);
|
|
14449
14548
|
} else if (mediaType === "audio") {
|
|
14450
|
-
return createVNode(stdin_default$
|
|
14549
|
+
return createVNode(stdin_default$D, {
|
|
14451
14550
|
"class": bem$t("icon")
|
|
14452
14551
|
}, null);
|
|
14453
14552
|
} else if (mediaType === "file") {
|
|
14454
|
-
return createVNode(stdin_default$
|
|
14553
|
+
return createVNode(stdin_default$C, {
|
|
14455
14554
|
"class": bem$t("icon")
|
|
14456
14555
|
}, null);
|
|
14457
14556
|
}
|
|
@@ -14517,10 +14616,10 @@ var stdin_default$A = defineComponent({
|
|
|
14517
14616
|
message
|
|
14518
14617
|
} = media;
|
|
14519
14618
|
if (status === "uploading" || status === "failed") {
|
|
14520
|
-
const MaskIcon = status === "failed" ? createVNode(stdin_default$
|
|
14619
|
+
const MaskIcon = status === "failed" ? createVNode(stdin_default$1S, {
|
|
14521
14620
|
"name": "close",
|
|
14522
14621
|
"class": bem$t("mask-icon")
|
|
14523
|
-
}, null) : createVNode(stdin_default$
|
|
14622
|
+
}, null) : createVNode(stdin_default$1N, {
|
|
14524
14623
|
"class": bem$t("loading")
|
|
14525
14624
|
}, null);
|
|
14526
14625
|
const showMessage = isDef(message) && message !== "";
|
|
@@ -14538,23 +14637,27 @@ var stdin_default$A = defineComponent({
|
|
|
14538
14637
|
emit("delete", media, index);
|
|
14539
14638
|
};
|
|
14540
14639
|
const renderMediaThumbnail = (media) => {
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
-
|
|
14544
|
-
"src": thumbnailUrl,
|
|
14545
|
-
"fit": "cover",
|
|
14546
|
-
"radius": "4"
|
|
14640
|
+
if (media.type === "video") {
|
|
14641
|
+
return createVNode(stdin_default$J, {
|
|
14642
|
+
"class": bem$t("thumbnail")
|
|
14547
14643
|
}, null);
|
|
14548
|
-
} else if (media.type === "
|
|
14644
|
+
} else if (media.type === "audio") {
|
|
14549
14645
|
return createVNode(stdin_default$I, {
|
|
14550
14646
|
"class": bem$t("thumbnail")
|
|
14551
14647
|
}, null);
|
|
14552
|
-
} else if (media.type === "
|
|
14648
|
+
} else if (media.type === "file") {
|
|
14553
14649
|
return createVNode(stdin_default$H, {
|
|
14554
14650
|
"class": bem$t("thumbnail")
|
|
14555
14651
|
}, null);
|
|
14556
|
-
} else if (media.type === "
|
|
14557
|
-
|
|
14652
|
+
} else if (media.type === "photo") {
|
|
14653
|
+
const thumbnailUrl = media.showSrc || media.url;
|
|
14654
|
+
return createVNode(stdin_default$1J, {
|
|
14655
|
+
"src": thumbnailUrl,
|
|
14656
|
+
"fit": "cover",
|
|
14657
|
+
"radius": "4"
|
|
14658
|
+
}, null);
|
|
14659
|
+
} else {
|
|
14660
|
+
return createVNode(stdin_default$H, {
|
|
14558
14661
|
"class": bem$t("thumbnail")
|
|
14559
14662
|
}, null);
|
|
14560
14663
|
}
|
|
@@ -14613,14 +14716,14 @@ var stdin_default$A = defineComponent({
|
|
|
14613
14716
|
};
|
|
14614
14717
|
const renderMediaList = () => props.mediaList.map((media, index) => {
|
|
14615
14718
|
const showDelete = media.deletable && media.status !== "uploading";
|
|
14616
|
-
const deleteIcon = showDelete && createVNode(stdin_default$
|
|
14719
|
+
const deleteIcon = showDelete && createVNode(stdin_default$M, {
|
|
14617
14720
|
"class": bem$t("delete"),
|
|
14618
14721
|
"onClick": (event) => {
|
|
14619
14722
|
event.stopPropagation();
|
|
14620
14723
|
onDelete(media, index);
|
|
14621
14724
|
}
|
|
14622
14725
|
}, null);
|
|
14623
|
-
return createVNode(stdin_default$
|
|
14726
|
+
return createVNode(stdin_default$U, {
|
|
14624
14727
|
"key": media.uniqueCode,
|
|
14625
14728
|
"onClick": () => previewMedia(index)
|
|
14626
14729
|
}, {
|
|
@@ -14638,12 +14741,12 @@ var stdin_default$A = defineComponent({
|
|
|
14638
14741
|
const showButtons = props.allowTakePhoto || props.allowPickPhoto || props.allowTakeVideo || props.allowPickVideo || props.allowTakeAudio || props.allowPickAudio || props.allowPickFile;
|
|
14639
14742
|
return createVNode("div", {
|
|
14640
14743
|
"class": bem$t()
|
|
14641
|
-
}, [title, hiddenInput(), createVNode(stdin_default$
|
|
14744
|
+
}, [title, hiddenInput(), createVNode(stdin_default$K, {
|
|
14642
14745
|
"show": mediaPlayerVisible.value,
|
|
14643
14746
|
"onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
|
|
14644
14747
|
"mediaType": mediaTypeToPlay.value,
|
|
14645
14748
|
"mediaUrl": mediaUrlToPlay.value
|
|
14646
|
-
}, null), createVNode(stdin_default$
|
|
14749
|
+
}, null), createVNode(stdin_default$1L, {
|
|
14647
14750
|
"show": actionVisible.value,
|
|
14648
14751
|
"onUpdate:show": ($event) => actionVisible.value = $event,
|
|
14649
14752
|
"actions": actionOptions.value,
|
|
@@ -14653,7 +14756,7 @@ var stdin_default$A = defineComponent({
|
|
|
14653
14756
|
"onSelect": selectAction
|
|
14654
14757
|
}, null), withDirectives(createVNode("div", {
|
|
14655
14758
|
"class": bem$t("line")
|
|
14656
|
-
}, [renderButtons()]), [[vShow, showButtons]]), withDirectives(createVNode(stdin_default$
|
|
14759
|
+
}, [renderButtons()]), [[vShow, showButtons]]), withDirectives(createVNode(stdin_default$W, {
|
|
14657
14760
|
"column-num": "3",
|
|
14658
14761
|
"border": false,
|
|
14659
14762
|
"square": true,
|
|
@@ -14674,7 +14777,7 @@ const defaultMedia = {
|
|
|
14674
14777
|
lastModified: 0,
|
|
14675
14778
|
deletable: false
|
|
14676
14779
|
};
|
|
14677
|
-
const MediaPicker = withInstall(stdin_default$
|
|
14780
|
+
const MediaPicker = withInstall(stdin_default$B);
|
|
14678
14781
|
const [name$t, bem$s] = createNamespace("multiple-picker-options");
|
|
14679
14782
|
const multiplePickerOptionsProps = {
|
|
14680
14783
|
textKey: makeStringProp(""),
|
|
@@ -14685,7 +14788,7 @@ const multiplePickerOptionsProps = {
|
|
|
14685
14788
|
initialOptions: makeArrayProp([]),
|
|
14686
14789
|
currentIndexes: makeArrayProp([])
|
|
14687
14790
|
};
|
|
14688
|
-
var stdin_default$
|
|
14791
|
+
var stdin_default$A = defineComponent({
|
|
14689
14792
|
name: name$t,
|
|
14690
14793
|
props: multiplePickerOptionsProps,
|
|
14691
14794
|
emits: ["change", "update:currentIndexes"],
|
|
@@ -14798,7 +14901,7 @@ const multiplePickerProps = {
|
|
|
14798
14901
|
selectedValue: makeArrayProp([]),
|
|
14799
14902
|
popup: truthProp
|
|
14800
14903
|
};
|
|
14801
|
-
var stdin_default$
|
|
14904
|
+
var stdin_default$z = defineComponent({
|
|
14802
14905
|
name: name$s,
|
|
14803
14906
|
props: multiplePickerProps,
|
|
14804
14907
|
emits: ["cancel", "confirm", "change", "update:showPicker", "update:selectedIndex", "update:selectedValue"],
|
|
@@ -14877,7 +14980,7 @@ var stdin_default$y = defineComponent({
|
|
|
14877
14980
|
};
|
|
14878
14981
|
const genCancel = () => {
|
|
14879
14982
|
const text = props.cancelButtonText || "取消";
|
|
14880
|
-
return createVNode(stdin_default$
|
|
14983
|
+
return createVNode(stdin_default$1G, {
|
|
14881
14984
|
"size": "normal",
|
|
14882
14985
|
"block": true,
|
|
14883
14986
|
"style": {
|
|
@@ -14890,7 +14993,7 @@ var stdin_default$y = defineComponent({
|
|
|
14890
14993
|
};
|
|
14891
14994
|
const genConfirm = () => {
|
|
14892
14995
|
const text = props.confirmButtonText || "确定";
|
|
14893
|
-
return createVNode(stdin_default$
|
|
14996
|
+
return createVNode(stdin_default$1G, {
|
|
14894
14997
|
"type": "primary",
|
|
14895
14998
|
"size": "normal",
|
|
14896
14999
|
"block": true,
|
|
@@ -14919,7 +15022,7 @@ var stdin_default$y = defineComponent({
|
|
|
14919
15022
|
} else {
|
|
14920
15023
|
formatOptions = props.options;
|
|
14921
15024
|
}
|
|
14922
|
-
return createVNode(stdin_default$
|
|
15025
|
+
return createVNode(stdin_default$A, {
|
|
14923
15026
|
"ref": pickerOptions,
|
|
14924
15027
|
"currentIndexes": confirmIndexes.value,
|
|
14925
15028
|
"onUpdate:currentIndexes": ($event) => confirmIndexes.value = $event,
|
|
@@ -14939,12 +15042,12 @@ var stdin_default$y = defineComponent({
|
|
|
14939
15042
|
}, [genOptionItems()]);
|
|
14940
15043
|
const renderMultiplePicker = () => createVNode("div", {
|
|
14941
15044
|
"class": bem$r()
|
|
14942
|
-
}, [genTitle(), props.loading ? createVNode(stdin_default$
|
|
15045
|
+
}, [genTitle(), props.loading ? createVNode(stdin_default$1N, {
|
|
14943
15046
|
"class": bem$r("loading")
|
|
14944
15047
|
}, null) : "", genOptions2(), props.toolbarPosition === "bottom" ? genToolbar() : ""]);
|
|
14945
15048
|
return () => {
|
|
14946
15049
|
if (props.popup) {
|
|
14947
|
-
return createVNode(stdin_default$
|
|
15050
|
+
return createVNode(stdin_default$1P, {
|
|
14948
15051
|
"show": currentShow.value,
|
|
14949
15052
|
"onUpdate:show": [($event) => currentShow.value = $event, updateShow],
|
|
14950
15053
|
"round": true,
|
|
@@ -14960,7 +15063,7 @@ var stdin_default$y = defineComponent({
|
|
|
14960
15063
|
};
|
|
14961
15064
|
}
|
|
14962
15065
|
});
|
|
14963
|
-
const MultiplePicker = withInstall(stdin_default$
|
|
15066
|
+
const MultiplePicker = withInstall(stdin_default$z);
|
|
14964
15067
|
function usePlaceholder(contentRef, bem2) {
|
|
14965
15068
|
const height = useHeight(contentRef, true);
|
|
14966
15069
|
return (renderContent) => createVNode("div", {
|
|
@@ -14987,7 +15090,7 @@ const navBarProps = {
|
|
|
14987
15090
|
navBarBackground: String,
|
|
14988
15091
|
leftBtnStyle: Object
|
|
14989
15092
|
};
|
|
14990
|
-
var stdin_default$
|
|
15093
|
+
var stdin_default$y = defineComponent({
|
|
14991
15094
|
name: name$r,
|
|
14992
15095
|
props: navBarProps,
|
|
14993
15096
|
emits: ["clickLeft", "clickRight"],
|
|
@@ -15076,7 +15179,7 @@ var stdin_default$x = defineComponent({
|
|
|
15076
15179
|
};
|
|
15077
15180
|
}
|
|
15078
15181
|
});
|
|
15079
|
-
const NavBar = withInstall(stdin_default$
|
|
15182
|
+
const NavBar = withInstall(stdin_default$y);
|
|
15080
15183
|
const [name$q, bem$p] = createNamespace("notice-bar");
|
|
15081
15184
|
const noticeBarProps = {
|
|
15082
15185
|
text: String,
|
|
@@ -15092,7 +15195,7 @@ const noticeBarProps = {
|
|
|
15092
15195
|
default: null
|
|
15093
15196
|
}
|
|
15094
15197
|
};
|
|
15095
|
-
var stdin_default$
|
|
15198
|
+
var stdin_default$x = defineComponent({
|
|
15096
15199
|
name: name$q,
|
|
15097
15200
|
props: noticeBarProps,
|
|
15098
15201
|
emits: ["close", "replay"],
|
|
@@ -15115,7 +15218,7 @@ var stdin_default$w = defineComponent({
|
|
|
15115
15218
|
return slots["left-icon"]();
|
|
15116
15219
|
}
|
|
15117
15220
|
if (props.leftIcon) {
|
|
15118
|
-
return createVNode(stdin_default$
|
|
15221
|
+
return createVNode(stdin_default$1S, {
|
|
15119
15222
|
"class": bem$p("left-icon"),
|
|
15120
15223
|
"name": props.leftIcon
|
|
15121
15224
|
}, null);
|
|
@@ -15141,7 +15244,7 @@ var stdin_default$w = defineComponent({
|
|
|
15141
15244
|
}
|
|
15142
15245
|
const name2 = getRightIconName();
|
|
15143
15246
|
if (name2) {
|
|
15144
|
-
return createVNode(stdin_default$
|
|
15247
|
+
return createVNode(stdin_default$1S, {
|
|
15145
15248
|
"name": name2,
|
|
15146
15249
|
"class": bem$p("right-icon"),
|
|
15147
15250
|
"onClick": onClickRightIcon
|
|
@@ -15232,7 +15335,7 @@ var stdin_default$w = defineComponent({
|
|
|
15232
15335
|
};
|
|
15233
15336
|
}
|
|
15234
15337
|
});
|
|
15235
|
-
const NoticeBar = withInstall(stdin_default$
|
|
15338
|
+
const NoticeBar = withInstall(stdin_default$x);
|
|
15236
15339
|
const [name$p, bem$o] = createNamespace("notify");
|
|
15237
15340
|
const notifyProps = extend({}, popupSharedProps, {
|
|
15238
15341
|
type: makeStringProp("danger"),
|
|
@@ -15243,7 +15346,7 @@ const notifyProps = extend({}, popupSharedProps, {
|
|
|
15243
15346
|
background: String,
|
|
15244
15347
|
lockScroll: Boolean
|
|
15245
15348
|
});
|
|
15246
|
-
var stdin_default$
|
|
15349
|
+
var stdin_default$w = defineComponent({
|
|
15247
15350
|
name: name$p,
|
|
15248
15351
|
props: notifyProps,
|
|
15249
15352
|
emits: ["update:show"],
|
|
@@ -15283,7 +15386,7 @@ function initInstance() {
|
|
|
15283
15386
|
state,
|
|
15284
15387
|
toggle
|
|
15285
15388
|
} = usePopupState();
|
|
15286
|
-
return () => createVNode(stdin_default$
|
|
15389
|
+
return () => createVNode(stdin_default$w, mergeProps(state, {
|
|
15287
15390
|
"onUpdate:show": toggle
|
|
15288
15391
|
}), null);
|
|
15289
15392
|
}
|
|
@@ -15327,17 +15430,17 @@ const setNotifyDefaultOptions = (options) => extend(currentOptions, options);
|
|
|
15327
15430
|
const resetNotifyDefaultOptions = () => {
|
|
15328
15431
|
currentOptions = getDefaultOptions();
|
|
15329
15432
|
};
|
|
15330
|
-
const Notify = withInstall(stdin_default$
|
|
15433
|
+
const Notify = withInstall(stdin_default$w);
|
|
15331
15434
|
const [name$o, bem$n] = createNamespace("key");
|
|
15332
|
-
const CollapseIcon = createVNode(stdin_default$
|
|
15435
|
+
const CollapseIcon = createVNode(stdin_default$1S, {
|
|
15333
15436
|
"name": "keyboard-shrink",
|
|
15334
15437
|
"size": "40"
|
|
15335
15438
|
}, null);
|
|
15336
|
-
const DeleteIcon = createVNode(stdin_default$
|
|
15439
|
+
const DeleteIcon = createVNode(stdin_default$1S, {
|
|
15337
15440
|
"name": "backspace",
|
|
15338
15441
|
"size": "40"
|
|
15339
15442
|
}, null);
|
|
15340
|
-
var stdin_default$
|
|
15443
|
+
var stdin_default$v = defineComponent({
|
|
15341
15444
|
name: name$o,
|
|
15342
15445
|
props: {
|
|
15343
15446
|
type: String,
|
|
@@ -15440,7 +15543,7 @@ function shuffle(array) {
|
|
|
15440
15543
|
}
|
|
15441
15544
|
return array;
|
|
15442
15545
|
}
|
|
15443
|
-
var stdin_default$
|
|
15546
|
+
var stdin_default$u = defineComponent({
|
|
15444
15547
|
name: name$n,
|
|
15445
15548
|
props: numberKeyboardProps,
|
|
15446
15549
|
emits: ["show", "hide", "blur", "input", "close", "delete", "update:modelValue"],
|
|
@@ -15552,7 +15655,7 @@ var stdin_default$t = defineComponent({
|
|
|
15552
15655
|
if (key.type === "extra") {
|
|
15553
15656
|
keySlots.default = slots["extra-key"];
|
|
15554
15657
|
}
|
|
15555
|
-
return createVNode(stdin_default$
|
|
15658
|
+
return createVNode(stdin_default$v, {
|
|
15556
15659
|
"key": key.text,
|
|
15557
15660
|
"text": key.text,
|
|
15558
15661
|
"type": key.type,
|
|
@@ -15565,14 +15668,14 @@ var stdin_default$t = defineComponent({
|
|
|
15565
15668
|
if (props.theme === "custom") {
|
|
15566
15669
|
return createVNode("div", {
|
|
15567
15670
|
"class": bem$m("sidebar")
|
|
15568
|
-
}, [props.showDeleteKey && createVNode(stdin_default$
|
|
15671
|
+
}, [props.showDeleteKey && createVNode(stdin_default$v, {
|
|
15569
15672
|
"large": true,
|
|
15570
15673
|
"text": props.deleteButtonText,
|
|
15571
15674
|
"type": "delete",
|
|
15572
15675
|
"onPress": onPress
|
|
15573
15676
|
}, {
|
|
15574
15677
|
delete: slots.delete
|
|
15575
|
-
}), createVNode(stdin_default$
|
|
15678
|
+
}), createVNode(stdin_default$v, {
|
|
15576
15679
|
"large": true,
|
|
15577
15680
|
"text": props.closeButtonText,
|
|
15578
15681
|
"type": "close",
|
|
@@ -15626,7 +15729,7 @@ var stdin_default$t = defineComponent({
|
|
|
15626
15729
|
};
|
|
15627
15730
|
}
|
|
15628
15731
|
});
|
|
15629
|
-
const NumberKeyboard = withInstall(stdin_default$
|
|
15732
|
+
const NumberKeyboard = withInstall(stdin_default$u);
|
|
15630
15733
|
const [name$m, bem$l] = createNamespace("password-input");
|
|
15631
15734
|
const passwordInputProps = {
|
|
15632
15735
|
info: String,
|
|
@@ -15637,7 +15740,7 @@ const passwordInputProps = {
|
|
|
15637
15740
|
focused: Boolean,
|
|
15638
15741
|
errorInfo: String
|
|
15639
15742
|
};
|
|
15640
|
-
var stdin_default$
|
|
15743
|
+
var stdin_default$t = defineComponent({
|
|
15641
15744
|
name: name$m,
|
|
15642
15745
|
props: passwordInputProps,
|
|
15643
15746
|
emits: ["focus"],
|
|
@@ -15699,7 +15802,7 @@ var stdin_default$s = defineComponent({
|
|
|
15699
15802
|
};
|
|
15700
15803
|
}
|
|
15701
15804
|
});
|
|
15702
|
-
const PasswordInput = withInstall(stdin_default$
|
|
15805
|
+
const PasswordInput = withInstall(stdin_default$t);
|
|
15703
15806
|
var __async = (__this, __arguments, generator) => {
|
|
15704
15807
|
return new Promise((resolve, reject) => {
|
|
15705
15808
|
var fulfilled = (value) => {
|
|
@@ -15750,7 +15853,7 @@ const popoverProps = {
|
|
|
15750
15853
|
default: false
|
|
15751
15854
|
}
|
|
15752
15855
|
};
|
|
15753
|
-
var stdin_default$
|
|
15856
|
+
var stdin_default$s = defineComponent({
|
|
15754
15857
|
name: name$l,
|
|
15755
15858
|
props: popoverProps,
|
|
15756
15859
|
emits: ["select", "touchstart", "update:show"],
|
|
@@ -15971,7 +16074,7 @@ var stdin_default$r = defineComponent({
|
|
|
15971
16074
|
};
|
|
15972
16075
|
}
|
|
15973
16076
|
});
|
|
15974
|
-
const Popover = withInstall(stdin_default$
|
|
16077
|
+
const Popover = withInstall(stdin_default$s);
|
|
15975
16078
|
const [name$k, bem$j, t$2] = createNamespace("pull-refresh");
|
|
15976
16079
|
const DEFAULT_HEAD_HEIGHT = 50;
|
|
15977
16080
|
const TEXT_STATUS = ["pulling", "loosing", "success"];
|
|
@@ -15988,7 +16091,7 @@ const pullRefreshProps = {
|
|
|
15988
16091
|
animationDuration: makeNumericProp(300),
|
|
15989
16092
|
scrollElement: null
|
|
15990
16093
|
};
|
|
15991
|
-
var stdin_default$
|
|
16094
|
+
var stdin_default$r = defineComponent({
|
|
15992
16095
|
name: name$k,
|
|
15993
16096
|
props: pullRefreshProps,
|
|
15994
16097
|
emits: ["change", "refresh", "update:modelValue"],
|
|
@@ -16170,7 +16273,7 @@ var stdin_default$q = defineComponent({
|
|
|
16170
16273
|
};
|
|
16171
16274
|
}
|
|
16172
16275
|
});
|
|
16173
|
-
const PullRefresh = withInstall(stdin_default$
|
|
16276
|
+
const PullRefresh = withInstall(stdin_default$r);
|
|
16174
16277
|
const [name$j, bem$i] = createNamespace("radio-group");
|
|
16175
16278
|
const radioGroupProps = {
|
|
16176
16279
|
disabled: Boolean,
|
|
@@ -16180,7 +16283,7 @@ const radioGroupProps = {
|
|
|
16180
16283
|
checkedColor: String
|
|
16181
16284
|
};
|
|
16182
16285
|
const RADIO_KEY = Symbol(name$j);
|
|
16183
|
-
var stdin_default$
|
|
16286
|
+
var stdin_default$q = defineComponent({
|
|
16184
16287
|
name: name$j,
|
|
16185
16288
|
props: radioGroupProps,
|
|
16186
16289
|
emits: ["change", "update:modelValue"],
|
|
@@ -16208,7 +16311,7 @@ var stdin_default$p = defineComponent({
|
|
|
16208
16311
|
}
|
|
16209
16312
|
});
|
|
16210
16313
|
const [name$i, bem$h] = createNamespace("radio");
|
|
16211
|
-
var stdin_default$
|
|
16314
|
+
var stdin_default$p = defineComponent({
|
|
16212
16315
|
name: name$i,
|
|
16213
16316
|
props: checkerProps,
|
|
16214
16317
|
emits: ["update:modelValue"],
|
|
@@ -16230,7 +16333,7 @@ var stdin_default$o = defineComponent({
|
|
|
16230
16333
|
emit("update:modelValue", props.name);
|
|
16231
16334
|
}
|
|
16232
16335
|
};
|
|
16233
|
-
return () => createVNode(stdin_default$
|
|
16336
|
+
return () => createVNode(stdin_default$1o, mergeProps({
|
|
16234
16337
|
"bem": bem$h,
|
|
16235
16338
|
"role": "radio",
|
|
16236
16339
|
"parent": parent,
|
|
@@ -16239,8 +16342,8 @@ var stdin_default$o = defineComponent({
|
|
|
16239
16342
|
}, props), pick(slots, ["default", "icon"]));
|
|
16240
16343
|
}
|
|
16241
16344
|
});
|
|
16242
|
-
const Radio = withInstall(stdin_default$
|
|
16243
|
-
const RadioGroup = withInstall(stdin_default$
|
|
16345
|
+
const Radio = withInstall(stdin_default$p);
|
|
16346
|
+
const RadioGroup = withInstall(stdin_default$q);
|
|
16244
16347
|
const [name$h, bem$g, t$1] = createNamespace("radio-picker");
|
|
16245
16348
|
const getFirstEnabledOption = (options) => options.find((option) => !option.disabled) || options[0];
|
|
16246
16349
|
function getColumnsType(columns, fields) {
|
|
@@ -16312,7 +16415,7 @@ const MOMENTUM_TIME = 300;
|
|
|
16312
16415
|
const MOMENTUM_DISTANCE = 15;
|
|
16313
16416
|
const [name$g, bem$f] = createNamespace("radio-picker-column");
|
|
16314
16417
|
const PICKER_KEY = Symbol(name$g);
|
|
16315
|
-
var stdin_default$
|
|
16418
|
+
var stdin_default$o = defineComponent({
|
|
16316
16419
|
name: name$g,
|
|
16317
16420
|
props: {
|
|
16318
16421
|
value: numericProp,
|
|
@@ -16477,7 +16580,7 @@ var stdin_default$n = defineComponent({
|
|
|
16477
16580
|
const childData = {
|
|
16478
16581
|
[props.allowHtml || isSearchedTrans ? "innerHTML" : "textContent"]: text
|
|
16479
16582
|
};
|
|
16480
|
-
return createVNode(stdin_default$
|
|
16583
|
+
return createVNode(stdin_default$p, data, {
|
|
16481
16584
|
default: () => [slots.option ? slots.option({
|
|
16482
16585
|
option,
|
|
16483
16586
|
searchValue: props.autoSearchVal
|
|
@@ -16498,7 +16601,7 @@ var stdin_default$n = defineComponent({
|
|
|
16498
16601
|
if (slots.searchEmpty) {
|
|
16499
16602
|
return (_a = slots.searchEmpty) == null ? void 0 : _a.call(slots);
|
|
16500
16603
|
}
|
|
16501
|
-
return createVNode(stdin_default$
|
|
16604
|
+
return createVNode(stdin_default$_, {
|
|
16502
16605
|
"class": bem$f("search-empty"),
|
|
16503
16606
|
"image": "no-search-result"
|
|
16504
16607
|
}, {
|
|
@@ -16523,7 +16626,7 @@ var stdin_default$n = defineComponent({
|
|
|
16523
16626
|
},
|
|
16524
16627
|
"class": bem$f("wrapper"),
|
|
16525
16628
|
"onTransitionend": stopMomentum
|
|
16526
|
-
}, [createVNode(stdin_default$
|
|
16629
|
+
}, [createVNode(stdin_default$q, {
|
|
16527
16630
|
"modelValue": props.value
|
|
16528
16631
|
}, {
|
|
16529
16632
|
default: () => [renderOptions()]
|
|
@@ -16537,7 +16640,7 @@ const pickerToolbarProps = {
|
|
|
16537
16640
|
};
|
|
16538
16641
|
const pickerToolbarSlots = ["cancel", "confirm", "title", "toolbar"];
|
|
16539
16642
|
const pickerToolbarPropKeys = Object.keys(pickerToolbarProps);
|
|
16540
|
-
var stdin_default$
|
|
16643
|
+
var stdin_default$n = defineComponent({
|
|
16541
16644
|
name: name$f,
|
|
16542
16645
|
props: pickerToolbarProps,
|
|
16543
16646
|
emits: ["confirm", "cancel"],
|
|
@@ -16653,7 +16756,7 @@ const radioPickerProps = extend({}, pickerSharedProps, {
|
|
|
16653
16756
|
autoSearch: truthProp,
|
|
16654
16757
|
searchPlaceholder: makeStringProp("请搜索")
|
|
16655
16758
|
});
|
|
16656
|
-
var stdin_default$
|
|
16759
|
+
var stdin_default$m = defineComponent({
|
|
16657
16760
|
name: name$h,
|
|
16658
16761
|
props: radioPickerProps,
|
|
16659
16762
|
emits: ["confirm", "cancel", "change", "clickOption", "update:modelValue", "update:showPicker"],
|
|
@@ -16755,7 +16858,7 @@ var stdin_default$l = defineComponent({
|
|
|
16755
16858
|
emit("cancel", getEventParams());
|
|
16756
16859
|
};
|
|
16757
16860
|
const updateShow = (value) => emit("update:showPicker", value);
|
|
16758
|
-
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$
|
|
16861
|
+
const renderColumnItems = () => currentColumns.value.map((options, columnIndex) => createVNode(stdin_default$o, {
|
|
16759
16862
|
"value": selectedValues.value[columnIndex],
|
|
16760
16863
|
"fields": fields.value,
|
|
16761
16864
|
"options": options,
|
|
@@ -16801,7 +16904,7 @@ var stdin_default$l = defineComponent({
|
|
|
16801
16904
|
if (props.searchable) {
|
|
16802
16905
|
return createVNode("div", {
|
|
16803
16906
|
"class": bem$g("search")
|
|
16804
|
-
}, [createVNode(stdin_default$
|
|
16907
|
+
}, [createVNode(stdin_default$14, {
|
|
16805
16908
|
"show-action": !props.autoSearch,
|
|
16806
16909
|
"modelValue": searchVal.value,
|
|
16807
16910
|
"placeholder": props.searchPlaceholder,
|
|
@@ -16823,7 +16926,7 @@ var stdin_default$l = defineComponent({
|
|
|
16823
16926
|
};
|
|
16824
16927
|
const renderToolbar = () => {
|
|
16825
16928
|
if (props.showToolbar) {
|
|
16826
|
-
return createVNode(stdin_default$
|
|
16929
|
+
return createVNode(stdin_default$n, mergeProps(pick(props, pickerToolbarPropKeys), {
|
|
16827
16930
|
"onConfirm": confirm,
|
|
16828
16931
|
"onCancel": cancel
|
|
16829
16932
|
}), pick(slots, pickerToolbarSlots));
|
|
@@ -16889,7 +16992,7 @@ var stdin_default$l = defineComponent({
|
|
|
16889
16992
|
};
|
|
16890
16993
|
return () => {
|
|
16891
16994
|
if (props.popup) {
|
|
16892
|
-
return createVNode(stdin_default$
|
|
16995
|
+
return createVNode(stdin_default$1P, {
|
|
16893
16996
|
"show": showPicker.value,
|
|
16894
16997
|
"onUpdate:show": [($event) => showPicker.value = $event, updateShow],
|
|
16895
16998
|
"round": true,
|
|
@@ -16902,7 +17005,7 @@ var stdin_default$l = defineComponent({
|
|
|
16902
17005
|
};
|
|
16903
17006
|
}
|
|
16904
17007
|
});
|
|
16905
|
-
const RadioPicker = withInstall(stdin_default$
|
|
17008
|
+
const RadioPicker = withInstall(stdin_default$m);
|
|
16906
17009
|
const [name$e, bem$e] = createNamespace("rate");
|
|
16907
17010
|
function getRateStatus(value, index, allowHalf, readonly) {
|
|
16908
17011
|
if (value >= index) {
|
|
@@ -16945,7 +17048,7 @@ const rateProps = {
|
|
|
16945
17048
|
modelValue: makeNumberProp(0),
|
|
16946
17049
|
disabledColor: String
|
|
16947
17050
|
};
|
|
16948
|
-
var stdin_default$
|
|
17051
|
+
var stdin_default$l = defineComponent({
|
|
16949
17052
|
name: name$e,
|
|
16950
17053
|
props: rateProps,
|
|
16951
17054
|
emits: ["change", "update:modelValue"],
|
|
@@ -17110,8 +17213,8 @@ var stdin_default$k = defineComponent({
|
|
|
17110
17213
|
}, [list.value.map(renderStar)]);
|
|
17111
17214
|
}
|
|
17112
17215
|
});
|
|
17113
|
-
const Rate = withInstall(stdin_default$
|
|
17114
|
-
const Row = withInstall(stdin_default$
|
|
17216
|
+
const Rate = withInstall(stdin_default$l);
|
|
17217
|
+
const Row = withInstall(stdin_default$1m);
|
|
17115
17218
|
const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
|
|
17116
17219
|
const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
|
|
17117
17220
|
const resultStyle = {
|
|
@@ -17196,7 +17299,7 @@ const signatureProps = {
|
|
|
17196
17299
|
unSupportTpl: makeStringProp("对不起,当前浏览器不支持Canvas,无法使用签名组件"),
|
|
17197
17300
|
allowPortrait: Boolean
|
|
17198
17301
|
};
|
|
17199
|
-
var stdin_default$
|
|
17302
|
+
var stdin_default$k = defineComponent({
|
|
17200
17303
|
name: name$d,
|
|
17201
17304
|
props: signatureProps,
|
|
17202
17305
|
emits: ["clear", "cancel", "confirm"],
|
|
@@ -17377,20 +17480,20 @@ var stdin_default$j = defineComponent({
|
|
|
17377
17480
|
"height": canvasHeight.value
|
|
17378
17481
|
}, null), [[vShow, isCanvasSupported.value]])]), createVNode("div", {
|
|
17379
17482
|
"class": bem$d("actions")
|
|
17380
|
-
}, [createVNode(stdin_default$
|
|
17483
|
+
}, [createVNode(stdin_default$1G, {
|
|
17381
17484
|
"plain": true,
|
|
17382
17485
|
"type": "warning",
|
|
17383
17486
|
"onClick": () => clear(),
|
|
17384
17487
|
"class": bem$d("button-again")
|
|
17385
17488
|
}, {
|
|
17386
17489
|
default: () => [createTextVNode("重签")]
|
|
17387
|
-
}), createVNode(stdin_default$
|
|
17490
|
+
}), createVNode(stdin_default$1G, {
|
|
17388
17491
|
"type": "default",
|
|
17389
17492
|
"onClick": cancel,
|
|
17390
17493
|
"class": bem$d("button-cancel")
|
|
17391
17494
|
}, {
|
|
17392
17495
|
default: () => [createTextVNode("取消")]
|
|
17393
|
-
}), createVNode(stdin_default$
|
|
17496
|
+
}), createVNode(stdin_default$1G, {
|
|
17394
17497
|
"block": true,
|
|
17395
17498
|
"type": "primary",
|
|
17396
17499
|
"disabled": isCompleteButtonDisabled.value,
|
|
@@ -17402,7 +17505,7 @@ var stdin_default$j = defineComponent({
|
|
|
17402
17505
|
});
|
|
17403
17506
|
}
|
|
17404
17507
|
});
|
|
17405
|
-
const Signature = withInstall(stdin_default$
|
|
17508
|
+
const Signature = withInstall(stdin_default$k);
|
|
17406
17509
|
const [name$c, bem$c] = createNamespace("skeleton");
|
|
17407
17510
|
const DEFAULT_ROW_WIDTH = "100%";
|
|
17408
17511
|
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
|
@@ -17423,7 +17526,7 @@ const skeletonProps = {
|
|
|
17423
17526
|
default: DEFAULT_ROW_WIDTH
|
|
17424
17527
|
}
|
|
17425
17528
|
};
|
|
17426
|
-
var stdin_default$
|
|
17529
|
+
var stdin_default$j = defineComponent({
|
|
17427
17530
|
name: name$c,
|
|
17428
17531
|
inheritAttrs: false,
|
|
17429
17532
|
props: skeletonProps,
|
|
@@ -17512,7 +17615,7 @@ var stdin_default$i = defineComponent({
|
|
|
17512
17615
|
};
|
|
17513
17616
|
}
|
|
17514
17617
|
});
|
|
17515
|
-
const Skeleton = withInstall(stdin_default$
|
|
17618
|
+
const Skeleton = withInstall(stdin_default$j);
|
|
17516
17619
|
const [name$b, bem$b] = createNamespace("slider");
|
|
17517
17620
|
const sliderProps = {
|
|
17518
17621
|
min: makeNumericProp(0),
|
|
@@ -17536,7 +17639,7 @@ const sliderProps = {
|
|
|
17536
17639
|
direction: makeStringProp("horizontal"),
|
|
17537
17640
|
showPercent: truthProp
|
|
17538
17641
|
};
|
|
17539
|
-
var stdin_default$
|
|
17642
|
+
var stdin_default$i = defineComponent({
|
|
17540
17643
|
name: name$b,
|
|
17541
17644
|
props: sliderProps,
|
|
17542
17645
|
emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
|
|
@@ -17580,6 +17683,12 @@ var stdin_default$h = defineComponent({
|
|
|
17580
17683
|
}
|
|
17581
17684
|
return "0%";
|
|
17582
17685
|
};
|
|
17686
|
+
const getPositionKey = () => {
|
|
17687
|
+
if (props.vertical) {
|
|
17688
|
+
return props.reverse ? "bottom" : "top";
|
|
17689
|
+
}
|
|
17690
|
+
return props.reverse ? "right" : "left";
|
|
17691
|
+
};
|
|
17583
17692
|
const barStyle = computed(() => {
|
|
17584
17693
|
const mainAxis = props.vertical ? "height" : "width";
|
|
17585
17694
|
const style = {
|
|
@@ -17589,12 +17698,6 @@ var stdin_default$h = defineComponent({
|
|
|
17589
17698
|
if (dragStatus.value) {
|
|
17590
17699
|
style.transition = "none";
|
|
17591
17700
|
}
|
|
17592
|
-
const getPositionKey = () => {
|
|
17593
|
-
if (props.vertical) {
|
|
17594
|
-
return props.reverse ? "bottom" : "top";
|
|
17595
|
-
}
|
|
17596
|
-
return props.reverse ? "right" : "left";
|
|
17597
|
-
};
|
|
17598
17701
|
style[getPositionKey()] = calcOffset();
|
|
17599
17702
|
return style;
|
|
17600
17703
|
});
|
|
@@ -17716,13 +17819,6 @@ var stdin_default$h = defineComponent({
|
|
|
17716
17819
|
}
|
|
17717
17820
|
dragStatus.value = "";
|
|
17718
17821
|
};
|
|
17719
|
-
const getButtonClassName = (index) => {
|
|
17720
|
-
if (typeof index === "number") {
|
|
17721
|
-
const position = ["left", "right"];
|
|
17722
|
-
return bem$b(`button-wrapper`, position[index]);
|
|
17723
|
-
}
|
|
17724
|
-
return bem$b("button-wrapper", props.reverse ? "left" : "right");
|
|
17725
|
-
};
|
|
17726
17822
|
const renderButtonContent = (value, index) => {
|
|
17727
17823
|
const dragging = dragStatus.value === "dragging";
|
|
17728
17824
|
if (typeof index === "number") {
|
|
@@ -17752,10 +17848,15 @@ var stdin_default$h = defineComponent({
|
|
|
17752
17848
|
};
|
|
17753
17849
|
const renderButton = (index) => {
|
|
17754
17850
|
const current22 = typeof index === "number" ? props.modelValue[index] : props.modelValue;
|
|
17851
|
+
const left = `${(current22 - Number(props.min)) * 100 / scope.value}%`;
|
|
17852
|
+
const style = {
|
|
17853
|
+
[getPositionKey()]: left,
|
|
17854
|
+
transform: `translate(-${left},-50%)`
|
|
17855
|
+
};
|
|
17755
17856
|
return createVNode("div", {
|
|
17756
17857
|
"ref": slider[index != null ? index : 0],
|
|
17757
17858
|
"role": "slider",
|
|
17758
|
-
"class":
|
|
17859
|
+
"class": bem$b("button-wrapper"),
|
|
17759
17860
|
"tabindex": props.disabled ? void 0 : 0,
|
|
17760
17861
|
"aria-valuemin": props.min,
|
|
17761
17862
|
"aria-valuenow": current22,
|
|
@@ -17771,7 +17872,8 @@ var stdin_default$h = defineComponent({
|
|
|
17771
17872
|
},
|
|
17772
17873
|
"onTouchend": onTouchEnd,
|
|
17773
17874
|
"onTouchcancel": onTouchEnd,
|
|
17774
|
-
"onClick": stopPropagation
|
|
17875
|
+
"onClick": stopPropagation,
|
|
17876
|
+
"style": style
|
|
17775
17877
|
}, [renderButtonContent(current22, index)]);
|
|
17776
17878
|
};
|
|
17777
17879
|
const renderTitle = () => {
|
|
@@ -17836,10 +17938,10 @@ var stdin_default$h = defineComponent({
|
|
|
17836
17938
|
}, [createVNode("div", {
|
|
17837
17939
|
"class": bem$b("bar"),
|
|
17838
17940
|
"style": barStyle.value
|
|
17839
|
-
},
|
|
17941
|
+
}, null), renderButtons()]))]);
|
|
17840
17942
|
}
|
|
17841
17943
|
});
|
|
17842
|
-
const Slider = withInstall(stdin_default$
|
|
17944
|
+
const Slider = withInstall(stdin_default$i);
|
|
17843
17945
|
const [name$a, bem$a] = createNamespace("steps");
|
|
17844
17946
|
const stepsProps = {
|
|
17845
17947
|
active: makeNumericProp(0),
|
|
@@ -17854,7 +17956,7 @@ const stepsProps = {
|
|
|
17854
17956
|
titleInactiveColor: String
|
|
17855
17957
|
};
|
|
17856
17958
|
const STEPS_KEY = Symbol(name$a);
|
|
17857
|
-
var stdin_default$
|
|
17959
|
+
var stdin_default$h = defineComponent({
|
|
17858
17960
|
name: name$a,
|
|
17859
17961
|
props: stepsProps,
|
|
17860
17962
|
emits: ["clickStep"],
|
|
@@ -17886,7 +17988,7 @@ const stepProps = {
|
|
|
17886
17988
|
activeIcon: String,
|
|
17887
17989
|
inactiveIcon: String
|
|
17888
17990
|
};
|
|
17889
|
-
var stdin_default$
|
|
17991
|
+
var stdin_default$g = defineComponent({
|
|
17890
17992
|
name: name$9,
|
|
17891
17993
|
props: stepProps,
|
|
17892
17994
|
setup(props, {
|
|
@@ -18011,7 +18113,7 @@ var stdin_default$f = defineComponent({
|
|
|
18011
18113
|
};
|
|
18012
18114
|
}
|
|
18013
18115
|
});
|
|
18014
|
-
const Step = withInstall(stdin_default$
|
|
18116
|
+
const Step = withInstall(stdin_default$g);
|
|
18015
18117
|
const [name$8, bem$8] = createNamespace("stepper");
|
|
18016
18118
|
const LONG_PRESS_INTERVAL = 200;
|
|
18017
18119
|
const isEqual = (value1, value2) => String(value1) === String(value2);
|
|
@@ -18039,7 +18141,7 @@ const stepperProps = {
|
|
|
18039
18141
|
defaultValue: makeNumericProp(1),
|
|
18040
18142
|
decimalLength: numericProp
|
|
18041
18143
|
};
|
|
18042
|
-
var stdin_default$
|
|
18144
|
+
var stdin_default$f = defineComponent({
|
|
18043
18145
|
name: name$8,
|
|
18044
18146
|
props: stepperProps,
|
|
18045
18147
|
emits: ["plus", "blur", "minus", "focus", "change", "overlimit", "update:modelValue"],
|
|
@@ -18224,7 +18326,7 @@ var stdin_default$e = defineComponent({
|
|
|
18224
18326
|
}
|
|
18225
18327
|
],
|
|
18226
18328
|
"aria-disabled": minusDisabled.value || void 0
|
|
18227
|
-
}, createListeners("minus")), [createVNode(stdin_default$
|
|
18329
|
+
}, createListeners("minus")), [createVNode(stdin_default$1S, {
|
|
18228
18330
|
"name": "minus",
|
|
18229
18331
|
"size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
|
|
18230
18332
|
}, null)]), [[vShow, props.showMinus]]), withDirectives(createVNode("input", {
|
|
@@ -18257,14 +18359,14 @@ var stdin_default$e = defineComponent({
|
|
|
18257
18359
|
// { [HAPTICS_FEEDBACK]: !plusDisabled.value },
|
|
18258
18360
|
],
|
|
18259
18361
|
"aria-disabled": plusDisabled.value || void 0
|
|
18260
|
-
}, createListeners("plus")), [createVNode(stdin_default$
|
|
18362
|
+
}, createListeners("plus")), [createVNode(stdin_default$1S, {
|
|
18261
18363
|
"name": "plus",
|
|
18262
18364
|
"size": (props == null ? void 0 : props.buttonSize) ? props.buttonSize : "32"
|
|
18263
18365
|
}, null)]), [[vShow, props.showPlus]])]);
|
|
18264
18366
|
}
|
|
18265
18367
|
});
|
|
18266
|
-
const Stepper = withInstall(stdin_default$
|
|
18267
|
-
const Steps = withInstall(stdin_default$
|
|
18368
|
+
const Stepper = withInstall(stdin_default$f);
|
|
18369
|
+
const Steps = withInstall(stdin_default$h);
|
|
18268
18370
|
const [name$7, bem$7] = createNamespace("swipe-cell");
|
|
18269
18371
|
const swipeCellProps = {
|
|
18270
18372
|
name: makeNumericProp(""),
|
|
@@ -18274,7 +18376,7 @@ const swipeCellProps = {
|
|
|
18274
18376
|
beforeClose: Function,
|
|
18275
18377
|
stopPropagation: Boolean
|
|
18276
18378
|
};
|
|
18277
|
-
var stdin_default$
|
|
18379
|
+
var stdin_default$e = defineComponent({
|
|
18278
18380
|
name: name$7,
|
|
18279
18381
|
props: swipeCellProps,
|
|
18280
18382
|
emits: ["open", "close", "click"],
|
|
@@ -18427,7 +18529,7 @@ var stdin_default$d = defineComponent({
|
|
|
18427
18529
|
};
|
|
18428
18530
|
}
|
|
18429
18531
|
});
|
|
18430
|
-
const SwipeCell = withInstall(stdin_default$
|
|
18532
|
+
const SwipeCell = withInstall(stdin_default$e);
|
|
18431
18533
|
const [name$6, bem$6] = createNamespace("switch");
|
|
18432
18534
|
const switchProps = {
|
|
18433
18535
|
size: numericProp,
|
|
@@ -18445,7 +18547,7 @@ const switchProps = {
|
|
|
18445
18547
|
default: false
|
|
18446
18548
|
}
|
|
18447
18549
|
};
|
|
18448
|
-
var stdin_default$
|
|
18550
|
+
var stdin_default$d = defineComponent({
|
|
18449
18551
|
name: name$6,
|
|
18450
18552
|
props: switchProps,
|
|
18451
18553
|
emits: ["change", "update:modelValue"],
|
|
@@ -18505,8 +18607,8 @@ var stdin_default$c = defineComponent({
|
|
|
18505
18607
|
};
|
|
18506
18608
|
}
|
|
18507
18609
|
});
|
|
18508
|
-
const Switch = withInstall(stdin_default$
|
|
18509
|
-
var stdin_default$
|
|
18610
|
+
const Switch = withInstall(stdin_default$d);
|
|
18611
|
+
var stdin_default$c = Switch;
|
|
18510
18612
|
const [name$5, bem$5] = createNamespace("tabbar");
|
|
18511
18613
|
const tabbarProps = {
|
|
18512
18614
|
route: Boolean,
|
|
@@ -18524,7 +18626,7 @@ const tabbarProps = {
|
|
|
18524
18626
|
}
|
|
18525
18627
|
};
|
|
18526
18628
|
const TABBAR_KEY = Symbol(name$5);
|
|
18527
|
-
var stdin_default$
|
|
18629
|
+
var stdin_default$b = defineComponent({
|
|
18528
18630
|
name: name$5,
|
|
18529
18631
|
props: tabbarProps,
|
|
18530
18632
|
emits: ["change", "update:modelValue"],
|
|
@@ -18582,7 +18684,7 @@ var stdin_default$a = defineComponent({
|
|
|
18582
18684
|
};
|
|
18583
18685
|
}
|
|
18584
18686
|
});
|
|
18585
|
-
const Tabbar = withInstall(stdin_default$
|
|
18687
|
+
const Tabbar = withInstall(stdin_default$b);
|
|
18586
18688
|
const [name$4, bem$4] = createNamespace("tabbar-item");
|
|
18587
18689
|
const tabbarItemProps = extend({}, routeProps, {
|
|
18588
18690
|
dot: Boolean,
|
|
@@ -18592,7 +18694,7 @@ const tabbarItemProps = extend({}, routeProps, {
|
|
|
18592
18694
|
badgeProps: Object,
|
|
18593
18695
|
iconPrefix: String
|
|
18594
18696
|
});
|
|
18595
|
-
var stdin_default$
|
|
18697
|
+
var stdin_default$a = defineComponent({
|
|
18596
18698
|
name: name$4,
|
|
18597
18699
|
props: tabbarItemProps,
|
|
18598
18700
|
emits: ["click"],
|
|
@@ -18694,37 +18796,188 @@ var stdin_default$9 = defineComponent({
|
|
|
18694
18796
|
};
|
|
18695
18797
|
}
|
|
18696
18798
|
});
|
|
18697
|
-
const TabbarItem = withInstall(stdin_default$
|
|
18799
|
+
const TabbarItem = withInstall(stdin_default$a);
|
|
18698
18800
|
var SortOrderEnum = /* @__PURE__ */ ((SortOrderEnum2) => {
|
|
18699
18801
|
SortOrderEnum2["ASCEND"] = "ascend";
|
|
18700
18802
|
SortOrderEnum2["DESCEND"] = "descend";
|
|
18701
18803
|
return SortOrderEnum2;
|
|
18702
18804
|
})(SortOrderEnum || {});
|
|
18703
|
-
const [name$3, bem$3] = createNamespace("
|
|
18704
|
-
const
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18805
|
+
const [name$3, bem$3] = createNamespace("text-ellipsis");
|
|
18806
|
+
const textEllipsisProps = {
|
|
18807
|
+
rows: makeNumericProp(1),
|
|
18808
|
+
dots: makeStringProp("..."),
|
|
18809
|
+
content: makeStringProp(""),
|
|
18810
|
+
expandText: makeStringProp(""),
|
|
18811
|
+
expandType: makeStringProp("flat"),
|
|
18812
|
+
collapseText: makeStringProp(""),
|
|
18813
|
+
position: makeStringProp("end")
|
|
18814
|
+
};
|
|
18815
|
+
var stdin_default$9 = defineComponent({
|
|
18816
|
+
name: name$3,
|
|
18817
|
+
props: textEllipsisProps,
|
|
18818
|
+
emits: ["clickAction"],
|
|
18819
|
+
setup(props, {
|
|
18820
|
+
emit
|
|
18821
|
+
}) {
|
|
18822
|
+
const text = ref("");
|
|
18823
|
+
const expanded = ref(false);
|
|
18824
|
+
const hasAction = ref(false);
|
|
18825
|
+
const root = ref();
|
|
18826
|
+
const actionText = computed(() => expanded.value ? props.collapseText : props.expandText);
|
|
18827
|
+
const pxToNum = (value) => {
|
|
18828
|
+
if (!value)
|
|
18829
|
+
return 0;
|
|
18830
|
+
const match = value.match(/^\d*(\.\d*)?/);
|
|
18831
|
+
return match ? Number(match[0]) : 0;
|
|
18832
|
+
};
|
|
18833
|
+
const calcEllipsised = () => {
|
|
18834
|
+
const cloneContainer = () => {
|
|
18835
|
+
if (!root.value)
|
|
18836
|
+
return;
|
|
18837
|
+
const originStyle = window.getComputedStyle(root.value);
|
|
18838
|
+
const container2 = document.createElement("div");
|
|
18839
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
|
18840
|
+
styleNames.forEach((name2) => {
|
|
18841
|
+
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
|
18842
|
+
});
|
|
18843
|
+
container2.style.position = "fixed";
|
|
18844
|
+
container2.style.zIndex = "-9999";
|
|
18845
|
+
container2.style.top = "-9999px";
|
|
18846
|
+
container2.style.height = "auto";
|
|
18847
|
+
container2.style.minHeight = "auto";
|
|
18848
|
+
container2.style.maxHeight = "auto";
|
|
18849
|
+
container2.innerText = props.content;
|
|
18850
|
+
document.body.appendChild(container2);
|
|
18851
|
+
return container2;
|
|
18852
|
+
};
|
|
18853
|
+
const calcEllipsisText = (container2, maxHeight2) => {
|
|
18854
|
+
const {
|
|
18855
|
+
content,
|
|
18856
|
+
position,
|
|
18857
|
+
dots
|
|
18858
|
+
} = props;
|
|
18859
|
+
const end = content.length;
|
|
18860
|
+
const calcEllipse = () => {
|
|
18861
|
+
const tail = (left, right) => {
|
|
18862
|
+
if (right - left <= 1) {
|
|
18863
|
+
if (position === "end") {
|
|
18864
|
+
return content.slice(0, left) + dots;
|
|
18865
|
+
}
|
|
18866
|
+
return dots + content.slice(right, end);
|
|
18867
|
+
}
|
|
18868
|
+
const middle2 = Math.round((left + right) / 2);
|
|
18869
|
+
if (position === "end") {
|
|
18870
|
+
container2.innerText = content.slice(0, middle2) + dots + actionText.value;
|
|
18871
|
+
} else {
|
|
18872
|
+
container2.innerText = dots + content.slice(middle2, end) + actionText.value;
|
|
18873
|
+
}
|
|
18874
|
+
if (container2.offsetHeight > maxHeight2) {
|
|
18875
|
+
if (position === "end") {
|
|
18876
|
+
return tail(left, middle2);
|
|
18877
|
+
}
|
|
18878
|
+
return tail(middle2, right);
|
|
18879
|
+
}
|
|
18880
|
+
if (position === "end") {
|
|
18881
|
+
return tail(middle2, right);
|
|
18882
|
+
}
|
|
18883
|
+
return tail(left, middle2);
|
|
18884
|
+
};
|
|
18885
|
+
container2.innerText = tail(0, end);
|
|
18886
|
+
};
|
|
18887
|
+
const middleTail = (leftPart, rightPart) => {
|
|
18888
|
+
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
18889
|
+
return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
|
|
18890
|
+
}
|
|
18891
|
+
const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
18892
|
+
const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
18893
|
+
container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
|
|
18894
|
+
if (container2.offsetHeight >= maxHeight2) {
|
|
18895
|
+
return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
|
|
18896
|
+
}
|
|
18897
|
+
return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
|
|
18898
|
+
};
|
|
18899
|
+
const middle = 0 + end >> 1;
|
|
18900
|
+
props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
|
|
18901
|
+
return container2.innerText;
|
|
18902
|
+
};
|
|
18903
|
+
const container = cloneContainer();
|
|
18904
|
+
if (!container)
|
|
18905
|
+
return;
|
|
18906
|
+
const {
|
|
18907
|
+
paddingBottom,
|
|
18908
|
+
paddingTop,
|
|
18909
|
+
lineHeight
|
|
18910
|
+
} = container.style;
|
|
18911
|
+
const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
|
|
18912
|
+
if (maxHeight < container.offsetHeight) {
|
|
18913
|
+
hasAction.value = true;
|
|
18914
|
+
text.value = calcEllipsisText(container, maxHeight);
|
|
18915
|
+
} else {
|
|
18916
|
+
hasAction.value = false;
|
|
18917
|
+
text.value = props.content;
|
|
18918
|
+
}
|
|
18919
|
+
document.body.removeChild(container);
|
|
18920
|
+
};
|
|
18921
|
+
const onClickAction = (event) => {
|
|
18922
|
+
event.stopPropagation();
|
|
18923
|
+
event.preventDefault();
|
|
18924
|
+
expanded.value = !expanded.value;
|
|
18925
|
+
emit("clickAction", event);
|
|
18926
|
+
};
|
|
18927
|
+
const renderAction = () => createVNode("span", {
|
|
18928
|
+
"class": bem$3("action"),
|
|
18929
|
+
"onClick": onClickAction
|
|
18930
|
+
}, [actionText.value]);
|
|
18931
|
+
const onClickEllipsis = () => {
|
|
18932
|
+
if (props.expandType === "dialog" && hasAction.value) {
|
|
18933
|
+
showDialog({
|
|
18934
|
+
message: props.content
|
|
18935
|
+
}).then(() => {
|
|
18936
|
+
});
|
|
18937
|
+
}
|
|
18938
|
+
};
|
|
18939
|
+
onMounted(calcEllipsised);
|
|
18940
|
+
watch(() => [props.content, props.rows, props.position], calcEllipsised);
|
|
18941
|
+
useEventListener("resize", calcEllipsised);
|
|
18942
|
+
return () => createVNode("div", {
|
|
18943
|
+
"ref": root,
|
|
18944
|
+
"class": bem$3(),
|
|
18945
|
+
"onClick": onClickEllipsis
|
|
18946
|
+
}, [expanded.value ? props.content : text.value, props.expandType !== "dialog" && hasAction.value ? renderAction() : null]);
|
|
18947
|
+
}
|
|
18948
|
+
});
|
|
18949
|
+
const TextEllipsis = withInstall(stdin_default$9);
|
|
18950
|
+
var stdin_default$8 = TextEllipsis;
|
|
18951
|
+
const [name$2, bem$2] = createNamespace("table");
|
|
18952
|
+
const tableProps = {
|
|
18953
|
+
headList: makeArrayProp(),
|
|
18954
|
+
dataList: makeArrayProp(),
|
|
18955
|
+
striped: truthProp,
|
|
18956
|
+
emptyValue: makeStringProp("-"),
|
|
18957
|
+
loading: {
|
|
18958
|
+
type: Boolean,
|
|
18959
|
+
default: false
|
|
18960
|
+
},
|
|
18961
|
+
skeletonRow: {
|
|
18962
|
+
type: Number,
|
|
18963
|
+
default: 6
|
|
18964
|
+
},
|
|
18717
18965
|
border: {
|
|
18718
18966
|
type: Boolean,
|
|
18719
18967
|
default: false
|
|
18968
|
+
},
|
|
18969
|
+
hideTableHead: {
|
|
18970
|
+
type: Boolean,
|
|
18971
|
+
default: false
|
|
18720
18972
|
}
|
|
18721
18973
|
};
|
|
18722
|
-
var stdin_default$
|
|
18723
|
-
name: name$
|
|
18974
|
+
var stdin_default$7 = defineComponent({
|
|
18975
|
+
name: name$2,
|
|
18724
18976
|
props: tableProps,
|
|
18725
18977
|
emits: ["sort"],
|
|
18726
18978
|
setup(props, {
|
|
18727
|
-
emit
|
|
18979
|
+
emit,
|
|
18980
|
+
slots
|
|
18728
18981
|
}) {
|
|
18729
18982
|
const sortOrder = ref("");
|
|
18730
18983
|
const sortKey = ref("");
|
|
@@ -18802,9 +19055,11 @@ var stdin_default$8 = defineComponent({
|
|
|
18802
19055
|
pingedLeft.value = mergedScrollLeft > 0;
|
|
18803
19056
|
};
|
|
18804
19057
|
const getHead = (colData) => {
|
|
19058
|
+
const headSlot = slots[`head-${colData.id}`];
|
|
19059
|
+
const headEllipsisType = colData.sorter ? "flat" : "dialog";
|
|
18805
19060
|
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
18806
19061
|
return createVNode("th", {
|
|
18807
|
-
"class": bem$
|
|
19062
|
+
"class": bem$2("left", {
|
|
18808
19063
|
fixed: colData.fixed,
|
|
18809
19064
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18810
19065
|
}),
|
|
@@ -18812,22 +19067,26 @@ var stdin_default$8 = defineComponent({
|
|
|
18812
19067
|
left: colData.fixed ? colData.left : ""
|
|
18813
19068
|
},
|
|
18814
19069
|
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
18815
|
-
}, [createVNode("div", {
|
|
18816
|
-
"class": bem$
|
|
19070
|
+
}, [headSlot ? headSlot(colData) : createVNode("div", {
|
|
19071
|
+
"class": bem$2("head"),
|
|
18817
19072
|
"onClick": () => onHeaderClick(colData)
|
|
18818
|
-
}, [createVNode(
|
|
18819
|
-
"
|
|
19073
|
+
}, [colData.ellipsis ? createVNode(stdin_default$8, {
|
|
19074
|
+
"content": colData.label,
|
|
19075
|
+
"expandType": headEllipsisType,
|
|
19076
|
+
"class": bem$2("head-label-ellipsis")
|
|
19077
|
+
}, null) : createVNode("span", {
|
|
19078
|
+
"class": bem$2("head-label")
|
|
18820
19079
|
}, [colData.label]), colData.sorter ? createVNode("span", {
|
|
18821
|
-
"class": bem$
|
|
19080
|
+
"class": bem$2("head-sort")
|
|
18822
19081
|
}, [createVNode(Icon, {
|
|
18823
|
-
"class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$
|
|
19082
|
+
"class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.ASCEND ? bem$2("sort-active") : ""],
|
|
18824
19083
|
"name": "spinner-shrink",
|
|
18825
19084
|
"size": "12",
|
|
18826
19085
|
"style": {
|
|
18827
19086
|
marginBottom: "-3px"
|
|
18828
19087
|
}
|
|
18829
19088
|
}, null), createVNode(Icon, {
|
|
18830
|
-
"class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$
|
|
19089
|
+
"class": [colData.key === sortKey.value && sortOrder.value === SortOrderEnum.DESCEND ? bem$2("sort-active") : ""],
|
|
18831
19090
|
"name": "spinner-expand",
|
|
18832
19091
|
"size": "12",
|
|
18833
19092
|
"style": {
|
|
@@ -18836,6 +19095,15 @@ var stdin_default$8 = defineComponent({
|
|
|
18836
19095
|
}, null)]) : ""])]);
|
|
18837
19096
|
}
|
|
18838
19097
|
};
|
|
19098
|
+
const getElement = (rowData, colData) => {
|
|
19099
|
+
if (rowData[colData.key] && rowData[colData.key].id && slots[`data-${rowData[colData.key].id}`]) {
|
|
19100
|
+
return slots[`data-${rowData[colData.key].id}`](rowData[colData.key]);
|
|
19101
|
+
}
|
|
19102
|
+
return colData.ellipsis ? createVNode(stdin_default$8, {
|
|
19103
|
+
"content": rowData[colData.key],
|
|
19104
|
+
"expandType": "dialog"
|
|
19105
|
+
}, null) : rowData[colData.key];
|
|
19106
|
+
};
|
|
18839
19107
|
const getBody = (rowData, rowIndex) => createVNode("tr", null, [formatColumns.value.map((colData) => {
|
|
18840
19108
|
let additionalCellProps;
|
|
18841
19109
|
if (colData.customCell) {
|
|
@@ -18845,23 +19113,23 @@ var stdin_default$8 = defineComponent({
|
|
|
18845
19113
|
style.left = colData.fixed ? colData.left : "";
|
|
18846
19114
|
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && createVNode("td", {
|
|
18847
19115
|
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
18848
|
-
"class": bem$
|
|
19116
|
+
"class": bem$2("left", {
|
|
18849
19117
|
fixed: colData.fixed,
|
|
18850
19118
|
last: colData.lastFixLeft && pingedLeft.value
|
|
18851
19119
|
}),
|
|
18852
19120
|
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
18853
19121
|
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
18854
19122
|
"style": style
|
|
18855
|
-
}, [rowData
|
|
19123
|
+
}, [getElement(rowData, colData)]);
|
|
18856
19124
|
})]);
|
|
18857
19125
|
const getCol = () => {
|
|
18858
19126
|
const cols = [];
|
|
18859
19127
|
const col = resortHeadList.value.length;
|
|
18860
19128
|
for (let j = 0; j < col; j++) {
|
|
18861
19129
|
cols.push(createVNode("div", {
|
|
18862
|
-
"class": bem$
|
|
19130
|
+
"class": bem$2("col")
|
|
18863
19131
|
}, [createVNode("div", {
|
|
18864
|
-
"class": bem$
|
|
19132
|
+
"class": bem$2("col-item")
|
|
18865
19133
|
}, null)]));
|
|
18866
19134
|
}
|
|
18867
19135
|
return cols;
|
|
@@ -18870,7 +19138,7 @@ var stdin_default$8 = defineComponent({
|
|
|
18870
19138
|
const Rows = [];
|
|
18871
19139
|
for (let i = 0; i < props.skeletonRow; i++) {
|
|
18872
19140
|
Rows.push(createVNode("div", {
|
|
18873
|
-
"class": bem$
|
|
19141
|
+
"class": bem$2("row", {
|
|
18874
19142
|
head: i === 0
|
|
18875
19143
|
})
|
|
18876
19144
|
}, [getCol()]));
|
|
@@ -18878,12 +19146,12 @@ var stdin_default$8 = defineComponent({
|
|
|
18878
19146
|
return Rows;
|
|
18879
19147
|
};
|
|
18880
19148
|
return () => props.loading ? createVNode("div", {
|
|
18881
|
-
"class": bem$
|
|
19149
|
+
"class": bem$2({
|
|
18882
19150
|
animate: true,
|
|
18883
19151
|
skeleton: true
|
|
18884
19152
|
})
|
|
18885
19153
|
}, [getLoadingColumn()]) : createVNode("div", {
|
|
18886
|
-
"class": bem$
|
|
19154
|
+
"class": bem$2({
|
|
18887
19155
|
fixed: fixedColumn.value.length > 0,
|
|
18888
19156
|
bordered: props.border,
|
|
18889
19157
|
striped: props.striped
|
|
@@ -18893,149 +19161,14 @@ var stdin_default$8 = defineComponent({
|
|
|
18893
19161
|
"style": {
|
|
18894
19162
|
width: item.width
|
|
18895
19163
|
}
|
|
18896
|
-
}, null))]), createVNode("thead", {
|
|
18897
|
-
"class": bem$
|
|
18898
|
-
}, [createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), createVNode("tbody", {
|
|
18899
|
-
"class": bem$
|
|
19164
|
+
}, null))]), withDirectives(createVNode("thead", {
|
|
19165
|
+
"class": bem$2("thead")
|
|
19166
|
+
}, [createVNode("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), [[vShow, !props.hideTableHead]]), createVNode("tbody", {
|
|
19167
|
+
"class": bem$2("tbody")
|
|
18900
19168
|
}, [props.dataList.map((rowData, rowIndex) => getBody(rowData, rowIndex))])])]);
|
|
18901
19169
|
}
|
|
18902
19170
|
});
|
|
18903
|
-
const Table = withInstall(stdin_default$
|
|
18904
|
-
const [name$2, bem$2] = createNamespace("text-ellipsis");
|
|
18905
|
-
const textEllipsisProps = {
|
|
18906
|
-
rows: makeNumericProp(1),
|
|
18907
|
-
dots: makeStringProp("..."),
|
|
18908
|
-
content: makeStringProp(""),
|
|
18909
|
-
expandText: makeStringProp(""),
|
|
18910
|
-
collapseText: makeStringProp(""),
|
|
18911
|
-
position: makeStringProp("end")
|
|
18912
|
-
};
|
|
18913
|
-
var stdin_default$7 = defineComponent({
|
|
18914
|
-
name: name$2,
|
|
18915
|
-
props: textEllipsisProps,
|
|
18916
|
-
emits: ["clickAction"],
|
|
18917
|
-
setup(props, {
|
|
18918
|
-
emit
|
|
18919
|
-
}) {
|
|
18920
|
-
const text = ref("");
|
|
18921
|
-
const expanded = ref(false);
|
|
18922
|
-
const hasAction = ref(false);
|
|
18923
|
-
const root = ref();
|
|
18924
|
-
const actionText = computed(() => expanded.value ? props.collapseText : props.expandText);
|
|
18925
|
-
const pxToNum = (value) => {
|
|
18926
|
-
if (!value)
|
|
18927
|
-
return 0;
|
|
18928
|
-
const match = value.match(/^\d*(\.\d*)?/);
|
|
18929
|
-
return match ? Number(match[0]) : 0;
|
|
18930
|
-
};
|
|
18931
|
-
const calcEllipsised = () => {
|
|
18932
|
-
const cloneContainer = () => {
|
|
18933
|
-
if (!root.value)
|
|
18934
|
-
return;
|
|
18935
|
-
const originStyle = window.getComputedStyle(root.value);
|
|
18936
|
-
const container2 = document.createElement("div");
|
|
18937
|
-
const styleNames = Array.prototype.slice.apply(originStyle);
|
|
18938
|
-
styleNames.forEach((name2) => {
|
|
18939
|
-
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
|
18940
|
-
});
|
|
18941
|
-
container2.style.position = "fixed";
|
|
18942
|
-
container2.style.zIndex = "-9999";
|
|
18943
|
-
container2.style.top = "-9999px";
|
|
18944
|
-
container2.style.height = "auto";
|
|
18945
|
-
container2.style.minHeight = "auto";
|
|
18946
|
-
container2.style.maxHeight = "auto";
|
|
18947
|
-
container2.innerText = props.content;
|
|
18948
|
-
document.body.appendChild(container2);
|
|
18949
|
-
return container2;
|
|
18950
|
-
};
|
|
18951
|
-
const calcEllipsisText = (container2, maxHeight2) => {
|
|
18952
|
-
const {
|
|
18953
|
-
content,
|
|
18954
|
-
position,
|
|
18955
|
-
dots
|
|
18956
|
-
} = props;
|
|
18957
|
-
const end = content.length;
|
|
18958
|
-
const calcEllipse = () => {
|
|
18959
|
-
const tail = (left, right) => {
|
|
18960
|
-
if (right - left <= 1) {
|
|
18961
|
-
if (position === "end") {
|
|
18962
|
-
return content.slice(0, left) + dots;
|
|
18963
|
-
}
|
|
18964
|
-
return dots + content.slice(right, end);
|
|
18965
|
-
}
|
|
18966
|
-
const middle2 = Math.round((left + right) / 2);
|
|
18967
|
-
if (position === "end") {
|
|
18968
|
-
container2.innerText = content.slice(0, middle2) + dots + actionText.value;
|
|
18969
|
-
} else {
|
|
18970
|
-
container2.innerText = dots + content.slice(middle2, end) + actionText.value;
|
|
18971
|
-
}
|
|
18972
|
-
if (container2.offsetHeight > maxHeight2) {
|
|
18973
|
-
if (position === "end") {
|
|
18974
|
-
return tail(left, middle2);
|
|
18975
|
-
}
|
|
18976
|
-
return tail(middle2, right);
|
|
18977
|
-
}
|
|
18978
|
-
if (position === "end") {
|
|
18979
|
-
return tail(middle2, right);
|
|
18980
|
-
}
|
|
18981
|
-
return tail(left, middle2);
|
|
18982
|
-
};
|
|
18983
|
-
container2.innerText = tail(0, end);
|
|
18984
|
-
};
|
|
18985
|
-
const middleTail = (leftPart, rightPart) => {
|
|
18986
|
-
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
|
18987
|
-
return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
|
|
18988
|
-
}
|
|
18989
|
-
const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
|
18990
|
-
const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
|
18991
|
-
container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
|
|
18992
|
-
if (container2.offsetHeight >= maxHeight2) {
|
|
18993
|
-
return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
|
|
18994
|
-
}
|
|
18995
|
-
return middleTail([leftMiddle, leftPart[1]], [rightPart[0], rightMiddle]);
|
|
18996
|
-
};
|
|
18997
|
-
const middle = 0 + end >> 1;
|
|
18998
|
-
props.position === "middle" ? container2.innerText = middleTail([0, middle], [middle, end]) : calcEllipse();
|
|
18999
|
-
return container2.innerText;
|
|
19000
|
-
};
|
|
19001
|
-
const container = cloneContainer();
|
|
19002
|
-
if (!container)
|
|
19003
|
-
return;
|
|
19004
|
-
const {
|
|
19005
|
-
paddingBottom,
|
|
19006
|
-
paddingTop,
|
|
19007
|
-
lineHeight
|
|
19008
|
-
} = container.style;
|
|
19009
|
-
const maxHeight = Math.ceil((Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom));
|
|
19010
|
-
if (maxHeight < container.offsetHeight) {
|
|
19011
|
-
hasAction.value = true;
|
|
19012
|
-
text.value = calcEllipsisText(container, maxHeight);
|
|
19013
|
-
} else {
|
|
19014
|
-
hasAction.value = false;
|
|
19015
|
-
text.value = props.content;
|
|
19016
|
-
}
|
|
19017
|
-
document.body.removeChild(container);
|
|
19018
|
-
};
|
|
19019
|
-
const onClickAction = (event) => {
|
|
19020
|
-
event.stopPropagation();
|
|
19021
|
-
event.preventDefault();
|
|
19022
|
-
expanded.value = !expanded.value;
|
|
19023
|
-
emit("clickAction", event);
|
|
19024
|
-
};
|
|
19025
|
-
const renderAction = () => createVNode("span", {
|
|
19026
|
-
"class": bem$2("action"),
|
|
19027
|
-
"onClick": onClickAction
|
|
19028
|
-
}, [actionText.value]);
|
|
19029
|
-
onMounted(calcEllipsised);
|
|
19030
|
-
watch(() => [props.content, props.rows, props.position], calcEllipsised);
|
|
19031
|
-
useEventListener("resize", calcEllipsised);
|
|
19032
|
-
return () => createVNode("div", {
|
|
19033
|
-
"ref": root,
|
|
19034
|
-
"class": bem$2()
|
|
19035
|
-
}, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
|
|
19036
|
-
}
|
|
19037
|
-
});
|
|
19038
|
-
const TextEllipsis = withInstall(stdin_default$7);
|
|
19171
|
+
const Table = withInstall(stdin_default$7);
|
|
19039
19172
|
const [name$1, bem$1] = createNamespace("timeline");
|
|
19040
19173
|
const timelineProps = {
|
|
19041
19174
|
title: makeStringProp("办理经过"),
|
|
@@ -19079,7 +19212,7 @@ var stdin_default$6 = defineComponent({
|
|
|
19079
19212
|
"class": bem$1("top-right")
|
|
19080
19213
|
}, [createVNode("span", {
|
|
19081
19214
|
"class": bem$1("fold-text")
|
|
19082
|
-
}, [createTextVNode("折叠"), props.title]), createVNode(stdin_default$
|
|
19215
|
+
}, [createTextVNode("折叠"), props.title]), createVNode(stdin_default$c, {
|
|
19083
19216
|
"modelValue": isFold.value,
|
|
19084
19217
|
"onUpdate:modelValue": ($event) => isFold.value = $event
|
|
19085
19218
|
}, null)])]);
|