persagy-vant 0.0.38 → 0.0.40
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 +257 -28
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +165 -1
- package/es/cell/index.less +101 -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 +248 -1
- package/es/field/Field.mjs +21 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +173 -1
- package/es/field/index.less +15 -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 +4 -4
- package/es/material-display-bar/index.d.ts +12 -12
- 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/uploader/Uploader.d.ts +4 -0
- package/es/uploader/Uploader.mjs +3 -2
- package/es/uploader/index.d.ts +3 -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 +257 -28
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +165 -1
- package/lib/cell/index.less +101 -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 +248 -1
- package/lib/field/Field.js +21 -2
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +173 -1
- package/lib/field/index.less +15 -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 +4 -4
- package/lib/material-display-bar/index.d.ts +12 -12
- 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/uploader/Uploader.d.ts +4 -0
- package/lib/uploader/Uploader.js +2 -1
- package/lib/uploader/index.d.ts +3 -0
- package/lib/vant.cjs.js +1268 -987
- package/lib/vant.es.js +1269 -988
- package/lib/vant.js +5214 -4933
- 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 +8 -7
- package/skills/use-persagy-vant/references/component-catalog.md +3 -3
- package/skills/use-persagy-vant/references/component-variant-selection.md +39 -0
- package/skills/use-persagy-vant/references/element-component-matching.md +88 -0
- 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,95 @@ 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("div", {
|
|
3402
|
+
"class": bem$1y("title-collapse-action")
|
|
3403
|
+
}, [vue.createVNode(Icon, {
|
|
3404
|
+
"name": "trangle-down",
|
|
3405
|
+
"class": bem$1y("title-collapse-icon", {
|
|
3406
|
+
collapsed: multiLineNotesCollapsed.value
|
|
3407
|
+
})
|
|
3408
|
+
}, null)]), slots.title ? slots.title() : vue.createVNode("span", null, [props2.title]), renderTitleTag(), renderTags(), renderTitleIcon()]), renderWrapTags(), renderLabel(), props2.threeLine && renderDescription(), !multiLineNotesCollapsed.value && renderMultiLineNotes()]);
|
|
2830
3409
|
}
|
|
2831
3410
|
};
|
|
2832
3411
|
const renderValue = () => {
|
|
@@ -2835,20 +3414,23 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2835
3414
|
if (hasValue) {
|
|
2836
3415
|
const hasTitle = slots.title || isDef(props2.title);
|
|
2837
3416
|
return vue.createVNode("div", {
|
|
2838
|
-
"class": [bem$
|
|
3417
|
+
"class": [bem$1y("value", {
|
|
2839
3418
|
alone: !hasTitle
|
|
2840
3419
|
}), props2.valueClass]
|
|
2841
3420
|
}, [slot ? slot() : vue.createVNode("span", null, [props2.value])]);
|
|
2842
3421
|
}
|
|
2843
3422
|
};
|
|
2844
3423
|
const renderLeftIcon = () => {
|
|
3424
|
+
if (!isVisible(props2.showIcon, !!slots.icon || !!props2.icon)) {
|
|
3425
|
+
return;
|
|
3426
|
+
}
|
|
2845
3427
|
if (slots.icon) {
|
|
2846
3428
|
return slots.icon();
|
|
2847
3429
|
}
|
|
2848
3430
|
if (props2.icon) {
|
|
2849
3431
|
return vue.createVNode(Icon, {
|
|
2850
3432
|
"name": props2.icon,
|
|
2851
|
-
"class": bem$
|
|
3433
|
+
"class": bem$1y("left-icon"),
|
|
2852
3434
|
"classPrefix": props2.iconPrefix
|
|
2853
3435
|
}, null);
|
|
2854
3436
|
}
|
|
@@ -2857,15 +3439,18 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2857
3439
|
var _a2, _b2;
|
|
2858
3440
|
const slot = slots[`${position}-select`];
|
|
2859
3441
|
const selected = getSelectState(position);
|
|
3442
|
+
if (!isSelectVisible(position)) {
|
|
3443
|
+
return;
|
|
3444
|
+
}
|
|
2860
3445
|
if (slot) {
|
|
2861
3446
|
return vue.createVNode("div", {
|
|
2862
|
-
"class": bem$
|
|
3447
|
+
"class": bem$1y(`${position}-select`)
|
|
2863
3448
|
}, [slot()]);
|
|
2864
3449
|
}
|
|
2865
3450
|
if (hasSelect(position)) {
|
|
2866
3451
|
const checkboxSize = (_b2 = (_a2 = props2.size) != null ? _a2 : config == null ? void 0 : config.cellSize) != null ? _b2 : "normal";
|
|
2867
3452
|
return vue.createVNode("div", {
|
|
2868
|
-
"class": bem$
|
|
3453
|
+
"class": bem$1y(`${position}-select`),
|
|
2869
3454
|
"onClick": (event) => event.stopPropagation()
|
|
2870
3455
|
}, [props2.selectType === "radio" ? vue.createVNode(Radio, {
|
|
2871
3456
|
"modelValue": selected ? "selected" : "",
|
|
@@ -2884,63 +3469,125 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2884
3469
|
const renderAvatar = (position) => {
|
|
2885
3470
|
const slot = slots[`${position}-avatar`];
|
|
2886
3471
|
const avatar = position === "left" ? props2.avatar : props2.rightAvatar;
|
|
3472
|
+
const show = position === "left" ? props2.showAvatar : props2.showRightAvatar;
|
|
3473
|
+
if (!isVisible(show, !!slot || !!avatar)) {
|
|
3474
|
+
return;
|
|
3475
|
+
}
|
|
2887
3476
|
if (slot) {
|
|
2888
3477
|
return vue.createVNode("div", {
|
|
2889
|
-
"class": bem$
|
|
3478
|
+
"class": bem$1y(`${position}-avatar`)
|
|
2890
3479
|
}, [slot()]);
|
|
2891
3480
|
}
|
|
2892
3481
|
if (avatar) {
|
|
2893
3482
|
return vue.createVNode("img", {
|
|
2894
|
-
"class": bem$
|
|
3483
|
+
"class": bem$1y(`${position}-avatar`),
|
|
2895
3484
|
"src": avatar,
|
|
2896
3485
|
"alt": ""
|
|
2897
3486
|
}, null);
|
|
2898
3487
|
}
|
|
2899
3488
|
};
|
|
2900
3489
|
const renderBlueMark = () => {
|
|
3490
|
+
if (!isVisible(props2.showBlueMark, !!slots["blue-mark"] || props2.blueMark)) {
|
|
3491
|
+
return;
|
|
3492
|
+
}
|
|
2901
3493
|
if (slots["blue-mark"]) {
|
|
2902
3494
|
return vue.createVNode("div", {
|
|
2903
|
-
"class": bem$
|
|
3495
|
+
"class": bem$1y("blue-mark")
|
|
2904
3496
|
}, [slots["blue-mark"]()]);
|
|
2905
3497
|
}
|
|
2906
3498
|
if (props2.blueMark) {
|
|
2907
3499
|
return vue.createVNode("span", {
|
|
2908
|
-
"class": bem$
|
|
3500
|
+
"class": bem$1y("blue-mark")
|
|
2909
3501
|
}, null);
|
|
2910
3502
|
}
|
|
2911
3503
|
};
|
|
2912
3504
|
const renderTags = () => {
|
|
2913
|
-
var _a2;
|
|
3505
|
+
var _a2, _b2;
|
|
3506
|
+
if (!isVisible(props2.showTags, !!slots.tags || !!((_a2 = props2.tags) == null ? void 0 : _a2.length))) {
|
|
3507
|
+
return;
|
|
3508
|
+
}
|
|
2914
3509
|
if (slots.tags) {
|
|
2915
3510
|
return vue.createVNode("div", {
|
|
2916
|
-
"class": bem$
|
|
3511
|
+
"class": bem$1y("tags")
|
|
2917
3512
|
}, [slots.tags()]);
|
|
2918
3513
|
}
|
|
2919
|
-
if ((
|
|
3514
|
+
if ((_b2 = props2.tags) == null ? void 0 : _b2.length) {
|
|
2920
3515
|
return vue.createVNode("div", {
|
|
2921
|
-
"class": bem$
|
|
3516
|
+
"class": bem$1y("tags")
|
|
2922
3517
|
}, [props2.tags.map((tag, index) => vue.createVNode("span", {
|
|
2923
3518
|
"key": `${tag}-${index}`,
|
|
2924
|
-
"class": bem$
|
|
3519
|
+
"class": bem$1y("tag")
|
|
2925
3520
|
}, [tag]))]);
|
|
2926
3521
|
}
|
|
2927
3522
|
};
|
|
2928
|
-
const
|
|
2929
|
-
if (slots["title-
|
|
3523
|
+
const renderTitleTag = () => {
|
|
3524
|
+
if (!isVisible(props2.showTitleTag, !!slots["title-tag"] || isDef(props2.titleTag))) {
|
|
3525
|
+
return;
|
|
3526
|
+
}
|
|
3527
|
+
if (slots["title-tag"]) {
|
|
2930
3528
|
return vue.createVNode("div", {
|
|
2931
|
-
"class": bem$
|
|
2932
|
-
}, [slots["title-
|
|
3529
|
+
"class": bem$1y("title-tag")
|
|
3530
|
+
}, [slots["title-tag"]()]);
|
|
2933
3531
|
}
|
|
2934
|
-
if (props2.
|
|
2935
|
-
return vue.createVNode(
|
|
2936
|
-
"
|
|
2937
|
-
|
|
2938
|
-
|
|
3532
|
+
if (isDef(props2.titleTag)) {
|
|
3533
|
+
return vue.createVNode("div", {
|
|
3534
|
+
"class": bem$1y("title-tag")
|
|
3535
|
+
}, [vue.createVNode(Tag, {
|
|
3536
|
+
"size": "small"
|
|
3537
|
+
}, {
|
|
3538
|
+
default: () => [props2.titleTag]
|
|
3539
|
+
})]);
|
|
3540
|
+
}
|
|
3541
|
+
};
|
|
3542
|
+
const renderWrapTags = () => {
|
|
3543
|
+
var _a2, _b2;
|
|
3544
|
+
if (!isVisible(props2.showWrapTags, !!slots["wrap-tags"] || !!((_a2 = props2.wrapTags) == null ? void 0 : _a2.length))) {
|
|
3545
|
+
return;
|
|
2939
3546
|
}
|
|
3547
|
+
if (slots["wrap-tags"]) {
|
|
3548
|
+
return vue.createVNode("div", {
|
|
3549
|
+
"class": bem$1y("wrap-tags")
|
|
3550
|
+
}, [slots["wrap-tags"]()]);
|
|
3551
|
+
}
|
|
3552
|
+
if ((_b2 = props2.wrapTags) == null ? void 0 : _b2.length) {
|
|
3553
|
+
return vue.createVNode("div", {
|
|
3554
|
+
"class": bem$1y("wrap-tags")
|
|
3555
|
+
}, [props2.wrapTags.map((tag, index) => vue.createVNode(Tag, {
|
|
3556
|
+
"key": `${tag}-${index}`
|
|
3557
|
+
}, {
|
|
3558
|
+
default: () => [tag]
|
|
3559
|
+
}))]);
|
|
3560
|
+
}
|
|
3561
|
+
};
|
|
3562
|
+
const renderTitleIcon = () => {
|
|
3563
|
+
if (!isVisible(props2.showTitleIcon, !!slots["title-icon"] || !!props2.titleIcon)) {
|
|
3564
|
+
return;
|
|
3565
|
+
}
|
|
3566
|
+
const icon = slots["title-icon"] ? slots["title-icon"]() : props2.titleIcon ? vue.createVNode(Icon, {
|
|
3567
|
+
"name": props2.titleIcon
|
|
3568
|
+
}, null) : void 0;
|
|
3569
|
+
if (!icon)
|
|
3570
|
+
return;
|
|
3571
|
+
if (props2.titleIconClickable) {
|
|
3572
|
+
return vue.createVNode("button", {
|
|
3573
|
+
"type": "button",
|
|
3574
|
+
"class": bem$1y("title-icon", {
|
|
3575
|
+
clickable: true
|
|
3576
|
+
}),
|
|
3577
|
+
"aria-label": `操作${props2.title || ""}`,
|
|
3578
|
+
"onClick": (event) => {
|
|
3579
|
+
event.stopPropagation();
|
|
3580
|
+
emit("click-title-icon", event);
|
|
3581
|
+
}
|
|
3582
|
+
}, [icon]);
|
|
3583
|
+
}
|
|
3584
|
+
return vue.createVNode("div", {
|
|
3585
|
+
"class": bem$1y("title-icon")
|
|
3586
|
+
}, [icon]);
|
|
2940
3587
|
};
|
|
2941
3588
|
const renderNoteContent = (content) => {
|
|
2942
3589
|
const clickable = props2.noteClickable || props2.noteTo || props2.noteUrl;
|
|
2943
|
-
const classes = bem$
|
|
3590
|
+
const classes = bem$1y("note", {
|
|
2944
3591
|
bold: props2.noteBold,
|
|
2945
3592
|
clickable
|
|
2946
3593
|
});
|
|
@@ -2965,6 +3612,9 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2965
3612
|
}, [content]);
|
|
2966
3613
|
};
|
|
2967
3614
|
const renderNote = () => {
|
|
3615
|
+
if (!isVisible(props2.showNote, !!slots.note || isDef(props2.note))) {
|
|
3616
|
+
return;
|
|
3617
|
+
}
|
|
2968
3618
|
if (slots.note) {
|
|
2969
3619
|
return renderNoteContent(slots.note());
|
|
2970
3620
|
}
|
|
@@ -2973,14 +3623,17 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2973
3623
|
}
|
|
2974
3624
|
};
|
|
2975
3625
|
const renderBadge = () => {
|
|
3626
|
+
if (!isVisible(props2.showBadge, !!slots.badge || isDef(props2.badge))) {
|
|
3627
|
+
return;
|
|
3628
|
+
}
|
|
2976
3629
|
if (slots.badge) {
|
|
2977
3630
|
return vue.createVNode("div", {
|
|
2978
|
-
"class": bem$
|
|
3631
|
+
"class": bem$1y("badge")
|
|
2979
3632
|
}, [slots.badge()]);
|
|
2980
3633
|
}
|
|
2981
3634
|
if (isDef(props2.badge)) {
|
|
2982
3635
|
return vue.createVNode("div", {
|
|
2983
|
-
"class": bem$
|
|
3636
|
+
"class": bem$1y("badge")
|
|
2984
3637
|
}, [vue.createVNode(Badge, {
|
|
2985
3638
|
"content": props2.badge,
|
|
2986
3639
|
"showZero": true
|
|
@@ -2988,25 +3641,34 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
2988
3641
|
}
|
|
2989
3642
|
};
|
|
2990
3643
|
const renderRightIcon = () => {
|
|
3644
|
+
if (!isVisible(props2.showRightIcon, !!slots["right-icon"] || !!props2.rightIcon || props2.isLink)) {
|
|
3645
|
+
return;
|
|
3646
|
+
}
|
|
2991
3647
|
if (slots["right-icon"]) {
|
|
2992
|
-
return
|
|
3648
|
+
return vue.createVNode("div", {
|
|
3649
|
+
"class": bem$1y("right-icon-action")
|
|
3650
|
+
}, [slots["right-icon"]()]);
|
|
2993
3651
|
}
|
|
2994
3652
|
if (props2.rightIcon) {
|
|
2995
|
-
return vue.createVNode(
|
|
3653
|
+
return vue.createVNode("div", {
|
|
3654
|
+
"class": bem$1y("right-icon-action")
|
|
3655
|
+
}, [vue.createVNode(Icon, {
|
|
2996
3656
|
"name": props2.rightIcon,
|
|
2997
|
-
"class": bem$
|
|
2998
|
-
}, null);
|
|
3657
|
+
"class": bem$1y("right-icon")
|
|
3658
|
+
}, null)]);
|
|
2999
3659
|
}
|
|
3000
3660
|
if (props2.isLink) {
|
|
3001
3661
|
const name2 = props2.arrowDirection && props2.arrowDirection !== "right" ? `arrow-${props2.arrowDirection}` : "arrow";
|
|
3002
|
-
return vue.createVNode(
|
|
3662
|
+
return vue.createVNode("div", {
|
|
3663
|
+
"class": bem$1y("right-icon-action")
|
|
3664
|
+
}, [vue.createVNode(Icon, {
|
|
3003
3665
|
"name": name2,
|
|
3004
|
-
"class": bem$
|
|
3005
|
-
}, null);
|
|
3666
|
+
"class": bem$1y("right-icon")
|
|
3667
|
+
}, null)]);
|
|
3006
3668
|
}
|
|
3007
3669
|
};
|
|
3008
3670
|
return () => {
|
|
3009
|
-
var _a2, _b2, _c;
|
|
3671
|
+
var _a2, _b2, _c, _d;
|
|
3010
3672
|
const {
|
|
3011
3673
|
size,
|
|
3012
3674
|
center,
|
|
@@ -3018,15 +3680,17 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
3018
3680
|
threeLine
|
|
3019
3681
|
} = props2;
|
|
3020
3682
|
const clickable = (_a2 = props2.clickable) != null ? _a2 : isLink || rightIcon === "arrow" || hasSelect("left") || hasSelect("right");
|
|
3021
|
-
const hasBadge = !!slots.badge || isDef(props2.badge);
|
|
3022
|
-
const
|
|
3683
|
+
const hasBadge = isVisible(props2.showBadge, !!slots.badge || isDef(props2.badge));
|
|
3684
|
+
const hasMultiLineNotes = isVisible(props2.showMultiLineNotes, !!slots["multi-line-notes"] || !!((_b2 = props2.multiLineNotes) == null ? void 0 : _b2.length));
|
|
3685
|
+
const cellSize = (_c = size != null ? size : config == null ? void 0 : config.cellSize) != null ? _c : "normal";
|
|
3023
3686
|
const classes = {
|
|
3024
3687
|
center: center || hasBadge,
|
|
3025
3688
|
required,
|
|
3026
3689
|
"title-bold": titleBold,
|
|
3027
3690
|
clickable,
|
|
3028
3691
|
borderless: !border,
|
|
3029
|
-
"three-line": threeLine
|
|
3692
|
+
"three-line": threeLine,
|
|
3693
|
+
"multi-line-notes": hasMultiLineNotes
|
|
3030
3694
|
};
|
|
3031
3695
|
if (cellSize) {
|
|
3032
3696
|
classes[cellSize] = !!cellSize;
|
|
@@ -3038,16 +3702,19 @@ var stdin_default$1O = vue.defineComponent({
|
|
|
3038
3702
|
}
|
|
3039
3703
|
};
|
|
3040
3704
|
return vue.createVNode("div", {
|
|
3041
|
-
"class": [bem$
|
|
3705
|
+
"class": [bem$1y(classes), props2.errorBorder ? "van-cell-error-border" : ""],
|
|
3706
|
+
"style": props2.background ? {
|
|
3707
|
+
background: props2.background
|
|
3708
|
+
} : void 0,
|
|
3042
3709
|
"role": clickable ? "button" : void 0,
|
|
3043
3710
|
"tabindex": clickable ? 0 : void 0,
|
|
3044
3711
|
"onClick": onClick
|
|
3045
|
-
}, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (
|
|
3712
|
+
}, [renderSelect("left"), renderAvatar("left"), renderLeftIcon(), renderBlueMark(), renderTitle(), renderValue(), renderNote(), renderAvatar("right"), renderBadge(), renderSelect("right"), renderRightIcon(), (_d = slots.extra) == null ? void 0 : _d.call(slots)]);
|
|
3046
3713
|
};
|
|
3047
3714
|
}
|
|
3048
3715
|
});
|
|
3049
|
-
const Cell = withInstall(stdin_default$
|
|
3050
|
-
const [name$
|
|
3716
|
+
const Cell = withInstall(stdin_default$1L);
|
|
3717
|
+
const [name$1B, bem$1x] = createNamespace("form");
|
|
3051
3718
|
const formProps = {
|
|
3052
3719
|
colon: Boolean,
|
|
3053
3720
|
disabled: Boolean,
|
|
@@ -3066,8 +3733,8 @@ const formProps = {
|
|
|
3066
3733
|
default: "onBlur"
|
|
3067
3734
|
}
|
|
3068
3735
|
};
|
|
3069
|
-
var stdin_default$
|
|
3070
|
-
name: name$
|
|
3736
|
+
var stdin_default$1K = vue.defineComponent({
|
|
3737
|
+
name: name$1B,
|
|
3071
3738
|
props: formProps,
|
|
3072
3739
|
emits: ["submit", "failed"],
|
|
3073
3740
|
setup(props2, {
|
|
@@ -3191,13 +3858,13 @@ var stdin_default$1N = vue.defineComponent({
|
|
|
3191
3858
|
return () => {
|
|
3192
3859
|
var _a;
|
|
3193
3860
|
return vue.createVNode("form", {
|
|
3194
|
-
"class": bem$
|
|
3861
|
+
"class": bem$1x(),
|
|
3195
3862
|
"onSubmit": onSubmit
|
|
3196
3863
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
3197
3864
|
};
|
|
3198
3865
|
}
|
|
3199
3866
|
});
|
|
3200
|
-
const Form = withInstall(stdin_default$
|
|
3867
|
+
const Form = withInstall(stdin_default$1K);
|
|
3201
3868
|
function isEmptyValue(value) {
|
|
3202
3869
|
if (Array.isArray(value)) {
|
|
3203
3870
|
return !value.length;
|
|
@@ -3295,7 +3962,7 @@ function useId() {
|
|
|
3295
3962
|
}
|
|
3296
3963
|
return `${name2}-${++current}`;
|
|
3297
3964
|
}
|
|
3298
|
-
const [name$
|
|
3965
|
+
const [name$1A, bem$1w] = createNamespace("field");
|
|
3299
3966
|
const fieldSharedProps = {
|
|
3300
3967
|
id: String,
|
|
3301
3968
|
name: String,
|
|
@@ -3337,6 +4004,11 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
3337
4004
|
labelClass: unknownProp,
|
|
3338
4005
|
labelAlign: String,
|
|
3339
4006
|
labelPosition: String,
|
|
4007
|
+
unit: numericProp,
|
|
4008
|
+
showUnit: {
|
|
4009
|
+
type: Boolean,
|
|
4010
|
+
default: void 0
|
|
4011
|
+
},
|
|
3340
4012
|
showWordLimit: Boolean,
|
|
3341
4013
|
errorMessageAlign: String,
|
|
3342
4014
|
colon: {
|
|
@@ -3348,10 +4020,10 @@ const fieldProps = extend({}, cellSharedProps, fieldSharedProps, {
|
|
|
3348
4020
|
default: false
|
|
3349
4021
|
}
|
|
3350
4022
|
});
|
|
3351
|
-
var stdin_default$
|
|
3352
|
-
name: name$
|
|
4023
|
+
var stdin_default$1J = vue.defineComponent({
|
|
4024
|
+
name: name$1A,
|
|
3353
4025
|
props: fieldProps,
|
|
3354
|
-
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "update:modelValue"],
|
|
4026
|
+
emits: ["blur", "focus", "clear", "keypress", "click-input", "end-validate", "start-validate", "click-left-icon", "click-right-icon", "click-title-icon", "update:modelValue"],
|
|
3355
4027
|
setup(props2, {
|
|
3356
4028
|
emit,
|
|
3357
4029
|
slots
|
|
@@ -3622,7 +4294,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3622
4294
|
const getInputId = () => props2.id || `${id}-input`;
|
|
3623
4295
|
const getValidationStatus = () => state.status;
|
|
3624
4296
|
const renderInput = () => {
|
|
3625
|
-
const controlClass = bem$
|
|
4297
|
+
const controlClass = bem$1w("control", [inputAlign.value, {
|
|
3626
4298
|
error: showError.value,
|
|
3627
4299
|
custom: !!slots.input,
|
|
3628
4300
|
"min-height": props2.type === "textarea" && !props2.autosize
|
|
@@ -3664,7 +4336,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3664
4336
|
const leftIconSlot = slots["left-icon"];
|
|
3665
4337
|
if (props2.leftIcon || leftIconSlot) {
|
|
3666
4338
|
return vue.createVNode("div", {
|
|
3667
|
-
"class": bem$
|
|
4339
|
+
"class": bem$1w("left-icon"),
|
|
3668
4340
|
"onClick": onClickLeftIcon
|
|
3669
4341
|
}, [leftIconSlot ? leftIconSlot() : vue.createVNode(Icon, {
|
|
3670
4342
|
"name": props2.leftIcon,
|
|
@@ -3676,7 +4348,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3676
4348
|
const rightIconSlot = slots["right-icon"];
|
|
3677
4349
|
if (props2.rightIcon || rightIconSlot) {
|
|
3678
4350
|
return vue.createVNode("div", {
|
|
3679
|
-
"class": bem$
|
|
4351
|
+
"class": bem$1w("right-icon"),
|
|
3680
4352
|
"onClick": onClickRightIcon
|
|
3681
4353
|
}, [rightIconSlot ? rightIconSlot() : vue.createVNode(Icon, {
|
|
3682
4354
|
"name": props2.rightIcon,
|
|
@@ -3684,13 +4356,23 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3684
4356
|
}, null)]);
|
|
3685
4357
|
}
|
|
3686
4358
|
};
|
|
4359
|
+
const renderUnit = () => {
|
|
4360
|
+
var _a;
|
|
4361
|
+
const showUnit = (_a = props2.showUnit) != null ? _a : isDef(props2.unit);
|
|
4362
|
+
if (!showUnit || !isDef(props2.unit)) {
|
|
4363
|
+
return;
|
|
4364
|
+
}
|
|
4365
|
+
return vue.createVNode("span", {
|
|
4366
|
+
"class": bem$1w("unit")
|
|
4367
|
+
}, [props2.unit]);
|
|
4368
|
+
};
|
|
3687
4369
|
const renderWordLimit = () => {
|
|
3688
4370
|
if (props2.showWordLimit && props2.maxlength) {
|
|
3689
4371
|
const count = getStringLength(getModelValue());
|
|
3690
4372
|
return vue.createVNode("div", {
|
|
3691
|
-
"class": bem$
|
|
4373
|
+
"class": bem$1w("word-limit")
|
|
3692
4374
|
}, [vue.createVNode("span", {
|
|
3693
|
-
"class": bem$
|
|
4375
|
+
"class": bem$1w("word-num")
|
|
3694
4376
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
3695
4377
|
}
|
|
3696
4378
|
};
|
|
@@ -3703,7 +4385,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3703
4385
|
const slot = slots["error-message"];
|
|
3704
4386
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
3705
4387
|
return vue.createVNode("div", {
|
|
3706
|
-
"class": bem$
|
|
4388
|
+
"class": bem$1w("error-message", errorMessageAlign)
|
|
3707
4389
|
}, [slot ? slot({
|
|
3708
4390
|
message
|
|
3709
4391
|
}) : message]);
|
|
@@ -3722,13 +4404,13 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3722
4404
|
}
|
|
3723
4405
|
};
|
|
3724
4406
|
const renderFieldBody = () => [vue.createVNode("div", {
|
|
3725
|
-
"class": bem$
|
|
3726
|
-
}, [renderInput(), showClear.value && vue.createVNode(Icon, {
|
|
4407
|
+
"class": bem$1w("body")
|
|
4408
|
+
}, [renderInput(), renderUnit(), showClear.value && vue.createVNode(Icon, {
|
|
3727
4409
|
"ref": clearIconRef,
|
|
3728
4410
|
"name": props2.clearIcon,
|
|
3729
|
-
"class": bem$
|
|
4411
|
+
"class": bem$1w("clear")
|
|
3730
4412
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
3731
|
-
"class": bem$
|
|
4413
|
+
"class": bem$1w("button")
|
|
3732
4414
|
}, [slots.button()])]), renderWordLimit(), renderMessage()];
|
|
3733
4415
|
useExpose({
|
|
3734
4416
|
blur,
|
|
@@ -3767,7 +4449,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3767
4449
|
return vue.createVNode(Cell, {
|
|
3768
4450
|
"size": props2.size,
|
|
3769
4451
|
"icon": props2.leftIcon,
|
|
3770
|
-
"class": bem$
|
|
4452
|
+
"class": bem$1w({
|
|
3771
4453
|
error: showError.value,
|
|
3772
4454
|
disabled,
|
|
3773
4455
|
[`label-${labelAlign}`]: labelAlign,
|
|
@@ -3778,9 +4460,13 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3778
4460
|
"errorBorder": props2.errorBorder,
|
|
3779
4461
|
"isLink": props2.isLink,
|
|
3780
4462
|
"clickable": props2.clickable,
|
|
4463
|
+
"titleIcon": props2.titleIcon,
|
|
4464
|
+
"titleIconClickable": props2.titleIconClickable,
|
|
4465
|
+
"showTitleIcon": props2.showTitleIcon,
|
|
4466
|
+
"onClick-title-icon": (event) => emit("click-title-icon", event),
|
|
3781
4467
|
"titleStyle": labelStyle.value,
|
|
3782
|
-
"valueClass": bem$
|
|
3783
|
-
"titleClass": [bem$
|
|
4468
|
+
"valueClass": bem$1w("value"),
|
|
4469
|
+
"titleClass": [bem$1w("label", [labelAlign, {
|
|
3784
4470
|
required: props2.required
|
|
3785
4471
|
}]), props2.labelClass],
|
|
3786
4472
|
"arrowDirection": props2.arrowDirection
|
|
@@ -3793,7 +4479,7 @@ var stdin_default$1M = vue.defineComponent({
|
|
|
3793
4479
|
};
|
|
3794
4480
|
}
|
|
3795
4481
|
});
|
|
3796
|
-
const Field = withInstall(stdin_default$
|
|
4482
|
+
const Field = withInstall(stdin_default$1J);
|
|
3797
4483
|
function usePopupState() {
|
|
3798
4484
|
const state = vue.reactive({
|
|
3799
4485
|
show: false
|
|
@@ -3840,7 +4526,7 @@ function lockClick(lock) {
|
|
|
3840
4526
|
}
|
|
3841
4527
|
}
|
|
3842
4528
|
}
|
|
3843
|
-
const [name$
|
|
4529
|
+
const [name$1z, bem$1v] = createNamespace("toast");
|
|
3844
4530
|
const popupInheritProps = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay"];
|
|
3845
4531
|
const toastProps = {
|
|
3846
4532
|
icon: String,
|
|
@@ -3862,8 +4548,8 @@ const toastProps = {
|
|
|
3862
4548
|
closeOnClick: Boolean,
|
|
3863
4549
|
closeOnClickOverlay: Boolean
|
|
3864
4550
|
};
|
|
3865
|
-
var stdin_default$
|
|
3866
|
-
name: name$
|
|
4551
|
+
var stdin_default$1I = vue.defineComponent({
|
|
4552
|
+
name: name$1z,
|
|
3867
4553
|
props: toastProps,
|
|
3868
4554
|
emits: ["update:show"],
|
|
3869
4555
|
setup(props2, {
|
|
@@ -3898,13 +4584,13 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3898
4584
|
return vue.createVNode(Icon, {
|
|
3899
4585
|
"name": icon || type,
|
|
3900
4586
|
"size": iconSize,
|
|
3901
|
-
"class": bem$
|
|
4587
|
+
"class": bem$1v("icon"),
|
|
3902
4588
|
"classPrefix": iconPrefix
|
|
3903
4589
|
}, null);
|
|
3904
4590
|
}
|
|
3905
4591
|
if (type === "loading") {
|
|
3906
4592
|
return vue.createVNode(Loading, {
|
|
3907
|
-
"class": bem$
|
|
4593
|
+
"class": bem$1v("loading"),
|
|
3908
4594
|
"size": iconSize,
|
|
3909
4595
|
"type": loadingType
|
|
3910
4596
|
}, null);
|
|
@@ -3918,10 +4604,10 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3918
4604
|
if (isDef(message) && message !== "") {
|
|
3919
4605
|
return type === "html" ? vue.createVNode("div", {
|
|
3920
4606
|
"key": 0,
|
|
3921
|
-
"class": bem$
|
|
4607
|
+
"class": bem$1v("text"),
|
|
3922
4608
|
"innerHTML": String(message)
|
|
3923
4609
|
}, null) : vue.createVNode("div", {
|
|
3924
|
-
"class": bem$
|
|
4610
|
+
"class": bem$1v("text")
|
|
3925
4611
|
}, [message]);
|
|
3926
4612
|
}
|
|
3927
4613
|
};
|
|
@@ -3937,7 +4623,7 @@ var stdin_default$1L = vue.defineComponent({
|
|
|
3937
4623
|
vue.onMounted(toggleClickable);
|
|
3938
4624
|
vue.onUnmounted(toggleClickable);
|
|
3939
4625
|
return () => vue.createVNode(Popup, vue.mergeProps({
|
|
3940
|
-
"class": [bem$
|
|
4626
|
+
"class": [bem$1v([props2.position, {
|
|
3941
4627
|
[props2.type]: !props2.icon
|
|
3942
4628
|
}]), props2.className],
|
|
3943
4629
|
"lockScroll": false,
|
|
@@ -4006,7 +4692,7 @@ function createInstance() {
|
|
|
4006
4692
|
onClosed,
|
|
4007
4693
|
"onUpdate:show": toggle
|
|
4008
4694
|
};
|
|
4009
|
-
return vue.createVNode(stdin_default$
|
|
4695
|
+
return vue.createVNode(stdin_default$1I, vue.mergeProps(state, attrs), null);
|
|
4010
4696
|
};
|
|
4011
4697
|
vue.watch(message, (val) => {
|
|
4012
4698
|
state.message = val;
|
|
@@ -4078,10 +4764,10 @@ Toast.allowMultiple = (value = true) => {
|
|
|
4078
4764
|
allowMultiple = value;
|
|
4079
4765
|
};
|
|
4080
4766
|
Toast.install = (app) => {
|
|
4081
|
-
app.use(withInstall(stdin_default$
|
|
4767
|
+
app.use(withInstall(stdin_default$1I));
|
|
4082
4768
|
app.config.globalProperties.$toast = Toast;
|
|
4083
4769
|
};
|
|
4084
|
-
const [name$
|
|
4770
|
+
const [name$1y, bem$1u] = createNamespace("switch");
|
|
4085
4771
|
const switchProps = {
|
|
4086
4772
|
size: numericProp,
|
|
4087
4773
|
loading: Boolean,
|
|
@@ -4098,8 +4784,8 @@ const switchProps = {
|
|
|
4098
4784
|
default: false
|
|
4099
4785
|
}
|
|
4100
4786
|
};
|
|
4101
|
-
var stdin_default$
|
|
4102
|
-
name: name$
|
|
4787
|
+
var stdin_default$1H = vue.defineComponent({
|
|
4788
|
+
name: name$1y,
|
|
4103
4789
|
props: switchProps,
|
|
4104
4790
|
emits: ["change", "update:modelValue"],
|
|
4105
4791
|
setup(props2, {
|
|
@@ -4118,7 +4804,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4118
4804
|
if (props2.loading) {
|
|
4119
4805
|
const color = isChecked() ? props2.activeColor : props2.inactiveColor;
|
|
4120
4806
|
return vue.createVNode(Loading, {
|
|
4121
|
-
"class": bem$
|
|
4807
|
+
"class": bem$1u("loading"),
|
|
4122
4808
|
"color": color
|
|
4123
4809
|
}, null);
|
|
4124
4810
|
}
|
|
@@ -4143,7 +4829,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4143
4829
|
};
|
|
4144
4830
|
return vue.createVNode("div", {
|
|
4145
4831
|
"role": "switch",
|
|
4146
|
-
"class": bem$
|
|
4832
|
+
"class": bem$1u({
|
|
4147
4833
|
on: checked,
|
|
4148
4834
|
loading,
|
|
4149
4835
|
disabled
|
|
@@ -4153,16 +4839,16 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4153
4839
|
"aria-checked": checked,
|
|
4154
4840
|
"onClick": onClick
|
|
4155
4841
|
}, [vue.createVNode("div", {
|
|
4156
|
-
"class": bem$
|
|
4842
|
+
"class": bem$1u("node")
|
|
4157
4843
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
4158
4844
|
};
|
|
4159
4845
|
}
|
|
4160
4846
|
});
|
|
4161
|
-
const Switch = withInstall(stdin_default$
|
|
4162
|
-
const [name$
|
|
4847
|
+
const Switch = withInstall(stdin_default$1H);
|
|
4848
|
+
const [name$1x, bem$1t] = createNamespace("address-edit-detail");
|
|
4163
4849
|
const t$i = createNamespace("address-edit")[2];
|
|
4164
|
-
var stdin_default$
|
|
4165
|
-
name: name$
|
|
4850
|
+
var stdin_default$1G = vue.defineComponent({
|
|
4851
|
+
name: name$1x,
|
|
4166
4852
|
props: {
|
|
4167
4853
|
show: Boolean,
|
|
4168
4854
|
rows: numericProp,
|
|
@@ -4185,7 +4871,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4185
4871
|
};
|
|
4186
4872
|
const renderSearchTitle = (express) => {
|
|
4187
4873
|
if (express.name) {
|
|
4188
|
-
const text = express.name.replace(props2.value, `<span class=${bem$
|
|
4874
|
+
const text = express.name.replace(props2.value, `<span class=${bem$1t("keyword")}>${props2.value}</span>`);
|
|
4189
4875
|
return vue.createVNode("div", {
|
|
4190
4876
|
"innerHTML": text
|
|
4191
4877
|
}, null);
|
|
@@ -4203,7 +4889,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4203
4889
|
"key": express.name + express.address,
|
|
4204
4890
|
"icon": "location-o",
|
|
4205
4891
|
"label": express.address,
|
|
4206
|
-
"class": bem$
|
|
4892
|
+
"class": bem$1t("search-item"),
|
|
4207
4893
|
"border": false,
|
|
4208
4894
|
"onClick": () => onSelect(express)
|
|
4209
4895
|
}, {
|
|
@@ -4219,7 +4905,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4219
4905
|
"autosize": true,
|
|
4220
4906
|
"clearable": true,
|
|
4221
4907
|
"ref": field,
|
|
4222
|
-
"class": bem$
|
|
4908
|
+
"class": bem$1t(),
|
|
4223
4909
|
"rows": props2.rows,
|
|
4224
4910
|
"type": "textarea",
|
|
4225
4911
|
"rules": props2.rules,
|
|
@@ -4236,7 +4922,7 @@ var stdin_default$1J = vue.defineComponent({
|
|
|
4236
4922
|
};
|
|
4237
4923
|
}
|
|
4238
4924
|
});
|
|
4239
|
-
const [name$
|
|
4925
|
+
const [name$1w, bem$1s, t$h] = createNamespace("address-edit");
|
|
4240
4926
|
const DEFAULT_DATA = {
|
|
4241
4927
|
name: "",
|
|
4242
4928
|
tel: "",
|
|
@@ -4283,8 +4969,8 @@ const addressEditProps = {
|
|
|
4283
4969
|
default: isPostal
|
|
4284
4970
|
}
|
|
4285
4971
|
};
|
|
4286
|
-
var stdin_default$
|
|
4287
|
-
name: name$
|
|
4972
|
+
var stdin_default$1F = vue.defineComponent({
|
|
4973
|
+
name: name$1w,
|
|
4288
4974
|
props: addressEditProps,
|
|
4289
4975
|
emits: ["save", "focus", "delete", "click-area", "change-area", "change-detail", "select-search", "change-default"],
|
|
4290
4976
|
setup(props2, {
|
|
@@ -4410,7 +5096,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4410
5096
|
return vue.withDirectives(vue.createVNode(Cell, {
|
|
4411
5097
|
"center": true,
|
|
4412
5098
|
"title": t$h("defaultAddress"),
|
|
4413
|
-
"class": bem$
|
|
5099
|
+
"class": bem$1s("default")
|
|
4414
5100
|
}, slots2), [[vue.vShow, !hideBottomFields.value]]);
|
|
4415
5101
|
}
|
|
4416
5102
|
};
|
|
@@ -4432,13 +5118,13 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4432
5118
|
disableArea
|
|
4433
5119
|
} = props2;
|
|
4434
5120
|
return vue.createVNode(Form, {
|
|
4435
|
-
"class": bem$
|
|
5121
|
+
"class": bem$1s(),
|
|
4436
5122
|
"onSubmit": onSave
|
|
4437
5123
|
}, {
|
|
4438
5124
|
default: () => {
|
|
4439
5125
|
var _a;
|
|
4440
5126
|
return [vue.createVNode("div", {
|
|
4441
|
-
"class": bem$
|
|
5127
|
+
"class": bem$1s("fields")
|
|
4442
5128
|
}, [vue.createVNode(Field, {
|
|
4443
5129
|
"modelValue": data.name,
|
|
4444
5130
|
"onUpdate:modelValue": ($event) => data.name = $event,
|
|
@@ -4469,7 +5155,7 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4469
5155
|
emit("click-area");
|
|
4470
5156
|
showAreaPopup.value = !disableArea;
|
|
4471
5157
|
}
|
|
4472
|
-
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$
|
|
5158
|
+
}, null), [[vue.vShow, props2.showArea]]), vue.createVNode(stdin_default$1G, {
|
|
4473
5159
|
"show": props2.showDetail,
|
|
4474
5160
|
"rows": props2.detailRows,
|
|
4475
5161
|
"rules": rules.value.addressDetail,
|
|
@@ -4480,153 +5166,64 @@ var stdin_default$1I = vue.defineComponent({
|
|
|
4480
5166
|
"showSearchResult": props2.showSearchResult,
|
|
4481
5167
|
"onBlur": onDetailBlur,
|
|
4482
5168
|
"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
|
|
5169
|
+
"onInput": onChangeDetail,
|
|
5170
|
+
"onSelect-search": (event) => emit("select-search", event)
|
|
5171
|
+
}, null), props2.showPostal && vue.withDirectives(vue.createVNode(Field, {
|
|
5172
|
+
"modelValue": data.postalCode,
|
|
5173
|
+
"onUpdate:modelValue": ($event) => data.postalCode = $event,
|
|
5174
|
+
"type": "tel",
|
|
5175
|
+
"rules": rules.value.postalCode,
|
|
5176
|
+
"label": t$h("postal"),
|
|
5177
|
+
"maxlength": "6",
|
|
5178
|
+
"placeholder": t$h("postal"),
|
|
5179
|
+
"onFocus": () => onFocus("postalCode")
|
|
5180
|
+
}, null), [[vue.vShow, !hideBottomFields.value]]), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderSetDefaultCell(), vue.withDirectives(vue.createVNode("div", {
|
|
5181
|
+
"class": bem$1s("buttons")
|
|
5182
|
+
}, [vue.createVNode(Button, {
|
|
5183
|
+
"block": true,
|
|
5184
|
+
"round": true,
|
|
5185
|
+
"type": "primary",
|
|
5186
|
+
"text": props2.saveButtonText || t$h("save"),
|
|
5187
|
+
"class": bem$1s("button"),
|
|
5188
|
+
"loading": props2.isSaving,
|
|
5189
|
+
"nativeType": "submit"
|
|
5190
|
+
}, null), props2.showDelete && vue.createVNode(Button, {
|
|
5191
|
+
"block": true,
|
|
5192
|
+
"round": true,
|
|
5193
|
+
"class": bem$1s("button"),
|
|
5194
|
+
"loading": props2.isDeleting,
|
|
5195
|
+
"text": props2.deleteButtonText || t$h("delete"),
|
|
5196
|
+
"onClick": onDelete
|
|
5197
|
+
}, null)]), [[vue.vShow, !hideBottomFields.value]]), vue.createVNode(Popup, {
|
|
5198
|
+
"show": showAreaPopup.value,
|
|
5199
|
+
"onUpdate:show": ($event) => showAreaPopup.value = $event,
|
|
5200
|
+
"round": true,
|
|
5201
|
+
"teleport": "body",
|
|
5202
|
+
"position": "bottom",
|
|
5203
|
+
"lazyRender": false
|
|
5204
|
+
}, {
|
|
5205
|
+
default: () => [vue.createVNode(Area, {
|
|
5206
|
+
"ref": areaRef,
|
|
5207
|
+
"value": data.areaCode,
|
|
5208
|
+
"loading": !areaListLoaded.value,
|
|
5209
|
+
"areaList": props2.areaList,
|
|
5210
|
+
"columnsPlaceholder": props2.areaColumnsPlaceholder,
|
|
5211
|
+
"onConfirm": onAreaConfirm,
|
|
5212
|
+
"onCancel": () => {
|
|
5213
|
+
showAreaPopup.value = false;
|
|
5214
|
+
}
|
|
5215
|
+
}, null)]
|
|
5216
|
+
})];
|
|
4616
5217
|
}
|
|
4617
|
-
}
|
|
5218
|
+
});
|
|
4618
5219
|
};
|
|
4619
|
-
return () => vue.createVNode(vue.Transition, {
|
|
4620
|
-
"name": props2.closeable ? "van-fade" : void 0
|
|
4621
|
-
}, {
|
|
4622
|
-
default: () => [props2.show ? renderTag() : null]
|
|
4623
|
-
});
|
|
4624
5220
|
}
|
|
4625
5221
|
});
|
|
4626
|
-
const
|
|
4627
|
-
const
|
|
4628
|
-
|
|
4629
|
-
|
|
5222
|
+
const AddressEdit = withInstall(stdin_default$1F);
|
|
5223
|
+
const RadioGroup = withInstall(stdin_default$1O);
|
|
5224
|
+
const [name$1v, bem$1r] = createNamespace("address-item");
|
|
5225
|
+
var stdin_default$1E = vue.defineComponent({
|
|
5226
|
+
name: name$1v,
|
|
4630
5227
|
props: {
|
|
4631
5228
|
address: makeRequiredProp(Object),
|
|
4632
5229
|
disabled: Boolean,
|
|
@@ -4646,7 +5243,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4646
5243
|
};
|
|
4647
5244
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
|
4648
5245
|
"name": "edit",
|
|
4649
|
-
"class": bem$
|
|
5246
|
+
"class": bem$1r("edit"),
|
|
4650
5247
|
"onClick": (event) => {
|
|
4651
5248
|
event.stopPropagation();
|
|
4652
5249
|
emit("edit");
|
|
@@ -4661,7 +5258,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4661
5258
|
return vue.createVNode(Tag, {
|
|
4662
5259
|
"type": "danger",
|
|
4663
5260
|
"round": true,
|
|
4664
|
-
"class": bem$
|
|
5261
|
+
"class": bem$1r("tag")
|
|
4665
5262
|
}, {
|
|
4666
5263
|
default: () => [props2.defaultTagText]
|
|
4667
5264
|
});
|
|
@@ -4674,9 +5271,9 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4674
5271
|
switchable
|
|
4675
5272
|
} = props2;
|
|
4676
5273
|
const Info = [vue.createVNode("div", {
|
|
4677
|
-
"class": bem$
|
|
5274
|
+
"class": bem$1r("name")
|
|
4678
5275
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
|
4679
|
-
"class": bem$
|
|
5276
|
+
"class": bem$1r("address")
|
|
4680
5277
|
}, [address.address])];
|
|
4681
5278
|
if (switchable && !disabled) {
|
|
4682
5279
|
return vue.createVNode(Radio, {
|
|
@@ -4694,13 +5291,13 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4694
5291
|
disabled
|
|
4695
5292
|
} = props2;
|
|
4696
5293
|
return vue.createVNode("div", {
|
|
4697
|
-
"class": bem$
|
|
5294
|
+
"class": bem$1r({
|
|
4698
5295
|
disabled
|
|
4699
5296
|
}),
|
|
4700
5297
|
"onClick": onClick
|
|
4701
5298
|
}, [vue.createVNode(Cell, {
|
|
4702
5299
|
"border": false,
|
|
4703
|
-
"valueClass": bem$
|
|
5300
|
+
"valueClass": bem$1r("value")
|
|
4704
5301
|
}, {
|
|
4705
5302
|
value: renderContent,
|
|
4706
5303
|
"right-icon": renderRightIcon
|
|
@@ -4710,7 +5307,7 @@ var stdin_default$1G = vue.defineComponent({
|
|
|
4710
5307
|
};
|
|
4711
5308
|
}
|
|
4712
5309
|
});
|
|
4713
|
-
const [name$
|
|
5310
|
+
const [name$1u, bem$1q, t$g] = createNamespace("address-list");
|
|
4714
5311
|
const addressListProps = {
|
|
4715
5312
|
list: makeArrayProp(),
|
|
4716
5313
|
modelValue: numericProp,
|
|
@@ -4720,8 +5317,8 @@ const addressListProps = {
|
|
|
4720
5317
|
addButtonText: String,
|
|
4721
5318
|
defaultTagText: String
|
|
4722
5319
|
};
|
|
4723
|
-
var stdin_default$
|
|
4724
|
-
name: name$
|
|
5320
|
+
var stdin_default$1D = vue.defineComponent({
|
|
5321
|
+
name: name$1u,
|
|
4725
5322
|
props: addressListProps,
|
|
4726
5323
|
emits: ["add", "edit", "select", "click-item", "edit-disabled", "select-disabled", "update:modelValue"],
|
|
4727
5324
|
setup(props2, {
|
|
@@ -4737,7 +5334,7 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4737
5334
|
emit("update:modelValue", item.id);
|
|
4738
5335
|
}
|
|
4739
5336
|
};
|
|
4740
|
-
return vue.createVNode(stdin_default$
|
|
5337
|
+
return vue.createVNode(stdin_default$1E, {
|
|
4741
5338
|
"key": item.id,
|
|
4742
5339
|
"address": item,
|
|
4743
5340
|
"disabled": disabled,
|
|
@@ -4757,13 +5354,13 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4757
5354
|
}
|
|
4758
5355
|
};
|
|
4759
5356
|
const renderBottom = () => vue.createVNode("div", {
|
|
4760
|
-
"class": [bem$
|
|
5357
|
+
"class": [bem$1q("bottom"), "van-safe-area-bottom"]
|
|
4761
5358
|
}, [vue.createVNode(Button, {
|
|
4762
5359
|
"round": true,
|
|
4763
5360
|
"block": true,
|
|
4764
5361
|
"type": "primary",
|
|
4765
5362
|
"text": props2.addButtonText || t$g("add"),
|
|
4766
|
-
"class": bem$
|
|
5363
|
+
"class": bem$1q("add"),
|
|
4767
5364
|
"onClick": () => emit("add")
|
|
4768
5365
|
}, null)]);
|
|
4769
5366
|
return () => {
|
|
@@ -4771,10 +5368,10 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4771
5368
|
const List2 = renderList(props2.list);
|
|
4772
5369
|
const DisabledList = renderList(props2.disabledList, true);
|
|
4773
5370
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
|
4774
|
-
"class": bem$
|
|
5371
|
+
"class": bem$1q("disabled-text")
|
|
4775
5372
|
}, [props2.disabledText]);
|
|
4776
5373
|
return vue.createVNode("div", {
|
|
4777
|
-
"class": bem$
|
|
5374
|
+
"class": bem$1q()
|
|
4778
5375
|
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(RadioGroup, {
|
|
4779
5376
|
"modelValue": props2.modelValue
|
|
4780
5377
|
}, {
|
|
@@ -4783,13 +5380,13 @@ var stdin_default$1F = vue.defineComponent({
|
|
|
4783
5380
|
};
|
|
4784
5381
|
}
|
|
4785
5382
|
});
|
|
4786
|
-
const AddressList = withInstall(stdin_default$
|
|
4787
|
-
const [name$
|
|
5383
|
+
const AddressList = withInstall(stdin_default$1D);
|
|
5384
|
+
const [name$1t, bem$1p] = createNamespace("background");
|
|
4788
5385
|
const backgroundProps = {
|
|
4789
5386
|
theme: makeStringProp("default")
|
|
4790
5387
|
};
|
|
4791
|
-
var stdin_default$
|
|
4792
|
-
name: name$
|
|
5388
|
+
var stdin_default$1C = vue.defineComponent({
|
|
5389
|
+
name: name$1t,
|
|
4793
5390
|
props: backgroundProps,
|
|
4794
5391
|
setup(props2, {
|
|
4795
5392
|
slots
|
|
@@ -4797,13 +5394,13 @@ var stdin_default$1E = vue.defineComponent({
|
|
|
4797
5394
|
return () => {
|
|
4798
5395
|
var _a;
|
|
4799
5396
|
return vue.createVNode("div", {
|
|
4800
|
-
"class": bem$
|
|
5397
|
+
"class": bem$1p([props2.theme])
|
|
4801
5398
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
4802
5399
|
};
|
|
4803
5400
|
}
|
|
4804
5401
|
});
|
|
4805
|
-
const Background = withInstall(stdin_default$
|
|
4806
|
-
const [name$
|
|
5402
|
+
const Background = withInstall(stdin_default$1C);
|
|
5403
|
+
const [name$1s, bem$1o] = createNamespace("blue-mark");
|
|
4807
5404
|
const blueMarkProps = {
|
|
4808
5405
|
size: {
|
|
4809
5406
|
type: String,
|
|
@@ -4817,8 +5414,8 @@ const blueMarkProps = {
|
|
|
4817
5414
|
gap: numericProp,
|
|
4818
5415
|
isLink: Boolean
|
|
4819
5416
|
};
|
|
4820
|
-
var stdin_default$
|
|
4821
|
-
name: name$
|
|
5417
|
+
var stdin_default$1B = vue.defineComponent({
|
|
5418
|
+
name: name$1s,
|
|
4822
5419
|
props: blueMarkProps,
|
|
4823
5420
|
emits: ["click"],
|
|
4824
5421
|
setup(props2, {
|
|
@@ -4836,30 +5433,30 @@ var stdin_default$1D = vue.defineComponent({
|
|
|
4836
5433
|
return () => {
|
|
4837
5434
|
var _a;
|
|
4838
5435
|
return vue.createVNode("span", {
|
|
4839
|
-
"class": [name$
|
|
5436
|
+
"class": [name$1s, props2.size === "normal" ? "" : `${name$1s}--${props2.size}`, props2.isLink ? `${name$1s}--link` : ""],
|
|
4840
5437
|
"style": style.value,
|
|
4841
5438
|
"onClick": props2.isLink ? (event) => emit("click", event) : void 0
|
|
4842
5439
|
}, [vue.createVNode("span", {
|
|
4843
|
-
"class": bem$
|
|
5440
|
+
"class": bem$1o("main")
|
|
4844
5441
|
}, [vue.createVNode("span", {
|
|
4845
|
-
"class": bem$
|
|
5442
|
+
"class": bem$1o("mark")
|
|
4846
5443
|
}, null), vue.createVNode("span", {
|
|
4847
|
-
"class": bem$
|
|
5444
|
+
"class": bem$1o("content")
|
|
4848
5445
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]), props2.isLink && vue.createVNode(stdin_default$22, {
|
|
4849
5446
|
"name": "arrow",
|
|
4850
|
-
"class": bem$
|
|
5447
|
+
"class": bem$1o("arrow")
|
|
4851
5448
|
}, null)]);
|
|
4852
5449
|
};
|
|
4853
5450
|
}
|
|
4854
5451
|
});
|
|
4855
|
-
const [name$
|
|
5452
|
+
const [name$1r, bem$1n] = createNamespace("divider");
|
|
4856
5453
|
const dividerProps = {
|
|
4857
5454
|
dashed: Boolean,
|
|
4858
5455
|
hairline: truthProp,
|
|
4859
5456
|
contentPosition: makeStringProp("center")
|
|
4860
5457
|
};
|
|
4861
|
-
var stdin_default$
|
|
4862
|
-
name: name$
|
|
5458
|
+
var stdin_default$1A = vue.defineComponent({
|
|
5459
|
+
name: name$1r,
|
|
4863
5460
|
props: dividerProps,
|
|
4864
5461
|
setup(props2, {
|
|
4865
5462
|
slots
|
|
@@ -4868,7 +5465,7 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4868
5465
|
var _a;
|
|
4869
5466
|
return vue.createVNode("div", {
|
|
4870
5467
|
"role": "separator",
|
|
4871
|
-
"class": bem$
|
|
5468
|
+
"class": bem$1n({
|
|
4872
5469
|
dashed: props2.dashed,
|
|
4873
5470
|
hairline: props2.hairline,
|
|
4874
5471
|
[`content-${props2.contentPosition}`]: !!slots.default
|
|
@@ -4877,16 +5474,16 @@ var stdin_default$1C = vue.defineComponent({
|
|
|
4877
5474
|
};
|
|
4878
5475
|
}
|
|
4879
5476
|
});
|
|
4880
|
-
const Divider = withInstall(stdin_default$
|
|
4881
|
-
const [name$
|
|
5477
|
+
const Divider = withInstall(stdin_default$1A);
|
|
5478
|
+
const [name$1q, bem$1m] = createNamespace("collapse-toggle");
|
|
4882
5479
|
const collapseToggleProps = {
|
|
4883
5480
|
modelValue: Boolean,
|
|
4884
5481
|
divider: Boolean,
|
|
4885
5482
|
expandText: makeStringProp("展开"),
|
|
4886
5483
|
collapseText: makeStringProp("收起")
|
|
4887
5484
|
};
|
|
4888
|
-
var stdin_default$
|
|
4889
|
-
name: name$
|
|
5485
|
+
var stdin_default$1z = vue.defineComponent({
|
|
5486
|
+
name: name$1q,
|
|
4890
5487
|
props: collapseToggleProps,
|
|
4891
5488
|
emits: ["update:modelValue", "change"],
|
|
4892
5489
|
setup(props2, {
|
|
@@ -4905,7 +5502,7 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4905
5502
|
const text = expanded ? props2.collapseText : props2.expandText;
|
|
4906
5503
|
return vue.createVNode("button", {
|
|
4907
5504
|
"type": "button",
|
|
4908
|
-
"class": bem$
|
|
5505
|
+
"class": bem$1m({
|
|
4909
5506
|
expanded
|
|
4910
5507
|
}),
|
|
4911
5508
|
"aria-expanded": expanded,
|
|
@@ -4915,20 +5512,20 @@ var stdin_default$1B = vue.defineComponent({
|
|
|
4915
5512
|
text
|
|
4916
5513
|
})) || text]), vue.createVNode(Icon, {
|
|
4917
5514
|
"name": "arrow-down",
|
|
4918
|
-
"class": bem$
|
|
5515
|
+
"class": bem$1m("icon")
|
|
4919
5516
|
}, null)]);
|
|
4920
5517
|
};
|
|
4921
5518
|
return () => {
|
|
4922
5519
|
if (props2.divider) {
|
|
4923
5520
|
return vue.createVNode("div", {
|
|
4924
|
-
"class": bem$
|
|
5521
|
+
"class": bem$1m("divider")
|
|
4925
5522
|
}, [vue.createVNode(Divider, null, null), renderToggle(), vue.createVNode(Divider, null, null)]);
|
|
4926
5523
|
}
|
|
4927
5524
|
return renderToggle();
|
|
4928
5525
|
};
|
|
4929
5526
|
}
|
|
4930
5527
|
});
|
|
4931
|
-
const [name$
|
|
5528
|
+
const [name$1p, bem$1l] = createNamespace("blue-mark-header");
|
|
4932
5529
|
const blueMarkHeaderProps = {
|
|
4933
5530
|
title: numericProp,
|
|
4934
5531
|
size: {
|
|
@@ -4942,8 +5539,8 @@ const blueMarkHeaderProps = {
|
|
|
4942
5539
|
expandText: String,
|
|
4943
5540
|
collapseText: String
|
|
4944
5541
|
};
|
|
4945
|
-
var stdin_default$
|
|
4946
|
-
name: name$
|
|
5542
|
+
var stdin_default$1y = vue.defineComponent({
|
|
5543
|
+
name: name$1p,
|
|
4947
5544
|
props: blueMarkHeaderProps,
|
|
4948
5545
|
emits: ["click-action", "update:modelValue", "change"],
|
|
4949
5546
|
setup(props2, {
|
|
@@ -4958,226 +5555,56 @@ var stdin_default$1A = vue.defineComponent({
|
|
|
4958
5555
|
if (props2.expandable) {
|
|
4959
5556
|
onChange(!props2.modelValue);
|
|
4960
5557
|
}
|
|
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
|
-
});
|
|
5558
|
+
};
|
|
5559
|
+
const onHeaderKeydown = (event) => {
|
|
5560
|
+
if (props2.expandable && (event.key === "Enter" || event.key === " ")) {
|
|
5561
|
+
event.preventDefault();
|
|
5562
|
+
onHeaderClick();
|
|
5563
|
+
}
|
|
5564
|
+
};
|
|
5155
5565
|
return () => {
|
|
5156
5566
|
var _a;
|
|
5157
|
-
return vue.createVNode(
|
|
5158
|
-
"
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
"
|
|
5163
|
-
"
|
|
5164
|
-
"
|
|
5165
|
-
"
|
|
5166
|
-
|
|
5167
|
-
"
|
|
5168
|
-
},
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
})])
|
|
5567
|
+
return vue.createVNode("div", {
|
|
5568
|
+
"class": bem$1l({
|
|
5569
|
+
expandable: props2.expandable
|
|
5570
|
+
}),
|
|
5571
|
+
"role": props2.expandable ? "button" : void 0,
|
|
5572
|
+
"tabindex": props2.expandable ? 0 : void 0,
|
|
5573
|
+
"aria-expanded": props2.expandable ? props2.modelValue : void 0,
|
|
5574
|
+
"onClick": onHeaderClick,
|
|
5575
|
+
"onKeydown": onHeaderKeydown
|
|
5576
|
+
}, [vue.createVNode("div", {
|
|
5577
|
+
"class": bem$1l("main")
|
|
5578
|
+
}, [vue.createVNode(stdin_default$1B, {
|
|
5579
|
+
"size": props2.size,
|
|
5580
|
+
"class": bem$1l("title")
|
|
5581
|
+
}, {
|
|
5582
|
+
default: () => [slots.title ? slots.title() : slots.default ? slots.default() : props2.title]
|
|
5583
|
+
}), props2.required && vue.createVNode("span", {
|
|
5584
|
+
"class": bem$1l("required")
|
|
5585
|
+
}, [vue.createTextVNode("*")]), slots.action ? vue.createVNode("span", {
|
|
5586
|
+
"class": bem$1l("action"),
|
|
5587
|
+
"onClick": (event) => event.stopPropagation()
|
|
5588
|
+
}, [slots.action()]) : props2.actionText ? vue.createVNode("button", {
|
|
5589
|
+
"type": "button",
|
|
5590
|
+
"class": bem$1l("action"),
|
|
5591
|
+
"onClick": (event) => {
|
|
5592
|
+
event.stopPropagation();
|
|
5593
|
+
emit("click-action");
|
|
5594
|
+
}
|
|
5595
|
+
}, [props2.actionText]) : null]), (_a = slots.extra) == null ? void 0 : _a.call(slots), props2.expandable && vue.createVNode(stdin_default$1z, {
|
|
5596
|
+
"modelValue": props2.modelValue,
|
|
5597
|
+
"expandText": props2.expandText,
|
|
5598
|
+
"collapseText": props2.collapseText,
|
|
5599
|
+
"onUpdate:modelValue": onChange
|
|
5600
|
+
}, null)]);
|
|
5176
5601
|
};
|
|
5177
5602
|
}
|
|
5178
5603
|
});
|
|
5179
|
-
const
|
|
5180
|
-
const
|
|
5604
|
+
const BlueMark = withInstall(stdin_default$1B);
|
|
5605
|
+
const BlueMarkHeader = withInstall(stdin_default$1y);
|
|
5606
|
+
const CollapseToggle = withInstall(stdin_default$1z);
|
|
5607
|
+
const [name$1o, bem$1k] = createNamespace("bottom-action-bar");
|
|
5181
5608
|
const bottomActionBarProps = {
|
|
5182
5609
|
confirmText: makeStringProp("确定"),
|
|
5183
5610
|
confirmType: makeStringProp("primary"),
|
|
@@ -5204,8 +5631,8 @@ const bottomActionBarProps = {
|
|
|
5204
5631
|
checkboxActionDisabled: Boolean,
|
|
5205
5632
|
checkboxActionText: makeStringProp("保存为我的默认筛选")
|
|
5206
5633
|
};
|
|
5207
|
-
var stdin_default$
|
|
5208
|
-
name: name$
|
|
5634
|
+
var stdin_default$1x = vue.defineComponent({
|
|
5635
|
+
name: name$1o,
|
|
5209
5636
|
props: bottomActionBarProps,
|
|
5210
5637
|
emits: ["confirm", "secondary", "icon", "more", "select-more-popover", "update:checkboxActionChecked", "checkbox-action-change"],
|
|
5211
5638
|
setup(props2, {
|
|
@@ -5214,18 +5641,18 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5214
5641
|
}) {
|
|
5215
5642
|
const root = vue.ref();
|
|
5216
5643
|
const morePopoverShow = vue.ref(false);
|
|
5217
|
-
const renderPlaceholder = usePlaceholder(root, bem$
|
|
5644
|
+
const renderPlaceholder = usePlaceholder(root, bem$1k);
|
|
5218
5645
|
const renderIconAction = () => {
|
|
5219
5646
|
if (slots.icon) {
|
|
5220
5647
|
return vue.createVNode("div", {
|
|
5221
|
-
"class": bem$
|
|
5648
|
+
"class": bem$1k("icon-action")
|
|
5222
5649
|
}, [slots.icon()]);
|
|
5223
5650
|
}
|
|
5224
5651
|
if (!props2.icon) {
|
|
5225
5652
|
return;
|
|
5226
5653
|
}
|
|
5227
5654
|
return vue.createVNode(Button, {
|
|
5228
|
-
"class": bem$
|
|
5655
|
+
"class": bem$1k("icon-button"),
|
|
5229
5656
|
"icon": props2.icon,
|
|
5230
5657
|
"iconPrefix": props2.iconPrefix,
|
|
5231
5658
|
"disabled": props2.iconDisabled,
|
|
@@ -5241,7 +5668,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5241
5668
|
};
|
|
5242
5669
|
const renderMoreButton = (popoverEnabled = false) => vue.createVNode("button", {
|
|
5243
5670
|
"type": "button",
|
|
5244
|
-
"class": bem$
|
|
5671
|
+
"class": bem$1k("more-action"),
|
|
5245
5672
|
"disabled": props2.moreDisabled,
|
|
5246
5673
|
"onClick": popoverEnabled ? void 0 : () => emit("more")
|
|
5247
5674
|
}, [vue.createVNode(Badge, {
|
|
@@ -5251,30 +5678,30 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5251
5678
|
}, {
|
|
5252
5679
|
default: () => [vue.createVNode(Icon, {
|
|
5253
5680
|
"name": props2.moreIcon || "more-o",
|
|
5254
|
-
"class": bem$
|
|
5681
|
+
"class": bem$1k("more-icon"),
|
|
5255
5682
|
"classPrefix": props2.iconPrefix
|
|
5256
5683
|
}, null)]
|
|
5257
5684
|
}), vue.createVNode("span", {
|
|
5258
|
-
"class": bem$
|
|
5685
|
+
"class": bem$1k("more-text")
|
|
5259
5686
|
}, [props2.moreText])]);
|
|
5260
5687
|
const renderMorePopoverAction = (action, index) => vue.createVNode("button", {
|
|
5261
5688
|
"type": "button",
|
|
5262
|
-
"class": bem$
|
|
5689
|
+
"class": bem$1k("more-popover-action", {
|
|
5263
5690
|
disabled: action.disabled
|
|
5264
5691
|
}),
|
|
5265
5692
|
"disabled": action.disabled,
|
|
5266
5693
|
"onClick": () => onSelectMorePopover(action, index)
|
|
5267
5694
|
}, [action.icon && vue.createVNode(Icon, {
|
|
5268
5695
|
"name": action.icon,
|
|
5269
|
-
"class": bem$
|
|
5696
|
+
"class": bem$1k("more-popover-icon"),
|
|
5270
5697
|
"classPrefix": props2.iconPrefix
|
|
5271
5698
|
}, null), vue.createVNode("span", {
|
|
5272
|
-
"class": bem$
|
|
5699
|
+
"class": bem$1k("more-popover-text")
|
|
5273
5700
|
}, [action.text])]);
|
|
5274
5701
|
const renderMoreAction = () => {
|
|
5275
5702
|
if (slots.more) {
|
|
5276
5703
|
return vue.createVNode("div", {
|
|
5277
|
-
"class": bem$
|
|
5704
|
+
"class": bem$1k("more-action")
|
|
5278
5705
|
}, [slots.more()]);
|
|
5279
5706
|
}
|
|
5280
5707
|
if (!props2.moreText) {
|
|
@@ -5285,7 +5712,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5285
5712
|
}
|
|
5286
5713
|
return vue.createVNode(Popover, {
|
|
5287
5714
|
"show": morePopoverShow.value,
|
|
5288
|
-
"class": bem$
|
|
5715
|
+
"class": bem$1k("more-popover"),
|
|
5289
5716
|
"placement": "top-start",
|
|
5290
5717
|
"showArrow": false,
|
|
5291
5718
|
"offset": [-5, 8],
|
|
@@ -5305,7 +5732,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5305
5732
|
return;
|
|
5306
5733
|
}
|
|
5307
5734
|
return vue.createVNode(Button, {
|
|
5308
|
-
"class": bem$
|
|
5735
|
+
"class": bem$1k("secondary"),
|
|
5309
5736
|
"type": props2.secondaryType,
|
|
5310
5737
|
"text": props2.secondaryText,
|
|
5311
5738
|
"loading": props2.secondaryLoading,
|
|
@@ -5318,7 +5745,7 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5318
5745
|
return slots.confirm();
|
|
5319
5746
|
}
|
|
5320
5747
|
return vue.createVNode(Button, {
|
|
5321
|
-
"class": bem$
|
|
5748
|
+
"class": bem$1k("confirm"),
|
|
5322
5749
|
"type": props2.confirmType,
|
|
5323
5750
|
"text": props2.confirmText,
|
|
5324
5751
|
"loading": props2.confirmLoading,
|
|
@@ -5331,9 +5758,9 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5331
5758
|
return;
|
|
5332
5759
|
}
|
|
5333
5760
|
return vue.createVNode("div", {
|
|
5334
|
-
"class": bem$
|
|
5761
|
+
"class": bem$1k("checkbox-action")
|
|
5335
5762
|
}, [vue.createVNode("div", {
|
|
5336
|
-
"class": bem$
|
|
5763
|
+
"class": bem$1k("checkbox-action-content")
|
|
5337
5764
|
}, [vue.createVNode(Checkbox, {
|
|
5338
5765
|
"modelValue": props2.checkboxActionChecked,
|
|
5339
5766
|
"disabled": props2.checkboxActionDisabled,
|
|
@@ -5348,19 +5775,19 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
5348
5775
|
};
|
|
5349
5776
|
const renderBar = () => vue.createVNode("div", {
|
|
5350
5777
|
"ref": root,
|
|
5351
|
-
"class": [bem$
|
|
5778
|
+
"class": [bem$1k({
|
|
5352
5779
|
fixed: props2.fixed
|
|
5353
5780
|
}), {
|
|
5354
5781
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
5355
5782
|
}]
|
|
5356
5783
|
}, [renderCheckboxAction(), vue.createVNode("div", {
|
|
5357
|
-
"class": bem$
|
|
5784
|
+
"class": bem$1k("actions")
|
|
5358
5785
|
}, [renderIconAction(), renderMoreAction(), renderSecondaryButton(), renderConfirmButton()])]);
|
|
5359
5786
|
return () => props2.placeholder && props2.fixed ? renderPlaceholder(renderBar) : renderBar();
|
|
5360
5787
|
}
|
|
5361
5788
|
});
|
|
5362
|
-
const BottomActionBar = withInstall(stdin_default$
|
|
5363
|
-
const [name$
|
|
5789
|
+
const BottomActionBar = withInstall(stdin_default$1x);
|
|
5790
|
+
const [name$1n, bem$1j, t$f] = createNamespace("calendar");
|
|
5364
5791
|
const formatMonthTitle = (date) => t$f("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
|
5365
5792
|
function compareMonth(date1, date2) {
|
|
5366
5793
|
const year1 = date1.getFullYear();
|
|
@@ -5469,9 +5896,9 @@ const proxyPickerMethods = (picker, callback) => {
|
|
|
5469
5896
|
}
|
|
5470
5897
|
});
|
|
5471
5898
|
};
|
|
5472
|
-
const [name$
|
|
5473
|
-
var stdin_default$
|
|
5474
|
-
name: name$
|
|
5899
|
+
const [name$1m] = createNamespace("calendar-day");
|
|
5900
|
+
var stdin_default$1w = vue.defineComponent({
|
|
5901
|
+
name: name$1m,
|
|
5475
5902
|
props: {
|
|
5476
5903
|
item: makeRequiredProp(Object),
|
|
5477
5904
|
color: String,
|
|
@@ -5533,7 +5960,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5533
5960
|
} = props2.item;
|
|
5534
5961
|
if (topInfo || slots["top-info"]) {
|
|
5535
5962
|
return vue.createVNode("div", {
|
|
5536
|
-
"class": bem$
|
|
5963
|
+
"class": bem$1j("top-info")
|
|
5537
5964
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
|
5538
5965
|
}
|
|
5539
5966
|
};
|
|
@@ -5543,7 +5970,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5543
5970
|
} = props2.item;
|
|
5544
5971
|
if (bottomInfo || slots["bottom-info"]) {
|
|
5545
5972
|
return vue.createVNode("div", {
|
|
5546
|
-
"class": bem$
|
|
5973
|
+
"class": bem$1j("bottom-info")
|
|
5547
5974
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
|
5548
5975
|
}
|
|
5549
5976
|
};
|
|
@@ -5560,7 +5987,7 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5560
5987
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
|
5561
5988
|
if (type === "selected") {
|
|
5562
5989
|
return vue.createVNode("div", {
|
|
5563
|
-
"class": bem$
|
|
5990
|
+
"class": bem$1j("selected-day"),
|
|
5564
5991
|
"style": {
|
|
5565
5992
|
width: rowHeight,
|
|
5566
5993
|
height: rowHeight,
|
|
@@ -5577,21 +6004,21 @@ var stdin_default$1x = vue.defineComponent({
|
|
|
5577
6004
|
} = props2.item;
|
|
5578
6005
|
if (type === "placeholder") {
|
|
5579
6006
|
return vue.createVNode("div", {
|
|
5580
|
-
"class": bem$
|
|
6007
|
+
"class": bem$1j("day"),
|
|
5581
6008
|
"style": style.value
|
|
5582
6009
|
}, null);
|
|
5583
6010
|
}
|
|
5584
6011
|
return vue.createVNode("div", {
|
|
5585
6012
|
"role": "gridcell",
|
|
5586
6013
|
"style": style.value,
|
|
5587
|
-
"class": [bem$
|
|
6014
|
+
"class": [bem$1j("day", type), className],
|
|
5588
6015
|
"tabindex": type === "disabled" ? void 0 : -1,
|
|
5589
6016
|
"onClick": onClick
|
|
5590
6017
|
}, [renderContent()]);
|
|
5591
6018
|
};
|
|
5592
6019
|
}
|
|
5593
6020
|
});
|
|
5594
|
-
const [name$
|
|
6021
|
+
const [name$1l] = createNamespace("calendar-month");
|
|
5595
6022
|
const calendarMonthProps = {
|
|
5596
6023
|
date: makeRequiredProp(Date),
|
|
5597
6024
|
type: String,
|
|
@@ -5608,8 +6035,8 @@ const calendarMonthProps = {
|
|
|
5608
6035
|
showMonthTitle: Boolean,
|
|
5609
6036
|
firstDayOfWeek: Number
|
|
5610
6037
|
};
|
|
5611
|
-
var stdin_default$
|
|
5612
|
-
name: name$
|
|
6038
|
+
var stdin_default$1v = vue.defineComponent({
|
|
6039
|
+
name: name$1l,
|
|
5613
6040
|
props: calendarMonthProps,
|
|
5614
6041
|
emits: ["click", "update-height"],
|
|
5615
6042
|
setup(props2, {
|
|
@@ -5714,14 +6141,14 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5714
6141
|
const renderTitle = () => {
|
|
5715
6142
|
if (props2.showMonthTitle) {
|
|
5716
6143
|
return vue.createVNode("div", {
|
|
5717
|
-
"class": bem$
|
|
6144
|
+
"class": bem$1j("month-title")
|
|
5718
6145
|
}, [title.value]);
|
|
5719
6146
|
}
|
|
5720
6147
|
};
|
|
5721
6148
|
const renderMark = () => {
|
|
5722
6149
|
if (props2.showMark && shouldRender.value) {
|
|
5723
6150
|
return vue.createVNode("div", {
|
|
5724
|
-
"class": bem$
|
|
6151
|
+
"class": bem$1j("month-mark")
|
|
5725
6152
|
}, [props2.date.getMonth() + 1]);
|
|
5726
6153
|
}
|
|
5727
6154
|
};
|
|
@@ -5761,7 +6188,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5761
6188
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - use.useRect(body).top);
|
|
5762
6189
|
}
|
|
5763
6190
|
};
|
|
5764
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
|
6191
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1w, {
|
|
5765
6192
|
"item": item,
|
|
5766
6193
|
"index": index,
|
|
5767
6194
|
"color": props2.color,
|
|
@@ -5772,7 +6199,7 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5772
6199
|
const renderDays = () => vue.createVNode("div", {
|
|
5773
6200
|
"ref": daysRef,
|
|
5774
6201
|
"role": "grid",
|
|
5775
|
-
"class": bem$
|
|
6202
|
+
"class": bem$1j("days")
|
|
5776
6203
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
|
5777
6204
|
useExpose({
|
|
5778
6205
|
getTitle,
|
|
@@ -5782,14 +6209,14 @@ var stdin_default$1w = vue.defineComponent({
|
|
|
5782
6209
|
disabledDays
|
|
5783
6210
|
});
|
|
5784
6211
|
return () => vue.createVNode("div", {
|
|
5785
|
-
"class": bem$
|
|
6212
|
+
"class": bem$1j("month"),
|
|
5786
6213
|
"ref": monthRef
|
|
5787
6214
|
}, [renderTitle(), renderDays()]);
|
|
5788
6215
|
}
|
|
5789
6216
|
});
|
|
5790
|
-
const [name$
|
|
5791
|
-
var stdin_default$
|
|
5792
|
-
name: name$
|
|
6217
|
+
const [name$1k] = createNamespace("calendar-header");
|
|
6218
|
+
var stdin_default$1u = vue.defineComponent({
|
|
6219
|
+
name: name$1k,
|
|
5793
6220
|
props: {
|
|
5794
6221
|
title: String,
|
|
5795
6222
|
subtitle: String,
|
|
@@ -5807,7 +6234,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5807
6234
|
const text = props2.title || t$f("title");
|
|
5808
6235
|
const title = slots.title ? slots.title() : text;
|
|
5809
6236
|
return vue.createVNode("div", {
|
|
5810
|
-
"class": bem$
|
|
6237
|
+
"class": bem$1j("header-title")
|
|
5811
6238
|
}, [title]);
|
|
5812
6239
|
}
|
|
5813
6240
|
};
|
|
@@ -5816,7 +6243,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5816
6243
|
if (props2.showSubtitle) {
|
|
5817
6244
|
const title = slots.subtitle ? slots.subtitle() : props2.subtitle;
|
|
5818
6245
|
return vue.createVNode("div", {
|
|
5819
|
-
"class": bem$
|
|
6246
|
+
"class": bem$1j("header-subtitle"),
|
|
5820
6247
|
"onClick": onClickSubtitle
|
|
5821
6248
|
}, [title]);
|
|
5822
6249
|
}
|
|
@@ -5828,13 +6255,13 @@ var stdin_default$1v = vue.defineComponent({
|
|
|
5828
6255
|
const weekdays = t$f("weekdays");
|
|
5829
6256
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
|
5830
6257
|
return vue.createVNode("div", {
|
|
5831
|
-
"class": bem$
|
|
6258
|
+
"class": bem$1j("weekdays")
|
|
5832
6259
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
|
5833
|
-
"class": bem$
|
|
6260
|
+
"class": bem$1j("weekday")
|
|
5834
6261
|
}, [text]))]);
|
|
5835
6262
|
};
|
|
5836
6263
|
return () => vue.createVNode("div", {
|
|
5837
|
-
"class": bem$
|
|
6264
|
+
"class": bem$1j("header")
|
|
5838
6265
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
|
5839
6266
|
}
|
|
5840
6267
|
});
|
|
@@ -5885,8 +6312,8 @@ const calendarProps = {
|
|
|
5885
6312
|
validator: (val) => val >= 0 && val <= 6
|
|
5886
6313
|
}
|
|
5887
6314
|
};
|
|
5888
|
-
var stdin_default$
|
|
5889
|
-
name: name$
|
|
6315
|
+
var stdin_default$1t = vue.defineComponent({
|
|
6316
|
+
name: name$1n,
|
|
5890
6317
|
props: calendarProps,
|
|
5891
6318
|
emits: ["select", "confirm", "unselect", "month-show", "over-range", "update:show", "click-subtitle"],
|
|
5892
6319
|
setup(props2, {
|
|
@@ -6143,7 +6570,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6143
6570
|
const updateShow = (value) => emit("update:show", value);
|
|
6144
6571
|
const renderMonth = (date, index) => {
|
|
6145
6572
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
|
6146
|
-
return vue.createVNode(stdin_default$
|
|
6573
|
+
return vue.createVNode(stdin_default$1v, vue.mergeProps({
|
|
6147
6574
|
"ref": setMonthRefs(index),
|
|
6148
6575
|
"date": date,
|
|
6149
6576
|
"currentDate": currentDate.value,
|
|
@@ -6166,7 +6593,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6166
6593
|
"block": true,
|
|
6167
6594
|
"type": "primary",
|
|
6168
6595
|
"color": props2.color,
|
|
6169
|
-
"class": bem$
|
|
6596
|
+
"class": bem$1j("confirm"),
|
|
6170
6597
|
"disabled": disabled,
|
|
6171
6598
|
"nativeType": "button",
|
|
6172
6599
|
"onClick": onConfirm
|
|
@@ -6178,13 +6605,13 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6178
6605
|
}
|
|
6179
6606
|
};
|
|
6180
6607
|
const renderFooter = () => vue.createVNode("div", {
|
|
6181
|
-
"class": [bem$
|
|
6608
|
+
"class": [bem$1j("footer"), {
|
|
6182
6609
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
|
6183
6610
|
}]
|
|
6184
6611
|
}, [renderFooterButton()]);
|
|
6185
6612
|
const renderCalendar = () => vue.createVNode("div", {
|
|
6186
|
-
"class": bem$
|
|
6187
|
-
}, [vue.createVNode(stdin_default$
|
|
6613
|
+
"class": bem$1j()
|
|
6614
|
+
}, [vue.createVNode(stdin_default$1u, {
|
|
6188
6615
|
"title": props2.title,
|
|
6189
6616
|
"subtitle": subtitle.value,
|
|
6190
6617
|
"showTitle": props2.showTitle,
|
|
@@ -6193,7 +6620,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6193
6620
|
"onClick-subtitle": (event) => emit("click-subtitle", event)
|
|
6194
6621
|
}, pick(slots, ["title", "subtitle"])), vue.createVNode("div", {
|
|
6195
6622
|
"ref": bodyRef,
|
|
6196
|
-
"class": bem$
|
|
6623
|
+
"class": bem$1j("body"),
|
|
6197
6624
|
"onScroll": onScroll
|
|
6198
6625
|
}, [months.value.map(renderMonth)]), renderFooter()]);
|
|
6199
6626
|
vue.watch(() => props2.show, init);
|
|
@@ -6212,7 +6639,7 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6212
6639
|
if (props2.poppable) {
|
|
6213
6640
|
return vue.createVNode(Popup, {
|
|
6214
6641
|
"show": props2.show,
|
|
6215
|
-
"class": bem$
|
|
6642
|
+
"class": bem$1j("popup"),
|
|
6216
6643
|
"round": props2.round,
|
|
6217
6644
|
"position": props2.position,
|
|
6218
6645
|
"closeable": props2.showTitle || props2.showSubtitle,
|
|
@@ -6229,8 +6656,8 @@ var stdin_default$1u = vue.defineComponent({
|
|
|
6229
6656
|
};
|
|
6230
6657
|
}
|
|
6231
6658
|
});
|
|
6232
|
-
const Calendar = withInstall(stdin_default$
|
|
6233
|
-
const [name$
|
|
6659
|
+
const Calendar = withInstall(stdin_default$1t);
|
|
6660
|
+
const [name$1j, bem$1i] = createNamespace("image");
|
|
6234
6661
|
const imageProps = {
|
|
6235
6662
|
src: String,
|
|
6236
6663
|
alt: String,
|
|
@@ -6249,8 +6676,8 @@ const imageProps = {
|
|
|
6249
6676
|
showLoading: truthProp,
|
|
6250
6677
|
loadingIcon: makeStringProp("photo")
|
|
6251
6678
|
};
|
|
6252
|
-
var stdin_default$
|
|
6253
|
-
name: name$
|
|
6679
|
+
var stdin_default$1s = vue.defineComponent({
|
|
6680
|
+
name: name$1j,
|
|
6254
6681
|
props: imageProps,
|
|
6255
6682
|
emits: ["load", "error"],
|
|
6256
6683
|
setup(props2, {
|
|
@@ -6301,13 +6728,13 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6301
6728
|
const renderPlaceholder = () => {
|
|
6302
6729
|
if (loading.value && props2.showLoading) {
|
|
6303
6730
|
return vue.createVNode("div", {
|
|
6304
|
-
"class": bem$
|
|
6305
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
|
6731
|
+
"class": bem$1i("loading")
|
|
6732
|
+
}, [renderIcon(props2.loadingIcon, bem$1i("loading-icon"), slots.loading)]);
|
|
6306
6733
|
}
|
|
6307
6734
|
if (error.value && props2.showError) {
|
|
6308
6735
|
return vue.createVNode("div", {
|
|
6309
|
-
"class": bem$
|
|
6310
|
-
}, [renderIcon(props2.errorIcon, bem$
|
|
6736
|
+
"class": bem$1i("error")
|
|
6737
|
+
}, [renderIcon(props2.errorIcon, bem$1i("error-icon"), slots.error)]);
|
|
6311
6738
|
}
|
|
6312
6739
|
};
|
|
6313
6740
|
const renderImage = () => {
|
|
@@ -6316,7 +6743,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6316
6743
|
}
|
|
6317
6744
|
const attrs = {
|
|
6318
6745
|
alt: props2.alt,
|
|
6319
|
-
class: bem$
|
|
6746
|
+
class: bem$1i("img"),
|
|
6320
6747
|
style: {
|
|
6321
6748
|
objectFit: props2.fit,
|
|
6322
6749
|
objectPosition: props2.position
|
|
@@ -6365,7 +6792,7 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6365
6792
|
return () => {
|
|
6366
6793
|
var _a;
|
|
6367
6794
|
return vue.createVNode("div", {
|
|
6368
|
-
"class": bem$
|
|
6795
|
+
"class": bem$1i({
|
|
6369
6796
|
round: props2.round,
|
|
6370
6797
|
block: props2.block
|
|
6371
6798
|
}),
|
|
@@ -6374,8 +6801,8 @@ var stdin_default$1t = vue.defineComponent({
|
|
|
6374
6801
|
};
|
|
6375
6802
|
}
|
|
6376
6803
|
});
|
|
6377
|
-
const Image$1 = withInstall(stdin_default$
|
|
6378
|
-
const [name$
|
|
6804
|
+
const Image$1 = withInstall(stdin_default$1s);
|
|
6805
|
+
const [name$1i, bem$1h] = createNamespace("card");
|
|
6379
6806
|
const cardProps = {
|
|
6380
6807
|
tag: String,
|
|
6381
6808
|
num: numericProp,
|
|
@@ -6389,8 +6816,8 @@ const cardProps = {
|
|
|
6389
6816
|
thumbLink: String,
|
|
6390
6817
|
originPrice: numericProp
|
|
6391
6818
|
};
|
|
6392
|
-
var stdin_default$
|
|
6393
|
-
name: name$
|
|
6819
|
+
var stdin_default$1r = vue.defineComponent({
|
|
6820
|
+
name: name$1i,
|
|
6394
6821
|
props: cardProps,
|
|
6395
6822
|
emits: ["click-thumb"],
|
|
6396
6823
|
setup(props2, {
|
|
@@ -6403,14 +6830,14 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6403
6830
|
}
|
|
6404
6831
|
if (props2.title) {
|
|
6405
6832
|
return vue.createVNode("div", {
|
|
6406
|
-
"class": [bem$
|
|
6833
|
+
"class": [bem$1h("title"), "van-multi-ellipsis--l2"]
|
|
6407
6834
|
}, [props2.title]);
|
|
6408
6835
|
}
|
|
6409
6836
|
};
|
|
6410
6837
|
const renderThumbTag = () => {
|
|
6411
6838
|
if (slots.tag || props2.tag) {
|
|
6412
6839
|
return vue.createVNode("div", {
|
|
6413
|
-
"class": bem$
|
|
6840
|
+
"class": bem$1h("tag")
|
|
6414
6841
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
|
6415
6842
|
"mark": true,
|
|
6416
6843
|
"type": "danger"
|
|
@@ -6435,7 +6862,7 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6435
6862
|
if (slots.thumb || props2.thumb) {
|
|
6436
6863
|
return vue.createVNode("a", {
|
|
6437
6864
|
"href": props2.thumbLink,
|
|
6438
|
-
"class": bem$
|
|
6865
|
+
"class": bem$1h("thumb"),
|
|
6439
6866
|
"onClick": (event) => emit("click-thumb", event)
|
|
6440
6867
|
}, [renderThumbImage(), renderThumbTag()]);
|
|
6441
6868
|
}
|
|
@@ -6446,18 +6873,18 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6446
6873
|
}
|
|
6447
6874
|
if (props2.desc) {
|
|
6448
6875
|
return vue.createVNode("div", {
|
|
6449
|
-
"class": [bem$
|
|
6876
|
+
"class": [bem$1h("desc"), "van-ellipsis"]
|
|
6450
6877
|
}, [props2.desc]);
|
|
6451
6878
|
}
|
|
6452
6879
|
};
|
|
6453
6880
|
const renderPriceText = () => {
|
|
6454
6881
|
const priceArr = props2.price.toString().split(".");
|
|
6455
6882
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
|
6456
|
-
"class": bem$
|
|
6883
|
+
"class": bem$1h("price-currency")
|
|
6457
6884
|
}, [props2.currency]), vue.createVNode("span", {
|
|
6458
|
-
"class": bem$
|
|
6885
|
+
"class": bem$1h("price-integer")
|
|
6459
6886
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
|
6460
|
-
"class": bem$
|
|
6887
|
+
"class": bem$1h("price-decimal")
|
|
6461
6888
|
}, [priceArr[1]])]);
|
|
6462
6889
|
};
|
|
6463
6890
|
return () => {
|
|
@@ -6467,33 +6894,33 @@ var stdin_default$1s = vue.defineComponent({
|
|
|
6467
6894
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
|
6468
6895
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
|
6469
6896
|
const Price = showPrice && vue.createVNode("div", {
|
|
6470
|
-
"class": bem$
|
|
6897
|
+
"class": bem$1h("price")
|
|
6471
6898
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
|
6472
6899
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
|
6473
|
-
"class": bem$
|
|
6900
|
+
"class": bem$1h("origin-price")
|
|
6474
6901
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
|
6475
6902
|
const Num = showNum && vue.createVNode("div", {
|
|
6476
|
-
"class": bem$
|
|
6903
|
+
"class": bem$1h("num")
|
|
6477
6904
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
|
6478
6905
|
const Footer = slots.footer && vue.createVNode("div", {
|
|
6479
|
-
"class": bem$
|
|
6906
|
+
"class": bem$1h("footer")
|
|
6480
6907
|
}, [slots.footer()]);
|
|
6481
6908
|
const Bottom = showBottom && vue.createVNode("div", {
|
|
6482
|
-
"class": bem$
|
|
6909
|
+
"class": bem$1h("bottom")
|
|
6483
6910
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
|
6484
6911
|
return vue.createVNode("div", {
|
|
6485
|
-
"class": bem$
|
|
6912
|
+
"class": bem$1h()
|
|
6486
6913
|
}, [vue.createVNode("div", {
|
|
6487
|
-
"class": bem$
|
|
6914
|
+
"class": bem$1h("header")
|
|
6488
6915
|
}, [renderThumb(), vue.createVNode("div", {
|
|
6489
|
-
"class": bem$
|
|
6916
|
+
"class": bem$1h("content", {
|
|
6490
6917
|
centered: props2.centered
|
|
6491
6918
|
})
|
|
6492
6919
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
|
6493
6920
|
};
|
|
6494
6921
|
}
|
|
6495
6922
|
});
|
|
6496
|
-
const Card = withInstall(stdin_default$
|
|
6923
|
+
const Card = withInstall(stdin_default$1r);
|
|
6497
6924
|
function scrollLeftTo(scroller, to, duration) {
|
|
6498
6925
|
let count = 0;
|
|
6499
6926
|
const from = scroller.scrollLeft;
|
|
@@ -6549,7 +6976,7 @@ function useVisibilityChange(target, onChange) {
|
|
|
6549
6976
|
vue.onBeforeUnmount(unobserve);
|
|
6550
6977
|
use.onMountedOrActivated(observe);
|
|
6551
6978
|
}
|
|
6552
|
-
const [name$
|
|
6979
|
+
const [name$1h, bem$1g] = createNamespace("sticky");
|
|
6553
6980
|
const stickyProps = {
|
|
6554
6981
|
zIndex: numericProp,
|
|
6555
6982
|
position: makeStringProp("top"),
|
|
@@ -6557,8 +6984,8 @@ const stickyProps = {
|
|
|
6557
6984
|
offsetTop: makeNumericProp(0),
|
|
6558
6985
|
offsetBottom: makeNumericProp(0)
|
|
6559
6986
|
};
|
|
6560
|
-
var stdin_default$
|
|
6561
|
-
name: name$
|
|
6987
|
+
var stdin_default$1q = vue.defineComponent({
|
|
6988
|
+
name: name$1h,
|
|
6562
6989
|
props: stickyProps,
|
|
6563
6990
|
emits: ["scroll", "change"],
|
|
6564
6991
|
setup(props2, {
|
|
@@ -6655,7 +7082,7 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
6655
7082
|
"ref": root,
|
|
6656
7083
|
"style": rootStyle.value
|
|
6657
7084
|
}, [vue.createVNode("div", {
|
|
6658
|
-
"class": bem$
|
|
7085
|
+
"class": bem$1g({
|
|
6659
7086
|
fixed: state.fixed
|
|
6660
7087
|
}),
|
|
6661
7088
|
"style": stickyStyle.value
|
|
@@ -6663,10 +7090,10 @@ var stdin_default$1r = vue.defineComponent({
|
|
|
6663
7090
|
};
|
|
6664
7091
|
}
|
|
6665
7092
|
});
|
|
6666
|
-
const Sticky = withInstall(stdin_default$
|
|
6667
|
-
const [name$
|
|
6668
|
-
var stdin_default$
|
|
6669
|
-
name: name$
|
|
7093
|
+
const Sticky = withInstall(stdin_default$1q);
|
|
7094
|
+
const [name$1g, bem$1f] = createNamespace("tab");
|
|
7095
|
+
var stdin_default$1p = vue.defineComponent({
|
|
7096
|
+
name: name$1g,
|
|
6670
7097
|
props: {
|
|
6671
7098
|
id: String,
|
|
6672
7099
|
dot: Boolean,
|
|
@@ -6716,19 +7143,19 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6716
7143
|
});
|
|
6717
7144
|
const renderText = () => {
|
|
6718
7145
|
const Text2 = vue.createVNode("span", {
|
|
6719
|
-
"class": bem$
|
|
7146
|
+
"class": bem$1f("text", {
|
|
6720
7147
|
ellipsis: !props2.scrollable
|
|
6721
7148
|
})
|
|
6722
7149
|
}, [slots.title ? slots.title() : props2.title]);
|
|
6723
7150
|
const Content = vue.createVNode("span", {
|
|
6724
|
-
"class": bem$
|
|
7151
|
+
"class": bem$1f("title")
|
|
6725
7152
|
}, [props2.icon && vue.createVNode(Icon, {
|
|
6726
7153
|
"name": props2.icon,
|
|
6727
|
-
"class": bem$
|
|
7154
|
+
"class": bem$1f("icon")
|
|
6728
7155
|
}, null), Text2]);
|
|
6729
7156
|
if (props2.dot || isDef(props2.badge) && props2.badge !== "") {
|
|
6730
7157
|
return vue.createVNode(Badge, {
|
|
6731
|
-
"class": bem$
|
|
7158
|
+
"class": bem$1f("badge"),
|
|
6732
7159
|
"dot": props2.dot,
|
|
6733
7160
|
"content": props2.badge,
|
|
6734
7161
|
"showZero": props2.showZeroBadge
|
|
@@ -6741,7 +7168,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6741
7168
|
return () => vue.createVNode("div", {
|
|
6742
7169
|
"id": props2.id,
|
|
6743
7170
|
"role": "tab",
|
|
6744
|
-
"class": [bem$
|
|
7171
|
+
"class": [bem$1f([props2.type, {
|
|
6745
7172
|
grow: props2.scrollable && !props2.shrink,
|
|
6746
7173
|
shrink: props2.shrink,
|
|
6747
7174
|
active: props2.isActive,
|
|
@@ -6755,7 +7182,7 @@ var stdin_default$1q = vue.defineComponent({
|
|
|
6755
7182
|
}, [renderText()]);
|
|
6756
7183
|
}
|
|
6757
7184
|
});
|
|
6758
|
-
const [name$
|
|
7185
|
+
const [name$1f, bem$1e] = createNamespace("swipe");
|
|
6759
7186
|
const swipeProps = {
|
|
6760
7187
|
loop: truthProp,
|
|
6761
7188
|
width: numericProp,
|
|
@@ -6770,9 +7197,9 @@ const swipeProps = {
|
|
|
6770
7197
|
showIndicators: truthProp,
|
|
6771
7198
|
stopPropagation: truthProp
|
|
6772
7199
|
};
|
|
6773
|
-
const SWIPE_KEY = Symbol(name$
|
|
6774
|
-
var stdin_default$
|
|
6775
|
-
name: name$
|
|
7200
|
+
const SWIPE_KEY = Symbol(name$1f);
|
|
7201
|
+
var stdin_default$1o = vue.defineComponent({
|
|
7202
|
+
name: name$1f,
|
|
6776
7203
|
props: swipeProps,
|
|
6777
7204
|
emits: ["change"],
|
|
6778
7205
|
setup(props2, {
|
|
@@ -7034,7 +7461,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7034
7461
|
} : void 0;
|
|
7035
7462
|
return vue.createVNode("i", {
|
|
7036
7463
|
"style": style,
|
|
7037
|
-
"class": bem$
|
|
7464
|
+
"class": bem$1e("indicator", {
|
|
7038
7465
|
active
|
|
7039
7466
|
})
|
|
7040
7467
|
}, null);
|
|
@@ -7048,7 +7475,7 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7048
7475
|
}
|
|
7049
7476
|
if (props2.showIndicators && count.value > 1) {
|
|
7050
7477
|
return vue.createVNode("div", {
|
|
7051
|
-
"class": bem$
|
|
7478
|
+
"class": bem$1e("indicators", {
|
|
7052
7479
|
vertical: props2.vertical
|
|
7053
7480
|
})
|
|
7054
7481
|
}, [Array(count.value).fill("").map(renderDot)]);
|
|
@@ -7090,11 +7517,11 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7090
7517
|
var _a;
|
|
7091
7518
|
return vue.createVNode("div", {
|
|
7092
7519
|
"ref": root,
|
|
7093
|
-
"class": bem$
|
|
7520
|
+
"class": bem$1e()
|
|
7094
7521
|
}, [vue.createVNode("div", {
|
|
7095
7522
|
"ref": track,
|
|
7096
7523
|
"style": trackStyle.value,
|
|
7097
|
-
"class": bem$
|
|
7524
|
+
"class": bem$1e("track", {
|
|
7098
7525
|
vertical: props2.vertical
|
|
7099
7526
|
}),
|
|
7100
7527
|
"onTouchstartPassive": onTouchStart,
|
|
@@ -7104,10 +7531,10 @@ var stdin_default$1p = vue.defineComponent({
|
|
|
7104
7531
|
};
|
|
7105
7532
|
}
|
|
7106
7533
|
});
|
|
7107
|
-
const Swipe = withInstall(stdin_default$
|
|
7108
|
-
const [name$
|
|
7109
|
-
var stdin_default$
|
|
7110
|
-
name: name$
|
|
7534
|
+
const Swipe = withInstall(stdin_default$1o);
|
|
7535
|
+
const [name$1e, bem$1d] = createNamespace("tabs");
|
|
7536
|
+
var stdin_default$1n = vue.defineComponent({
|
|
7537
|
+
name: name$1e,
|
|
7111
7538
|
props: {
|
|
7112
7539
|
count: makeRequiredProp(Number),
|
|
7113
7540
|
inited: Boolean,
|
|
@@ -7131,7 +7558,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
7131
7558
|
return vue.createVNode(Swipe, {
|
|
7132
7559
|
"ref": swipeRef,
|
|
7133
7560
|
"loop": false,
|
|
7134
|
-
"class": bem$
|
|
7561
|
+
"class": bem$1d("track"),
|
|
7135
7562
|
"duration": +props2.duration * 1e3,
|
|
7136
7563
|
"touchable": props2.swipeable,
|
|
7137
7564
|
"lazyRender": props2.lazyRender,
|
|
@@ -7159,7 +7586,7 @@ var stdin_default$1o = vue.defineComponent({
|
|
|
7159
7586
|
swipeRef
|
|
7160
7587
|
});
|
|
7161
7588
|
return () => vue.createVNode("div", {
|
|
7162
|
-
"class": bem$
|
|
7589
|
+
"class": bem$1d("content", {
|
|
7163
7590
|
animated: props2.animated || props2.swipeable
|
|
7164
7591
|
})
|
|
7165
7592
|
}, [renderChildren()]);
|
|
@@ -7184,7 +7611,7 @@ var __spreadValues$1 = (a, b) => {
|
|
|
7184
7611
|
return a;
|
|
7185
7612
|
};
|
|
7186
7613
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7187
|
-
const [name$
|
|
7614
|
+
const [name$1d, bem$1c] = createNamespace("tabs");
|
|
7188
7615
|
const tabsProps = {
|
|
7189
7616
|
type: makeStringProp("line"),
|
|
7190
7617
|
color: String,
|
|
@@ -7211,9 +7638,9 @@ const tabsProps = {
|
|
|
7211
7638
|
moreTitle: String,
|
|
7212
7639
|
moreOptions: makeArrayProp()
|
|
7213
7640
|
};
|
|
7214
|
-
const TABS_KEY = Symbol(name$
|
|
7215
|
-
var stdin_default$
|
|
7216
|
-
name: name$
|
|
7641
|
+
const TABS_KEY = Symbol(name$1d);
|
|
7642
|
+
var stdin_default$1m = vue.defineComponent({
|
|
7643
|
+
name: name$1d,
|
|
7217
7644
|
props: tabsProps,
|
|
7218
7645
|
emits: ["click", "change", "scroll", "disabled", "rendered", "click-tab", "update:active", "click-more", "select-more", "update:showMore"],
|
|
7219
7646
|
setup(props2, {
|
|
@@ -7437,12 +7864,12 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7437
7864
|
}));
|
|
7438
7865
|
return actions.map((action, index) => __spreadProps(__spreadValues$1({}, action), {
|
|
7439
7866
|
color: index === state.currentIndex ? "var(--van-primary-color)" : action.color,
|
|
7440
|
-
className: [action.className, bem$
|
|
7867
|
+
className: [action.className, bem$1c("more-option", {
|
|
7441
7868
|
active: index === state.currentIndex
|
|
7442
7869
|
})]
|
|
7443
7870
|
}));
|
|
7444
7871
|
});
|
|
7445
|
-
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$
|
|
7872
|
+
const renderNav = () => children.map((item, index) => vue.createVNode(stdin_default$1p, vue.mergeProps({
|
|
7446
7873
|
"key": item.id,
|
|
7447
7874
|
"id": `${id}-${index}`,
|
|
7448
7875
|
"ref": setTitleRefs(index),
|
|
@@ -7463,7 +7890,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7463
7890
|
const renderLine = () => {
|
|
7464
7891
|
if (props2.type === "line" && children.length) {
|
|
7465
7892
|
return vue.createVNode("div", {
|
|
7466
|
-
"class": bem$
|
|
7893
|
+
"class": bem$1c("line"),
|
|
7467
7894
|
"style": state.lineStyle
|
|
7468
7895
|
}, null);
|
|
7469
7896
|
}
|
|
@@ -7477,13 +7904,13 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7477
7904
|
} = props2;
|
|
7478
7905
|
const Header = [vue.createVNode("div", {
|
|
7479
7906
|
"ref": sticky ? void 0 : wrapRef,
|
|
7480
|
-
"class": [bem$
|
|
7907
|
+
"class": [bem$1c("wrap"), {
|
|
7481
7908
|
[BORDER_TOP_BOTTOM]: type === "line" && border
|
|
7482
7909
|
}]
|
|
7483
7910
|
}, [vue.createVNode("div", {
|
|
7484
7911
|
"ref": navRef,
|
|
7485
7912
|
"role": "tablist",
|
|
7486
|
-
"class": bem$
|
|
7913
|
+
"class": bem$1c("nav", [type, {
|
|
7487
7914
|
shrink: props2.shrink,
|
|
7488
7915
|
complete: scrollable.value,
|
|
7489
7916
|
more: props2.more
|
|
@@ -7493,7 +7920,7 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7493
7920
|
}, [(_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
7921
|
"ref": moreRef,
|
|
7495
7922
|
"type": "button",
|
|
7496
|
-
"class": bem$
|
|
7923
|
+
"class": bem$1c("more"),
|
|
7497
7924
|
"aria-label": "More tabs",
|
|
7498
7925
|
"onClick": onClickMore
|
|
7499
7926
|
}, [vue.createVNode(Icon, {
|
|
@@ -7567,14 +7994,14 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7567
7994
|
});
|
|
7568
7995
|
return () => vue.createVNode("div", {
|
|
7569
7996
|
"ref": root,
|
|
7570
|
-
"class": bem$
|
|
7997
|
+
"class": bem$1c([props2.type])
|
|
7571
7998
|
}, [props2.sticky ? vue.createVNode(Sticky, {
|
|
7572
7999
|
"container": root.value,
|
|
7573
8000
|
"offsetTop": offsetTopPx.value,
|
|
7574
8001
|
"onScroll": onStickyScroll
|
|
7575
8002
|
}, {
|
|
7576
8003
|
default: () => [renderHeader()]
|
|
7577
|
-
}) : renderHeader(), vue.createVNode(stdin_default$
|
|
8004
|
+
}) : renderHeader(), vue.createVNode(stdin_default$1n, {
|
|
7578
8005
|
"ref": contentRef,
|
|
7579
8006
|
"count": children.length,
|
|
7580
8007
|
"inited": state.inited,
|
|
@@ -7594,9 +8021,9 @@ var stdin_default$1n = vue.defineComponent({
|
|
|
7594
8021
|
});
|
|
7595
8022
|
const TAB_STATUS_KEY = Symbol();
|
|
7596
8023
|
const useTabStatus = () => vue.inject(TAB_STATUS_KEY, null);
|
|
7597
|
-
const [name$
|
|
7598
|
-
var stdin_default$
|
|
7599
|
-
name: name$
|
|
8024
|
+
const [name$1c, bem$1b] = createNamespace("swipe-item");
|
|
8025
|
+
var stdin_default$1l = vue.defineComponent({
|
|
8026
|
+
name: name$1c,
|
|
7600
8027
|
setup(props2, {
|
|
7601
8028
|
slots
|
|
7602
8029
|
}) {
|
|
@@ -7661,14 +8088,14 @@ var stdin_default$1m = vue.defineComponent({
|
|
|
7661
8088
|
return () => {
|
|
7662
8089
|
var _a;
|
|
7663
8090
|
return vue.createVNode("div", {
|
|
7664
|
-
"class": bem$
|
|
8091
|
+
"class": bem$1b(),
|
|
7665
8092
|
"style": style.value
|
|
7666
8093
|
}, [shouldRender.value ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null]);
|
|
7667
8094
|
};
|
|
7668
8095
|
}
|
|
7669
8096
|
});
|
|
7670
|
-
const SwipeItem = withInstall(stdin_default$
|
|
7671
|
-
const [name$
|
|
8097
|
+
const SwipeItem = withInstall(stdin_default$1l);
|
|
8098
|
+
const [name$1b, bem$1a] = createNamespace("tab");
|
|
7672
8099
|
const tabProps = extend({}, routeProps, {
|
|
7673
8100
|
dot: Boolean,
|
|
7674
8101
|
name: numericProp,
|
|
@@ -7680,8 +8107,8 @@ const tabProps = extend({}, routeProps, {
|
|
|
7680
8107
|
titleStyle: [String, Object],
|
|
7681
8108
|
showZeroBadge: truthProp
|
|
7682
8109
|
});
|
|
7683
|
-
var stdin_default$
|
|
7684
|
-
name: name$
|
|
8110
|
+
var stdin_default$1k = vue.defineComponent({
|
|
8111
|
+
name: name$1b,
|
|
7685
8112
|
props: tabProps,
|
|
7686
8113
|
setup(props2, {
|
|
7687
8114
|
slots
|
|
@@ -7749,7 +8176,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7749
8176
|
return vue.createVNode(SwipeItem, {
|
|
7750
8177
|
"id": id,
|
|
7751
8178
|
"role": "tabpanel",
|
|
7752
|
-
"class": bem$
|
|
8179
|
+
"class": bem$1a("panel-wrapper", {
|
|
7753
8180
|
inactive: hasInactiveClass.value
|
|
7754
8181
|
}),
|
|
7755
8182
|
"tabindex": active.value ? 0 : -1,
|
|
@@ -7759,7 +8186,7 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7759
8186
|
default: () => {
|
|
7760
8187
|
var _a2;
|
|
7761
8188
|
return [vue.createVNode("div", {
|
|
7762
|
-
"class": bem$
|
|
8189
|
+
"class": bem$1a("panel")
|
|
7763
8190
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
7764
8191
|
}
|
|
7765
8192
|
});
|
|
@@ -7772,16 +8199,16 @@ var stdin_default$1l = vue.defineComponent({
|
|
|
7772
8199
|
return vue.withDirectives(vue.createVNode("div", {
|
|
7773
8200
|
"id": id,
|
|
7774
8201
|
"role": "tabpanel",
|
|
7775
|
-
"class": bem$
|
|
8202
|
+
"class": bem$1a("panel"),
|
|
7776
8203
|
"tabindex": show ? 0 : -1,
|
|
7777
8204
|
"aria-labelledby": label
|
|
7778
8205
|
}, [Content]), [[vue.vShow, show]]);
|
|
7779
8206
|
};
|
|
7780
8207
|
}
|
|
7781
8208
|
});
|
|
7782
|
-
const Tab = withInstall(stdin_default$
|
|
7783
|
-
const Tabs = withInstall(stdin_default$
|
|
7784
|
-
const [name$
|
|
8209
|
+
const Tab = withInstall(stdin_default$1k);
|
|
8210
|
+
const Tabs = withInstall(stdin_default$1m);
|
|
8211
|
+
const [name$1a, bem$19, t$e] = createNamespace("cascader");
|
|
7785
8212
|
const cascaderProps = {
|
|
7786
8213
|
title: String,
|
|
7787
8214
|
options: makeArrayProp(),
|
|
@@ -7794,8 +8221,8 @@ const cascaderProps = {
|
|
|
7794
8221
|
placeholder: String,
|
|
7795
8222
|
activeColor: String
|
|
7796
8223
|
};
|
|
7797
|
-
var stdin_default$
|
|
7798
|
-
name: name$
|
|
8224
|
+
var stdin_default$1j = vue.defineComponent({
|
|
8225
|
+
name: name$1a,
|
|
7799
8226
|
props: cascaderProps,
|
|
7800
8227
|
emits: ["close", "change", "finish", "click-tab", "update:modelValue"],
|
|
7801
8228
|
setup(props2, {
|
|
@@ -7903,12 +8330,12 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7903
8330
|
title
|
|
7904
8331
|
}) => emit("click-tab", name2, title);
|
|
7905
8332
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
|
7906
|
-
"class": bem$
|
|
8333
|
+
"class": bem$19("header")
|
|
7907
8334
|
}, [vue.createVNode("h2", {
|
|
7908
|
-
"class": bem$
|
|
8335
|
+
"class": bem$19("title")
|
|
7909
8336
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
|
7910
8337
|
"name": props2.closeIcon,
|
|
7911
|
-
"class": [bem$
|
|
8338
|
+
"class": [bem$19("close-icon"), HAPTICS_FEEDBACK],
|
|
7912
8339
|
"onClick": onClose
|
|
7913
8340
|
}, null) : null]) : null;
|
|
7914
8341
|
const renderOption = (option, selectedOption, tabIndex) => {
|
|
@@ -7923,7 +8350,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7923
8350
|
}) : vue.createVNode("span", null, [option[textKey]]);
|
|
7924
8351
|
return vue.createVNode("li", {
|
|
7925
8352
|
"role": "menuitemradio",
|
|
7926
|
-
"class": [bem$
|
|
8353
|
+
"class": [bem$19("option", {
|
|
7927
8354
|
selected,
|
|
7928
8355
|
disabled
|
|
7929
8356
|
}), option.className],
|
|
@@ -7936,12 +8363,12 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7936
8363
|
"onClick": () => onSelect(option, tabIndex)
|
|
7937
8364
|
}, [Text2, selected ? vue.createVNode(Icon, {
|
|
7938
8365
|
"name": "success",
|
|
7939
|
-
"class": bem$
|
|
8366
|
+
"class": bem$19("selected-icon")
|
|
7940
8367
|
}, null) : null]);
|
|
7941
8368
|
};
|
|
7942
8369
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
|
7943
8370
|
"role": "menu",
|
|
7944
|
-
"class": bem$
|
|
8371
|
+
"class": bem$19("options")
|
|
7945
8372
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
|
7946
8373
|
const renderTab = (tab, tabIndex) => {
|
|
7947
8374
|
const {
|
|
@@ -7952,7 +8379,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7952
8379
|
const title = selected ? selected[textKey] : placeholder;
|
|
7953
8380
|
return vue.createVNode(Tab, {
|
|
7954
8381
|
"title": title,
|
|
7955
|
-
"titleClass": bem$
|
|
8382
|
+
"titleClass": bem$19("tab", {
|
|
7956
8383
|
unselected: !selected
|
|
7957
8384
|
})
|
|
7958
8385
|
}, {
|
|
@@ -7971,7 +8398,7 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7971
8398
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
|
7972
8399
|
"shrink": true,
|
|
7973
8400
|
"animated": true,
|
|
7974
|
-
"class": bem$
|
|
8401
|
+
"class": bem$19("tabs"),
|
|
7975
8402
|
"color": props2.activeColor,
|
|
7976
8403
|
"swipeable": props2.swipeable,
|
|
7977
8404
|
"onClick-tab": onClickTab
|
|
@@ -7995,20 +8422,20 @@ var stdin_default$1k = vue.defineComponent({
|
|
|
7995
8422
|
updateTabs();
|
|
7996
8423
|
});
|
|
7997
8424
|
return () => vue.createVNode("div", {
|
|
7998
|
-
"class": bem$
|
|
8425
|
+
"class": bem$19()
|
|
7999
8426
|
}, [renderHeader(), renderTabs()]);
|
|
8000
8427
|
}
|
|
8001
8428
|
});
|
|
8002
|
-
const Cascader = withInstall(stdin_default$
|
|
8003
|
-
const [name$
|
|
8429
|
+
const Cascader = withInstall(stdin_default$1j);
|
|
8430
|
+
const [name$19, bem$18] = createNamespace("cell-group");
|
|
8004
8431
|
const cellGroupProps = {
|
|
8005
8432
|
title: String,
|
|
8006
8433
|
inset: Boolean,
|
|
8007
8434
|
grayCard: Boolean,
|
|
8008
8435
|
border: truthProp
|
|
8009
8436
|
};
|
|
8010
|
-
var stdin_default$
|
|
8011
|
-
name: name$
|
|
8437
|
+
var stdin_default$1i = vue.defineComponent({
|
|
8438
|
+
name: name$19,
|
|
8012
8439
|
inheritAttrs: false,
|
|
8013
8440
|
props: cellGroupProps,
|
|
8014
8441
|
setup(props2, {
|
|
@@ -8018,7 +8445,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8018
8445
|
const renderGroup = () => {
|
|
8019
8446
|
var _a;
|
|
8020
8447
|
return vue.createVNode("div", vue.mergeProps({
|
|
8021
|
-
"class": [bem$
|
|
8448
|
+
"class": [bem$18({
|
|
8022
8449
|
inset: props2.inset,
|
|
8023
8450
|
"gray-card": props2.grayCard
|
|
8024
8451
|
}), {
|
|
@@ -8027,7 +8454,7 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8027
8454
|
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
8028
8455
|
};
|
|
8029
8456
|
const renderTitle = () => vue.createVNode("div", {
|
|
8030
|
-
"class": bem$
|
|
8457
|
+
"class": bem$18("title", {
|
|
8031
8458
|
inset: props2.inset
|
|
8032
8459
|
})
|
|
8033
8460
|
}, [slots.title ? slots.title() : props2.title]);
|
|
@@ -8039,158 +8466,8 @@ var stdin_default$1j = vue.defineComponent({
|
|
|
8039
8466
|
};
|
|
8040
8467
|
}
|
|
8041
8468
|
});
|
|
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);
|
|
8469
|
+
const CellGroup = withInstall(stdin_default$1i);
|
|
8470
|
+
const CheckboxGroup = withInstall(stdin_default$1R);
|
|
8194
8471
|
const [name$18, bem$17] = createNamespace("checkbox-panel");
|
|
8195
8472
|
const checkboxPanelProps = {
|
|
8196
8473
|
show: Boolean,
|
|
@@ -13292,6 +13569,7 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13292
13569
|
type: Number,
|
|
13293
13570
|
required: true
|
|
13294
13571
|
},
|
|
13572
|
+
max: makeNumericProp(Infinity),
|
|
13295
13573
|
keyword: {
|
|
13296
13574
|
type: String,
|
|
13297
13575
|
default: ""
|
|
@@ -13325,7 +13603,8 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13325
13603
|
const confirmInputValue = () => {
|
|
13326
13604
|
const value = Number(inputValue.value);
|
|
13327
13605
|
if (!Number.isNaN(value)) {
|
|
13328
|
-
|
|
13606
|
+
const max = Number(props2.max);
|
|
13607
|
+
emit("update:modelValue", Math.min(Number.isNaN(max) ? Infinity : max, Math.max(0, value)));
|
|
13329
13608
|
}
|
|
13330
13609
|
};
|
|
13331
13610
|
const clearDetailLongPress = () => {
|
|
@@ -13399,6 +13678,7 @@ var stdin_default$E = vue.defineComponent({
|
|
|
13399
13678
|
"class": bem$x("stepper"),
|
|
13400
13679
|
"modelValue": props2.modelValue,
|
|
13401
13680
|
"min": 0,
|
|
13681
|
+
"max": props2.max,
|
|
13402
13682
|
"theme": "round",
|
|
13403
13683
|
"buttonSize": 18,
|
|
13404
13684
|
"disableInput": true,
|
|
@@ -18560,6 +18840,7 @@ const uploaderProps = {
|
|
|
18560
18840
|
deletable: truthProp,
|
|
18561
18841
|
afterRead: Function,
|
|
18562
18842
|
showUpload: truthProp,
|
|
18843
|
+
uploadFirst: Boolean,
|
|
18563
18844
|
modelValue: makeArrayProp(),
|
|
18564
18845
|
beforeRead: Function,
|
|
18565
18846
|
beforeDelete: Function,
|
|
@@ -18780,7 +19061,7 @@ var stdin_default$7 = vue.defineComponent({
|
|
|
18780
19061
|
"class": bem$3("wrapper", {
|
|
18781
19062
|
disabled: props2.disabled
|
|
18782
19063
|
})
|
|
18783
|
-
}, [renderPreviewList(), renderUpload()])]);
|
|
19064
|
+
}, [props2.uploadFirst ? vue.createVNode(vue.Fragment, null, [renderUpload(), renderPreviewList()]) : vue.createVNode(vue.Fragment, null, [renderPreviewList(), renderUpload()])])]);
|
|
18784
19065
|
}
|
|
18785
19066
|
});
|
|
18786
19067
|
const Uploader = withInstall(stdin_default$7);
|
|
@@ -20660,7 +20941,7 @@ const Lazyload = {
|
|
|
20660
20941
|
});
|
|
20661
20942
|
}
|
|
20662
20943
|
};
|
|
20663
|
-
const version = "0.0.
|
|
20944
|
+
const version = "0.0.40";
|
|
20664
20945
|
function install(app) {
|
|
20665
20946
|
const components = [
|
|
20666
20947
|
ActionBar,
|