persagy-vant 0.0.38 → 0.0.39
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/es/action-sheet/ActionSheet.d.ts +3 -15
- package/es/action-sheet/ActionSheet.mjs +22 -11
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +2 -11
- package/es/action-sheet/index.less +31 -17
- package/es/action-sheet/style/index.mjs +2 -0
- package/es/action-sheet/style/less.mjs +2 -0
- package/es/action-sheet/var.less +1 -4
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-edit/style/index.mjs +1 -0
- package/es/address-edit/style/less.mjs +1 -0
- package/es/button/Button.d.ts +4 -1
- package/es/button/Button.mjs +21 -1
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -1
- package/es/button/index.less +11 -5
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/style/index.mjs +2 -0
- package/es/cascader/style/less.mjs +2 -0
- package/es/cell/Cell.d.ts +305 -1
- package/es/cell/Cell.mjs +238 -19
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +165 -1
- package/es/cell/index.less +77 -0
- package/es/cell/style/index.mjs +1 -0
- package/es/cell/style/less.mjs +1 -0
- package/es/checkbox-panel/index.css +1 -1
- package/es/checkbox-panel/index.less +1 -1
- package/es/checkbox-panel/style/index.mjs +1 -0
- package/es/checkbox-panel/style/less.mjs +1 -0
- package/es/collapse-item/CollapseItem.d.ts +230 -0
- package/es/collapse-item/index.d.ts +160 -0
- package/es/collapse-item/style/index.mjs +1 -0
- package/es/collapse-item/style/less.mjs +1 -0
- package/es/contact-card/style/index.mjs +1 -0
- package/es/contact-card/style/less.mjs +1 -0
- package/es/contact-edit/style/index.mjs +1 -0
- package/es/contact-edit/style/less.mjs +1 -0
- package/es/content-panel/index.css +1 -1
- package/es/content-panel/index.less +2 -0
- package/es/coupon-cell/style/index.mjs +1 -0
- package/es/coupon-cell/style/less.mjs +1 -0
- package/es/coupon-list/style/index.mjs +3 -0
- package/es/coupon-list/style/less.mjs +3 -0
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/function-call.d.ts +1 -1
- package/es/dialog/style/index.mjs +1 -0
- package/es/dialog/style/less.mjs +1 -0
- package/es/dropdown-item/DropdownItem.d.ts +2 -2
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/style/index.mjs +1 -0
- package/es/dropdown-item/style/less.mjs +1 -0
- package/es/field/Field.d.ts +230 -0
- package/es/field/index.d.ts +160 -0
- package/es/field/style/index.mjs +1 -0
- package/es/field/style/less.mjs +1 -0
- package/es/floor-select/style/index.mjs +3 -0
- package/es/floor-select/style/less.mjs +3 -0
- package/es/form-panel/index.css +1 -1
- package/es/form-panel/index.less +2 -0
- package/es/image-preview/ImagePreview.d.ts +2 -2
- package/es/image-preview/function-call.d.ts +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/info-card/InfoCard.d.ts +1 -1
- package/es/info-card/index.d.ts +1 -1
- package/es/label/index.css +1 -1
- package/es/label/index.less +4 -0
- package/es/label/var.less +1 -0
- package/es/location-select/index.css +1 -1
- package/es/location-select/index.less +1 -1
- package/es/location-select/style/index.mjs +1 -0
- package/es/location-select/style/less.mjs +1 -0
- package/es/material-action-bar/MaterialActionBar.d.ts +9 -0
- package/es/material-action-bar/MaterialActionBar.mjs +5 -2
- package/es/material-action-bar/index.d.ts +18 -0
- package/es/material-add/index.css +1 -1
- package/es/material-add/index.less +1 -1
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-display-bar/MaterialDisplayBar.d.ts +3 -3
- package/es/material-display-bar/index.d.ts +9 -9
- package/es/multi-person-select/index.css +1 -1
- package/es/multi-person-select/index.less +1 -1
- package/es/multi-person-select/style/index.mjs +1 -0
- package/es/multi-person-select/style/less.mjs +1 -0
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/function-call.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/index.d.ts +2 -2
- package/es/object-select/index.css +1 -1
- package/es/object-select/index.less +2 -0
- package/es/object-select/style/index.mjs +1 -0
- package/es/object-select/style/less.mjs +1 -0
- package/es/popover/Popover.d.ts +3 -3
- package/es/popover/index.d.ts +3 -3
- package/es/popup/Popup.d.ts +4 -4
- package/es/popup/index.d.ts +4 -4
- package/es/quantity-input/style/index.mjs +1 -0
- package/es/quantity-input/style/less.mjs +1 -0
- package/es/radio-panel/RadioPanel.d.ts +1 -1
- package/es/radio-panel/index.css +1 -1
- package/es/radio-panel/index.d.ts +1 -1
- package/es/radio-panel/index.less +1 -1
- package/es/radio-panel/style/index.mjs +1 -0
- package/es/radio-panel/style/less.mjs +1 -0
- package/es/rate/style/index.mjs +1 -0
- package/es/rate/style/less.mjs +1 -0
- package/es/search/style/index.mjs +1 -0
- package/es/search/style/less.mjs +1 -0
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/single-person-select/index.css +1 -1
- package/es/single-person-select/index.less +2 -0
- package/es/single-person-select/style/index.mjs +1 -0
- package/es/single-person-select/style/less.mjs +1 -0
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +1 -0
- package/es/style/var.less +1 -0
- package/es/swipe-cell/SwipeCell.d.ts +2 -2
- package/es/swipe-cell/index.d.ts +2 -2
- package/es/tab/style/index.mjs +2 -0
- package/es/tab/style/less.mjs +2 -0
- package/es/tabs/style/index.mjs +2 -0
- package/es/tabs/style/less.mjs +2 -0
- package/es/title-bar/TitleBar.d.ts +2 -2
- package/es/title-bar/index.d.ts +2 -2
- package/es/toast/Toast.d.ts +1 -1
- package/es/tree-select/style/index.mjs +1 -0
- package/es/tree-select/style/less.mjs +1 -0
- package/es/video-preview/VideoPreview.d.ts +2 -2
- package/es/video-preview/function-call.d.ts +2 -2
- package/es/work-order-filter/index.css +1 -1
- package/es/work-order-filter/index.less +2 -0
- package/es/work-order-filter/style/index.mjs +1 -0
- package/es/work-order-filter/style/less.mjs +1 -0
- package/lib/action-sheet/ActionSheet.d.ts +3 -15
- package/lib/action-sheet/ActionSheet.js +21 -10
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +2 -11
- package/lib/action-sheet/index.less +31 -17
- package/lib/action-sheet/style/index.js +2 -0
- package/lib/action-sheet/style/less.js +2 -0
- package/lib/action-sheet/var.less +1 -4
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-edit/style/index.js +1 -0
- package/lib/address-edit/style/less.js +1 -0
- package/lib/button/Button.d.ts +4 -1
- package/lib/button/Button.js +21 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -1
- package/lib/button/index.less +11 -5
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/style/index.js +2 -0
- package/lib/cascader/style/less.js +2 -0
- package/lib/cell/Cell.d.ts +305 -1
- package/lib/cell/Cell.js +238 -19
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +165 -1
- package/lib/cell/index.less +77 -0
- package/lib/cell/style/index.js +1 -0
- package/lib/cell/style/less.js +1 -0
- package/lib/checkbox-panel/index.css +1 -1
- package/lib/checkbox-panel/index.less +1 -1
- package/lib/checkbox-panel/style/index.js +1 -0
- package/lib/checkbox-panel/style/less.js +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +230 -0
- package/lib/collapse-item/index.d.ts +160 -0
- package/lib/collapse-item/style/index.js +1 -0
- package/lib/collapse-item/style/less.js +1 -0
- package/lib/contact-card/style/index.js +1 -0
- package/lib/contact-card/style/less.js +1 -0
- package/lib/contact-edit/style/index.js +1 -0
- package/lib/contact-edit/style/less.js +1 -0
- package/lib/content-panel/index.css +1 -1
- package/lib/content-panel/index.less +2 -0
- package/lib/coupon-cell/style/index.js +1 -0
- package/lib/coupon-cell/style/less.js +1 -0
- package/lib/coupon-list/style/index.js +3 -0
- package/lib/coupon-list/style/less.js +3 -0
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/function-call.d.ts +1 -1
- package/lib/dialog/style/index.js +1 -0
- package/lib/dialog/style/less.js +1 -0
- package/lib/dropdown-item/DropdownItem.d.ts +2 -2
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/style/index.js +1 -0
- package/lib/dropdown-item/style/less.js +1 -0
- package/lib/field/Field.d.ts +230 -0
- package/lib/field/index.d.ts +160 -0
- package/lib/field/style/index.js +1 -0
- package/lib/field/style/less.js +1 -0
- package/lib/floor-select/style/index.js +3 -0
- package/lib/floor-select/style/less.js +3 -0
- package/lib/form-panel/index.css +1 -1
- package/lib/form-panel/index.less +2 -0
- package/lib/image-preview/ImagePreview.d.ts +2 -2
- package/lib/image-preview/function-call.d.ts +2 -2
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +2 -2
- package/lib/info-card/InfoCard.d.ts +1 -1
- package/lib/info-card/index.d.ts +1 -1
- package/lib/label/index.css +1 -1
- package/lib/label/index.less +4 -0
- package/lib/label/var.less +1 -0
- package/lib/location-select/index.css +1 -1
- package/lib/location-select/index.less +1 -1
- package/lib/location-select/style/index.js +1 -0
- package/lib/location-select/style/less.js +1 -0
- package/lib/material-action-bar/MaterialActionBar.d.ts +9 -0
- package/lib/material-action-bar/MaterialActionBar.js +4 -1
- package/lib/material-action-bar/index.d.ts +18 -0
- package/lib/material-add/index.css +1 -1
- package/lib/material-add/index.less +1 -1
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-display-bar/MaterialDisplayBar.d.ts +3 -3
- package/lib/material-display-bar/index.d.ts +9 -9
- package/lib/multi-person-select/index.css +1 -1
- package/lib/multi-person-select/index.less +1 -1
- package/lib/multi-person-select/style/index.js +1 -0
- package/lib/multi-person-select/style/less.js +1 -0
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/function-call.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/index.d.ts +2 -2
- package/lib/object-select/index.css +1 -1
- package/lib/object-select/index.less +2 -0
- package/lib/object-select/style/index.js +1 -0
- package/lib/object-select/style/less.js +1 -0
- package/lib/popover/Popover.d.ts +3 -3
- package/lib/popover/index.d.ts +3 -3
- package/lib/popup/Popup.d.ts +4 -4
- package/lib/popup/index.d.ts +4 -4
- package/lib/quantity-input/style/index.js +1 -0
- package/lib/quantity-input/style/less.js +1 -0
- package/lib/radio-panel/RadioPanel.d.ts +1 -1
- package/lib/radio-panel/index.css +1 -1
- package/lib/radio-panel/index.d.ts +1 -1
- package/lib/radio-panel/index.less +1 -1
- package/lib/radio-panel/style/index.js +1 -0
- package/lib/radio-panel/style/less.js +1 -0
- package/lib/rate/style/index.js +1 -0
- package/lib/rate/style/less.js +1 -0
- package/lib/search/style/index.js +1 -0
- package/lib/search/style/less.js +1 -0
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/single-person-select/index.css +1 -1
- package/lib/single-person-select/index.less +2 -0
- package/lib/single-person-select/style/index.js +1 -0
- package/lib/single-person-select/style/less.js +1 -0
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +1 -0
- package/lib/style/var.less +1 -0
- package/lib/swipe-cell/SwipeCell.d.ts +2 -2
- package/lib/swipe-cell/index.d.ts +2 -2
- package/lib/tab/style/index.js +2 -0
- package/lib/tab/style/less.js +2 -0
- package/lib/tabs/style/index.js +2 -0
- package/lib/tabs/style/less.js +2 -0
- package/lib/title-bar/TitleBar.d.ts +2 -2
- package/lib/title-bar/index.d.ts +2 -2
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/tree-select/style/index.js +1 -0
- package/lib/tree-select/style/less.js +1 -0
- package/lib/vant.cjs.js +1226 -975
- package/lib/vant.es.js +1227 -976
- package/lib/vant.js +5157 -4906
- package/lib/vant.min.js +1 -1
- package/lib/video-preview/VideoPreview.d.ts +2 -2
- package/lib/video-preview/function-call.d.ts +2 -2
- package/lib/web-types.json +1 -1
- package/lib/work-order-filter/index.css +1 -1
- package/lib/work-order-filter/index.less +2 -0
- package/lib/work-order-filter/style/index.js +1 -0
- package/lib/work-order-filter/style/less.js +1 -0
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +1 -1
- package/skills/use-persagy-vant/references/public-style-system.md +105 -0
package/lib/vant.cjs.js
CHANGED
|
@@ -787,6 +787,7 @@ const buttonProps = extend({}, routeProps, {
|
|
|
787
787
|
tag: makeStringProp("button"),
|
|
788
788
|
text: String,
|
|
789
789
|
icon: String,
|
|
790
|
+
rightIcon: String,
|
|
790
791
|
iconSize: numericProp,
|
|
791
792
|
type: makeStringProp("default"),
|
|
792
793
|
size: makeStringProp("normal"),
|
|
@@ -843,6 +844,25 @@ var stdin_default$20 = vue.defineComponent({
|
|
|
843
844
|
}, null);
|
|
844
845
|
}
|
|
845
846
|
};
|
|
847
|
+
const renderRightIcon = () => {
|
|
848
|
+
var _a;
|
|
849
|
+
if (props2.loading) {
|
|
850
|
+
return;
|
|
851
|
+
}
|
|
852
|
+
if (slots["right-icon"]) {
|
|
853
|
+
return vue.createVNode("div", {
|
|
854
|
+
"class": bem$1O("right-icon")
|
|
855
|
+
}, [slots["right-icon"]()]);
|
|
856
|
+
}
|
|
857
|
+
if (props2.rightIcon) {
|
|
858
|
+
return vue.createVNode(Icon, {
|
|
859
|
+
"size": (_a = props2.iconSize) != null ? _a : buttonIconSizes[props2.size],
|
|
860
|
+
"name": props2.rightIcon,
|
|
861
|
+
"class": bem$1O("right-icon"),
|
|
862
|
+
"classPrefix": props2.iconPrefix
|
|
863
|
+
}, null);
|
|
864
|
+
}
|
|
865
|
+
};
|
|
846
866
|
const renderText = () => {
|
|
847
867
|
let text;
|
|
848
868
|
if (props2.loading) {
|
|
@@ -919,7 +939,7 @@ var stdin_default$20 = vue.defineComponent({
|
|
|
919
939
|
}, {
|
|
920
940
|
default: () => [vue.createVNode("div", {
|
|
921
941
|
"class": bem$1O("content")
|
|
922
|
-
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
|
|
942
|
+
}, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon(), renderRightIcon()])]
|
|
923
943
|
});
|
|
924
944
|
};
|
|
925
945
|
}
|
|
@@ -1435,170 +1455,500 @@ var stdin_default$1Y = vue.defineComponent({
|
|
|
1435
1455
|
}
|
|
1436
1456
|
});
|
|
1437
1457
|
const Popup = withInstall(stdin_default$1Y);
|
|
1438
|
-
const [name$1N, bem$1J] = createNamespace("
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
|
|
1458
|
+
const [name$1N, bem$1J] = createNamespace("popover");
|
|
1459
|
+
const popupProps$2 = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
1460
|
+
const popoverProps = {
|
|
1461
|
+
show: Boolean,
|
|
1462
|
+
theme: makeStringProp("light"),
|
|
1463
|
+
overlay: Boolean,
|
|
1442
1464
|
actions: makeArrayProp(),
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1465
|
+
trigger: makeStringProp("click"),
|
|
1466
|
+
duration: numericProp,
|
|
1467
|
+
showArrow: truthProp,
|
|
1468
|
+
placement: makeStringProp("bottom"),
|
|
1469
|
+
iconPrefix: String,
|
|
1470
|
+
overlayClass: unknownProp,
|
|
1471
|
+
overlayStyle: Object,
|
|
1472
|
+
closeOnClickAction: truthProp,
|
|
1473
|
+
closeOnClickOverlay: truthProp,
|
|
1474
|
+
closeOnClickOutside: truthProp,
|
|
1475
|
+
offset: {
|
|
1476
|
+
type: Array,
|
|
1477
|
+
default: () => [0, 8]
|
|
1478
|
+
},
|
|
1479
|
+
teleport: {
|
|
1480
|
+
type: [String, Object],
|
|
1481
|
+
default: "body"
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1452
1484
|
var stdin_default$1X = vue.defineComponent({
|
|
1453
1485
|
name: name$1N,
|
|
1454
|
-
props:
|
|
1455
|
-
emits: ["select", "
|
|
1486
|
+
props: popoverProps,
|
|
1487
|
+
emits: ["select", "touchstart", "update:show"],
|
|
1456
1488
|
setup(props2, {
|
|
1489
|
+
emit,
|
|
1457
1490
|
slots,
|
|
1458
|
-
|
|
1491
|
+
attrs
|
|
1459
1492
|
}) {
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1493
|
+
let popper;
|
|
1494
|
+
const popupRef = vue.ref();
|
|
1495
|
+
const wrapperRef = vue.ref();
|
|
1496
|
+
const popoverRef = vue.ref();
|
|
1497
|
+
const getPopoverOptions = () => ({
|
|
1498
|
+
placement: props2.placement,
|
|
1499
|
+
modifiers: [{
|
|
1500
|
+
name: "computeStyles",
|
|
1501
|
+
options: {
|
|
1502
|
+
adaptive: false,
|
|
1503
|
+
gpuAcceleration: false
|
|
1504
|
+
}
|
|
1505
|
+
}, extend({}, popperjs.offsetModifier, {
|
|
1506
|
+
options: {
|
|
1507
|
+
offset: props2.offset
|
|
1508
|
+
}
|
|
1509
|
+
})]
|
|
1510
|
+
});
|
|
1511
|
+
const createPopperInstance = () => {
|
|
1512
|
+
if (wrapperRef.value && popoverRef.value) {
|
|
1513
|
+
return popperjs.createPopper(wrapperRef.value, popoverRef.value.popupRef.value, getPopoverOptions());
|
|
1514
|
+
}
|
|
1515
|
+
return null;
|
|
1464
1516
|
};
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1517
|
+
const updateLocation = () => {
|
|
1518
|
+
vue.nextTick(() => {
|
|
1519
|
+
if (!props2.show) {
|
|
1520
|
+
return;
|
|
1521
|
+
}
|
|
1522
|
+
if (!popper) {
|
|
1523
|
+
popper = createPopperInstance();
|
|
1524
|
+
} else {
|
|
1525
|
+
popper.setOptions(getPopoverOptions());
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
};
|
|
1529
|
+
const updateShow = (value) => emit("update:show", value);
|
|
1530
|
+
const onClickWrapper = () => {
|
|
1531
|
+
if (props2.trigger === "click") {
|
|
1532
|
+
updateShow(!props2.show);
|
|
1474
1533
|
}
|
|
1475
1534
|
};
|
|
1476
|
-
const
|
|
1477
|
-
if (
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
"onClick": onCancel
|
|
1484
|
-
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
|
1535
|
+
const onClickAction = (action, index) => {
|
|
1536
|
+
if (action.disabled) {
|
|
1537
|
+
return;
|
|
1538
|
+
}
|
|
1539
|
+
emit("select", action, index);
|
|
1540
|
+
if (props2.closeOnClickAction) {
|
|
1541
|
+
updateShow(false);
|
|
1485
1542
|
}
|
|
1486
1543
|
};
|
|
1487
|
-
const
|
|
1488
|
-
if (
|
|
1489
|
-
|
|
1490
|
-
"class": bem$1J("loading-icon")
|
|
1491
|
-
}, null);
|
|
1544
|
+
const onClickAway = () => {
|
|
1545
|
+
if (props2.show && props2.closeOnClickOutside && (!props2.overlay || props2.closeOnClickOverlay)) {
|
|
1546
|
+
updateShow(false);
|
|
1492
1547
|
}
|
|
1548
|
+
};
|
|
1549
|
+
const renderActionContent = (action, index) => {
|
|
1493
1550
|
if (slots.action) {
|
|
1494
1551
|
return slots.action({
|
|
1495
1552
|
action,
|
|
1496
1553
|
index
|
|
1497
1554
|
});
|
|
1498
1555
|
}
|
|
1499
|
-
return [vue.createVNode("
|
|
1500
|
-
"class": bem$1J("
|
|
1501
|
-
}, [
|
|
1502
|
-
"
|
|
1503
|
-
|
|
1556
|
+
return [action.icon && vue.createVNode("div", {
|
|
1557
|
+
"class": bem$1J("action-icon")
|
|
1558
|
+
}, [vue.createVNode(Icon, {
|
|
1559
|
+
"name": action.icon,
|
|
1560
|
+
"classPrefix": props2.iconPrefix
|
|
1561
|
+
}, null)]), vue.createVNode("div", {
|
|
1562
|
+
"class": [bem$1J("action-text"), BORDER_BOTTOM]
|
|
1563
|
+
}, [action.text])];
|
|
1504
1564
|
};
|
|
1505
1565
|
const renderAction = (action, index) => {
|
|
1506
1566
|
const {
|
|
1567
|
+
icon,
|
|
1507
1568
|
color,
|
|
1508
|
-
loading,
|
|
1509
|
-
callback,
|
|
1510
1569
|
disabled,
|
|
1511
1570
|
className
|
|
1512
1571
|
} = action;
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
}
|
|
1520
|
-
if (props2.closeOnClickAction) {
|
|
1521
|
-
updateShow(false);
|
|
1522
|
-
}
|
|
1523
|
-
vue.nextTick(() => emit("select", action, index));
|
|
1524
|
-
};
|
|
1525
|
-
return vue.createVNode("button", {
|
|
1526
|
-
"type": "button",
|
|
1572
|
+
return vue.createVNode("div", {
|
|
1573
|
+
"role": "menuitem",
|
|
1574
|
+
"class": [bem$1J("action", {
|
|
1575
|
+
disabled,
|
|
1576
|
+
"with-icon": icon
|
|
1577
|
+
}), className],
|
|
1527
1578
|
"style": {
|
|
1528
1579
|
color
|
|
1529
1580
|
},
|
|
1530
|
-
"
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
}), className],
|
|
1534
|
-
"onClick": onClick
|
|
1581
|
+
"tabindex": disabled ? void 0 : 0,
|
|
1582
|
+
"aria-disabled": disabled || void 0,
|
|
1583
|
+
"onClick": () => onClickAction(action, index)
|
|
1535
1584
|
}, [renderActionContent(action, index)]);
|
|
1536
1585
|
};
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
return vue.createVNode("div", {
|
|
1541
|
-
"class": bem$1J("description")
|
|
1542
|
-
}, [content]);
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1545
|
-
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
1546
|
-
"class": bem$1J(),
|
|
1547
|
-
"position": "bottom",
|
|
1548
|
-
"onUpdate:show": updateShow
|
|
1549
|
-
}, pick(props2, popupInheritKeys$2)), {
|
|
1550
|
-
default: () => {
|
|
1586
|
+
vue.onMounted(() => {
|
|
1587
|
+
updateLocation();
|
|
1588
|
+
vue.watchEffect(() => {
|
|
1551
1589
|
var _a;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1590
|
+
popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
|
|
1591
|
+
});
|
|
1592
|
+
});
|
|
1593
|
+
vue.onBeforeUnmount(() => {
|
|
1594
|
+
if (popper) {
|
|
1595
|
+
popper.destroy();
|
|
1596
|
+
popper = null;
|
|
1555
1597
|
}
|
|
1556
1598
|
});
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
function deepClone(obj) {
|
|
1561
|
-
if (!isDef(obj)) {
|
|
1562
|
-
return obj;
|
|
1563
|
-
}
|
|
1564
|
-
if (Array.isArray(obj)) {
|
|
1565
|
-
return obj.map((item) => deepClone(item));
|
|
1566
|
-
}
|
|
1567
|
-
if (isObject(obj)) {
|
|
1568
|
-
const to = {};
|
|
1569
|
-
Object.keys(obj).forEach((key) => {
|
|
1570
|
-
to[key] = deepClone(obj[key]);
|
|
1599
|
+
vue.watch(() => [props2.show, props2.offset, props2.placement], updateLocation);
|
|
1600
|
+
use.useClickAway([wrapperRef, popupRef], onClickAway, {
|
|
1601
|
+
eventName: "touchstart"
|
|
1571
1602
|
});
|
|
1572
|
-
return
|
|
1603
|
+
return () => {
|
|
1604
|
+
var _a;
|
|
1605
|
+
return vue.createVNode(vue.Fragment, null, [vue.createVNode("span", {
|
|
1606
|
+
"ref": wrapperRef,
|
|
1607
|
+
"class": bem$1J("wrapper"),
|
|
1608
|
+
"onClick": onClickWrapper
|
|
1609
|
+
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), vue.createVNode(Popup, vue.mergeProps({
|
|
1610
|
+
"ref": popoverRef,
|
|
1611
|
+
"class": bem$1J([props2.theme]),
|
|
1612
|
+
"position": "",
|
|
1613
|
+
"transition": "van-popover-zoom",
|
|
1614
|
+
"lockScroll": false,
|
|
1615
|
+
"onUpdate:show": updateShow
|
|
1616
|
+
}, attrs, pick(props2, popupProps$2)), {
|
|
1617
|
+
default: () => [props2.showArrow && vue.createVNode("div", {
|
|
1618
|
+
"class": bem$1J("arrow")
|
|
1619
|
+
}, null), vue.createVNode("div", {
|
|
1620
|
+
"role": "menu",
|
|
1621
|
+
"class": bem$1J("content")
|
|
1622
|
+
}, [slots.default ? slots.default() : props2.actions.map(renderAction)])]
|
|
1623
|
+
})]);
|
|
1624
|
+
};
|
|
1573
1625
|
}
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
const
|
|
1577
|
-
const
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1626
|
+
});
|
|
1627
|
+
const Popover = withInstall(stdin_default$1X);
|
|
1628
|
+
const [name$1M, bem$1I] = createNamespace("nav-bar");
|
|
1629
|
+
const navBarProps = {
|
|
1630
|
+
title: String,
|
|
1631
|
+
fixed: Boolean,
|
|
1632
|
+
zIndex: numericProp,
|
|
1633
|
+
border: truthProp,
|
|
1634
|
+
leftText: String,
|
|
1635
|
+
rightText: String,
|
|
1636
|
+
subtitle: String,
|
|
1637
|
+
leftArrow: Boolean,
|
|
1638
|
+
rightPopoverActions: makeArrayProp(),
|
|
1639
|
+
rightPopoverIcon: makeStringProp("plus"),
|
|
1640
|
+
titleDropdown: Boolean,
|
|
1641
|
+
titleDropdownActive: Boolean,
|
|
1642
|
+
placeholder: Boolean,
|
|
1643
|
+
safeAreaInsetTop: Boolean
|
|
1644
|
+
};
|
|
1645
|
+
var stdin_default$1W = vue.defineComponent({
|
|
1646
|
+
name: name$1M,
|
|
1647
|
+
props: navBarProps,
|
|
1648
|
+
emits: ["click-left", "click-right", "click-title", "select-right-popover", "update:titleDropdownActive"],
|
|
1649
|
+
setup(props2, {
|
|
1650
|
+
emit,
|
|
1651
|
+
slots
|
|
1652
|
+
}) {
|
|
1653
|
+
const navBarRef = vue.ref();
|
|
1654
|
+
const rightPopoverShow = vue.ref(false);
|
|
1655
|
+
const renderPlaceholder = usePlaceholder(navBarRef, bem$1I);
|
|
1656
|
+
const onClickLeft = (event) => emit("click-left", event);
|
|
1657
|
+
const onClickRight = (event) => emit("click-right", event);
|
|
1658
|
+
const onUpdateRightPopoverShow = (show) => {
|
|
1659
|
+
rightPopoverShow.value = show;
|
|
1660
|
+
};
|
|
1661
|
+
const onSelectRightPopover = (action, index) => {
|
|
1662
|
+
emit("select-right-popover", action, index);
|
|
1663
|
+
};
|
|
1664
|
+
const onClickTitle = (event) => {
|
|
1665
|
+
if (!props2.titleDropdown) {
|
|
1666
|
+
return;
|
|
1667
|
+
}
|
|
1668
|
+
emit("update:titleDropdownActive", !props2.titleDropdownActive);
|
|
1669
|
+
emit("click-title", event);
|
|
1670
|
+
};
|
|
1671
|
+
const renderLeft = () => {
|
|
1672
|
+
if (slots.left) {
|
|
1673
|
+
return slots.left();
|
|
1674
|
+
}
|
|
1675
|
+
return [props2.leftArrow && vue.createVNode(Icon, {
|
|
1676
|
+
"class": bem$1I("arrow"),
|
|
1677
|
+
"name": "arrow-left"
|
|
1678
|
+
}, null), props2.leftText && vue.createVNode("span", {
|
|
1679
|
+
"class": bem$1I("text")
|
|
1680
|
+
}, [props2.leftText])];
|
|
1681
|
+
};
|
|
1682
|
+
const renderRight = () => {
|
|
1683
|
+
if (slots.right) {
|
|
1684
|
+
return slots.right();
|
|
1685
|
+
}
|
|
1686
|
+
if (props2.rightPopoverActions.length) {
|
|
1687
|
+
return vue.createVNode(Popover, {
|
|
1688
|
+
"show": rightPopoverShow.value,
|
|
1689
|
+
"actions": props2.rightPopoverActions,
|
|
1690
|
+
"placement": "bottom-end",
|
|
1691
|
+
"closeOnClickAction": true,
|
|
1692
|
+
"onUpdate:show": onUpdateRightPopoverShow,
|
|
1693
|
+
"onSelect": onSelectRightPopover
|
|
1694
|
+
}, {
|
|
1695
|
+
reference: () => vue.createVNode(Icon, {
|
|
1696
|
+
"name": props2.rightPopoverIcon,
|
|
1697
|
+
"class": bem$1I("right-popover-icon")
|
|
1698
|
+
}, null)
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
return vue.createVNode("span", {
|
|
1702
|
+
"class": bem$1I("text")
|
|
1703
|
+
}, [props2.rightText]);
|
|
1704
|
+
};
|
|
1705
|
+
const renderNavBar = () => {
|
|
1706
|
+
const {
|
|
1707
|
+
title,
|
|
1708
|
+
fixed,
|
|
1709
|
+
border,
|
|
1710
|
+
zIndex,
|
|
1711
|
+
subtitle,
|
|
1712
|
+
titleDropdown
|
|
1713
|
+
} = props2;
|
|
1714
|
+
const style = getZIndexStyle(zIndex);
|
|
1715
|
+
const hasLeft = props2.leftArrow || props2.leftText || slots.left;
|
|
1716
|
+
const hasRight = props2.rightText || props2.rightPopoverActions.length || slots.right;
|
|
1717
|
+
const hasRightPopover = props2.rightPopoverActions.length > 0 && !slots.right;
|
|
1718
|
+
return vue.createVNode("div", {
|
|
1719
|
+
"ref": navBarRef,
|
|
1720
|
+
"style": style,
|
|
1721
|
+
"class": [bem$1I({
|
|
1722
|
+
fixed
|
|
1723
|
+
}), {
|
|
1724
|
+
[BORDER_BOTTOM]: border,
|
|
1725
|
+
"van-safe-area-top": props2.safeAreaInsetTop
|
|
1726
|
+
}]
|
|
1727
|
+
}, [vue.createVNode("div", {
|
|
1728
|
+
"class": bem$1I("content")
|
|
1729
|
+
}, [hasLeft && vue.createVNode("div", {
|
|
1730
|
+
"class": [bem$1I("left", {
|
|
1731
|
+
slot: !!slots.left
|
|
1732
|
+
}), {
|
|
1733
|
+
[HAPTICS_FEEDBACK]: !slots.left
|
|
1734
|
+
}],
|
|
1735
|
+
"onClick": slots.left ? void 0 : onClickLeft
|
|
1736
|
+
}, [renderLeft()]), vue.createVNode("div", {
|
|
1737
|
+
"class": [bem$1I("title", {
|
|
1738
|
+
dropdown: titleDropdown
|
|
1739
|
+
}), {
|
|
1740
|
+
[HAPTICS_FEEDBACK]: titleDropdown
|
|
1741
|
+
}],
|
|
1742
|
+
"role": titleDropdown ? "button" : void 0,
|
|
1743
|
+
"tabindex": titleDropdown ? 0 : void 0,
|
|
1744
|
+
"onClick": onClickTitle,
|
|
1745
|
+
"onKeydown": (event) => {
|
|
1746
|
+
if (titleDropdown && (event.key === "Enter" || event.key === " ")) {
|
|
1747
|
+
event.preventDefault();
|
|
1748
|
+
onClickTitle(event);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}, [vue.createVNode("div", {
|
|
1752
|
+
"class": [bem$1I("title-content"), "van-ellipsis"]
|
|
1753
|
+
}, [slots.title ? slots.title() : title, titleDropdown && vue.createVNode(Icon, {
|
|
1754
|
+
"name": "trangle-down",
|
|
1755
|
+
"class": bem$1I("title-arrow", {
|
|
1756
|
+
active: props2.titleDropdownActive
|
|
1757
|
+
})
|
|
1758
|
+
}, null)]), subtitle && vue.createVNode("div", {
|
|
1759
|
+
"class": [bem$1I("subtitle"), "van-ellipsis"]
|
|
1760
|
+
}, [subtitle])]), hasRight && vue.createVNode("div", {
|
|
1761
|
+
"class": [bem$1I("right", {
|
|
1762
|
+
slot: !!slots.right
|
|
1763
|
+
}), {
|
|
1764
|
+
[HAPTICS_FEEDBACK]: !slots.right && !hasRightPopover
|
|
1765
|
+
}],
|
|
1766
|
+
"onClick": slots.right || hasRightPopover ? void 0 : onClickRight
|
|
1767
|
+
}, [renderRight()])])]);
|
|
1768
|
+
};
|
|
1769
|
+
return () => {
|
|
1770
|
+
if (props2.fixed && props2.placeholder) {
|
|
1771
|
+
return renderPlaceholder(renderNavBar);
|
|
1772
|
+
}
|
|
1773
|
+
return renderNavBar();
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
});
|
|
1777
|
+
const NavBar = withInstall(stdin_default$1W);
|
|
1778
|
+
const [name$1L, bem$1H] = createNamespace("action-sheet");
|
|
1779
|
+
const actionSheetProps = extend({}, popupSharedProps, {
|
|
1780
|
+
title: String,
|
|
1781
|
+
round: truthProp,
|
|
1782
|
+
actions: makeArrayProp(),
|
|
1783
|
+
closeable: truthProp,
|
|
1784
|
+
cancelText: String,
|
|
1785
|
+
description: String,
|
|
1786
|
+
closeOnPopstate: truthProp,
|
|
1787
|
+
closeOnClickAction: Boolean,
|
|
1788
|
+
safeAreaInsetBottom: truthProp
|
|
1789
|
+
});
|
|
1790
|
+
const popupInheritKeys$2 = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
1791
|
+
var stdin_default$1V = vue.defineComponent({
|
|
1792
|
+
name: name$1L,
|
|
1793
|
+
props: actionSheetProps,
|
|
1794
|
+
emits: ["select", "cancel", "update:show"],
|
|
1795
|
+
setup(props2, {
|
|
1796
|
+
slots,
|
|
1797
|
+
emit
|
|
1798
|
+
}) {
|
|
1799
|
+
const updateShow = (show) => emit("update:show", show);
|
|
1800
|
+
const onCancel = () => {
|
|
1801
|
+
updateShow(false);
|
|
1802
|
+
emit("cancel");
|
|
1803
|
+
};
|
|
1804
|
+
const renderHeader = () => {
|
|
1805
|
+
if (props2.title) {
|
|
1806
|
+
return vue.createVNode(NavBar, {
|
|
1807
|
+
"class": bem$1H("header"),
|
|
1808
|
+
"title": props2.title,
|
|
1809
|
+
"border": false
|
|
1810
|
+
}, props2.closeable ? {
|
|
1811
|
+
left: () => vue.createVNode("span", {
|
|
1812
|
+
"class": bem$1H("nav-left")
|
|
1813
|
+
}, [vue.createVNode(Icon, {
|
|
1814
|
+
"name": "cross",
|
|
1815
|
+
"size": 22,
|
|
1816
|
+
"class": HAPTICS_FEEDBACK,
|
|
1817
|
+
"onClick": onCancel
|
|
1818
|
+
}, null)])
|
|
1819
|
+
} : void 0);
|
|
1820
|
+
}
|
|
1821
|
+
};
|
|
1822
|
+
const renderCancel = () => {
|
|
1823
|
+
if (slots.cancel || props2.cancelText) {
|
|
1824
|
+
return [vue.createVNode("div", {
|
|
1825
|
+
"class": bem$1H("gap")
|
|
1826
|
+
}, null), vue.createVNode("button", {
|
|
1827
|
+
"type": "button",
|
|
1828
|
+
"class": bem$1H("cancel"),
|
|
1829
|
+
"onClick": onCancel
|
|
1830
|
+
}, [slots.cancel ? slots.cancel() : props2.cancelText])];
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
const renderActionContent = (action, index) => {
|
|
1834
|
+
if (action.loading) {
|
|
1835
|
+
return vue.createVNode(Loading, {
|
|
1836
|
+
"class": bem$1H("loading-icon")
|
|
1837
|
+
}, null);
|
|
1838
|
+
}
|
|
1839
|
+
if (slots.action) {
|
|
1840
|
+
return slots.action({
|
|
1841
|
+
action,
|
|
1842
|
+
index
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
return [vue.createVNode("span", {
|
|
1846
|
+
"class": bem$1H("name")
|
|
1847
|
+
}, [action.name]), action.subname && vue.createVNode("div", {
|
|
1848
|
+
"class": bem$1H("subname")
|
|
1849
|
+
}, [action.subname])];
|
|
1850
|
+
};
|
|
1851
|
+
const renderAction = (action, index) => {
|
|
1852
|
+
const {
|
|
1853
|
+
color,
|
|
1854
|
+
selected,
|
|
1855
|
+
loading,
|
|
1856
|
+
callback,
|
|
1857
|
+
disabled,
|
|
1858
|
+
className
|
|
1859
|
+
} = action;
|
|
1860
|
+
const onClick = () => {
|
|
1861
|
+
if (disabled || loading) {
|
|
1862
|
+
return;
|
|
1863
|
+
}
|
|
1864
|
+
if (callback) {
|
|
1865
|
+
callback(action);
|
|
1866
|
+
}
|
|
1867
|
+
if (props2.closeOnClickAction) {
|
|
1868
|
+
updateShow(false);
|
|
1869
|
+
}
|
|
1870
|
+
vue.nextTick(() => emit("select", action, index));
|
|
1871
|
+
};
|
|
1872
|
+
return vue.createVNode("button", {
|
|
1873
|
+
"type": "button",
|
|
1874
|
+
"style": {
|
|
1875
|
+
color: selected ? "var(--van-primary-color)" : color
|
|
1876
|
+
},
|
|
1877
|
+
"class": [bem$1H("item", {
|
|
1878
|
+
selected,
|
|
1879
|
+
loading,
|
|
1880
|
+
disabled
|
|
1881
|
+
}), className],
|
|
1882
|
+
"onClick": onClick
|
|
1883
|
+
}, [renderActionContent(action, index)]);
|
|
1884
|
+
};
|
|
1885
|
+
const renderDescription = () => {
|
|
1886
|
+
if (props2.description || slots.description) {
|
|
1887
|
+
const content = slots.description ? slots.description() : props2.description;
|
|
1888
|
+
return vue.createVNode("div", {
|
|
1889
|
+
"class": bem$1H("description")
|
|
1890
|
+
}, [content]);
|
|
1891
|
+
}
|
|
1892
|
+
};
|
|
1893
|
+
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
1894
|
+
"class": bem$1H(),
|
|
1895
|
+
"position": "bottom",
|
|
1896
|
+
"onUpdate:show": updateShow
|
|
1897
|
+
}, pick(props2, popupInheritKeys$2)), {
|
|
1898
|
+
default: () => {
|
|
1899
|
+
var _a;
|
|
1900
|
+
return [renderHeader(), renderDescription(), vue.createVNode("div", {
|
|
1901
|
+
"class": bem$1H("content")
|
|
1902
|
+
}, [props2.actions.length > 0 && vue.createVNode("div", {
|
|
1903
|
+
"class": bem$1H("action-card")
|
|
1904
|
+
}, [props2.actions.map(renderAction)]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
const ActionSheet = withInstall(stdin_default$1V);
|
|
1910
|
+
function deepClone(obj) {
|
|
1911
|
+
if (!isDef(obj)) {
|
|
1912
|
+
return obj;
|
|
1913
|
+
}
|
|
1914
|
+
if (Array.isArray(obj)) {
|
|
1915
|
+
return obj.map((item) => deepClone(item));
|
|
1916
|
+
}
|
|
1917
|
+
if (isObject(obj)) {
|
|
1918
|
+
const to = {};
|
|
1919
|
+
Object.keys(obj).forEach((key) => {
|
|
1920
|
+
to[key] = deepClone(obj[key]);
|
|
1921
|
+
});
|
|
1922
|
+
return to;
|
|
1923
|
+
}
|
|
1924
|
+
return obj;
|
|
1925
|
+
}
|
|
1926
|
+
const DEFAULT_DURATION = 200;
|
|
1927
|
+
const MOMENTUM_LIMIT_TIME = 300;
|
|
1928
|
+
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
1929
|
+
const [name$1K, bem$1G] = createNamespace("picker-column");
|
|
1930
|
+
function getElementTranslateY(element) {
|
|
1931
|
+
const {
|
|
1932
|
+
transform
|
|
1933
|
+
} = window.getComputedStyle(element);
|
|
1934
|
+
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
1935
|
+
return Number(translateY);
|
|
1936
|
+
}
|
|
1937
|
+
const PICKER_KEY = Symbol(name$1K);
|
|
1938
|
+
const isOptionDisabled = (option) => isObject(option) && option.disabled;
|
|
1939
|
+
var stdin_default$1U = vue.defineComponent({
|
|
1940
|
+
name: name$1K,
|
|
1941
|
+
props: {
|
|
1942
|
+
textKey: makeRequiredProp(String),
|
|
1943
|
+
readonly: Boolean,
|
|
1944
|
+
allowHtml: Boolean,
|
|
1945
|
+
className: unknownProp,
|
|
1946
|
+
itemHeight: makeRequiredProp(Number),
|
|
1947
|
+
defaultIndex: makeNumberProp(0),
|
|
1948
|
+
swipeDuration: makeRequiredProp(numericProp),
|
|
1949
|
+
initialOptions: makeArrayProp(),
|
|
1950
|
+
visibleItemCount: makeRequiredProp(numericProp),
|
|
1951
|
+
rotateDirection: makeStringProp("")
|
|
1602
1952
|
},
|
|
1603
1953
|
emits: ["change"],
|
|
1604
1954
|
setup(props2, {
|
|
@@ -1762,7 +2112,7 @@ var stdin_default$1W = vue.defineComponent({
|
|
|
1762
2112
|
role: "button",
|
|
1763
2113
|
style: optionStyle,
|
|
1764
2114
|
tabindex: disabled ? -1 : 0,
|
|
1765
|
-
class: bem$
|
|
2115
|
+
class: bem$1G("item", {
|
|
1766
2116
|
disabled,
|
|
1767
2117
|
selected: index === state.index
|
|
1768
2118
|
}),
|
|
@@ -1805,7 +2155,7 @@ var stdin_default$1W = vue.defineComponent({
|
|
|
1805
2155
|
});
|
|
1806
2156
|
return () => vue.createVNode("div", {
|
|
1807
2157
|
"ref": root,
|
|
1808
|
-
"class": [bem$
|
|
2158
|
+
"class": [bem$1G(), props2.className],
|
|
1809
2159
|
"onTouchstartPassive": onTouchStart,
|
|
1810
2160
|
"onTouchend": onTouchEnd,
|
|
1811
2161
|
"onTouchcancel": onTouchEnd
|
|
@@ -1816,12 +2166,12 @@ var stdin_default$1W = vue.defineComponent({
|
|
|
1816
2166
|
transitionDuration: `${state.duration}ms`,
|
|
1817
2167
|
transitionProperty: state.duration ? "all" : "none"
|
|
1818
2168
|
},
|
|
1819
|
-
"class": bem$
|
|
2169
|
+
"class": bem$1G("wrapper"),
|
|
1820
2170
|
"onTransitionend": stopMomentum
|
|
1821
2171
|
}, [renderOptions()])]);
|
|
1822
2172
|
}
|
|
1823
2173
|
});
|
|
1824
|
-
const [name$
|
|
2174
|
+
const [name$1J, bem$1F, t$j] = createNamespace("picker");
|
|
1825
2175
|
const pickerSharedProps = {
|
|
1826
2176
|
title: String,
|
|
1827
2177
|
loading: Boolean,
|
|
@@ -1844,8 +2194,8 @@ const pickerProps = extend({}, pickerSharedProps, {
|
|
|
1844
2194
|
toolbarPosition: makeStringProp("top"),
|
|
1845
2195
|
columnsFieldNames: Object
|
|
1846
2196
|
});
|
|
1847
|
-
var stdin_default$
|
|
1848
|
-
name: name$
|
|
2197
|
+
var stdin_default$1T = vue.defineComponent({
|
|
2198
|
+
name: name$1J,
|
|
1849
2199
|
props: pickerProps,
|
|
1850
2200
|
emits: ["confirm", "cancel", "change"],
|
|
1851
2201
|
setup(props2, {
|
|
@@ -2030,7 +2380,7 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2030
2380
|
}
|
|
2031
2381
|
if (props2.title) {
|
|
2032
2382
|
return vue.createVNode("div", {
|
|
2033
|
-
"class": [bem$
|
|
2383
|
+
"class": [bem$1F("title"), "van-ellipsis"]
|
|
2034
2384
|
}, [props2.title]);
|
|
2035
2385
|
}
|
|
2036
2386
|
};
|
|
@@ -2038,7 +2388,7 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2038
2388
|
const text = props2.cancelButtonText || t$j("cancel");
|
|
2039
2389
|
return vue.createVNode("button", {
|
|
2040
2390
|
"type": "button",
|
|
2041
|
-
"class": [bem$
|
|
2391
|
+
"class": [bem$1F("cancel"), HAPTICS_FEEDBACK],
|
|
2042
2392
|
"onClick": cancel
|
|
2043
2393
|
}, [slots.cancel ? slots.cancel() : text]);
|
|
2044
2394
|
};
|
|
@@ -2046,7 +2396,7 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2046
2396
|
const text = props2.confirmButtonText || t$j("confirm");
|
|
2047
2397
|
return vue.createVNode("button", {
|
|
2048
2398
|
"type": "button",
|
|
2049
|
-
"class": [bem$
|
|
2399
|
+
"class": [bem$1F("confirm"), HAPTICS_FEEDBACK],
|
|
2050
2400
|
"onClick": confirm
|
|
2051
2401
|
}, [slots.confirm ? slots.confirm() : text]);
|
|
2052
2402
|
};
|
|
@@ -2054,13 +2404,13 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2054
2404
|
if (props2.showToolbar) {
|
|
2055
2405
|
const slot = slots.toolbar || slots.default;
|
|
2056
2406
|
return vue.createVNode("div", {
|
|
2057
|
-
"class": bem$
|
|
2407
|
+
"class": bem$1F("toolbar")
|
|
2058
2408
|
}, [slot ? slot() : [renderCancel(), renderTitle(), renderConfirm()]]);
|
|
2059
2409
|
}
|
|
2060
2410
|
};
|
|
2061
2411
|
const renderColumnItems = () => formattedColumns.value.map((item, columnIndex) => {
|
|
2062
2412
|
var _a;
|
|
2063
|
-
return vue.createVNode(stdin_default$
|
|
2413
|
+
return vue.createVNode(stdin_default$1U, {
|
|
2064
2414
|
"textKey": columnsFieldNames.value.text,
|
|
2065
2415
|
"readonly": props2.readonly,
|
|
2066
2416
|
"allowHtml": props2.allowHtml,
|
|
@@ -2085,10 +2435,10 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2085
2435
|
backgroundSize: `100% ${(wrapHeight - itemHeight.value) / 2}px`
|
|
2086
2436
|
};
|
|
2087
2437
|
return [vue.createVNode("div", {
|
|
2088
|
-
"class": bem$
|
|
2438
|
+
"class": bem$1F("mask"),
|
|
2089
2439
|
"style": maskStyle
|
|
2090
2440
|
}, null), vue.createVNode("div", {
|
|
2091
|
-
"class": [BORDER_UNSET_TOP_BOTTOM, bem$
|
|
2441
|
+
"class": [BORDER_UNSET_TOP_BOTTOM, bem$1F("frame")],
|
|
2092
2442
|
"style": frameStyle
|
|
2093
2443
|
}, null)];
|
|
2094
2444
|
}
|
|
@@ -2100,7 +2450,7 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2100
2450
|
};
|
|
2101
2451
|
return vue.createVNode("div", {
|
|
2102
2452
|
"ref": columnsRef,
|
|
2103
|
-
"class": bem$
|
|
2453
|
+
"class": bem$1F("columns"),
|
|
2104
2454
|
"style": columnsStyle
|
|
2105
2455
|
}, [renderColumnItems(), renderMask(wrapHeight)]);
|
|
2106
2456
|
};
|
|
@@ -2126,15 +2476,15 @@ var stdin_default$1V = vue.defineComponent({
|
|
|
2126
2476
|
return () => {
|
|
2127
2477
|
var _a, _b;
|
|
2128
2478
|
return vue.createVNode("div", {
|
|
2129
|
-
"class": bem$
|
|
2479
|
+
"class": bem$1F()
|
|
2130
2480
|
}, [props2.toolbarPosition === "top" ? renderToolbar() : null, props2.loading ? vue.createVNode(Loading, {
|
|
2131
|
-
"class": bem$
|
|
2481
|
+
"class": bem$1F("loading")
|
|
2132
2482
|
}, null) : null, (_a = slots["columns-top"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots["columns-bottom"]) == null ? void 0 : _b.call(slots), props2.toolbarPosition === "bottom" ? renderToolbar() : null]);
|
|
2133
2483
|
};
|
|
2134
2484
|
}
|
|
2135
2485
|
});
|
|
2136
|
-
const Picker = withInstall(stdin_default$
|
|
2137
|
-
const [name$
|
|
2486
|
+
const Picker = withInstall(stdin_default$1T);
|
|
2487
|
+
const [name$1I, bem$1E] = createNamespace("area");
|
|
2138
2488
|
const EMPTY_CODE = "000000";
|
|
2139
2489
|
const INHERIT_SLOTS = ["title", "cancel", "confirm", "toolbar", "columns-top", "columns-bottom"];
|
|
2140
2490
|
const INHERIT_PROPS = ["title", "loading", "readonly", "itemHeight", "swipeDuration", "visibleItemCount", "cancelButtonText", "confirmButtonText"];
|
|
@@ -2152,8 +2502,8 @@ const areaProps = extend({}, pickerSharedProps, {
|
|
|
2152
2502
|
default: isOverseaCode
|
|
2153
2503
|
}
|
|
2154
2504
|
});
|
|
2155
|
-
var stdin_default$
|
|
2156
|
-
name: name$
|
|
2505
|
+
var stdin_default$1S = vue.defineComponent({
|
|
2506
|
+
name: name$1I,
|
|
2157
2507
|
props: areaProps,
|
|
2158
2508
|
emits: ["change", "confirm", "cancel"],
|
|
2159
2509
|
setup(props2, {
|
|
@@ -2353,7 +2703,7 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
2353
2703
|
const columns = state.columns.slice(0, +props2.columnsNum);
|
|
2354
2704
|
return vue.createVNode(Picker, vue.mergeProps({
|
|
2355
2705
|
"ref": pickerRef,
|
|
2356
|
-
"class": bem$
|
|
2706
|
+
"class": bem$1E(),
|
|
2357
2707
|
"columns": columns,
|
|
2358
2708
|
"columnsFieldNames": {
|
|
2359
2709
|
text: "name"
|
|
@@ -2365,8 +2715,8 @@ var stdin_default$1U = vue.defineComponent({
|
|
|
2365
2715
|
};
|
|
2366
2716
|
}
|
|
2367
2717
|
});
|
|
2368
|
-
const Area = withInstall(stdin_default$
|
|
2369
|
-
const [name$
|
|
2718
|
+
const Area = withInstall(stdin_default$1S);
|
|
2719
|
+
const [name$1H, bem$1D] = createNamespace("checkbox-group");
|
|
2370
2720
|
const checkboxGroupProps = {
|
|
2371
2721
|
max: numericProp,
|
|
2372
2722
|
disabled: Boolean,
|
|
@@ -2377,9 +2727,9 @@ const checkboxGroupProps = {
|
|
|
2377
2727
|
modelValue: makeArrayProp(),
|
|
2378
2728
|
checkedColor: String
|
|
2379
2729
|
};
|
|
2380
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$
|
|
2381
|
-
var stdin_default$
|
|
2382
|
-
name: name$
|
|
2730
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$1H);
|
|
2731
|
+
var stdin_default$1R = vue.defineComponent({
|
|
2732
|
+
name: name$1H,
|
|
2383
2733
|
props: checkboxGroupProps,
|
|
2384
2734
|
emits: ["change", "update:modelValue"],
|
|
2385
2735
|
setup(props2, {
|
|
@@ -2425,7 +2775,7 @@ var stdin_default$1T = vue.defineComponent({
|
|
|
2425
2775
|
return () => {
|
|
2426
2776
|
var _a;
|
|
2427
2777
|
return vue.createVNode("div", {
|
|
2428
|
-
"class": bem$
|
|
2778
|
+
"class": bem$1D([props2.direction])
|
|
2429
2779
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2430
2780
|
};
|
|
2431
2781
|
}
|
|
@@ -2443,7 +2793,7 @@ const checkerProps = {
|
|
|
2443
2793
|
labelDisabled: Boolean,
|
|
2444
2794
|
allowUncheck: Boolean
|
|
2445
2795
|
};
|
|
2446
|
-
var stdin_default$
|
|
2796
|
+
var stdin_default$1Q = vue.defineComponent({
|
|
2447
2797
|
props: extend({}, checkerProps, {
|
|
2448
2798
|
bem: makeRequiredProp(Function),
|
|
2449
2799
|
role: String,
|
|
@@ -2549,12 +2899,12 @@ var stdin_default$1S = vue.defineComponent({
|
|
|
2549
2899
|
};
|
|
2550
2900
|
}
|
|
2551
2901
|
});
|
|
2552
|
-
const [name$
|
|
2902
|
+
const [name$1G, bem$1C] = createNamespace("checkbox");
|
|
2553
2903
|
const checkboxProps = extend({}, checkerProps, {
|
|
2554
2904
|
bindGroup: truthProp
|
|
2555
2905
|
});
|
|
2556
|
-
var stdin_default$
|
|
2557
|
-
name: name$
|
|
2906
|
+
var stdin_default$1P = vue.defineComponent({
|
|
2907
|
+
name: name$1G,
|
|
2558
2908
|
props: checkboxProps,
|
|
2559
2909
|
emits: ["change", "update:modelValue"],
|
|
2560
2910
|
setup(props2, {
|
|
@@ -2611,8 +2961,8 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
2611
2961
|
checked
|
|
2612
2962
|
});
|
|
2613
2963
|
use.useCustomFieldValue(() => props2.modelValue);
|
|
2614
|
-
return () => vue.createVNode(stdin_default$
|
|
2615
|
-
"bem": bem$
|
|
2964
|
+
return () => vue.createVNode(stdin_default$1Q, vue.mergeProps({
|
|
2965
|
+
"bem": bem$1C,
|
|
2616
2966
|
"role": "checkbox",
|
|
2617
2967
|
"parent": parent,
|
|
2618
2968
|
"checked": checked.value,
|
|
@@ -2620,8 +2970,8 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
2620
2970
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2621
2971
|
}
|
|
2622
2972
|
});
|
|
2623
|
-
const Checkbox = withInstall(stdin_default$
|
|
2624
|
-
const [name$
|
|
2973
|
+
const Checkbox = withInstall(stdin_default$1P);
|
|
2974
|
+
const [name$1F, bem$1B] = createNamespace("radio-group");
|
|
2625
2975
|
const radioGroupProps = {
|
|
2626
2976
|
disabled: Boolean,
|
|
2627
2977
|
iconSize: numericProp,
|
|
@@ -2632,9 +2982,9 @@ const radioGroupProps = {
|
|
|
2632
2982
|
checkedColor: String,
|
|
2633
2983
|
allowUncheck: Boolean
|
|
2634
2984
|
};
|
|
2635
|
-
const RADIO_KEY = Symbol(name$
|
|
2636
|
-
var stdin_default$
|
|
2637
|
-
name: name$
|
|
2985
|
+
const RADIO_KEY = Symbol(name$1F);
|
|
2986
|
+
var stdin_default$1O = vue.defineComponent({
|
|
2987
|
+
name: name$1F,
|
|
2638
2988
|
props: radioGroupProps,
|
|
2639
2989
|
emits: ["change", "update:modelValue"],
|
|
2640
2990
|
setup(props2, {
|
|
@@ -2654,15 +3004,15 @@ var stdin_default$1Q = vue.defineComponent({
|
|
|
2654
3004
|
return () => {
|
|
2655
3005
|
var _a;
|
|
2656
3006
|
return vue.createVNode("div", {
|
|
2657
|
-
"class": bem$
|
|
3007
|
+
"class": bem$1B([props2.direction]),
|
|
2658
3008
|
"role": "radiogroup"
|
|
2659
3009
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
2660
3010
|
};
|
|
2661
3011
|
}
|
|
2662
3012
|
});
|
|
2663
|
-
const [name$
|
|
2664
|
-
var stdin_default$
|
|
2665
|
-
name: name$
|
|
3013
|
+
const [name$1E, bem$1A] = createNamespace("radio");
|
|
3014
|
+
var stdin_default$1N = vue.defineComponent({
|
|
3015
|
+
name: name$1E,
|
|
2666
3016
|
props: checkerProps,
|
|
2667
3017
|
emits: ["update:modelValue"],
|
|
2668
3018
|
setup(props2, {
|
|
@@ -2691,8 +3041,8 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
2691
3041
|
emit("update:modelValue", val);
|
|
2692
3042
|
}
|
|
2693
3043
|
};
|
|
2694
|
-
return () => vue.createVNode(stdin_default$
|
|
2695
|
-
"bem": bem$
|
|
3044
|
+
return () => vue.createVNode(stdin_default$1Q, vue.mergeProps({
|
|
3045
|
+
"bem": bem$1A,
|
|
2696
3046
|
"role": "radio",
|
|
2697
3047
|
"parent": parent,
|
|
2698
3048
|
"checked": checked(),
|
|
@@ -2702,42 +3052,201 @@ var stdin_default$1P = vue.defineComponent({
|
|
|
2702
3052
|
}, props2), pick(slots, ["default", "icon"]));
|
|
2703
3053
|
}
|
|
2704
3054
|
});
|
|
2705
|
-
const Radio = withInstall(stdin_default$
|
|
2706
|
-
const [name$
|
|
3055
|
+
const Radio = withInstall(stdin_default$1N);
|
|
3056
|
+
const [name$1D, bem$1z] = createNamespace("tag");
|
|
3057
|
+
const tagProps = {
|
|
3058
|
+
size: makeStringProp("medium"),
|
|
3059
|
+
mark: Boolean,
|
|
3060
|
+
show: truthProp,
|
|
3061
|
+
type: makeStringProp("gray"),
|
|
3062
|
+
color: String,
|
|
3063
|
+
plain: Boolean,
|
|
3064
|
+
round: Boolean,
|
|
3065
|
+
textColor: String,
|
|
3066
|
+
closeable: Boolean,
|
|
3067
|
+
rightIcon: String,
|
|
3068
|
+
number: [String, Number],
|
|
3069
|
+
showNumber: Boolean,
|
|
3070
|
+
numberColor: String
|
|
3071
|
+
};
|
|
3072
|
+
var stdin_default$1M = vue.defineComponent({
|
|
3073
|
+
name: name$1D,
|
|
3074
|
+
props: tagProps,
|
|
3075
|
+
emits: ["close"],
|
|
3076
|
+
setup(props2, {
|
|
3077
|
+
slots,
|
|
3078
|
+
emit
|
|
3079
|
+
}) {
|
|
3080
|
+
const onClose = (event) => {
|
|
3081
|
+
event.stopPropagation();
|
|
3082
|
+
emit("close", event);
|
|
3083
|
+
};
|
|
3084
|
+
const getStyle = () => {
|
|
3085
|
+
if (props2.plain) {
|
|
3086
|
+
return {
|
|
3087
|
+
color: props2.textColor || props2.color,
|
|
3088
|
+
borderColor: props2.color
|
|
3089
|
+
};
|
|
3090
|
+
}
|
|
3091
|
+
return {
|
|
3092
|
+
color: props2.textColor,
|
|
3093
|
+
background: props2.color
|
|
3094
|
+
};
|
|
3095
|
+
};
|
|
3096
|
+
const renderTag = () => {
|
|
3097
|
+
var _a;
|
|
3098
|
+
const {
|
|
3099
|
+
type,
|
|
3100
|
+
mark,
|
|
3101
|
+
plain,
|
|
3102
|
+
round,
|
|
3103
|
+
size,
|
|
3104
|
+
closeable,
|
|
3105
|
+
rightIcon,
|
|
3106
|
+
number,
|
|
3107
|
+
showNumber,
|
|
3108
|
+
numberColor
|
|
3109
|
+
} = props2;
|
|
3110
|
+
const classes = {
|
|
3111
|
+
mark,
|
|
3112
|
+
plain,
|
|
3113
|
+
round
|
|
3114
|
+
};
|
|
3115
|
+
if (size) {
|
|
3116
|
+
classes[size] = size;
|
|
3117
|
+
}
|
|
3118
|
+
const CloseIcon = closeable && vue.createVNode(Icon, {
|
|
3119
|
+
"name": "cross",
|
|
3120
|
+
"class": [bem$1z("close"), HAPTICS_FEEDBACK],
|
|
3121
|
+
"onClick": onClose
|
|
3122
|
+
}, null);
|
|
3123
|
+
const RightIcon = rightIcon && vue.createVNode(Icon, {
|
|
3124
|
+
"name": rightIcon,
|
|
3125
|
+
"class": bem$1z("right-icon")
|
|
3126
|
+
}, null);
|
|
3127
|
+
return vue.createVNode("span", {
|
|
3128
|
+
"style": getStyle(),
|
|
3129
|
+
"class": bem$1z([classes, type])
|
|
3130
|
+
}, [showNumber && number !== void 0 && vue.createVNode("span", {
|
|
3131
|
+
"class": bem$1z("number"),
|
|
3132
|
+
"style": {
|
|
3133
|
+
color: numberColor
|
|
3134
|
+
}
|
|
3135
|
+
}, [number]), (_a = slots.default) == null ? void 0 : _a.call(slots), RightIcon, CloseIcon]);
|
|
3136
|
+
};
|
|
3137
|
+
return () => vue.createVNode(vue.Transition, {
|
|
3138
|
+
"name": props2.closeable ? "van-fade" : void 0
|
|
3139
|
+
}, {
|
|
3140
|
+
default: () => [props2.show ? renderTag() : null]
|
|
3141
|
+
});
|
|
3142
|
+
}
|
|
3143
|
+
});
|
|
3144
|
+
const Tag = withInstall(stdin_default$1M);
|
|
3145
|
+
const [name$1C, bem$1y] = createNamespace("cell");
|
|
2707
3146
|
const cellSharedProps = {
|
|
2708
3147
|
icon: String,
|
|
2709
3148
|
size: String,
|
|
3149
|
+
background: String,
|
|
2710
3150
|
title: numericProp,
|
|
2711
3151
|
value: numericProp,
|
|
2712
3152
|
label: numericProp,
|
|
3153
|
+
labelClickable: Boolean,
|
|
3154
|
+
labelIcon: String,
|
|
3155
|
+
showLabelIcon: {
|
|
3156
|
+
type: Boolean,
|
|
3157
|
+
default: void 0
|
|
3158
|
+
},
|
|
2713
3159
|
description: numericProp,
|
|
3160
|
+
descriptionClickable: Boolean,
|
|
3161
|
+
multiLineNotes: Array,
|
|
3162
|
+
showMultiLineNotes: {
|
|
3163
|
+
type: Boolean,
|
|
3164
|
+
default: void 0
|
|
3165
|
+
},
|
|
3166
|
+
showTitleCollapseIcon: Boolean,
|
|
3167
|
+
defaultMultiLineNotesCollapsed: Boolean,
|
|
2714
3168
|
threeLine: Boolean,
|
|
2715
3169
|
labelSize: numericProp,
|
|
2716
3170
|
avatar: String,
|
|
3171
|
+
showAvatar: {
|
|
3172
|
+
type: Boolean,
|
|
3173
|
+
default: void 0
|
|
3174
|
+
},
|
|
2717
3175
|
rightAvatar: String,
|
|
3176
|
+
showRightAvatar: {
|
|
3177
|
+
type: Boolean,
|
|
3178
|
+
default: void 0
|
|
3179
|
+
},
|
|
2718
3180
|
tags: Array,
|
|
3181
|
+
showTags: {
|
|
3182
|
+
type: Boolean,
|
|
3183
|
+
default: void 0
|
|
3184
|
+
},
|
|
3185
|
+
titleTag: numericProp,
|
|
3186
|
+
showTitleTag: {
|
|
3187
|
+
type: Boolean,
|
|
3188
|
+
default: void 0
|
|
3189
|
+
},
|
|
3190
|
+
wrapTags: Array,
|
|
3191
|
+
showWrapTags: {
|
|
3192
|
+
type: Boolean,
|
|
3193
|
+
default: void 0
|
|
3194
|
+
},
|
|
2719
3195
|
titleIcon: String,
|
|
3196
|
+
titleIconClickable: Boolean,
|
|
3197
|
+
showTitleIcon: {
|
|
3198
|
+
type: Boolean,
|
|
3199
|
+
default: void 0
|
|
3200
|
+
},
|
|
2720
3201
|
rightIcon: String,
|
|
3202
|
+
showIcon: {
|
|
3203
|
+
type: Boolean,
|
|
3204
|
+
default: void 0
|
|
3205
|
+
},
|
|
3206
|
+
showRightIcon: {
|
|
3207
|
+
type: Boolean,
|
|
3208
|
+
default: void 0
|
|
3209
|
+
},
|
|
2721
3210
|
note: numericProp,
|
|
3211
|
+
showNote: {
|
|
3212
|
+
type: Boolean,
|
|
3213
|
+
default: void 0
|
|
3214
|
+
},
|
|
2722
3215
|
noteBold: Boolean,
|
|
2723
3216
|
noteClickable: Boolean,
|
|
2724
3217
|
noteTo: routeProps.to,
|
|
2725
3218
|
noteUrl: String,
|
|
2726
3219
|
noteReplace: Boolean,
|
|
2727
3220
|
badge: numericProp,
|
|
3221
|
+
showBadge: {
|
|
3222
|
+
type: Boolean,
|
|
3223
|
+
default: void 0
|
|
3224
|
+
},
|
|
2728
3225
|
leftSelect: {
|
|
2729
3226
|
type: Boolean,
|
|
2730
3227
|
default: void 0
|
|
2731
3228
|
},
|
|
3229
|
+
showLeftSelect: {
|
|
3230
|
+
type: Boolean,
|
|
3231
|
+
default: void 0
|
|
3232
|
+
},
|
|
2732
3233
|
rightSelect: {
|
|
2733
3234
|
type: Boolean,
|
|
2734
3235
|
default: void 0
|
|
2735
3236
|
},
|
|
3237
|
+
showRightSelect: {
|
|
3238
|
+
type: Boolean,
|
|
3239
|
+
default: void 0
|
|
3240
|
+
},
|
|
2736
3241
|
selectType: {
|
|
2737
3242
|
type: String,
|
|
2738
3243
|
default: "checkbox"
|
|
2739
3244
|
},
|
|
2740
3245
|
blueMark: Boolean,
|
|
3246
|
+
showBlueMark: {
|
|
3247
|
+
type: Boolean,
|
|
3248
|
+
default: void 0
|
|
3249
|
+
},
|
|
2741
3250
|
titleBold: Boolean,
|
|
2742
3251
|
center: Boolean,
|
|
2743
3252
|
isLink: Boolean,
|
|
@@ -2756,10 +3265,10 @@ const cellSharedProps = {
|
|
|
2756
3265
|
}
|
|
2757
3266
|
};
|
|
2758
3267
|
const cellProps = extend({}, cellSharedProps, routeProps);
|
|
2759
|
-
var stdin_default$
|
|
2760
|
-
name: name$
|
|
3268
|
+
var stdin_default$1L = vue.defineComponent({
|
|
3269
|
+
name: name$1C,
|
|
2761
3270
|
props: cellProps,
|
|
2762
|
-
emits: ["click", "click-note", "update:leftSelect", "update:rightSelect"],
|
|
3271
|
+
emits: ["click", "click-label", "click-description", "click-note", "click-title-icon", "update:leftSelect", "update:rightSelect", "update:multiLineNotesCollapsed"],
|
|
2763
3272
|
setup(props2, {
|
|
2764
3273
|
slots,
|
|
2765
3274
|
emit
|
|
@@ -2770,6 +3279,8 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2770
3279
|
const vm = vue.getCurrentInstance().proxy;
|
|
2771
3280
|
const leftSelectState = vue.ref((_a = props2.leftSelect) != null ? _a : false);
|
|
2772
3281
|
const rightSelectState = vue.ref((_b = props2.rightSelect) != null ? _b : false);
|
|
3282
|
+
const multiLineNotesCollapsed = vue.ref(props2.defaultMultiLineNotesCollapsed);
|
|
3283
|
+
const isVisible = (show, hasContent) => show != null ? show : hasContent;
|
|
2773
3284
|
vue.watch(() => props2.leftSelect, (value) => {
|
|
2774
3285
|
if (isDef(value)) {
|
|
2775
3286
|
leftSelectState.value = value;
|
|
@@ -2780,7 +3291,12 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2780
3291
|
rightSelectState.value = value;
|
|
2781
3292
|
}
|
|
2782
3293
|
});
|
|
2783
|
-
const
|
|
3294
|
+
const isSelectVisible = (position) => {
|
|
3295
|
+
const show = position === "left" ? props2.showLeftSelect : props2.showRightSelect;
|
|
3296
|
+
const select = position === "left" ? props2.leftSelect : props2.rightSelect;
|
|
3297
|
+
return isVisible(show, !!slots[`${position}-select`] || isDef(select));
|
|
3298
|
+
};
|
|
3299
|
+
const hasSelect = (position) => isSelectVisible(position) && isDef(position === "left" ? props2.leftSelect : props2.rightSelect);
|
|
2784
3300
|
const getSelectState = (position) => position === "left" ? leftSelectState.value : rightSelectState.value;
|
|
2785
3301
|
const updateSelectState = (position, value) => {
|
|
2786
3302
|
if (position === "left") {
|
|
@@ -2801,32 +3317,93 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2801
3317
|
return false;
|
|
2802
3318
|
};
|
|
2803
3319
|
const renderLabel = () => {
|
|
3320
|
+
var _a2;
|
|
2804
3321
|
const showLabel = slots.label || isDef(props2.label);
|
|
3322
|
+
const showLabelIcon = (_a2 = props2.showLabelIcon) != null ? _a2 : !!(slots["label-icon"] || props2.labelIcon);
|
|
2805
3323
|
if (showLabel) {
|
|
2806
3324
|
return vue.createVNode("div", {
|
|
2807
|
-
"class": [bem$
|
|
3325
|
+
"class": [bem$1y("label", {
|
|
3326
|
+
clickable: props2.labelClickable
|
|
3327
|
+
}), props2.labelClass],
|
|
2808
3328
|
"style": {
|
|
2809
3329
|
fontSize: addUnit(props2.labelSize)
|
|
3330
|
+
},
|
|
3331
|
+
"role": props2.labelClickable ? "button" : void 0,
|
|
3332
|
+
"tabindex": props2.labelClickable ? 0 : void 0,
|
|
3333
|
+
"onClick": (event) => {
|
|
3334
|
+
if (!props2.labelClickable)
|
|
3335
|
+
return;
|
|
3336
|
+
event.stopPropagation();
|
|
3337
|
+
emit("click-label", event);
|
|
2810
3338
|
}
|
|
2811
|
-
}, [slots
|
|
3339
|
+
}, [showLabelIcon && slots["label-icon"] ? vue.createVNode("span", {
|
|
3340
|
+
"class": bem$1y("label-icon")
|
|
3341
|
+
}, [slots["label-icon"]()]) : showLabelIcon ? vue.createVNode(Icon, {
|
|
3342
|
+
"name": props2.labelIcon || "location-o",
|
|
3343
|
+
"class": bem$1y("label-icon"),
|
|
3344
|
+
"classPrefix": props2.iconPrefix
|
|
3345
|
+
}, null) : null, vue.createVNode("span", null, [slots.label ? slots.label() : props2.label])]);
|
|
2812
3346
|
}
|
|
2813
3347
|
};
|
|
2814
3348
|
const renderDescription = () => {
|
|
2815
3349
|
const showDescription = slots.description || isDef(props2.description);
|
|
2816
3350
|
if (showDescription) {
|
|
2817
3351
|
return vue.createVNode("div", {
|
|
2818
|
-
"class": bem$
|
|
3352
|
+
"class": bem$1y("description", {
|
|
3353
|
+
clickable: props2.descriptionClickable
|
|
3354
|
+
}),
|
|
3355
|
+
"role": props2.descriptionClickable ? "button" : void 0,
|
|
3356
|
+
"tabindex": props2.descriptionClickable ? 0 : void 0,
|
|
3357
|
+
"onClick": (event) => {
|
|
3358
|
+
if (!props2.descriptionClickable)
|
|
3359
|
+
return;
|
|
3360
|
+
event.stopPropagation();
|
|
3361
|
+
emit("click-description", event);
|
|
3362
|
+
}
|
|
2819
3363
|
}, [slots.description ? slots.description() : props2.description]);
|
|
2820
3364
|
}
|
|
2821
3365
|
};
|
|
3366
|
+
const renderMultiLineNotes = () => {
|
|
3367
|
+
var _a2, _b2;
|
|
3368
|
+
if (!isVisible(props2.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_a2 = props2.multiLineNotes) == null ? void 0 : _a2.length))) {
|
|
3369
|
+
return;
|
|
3370
|
+
}
|
|
3371
|
+
if (slots["multi-line-notes"]) {
|
|
3372
|
+
return vue.createVNode("div", {
|
|
3373
|
+
"class": bem$1y("multi-line-notes")
|
|
3374
|
+
}, [slots["multi-line-notes"]()]);
|
|
3375
|
+
}
|
|
3376
|
+
if ((_b2 = props2.multiLineNotes) == null ? void 0 : _b2.length) {
|
|
3377
|
+
return vue.createVNode("div", {
|
|
3378
|
+
"class": bem$1y("multi-line-notes")
|
|
3379
|
+
}, [props2.multiLineNotes.map((note, index) => vue.createVNode("div", {
|
|
3380
|
+
"key": `${note}-${index}`,
|
|
3381
|
+
"class": bem$1y("multi-line-note")
|
|
3382
|
+
}, [note]))]);
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
2822
3385
|
const renderTitle = () => {
|
|
2823
3386
|
if (slots.title || isDef(props2.title)) {
|
|
2824
3387
|
return vue.createVNode("div", {
|
|
2825
|
-
"class": [bem$
|
|
3388
|
+
"class": [bem$1y("title"), props2.titleClass],
|
|
2826
3389
|
"style": props2.titleStyle
|
|
2827
3390
|
}, [vue.createVNode("div", {
|
|
2828
|
-
"class": bem$
|
|
2829
|
-
|
|
3391
|
+
"class": bem$1y("title-row", {
|
|
3392
|
+
collapsible: props2.showTitleCollapseIcon
|
|
3393
|
+
}),
|
|
3394
|
+
"onClick": (event) => {
|
|
3395
|
+
if (props2.showTitleCollapseIcon) {
|
|
3396
|
+
event.stopPropagation();
|
|
3397
|
+
multiLineNotesCollapsed.value = !multiLineNotesCollapsed.value;
|
|
3398
|
+
emit("update:multiLineNotesCollapsed", multiLineNotesCollapsed.value);
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
}, [props2.showTitleCollapseIcon && vue.createVNode(Icon, {
|
|
3402
|
+
"name": "trangle-down",
|
|
3403
|
+
"class": bem$1y("title-collapse-icon", {
|
|
3404
|
+
collapsed: multiLineNotesCollapsed.value
|
|
3405
|
+
})
|
|
3406
|
+
}, null), slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props2.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
|
|
2830
3407
|
}
|
|
2831
3408
|
};
|
|
2832
3409
|
const renderValue = () => {
|
|
@@ -2835,20 +3412,23 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2835
3412
|
if (hasValue) {
|
|
2836
3413
|
const hasTitle = slots.title || isDef(props2.title);
|
|
2837
3414
|
return vue.createVNode("div", {
|
|
2838
|
-
"class": [bem$
|
|
3415
|
+
"class": [bem$1y("value", {
|
|
2839
3416
|
alone: !hasTitle
|
|
2840
3417
|
}), props2.valueClass]
|
|
2841
3418
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
|
2842
3419
|
}
|
|
2843
3420
|
};
|
|
2844
3421
|
const renderLeftIcon = () => {
|
|
3422
|
+
if (!isVisible(props2.showIcon, !!slots.icon || !!props2.icon)) {
|
|
3423
|
+
return;
|
|
3424
|
+
}
|
|
2845
3425
|
if (slots.icon) {
|
|
2846
3426
|
return slots.icon();
|
|
2847
3427
|
}
|
|
2848
3428
|
if (props2.icon) {
|
|
2849
3429
|
return vue.createVNode(Icon, {
|
|
2850
3430
|
"name": props2.icon,
|
|
2851
|
-
"class": bem$
|
|
3431
|
+
"class": bem$1y("left-icon"),
|
|
2852
3432
|
"classPrefix": props2.iconPrefix
|
|
2853
3433
|
}, null);
|
|
2854
3434
|
}
|
|
@@ -2857,15 +3437,18 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2857
3437
|
var _a2, _b2;
|
|
2858
3438
|
const slot = slots[`${position}-select`];
|
|
2859
3439
|
const selected = getSelectState(position);
|
|
3440
|
+
if (!isSelectVisible(position)) {
|
|
3441
|
+
return;
|
|
3442
|
+
}
|
|
2860
3443
|
if (slot) {
|
|
2861
3444
|
return vue.createVNode("div", {
|
|
2862
|
-
"class": bem$
|
|
3445
|
+
"class": bem$1y(`${position}-select`)
|
|
2863
3446
|
}, [slot()]);
|
|
2864
3447
|
}
|
|
2865
3448
|
if (hasSelect(position)) {
|
|
2866
3449
|
const checkboxSize = (_b2 = (_a2 = props2.size) != null ? _a2 : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
2867
3450
|
return vue.createVNode("div", {
|
|
2868
|
-
"class": bem$
|
|
3451
|
+
"class": bem$1y(`${position}-select`),
|
|
2869
3452
|
"onClick": (event) => event.stopPropagation()
|
|
2870
3453
|
}, [props2.selectType === "radio" ? vue.createVNode(Radio, {
|
|
2871
3454
|
"modelValue": selected ? "selected" : "",
|
|
@@ -2884,63 +3467,125 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2884
3467
|
const renderAvatar = (position) => {
|
|
2885
3468
|
const slot = slots[`${position}-avatar`];
|
|
2886
3469
|
const avatar = position === "left" ? props2.avatar : props2.rightAvatar;
|
|
3470
|
+
const show = position === "left" ? props2.showAvatar : props2.showRightAvatar;
|
|
3471
|
+
if (!isVisible(show, !!slot || !!avatar)) {
|
|
3472
|
+
return;
|
|
3473
|
+
}
|
|
2887
3474
|
if (slot) {
|
|
2888
3475
|
return vue.createVNode("div", {
|
|
2889
|
-
"class": bem$
|
|
3476
|
+
"class": bem$1y(`${position}-avatar`)
|
|
2890
3477
|
}, [slot()]);
|
|
2891
3478
|
}
|
|
2892
3479
|
if (avatar) {
|
|
2893
3480
|
return vue.createVNode("img", {
|
|
2894
|
-
"class": bem$
|
|
3481
|
+
"class": bem$1y(`${position}-avatar`),
|
|
2895
3482
|
"src": avatar,
|
|
2896
3483
|
"alt": ""
|
|
2897
3484
|
}, null);
|
|
2898
3485
|
}
|
|
2899
3486
|
};
|
|
2900
3487
|
const renderBlueMark = () => {
|
|
3488
|
+
if (!isVisible(props2.showBlueMark, !!slots["blue-mark"] || props2.blueMark)) {
|
|
3489
|
+
return;
|
|
3490
|
+
}
|
|
2901
3491
|
if (slots["blue-mark"]) {
|
|
2902
3492
|
return vue.createVNode("div", {
|
|
2903
|
-
"class": bem$
|
|
3493
|
+
"class": bem$1y("blue-mark")
|
|
2904
3494
|
}, [slots["blue-mark"]()]);
|
|
2905
3495
|
}
|
|
2906
3496
|
if (props2.blueMark) {
|
|
2907
3497
|
return vue.createVNode("span", {
|
|
2908
|
-
"class": bem$
|
|
3498
|
+
"class": bem$1y("blue-mark")
|
|
2909
3499
|
}, null);
|
|
2910
3500
|
}
|
|
2911
3501
|
};
|
|
2912
3502
|
const renderTags = () => {
|
|
2913
|
-
var _a2;
|
|
3503
|
+
var _a2, _b2;
|
|
3504
|
+
if (!isVisible(props2.showTags, !!slots.tags || !!((_a2 = props2.tags) == null ? void 0 : _a2.length))) {
|
|
3505
|
+
return;
|
|
3506
|
+
}
|
|
2914
3507
|
if (slots.tags) {
|
|
2915
3508
|
return vue.createVNode("div", {
|
|
2916
|
-
"class": bem$
|
|
3509
|
+
"class": bem$1y("tags")
|
|
2917
3510
|
}, [slots.tags()]);
|
|
2918
3511
|
}
|
|
2919
|
-
if ((
|
|
3512
|
+
if ((_b2 = props2.tags) == null ? void 0 : _b2.length) {
|
|
2920
3513
|
return vue.createVNode("div", {
|
|
2921
|
-
"class": bem$
|
|
3514
|
+
"class": bem$1y("tags")
|
|
2922
3515
|
}, [props2.tags.map((tag, index) => vue.createVNode("span", {
|
|
2923
3516
|
"key": `${tag}-${index}`,
|
|
2924
|
-
"class": bem$
|
|
3517
|
+
"class": bem$1y("tag")
|
|
2925
3518
|
}, [tag]))]);
|
|
2926
3519
|
}
|
|
2927
3520
|
};
|
|
2928
|
-
const
|
|
2929
|
-
if (slots["title-
|
|
3521
|
+
const renderTitleTag = () => {
|
|
3522
|
+
if (!isVisible(props2.showTitleTag, !!slots["title-tag"] || isDef(props2.titleTag))) {
|
|
3523
|
+
return;
|
|
3524
|
+
}
|
|
3525
|
+
if (slots["title-tag"]) {
|
|
2930
3526
|
return vue.createVNode("div", {
|
|
2931
|
-
"class": bem$
|
|
2932
|
-
}, [slots["title-
|
|
3527
|
+
"class": bem$1y("title-tag")
|
|
3528
|
+
}, [slots["title-tag"]()]);
|
|
2933
3529
|
}
|
|
2934
|
-
if (props2.
|
|
2935
|
-
return vue.createVNode(
|
|
2936
|
-
"
|
|
2937
|
-
|
|
2938
|
-
|
|
3530
|
+
if (isDef(props2.titleTag)) {
|
|
3531
|
+
return vue.createVNode("div", {
|
|
3532
|
+
"class": bem$1y("title-tag")
|
|
3533
|
+
}, [vue.createVNode(Tag, {
|
|
3534
|
+
"size": "small"
|
|
3535
|
+
}, {
|
|
3536
|
+
default: () => [props2.titleTag]
|
|
3537
|
+
})]);
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
const renderWrapTags = () => {
|
|
3541
|
+
var _a2, _b2;
|
|
3542
|
+
if (!isVisible(props2.showWrapTags, !!slots["wrap-tags"] || !!((_a2 = props2.wrapTags) == null ? void 0 : _a2.length))) {
|
|
3543
|
+
return;
|
|
3544
|
+
}
|
|
3545
|
+
if (slots["wrap-tags"]) {
|
|
3546
|
+
return vue.createVNode("div", {
|
|
3547
|
+
"class": bem$1y("wrap-tags")
|
|
3548
|
+
}, [slots["wrap-tags"]()]);
|
|
3549
|
+
}
|
|
3550
|
+
if ((_b2 = props2.wrapTags) == null ? void 0 : _b2.length) {
|
|
3551
|
+
return vue.createVNode("div", {
|
|
3552
|
+
"class": bem$1y("wrap-tags")
|
|
3553
|
+
}, [props2.wrapTags.map((tag, index) => vue.createVNode(Tag, {
|
|
3554
|
+
"key": `${tag}-${index}`
|
|
3555
|
+
}, {
|
|
3556
|
+
default: () => [tag]
|
|
3557
|
+
}))]);
|
|
3558
|
+
}
|
|
3559
|
+
};
|
|
3560
|
+
const renderTitleIcon = () => {
|
|
3561
|
+
if (!isVisible(props2.showTitleIcon, !!slots["title-icon"] || !!props2.titleIcon)) {
|
|
3562
|
+
return;
|
|
3563
|
+
}
|
|
3564
|
+
const icon = slots["title-icon"] ? slots["title-icon"]() : props2.titleIcon ? vue.createVNode(Icon, {
|
|
3565
|
+
"name": props2.titleIcon
|
|
3566
|
+
}, null) : void 0;
|
|
3567
|
+
if (!icon)
|
|
3568
|
+
return;
|
|
3569
|
+
if (props2.titleIconClickable) {
|
|
3570
|
+
return vue.createVNode("button", {
|
|
3571
|
+
"type": "button",
|
|
3572
|
+
"class": bem$1y("title-icon", {
|
|
3573
|
+
clickable: true
|
|
3574
|
+
}),
|
|
3575
|
+
"aria-label": `操作${props2.title || ""}`,
|
|
3576
|
+
"onClick": (event) => {
|
|
3577
|
+
event.stopPropagation();
|
|
3578
|
+
emit("click-title-icon", event);
|
|
3579
|
+
}
|
|
3580
|
+
}, [icon]);
|
|
2939
3581
|
}
|
|
3582
|
+
return vue.createVNode("div", {
|
|
3583
|
+
"class": bem$1y("title-icon")
|
|
3584
|
+
}, [icon]);
|
|
2940
3585
|
};
|
|
2941
3586
|
const renderNoteContent = (content) => {
|
|
2942
3587
|
const clickable = props2.noteClickable || props2.noteTo || props2.noteUrl;
|
|
2943
|
-
const classes = bem$
|
|
3588
|
+
const classes = bem$1y("note", {
|
|
2944
3589
|
bold: props2.noteBold,
|
|
2945
3590
|
clickable
|
|
2946
3591
|
});
|
|
@@ -2965,6 +3610,9 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2965
3610
|
}, [content]);
|
|
2966
3611
|
};
|
|
2967
3612
|
const renderNote = () => {
|
|
3613
|
+
if (!isVisible(props2.showNote, !!slots.note || isDef(props2.note))) {
|
|
3614
|
+
return;
|
|
3615
|
+
}
|
|
2968
3616
|
if (slots.note) {
|
|
2969
3617
|
return renderNoteContent(slots.note());
|
|
2970
3618
|
}
|
|
@@ -2973,14 +3621,17 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2973
3621
|
}
|
|
2974
3622
|
};
|
|
2975
3623
|
const renderBadge = () => {
|
|
3624
|
+
if (!isVisible(props2.showBadge, !!slots.badge || isDef(props2.badge))) {
|
|
3625
|
+
return;
|
|
3626
|
+
}
|
|
2976
3627
|
if (slots.badge) {
|
|
2977
3628
|
return vue.createVNode("div", {
|
|
2978
|
-
"class": bem$
|
|
3629
|
+
"class": bem$1y("badge")
|
|
2979
3630
|
}, [slots.badge()]);
|
|
2980
3631
|
}
|
|
2981
3632
|
if (isDef(props2.badge)) {
|
|
2982
3633
|
return vue.createVNode("div", {
|
|
2983
|
-
"class": bem$
|
|
3634
|
+
"class": bem$1y("badge")
|
|
2984
3635
|
}, [vue.createVNode(Badge, {
|
|
2985
3636
|
"content": props2.badge,
|
|
2986
3637
|
"showZero": true
|
|
@@ -2988,20 +3639,23 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2988
3639
|
}
|
|
2989
3640
|
};
|
|
2990
3641
|
const renderRightIcon = () => {
|
|
3642
|
+
if (!isVisible(props2.showRightIcon, !!slots["right-icon"] || !!props2.rightIcon || props2.isLink)) {
|
|
3643
|
+
return;
|
|
3644
|
+
}
|
|
2991
3645
|
if (slots["right-icon"]) {
|
|
2992
3646
|
return slots["right-icon"]();
|
|
2993
3647
|
}
|
|
2994
3648
|
if (props2.rightIcon) {
|
|
2995
3649
|
return vue.createVNode(Icon, {
|
|
2996
3650
|
"name": props2.rightIcon,
|
|
2997
|
-
"class": bem$
|
|
3651
|
+
"class": bem$1y("right-icon")
|
|
2998
3652
|
}, null);
|
|
2999
3653
|
}
|
|
3000
3654
|
if (props2.isLink) {
|
|
3001
3655
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
|
3002
3656
|
return vue.createVNode(Icon, {
|
|
3003
3657
|
"name": name2,
|
|
3004
|
-
"class": bem$
|
|
3658
|
+
"class": bem$1y("right-icon")
|
|
3005
3659
|
}, null);
|
|
3006
3660
|
}
|
|
3007
3661
|
};
|
|
@@ -3018,7 +3672,7 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
3018
3672
|
threeLine
|
|
3019
3673
|
} = props2;
|
|
3020
3674
|
const clickable = (_a2 = props2.clickable) != null ? _a2 : isLink || rightIcon === "arrow" || hasSelect("left") || hasSelect("right");
|
|
3021
|
-
const hasBadge = !!slots.badge || isDef(props2.badge);
|
|
3675
|
+
const hasBadge = isVisible(props2.showBadge, !!slots.badge || isDef(props2.badge));
|
|
3022
3676
|
const cellSize = (_b2 = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
3023
3677
|
const classes = {
|
|
3024
3678
|
center: center || hasBadge,
|
|
@@ -3038,7 +3692,10 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
3038
3692
|
}
|
|
3039
3693
|
};
|
|
3040
3694
|
return vue.createVNode("div", {
|
|
3041
|
-
"class": [bem$
|
|
3695
|
+
"class": [bem$1y(classes), props2.errorBorder ? "van-cell-error-border" : ""],
|
|
3696
|
+
"style": props2.background ? {
|
|
3697
|
+
background: props2.background
|
|
3698
|
+
} : void 0,
|
|
3042
3699
|
"role": clickable ? "button" : void 0,
|
|
3043
3700
|
"tabindex": clickable ? 0 : void 0,
|
|
3044
3701
|
"onClick": onClick
|
|
@@ -3046,8 +3703,8 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
3046
3703
|
};
|
|
3047
3704
|
}
|
|
3048
3705
|
});
|
|
3049
|
-
const Cell = withInstall(stdin_default$
|
|
3050
|
-
const [name$
|
|
3706
|
+
const Cell = withInstall(stdin_default$1L);
|
|
3707
|
+
const [name$1B, bem$1x] = createNamespace("form");
|
|
3051
3708
|
const formProps = {
|
|
3052
3709
|
colon: Boolean,
|
|
3053
3710
|
disabled: Boolean,
|
|
@@ -3066,8 +3723,8 @@ const formProps = {
|
|
|
3066
3723
|
default: "onBlur"
|
|
3067
3724
|
}
|
|
3068
3725
|
};
|
|
3069
|
-
var stdin_default$
|
|
3070
|
-
name: name$
|
|
3726
|
+
var stdin_default$1K = vue.defineComponent({
|
|
3727
|
+
name: name$1B,
|
|
3071
3728
|
props: formProps,
|
|
3072
3729
|
emits: ["submit", "failed"],
|
|
3073
3730
|
setup(props2, {
|
|
@@ -3191,13 +3848,13 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
3191
3848
|
return () => {
|
|
3192
3849
|
var _a;
|
|
3193
3850
|
return vue.createVNode("form", {
|
|
3194
|
-
"class": bem$
|
|
3851
|
+
"class": bem$1x(),
|
|
3195
3852
|
"onSubmit": onSubmit
|
|
3196
3853
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3197
3854
|
};
|
|
3198
3855
|
}
|
|
3199
3856
|
});
|
|
3200
|
-
const Form = withInstall(stdin_default$
|
|
3857
|
+
const Form = withInstall(stdin_default$1K);
|
|
3201
3858
|
function isEmptyValue(value) {
|
|
3202
3859
|
if (Array.isArray(value)) {
|
|
3203
3860
|
return !value.length;
|
|
@@ -3295,7 +3952,7 @@ function useId() {
|
|
|
3295
3952
|
}
|
|
3296
3953
|
return `${name2}-${++current}`;
|
|
3297
3954
|
}
|
|
3298
|
-
const [name$
|
|
3955
|
+
const [name$1A, bem$1w] = createNamespace("field");
|
|
3299
3956
|
const fieldSharedProps = {
|
|
3300
3957
|
id: String,
|
|
3301
3958
|
name: String,
|
|
@@ -3348,8 +4005,8 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
3348
4005
|
default: false
|
|
3349
4006
|
}
|
|
3350
4007
|
});
|
|
3351
|
-
var stdin_default$
|
|
3352
|
-
name: name$
|
|
4008
|
+
var stdin_default$1J = vue.defineComponent({
|
|
4009
|
+
name: name$1A,
|
|
3353
4010
|
props: fieldProps,
|
|
3354
4011
|
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
|
|
3355
4012
|
setup(props2, {
|
|
@@ -3622,7 +4279,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3622
4279
|
const getInputId = () => props2.id || `${id}-input`;
|
|
3623
4280
|
const getValidationStatus = () => state.status;
|
|
3624
4281
|
const renderInput = () => {
|
|
3625
|
-
const controlClass = bem$
|
|
4282
|
+
const controlClass = bem$1w("control", [inputAlign.value, {
|
|
3626
4283
|
error: showError.value,
|
|
3627
4284
|
custom: !!slots.input,
|
|
3628
4285
|
"min-height": props2.type === "textarea" && !props2.autosize
|
|
@@ -3664,7 +4321,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3664
4321
|
const leftIconSlot = slots["left-icon"];
|
|
3665
4322
|
if (props2.leftIcon || leftIconSlot) {
|
|
3666
4323
|
return vue.createVNode("div", {
|
|
3667
|
-
"class": bem$
|
|
4324
|
+
"class": bem$1w("left-icon"),
|
|
3668
4325
|
"onClick": onClickLeftIcon
|
|
3669
4326
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
|
3670
4327
|
"name": props2.leftIcon,
|
|
@@ -3676,7 +4333,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3676
4333
|
const rightIconSlot = slots["right-icon"];
|
|
3677
4334
|
if (props2.rightIcon || rightIconSlot) {
|
|
3678
4335
|
return vue.createVNode("div", {
|
|
3679
|
-
"class": bem$
|
|
4336
|
+
"class": bem$1w("right-icon"),
|
|
3680
4337
|
"onClick": onClickRightIcon
|
|
3681
4338
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
|
3682
4339
|
"name": props2.rightIcon,
|
|
@@ -3688,9 +4345,9 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3688
4345
|
if (props2.showWordLimit && props2.maxlength) {
|
|
3689
4346
|
const count = getStringLength(getModelValue());
|
|
3690
4347
|
return vue.createVNode("div", {
|
|
3691
|
-
"class": bem$
|
|
4348
|
+
"class": bem$1w("word-limit")
|
|
3692
4349
|
}, [vue.createVNode("span", {
|
|
3693
|
-
"class": bem$
|
|
4350
|
+
"class": bem$1w("word-num")
|
|
3694
4351
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
3695
4352
|
}
|
|
3696
4353
|
};
|
|
@@ -3703,7 +4360,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3703
4360
|
const slot = slots["error-message"];
|
|
3704
4361
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
3705
4362
|
return vue.createVNode("div", {
|
|
3706
|
-
"class": bem$
|
|
4363
|
+
"class": bem$1w("error-message", errorMessageAlign)
|
|
3707
4364
|
}, [slot ? slot({
|
|
3708
4365
|
message
|
|
3709
4366
|
}) : message]);
|
|
@@ -3722,13 +4379,13 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3722
4379
|
}
|
|
3723
4380
|
};
|
|
3724
4381
|
const renderFieldBody = () => [vue.createVNode("div", {
|
|
3725
|
-
"class": bem$
|
|
4382
|
+
"class": bem$1w("body")
|
|
3726
4383
|
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
|
3727
4384
|
"ref": clearIconRef,
|
|
3728
4385
|
"name": props2.clearIcon,
|
|
3729
|
-
"class": bem$
|
|
4386
|
+
"class": bem$1w("clear")
|
|
3730
4387
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
3731
|
-
"class": bem$
|
|
4388
|
+
"class": bem$1w("button")
|
|
3732
4389
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
|
3733
4390
|
useExpose({
|
|
3734
4391
|
blur,
|
|
@@ -3767,7 +4424,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3767
4424
|
return vue.createVNode(Cell, {
|
|
3768
4425
|
"size": props2.size,
|
|
3769
4426
|
"icon": props2.leftIcon,
|
|
3770
|
-
"class": bem$
|
|
4427
|
+
"class": bem$1w({
|
|
3771
4428
|
error: showError.value,
|
|
3772
4429
|
disabled,
|
|
3773
4430
|
[`label-${labelAlign}`]: labelAlign,
|
|
@@ -3779,8 +4436,8 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3779
4436
|
"isLink": props2.isLink,
|
|
3780
4437
|
"clickable": props2.clickable,
|
|
3781
4438
|
"titleStyle": labelStyle.value,
|
|
3782
|
-
"valueClass": bem$
|
|
3783
|
-
"titleClass": [bem$
|
|
4439
|
+
"valueClass": bem$1w("value"),
|
|
4440
|
+
"titleClass": [bem$1w("label", [labelAlign, {
|
|
3784
4441
|
required: props2.required
|
|
3785
4442
|
}]), props2.labelClass],
|
|
3786
4443
|
"arrowDirection": props2.arrowDirection
|
|
@@ -3793,7 +4450,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3793
4450
|
};
|
|
3794
4451
|
}
|
|
3795
4452
|
});
|
|
3796
|
-
const Field = withInstall(stdin_default$
|
|
4453
|
+
const Field = withInstall(stdin_default$1J);
|
|
3797
4454
|
function usePopupState() {
|
|
3798
4455
|
const state = vue.reactive({
|
|
3799
4456
|
show: false
|
|
@@ -3840,7 +4497,7 @@ function lockClick(lock) {
|
|
|
3840
4497
|
}
|
|
3841
4498
|
}
|
|
3842
4499
|
}
|
|
3843
|
-
const [name$
|
|
4500
|
+
const [name$1z, bem$1v] = createNamespace("toast");
|
|
3844
4501
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
3845
4502
|
const toastProps = {
|
|
3846
4503
|
icon: String,
|
|
@@ -3862,8 +4519,8 @@ const toastProps = {
|
|
|
3862
4519
|
closeOnClick: Boolean,
|
|
3863
4520
|
closeOnClickOverlay: Boolean
|
|
3864
4521
|
};
|
|
3865
|
-
var stdin_default$
|
|
3866
|
-
name: name$
|
|
4522
|
+
var stdin_default$1I = vue.defineComponent({
|
|
4523
|
+
name: name$1z,
|
|
3867
4524
|
props: toastProps,
|
|
3868
4525
|
emits: ["update:show"],
|
|
3869
4526
|
setup(props2, {
|
|
@@ -3898,13 +4555,13 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3898
4555
|
return vue.createVNode(Icon, {
|
|
3899
4556
|
"name": icon || type,
|
|
3900
4557
|
"size": iconSize,
|
|
3901
|
-
"class": bem$
|
|
4558
|
+
"class": bem$1v("icon"),
|
|
3902
4559
|
"classPrefix": iconPrefix
|
|
3903
4560
|
}, null);
|
|
3904
4561
|
}
|
|
3905
4562
|
if (type === "loading") {
|
|
3906
4563
|
return vue.createVNode(Loading, {
|
|
3907
|
-
"class": bem$
|
|
4564
|
+
"class": bem$1v("loading"),
|
|
3908
4565
|
"size": iconSize,
|
|
3909
4566
|
"type": loadingType
|
|
3910
4567
|
}, null);
|
|
@@ -3918,10 +4575,10 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3918
4575
|
if (isDef(message) && message !== "") {
|
|
3919
4576
|
return type === "html" ? vue.createVNode("div", {
|
|
3920
4577
|
"key": 0,
|
|
3921
|
-
"class": bem$
|
|
4578
|
+
"class": bem$1v("text"),
|
|
3922
4579
|
"innerHTML": String(message)
|
|
3923
4580
|
}, null) : vue.createVNode("div", {
|
|
3924
|
-
"class": bem$
|
|
4581
|
+
"class": bem$1v("text")
|
|
3925
4582
|
}, [message]);
|
|
3926
4583
|
}
|
|
3927
4584
|
};
|
|
@@ -3937,7 +4594,7 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3937
4594
|
vue.onMounted(toggleClickable);
|
|
3938
4595
|
vue.onUnmounted(toggleClickable);
|
|
3939
4596
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
3940
|
-
"class": [bem$
|
|
4597
|
+
"class": [bem$1v([props2.position, {
|
|
3941
4598
|
[props2.type]: !props2.icon
|
|
3942
4599
|
}]), props2.className],
|
|
3943
4600
|
"lockScroll": false,
|
|
@@ -4006,7 +4663,7 @@ function createInstance() {
|
|
|
4006
4663
|
onClosed,
|
|
4007
4664
|
"onUpdate:show": toggle
|
|
4008
4665
|
};
|
|
4009
|
-
return vue.createVNode(stdin_default$
|
|
4666
|
+
return vue.createVNode(stdin_default$1I, vue.mergeProps(state, attrs), null);
|
|
4010
4667
|
};
|
|
4011
4668
|
vue.watch(message, (val) => {
|
|
4012
4669
|
state.message = val;
|
|
@@ -4078,10 +4735,10 @@ Toast.allowMultiple = (value = true) => {
|
|
|
4078
4735
|
allowMultiple = value;
|
|
4079
4736
|
};
|
|
4080
4737
|
Toast.install = (app) => {
|
|
4081
|
-
app.use(withInstall(stdin_default$
|
|
4738
|
+
app.use(withInstall(stdin_default$1I));
|
|
4082
4739
|
app.config.globalProperties.$toast = Toast;
|
|
4083
4740
|
};
|
|
4084
|
-
const [name$
|
|
4741
|
+
const [name$1y, bem$1u] = createNamespace("switch");
|
|
4085
4742
|
const switchProps = {
|
|
4086
4743
|
size: numericProp,
|
|
4087
4744
|
loading: Boolean,
|
|
@@ -4098,8 +4755,8 @@ const switchProps = {
|
|
|
4098
4755
|
default: false
|
|
4099
4756
|
}
|
|
4100
4757
|
};
|
|
4101
|
-
var stdin_default$
|
|
4102
|
-
name: name$
|
|
4758
|
+
var stdin_default$1H = vue.defineComponent({
|
|
4759
|
+
name: name$1y,
|
|
4103
4760
|
props: switchProps,
|
|
4104
4761
|
emits: ["change", "update:modelValue"],
|
|
4105
4762
|
setup(props2, {
|
|
@@ -4118,7 +4775,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4118
4775
|
if (props2.loading) {
|
|
4119
4776
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
|
4120
4777
|
return vue.createVNode(Loading, {
|
|
4121
|
-
"class": bem$
|
|
4778
|
+
"class": bem$1u("loading"),
|
|
4122
4779
|
"color": color
|
|
4123
4780
|
}, null);
|
|
4124
4781
|
}
|
|
@@ -4143,7 +4800,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4143
4800
|
};
|
|
4144
4801
|
return vue.createVNode("div", {
|
|
4145
4802
|
"role": "switch",
|
|
4146
|
-
"class": bem$
|
|
4803
|
+
"class": bem$1u({
|
|
4147
4804
|
on: checked,
|
|
4148
4805
|
loading,
|
|
4149
4806
|
disabled
|
|
@@ -4153,16 +4810,16 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4153
4810
|
"aria-checked": checked,
|
|
4154
4811
|
"onClick": onClick
|
|
4155
4812
|
}, [vue.createVNode("div", {
|
|
4156
|
-
"class": bem$
|
|
4813
|
+
"class": bem$1u("node")
|
|
4157
4814
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
4158
4815
|
};
|
|
4159
4816
|
}
|
|
4160
4817
|
});
|
|
4161
|
-
const Switch = withInstall(stdin_default$
|
|
4162
|
-
const [name$
|
|
4818
|
+
const Switch = withInstall(stdin_default$1H);
|
|
4819
|
+
const [name$1x, bem$1t] = createNamespace("address-edit-detail");
|
|
4163
4820
|
const t$i = createNamespace("address-edit")[2];
|
|
4164
|
-
var stdin_default$
|
|
4165
|
-
name: name$
|
|
4821
|
+
var stdin_default$1G = vue.defineComponent({
|
|
4822
|
+
name: name$1x,
|
|
4166
4823
|
props: {
|
|
4167
4824
|
show: Boolean,
|
|
4168
4825
|
rows: numericProp,
|
|
@@ -4185,7 +4842,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4185
4842
|
};
|
|
4186
4843
|
const renderSearchTitle = (express) => {
|
|
4187
4844
|
if (express.name) {
|
|
4188
|
-
const text = express.name.replace(props2.value, `<span class=${bem$
|
|
4845
|
+
const text = express.name.replace(props2.value, `<span class=${bem$1t("keyword")}>${props2.value}</span>`);
|
|
4189
4846
|
return vue.createVNode("div", {
|
|
4190
4847
|
"innerHTML": text
|
|
4191
4848
|
}, null);
|
|
@@ -4203,7 +4860,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4203
4860
|
"key": express.name + express.address,
|
|
4204
4861
|
"icon": "location-o",
|
|
4205
4862
|
"label": express.address,
|
|
4206
|
-
"class": bem$
|
|
4863
|
+
"class": bem$1t("search-item"),
|
|
4207
4864
|
"border": false,
|
|
4208
4865
|
"onClick": () => onSelect(express)
|
|
4209
4866
|
}, {
|
|
@@ -4219,7 +4876,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4219
4876
|
"autosize": true,
|
|
4220
4877
|
"clearable": true,
|
|
4221
4878
|
"ref": field,
|
|
4222
|
-
"class": bem$
|
|
4879
|
+
"class": bem$1t(),
|
|
4223
4880
|
"rows": props2.rows,
|
|
4224
4881
|
"type": "textarea",
|
|
4225
4882
|
"rules": props2.rules,
|
|
@@ -4236,7 +4893,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4236
4893
|
};
|
|
4237
4894
|
}
|
|
4238
4895
|
});
|
|
4239
|
-
const [name$
|
|
4896
|
+
const [name$1w, bem$1s, t$h] = createNamespace("address-edit");
|
|
4240
4897
|
const DEFAULT_DATA = {
|
|
4241
4898
|
name: "",
|
|
4242
4899
|
tel: "",
|
|
@@ -4283,8 +4940,8 @@ const addressEditProps = {
|
|
|
4283
4940
|
default: isPostal
|
|
4284
4941
|
}
|
|
4285
4942
|
};
|
|
4286
|
-
var stdin_default$
|
|
4287
|
-
name: name$
|
|
4943
|
+
var stdin_default$1F = vue.defineComponent({
|
|
4944
|
+
name: name$1w,
|
|
4288
4945
|
props: addressEditProps,
|
|
4289
4946
|
emits: ["save", "focus", "delete", "click-area", "change-area", "change-detail", "select-search", "change-default"],
|
|
4290
4947
|
setup(props2, {
|
|
@@ -4410,7 +5067,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4410
5067
|
return vue.withDirectives(vue.createVNode(Cell, {
|
|
4411
5068
|
"center": true,
|
|
4412
5069
|
"title": t$h("defaultAddress"),
|
|
4413
|
-
"class": bem$
|
|
5070
|
+
"class": bem$1s("default")
|
|
4414
5071
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
|
4415
5072
|
}
|
|
4416
5073
|
};
|
|
@@ -4432,13 +5089,13 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4432
5089
|
disableArea
|
|
4433
5090
|
} = props2;
|
|
4434
5091
|
return vue.createVNode(Form, {
|
|
4435
|
-
"class": bem$
|
|
5092
|
+
"class": bem$1s(),
|
|
4436
5093
|
"onSubmit": onSave
|
|
4437
5094
|
}, {
|
|
4438
5095
|
default: () => {
|
|
4439
5096
|
var _a;
|
|
4440
5097
|
return [vue.createVNode("div", {
|
|
4441
|
-
"class": bem$
|
|
5098
|
+
"class": bem$1s("fields")
|
|
4442
5099
|
}, [vue.createVNode(Field, {
|
|
4443
5100
|
"modelValue": data.name,
|
|
4444
5101
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
|
@@ -4469,7 +5126,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4469
5126
|
emit("click-area");
|
|
4470
5127
|
showAreaPopup.value = !disableArea;
|
|
4471
5128
|
}
|
|
4472
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
|
5129
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1G, {
|
|
4473
5130
|
"show": props2.showDetail,
|
|
4474
5131
|
"rows": props2.detailRows,
|
|
4475
5132
|
"rules": rules.value.addressDetail,
|
|
@@ -4480,153 +5137,64 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4480
5137
|
"showSearchResult": props2.showSearchResult,
|
|
4481
5138
|
"onBlur": onDetailBlur,
|
|
4482
5139
|
"onFocus": () => onFocus("addressDetail"),
|
|
4483
|
-
"onInput": onChangeDetail,
|
|
4484
|
-
"onSelect-search": (event) => emit("select-search", event)
|
|
4485
|
-
}, null), props2.showPostal && vue.withDirectives(vue.createVNode(Field, {
|
|
4486
|
-
"modelValue": data.postalCode,
|
|
4487
|
-
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
|
4488
|
-
"type": "tel",
|
|
4489
|
-
"rules": rules.value.postalCode,
|
|
4490
|
-
"label": t$h("postal"),
|
|
4491
|
-
"maxlength": "6",
|
|
4492
|
-
"placeholder": t$h("postal"),
|
|
4493
|
-
"onFocus": () => onFocus("postalCode")
|
|
4494
|
-
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
|
4495
|
-
"class": bem$
|
|
4496
|
-
}, [vue.createVNode(Button, {
|
|
4497
|
-
"block": true,
|
|
4498
|
-
"round": true,
|
|
4499
|
-
"type": "primary",
|
|
4500
|
-
"text": props2.saveButtonText || t$h("save"),
|
|
4501
|
-
"class": bem$
|
|
4502
|
-
"loading": props2.isSaving,
|
|
4503
|
-
"nativeType": "submit"
|
|
4504
|
-
}, null), props2.showDelete && vue.createVNode(Button, {
|
|
4505
|
-
"block": true,
|
|
4506
|
-
"round": true,
|
|
4507
|
-
"class": bem$
|
|
4508
|
-
"loading": props2.isDeleting,
|
|
4509
|
-
"text": props2.deleteButtonText || t$h("delete"),
|
|
4510
|
-
"onClick": onDelete
|
|
4511
|
-
}, null)]), [[vue.vShow, !hideBottomFields.value]]), vue.createVNode(Popup, {
|
|
4512
|
-
"show": showAreaPopup.value,
|
|
4513
|
-
"onUpdate:show": ($event) => showAreaPopup.value = $event,
|
|
4514
|
-
"round": true,
|
|
4515
|
-
"teleport": "body",
|
|
4516
|
-
"position": "bottom",
|
|
4517
|
-
"lazyRender": false
|
|
4518
|
-
}, {
|
|
4519
|
-
default: () => [vue.createVNode(Area, {
|
|
4520
|
-
"ref": areaRef,
|
|
4521
|
-
"value": data.areaCode,
|
|
4522
|
-
"loading": !areaListLoaded.value,
|
|
4523
|
-
"areaList": props2.areaList,
|
|
4524
|
-
"columnsPlaceholder": props2.areaColumnsPlaceholder,
|
|
4525
|
-
"onConfirm": onAreaConfirm,
|
|
4526
|
-
"onCancel": () => {
|
|
4527
|
-
showAreaPopup.value = false;
|
|
4528
|
-
}
|
|
4529
|
-
}, null)]
|
|
4530
|
-
})];
|
|
4531
|
-
}
|
|
4532
|
-
});
|
|
4533
|
-
};
|
|
4534
|
-
}
|
|
4535
|
-
});
|
|
4536
|
-
const AddressEdit = withInstall(stdin_default$1I);
|
|
4537
|
-
const RadioGroup = withInstall(stdin_default$1Q);
|
|
4538
|
-
const [name$1y, bem$1u] = createNamespace("tag");
|
|
4539
|
-
const tagProps = {
|
|
4540
|
-
size: makeStringProp("medium"),
|
|
4541
|
-
mark: Boolean,
|
|
4542
|
-
show: truthProp,
|
|
4543
|
-
type: makeStringProp("gray"),
|
|
4544
|
-
color: String,
|
|
4545
|
-
plain: Boolean,
|
|
4546
|
-
round: Boolean,
|
|
4547
|
-
textColor: String,
|
|
4548
|
-
closeable: Boolean,
|
|
4549
|
-
rightIcon: String,
|
|
4550
|
-
number: [String, Number],
|
|
4551
|
-
showNumber: Boolean,
|
|
4552
|
-
numberColor: String
|
|
4553
|
-
};
|
|
4554
|
-
var stdin_default$1H = vue.defineComponent({
|
|
4555
|
-
name: name$1y,
|
|
4556
|
-
props: tagProps,
|
|
4557
|
-
emits: ["close"],
|
|
4558
|
-
setup(props2, {
|
|
4559
|
-
slots,
|
|
4560
|
-
emit
|
|
4561
|
-
}) {
|
|
4562
|
-
const onClose = (event) => {
|
|
4563
|
-
event.stopPropagation();
|
|
4564
|
-
emit("close", event);
|
|
4565
|
-
};
|
|
4566
|
-
const getStyle = () => {
|
|
4567
|
-
if (props2.plain) {
|
|
4568
|
-
return {
|
|
4569
|
-
color: props2.textColor || props2.color,
|
|
4570
|
-
borderColor: props2.color
|
|
4571
|
-
};
|
|
4572
|
-
}
|
|
4573
|
-
return {
|
|
4574
|
-
color: props2.textColor,
|
|
4575
|
-
background: props2.color
|
|
4576
|
-
};
|
|
4577
|
-
};
|
|
4578
|
-
const renderTag = () => {
|
|
4579
|
-
var _a;
|
|
4580
|
-
const {
|
|
4581
|
-
type,
|
|
4582
|
-
mark,
|
|
4583
|
-
plain,
|
|
4584
|
-
round,
|
|
4585
|
-
size,
|
|
4586
|
-
closeable,
|
|
4587
|
-
rightIcon,
|
|
4588
|
-
number,
|
|
4589
|
-
showNumber,
|
|
4590
|
-
numberColor
|
|
4591
|
-
} = props2;
|
|
4592
|
-
const classes = {
|
|
4593
|
-
mark,
|
|
4594
|
-
plain,
|
|
4595
|
-
round
|
|
4596
|
-
};
|
|
4597
|
-
if (size) {
|
|
4598
|
-
classes[size] = size;
|
|
4599
|
-
}
|
|
4600
|
-
const CloseIcon = closeable && vue.createVNode(Icon, {
|
|
4601
|
-
"name": "cross",
|
|
4602
|
-
"class": [bem$1u("close"), HAPTICS_FEEDBACK],
|
|
4603
|
-
"onClick": onClose
|
|
4604
|
-
}, null);
|
|
4605
|
-
const RightIcon = rightIcon && vue.createVNode(Icon, {
|
|
4606
|
-
"name": rightIcon,
|
|
4607
|
-
"class": bem$1u("right-icon")
|
|
4608
|
-
}, null);
|
|
4609
|
-
return vue.createVNode("span", {
|
|
4610
|
-
"style": getStyle(),
|
|
4611
|
-
"class": bem$1u([classes, type])
|
|
4612
|
-
}, [showNumber && number !== void 0 && vue.createVNode("span", {
|
|
4613
|
-
"class": bem$1u("number"),
|
|
4614
|
-
"style": {
|
|
4615
|
-
color: numberColor
|
|
5140
|
+
"onInput": onChangeDetail,
|
|
5141
|
+
"onSelect-search": (event) => emit("select-search", event)
|
|
5142
|
+
}, null), props2.showPostal && vue.withDirectives(vue.createVNode(Field, {
|
|
5143
|
+
"modelValue": data.postalCode,
|
|
5144
|
+
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
|
5145
|
+
"type": "tel",
|
|
5146
|
+
"rules": rules.value.postalCode,
|
|
5147
|
+
"label": t$h("postal"),
|
|
5148
|
+
"maxlength": "6",
|
|
5149
|
+
"placeholder": t$h("postal"),
|
|
5150
|
+
"onFocus": () => onFocus("postalCode")
|
|
5151
|
+
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
|
5152
|
+
"class": bem$1s("buttons")
|
|
5153
|
+
}, [vue.createVNode(Button, {
|
|
5154
|
+
"block": true,
|
|
5155
|
+
"round": true,
|
|
5156
|
+
"type": "primary",
|
|
5157
|
+
"text": props2.saveButtonText || t$h("save"),
|
|
5158
|
+
"class": bem$1s("button"),
|
|
5159
|
+
"loading": props2.isSaving,
|
|
5160
|
+
"nativeType": "submit"
|
|
5161
|
+
}, null), props2.showDelete && vue.createVNode(Button, {
|
|
5162
|
+
"block": true,
|
|
5163
|
+
"round": true,
|
|
5164
|
+
"class": bem$1s("button"),
|
|
5165
|
+
"loading": props2.isDeleting,
|
|
5166
|
+
"text": props2.deleteButtonText || t$h("delete"),
|
|
5167
|
+
"onClick": onDelete
|
|
5168
|
+
}, null)]), [[vue.vShow, !hideBottomFields.value]]), vue.createVNode(Popup, {
|
|
5169
|
+
"show": showAreaPopup.value,
|
|
5170
|
+
"onUpdate:show": ($event) => showAreaPopup.value = $event,
|
|
5171
|
+
"round": true,
|
|
5172
|
+
"teleport": "body",
|
|
5173
|
+
"position": "bottom",
|
|
5174
|
+
"lazyRender": false
|
|
5175
|
+
}, {
|
|
5176
|
+
default: () => [vue.createVNode(Area, {
|
|
5177
|
+
"ref": areaRef,
|
|
5178
|
+
"value": data.areaCode,
|
|
5179
|
+
"loading": !areaListLoaded.value,
|
|
5180
|
+
"areaList": props2.areaList,
|
|
5181
|
+
"columnsPlaceholder": props2.areaColumnsPlaceholder,
|
|
5182
|
+
"onConfirm": onAreaConfirm,
|
|
5183
|
+
"onCancel": () => {
|
|
5184
|
+
showAreaPopup.value = false;
|
|
5185
|
+
}
|
|
5186
|
+
}, null)]
|
|
5187
|
+
})];
|
|
4616
5188
|
}
|
|
4617
|
-
}
|
|
5189
|
+
});
|
|
4618
5190
|
};
|
|
4619
|
-
return () => vue.createVNode(vue.Transition, {
|
|
4620
|
-
"name": props2.closeable ? "van-fade" : void 0
|
|
4621
|
-
}, {
|
|
4622
|
-
default: () => [props2.show ? renderTag() : null]
|
|
4623
|
-
});
|
|
4624
5191
|
}
|
|
4625
5192
|
});
|
|
4626
|
-
const
|
|
4627
|
-
const
|
|
4628
|
-
|
|
4629
|
-
|
|
5193
|
+
const AddressEdit = withInstall(stdin_default$1F);
|
|
5194
|
+
const RadioGroup = withInstall(stdin_default$1O);
|
|
5195
|
+
const [name$1v, bem$1r] = createNamespace("address-item");
|
|
5196
|
+
var stdin_default$1E = vue.defineComponent({
|
|
5197
|
+
name: name$1v,
|
|
4630
5198
|
props: {
|
|
4631
5199
|
address: makeRequiredProp(Object),
|
|
4632
5200
|
disabled: Boolean,
|
|
@@ -4646,7 +5214,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4646
5214
|
};
|
|
4647
5215
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
|
4648
5216
|
"name": "edit",
|
|
4649
|
-
"class": bem$
|
|
5217
|
+
"class": bem$1r("edit"),
|
|
4650
5218
|
"onClick": (event) => {
|
|
4651
5219
|
event.stopPropagation();
|
|
4652
5220
|
emit("edit");
|
|
@@ -4661,7 +5229,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4661
5229
|
return vue.createVNode(Tag, {
|
|
4662
5230
|
"type": "danger",
|
|
4663
5231
|
"round": true,
|
|
4664
|
-
"class": bem$
|
|
5232
|
+
"class": bem$1r("tag")
|
|
4665
5233
|
}, {
|
|
4666
5234
|
default: () => [props2.defaultTagText]
|
|
4667
5235
|
});
|
|
@@ -4674,9 +5242,9 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4674
5242
|
switchable
|
|
4675
5243
|
} = props2;
|
|
4676
5244
|
const Info = [vue.createVNode("div", {
|
|
4677
|
-
"class": bem$
|
|
5245
|
+
"class": bem$1r("name")
|
|
4678
5246
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
|
4679
|
-
"class": bem$
|
|
5247
|
+
"class": bem$1r("address")
|
|
4680
5248
|
}, [address.address])];
|
|
4681
5249
|
if (switchable && !disabled) {
|
|
4682
5250
|
return vue.createVNode(Radio, {
|
|
@@ -4694,13 +5262,13 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4694
5262
|
disabled
|
|
4695
5263
|
} = props2;
|
|
4696
5264
|
return vue.createVNode("div", {
|
|
4697
|
-
"class": bem$
|
|
5265
|
+
"class": bem$1r({
|
|
4698
5266
|
disabled
|
|
4699
5267
|
}),
|
|
4700
5268
|
"onClick": onClick
|
|
4701
5269
|
}, [vue.createVNode(Cell, {
|
|
4702
5270
|
"border": false,
|
|
4703
|
-
"valueClass": bem$
|
|
5271
|
+
"valueClass": bem$1r("value")
|
|
4704
5272
|
}, {
|
|
4705
5273
|
value: renderContent,
|
|
4706
5274
|
"right-icon": renderRightIcon
|
|
@@ -4710,7 +5278,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4710
5278
|
};
|
|
4711
5279
|
}
|
|
4712
5280
|
});
|
|
4713
|
-
const [name$
|
|
5281
|
+
const [name$1u, bem$1q, t$g] = createNamespace("address-list");
|
|
4714
5282
|
const addressListProps = {
|
|
4715
5283
|
list: makeArrayProp(),
|
|
4716
5284
|
modelValue: numericProp,
|
|
@@ -4720,8 +5288,8 @@ const addressListProps = {
|
|
|
4720
5288
|
addButtonText: String,
|
|
4721
5289
|
defaultTagText: String
|
|
4722
5290
|
};
|
|
4723
|
-
var stdin_default$
|
|
4724
|
-
name: name$
|
|
5291
|
+
var stdin_default$1D = vue.defineComponent({
|
|
5292
|
+
name: name$1u,
|
|
4725
5293
|
props: addressListProps,
|
|
4726
5294
|
emits: ["add", "edit", "select", "click-item", "edit-disabled", "select-disabled", "update:modelValue"],
|
|
4727
5295
|
setup(props2, {
|
|
@@ -4737,7 +5305,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4737
5305
|
emit("update:modelValue", item.id);
|
|
4738
5306
|
}
|
|
4739
5307
|
};
|
|
4740
|
-
return vue.createVNode(stdin_default$
|
|
5308
|
+
return vue.createVNode(stdin_default$1E, {
|
|
4741
5309
|
"key": item.id,
|
|
4742
5310
|
"address": item,
|
|
4743
5311
|
"disabled": disabled,
|
|
@@ -4757,13 +5325,13 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4757
5325
|
}
|
|
4758
5326
|
};
|
|
4759
5327
|
const renderBottom = () => vue.createVNode("div", {
|
|
4760
|
-
"class": [bem$
|
|
5328
|
+
"class": [bem$1q("bottom"), "van-safe-area-bottom"]
|
|
4761
5329
|
}, [vue.createVNode(Button, {
|
|
4762
5330
|
"round": true,
|
|
4763
5331
|
"block": true,
|
|
4764
5332
|
"type": "primary",
|
|
4765
5333
|
"text": props2.addButtonText || t$g("add"),
|
|
4766
|
-
"class": bem$
|
|
5334
|
+
"class": bem$1q("add"),
|
|
4767
5335
|
"onClick": () => emit("add")
|
|
4768
5336
|
}, null)]);
|
|
4769
5337
|
return () => {
|
|
@@ -4771,10 +5339,10 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4771
5339
|
const List2 = renderList(props2.list);
|
|
4772
5340
|
const DisabledList = renderList(props2.disabledList, true);
|
|
4773
5341
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
|
4774
|
-
"class": bem$
|
|
5342
|
+
"class": bem$1q("disabled-text")
|
|
4775
5343
|
}, [props2.disabledText]);
|
|
4776
5344
|
return vue.createVNode("div", {
|
|
4777
|
-
"class": bem$
|
|
5345
|
+
"class": bem$1q()
|
|
4778
5346
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
|
4779
5347
|
"modelValue": props2.modelValue
|
|
4780
5348
|
}, {
|
|
@@ -4783,13 +5351,13 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4783
5351
|
};
|
|
4784
5352
|
}
|
|
4785
5353
|
});
|
|
4786
|
-
const AddressList = withInstall(stdin_default$
|
|
4787
|
-
const [name$
|
|
5354
|
+
const AddressList = withInstall(stdin_default$1D);
|
|
5355
|
+
const [name$1t, bem$1p] = createNamespace("background");
|
|
4788
5356
|
const backgroundProps = {
|
|
4789
5357
|
theme: makeStringProp("default")
|
|
4790
5358
|
};
|
|
4791
|
-
var stdin_default$
|
|
4792
|
-
name: name$
|
|
5359
|
+
var stdin_default$1C = vue.defineComponent({
|
|
5360
|
+
name: name$1t,
|
|
4793
5361
|
props: backgroundProps,
|
|
4794
5362
|
setup(props2, {
|
|
4795
5363
|
slots
|
|
@@ -4797,13 +5365,13 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
4797
5365
|
return () => {
|
|
4798
5366
|
var _a;
|
|
4799
5367
|
return vue.createVNode("div", {
|
|
4800
|
-
"class": bem$
|
|
5368
|
+
"class": bem$1p([props2.theme])
|
|
4801
5369
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
4802
5370
|
};
|
|
4803
5371
|
}
|
|
4804
5372
|
});
|
|
4805
|
-
const Background = withInstall(stdin_default$
|
|
4806
|
-
const [name$
|
|
5373
|
+
const Background = withInstall(stdin_default$1C);
|
|
5374
|
+
const [name$1s, bem$1o] = createNamespace("blue-mark");
|
|
4807
5375
|
const blueMarkProps = {
|
|
4808
5376
|
size: {
|
|
4809
5377
|
type: String,
|
|
@@ -4817,8 +5385,8 @@ const blueMarkProps = {
|
|
|
4817
5385
|
gap: numericProp,
|
|
4818
5386
|
isLink: Boolean
|
|
4819
5387
|
};
|
|
4820
|
-
var stdin_default$
|
|
4821
|
-
name: name$
|
|
5388
|
+
var stdin_default$1B = vue.defineComponent({
|
|
5389
|
+
name: name$1s,
|
|
4822
5390
|
props: blueMarkProps,
|
|
4823
5391
|
emits: ["click"],
|
|
4824
5392
|
setup(props2, {
|
|
@@ -4836,30 +5404,30 @@ var stdin_default$1D = vue.defineComponent({
|
|
|
4836
5404
|
return () => {
|
|
4837
5405
|
var _a;
|
|
4838
5406
|
return vue.createVNode("span", {
|
|
4839
|
-
"class": [name$
|
|
5407
|
+
"class": [name$1s, props2.size === "normal" ? "" : `${name$1s}--${props2.size}`, props2.isLink ? `${name$1s}--link` : ""],
|
|
4840
5408
|
"style": style.value,
|
|
4841
5409
|
"onClick": props2.isLink ? (event) => emit("click", event) : void 0
|
|
4842
5410
|
}, [vue.createVNode("span", {
|
|
4843
|
-
"class": bem$
|
|
5411
|
+
"class": bem$1o("main")
|
|
4844
5412
|
}, [vue.createVNode("span", {
|
|
4845
|
-
"class": bem$
|
|
5413
|
+
"class": bem$1o("mark")
|
|
4846
5414
|
}, null), vue.createVNode("span", {
|
|
4847
|
-
"class": bem$
|
|
5415
|
+
"class": bem$1o("content")
|
|
4848
5416
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$22, {
|
|
4849
5417
|
"name": "arrow",
|
|
4850
|
-
"class": bem$
|
|
5418
|
+
"class": bem$1o("arrow")
|
|
4851
5419
|
}, null)]);
|
|
4852
5420
|
};
|
|
4853
5421
|
}
|
|
4854
5422
|
});
|
|
4855
|
-
const [name$
|
|
5423
|
+
const [name$1r, bem$1n] = createNamespace("divider");
|
|
4856
5424
|
const dividerProps = {
|
|
4857
5425
|
dashed: Boolean,
|
|
4858
5426
|
hairline: truthProp,
|
|
4859
5427
|
contentPosition: makeStringProp("center")
|
|
4860
5428
|
};
|
|
4861
|
-
var stdin_default$
|
|
4862
|
-
name: name$
|
|
5429
|
+
var stdin_default$1A = vue.defineComponent({
|
|
5430
|
+
name: name$1r,
|
|
4863
5431
|
props: dividerProps,
|
|
4864
5432
|
setup(props2, {
|
|
4865
5433
|
slots
|
|
@@ -4868,7 +5436,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4868
5436
|
var _a;
|
|
4869
5437
|
return vue.createVNode("div", {
|
|
4870
5438
|
"role": "separator",
|
|
4871
|
-
"class": bem$
|
|
5439
|
+
"class": bem$1n({
|
|
4872
5440
|
dashed: props2.dashed,
|
|
4873
5441
|
hairline: props2.hairline,
|
|
4874
5442
|
[`content-${props2.contentPosition}`]: !!slots.default
|
|
@@ -4877,16 +5445,16 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4877
5445
|
};
|
|
4878
5446
|
}
|
|
4879
5447
|
});
|
|
4880
|
-
const Divider = withInstall(stdin_default$
|
|
4881
|
-
const [name$
|
|
5448
|
+
const Divider = withInstall(stdin_default$1A);
|
|
5449
|
+
const [name$1q, bem$1m] = createNamespace("collapse-toggle");
|
|
4882
5450
|
const collapseToggleProps = {
|
|
4883
5451
|
modelValue: Boolean,
|
|
4884
5452
|
divider: Boolean,
|
|
4885
5453
|
expandText: makeStringProp("展开"),
|
|
4886
5454
|
collapseText: makeStringProp("收起")
|
|
4887
5455
|
};
|
|
4888
|
-
var stdin_default$
|
|
4889
|
-
name: name$
|
|
5456
|
+
var stdin_default$1z = vue.defineComponent({
|
|
5457
|
+
name: name$1q,
|
|
4890
5458
|
props: collapseToggleProps,
|
|
4891
5459
|
emits: ["update:modelValue", "change"],
|
|
4892
5460
|
setup(props2, {
|
|
@@ -4905,7 +5473,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4905
5473
|
const text = expanded ? props2.collapseText : props2.expandText;
|
|
4906
5474
|
return vue.createVNode("button", {
|
|
4907
5475
|
"type": "button",
|
|
4908
|
-
"class": bem$
|
|
5476
|
+
"class": bem$1m({
|
|
4909
5477
|
expanded
|
|
4910
5478
|
}),
|
|
4911
5479
|
"aria-expanded": expanded,
|
|
@@ -4915,20 +5483,20 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4915
5483
|
text
|
|
4916
5484
|
})) || text]), vue.createVNode(Icon, {
|
|
4917
5485
|
"name": "arrow-down",
|
|
4918
|
-
"class": bem$
|
|
5486
|
+
"class": bem$1m("icon")
|
|
4919
5487
|
}, null)]);
|
|
4920
5488
|
};
|
|
4921
5489
|
return () => {
|
|
4922
5490
|
if (props2.divider) {
|
|
4923
5491
|
return vue.createVNode("div", {
|
|
4924
|
-
"class": bem$
|
|
5492
|
+
"class": bem$1m("divider")
|
|
4925
5493
|
}, [vue.createVNode(Divider, null, null), renderToggle(), vue.createVNode(Divider, null, null)]);
|
|
4926
5494
|
}
|
|
4927
5495
|
return renderToggle();
|
|
4928
5496
|
};
|
|
4929
5497
|
}
|
|
4930
5498
|
});
|
|
4931
|
-
const [name$
|
|
5499
|
+
const [name$1p, bem$1l] = createNamespace("blue-mark-header");
|
|
4932
5500
|
const blueMarkHeaderProps = {
|
|
4933
5501
|
title: numericProp,
|
|
4934
5502
|
size: {
|
|
@@ -4942,8 +5510,8 @@ const blueMarkHeaderProps = {
|
|
|
4942
5510
|
expandText: String,
|
|
4943
5511
|
collapseText: String
|
|
4944
5512
|
};
|
|
4945
|
-
var stdin_default$
|
|
4946
|
-
name: name$
|
|
5513
|
+
var stdin_default$1y = vue.defineComponent({
|
|
5514
|
+
name: name$1p,
|
|
4947
5515
|
props: blueMarkHeaderProps,
|
|
4948
5516
|
emits: ["click-action", "update:modelValue", "change"],
|
|
4949
5517
|
setup(props2, {
|
|
@@ -4958,226 +5526,56 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4958
5526
|
if (props2.expandable) {
|
|
4959
5527
|
onChange(!props2.modelValue);
|
|
4960
5528
|
}
|
|
4961
|
-
};
|
|
4962
|
-
const onHeaderKeydown = (event) => {
|
|
4963
|
-
if (props2.expandable && (event.key === "Enter" || event.key === " ")) {
|
|
4964
|
-
event.preventDefault();
|
|
4965
|
-
onHeaderClick();
|
|
4966
|
-
}
|
|
4967
|
-
};
|
|
4968
|
-
return () => {
|
|
4969
|
-
var _a;
|
|
4970
|
-
return vue.createVNode("div", {
|
|
4971
|
-
"class": bem$1n({
|
|
4972
|
-
expandable: props2.expandable
|
|
4973
|
-
}),
|
|
4974
|
-
"role": props2.expandable ? "button" : void 0,
|
|
4975
|
-
"tabindex": props2.expandable ? 0 : void 0,
|
|
4976
|
-
"aria-expanded": props2.expandable ? props2.modelValue : void 0,
|
|
4977
|
-
"onClick": onHeaderClick,
|
|
4978
|
-
"onKeydown": onHeaderKeydown
|
|
4979
|
-
}, [vue.createVNode("div", {
|
|
4980
|
-
"class": bem$1n("main")
|
|
4981
|
-
}, [vue.createVNode(stdin_default$1D, {
|
|
4982
|
-
"size": props2.size,
|
|
4983
|
-
"class": bem$1n("title")
|
|
4984
|
-
}, {
|
|
4985
|
-
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
4986
|
-
}), props2.required && vue.createVNode("span", {
|
|
4987
|
-
"class": bem$1n("required")
|
|
4988
|
-
}, [vue.createTextVNode("*")]), slots.action ? vue.createVNode("span", {
|
|
4989
|
-
"class": bem$1n("action"),
|
|
4990
|
-
"onClick": (event) => event.stopPropagation()
|
|
4991
|
-
}, [slots.action()]) : props2.actionText ? vue.createVNode("button", {
|
|
4992
|
-
"type": "button",
|
|
4993
|
-
"class": bem$1n("action"),
|
|
4994
|
-
"onClick": (event) => {
|
|
4995
|
-
event.stopPropagation();
|
|
4996
|
-
emit("click-action");
|
|
4997
|
-
}
|
|
4998
|
-
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$1B, {
|
|
4999
|
-
"modelValue": props2.modelValue,
|
|
5000
|
-
"expandText": props2.expandText,
|
|
5001
|
-
"collapseText": props2.collapseText,
|
|
5002
|
-
"onUpdate:modelValue": onChange
|
|
5003
|
-
}, null)]);
|
|
5004
|
-
};
|
|
5005
|
-
}
|
|
5006
|
-
});
|
|
5007
|
-
const BlueMark = withInstall(stdin_default$1D);
|
|
5008
|
-
const BlueMarkHeader = withInstall(stdin_default$1A);
|
|
5009
|
-
const CollapseToggle = withInstall(stdin_default$1B);
|
|
5010
|
-
const [name$1q, bem$1m] = createNamespace("popover");
|
|
5011
|
-
const popupProps$2 = ["show", "overlay", "duration", "teleport", "overlayStyle", "overlayClass", "closeOnClickOverlay"];
|
|
5012
|
-
const popoverProps = {
|
|
5013
|
-
show: Boolean,
|
|
5014
|
-
theme: makeStringProp("light"),
|
|
5015
|
-
overlay: Boolean,
|
|
5016
|
-
actions: makeArrayProp(),
|
|
5017
|
-
trigger: makeStringProp("click"),
|
|
5018
|
-
duration: numericProp,
|
|
5019
|
-
showArrow: truthProp,
|
|
5020
|
-
placement: makeStringProp("bottom"),
|
|
5021
|
-
iconPrefix: String,
|
|
5022
|
-
overlayClass: unknownProp,
|
|
5023
|
-
overlayStyle: Object,
|
|
5024
|
-
closeOnClickAction: truthProp,
|
|
5025
|
-
closeOnClickOverlay: truthProp,
|
|
5026
|
-
closeOnClickOutside: truthProp,
|
|
5027
|
-
offset: {
|
|
5028
|
-
type: Array,
|
|
5029
|
-
default: () => [0, 8]
|
|
5030
|
-
},
|
|
5031
|
-
teleport: {
|
|
5032
|
-
type: [String, Object],
|
|
5033
|
-
default: "body"
|
|
5034
|
-
}
|
|
5035
|
-
};
|
|
5036
|
-
var stdin_default$1z = vue.defineComponent({
|
|
5037
|
-
name: name$1q,
|
|
5038
|
-
props: popoverProps,
|
|
5039
|
-
emits: ["select", "touchstart", "update:show"],
|
|
5040
|
-
setup(props2, {
|
|
5041
|
-
emit,
|
|
5042
|
-
slots,
|
|
5043
|
-
attrs
|
|
5044
|
-
}) {
|
|
5045
|
-
let popper;
|
|
5046
|
-
const popupRef = vue.ref();
|
|
5047
|
-
const wrapperRef = vue.ref();
|
|
5048
|
-
const popoverRef = vue.ref();
|
|
5049
|
-
const getPopoverOptions = () => ({
|
|
5050
|
-
placement: props2.placement,
|
|
5051
|
-
modifiers: [{
|
|
5052
|
-
name: "computeStyles",
|
|
5053
|
-
options: {
|
|
5054
|
-
adaptive: false,
|
|
5055
|
-
gpuAcceleration: false
|
|
5056
|
-
}
|
|
5057
|
-
}, extend({}, popperjs.offsetModifier, {
|
|
5058
|
-
options: {
|
|
5059
|
-
offset: props2.offset
|
|
5060
|
-
}
|
|
5061
|
-
})]
|
|
5062
|
-
});
|
|
5063
|
-
const createPopperInstance = () => {
|
|
5064
|
-
if (wrapperRef.value && popoverRef.value) {
|
|
5065
|
-
return popperjs.createPopper(wrapperRef.value, popoverRef.value.popupRef.value, getPopoverOptions());
|
|
5066
|
-
}
|
|
5067
|
-
return null;
|
|
5068
|
-
};
|
|
5069
|
-
const updateLocation = () => {
|
|
5070
|
-
vue.nextTick(() => {
|
|
5071
|
-
if (!props2.show) {
|
|
5072
|
-
return;
|
|
5073
|
-
}
|
|
5074
|
-
if (!popper) {
|
|
5075
|
-
popper = createPopperInstance();
|
|
5076
|
-
} else {
|
|
5077
|
-
popper.setOptions(getPopoverOptions());
|
|
5078
|
-
}
|
|
5079
|
-
});
|
|
5080
|
-
};
|
|
5081
|
-
const updateShow = (value) => emit("update:show", value);
|
|
5082
|
-
const onClickWrapper = () => {
|
|
5083
|
-
if (props2.trigger === "click") {
|
|
5084
|
-
updateShow(!props2.show);
|
|
5085
|
-
}
|
|
5086
|
-
};
|
|
5087
|
-
const onClickAction = (action, index) => {
|
|
5088
|
-
if (action.disabled) {
|
|
5089
|
-
return;
|
|
5090
|
-
}
|
|
5091
|
-
emit("select", action, index);
|
|
5092
|
-
if (props2.closeOnClickAction) {
|
|
5093
|
-
updateShow(false);
|
|
5094
|
-
}
|
|
5095
|
-
};
|
|
5096
|
-
const onClickAway = () => {
|
|
5097
|
-
if (props2.show && props2.closeOnClickOutside && (!props2.overlay || props2.closeOnClickOverlay)) {
|
|
5098
|
-
updateShow(false);
|
|
5099
|
-
}
|
|
5100
|
-
};
|
|
5101
|
-
const renderActionContent = (action, index) => {
|
|
5102
|
-
if (slots.action) {
|
|
5103
|
-
return slots.action({
|
|
5104
|
-
action,
|
|
5105
|
-
index
|
|
5106
|
-
});
|
|
5107
|
-
}
|
|
5108
|
-
return [action.icon && vue.createVNode("div", {
|
|
5109
|
-
"class": bem$1m("action-icon")
|
|
5110
|
-
}, [vue.createVNode(Icon, {
|
|
5111
|
-
"name": action.icon,
|
|
5112
|
-
"classPrefix": props2.iconPrefix
|
|
5113
|
-
}, null)]), vue.createVNode("div", {
|
|
5114
|
-
"class": [bem$1m("action-text"), BORDER_BOTTOM]
|
|
5115
|
-
}, [action.text])];
|
|
5116
|
-
};
|
|
5117
|
-
const renderAction = (action, index) => {
|
|
5118
|
-
const {
|
|
5119
|
-
icon,
|
|
5120
|
-
color,
|
|
5121
|
-
disabled,
|
|
5122
|
-
className
|
|
5123
|
-
} = action;
|
|
5124
|
-
return vue.createVNode("div", {
|
|
5125
|
-
"role": "menuitem",
|
|
5126
|
-
"class": [bem$1m("action", {
|
|
5127
|
-
disabled,
|
|
5128
|
-
"with-icon": icon
|
|
5129
|
-
}), className],
|
|
5130
|
-
"style": {
|
|
5131
|
-
color
|
|
5132
|
-
},
|
|
5133
|
-
"tabindex": disabled ? void 0 : 0,
|
|
5134
|
-
"aria-disabled": disabled || void 0,
|
|
5135
|
-
"onClick": () => onClickAction(action, index)
|
|
5136
|
-
}, [renderActionContent(action, index)]);
|
|
5137
|
-
};
|
|
5138
|
-
vue.onMounted(() => {
|
|
5139
|
-
updateLocation();
|
|
5140
|
-
vue.watchEffect(() => {
|
|
5141
|
-
var _a;
|
|
5142
|
-
popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
|
|
5143
|
-
});
|
|
5144
|
-
});
|
|
5145
|
-
vue.onBeforeUnmount(() => {
|
|
5146
|
-
if (popper) {
|
|
5147
|
-
popper.destroy();
|
|
5148
|
-
popper = null;
|
|
5149
|
-
}
|
|
5150
|
-
});
|
|
5151
|
-
vue.watch(() => [props2.show, props2.offset, props2.placement], updateLocation);
|
|
5152
|
-
use.useClickAway([wrapperRef, popupRef], onClickAway, {
|
|
5153
|
-
eventName: "touchstart"
|
|
5154
|
-
});
|
|
5529
|
+
};
|
|
5530
|
+
const onHeaderKeydown = (event) => {
|
|
5531
|
+
if (props2.expandable && (event.key === "Enter" || event.key === " ")) {
|
|
5532
|
+
event.preventDefault();
|
|
5533
|
+
onHeaderClick();
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5155
5536
|
return () => {
|
|
5156
5537
|
var _a;
|
|
5157
|
-
return vue.createVNode(
|
|
5158
|
-
"
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
"
|
|
5163
|
-
"
|
|
5164
|
-
"
|
|
5165
|
-
"
|
|
5166
|
-
|
|
5167
|
-
"
|
|
5168
|
-
},
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
})])
|
|
5538
|
+
return vue.createVNode("div", {
|
|
5539
|
+
"class": bem$1l({
|
|
5540
|
+
expandable: props2.expandable
|
|
5541
|
+
}),
|
|
5542
|
+
"role": props2.expandable ? "button" : void 0,
|
|
5543
|
+
"tabindex": props2.expandable ? 0 : void 0,
|
|
5544
|
+
"aria-expanded": props2.expandable ? props2.modelValue : void 0,
|
|
5545
|
+
"onClick": onHeaderClick,
|
|
5546
|
+
"onKeydown": onHeaderKeydown
|
|
5547
|
+
}, [vue.createVNode("div", {
|
|
5548
|
+
"class": bem$1l("main")
|
|
5549
|
+
}, [vue.createVNode(stdin_default$1B, {
|
|
5550
|
+
"size": props2.size,
|
|
5551
|
+
"class": bem$1l("title")
|
|
5552
|
+
}, {
|
|
5553
|
+
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
5554
|
+
}), props2.required && vue.createVNode("span", {
|
|
5555
|
+
"class": bem$1l("required")
|
|
5556
|
+
}, [vue.createTextVNode("*")]), slots.action ? vue.createVNode("span", {
|
|
5557
|
+
"class": bem$1l("action"),
|
|
5558
|
+
"onClick": (event) => event.stopPropagation()
|
|
5559
|
+
}, [slots.action()]) : props2.actionText ? vue.createVNode("button", {
|
|
5560
|
+
"type": "button",
|
|
5561
|
+
"class": bem$1l("action"),
|
|
5562
|
+
"onClick": (event) => {
|
|
5563
|
+
event.stopPropagation();
|
|
5564
|
+
emit("click-action");
|
|
5565
|
+
}
|
|
5566
|
+
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$1z, {
|
|
5567
|
+
"modelValue": props2.modelValue,
|
|
5568
|
+
"expandText": props2.expandText,
|
|
5569
|
+
"collapseText": props2.collapseText,
|
|
5570
|
+
"onUpdate:modelValue": onChange
|
|
5571
|
+
}, null)]);
|
|
5176
5572
|
};
|
|
5177
5573
|
}
|
|
5178
5574
|
});
|
|
5179
|
-
const
|
|
5180
|
-
const
|
|
5575
|
+
const BlueMark = withInstall(stdin_default$1B);
|
|
5576
|
+
const BlueMarkHeader = withInstall(stdin_default$1y);
|
|
5577
|
+
const CollapseToggle = withInstall(stdin_default$1z);
|
|
5578
|
+
const [name$1o, bem$1k] = createNamespace("bottom-action-bar");
|
|
5181
5579
|
const bottomActionBarProps = {
|
|
5182
5580
|
confirmText: makeStringProp("确定"),
|
|
5183
5581
|
confirmType: makeStringProp("primary"),
|
|
@@ -5204,8 +5602,8 @@ const bottomActionBarProps = {
|
|
|
5204
5602
|
checkboxActionDisabled: Boolean,
|
|
5205
5603
|
checkboxActionText: makeStringProp("保存为我的默认筛选")
|
|
5206
5604
|
};
|
|
5207
|
-
var stdin_default$
|
|
5208
|
-
name: name$
|
|
5605
|
+
var stdin_default$1x = vue.defineComponent({
|
|
5606
|
+
name: name$1o,
|
|
5209
5607
|
props: bottomActionBarProps,
|
|
5210
5608
|
emits: ["confirm", "secondary", "icon", "more", "select-more-popover", "update:checkboxActionChecked", "checkbox-action-change"],
|
|
5211
5609
|
setup(props2, {
|
|
@@ -5214,18 +5612,18 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5214
5612
|
}) {
|
|
5215
5613
|
const root = vue.ref();
|
|
5216
5614
|
const morePopoverShow = vue.ref(false);
|
|
5217
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
5615
|
+
const renderPlaceholder = usePlaceholder(root, bem$1k);
|
|
5218
5616
|
const renderIconAction = () => {
|
|
5219
5617
|
if (slots.icon) {
|
|
5220
5618
|
return vue.createVNode("div", {
|
|
5221
|
-
"class": bem$
|
|
5619
|
+
"class": bem$1k("icon-action")
|
|
5222
5620
|
}, [slots.icon()]);
|
|
5223
5621
|
}
|
|
5224
5622
|
if (!props2.icon) {
|
|
5225
5623
|
return;
|
|
5226
5624
|
}
|
|
5227
5625
|
return vue.createVNode(Button, {
|
|
5228
|
-
"class": bem$
|
|
5626
|
+
"class": bem$1k("icon-button"),
|
|
5229
5627
|
"icon": props2.icon,
|
|
5230
5628
|
"iconPrefix": props2.iconPrefix,
|
|
5231
5629
|
"disabled": props2.iconDisabled,
|
|
@@ -5241,7 +5639,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5241
5639
|
};
|
|
5242
5640
|
const renderMoreButton = (popoverEnabled = false) => vue.createVNode("button", {
|
|
5243
5641
|
"type": "button",
|
|
5244
|
-
"class": bem$
|
|
5642
|
+
"class": bem$1k("more-action"),
|
|
5245
5643
|
"disabled": props2.moreDisabled,
|
|
5246
5644
|
"onClick": popoverEnabled ? void 0 : () => emit("more")
|
|
5247
5645
|
}, [vue.createVNode(Badge, {
|
|
@@ -5251,30 +5649,30 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5251
5649
|
}, {
|
|
5252
5650
|
default: () => [vue.createVNode(Icon, {
|
|
5253
5651
|
"name": props2.moreIcon || "more-o",
|
|
5254
|
-
"class": bem$
|
|
5652
|
+
"class": bem$1k("more-icon"),
|
|
5255
5653
|
"classPrefix": props2.iconPrefix
|
|
5256
5654
|
}, null)]
|
|
5257
5655
|
}), vue.createVNode("span", {
|
|
5258
|
-
"class": bem$
|
|
5656
|
+
"class": bem$1k("more-text")
|
|
5259
5657
|
}, [props2.moreText])]);
|
|
5260
5658
|
const renderMorePopoverAction = (action, index) => vue.createVNode("button", {
|
|
5261
5659
|
"type": "button",
|
|
5262
|
-
"class": bem$
|
|
5660
|
+
"class": bem$1k("more-popover-action", {
|
|
5263
5661
|
disabled: action.disabled
|
|
5264
5662
|
}),
|
|
5265
5663
|
"disabled": action.disabled,
|
|
5266
5664
|
"onClick": () => onSelectMorePopover(action, index)
|
|
5267
5665
|
}, [action.icon && vue.createVNode(Icon, {
|
|
5268
5666
|
"name": action.icon,
|
|
5269
|
-
"class": bem$
|
|
5667
|
+
"class": bem$1k("more-popover-icon"),
|
|
5270
5668
|
"classPrefix": props2.iconPrefix
|
|
5271
5669
|
}, null), vue.createVNode("span", {
|
|
5272
|
-
"class": bem$
|
|
5670
|
+
"class": bem$1k("more-popover-text")
|
|
5273
5671
|
}, [action.text])]);
|
|
5274
5672
|
const renderMoreAction = () => {
|
|
5275
5673
|
if (slots.more) {
|
|
5276
5674
|
return vue.createVNode("div", {
|
|
5277
|
-
"class": bem$
|
|
5675
|
+
"class": bem$1k("more-action")
|
|
5278
5676
|
}, [slots.more()]);
|
|
5279
5677
|
}
|
|
5280
5678
|
if (!props2.moreText) {
|
|
@@ -5285,7 +5683,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5285
5683
|
}
|
|
5286
5684
|
return vue.createVNode(Popover, {
|
|
5287
5685
|
"show": morePopoverShow.value,
|
|
5288
|
-
"class": bem$
|
|
5686
|
+
"class": bem$1k("more-popover"),
|
|
5289
5687
|
"placement": "top-start",
|
|
5290
5688
|
"showArrow": false,
|
|
5291
5689
|
"offset": [-5, 8],
|
|
@@ -5305,7 +5703,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5305
5703
|
return;
|
|
5306
5704
|
}
|
|
5307
5705
|
return vue.createVNode(Button, {
|
|
5308
|
-
"class": bem$
|
|
5706
|
+
"class": bem$1k("secondary"),
|
|
5309
5707
|
"type": props2.secondaryType,
|
|
5310
5708
|
"text": props2.secondaryText,
|
|
5311
5709
|
"loading": props2.secondaryLoading,
|
|
@@ -5318,7 +5716,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5318
5716
|
return slots.confirm();
|
|
5319
5717
|
}
|
|
5320
5718
|
return vue.createVNode(Button, {
|
|
5321
|
-
"class": bem$
|
|
5719
|
+
"class": bem$1k("confirm"),
|
|
5322
5720
|
"type": props2.confirmType,
|
|
5323
5721
|
"text": props2.confirmText,
|
|
5324
5722
|
"loading": props2.confirmLoading,
|
|
@@ -5331,9 +5729,9 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5331
5729
|
return;
|
|
5332
5730
|
}
|
|
5333
5731
|
return vue.createVNode("div", {
|
|
5334
|
-
"class": bem$
|
|
5732
|
+
"class": bem$1k("checkbox-action")
|
|
5335
5733
|
}, [vue.createVNode("div", {
|
|
5336
|
-
"class": bem$
|
|
5734
|
+
"class": bem$1k("checkbox-action-content")
|
|
5337
5735
|
}, [vue.createVNode(Checkbox, {
|
|
5338
5736
|
"modelValue": props2.checkboxActionChecked,
|
|
5339
5737
|
"disabled": props2.checkboxActionDisabled,
|
|
@@ -5348,19 +5746,19 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5348
5746
|
};
|
|
5349
5747
|
const renderBar = () => vue.createVNode("div", {
|
|
5350
5748
|
"ref": root,
|
|
5351
|
-
"class": [bem$
|
|
5749
|
+
"class": [bem$1k({
|
|
5352
5750
|
fixed: props2.fixed
|
|
5353
5751
|
}), {
|
|
5354
5752
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
5355
5753
|
}]
|
|
5356
5754
|
}, [renderCheckboxAction(), vue.createVNode("div", {
|
|
5357
|
-
"class": bem$
|
|
5755
|
+
"class": bem$1k("actions")
|
|
5358
5756
|
}, [renderIconAction(), renderMoreAction(), renderSecondaryButton(), renderConfirmButton()])]);
|
|
5359
5757
|
return () => props2.placeholder && props2.fixed ? renderPlaceholder(renderBar) : renderBar();
|
|
5360
5758
|
}
|
|
5361
5759
|
});
|
|
5362
|
-
const BottomActionBar = withInstall(stdin_default$
|
|
5363
|
-
const [name$
|
|
5760
|
+
const BottomActionBar = withInstall(stdin_default$1x);
|
|
5761
|
+
const [name$1n, bem$1j, t$f] = createNamespace("calendar");
|
|
5364
5762
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
5365
5763
|
function compareMonth(date1, date2) {
|
|
5366
5764
|
const year1 = date1.getFullYear();
|
|
@@ -5469,9 +5867,9 @@ const proxyPickerMethods = (picker, callback) => {
|
|
|
5469
5867
|
}
|
|
5470
5868
|
});
|
|
5471
5869
|
};
|
|
5472
|
-
const [name$
|
|
5473
|
-
var stdin_default$
|
|
5474
|
-
name: name$
|
|
5870
|
+
const [name$1m] = createNamespace("calendar-day");
|
|
5871
|
+
var stdin_default$1w = vue.defineComponent({
|
|
5872
|
+
name: name$1m,
|
|
5475
5873
|
props: {
|
|
5476
5874
|
item: makeRequiredProp(Object),
|
|
5477
5875
|
color: String,
|
|
@@ -5533,7 +5931,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5533
5931
|
} = props2.item;
|
|
5534
5932
|
if (topInfo || slots["top-info"]) {
|
|
5535
5933
|
return vue.createVNode("div", {
|
|
5536
|
-
"class": bem$
|
|
5934
|
+
"class": bem$1j("top-info")
|
|
5537
5935
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
|
5538
5936
|
}
|
|
5539
5937
|
};
|
|
@@ -5543,7 +5941,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5543
5941
|
} = props2.item;
|
|
5544
5942
|
if (bottomInfo || slots["bottom-info"]) {
|
|
5545
5943
|
return vue.createVNode("div", {
|
|
5546
|
-
"class": bem$
|
|
5944
|
+
"class": bem$1j("bottom-info")
|
|
5547
5945
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
|
5548
5946
|
}
|
|
5549
5947
|
};
|
|
@@ -5560,7 +5958,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5560
5958
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
|
5561
5959
|
if (type === "selected") {
|
|
5562
5960
|
return vue.createVNode("div", {
|
|
5563
|
-
"class": bem$
|
|
5961
|
+
"class": bem$1j("selected-day"),
|
|
5564
5962
|
"style": {
|
|
5565
5963
|
width: rowHeight,
|
|
5566
5964
|
height: rowHeight,
|
|
@@ -5577,21 +5975,21 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5577
5975
|
} = props2.item;
|
|
5578
5976
|
if (type === "placeholder") {
|
|
5579
5977
|
return vue.createVNode("div", {
|
|
5580
|
-
"class": bem$
|
|
5978
|
+
"class": bem$1j("day"),
|
|
5581
5979
|
"style": style.value
|
|
5582
5980
|
}, null);
|
|
5583
5981
|
}
|
|
5584
5982
|
return vue.createVNode("div", {
|
|
5585
5983
|
"role": "gridcell",
|
|
5586
5984
|
"style": style.value,
|
|
5587
|
-
"class": [bem$
|
|
5985
|
+
"class": [bem$1j("day", type), className],
|
|
5588
5986
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
5589
5987
|
"onClick": onClick
|
|
5590
5988
|
}, [renderContent()]);
|
|
5591
5989
|
};
|
|
5592
5990
|
}
|
|
5593
5991
|
});
|
|
5594
|
-
const [name$
|
|
5992
|
+
const [name$1l] = createNamespace("calendar-month");
|
|
5595
5993
|
const calendarMonthProps = {
|
|
5596
5994
|
date: makeRequiredProp(Date),
|
|
5597
5995
|
type: String,
|
|
@@ -5608,8 +6006,8 @@ const calendarMonthProps = {
|
|
|
5608
6006
|
showMonthTitle: Boolean,
|
|
5609
6007
|
firstDayOfWeek: Number
|
|
5610
6008
|
};
|
|
5611
|
-
var stdin_default$
|
|
5612
|
-
name: name$
|
|
6009
|
+
var stdin_default$1v = vue.defineComponent({
|
|
6010
|
+
name: name$1l,
|
|
5613
6011
|
props: calendarMonthProps,
|
|
5614
6012
|
emits: ["click", "update-height"],
|
|
5615
6013
|
setup(props2, {
|
|
@@ -5714,14 +6112,14 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5714
6112
|
const renderTitle = () => {
|
|
5715
6113
|
if (props2.showMonthTitle) {
|
|
5716
6114
|
return vue.createVNode("div", {
|
|
5717
|
-
"class": bem$
|
|
6115
|
+
"class": bem$1j("month-title")
|
|
5718
6116
|
}, [title.value]);
|
|
5719
6117
|
}
|
|
5720
6118
|
};
|
|
5721
6119
|
const renderMark = () => {
|
|
5722
6120
|
if (props2.showMark && shouldRender.value) {
|
|
5723
6121
|
return vue.createVNode("div", {
|
|
5724
|
-
"class": bem$
|
|
6122
|
+
"class": bem$1j("month-mark")
|
|
5725
6123
|
}, [props2.date.getMonth() + 1]);
|
|
5726
6124
|
}
|
|
5727
6125
|
};
|
|
@@ -5761,7 +6159,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5761
6159
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
|
5762
6160
|
}
|
|
5763
6161
|
};
|
|
5764
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
|
6162
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1w, {
|
|
5765
6163
|
"item": item,
|
|
5766
6164
|
"index": index,
|
|
5767
6165
|
"color": props2.color,
|
|
@@ -5772,7 +6170,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5772
6170
|
const renderDays = () => vue.createVNode("div", {
|
|
5773
6171
|
"ref": daysRef,
|
|
5774
6172
|
"role": "grid",
|
|
5775
|
-
"class": bem$
|
|
6173
|
+
"class": bem$1j("days")
|
|
5776
6174
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
5777
6175
|
useExpose({
|
|
5778
6176
|
getTitle,
|
|
@@ -5782,14 +6180,14 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5782
6180
|
disabledDays
|
|
5783
6181
|
});
|
|
5784
6182
|
return () => vue.createVNode("div", {
|
|
5785
|
-
"class": bem$
|
|
6183
|
+
"class": bem$1j("month"),
|
|
5786
6184
|
"ref": monthRef
|
|
5787
6185
|
}, [renderTitle(), renderDays()]);
|
|
5788
6186
|
}
|
|
5789
6187
|
});
|
|
5790
|
-
const [name$
|
|
5791
|
-
var stdin_default$
|
|
5792
|
-
name: name$
|
|
6188
|
+
const [name$1k] = createNamespace("calendar-header");
|
|
6189
|
+
var stdin_default$1u = vue.defineComponent({
|
|
6190
|
+
name: name$1k,
|
|
5793
6191
|
props: {
|
|
5794
6192
|
title: String,
|
|
5795
6193
|
subtitle: String,
|
|
@@ -5807,7 +6205,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5807
6205
|
const text = props2.title || t$f("title");
|
|
5808
6206
|
const title = slots.title ? slots.title() : text;
|
|
5809
6207
|
return vue.createVNode("div", {
|
|
5810
|
-
"class": bem$
|
|
6208
|
+
"class": bem$1j("header-title")
|
|
5811
6209
|
}, [title]);
|
|
5812
6210
|
}
|
|
5813
6211
|
};
|
|
@@ -5816,7 +6214,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5816
6214
|
if (props2.showSubtitle) {
|
|
5817
6215
|
const title = slots.subtitle ? slots.subtitle() : props2.subtitle;
|
|
5818
6216
|
return vue.createVNode("div", {
|
|
5819
|
-
"class": bem$
|
|
6217
|
+
"class": bem$1j("header-subtitle"),
|
|
5820
6218
|
"onClick": onClickSubtitle
|
|
5821
6219
|
}, [title]);
|
|
5822
6220
|
}
|
|
@@ -5828,13 +6226,13 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5828
6226
|
const weekdays = t$f("weekdays");
|
|
5829
6227
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
|
5830
6228
|
return vue.createVNode("div", {
|
|
5831
|
-
"class": bem$
|
|
6229
|
+
"class": bem$1j("weekdays")
|
|
5832
6230
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
|
5833
|
-
"class": bem$
|
|
6231
|
+
"class": bem$1j("weekday")
|
|
5834
6232
|
}, [text]))]);
|
|
5835
6233
|
};
|
|
5836
6234
|
return () => vue.createVNode("div", {
|
|
5837
|
-
"class": bem$
|
|
6235
|
+
"class": bem$1j("header")
|
|
5838
6236
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
5839
6237
|
}
|
|
5840
6238
|
});
|
|
@@ -5885,8 +6283,8 @@ const calendarProps = {
|
|
|
5885
6283
|
validator: (val) => val >= 0 && val <= 6
|
|
5886
6284
|
}
|
|
5887
6285
|
};
|
|
5888
|
-
var stdin_default$
|
|
5889
|
-
name: name$
|
|
6286
|
+
var stdin_default$1t = vue.defineComponent({
|
|
6287
|
+
name: name$1n,
|
|
5890
6288
|
props: calendarProps,
|
|
5891
6289
|
emits: ["select", "confirm", "unselect", "month-show", "over-range", "update:show", "click-subtitle"],
|
|
5892
6290
|
setup(props2, {
|
|
@@ -6143,7 +6541,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6143
6541
|
const updateShow = (value) => emit("update:show", value);
|
|
6144
6542
|
const renderMonth = (date, index) => {
|
|
6145
6543
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
|
6146
|
-
return vue.createVNode(stdin_default$
|
|
6544
|
+
return vue.createVNode(stdin_default$1v, vue.mergeProps({
|
|
6147
6545
|
"ref": setMonthRefs(index),
|
|
6148
6546
|
"date": date,
|
|
6149
6547
|
"currentDate": currentDate.value,
|
|
@@ -6166,7 +6564,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6166
6564
|
"block": true,
|
|
6167
6565
|
"type": "primary",
|
|
6168
6566
|
"color": props2.color,
|
|
6169
|
-
"class": bem$
|
|
6567
|
+
"class": bem$1j("confirm"),
|
|
6170
6568
|
"disabled": disabled,
|
|
6171
6569
|
"nativeType": "button",
|
|
6172
6570
|
"onClick": onConfirm
|
|
@@ -6178,13 +6576,13 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6178
6576
|
}
|
|
6179
6577
|
};
|
|
6180
6578
|
const renderFooter = () => vue.createVNode("div", {
|
|
6181
|
-
"class": [bem$
|
|
6579
|
+
"class": [bem$1j("footer"), {
|
|
6182
6580
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
6183
6581
|
}]
|
|
6184
6582
|
}, [renderFooterButton()]);
|
|
6185
6583
|
const renderCalendar = () => vue.createVNode("div", {
|
|
6186
|
-
"class": bem$
|
|
6187
|
-
}, [vue.createVNode(stdin_default$
|
|
6584
|
+
"class": bem$1j()
|
|
6585
|
+
}, [vue.createVNode(stdin_default$1u, {
|
|
6188
6586
|
"title": props2.title,
|
|
6189
6587
|
"subtitle": subtitle.value,
|
|
6190
6588
|
"showTitle": props2.showTitle,
|
|
@@ -6193,7 +6591,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6193
6591
|
"onClick-subtitle": (event) => emit("click-subtitle", event)
|
|
6194
6592
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
|
6195
6593
|
"ref": bodyRef,
|
|
6196
|
-
"class": bem$
|
|
6594
|
+
"class": bem$1j("body"),
|
|
6197
6595
|
"onScroll": onScroll
|
|
6198
6596
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
|
6199
6597
|
vue.watch(() => props2.show, init);
|
|
@@ -6212,7 +6610,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6212
6610
|
if (props2.poppable) {
|
|
6213
6611
|
return vue.createVNode(Popup, {
|
|
6214
6612
|
"show": props2.show,
|
|
6215
|
-
"class": bem$
|
|
6613
|
+
"class": bem$1j("popup"),
|
|
6216
6614
|
"round": props2.round,
|
|
6217
6615
|
"position": props2.position,
|
|
6218
6616
|
"closeable": props2.showTitle || props2.showSubtitle,
|
|
@@ -6229,8 +6627,8 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6229
6627
|
};
|
|
6230
6628
|
}
|
|
6231
6629
|
});
|
|
6232
|
-
const Calendar = withInstall(stdin_default$
|
|
6233
|
-
const [name$
|
|
6630
|
+
const Calendar = withInstall(stdin_default$1t);
|
|
6631
|
+
const [name$1j, bem$1i] = createNamespace("image");
|
|
6234
6632
|
const imageProps = {
|
|
6235
6633
|
src: String,
|
|
6236
6634
|
alt: String,
|
|
@@ -6249,8 +6647,8 @@ const imageProps = {
|
|
|
6249
6647
|
showLoading: truthProp,
|
|
6250
6648
|
loadingIcon: makeStringProp("photo")
|
|
6251
6649
|
};
|
|
6252
|
-
var stdin_default$
|
|
6253
|
-
name: name$
|
|
6650
|
+
var stdin_default$1s = vue.defineComponent({
|
|
6651
|
+
name: name$1j,
|
|
6254
6652
|
props: imageProps,
|
|
6255
6653
|
emits: ["load", "error"],
|
|
6256
6654
|
setup(props2, {
|
|
@@ -6301,13 +6699,13 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6301
6699
|
const renderPlaceholder = () => {
|
|
6302
6700
|
if (loading.value && props2.showLoading) {
|
|
6303
6701
|
return vue.createVNode("div", {
|
|
6304
|
-
"class": bem$
|
|
6305
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
|
6702
|
+
"class": bem$1i("loading")
|
|
6703
|
+
}, [renderIcon(props2.loadingIcon, bem$1i("loading-icon"), slots.loading)]);
|
|
6306
6704
|
}
|
|
6307
6705
|
if (error.value && props2.showError) {
|
|
6308
6706
|
return vue.createVNode("div", {
|
|
6309
|
-
"class": bem$
|
|
6310
|
-
}, [renderIcon(props2.errorIcon, bem$
|
|
6707
|
+
"class": bem$1i("error")
|
|
6708
|
+
}, [renderIcon(props2.errorIcon, bem$1i("error-icon"), slots.error)]);
|
|
6311
6709
|
}
|
|
6312
6710
|
};
|
|
6313
6711
|
const renderImage = () => {
|
|
@@ -6316,7 +6714,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6316
6714
|
}
|
|
6317
6715
|
const attrs = {
|
|
6318
6716
|
alt: props2.alt,
|
|
6319
|
-
class: bem$
|
|
6717
|
+
class: bem$1i("img"),
|
|
6320
6718
|
style: {
|
|
6321
6719
|
objectFit: props2.fit,
|
|
6322
6720
|
objectPosition: props2.position
|
|
@@ -6365,7 +6763,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6365
6763
|
return () => {
|
|
6366
6764
|
var _a;
|
|
6367
6765
|
return vue.createVNode("div", {
|
|
6368
|
-
"class": bem$
|
|
6766
|
+
"class": bem$1i({
|
|
6369
6767
|
round: props2.round,
|
|
6370
6768
|
block: props2.block
|
|
6371
6769
|
}),
|
|
@@ -6374,8 +6772,8 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6374
6772
|
};
|
|
6375
6773
|
}
|
|
6376
6774
|
});
|
|
6377
|
-
const Image$1 = withInstall(stdin_default$
|
|
6378
|
-
const [name$
|
|
6775
|
+
const Image$1 = withInstall(stdin_default$1s);
|
|
6776
|
+
const [name$1i, bem$1h] = createNamespace("card");
|
|
6379
6777
|
const cardProps = {
|
|
6380
6778
|
tag: String,
|
|
6381
6779
|
num: numericProp,
|
|
@@ -6389,8 +6787,8 @@ const cardProps = {
|
|
|
6389
6787
|
thumbLink: String,
|
|
6390
6788
|
originPrice: numericProp
|
|
6391
6789
|
};
|
|
6392
|
-
var stdin_default$
|
|
6393
|
-
name: name$
|
|
6790
|
+
var stdin_default$1r = vue.defineComponent({
|
|
6791
|
+
name: name$1i,
|
|
6394
6792
|
props: cardProps,
|
|
6395
6793
|
emits: ["click-thumb"],
|
|
6396
6794
|
setup(props2, {
|
|
@@ -6403,14 +6801,14 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6403
6801
|
}
|
|
6404
6802
|
if (props2.title) {
|
|
6405
6803
|
return vue.createVNode("div", {
|
|
6406
|
-
"class": [bem$
|
|
6804
|
+
"class": [bem$1h("title"), "van-multi-ellipsis--l2"]
|
|
6407
6805
|
}, [props2.title]);
|
|
6408
6806
|
}
|
|
6409
6807
|
};
|
|
6410
6808
|
const renderThumbTag = () => {
|
|
6411
6809
|
if (slots.tag || props2.tag) {
|
|
6412
6810
|
return vue.createVNode("div", {
|
|
6413
|
-
"class": bem$
|
|
6811
|
+
"class": bem$1h("tag")
|
|
6414
6812
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
|
6415
6813
|
"mark": true,
|
|
6416
6814
|
"type": "danger"
|
|
@@ -6435,7 +6833,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6435
6833
|
if (slots.thumb || props2.thumb) {
|
|
6436
6834
|
return vue.createVNode("a", {
|
|
6437
6835
|
"href": props2.thumbLink,
|
|
6438
|
-
"class": bem$
|
|
6836
|
+
"class": bem$1h("thumb"),
|
|
6439
6837
|
"onClick": (event) => emit("click-thumb", event)
|
|
6440
6838
|
}, [renderThumbImage(), renderThumbTag()]);
|
|
6441
6839
|
}
|
|
@@ -6446,18 +6844,18 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6446
6844
|
}
|
|
6447
6845
|
if (props2.desc) {
|
|
6448
6846
|
return vue.createVNode("div", {
|
|
6449
|
-
"class": [bem$
|
|
6847
|
+
"class": [bem$1h("desc"), "van-ellipsis"]
|
|
6450
6848
|
}, [props2.desc]);
|
|
6451
6849
|
}
|
|
6452
6850
|
};
|
|
6453
6851
|
const renderPriceText = () => {
|
|
6454
6852
|
const priceArr = props2.price.toString().split(".");
|
|
6455
6853
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
|
6456
|
-
"class": bem$
|
|
6854
|
+
"class": bem$1h("price-currency")
|
|
6457
6855
|
}, [props2.currency]), vue.createVNode("span", {
|
|
6458
|
-
"class": bem$
|
|
6856
|
+
"class": bem$1h("price-integer")
|
|
6459
6857
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
|
6460
|
-
"class": bem$
|
|
6858
|
+
"class": bem$1h("price-decimal")
|
|
6461
6859
|
}, [priceArr[1]])]);
|
|
6462
6860
|
};
|
|
6463
6861
|
return () => {
|
|
@@ -6467,33 +6865,33 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6467
6865
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
|
6468
6866
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
|
6469
6867
|
const Price = showPrice && vue.createVNode("div", {
|
|
6470
|
-
"class": bem$
|
|
6868
|
+
"class": bem$1h("price")
|
|
6471
6869
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
|
6472
6870
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
|
6473
|
-
"class": bem$
|
|
6871
|
+
"class": bem$1h("origin-price")
|
|
6474
6872
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
|
6475
6873
|
const Num = showNum && vue.createVNode("div", {
|
|
6476
|
-
"class": bem$
|
|
6874
|
+
"class": bem$1h("num")
|
|
6477
6875
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
|
6478
6876
|
const Footer = slots.footer && vue.createVNode("div", {
|
|
6479
|
-
"class": bem$
|
|
6877
|
+
"class": bem$1h("footer")
|
|
6480
6878
|
}, [slots.footer()]);
|
|
6481
6879
|
const Bottom = showBottom && vue.createVNode("div", {
|
|
6482
|
-
"class": bem$
|
|
6880
|
+
"class": bem$1h("bottom")
|
|
6483
6881
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
|
6484
6882
|
return vue.createVNode("div", {
|
|
6485
|
-
"class": bem$
|
|
6883
|
+
"class": bem$1h()
|
|
6486
6884
|
}, [vue.createVNode("div", {
|
|
6487
|
-
"class": bem$
|
|
6885
|
+
"class": bem$1h("header")
|
|
6488
6886
|
}, [renderThumb(), vue.createVNode("div", {
|
|
6489
|
-
"class": bem$
|
|
6887
|
+
"class": bem$1h("content", {
|
|
6490
6888
|
centered: props2.centered
|
|
6491
6889
|
})
|
|
6492
6890
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
|
6493
6891
|
};
|
|
6494
6892
|
}
|
|
6495
6893
|
});
|
|
6496
|
-
const Card = withInstall(stdin_default$
|
|
6894
|
+
const Card = withInstall(stdin_default$1r);
|
|
6497
6895
|
function scrollLeftTo(scroller, to, duration) {
|
|
6498
6896
|
let count = 0;
|
|
6499
6897
|
const from = scroller.scrollLeft;
|
|
@@ -6549,7 +6947,7 @@ function useVisibilityChange(target, onChange) {
|
|
|
6549
6947
|
vue.onBeforeUnmount(unobserve);
|
|
6550
6948
|
use.onMountedOrActivated(observe);
|
|
6551
6949
|
}
|
|
6552
|
-
const [name$
|
|
6950
|
+
const [name$1h, bem$1g] = createNamespace("sticky");
|
|
6553
6951
|
const stickyProps = {
|
|
6554
6952
|
zIndex: numericProp,
|
|
6555
6953
|
position: makeStringProp("top"),
|
|
@@ -6557,8 +6955,8 @@ const stickyProps = {
|
|
|
6557
6955
|
offsetTop: makeNumericProp(0),
|
|
6558
6956
|
offsetBottom: makeNumericProp(0)
|
|
6559
6957
|
};
|
|
6560
|
-
var stdin_default$
|
|
6561
|
-
name: name$
|
|
6958
|
+
var stdin_default$1q = vue.defineComponent({
|
|
6959
|
+
name: name$1h,
|
|
6562
6960
|
props: stickyProps,
|
|
6563
6961
|
emits: ["scroll", "change"],
|
|
6564
6962
|
setup(props2, {
|
|
@@ -6655,7 +7053,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
6655
7053
|
"ref": root,
|
|
6656
7054
|
"style": rootStyle.value
|
|
6657
7055
|
}, [vue.createVNode("div", {
|
|
6658
|
-
"class": bem$
|
|
7056
|
+
"class": bem$1g({
|
|
6659
7057
|
fixed: state.fixed
|
|
6660
7058
|
}),
|
|
6661
7059
|
"style": stickyStyle.value
|
|
@@ -6663,10 +7061,10 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
6663
7061
|
};
|
|
6664
7062
|
}
|
|
6665
7063
|
});
|
|
6666
|
-
const Sticky = withInstall(stdin_default$
|
|
6667
|
-
const [name$
|
|
6668
|
-
var stdin_default$
|
|
6669
|
-
name: name$
|
|
7064
|
+
const Sticky = withInstall(stdin_default$1q);
|
|
7065
|
+
const [name$1g, bem$1f] = createNamespace("tab");
|
|
7066
|
+
var stdin_default$1p = vue.defineComponent({
|
|
7067
|
+
name: name$1g,
|
|
6670
7068
|
props: {
|
|
6671
7069
|
id: String,
|
|
6672
7070
|
dot: Boolean,
|
|
@@ -6716,19 +7114,19 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6716
7114
|
});
|
|
6717
7115
|
const renderText = () => {
|
|
6718
7116
|
const Text2 = vue.createVNode("span", {
|
|
6719
|
-
"class": bem$
|
|
7117
|
+
"class": bem$1f("text", {
|
|
6720
7118
|
ellipsis: !props2.scrollable
|
|
6721
7119
|
})
|
|
6722
7120
|
}, [slots.title ? slots.title() : props2.title]);
|
|
6723
7121
|
const Content = vue.createVNode("span", {
|
|
6724
|
-
"class": bem$
|
|
7122
|
+
"class": bem$1f("title")
|
|
6725
7123
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
6726
7124
|
"name": props2.icon,
|
|
6727
|
-
"class": bem$
|
|
7125
|
+
"class": bem$1f("icon")
|
|
6728
7126
|
}, null), Text2]);
|
|
6729
7127
|
if (props2.dot || isDef(props2.badge) && props2.badge !== "") {
|
|
6730
7128
|
return vue.createVNode(Badge, {
|
|
6731
|
-
"class": bem$
|
|
7129
|
+
"class": bem$1f("badge"),
|
|
6732
7130
|
"dot": props2.dot,
|
|
6733
7131
|
"content": props2.badge,
|
|
6734
7132
|
"showZero": props2.showZeroBadge
|
|
@@ -6741,7 +7139,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6741
7139
|
return () => vue.createVNode("div", {
|
|
6742
7140
|
"id": props2.id,
|
|
6743
7141
|
"role": "tab",
|
|
6744
|
-
"class": [bem$
|
|
7142
|
+
"class": [bem$1f([props2.type, {
|
|
6745
7143
|
grow: props2.scrollable && !props2.shrink,
|
|
6746
7144
|
shrink: props2.shrink,
|
|
6747
7145
|
active: props2.isActive,
|
|
@@ -6755,7 +7153,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6755
7153
|
}, [renderText()]);
|
|
6756
7154
|
}
|
|
6757
7155
|
});
|
|
6758
|
-
const [name$
|
|
7156
|
+
const [name$1f, bem$1e] = createNamespace("swipe");
|
|
6759
7157
|
const swipeProps = {
|
|
6760
7158
|
loop: truthProp,
|
|
6761
7159
|
width: numericProp,
|
|
@@ -6770,9 +7168,9 @@ const swipeProps = {
|
|
|
6770
7168
|
showIndicators: truthProp,
|
|
6771
7169
|
stopPropagation: truthProp
|
|
6772
7170
|
};
|
|
6773
|
-
const SWIPE_KEY = Symbol(name$
|
|
6774
|
-
var stdin_default$
|
|
6775
|
-
name: name$
|
|
7171
|
+
const SWIPE_KEY = Symbol(name$1f);
|
|
7172
|
+
var stdin_default$1o = vue.defineComponent({
|
|
7173
|
+
name: name$1f,
|
|
6776
7174
|
props: swipeProps,
|
|
6777
7175
|
emits: ["change"],
|
|
6778
7176
|
setup(props2, {
|
|
@@ -7034,7 +7432,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7034
7432
|
} : void 0;
|
|
7035
7433
|
return vue.createVNode("i", {
|
|
7036
7434
|
"style": style,
|
|
7037
|
-
"class": bem$
|
|
7435
|
+
"class": bem$1e("indicator", {
|
|
7038
7436
|
active
|
|
7039
7437
|
})
|
|
7040
7438
|
}, null);
|
|
@@ -7048,7 +7446,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7048
7446
|
}
|
|
7049
7447
|
if (props2.showIndicators && count.value > 1) {
|
|
7050
7448
|
return vue.createVNode("div", {
|
|
7051
|
-
"class": bem$
|
|
7449
|
+
"class": bem$1e("indicators", {
|
|
7052
7450
|
vertical: props2.vertical
|
|
7053
7451
|
})
|
|
7054
7452
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -7090,11 +7488,11 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7090
7488
|
var _a;
|
|
7091
7489
|
return vue.createVNode("div", {
|
|
7092
7490
|
"ref": root,
|
|
7093
|
-
"class": bem$
|
|
7491
|
+
"class": bem$1e()
|
|
7094
7492
|
}, [vue.createVNode("div", {
|
|
7095
7493
|
"ref": track,
|
|
7096
7494
|
"style": trackStyle.value,
|
|
7097
|
-
"class": bem$
|
|
7495
|
+
"class": bem$1e("track", {
|
|
7098
7496
|
vertical: props2.vertical
|
|
7099
7497
|
}),
|
|
7100
7498
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -7104,10 +7502,10 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7104
7502
|
};
|
|
7105
7503
|
}
|
|
7106
7504
|
});
|
|
7107
|
-
const Swipe = withInstall(stdin_default$
|
|
7108
|
-
const [name$
|
|
7109
|
-
var stdin_default$
|
|
7110
|
-
name: name$
|
|
7505
|
+
const Swipe = withInstall(stdin_default$1o);
|
|
7506
|
+
const [name$1e, bem$1d] = createNamespace("tabs");
|
|
7507
|
+
var stdin_default$1n = vue.defineComponent({
|
|
7508
|
+
name: name$1e,
|
|
7111
7509
|
props: {
|
|
7112
7510
|
count: makeRequiredProp(Number),
|
|
7113
7511
|
inited: Boolean,
|
|
@@ -7131,7 +7529,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
7131
7529
|
return vue.createVNode(Swipe, {
|
|
7132
7530
|
"ref": swipeRef,
|
|
7133
7531
|
"loop": false,
|
|
7134
|
-
"class": bem$
|
|
7532
|
+
"class": bem$1d("track"),
|
|
7135
7533
|
"duration": +props2.duration * 1e3,
|
|
7136
7534
|
"touchable": props2.swipeable,
|
|
7137
7535
|
"lazyRender": props2.lazyRender,
|
|
@@ -7159,7 +7557,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
7159
7557
|
swipeRef
|
|
7160
7558
|
});
|
|
7161
7559
|
return () => vue.createVNode("div", {
|
|
7162
|
-
"class": bem$
|
|
7560
|
+
"class": bem$1d("content", {
|
|
7163
7561
|
animated: props2.animated || props2.swipeable
|
|
7164
7562
|
})
|
|
7165
7563
|
}, [renderChildren()]);
|
|
@@ -7184,7 +7582,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
7184
7582
|
return a;
|
|
7185
7583
|
};
|
|
7186
7584
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7187
|
-
const [name$
|
|
7585
|
+
const [name$1d, bem$1c] = createNamespace("tabs");
|
|
7188
7586
|
const tabsProps = {
|
|
7189
7587
|
type: makeStringProp("line"),
|
|
7190
7588
|
color: String,
|
|
@@ -7211,9 +7609,9 @@ const tabsProps = {
|
|
|
7211
7609
|
moreTitle: String,
|
|
7212
7610
|
moreOptions: makeArrayProp()
|
|
7213
7611
|
};
|
|
7214
|
-
const TABS_KEY = Symbol(name$
|
|
7215
|
-
var stdin_default$
|
|
7216
|
-
name: name$
|
|
7612
|
+
const TABS_KEY = Symbol(name$1d);
|
|
7613
|
+
var stdin_default$1m = vue.defineComponent({
|
|
7614
|
+
name: name$1d,
|
|
7217
7615
|
props: tabsProps,
|
|
7218
7616
|
emits: ["click", "change", "scroll", "disabled", "rendered", "click-tab", "update:active", "click-more", "select-more", "update:showMore"],
|
|
7219
7617
|
setup(props2, {
|
|
@@ -7437,12 +7835,12 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7437
7835
|
}));
|
|
7438
7836
|
return actions.map((action, index) => __spreadProps(__spreadValues$1({}, action), {
|
|
7439
7837
|
color: index === state.currentIndex ? "var(--van-primary-color)" : action.color,
|
|
7440
|
-
className: [action.className, bem$
|
|
7838
|
+
className: [action.className, bem$1c("more-option", {
|
|
7441
7839
|
active: index === state.currentIndex
|
|
7442
7840
|
})]
|
|
7443
7841
|
}));
|
|
7444
7842
|
});
|
|
7445
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
|
7843
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1p, vue.mergeProps({
|
|
7446
7844
|
"key": item.id,
|
|
7447
7845
|
"id": `${id}-${index}`,
|
|
7448
7846
|
"ref": setTitleRefs(index),
|
|
@@ -7463,7 +7861,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7463
7861
|
const renderLine = () => {
|
|
7464
7862
|
if (props2.type === "line" && children.length) {
|
|
7465
7863
|
return vue.createVNode("div", {
|
|
7466
|
-
"class": bem$
|
|
7864
|
+
"class": bem$1c("line"),
|
|
7467
7865
|
"style": state.lineStyle
|
|
7468
7866
|
}, null);
|
|
7469
7867
|
}
|
|
@@ -7477,13 +7875,13 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7477
7875
|
} = props2;
|
|
7478
7876
|
const Header = [vue.createVNode("div", {
|
|
7479
7877
|
"ref": sticky ? void 0 : wrapRef,
|
|
7480
|
-
"class": [bem$
|
|
7878
|
+
"class": [bem$1c("wrap"), {
|
|
7481
7879
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
7482
7880
|
}]
|
|
7483
7881
|
}, [vue.createVNode("div", {
|
|
7484
7882
|
"ref": navRef,
|
|
7485
7883
|
"role": "tablist",
|
|
7486
|
-
"class": bem$
|
|
7884
|
+
"class": bem$1c("nav", [type, {
|
|
7487
7885
|
shrink: props2.shrink,
|
|
7488
7886
|
complete: scrollable.value,
|
|
7489
7887
|
more: props2.more
|
|
@@ -7493,7 +7891,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7493
7891
|
}, [(_a2 = slots["nav-left"]) == null ? void 0 : _a2.call(slots), renderNav(), renderLine(), (_b2 = slots["nav-right"]) == null ? void 0 : _b2.call(slots)]), props2.more && vue.createVNode("button", {
|
|
7494
7892
|
"ref": moreRef,
|
|
7495
7893
|
"type": "button",
|
|
7496
|
-
"class": bem$
|
|
7894
|
+
"class": bem$1c("more"),
|
|
7497
7895
|
"aria-label": "More tabs",
|
|
7498
7896
|
"onClick": onClickMore
|
|
7499
7897
|
}, [vue.createVNode(Icon, {
|
|
@@ -7567,14 +7965,14 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7567
7965
|
});
|
|
7568
7966
|
return () => vue.createVNode("div", {
|
|
7569
7967
|
"ref": root,
|
|
7570
|
-
"class": bem$
|
|
7968
|
+
"class": bem$1c([props2.type])
|
|
7571
7969
|
}, [props2.sticky ? vue.createVNode(Sticky, {
|
|
7572
7970
|
"container": root.value,
|
|
7573
7971
|
"offsetTop": offsetTopPx.value,
|
|
7574
7972
|
"onScroll": onStickyScroll
|
|
7575
7973
|
}, {
|
|
7576
7974
|
default: () => [renderHeader()]
|
|
7577
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
|
7975
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1n, {
|
|
7578
7976
|
"ref": contentRef,
|
|
7579
7977
|
"count": children.length,
|
|
7580
7978
|
"inited": state.inited,
|
|
@@ -7594,9 +7992,9 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7594
7992
|
});
|
|
7595
7993
|
const TAB_STATUS_KEY = Symbol();
|
|
7596
7994
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
|
7597
|
-
const [name$
|
|
7598
|
-
var stdin_default$
|
|
7599
|
-
name: name$
|
|
7995
|
+
const [name$1c, bem$1b] = createNamespace("swipe-item");
|
|
7996
|
+
var stdin_default$1l = vue.defineComponent({
|
|
7997
|
+
name: name$1c,
|
|
7600
7998
|
setup(props2, {
|
|
7601
7999
|
slots
|
|
7602
8000
|
}) {
|
|
@@ -7661,14 +8059,14 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
7661
8059
|
return () => {
|
|
7662
8060
|
var _a;
|
|
7663
8061
|
return vue.createVNode("div", {
|
|
7664
|
-
"class": bem$
|
|
8062
|
+
"class": bem$1b(),
|
|
7665
8063
|
"style": style.value
|
|
7666
8064
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
7667
8065
|
};
|
|
7668
8066
|
}
|
|
7669
8067
|
});
|
|
7670
|
-
const SwipeItem = withInstall(stdin_default$
|
|
7671
|
-
const [name$
|
|
8068
|
+
const SwipeItem = withInstall(stdin_default$1l);
|
|
8069
|
+
const [name$1b, bem$1a] = createNamespace("tab");
|
|
7672
8070
|
const tabProps = extend({}, routeProps, {
|
|
7673
8071
|
dot: Boolean,
|
|
7674
8072
|
name: numericProp,
|
|
@@ -7680,8 +8078,8 @@ const tabProps = extend({}, routeProps, {
|
|
|
7680
8078
|
titleStyle: [String, Object],
|
|
7681
8079
|
showZeroBadge: truthProp
|
|
7682
8080
|
});
|
|
7683
|
-
var stdin_default$
|
|
7684
|
-
name: name$
|
|
8081
|
+
var stdin_default$1k = vue.defineComponent({
|
|
8082
|
+
name: name$1b,
|
|
7685
8083
|
props: tabProps,
|
|
7686
8084
|
setup(props2, {
|
|
7687
8085
|
slots
|
|
@@ -7749,7 +8147,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7749
8147
|
return vue.createVNode(SwipeItem, {
|
|
7750
8148
|
"id": id,
|
|
7751
8149
|
"role": "tabpanel",
|
|
7752
|
-
"class": bem$
|
|
8150
|
+
"class": bem$1a("panel-wrapper", {
|
|
7753
8151
|
inactive: hasInactiveClass.value
|
|
7754
8152
|
}),
|
|
7755
8153
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -7759,7 +8157,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7759
8157
|
default: () => {
|
|
7760
8158
|
var _a2;
|
|
7761
8159
|
return [vue.createVNode("div", {
|
|
7762
|
-
"class": bem$
|
|
8160
|
+
"class": bem$1a("panel")
|
|
7763
8161
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
7764
8162
|
}
|
|
7765
8163
|
});
|
|
@@ -7772,16 +8170,16 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7772
8170
|
return vue.withDirectives(vue.createVNode("div", {
|
|
7773
8171
|
"id": id,
|
|
7774
8172
|
"role": "tabpanel",
|
|
7775
|
-
"class": bem$
|
|
8173
|
+
"class": bem$1a("panel"),
|
|
7776
8174
|
"tabindex": show ? 0 : -1,
|
|
7777
8175
|
"aria-labelledby": label
|
|
7778
8176
|
}, [Content]), [[vue.vShow, show]]);
|
|
7779
8177
|
};
|
|
7780
8178
|
}
|
|
7781
8179
|
});
|
|
7782
|
-
const Tab = withInstall(stdin_default$
|
|
7783
|
-
const Tabs = withInstall(stdin_default$
|
|
7784
|
-
const [name$
|
|
8180
|
+
const Tab = withInstall(stdin_default$1k);
|
|
8181
|
+
const Tabs = withInstall(stdin_default$1m);
|
|
8182
|
+
const [name$1a, bem$19, t$e] = createNamespace("cascader");
|
|
7785
8183
|
const cascaderProps = {
|
|
7786
8184
|
title: String,
|
|
7787
8185
|
options: makeArrayProp(),
|
|
@@ -7794,8 +8192,8 @@ const cascaderProps = {
|
|
|
7794
8192
|
placeholder: String,
|
|
7795
8193
|
activeColor: String
|
|
7796
8194
|
};
|
|
7797
|
-
var stdin_default$
|
|
7798
|
-
name: name$
|
|
8195
|
+
var stdin_default$1j = vue.defineComponent({
|
|
8196
|
+
name: name$1a,
|
|
7799
8197
|
props: cascaderProps,
|
|
7800
8198
|
emits: ["close", "change", "finish", "click-tab", "update:modelValue"],
|
|
7801
8199
|
setup(props2, {
|
|
@@ -7903,12 +8301,12 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7903
8301
|
title
|
|
7904
8302
|
}) => emit("click-tab", name2, title);
|
|
7905
8303
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
|
7906
|
-
"class": bem$
|
|
8304
|
+
"class": bem$19("header")
|
|
7907
8305
|
}, [vue.createVNode("h2", {
|
|
7908
|
-
"class": bem$
|
|
8306
|
+
"class": bem$19("title")
|
|
7909
8307
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
|
7910
8308
|
"name": props2.closeIcon,
|
|
7911
|
-
"class": [bem$
|
|
8309
|
+
"class": [bem$19("close-icon"), HAPTICS_FEEDBACK],
|
|
7912
8310
|
"onClick": onClose
|
|
7913
8311
|
}, null) : null]) : null;
|
|
7914
8312
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
@@ -7923,7 +8321,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7923
8321
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
|
7924
8322
|
return vue.createVNode("li", {
|
|
7925
8323
|
"role": "menuitemradio",
|
|
7926
|
-
"class": [bem$
|
|
8324
|
+
"class": [bem$19("option", {
|
|
7927
8325
|
selected,
|
|
7928
8326
|
disabled
|
|
7929
8327
|
}), option.className],
|
|
@@ -7936,12 +8334,12 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7936
8334
|
"onClick": () => onSelect(option, tabIndex)
|
|
7937
8335
|
}, [Text2, selected ? vue.createVNode(Icon, {
|
|
7938
8336
|
"name": "success",
|
|
7939
|
-
"class": bem$
|
|
8337
|
+
"class": bem$19("selected-icon")
|
|
7940
8338
|
}, null) : null]);
|
|
7941
8339
|
};
|
|
7942
8340
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
|
7943
8341
|
"role": "menu",
|
|
7944
|
-
"class": bem$
|
|
8342
|
+
"class": bem$19("options")
|
|
7945
8343
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
7946
8344
|
const renderTab = (tab, tabIndex) => {
|
|
7947
8345
|
const {
|
|
@@ -7952,7 +8350,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7952
8350
|
const title = selected ? selected[textKey] : placeholder;
|
|
7953
8351
|
return vue.createVNode(Tab, {
|
|
7954
8352
|
"title": title,
|
|
7955
|
-
"titleClass": bem$
|
|
8353
|
+
"titleClass": bem$19("tab", {
|
|
7956
8354
|
unselected: !selected
|
|
7957
8355
|
})
|
|
7958
8356
|
}, {
|
|
@@ -7971,7 +8369,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7971
8369
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
7972
8370
|
"shrink": true,
|
|
7973
8371
|
"animated": true,
|
|
7974
|
-
"class": bem$
|
|
8372
|
+
"class": bem$19("tabs"),
|
|
7975
8373
|
"color": props2.activeColor,
|
|
7976
8374
|
"swipeable": props2.swipeable,
|
|
7977
8375
|
"onClick-tab": onClickTab
|
|
@@ -7995,20 +8393,20 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7995
8393
|
updateTabs();
|
|
7996
8394
|
});
|
|
7997
8395
|
return () => vue.createVNode("div", {
|
|
7998
|
-
"class": bem$
|
|
8396
|
+
"class": bem$19()
|
|
7999
8397
|
}, [renderHeader(), renderTabs()]);
|
|
8000
8398
|
}
|
|
8001
8399
|
});
|
|
8002
|
-
const Cascader = withInstall(stdin_default$
|
|
8003
|
-
const [name$
|
|
8400
|
+
const Cascader = withInstall(stdin_default$1j);
|
|
8401
|
+
const [name$19, bem$18] = createNamespace("cell-group");
|
|
8004
8402
|
const cellGroupProps = {
|
|
8005
8403
|
title: String,
|
|
8006
8404
|
inset: Boolean,
|
|
8007
8405
|
grayCard: Boolean,
|
|
8008
8406
|
border: truthProp
|
|
8009
8407
|
};
|
|
8010
|
-
var stdin_default$
|
|
8011
|
-
name: name$
|
|
8408
|
+
var stdin_default$1i = vue.defineComponent({
|
|
8409
|
+
name: name$19,
|
|
8012
8410
|
inheritAttrs: false,
|
|
8013
8411
|
props: cellGroupProps,
|
|
8014
8412
|
setup(props2, {
|
|
@@ -8018,7 +8416,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8018
8416
|
const renderGroup = () => {
|
|
8019
8417
|
var _a;
|
|
8020
8418
|
return vue.createVNode("div", vue.mergeProps({
|
|
8021
|
-
"class": [bem$
|
|
8419
|
+
"class": [bem$18({
|
|
8022
8420
|
inset: props2.inset,
|
|
8023
8421
|
"gray-card": props2.grayCard
|
|
8024
8422
|
}), {
|
|
@@ -8027,7 +8425,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8027
8425
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
8028
8426
|
};
|
|
8029
8427
|
const renderTitle = () => vue.createVNode("div", {
|
|
8030
|
-
"class": bem$
|
|
8428
|
+
"class": bem$18("title", {
|
|
8031
8429
|
inset: props2.inset
|
|
8032
8430
|
})
|
|
8033
8431
|
}, [slots.title ? slots.title() : props2.title]);
|
|
@@ -8039,158 +8437,8 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8039
8437
|
};
|
|
8040
8438
|
}
|
|
8041
8439
|
});
|
|
8042
|
-
const CellGroup = withInstall(stdin_default$
|
|
8043
|
-
const CheckboxGroup = withInstall(stdin_default$
|
|
8044
|
-
const [name$19, bem$18] = createNamespace("nav-bar");
|
|
8045
|
-
const navBarProps = {
|
|
8046
|
-
title: String,
|
|
8047
|
-
fixed: Boolean,
|
|
8048
|
-
zIndex: numericProp,
|
|
8049
|
-
border: truthProp,
|
|
8050
|
-
leftText: String,
|
|
8051
|
-
rightText: String,
|
|
8052
|
-
subtitle: String,
|
|
8053
|
-
leftArrow: Boolean,
|
|
8054
|
-
rightPopoverActions: makeArrayProp(),
|
|
8055
|
-
rightPopoverIcon: makeStringProp("plus"),
|
|
8056
|
-
titleDropdown: Boolean,
|
|
8057
|
-
titleDropdownActive: Boolean,
|
|
8058
|
-
placeholder: Boolean,
|
|
8059
|
-
safeAreaInsetTop: Boolean
|
|
8060
|
-
};
|
|
8061
|
-
var stdin_default$1i = vue.defineComponent({
|
|
8062
|
-
name: name$19,
|
|
8063
|
-
props: navBarProps,
|
|
8064
|
-
emits: ["click-left", "click-right", "click-title", "select-right-popover", "update:titleDropdownActive"],
|
|
8065
|
-
setup(props2, {
|
|
8066
|
-
emit,
|
|
8067
|
-
slots
|
|
8068
|
-
}) {
|
|
8069
|
-
const navBarRef = vue.ref();
|
|
8070
|
-
const rightPopoverShow = vue.ref(false);
|
|
8071
|
-
const renderPlaceholder = usePlaceholder(navBarRef, bem$18);
|
|
8072
|
-
const onClickLeft = (event) => emit("click-left", event);
|
|
8073
|
-
const onClickRight = (event) => emit("click-right", event);
|
|
8074
|
-
const onUpdateRightPopoverShow = (show) => {
|
|
8075
|
-
rightPopoverShow.value = show;
|
|
8076
|
-
};
|
|
8077
|
-
const onSelectRightPopover = (action, index) => {
|
|
8078
|
-
emit("select-right-popover", action, index);
|
|
8079
|
-
};
|
|
8080
|
-
const onClickTitle = (event) => {
|
|
8081
|
-
if (!props2.titleDropdown) {
|
|
8082
|
-
return;
|
|
8083
|
-
}
|
|
8084
|
-
emit("update:titleDropdownActive", !props2.titleDropdownActive);
|
|
8085
|
-
emit("click-title", event);
|
|
8086
|
-
};
|
|
8087
|
-
const renderLeft = () => {
|
|
8088
|
-
if (slots.left) {
|
|
8089
|
-
return slots.left();
|
|
8090
|
-
}
|
|
8091
|
-
return [props2.leftArrow && vue.createVNode(Icon, {
|
|
8092
|
-
"class": bem$18("arrow"),
|
|
8093
|
-
"name": "arrow-left"
|
|
8094
|
-
}, null), props2.leftText && vue.createVNode("span", {
|
|
8095
|
-
"class": bem$18("text")
|
|
8096
|
-
}, [props2.leftText])];
|
|
8097
|
-
};
|
|
8098
|
-
const renderRight = () => {
|
|
8099
|
-
if (slots.right) {
|
|
8100
|
-
return slots.right();
|
|
8101
|
-
}
|
|
8102
|
-
if (props2.rightPopoverActions.length) {
|
|
8103
|
-
return vue.createVNode(Popover, {
|
|
8104
|
-
"show": rightPopoverShow.value,
|
|
8105
|
-
"actions": props2.rightPopoverActions,
|
|
8106
|
-
"placement": "bottom-end",
|
|
8107
|
-
"closeOnClickAction": true,
|
|
8108
|
-
"onUpdate:show": onUpdateRightPopoverShow,
|
|
8109
|
-
"onSelect": onSelectRightPopover
|
|
8110
|
-
}, {
|
|
8111
|
-
reference: () => vue.createVNode(Icon, {
|
|
8112
|
-
"name": props2.rightPopoverIcon,
|
|
8113
|
-
"class": bem$18("right-popover-icon")
|
|
8114
|
-
}, null)
|
|
8115
|
-
});
|
|
8116
|
-
}
|
|
8117
|
-
return vue.createVNode("span", {
|
|
8118
|
-
"class": bem$18("text")
|
|
8119
|
-
}, [props2.rightText]);
|
|
8120
|
-
};
|
|
8121
|
-
const renderNavBar = () => {
|
|
8122
|
-
const {
|
|
8123
|
-
title,
|
|
8124
|
-
fixed,
|
|
8125
|
-
border,
|
|
8126
|
-
zIndex,
|
|
8127
|
-
subtitle,
|
|
8128
|
-
titleDropdown
|
|
8129
|
-
} = props2;
|
|
8130
|
-
const style = getZIndexStyle(zIndex);
|
|
8131
|
-
const hasLeft = props2.leftArrow || props2.leftText || slots.left;
|
|
8132
|
-
const hasRight = props2.rightText || props2.rightPopoverActions.length || slots.right;
|
|
8133
|
-
const hasRightPopover = props2.rightPopoverActions.length > 0 && !slots.right;
|
|
8134
|
-
return vue.createVNode("div", {
|
|
8135
|
-
"ref": navBarRef,
|
|
8136
|
-
"style": style,
|
|
8137
|
-
"class": [bem$18({
|
|
8138
|
-
fixed
|
|
8139
|
-
}), {
|
|
8140
|
-
[BORDER_BOTTOM]: border,
|
|
8141
|
-
"van-safe-area-top": props2.safeAreaInsetTop
|
|
8142
|
-
}]
|
|
8143
|
-
}, [vue.createVNode("div", {
|
|
8144
|
-
"class": bem$18("content")
|
|
8145
|
-
}, [hasLeft && vue.createVNode("div", {
|
|
8146
|
-
"class": [bem$18("left", {
|
|
8147
|
-
slot: !!slots.left
|
|
8148
|
-
}), {
|
|
8149
|
-
[HAPTICS_FEEDBACK]: !slots.left
|
|
8150
|
-
}],
|
|
8151
|
-
"onClick": slots.left ? void 0 : onClickLeft
|
|
8152
|
-
}, [renderLeft()]), vue.createVNode("div", {
|
|
8153
|
-
"class": [bem$18("title", {
|
|
8154
|
-
dropdown: titleDropdown
|
|
8155
|
-
}), {
|
|
8156
|
-
[HAPTICS_FEEDBACK]: titleDropdown
|
|
8157
|
-
}],
|
|
8158
|
-
"role": titleDropdown ? "button" : void 0,
|
|
8159
|
-
"tabindex": titleDropdown ? 0 : void 0,
|
|
8160
|
-
"onClick": onClickTitle,
|
|
8161
|
-
"onKeydown": (event) => {
|
|
8162
|
-
if (titleDropdown && (event.key === "Enter" || event.key === " ")) {
|
|
8163
|
-
event.preventDefault();
|
|
8164
|
-
onClickTitle(event);
|
|
8165
|
-
}
|
|
8166
|
-
}
|
|
8167
|
-
}, [vue.createVNode("div", {
|
|
8168
|
-
"class": [bem$18("title-content"), "van-ellipsis"]
|
|
8169
|
-
}, [slots.title ? slots.title() : title, titleDropdown && vue.createVNode(Icon, {
|
|
8170
|
-
"name": "trangle-down",
|
|
8171
|
-
"class": bem$18("title-arrow", {
|
|
8172
|
-
active: props2.titleDropdownActive
|
|
8173
|
-
})
|
|
8174
|
-
}, null)]), subtitle && vue.createVNode("div", {
|
|
8175
|
-
"class": [bem$18("subtitle"), "van-ellipsis"]
|
|
8176
|
-
}, [subtitle])]), hasRight && vue.createVNode("div", {
|
|
8177
|
-
"class": [bem$18("right", {
|
|
8178
|
-
slot: !!slots.right
|
|
8179
|
-
}), {
|
|
8180
|
-
[HAPTICS_FEEDBACK]: !slots.right && !hasRightPopover
|
|
8181
|
-
}],
|
|
8182
|
-
"onClick": slots.right || hasRightPopover ? void 0 : onClickRight
|
|
8183
|
-
}, [renderRight()])])]);
|
|
8184
|
-
};
|
|
8185
|
-
return () => {
|
|
8186
|
-
if (props2.fixed && props2.placeholder) {
|
|
8187
|
-
return renderPlaceholder(renderNavBar);
|
|
8188
|
-
}
|
|
8189
|
-
return renderNavBar();
|
|
8190
|
-
};
|
|
8191
|
-
}
|
|
8192
|
-
});
|
|
8193
|
-
const NavBar = withInstall(stdin_default$1i);
|
|
8440
|
+
const CellGroup = withInstall(stdin_default$1i);
|
|
8441
|
+
const CheckboxGroup = withInstall(stdin_default$1R);
|
|
8194
8442
|
const [name$18, bem$17] = createNamespace("checkbox-panel");
|
|
8195
8443
|
const checkboxPanelProps = {
|
|
8196
8444
|
show: Boolean,
|
|
@@ -13292,6 +13540,7 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13292
13540
|
type: Number,
|
|
13293
13541
|
required: true
|
|
13294
13542
|
},
|
|
13543
|
+
max: makeNumericProp(Infinity),
|
|
13295
13544
|
keyword: {
|
|
13296
13545
|
type: String,
|
|
13297
13546
|
default: ""
|
|
@@ -13325,7 +13574,8 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13325
13574
|
const confirmInputValue = () => {
|
|
13326
13575
|
const value = Number(inputValue.value);
|
|
13327
13576
|
if (!Number.isNaN(value)) {
|
|
13328
|
-
|
|
13577
|
+
const max = Number(props2.max);
|
|
13578
|
+
emit("update:modelValue", Math.min(Number.isNaN(max) ? Infinity : max, Math.max(0, value)));
|
|
13329
13579
|
}
|
|
13330
13580
|
};
|
|
13331
13581
|
const clearDetailLongPress = () => {
|
|
@@ -13399,6 +13649,7 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13399
13649
|
"class": bem$x("stepper"),
|
|
13400
13650
|
"modelValue": props2.modelValue,
|
|
13401
13651
|
"min": 0,
|
|
13652
|
+
"max": props2.max,
|
|
13402
13653
|
"theme": "round",
|
|
13403
13654
|
"buttonSize": 18,
|
|
13404
13655
|
"disableInput": true,
|
|
@@ -20660,7 +20911,7 @@ const Lazyload = {
|
|
|
20660
20911
|
});
|
|
20661
20912
|
}
|
|
20662
20913
|
};
|
|
20663
|
-
const version = "0.0.
|
|
20914
|
+
const version = "0.0.39";
|
|
20664
20915
|
function install(app) {
|
|
20665
20916
|
const components = [
|
|
20666
20917
|
ActionBar,
|