persagy-vant 0.0.24 → 0.0.26
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/index.css +1 -1
- package/es/action-sheet/index.d.ts +0 -63
- package/es/action-sheet/index.less +0 -96
- package/es/action-sheet/index.mjs +0 -3
- package/es/action-sheet/style/index.mjs +0 -8
- package/es/action-sheet/style/less.mjs +0 -8
- package/es/background/Background.d.ts +23 -0
- package/es/background/Background.mjs +23 -0
- package/es/background/assets/background-default.png +0 -0
- package/es/background/assets/background-light.png +0 -0
- package/es/background/assets/background-style-1.png +0 -0
- package/es/background/assets/background-style-2.png +0 -0
- package/es/background/assets/background-style-3.png +0 -0
- package/es/background/index.css +1 -0
- package/es/background/index.d.ts +21 -0
- package/es/background/index.less +51 -0
- package/es/background/index.mjs +8 -0
- package/es/background/style/index.d.ts +1 -0
- package/es/background/style/index.mjs +2 -0
- package/es/background/style/less.d.ts +1 -0
- package/es/background/style/less.mjs +2 -0
- package/es/background/types.d.ts +1 -0
- package/es/background/types.mjs +0 -0
- package/es/background/var.css +0 -0
- package/es/background/var.less +6 -0
- package/es/cascader/style/index.mjs +0 -8
- package/es/cascader/style/less.mjs +0 -8
- package/es/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
- package/es/checkbox-panel/CheckboxPanel.mjs +100 -0
- package/es/checkbox-panel/index.css +1 -0
- package/es/checkbox-panel/index.d.ts +58 -0
- package/es/checkbox-panel/index.less +26 -0
- package/es/checkbox-panel/index.mjs +8 -0
- package/es/checkbox-panel/style/index.d.ts +1 -0
- package/es/checkbox-panel/style/index.mjs +16 -0
- package/es/checkbox-panel/style/less.d.ts +1 -0
- package/es/checkbox-panel/style/less.mjs +16 -0
- package/es/coupon-list/style/index.mjs +1 -3
- package/es/coupon-list/style/less.mjs +1 -3
- package/es/datetime-picker/DatetimePicker.mjs +1 -3
- package/es/empty/Empty.mjs +6 -274
- package/es/empty/assets/default.png +0 -0
- package/es/empty/assets/network.png +0 -0
- package/es/empty/index.css +1 -1
- package/es/empty/index.less +19 -1
- package/es/empty/var.less +6 -5
- package/es/field/Field.d.ts +17 -4
- package/es/field/Field.mjs +1 -1
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +9 -2
- package/es/field/var.less +1 -1
- package/es/filter-tag/FilterTag.d.ts +14 -0
- package/es/filter-tag/FilterTag.mjs +6 -1
- package/es/filter-tag/index.css +1 -1
- package/es/filter-tag/index.d.ts +10 -1
- package/es/filter-tag/index.less +16 -0
- package/es/filter-tag/var.less +5 -0
- package/es/floor-select/FloorSelect.d.ts +38 -0
- package/es/floor-select/FloorSelect.mjs +237 -0
- package/es/floor-select/index.css +1 -0
- package/es/floor-select/index.d.ts +32 -0
- package/es/floor-select/index.less +58 -0
- package/es/floor-select/index.mjs +8 -0
- package/es/floor-select/style/index.d.ts +1 -0
- package/es/floor-select/style/index.mjs +20 -0
- package/es/floor-select/style/less.d.ts +1 -0
- package/es/floor-select/style/less.mjs +20 -0
- package/es/floor-select/types.d.ts +18 -0
- package/es/floor-select/types.mjs +0 -0
- package/es/form-panel/FormPanel.d.ts +32 -0
- package/es/form-panel/FormPanel.mjs +64 -0
- package/es/form-panel/index.css +1 -0
- package/es/form-panel/index.d.ts +28 -0
- package/es/form-panel/index.less +95 -0
- package/es/form-panel/index.mjs +8 -0
- package/es/form-panel/style/index.d.ts +1 -0
- package/es/form-panel/style/index.mjs +11 -0
- package/es/form-panel/style/less.d.ts +1 -0
- package/es/form-panel/style/less.mjs +11 -0
- package/es/friendly-tip/FriendlyTip.d.ts +86 -0
- package/es/friendly-tip/FriendlyTip.mjs +60 -0
- package/es/friendly-tip/index.css +1 -0
- package/es/friendly-tip/index.d.ts +64 -0
- package/es/friendly-tip/index.less +48 -0
- package/es/friendly-tip/index.mjs +8 -0
- package/es/friendly-tip/style/index.d.ts +1 -0
- package/es/friendly-tip/style/index.mjs +7 -0
- package/es/friendly-tip/style/less.d.ts +1 -0
- package/es/friendly-tip/style/less.mjs +7 -0
- package/es/friendly-tip/var.css +0 -0
- package/es/friendly-tip/var.less +10 -0
- package/es/index.d.ts +8 -1
- package/es/index.mjs +22 -1
- package/es/location-select/style/index.mjs +1 -1
- package/es/location-select/style/less.mjs +1 -1
- package/es/material-add/MaterialAdd.d.ts +14 -1
- package/es/material-add/MaterialAdd.mjs +98 -50
- package/es/material-add/index.d.ts +10 -1
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-add/types.d.ts +9 -0
- package/es/multi-person-select/MultiPersonSelect.d.ts +1 -1
- package/es/multi-person-select/index.d.ts +1 -1
- package/es/multi-person-select/style/index.mjs +1 -1
- package/es/multi-person-select/style/less.mjs +1 -1
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +10 -0
- package/es/notify/var.less +3 -0
- package/es/object-select/style/index.mjs +1 -1
- package/es/object-select/style/less.mjs +1 -1
- package/es/popover/Popover.mjs +5 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.less +12 -5
- package/es/popover/var.less +1 -1
- package/es/quantity-input/QuantityInput.d.ts +1 -1
- package/es/quantity-input/index.d.ts +2 -2
- package/es/radio-panel/RadioPanel.d.ts +41 -0
- package/es/radio-panel/RadioPanel.mjs +83 -0
- package/es/radio-panel/index.css +1 -0
- package/es/radio-panel/index.d.ts +31 -0
- package/es/radio-panel/index.less +26 -0
- package/es/radio-panel/index.mjs +8 -0
- package/es/radio-panel/style/index.d.ts +1 -0
- package/es/radio-panel/style/index.mjs +15 -0
- package/es/radio-panel/style/less.d.ts +1 -0
- package/es/radio-panel/style/less.mjs +15 -0
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/Rate.mjs +2 -1
- package/es/rate/RateCell.d.ts +196 -0
- package/es/rate/RateCell.mjs +60 -0
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +136 -0
- package/es/rate/index.less +35 -0
- package/es/rate/index.mjs +8 -0
- package/es/rate/style/index.mjs +5 -0
- package/es/rate/style/less.mjs +5 -0
- package/es/rate/var.less +1 -1
- package/es/search/Search.d.ts +13 -3
- package/es/search/index.d.ts +9 -2
- package/es/sidebar-item/SidebarItem.mjs +1 -2
- package/es/single-person-select/style/index.mjs +1 -2
- package/es/single-person-select/style/less.mjs +1 -2
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +10 -0
- package/es/tab/style/index.mjs +0 -8
- package/es/tab/style/less.mjs +0 -8
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/var.less +1 -1
- package/es/tabs/Tabs.mjs +5 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +4 -0
- package/es/tabs/style/index.mjs +0 -8
- package/es/tabs/style/less.mjs +0 -8
- package/es/tag/Tag.d.ts +13 -3
- package/es/tag/Tag.mjs +1 -1
- package/es/tag/index.d.ts +9 -2
- package/es/work-order-card/WorkOrderCard.d.ts +145 -0
- package/es/work-order-card/WorkOrderCard.mjs +121 -0
- package/es/work-order-card/index.css +1 -0
- package/es/work-order-card/index.d.ts +107 -0
- package/es/work-order-card/index.less +34 -0
- package/es/work-order-card/index.mjs +8 -0
- package/es/work-order-card/style/index.d.ts +1 -0
- package/es/work-order-card/style/index.mjs +8 -0
- package/es/work-order-card/style/less.d.ts +1 -0
- package/es/work-order-card/style/less.mjs +8 -0
- package/es/work-order-card/types.d.ts +16 -0
- package/es/work-order-card/types.mjs +0 -0
- package/es/work-order-card/var.css +0 -0
- package/es/work-order-card/var.less +6 -0
- package/es/work-order-filter/style/index.mjs +1 -1
- package/es/work-order-filter/style/less.mjs +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +0 -63
- package/lib/action-sheet/index.js +0 -3
- package/lib/action-sheet/index.less +0 -96
- package/lib/action-sheet/style/index.js +0 -8
- package/lib/action-sheet/style/less.js +0 -8
- package/lib/background/Background.d.ts +23 -0
- package/lib/background/Background.js +42 -0
- package/lib/background/assets/background-default.png +0 -0
- package/lib/background/assets/background-light.png +0 -0
- package/lib/background/assets/background-style-1.png +0 -0
- package/lib/background/assets/background-style-2.png +0 -0
- package/lib/background/assets/background-style-3.png +0 -0
- package/lib/background/index.css +1 -0
- package/lib/background/index.d.ts +21 -0
- package/lib/background/index.js +37 -0
- package/lib/background/index.less +51 -0
- package/lib/background/style/index.d.ts +1 -0
- package/lib/background/style/index.js +2 -0
- package/lib/background/style/less.d.ts +1 -0
- package/lib/background/style/less.js +2 -0
- package/lib/background/types.d.ts +1 -0
- package/lib/background/types.js +15 -0
- package/lib/background/var.css +0 -0
- package/lib/background/var.less +6 -0
- package/lib/cascader/style/index.js +0 -8
- package/lib/cascader/style/less.js +0 -8
- package/lib/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
- package/lib/checkbox-panel/CheckboxPanel.js +119 -0
- package/lib/checkbox-panel/index.css +1 -0
- package/lib/checkbox-panel/index.d.ts +58 -0
- package/lib/checkbox-panel/index.js +37 -0
- package/lib/checkbox-panel/index.less +26 -0
- package/lib/checkbox-panel/style/index.d.ts +1 -0
- package/lib/checkbox-panel/style/index.js +16 -0
- package/lib/checkbox-panel/style/less.d.ts +1 -0
- package/lib/checkbox-panel/style/less.js +16 -0
- package/lib/coupon-list/style/index.js +1 -3
- package/lib/coupon-list/style/less.js +1 -3
- package/lib/datetime-picker/DatetimePicker.js +1 -3
- package/lib/empty/Empty.js +6 -274
- package/lib/empty/assets/default.png +0 -0
- package/lib/empty/assets/network.png +0 -0
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.less +19 -1
- package/lib/empty/var.less +6 -5
- package/lib/field/Field.d.ts +17 -4
- package/lib/field/Field.js +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +9 -2
- package/lib/field/var.less +1 -1
- package/lib/filter-tag/FilterTag.d.ts +14 -0
- package/lib/filter-tag/FilterTag.js +6 -1
- package/lib/filter-tag/index.css +1 -1
- package/lib/filter-tag/index.d.ts +10 -1
- package/lib/filter-tag/index.less +16 -0
- package/lib/filter-tag/var.less +5 -0
- package/lib/floor-select/FloorSelect.d.ts +38 -0
- package/lib/floor-select/FloorSelect.js +256 -0
- package/lib/floor-select/index.css +1 -0
- package/lib/floor-select/index.d.ts +32 -0
- package/lib/floor-select/index.js +37 -0
- package/lib/floor-select/index.less +58 -0
- package/lib/floor-select/style/index.d.ts +1 -0
- package/lib/floor-select/style/index.js +20 -0
- package/lib/floor-select/style/less.d.ts +1 -0
- package/lib/floor-select/style/less.js +20 -0
- package/lib/floor-select/types.d.ts +18 -0
- package/lib/floor-select/types.js +15 -0
- package/lib/form-panel/FormPanel.d.ts +32 -0
- package/lib/form-panel/FormPanel.js +83 -0
- package/lib/form-panel/index.css +1 -0
- package/lib/form-panel/index.d.ts +28 -0
- package/lib/form-panel/index.js +37 -0
- package/lib/form-panel/index.less +95 -0
- package/lib/form-panel/style/index.d.ts +1 -0
- package/lib/form-panel/style/index.js +11 -0
- package/lib/form-panel/style/less.d.ts +1 -0
- package/lib/form-panel/style/less.js +11 -0
- package/lib/friendly-tip/FriendlyTip.d.ts +86 -0
- package/lib/friendly-tip/FriendlyTip.js +79 -0
- package/lib/friendly-tip/index.css +1 -0
- package/lib/friendly-tip/index.d.ts +64 -0
- package/lib/friendly-tip/index.js +37 -0
- package/lib/friendly-tip/index.less +48 -0
- package/lib/friendly-tip/style/index.d.ts +1 -0
- package/lib/friendly-tip/style/index.js +7 -0
- package/lib/friendly-tip/style/less.d.ts +1 -0
- package/lib/friendly-tip/style/less.js +7 -0
- package/lib/friendly-tip/var.css +0 -0
- package/lib/friendly-tip/var.less +10 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +22 -1
- package/lib/index.less +16 -9
- package/lib/location-select/style/index.js +1 -1
- package/lib/location-select/style/less.js +1 -1
- package/lib/material-add/MaterialAdd.d.ts +14 -1
- package/lib/material-add/MaterialAdd.js +98 -50
- package/lib/material-add/index.d.ts +10 -1
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-add/types.d.ts +9 -0
- package/lib/multi-person-select/MultiPersonSelect.d.ts +1 -1
- package/lib/multi-person-select/index.d.ts +1 -1
- package/lib/multi-person-select/style/index.js +1 -1
- package/lib/multi-person-select/style/less.js +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +10 -0
- package/lib/notify/var.less +3 -0
- package/lib/object-select/style/index.js +1 -1
- package/lib/object-select/style/less.js +1 -1
- package/lib/popover/Popover.js +5 -4
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.less +12 -5
- package/lib/popover/var.less +1 -1
- package/lib/quantity-input/QuantityInput.d.ts +1 -1
- package/lib/quantity-input/index.d.ts +2 -2
- package/lib/radio-panel/RadioPanel.d.ts +41 -0
- package/lib/radio-panel/RadioPanel.js +102 -0
- package/lib/radio-panel/index.css +1 -0
- package/lib/radio-panel/index.d.ts +31 -0
- package/lib/radio-panel/index.js +37 -0
- package/lib/radio-panel/index.less +26 -0
- package/lib/radio-panel/style/index.d.ts +1 -0
- package/lib/radio-panel/style/index.js +15 -0
- package/lib/radio-panel/style/less.d.ts +1 -0
- package/lib/radio-panel/style/less.js +15 -0
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/Rate.js +2 -1
- package/lib/rate/RateCell.d.ts +196 -0
- package/lib/rate/RateCell.js +89 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +136 -0
- package/lib/rate/index.js +8 -0
- package/lib/rate/index.less +35 -0
- package/lib/rate/style/index.js +5 -0
- package/lib/rate/style/less.js +5 -0
- package/lib/rate/var.less +1 -1
- package/lib/search/Search.d.ts +13 -3
- package/lib/search/index.d.ts +9 -2
- package/lib/sidebar-item/SidebarItem.js +1 -2
- package/lib/single-person-select/style/index.js +1 -2
- package/lib/single-person-select/style/less.js +1 -2
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +10 -0
- package/lib/tab/style/index.js +0 -8
- package/lib/tab/style/less.js +0 -8
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/var.less +1 -1
- package/lib/tabs/Tabs.js +5 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +4 -0
- package/lib/tabs/style/index.js +0 -8
- package/lib/tabs/style/less.js +0 -8
- package/lib/tag/Tag.d.ts +13 -3
- package/lib/tag/Tag.js +1 -1
- package/lib/tag/index.d.ts +9 -2
- package/lib/vant.cjs.js +3497 -3138
- package/lib/vant.es.js +3498 -3139
- package/lib/vant.js +5700 -5341
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/work-order-card/WorkOrderCard.d.ts +145 -0
- package/lib/work-order-card/WorkOrderCard.js +140 -0
- package/lib/work-order-card/index.css +1 -0
- package/lib/work-order-card/index.d.ts +107 -0
- package/lib/work-order-card/index.js +37 -0
- package/lib/work-order-card/index.less +34 -0
- package/lib/work-order-card/style/index.d.ts +1 -0
- package/lib/work-order-card/style/index.js +8 -0
- package/lib/work-order-card/style/less.d.ts +1 -0
- package/lib/work-order-card/style/less.js +8 -0
- package/lib/work-order-card/types.d.ts +16 -0
- package/lib/work-order-card/types.js +15 -0
- package/lib/work-order-card/var.css +0 -0
- package/lib/work-order-card/var.less +6 -0
- package/lib/work-order-filter/style/index.js +1 -1
- package/lib/work-order-filter/style/less.js +1 -1
- package/package.json +2 -2
- package/skills/use-persagy-vant/SKILL.md +8 -7
- package/skills/use-persagy-vant/references/business-component-catalog.md +5 -0
- package/skills/use-persagy-vant/references/component-catalog.md +7 -4
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +71 -0
- package/skills/use-persagy-vant/references/page-recipes.md +22 -5
- package/es/action-sheet/ActionSheetPanel.mjs +0 -145
- package/lib/action-sheet/ActionSheetPanel.js +0 -174
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-weight-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
|
|
1
|
+
:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 48px;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: 22px;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: 22px}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-weight-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:20px var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}
|
|
@@ -125,73 +125,10 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
125
125
|
actions: import("./ActionSheet").ActionSheetAction[];
|
|
126
126
|
closeOnClickAction: boolean;
|
|
127
127
|
}>>;
|
|
128
|
-
export declare const ActionSheetPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
129
|
-
show: BooleanConstructor;
|
|
130
|
-
type: {
|
|
131
|
-
type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelType>;
|
|
132
|
-
default: import("./ActionSheetPanel").ActionSheetPanelType;
|
|
133
|
-
};
|
|
134
|
-
title: StringConstructor;
|
|
135
|
-
options: {
|
|
136
|
-
type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelOption[]>;
|
|
137
|
-
default: () => never[];
|
|
138
|
-
};
|
|
139
|
-
modelValue: import("vue").PropType<string | string[]>;
|
|
140
|
-
confirmText: {
|
|
141
|
-
type: import("vue").PropType<string>;
|
|
142
|
-
default: string;
|
|
143
|
-
};
|
|
144
|
-
selectAllText: {
|
|
145
|
-
type: import("vue").PropType<string>;
|
|
146
|
-
default: string;
|
|
147
|
-
};
|
|
148
|
-
cancelSelectAllText: {
|
|
149
|
-
type: import("vue").PropType<string>;
|
|
150
|
-
default: string;
|
|
151
|
-
};
|
|
152
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:modelValue" | "update:show" | "confirm")[], "select" | "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
|
-
show: BooleanConstructor;
|
|
154
|
-
type: {
|
|
155
|
-
type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelType>;
|
|
156
|
-
default: import("./ActionSheetPanel").ActionSheetPanelType;
|
|
157
|
-
};
|
|
158
|
-
title: StringConstructor;
|
|
159
|
-
options: {
|
|
160
|
-
type: import("vue").PropType<import("./ActionSheetPanel").ActionSheetPanelOption[]>;
|
|
161
|
-
default: () => never[];
|
|
162
|
-
};
|
|
163
|
-
modelValue: import("vue").PropType<string | string[]>;
|
|
164
|
-
confirmText: {
|
|
165
|
-
type: import("vue").PropType<string>;
|
|
166
|
-
default: string;
|
|
167
|
-
};
|
|
168
|
-
selectAllText: {
|
|
169
|
-
type: import("vue").PropType<string>;
|
|
170
|
-
default: string;
|
|
171
|
-
};
|
|
172
|
-
cancelSelectAllText: {
|
|
173
|
-
type: import("vue").PropType<string>;
|
|
174
|
-
default: string;
|
|
175
|
-
};
|
|
176
|
-
}>> & {
|
|
177
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
178
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
179
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
180
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
type: import("./ActionSheetPanel").ActionSheetPanelType;
|
|
183
|
-
show: boolean;
|
|
184
|
-
options: import("./ActionSheetPanel").ActionSheetPanelOption[];
|
|
185
|
-
confirmText: string;
|
|
186
|
-
selectAllText: string;
|
|
187
|
-
cancelSelectAllText: string;
|
|
188
|
-
}>>;
|
|
189
128
|
export default ActionSheet;
|
|
190
129
|
export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
|
|
191
|
-
export type { ActionSheetPanelProps, ActionSheetPanelType, ActionSheetPanelOption, } from './ActionSheetPanel';
|
|
192
130
|
declare module 'vue' {
|
|
193
131
|
interface GlobalComponents {
|
|
194
132
|
VanActionSheet: typeof ActionSheet;
|
|
195
|
-
VanActionSheetPanel: typeof ActionSheetPanel;
|
|
196
133
|
}
|
|
197
134
|
}
|
|
@@ -130,99 +130,3 @@
|
|
|
130
130
|
line-height: inherit;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
.van-action-sheet-panel {
|
|
135
|
-
box-sizing: border-box;
|
|
136
|
-
display: flex;
|
|
137
|
-
height: calc(100% - 96px);
|
|
138
|
-
max-height: calc(100% - 96px);
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
background: var(--van-gray-1);
|
|
141
|
-
|
|
142
|
-
.van-action-sheet__content {
|
|
143
|
-
display: flex;
|
|
144
|
-
flex: 1;
|
|
145
|
-
min-height: 0;
|
|
146
|
-
overflow: hidden;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&__content {
|
|
150
|
-
display: flex;
|
|
151
|
-
flex: 1;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
min-height: 0;
|
|
154
|
-
overflow: hidden;
|
|
155
|
-
background: var(--van-gray-1);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&__nav-wrapper {
|
|
159
|
-
flex: none;
|
|
160
|
-
width: 100%;
|
|
161
|
-
min-width: 0;
|
|
162
|
-
max-width: 100%;
|
|
163
|
-
overflow: hidden;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&__nav {
|
|
167
|
-
box-sizing: border-box;
|
|
168
|
-
width: 100%;
|
|
169
|
-
min-width: 0;
|
|
170
|
-
max-width: 100%;
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
--van-nav-bar-background-color: var(--van-gray-1);
|
|
173
|
-
|
|
174
|
-
.van-nav-bar__content {
|
|
175
|
-
box-sizing: border-box;
|
|
176
|
-
width: 100%;
|
|
177
|
-
overflow: hidden;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.van-nav-bar__left--slot,
|
|
181
|
-
.van-nav-bar__right--slot {
|
|
182
|
-
padding: 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.van-nav-bar__left--slot {
|
|
186
|
-
left: var(--van-padding-md);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.van-nav-bar__right--slot {
|
|
190
|
-
right: var(--van-padding-md);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&__body {
|
|
195
|
-
flex: 1;
|
|
196
|
-
min-height: 0;
|
|
197
|
-
padding: 0 var(--van-padding-md);
|
|
198
|
-
overflow-y: auto;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
&__card {
|
|
202
|
-
overflow: hidden;
|
|
203
|
-
background: var(--van-white);
|
|
204
|
-
border-radius: var(--van-radius-md);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&__footer {
|
|
208
|
-
flex: none;
|
|
209
|
-
padding: var(--van-padding-xs) 12px;
|
|
210
|
-
background: var(--van-white);
|
|
211
|
-
box-shadow: 0 3px 12px rgba(27, 33, 41, 0.12),
|
|
212
|
-
0 0.5px 3px rgba(27, 33, 41, 0.08);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&__select-all {
|
|
216
|
-
color: var(--van-primary-color);
|
|
217
|
-
font-weight: var(--van-font-weight-bold);
|
|
218
|
-
font-size: var(--van-font-size-md);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.van-cell {
|
|
222
|
-
min-height: 44px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.van-checkbox {
|
|
226
|
-
margin: 0;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { withInstall } from "../utils/index.mjs";
|
|
2
2
|
import _ActionSheet from "./ActionSheet.mjs";
|
|
3
|
-
import _ActionSheetPanel from "./ActionSheetPanel.mjs";
|
|
4
3
|
const ActionSheet = withInstall(_ActionSheet);
|
|
5
|
-
const ActionSheetPanel = withInstall(_ActionSheetPanel);
|
|
6
4
|
var stdin_default = ActionSheet;
|
|
7
5
|
export {
|
|
8
6
|
ActionSheet,
|
|
9
|
-
ActionSheetPanel,
|
|
10
7
|
stdin_default as default
|
|
11
8
|
};
|
|
@@ -2,14 +2,6 @@ import "../../style/base.css";
|
|
|
2
2
|
import "../../badge/index.css";
|
|
3
3
|
import "../../icon/index.css";
|
|
4
4
|
import "../../loading/index.css";
|
|
5
|
-
import "../../button/index.css";
|
|
6
5
|
import "../../overlay/index.css";
|
|
7
6
|
import "../../popup/index.css";
|
|
8
|
-
import "../../popover/index.css";
|
|
9
|
-
import "../../nav-bar/index.css";
|
|
10
|
-
import "../../checkbox-group/index.css";
|
|
11
|
-
import "../../checkbox/index.css";
|
|
12
|
-
import "../../radio-group/index.css";
|
|
13
|
-
import "../../radio/index.css";
|
|
14
|
-
import "../../cell/index.css";
|
|
15
7
|
import "../index.css";
|
|
@@ -2,14 +2,6 @@ import "../../style/base.less";
|
|
|
2
2
|
import "../../badge/index.less";
|
|
3
3
|
import "../../icon/index.less";
|
|
4
4
|
import "../../loading/index.less";
|
|
5
|
-
import "../../button/index.less";
|
|
6
5
|
import "../../overlay/index.less";
|
|
7
6
|
import "../../popup/index.less";
|
|
8
|
-
import "../../popover/index.less";
|
|
9
|
-
import "../../nav-bar/index.less";
|
|
10
|
-
import "../../checkbox-group/index.less";
|
|
11
|
-
import "../../checkbox/index.less";
|
|
12
|
-
import "../../radio-group/index.less";
|
|
13
|
-
import "../../radio/index.less";
|
|
14
|
-
import "../../cell/index.less";
|
|
15
7
|
import "../index.less";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { BackgroundTheme } from './types';
|
|
3
|
+
declare const backgroundProps: {
|
|
4
|
+
theme: {
|
|
5
|
+
type: import("vue").PropType<BackgroundTheme>;
|
|
6
|
+
default: BackgroundTheme;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare type BackgroundProps = ExtractPropTypes<typeof backgroundProps>;
|
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
theme: {
|
|
12
|
+
type: import("vue").PropType<BackgroundTheme>;
|
|
13
|
+
default: BackgroundTheme;
|
|
14
|
+
};
|
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
16
|
+
theme: {
|
|
17
|
+
type: import("vue").PropType<BackgroundTheme>;
|
|
18
|
+
default: BackgroundTheme;
|
|
19
|
+
};
|
|
20
|
+
}>>, {
|
|
21
|
+
theme: BackgroundTheme;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { createNamespace, makeStringProp } from "../utils/index.mjs";
|
|
3
|
+
const [name, bem] = createNamespace("background");
|
|
4
|
+
const backgroundProps = {
|
|
5
|
+
theme: makeStringProp("default")
|
|
6
|
+
};
|
|
7
|
+
var stdin_default = defineComponent({
|
|
8
|
+
name,
|
|
9
|
+
props: backgroundProps,
|
|
10
|
+
setup(props, {
|
|
11
|
+
slots
|
|
12
|
+
}) {
|
|
13
|
+
return () => {
|
|
14
|
+
var _a;
|
|
15
|
+
return _createVNode("div", {
|
|
16
|
+
"class": bem([props.theme])
|
|
17
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
stdin_default as default
|
|
23
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--van-background-min-height: 100vh;--van-background-color: var(--van-gray-1);--van-background-size: 100% auto;--van-background-position: top center}.van-background{min-height:var(--van-background-min-height);background-color:var(--van-background-color);background-position:var(--van-background-position);background-repeat:no-repeat;background-size:var(--van-background-size)}.van-background--default{--van-background-image: url(./assets/background-default.png)}.van-background--light{--van-background-image: url(./assets/background-light.png)}.van-background--solid{--van-background-color: #e4effd;--van-background-image: none}.van-background--gray{--van-background-color: var(--van-grey-200);--van-background-image: none}.van-background--style-1{--van-background-image: url(./assets/background-style-1.png)}.van-background--style-2{--van-background-image: url(./assets/background-style-2.png)}.van-background--style-3{--van-background-image: url(./assets/background-style-3.png)}.van-background,.van-background[style*=--van-background-image]{background-image:var(--van-background-image)}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const Background: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
theme: {
|
|
3
|
+
type: import("vue").PropType<import("./types").BackgroundTheme>;
|
|
4
|
+
default: import("./types").BackgroundTheme;
|
|
5
|
+
};
|
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
theme: {
|
|
8
|
+
type: import("vue").PropType<import("./types").BackgroundTheme>;
|
|
9
|
+
default: import("./types").BackgroundTheme;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
theme: import("./types").BackgroundTheme;
|
|
13
|
+
}>>;
|
|
14
|
+
export default Background;
|
|
15
|
+
export type { BackgroundProps } from './Background';
|
|
16
|
+
export type { BackgroundTheme } from './types';
|
|
17
|
+
declare module 'vue' {
|
|
18
|
+
interface GlobalComponents {
|
|
19
|
+
VanBackground: typeof Background;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import './var.less';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--van-background-min-height: @background-min-height;
|
|
5
|
+
--van-background-color: @background-color;
|
|
6
|
+
--van-background-size: @background-size;
|
|
7
|
+
--van-background-position: @background-position;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.van-background {
|
|
11
|
+
min-height: var(--van-background-min-height);
|
|
12
|
+
background-color: var(--van-background-color);
|
|
13
|
+
background-position: var(--van-background-position);
|
|
14
|
+
background-repeat: no-repeat;
|
|
15
|
+
background-size: var(--van-background-size);
|
|
16
|
+
|
|
17
|
+
&--default {
|
|
18
|
+
--van-background-image: url('./assets/background-default.png');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--light {
|
|
22
|
+
--van-background-image: url('./assets/background-light.png');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--solid {
|
|
26
|
+
--van-background-color: #e4effd;
|
|
27
|
+
--van-background-image: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--gray {
|
|
31
|
+
--van-background-color: var(--van-grey-200);
|
|
32
|
+
--van-background-image: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--style-1 {
|
|
36
|
+
--van-background-image: url('./assets/background-style-1.png');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--style-2 {
|
|
40
|
+
--van-background-image: url('./assets/background-style-2.png');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--style-3 {
|
|
44
|
+
--van-background-image: url('./assets/background-style-3.png');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&,
|
|
48
|
+
&[style*='--van-background-image'] {
|
|
49
|
+
background-image: var(--van-background-image);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type BackgroundTheme = 'default' | 'light' | 'gray' | 'solid' | 'style-1' | 'style-2' | 'style-3';
|
|
File without changes
|
|
File without changes
|
|
@@ -2,16 +2,8 @@ import "../../style/base.css";
|
|
|
2
2
|
import "../../badge/index.css";
|
|
3
3
|
import "../../icon/index.css";
|
|
4
4
|
import "../../loading/index.css";
|
|
5
|
-
import "../../button/index.css";
|
|
6
5
|
import "../../overlay/index.css";
|
|
7
6
|
import "../../popup/index.css";
|
|
8
|
-
import "../../popover/index.css";
|
|
9
|
-
import "../../nav-bar/index.css";
|
|
10
|
-
import "../../checkbox-group/index.css";
|
|
11
|
-
import "../../checkbox/index.css";
|
|
12
|
-
import "../../radio-group/index.css";
|
|
13
|
-
import "../../radio/index.css";
|
|
14
|
-
import "../../cell/index.css";
|
|
15
7
|
import "../../action-sheet/index.css";
|
|
16
8
|
import "../../sticky/index.css";
|
|
17
9
|
import "../../swipe/index.css";
|
|
@@ -2,16 +2,8 @@ import "../../style/base.less";
|
|
|
2
2
|
import "../../badge/index.less";
|
|
3
3
|
import "../../icon/index.less";
|
|
4
4
|
import "../../loading/index.less";
|
|
5
|
-
import "../../button/index.less";
|
|
6
5
|
import "../../overlay/index.less";
|
|
7
6
|
import "../../popup/index.less";
|
|
8
|
-
import "../../popover/index.less";
|
|
9
|
-
import "../../nav-bar/index.less";
|
|
10
|
-
import "../../checkbox-group/index.less";
|
|
11
|
-
import "../../checkbox/index.less";
|
|
12
|
-
import "../../radio-group/index.less";
|
|
13
|
-
import "../../radio/index.less";
|
|
14
|
-
import "../../cell/index.less";
|
|
15
7
|
import "../../action-sheet/index.less";
|
|
16
8
|
import "../../sticky/index.less";
|
|
17
9
|
import "../../swipe/index.less";
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type ActionSheetPanelOption = {
|
|
2
|
+
export declare type CheckboxPanelOption = {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
};
|
|
8
|
-
declare const
|
|
7
|
+
declare const checkboxPanelProps: {
|
|
9
8
|
show: BooleanConstructor;
|
|
10
|
-
type: {
|
|
11
|
-
type: PropType<ActionSheetPanelType>;
|
|
12
|
-
default: ActionSheetPanelType;
|
|
13
|
-
};
|
|
14
9
|
title: StringConstructor;
|
|
15
10
|
options: {
|
|
16
|
-
type: PropType<
|
|
11
|
+
type: PropType<CheckboxPanelOption[]>;
|
|
17
12
|
default: () => never[];
|
|
18
13
|
};
|
|
19
|
-
modelValue: PropType<string
|
|
14
|
+
modelValue: PropType<string[]>;
|
|
20
15
|
confirmText: {
|
|
21
16
|
type: PropType<string>;
|
|
22
17
|
default: string;
|
|
@@ -30,19 +25,15 @@ declare const actionSheetPanelProps: {
|
|
|
30
25
|
default: string;
|
|
31
26
|
};
|
|
32
27
|
};
|
|
33
|
-
export declare type
|
|
28
|
+
export declare type CheckboxPanelProps = ExtractPropTypes<typeof checkboxPanelProps>;
|
|
34
29
|
declare const _default: import("vue").DefineComponent<{
|
|
35
30
|
show: BooleanConstructor;
|
|
36
|
-
type: {
|
|
37
|
-
type: PropType<ActionSheetPanelType>;
|
|
38
|
-
default: ActionSheetPanelType;
|
|
39
|
-
};
|
|
40
31
|
title: StringConstructor;
|
|
41
32
|
options: {
|
|
42
|
-
type: PropType<
|
|
33
|
+
type: PropType<CheckboxPanelOption[]>;
|
|
43
34
|
default: () => never[];
|
|
44
35
|
};
|
|
45
|
-
modelValue: PropType<string
|
|
36
|
+
modelValue: PropType<string[]>;
|
|
46
37
|
confirmText: {
|
|
47
38
|
type: PropType<string>;
|
|
48
39
|
default: string;
|
|
@@ -55,18 +46,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
46
|
type: PropType<string>;
|
|
56
47
|
default: string;
|
|
57
48
|
};
|
|
58
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:show" | "confirm")[], "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
59
50
|
show: BooleanConstructor;
|
|
60
|
-
type: {
|
|
61
|
-
type: PropType<ActionSheetPanelType>;
|
|
62
|
-
default: ActionSheetPanelType;
|
|
63
|
-
};
|
|
64
51
|
title: StringConstructor;
|
|
65
52
|
options: {
|
|
66
|
-
type: PropType<
|
|
53
|
+
type: PropType<CheckboxPanelOption[]>;
|
|
67
54
|
default: () => never[];
|
|
68
55
|
};
|
|
69
|
-
modelValue: PropType<string
|
|
56
|
+
modelValue: PropType<string[]>;
|
|
70
57
|
confirmText: {
|
|
71
58
|
type: PropType<string>;
|
|
72
59
|
default: string;
|
|
@@ -80,14 +67,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
67
|
default: string;
|
|
81
68
|
};
|
|
82
69
|
}>> & {
|
|
83
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
84
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
85
71
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
86
72
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
87
73
|
}, {
|
|
88
|
-
type: ActionSheetPanelType;
|
|
89
74
|
show: boolean;
|
|
90
|
-
options:
|
|
75
|
+
options: CheckboxPanelOption[];
|
|
91
76
|
confirmText: string;
|
|
92
77
|
selectAllText: string;
|
|
93
78
|
cancelSelectAllText: string;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { computed, defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { createNamespace, makeArrayProp, makeStringProp } from "../utils/index.mjs";
|
|
3
|
+
import { ActionSheet } from "../action-sheet/index.mjs";
|
|
4
|
+
import { NavBar } from "../nav-bar/index.mjs";
|
|
5
|
+
import { Icon } from "../icon/index.mjs";
|
|
6
|
+
import { Cell } from "../cell/index.mjs";
|
|
7
|
+
import { Checkbox } from "../checkbox/index.mjs";
|
|
8
|
+
import { CheckboxGroup } from "../checkbox-group/index.mjs";
|
|
9
|
+
import { Button } from "../button/index.mjs";
|
|
10
|
+
const [name, bem] = createNamespace("checkbox-panel");
|
|
11
|
+
const checkboxPanelProps = {
|
|
12
|
+
show: Boolean,
|
|
13
|
+
title: String,
|
|
14
|
+
options: makeArrayProp(),
|
|
15
|
+
modelValue: Array,
|
|
16
|
+
confirmText: makeStringProp("\u786E\u5B9A"),
|
|
17
|
+
selectAllText: makeStringProp("\u5168\u9009"),
|
|
18
|
+
cancelSelectAllText: makeStringProp("\u53D6\u6D88\u5168\u9009")
|
|
19
|
+
};
|
|
20
|
+
var stdin_default = defineComponent({
|
|
21
|
+
name,
|
|
22
|
+
props: checkboxPanelProps,
|
|
23
|
+
emits: ["update:show", "update:modelValue", "confirm"],
|
|
24
|
+
setup(props, {
|
|
25
|
+
emit
|
|
26
|
+
}) {
|
|
27
|
+
const selectedValues = computed(() => props.modelValue || []);
|
|
28
|
+
const selectableOptions = computed(() => props.options.filter((option) => !option.disabled));
|
|
29
|
+
const isAllSelected = computed(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
|
|
30
|
+
const close = () => emit("update:show", false);
|
|
31
|
+
const toggleOption = (option) => {
|
|
32
|
+
if (option.disabled)
|
|
33
|
+
return;
|
|
34
|
+
const values = [...selectedValues.value];
|
|
35
|
+
const index = values.indexOf(option.value);
|
|
36
|
+
index === -1 ? values.push(option.value) : values.splice(index, 1);
|
|
37
|
+
emit("update:modelValue", values);
|
|
38
|
+
};
|
|
39
|
+
const toggleAll = () => emit("update:modelValue", isAllSelected.value ? [] : selectableOptions.value.map((option) => option.value));
|
|
40
|
+
const confirm = () => {
|
|
41
|
+
emit("confirm", selectedValues.value);
|
|
42
|
+
close();
|
|
43
|
+
};
|
|
44
|
+
return () => _createVNode(ActionSheet, {
|
|
45
|
+
"show": props.show,
|
|
46
|
+
"class": bem(),
|
|
47
|
+
"onUpdate:show": (show) => emit("update:show", show)
|
|
48
|
+
}, {
|
|
49
|
+
default: () => [_createVNode("div", {
|
|
50
|
+
"class": bem("content")
|
|
51
|
+
}, [_createVNode("div", {
|
|
52
|
+
"class": bem("nav-wrapper")
|
|
53
|
+
}, [_createVNode(NavBar, {
|
|
54
|
+
"title": props.title,
|
|
55
|
+
"border": false,
|
|
56
|
+
"class": bem("nav")
|
|
57
|
+
}, {
|
|
58
|
+
left: () => _createVNode(Icon, {
|
|
59
|
+
"name": "cross",
|
|
60
|
+
"size": "22",
|
|
61
|
+
"onClick": close
|
|
62
|
+
}, null),
|
|
63
|
+
right: () => _createVNode("span", {
|
|
64
|
+
"class": bem("select-all"),
|
|
65
|
+
"onClick": toggleAll
|
|
66
|
+
}, [isAllSelected.value ? props.cancelSelectAllText : props.selectAllText])
|
|
67
|
+
})]), _createVNode("div", {
|
|
68
|
+
"class": bem("body")
|
|
69
|
+
}, [_createVNode(CheckboxGroup, {
|
|
70
|
+
"modelValue": selectedValues.value,
|
|
71
|
+
"class": bem("card"),
|
|
72
|
+
"onUpdate:modelValue": (value) => emit("update:modelValue", value)
|
|
73
|
+
}, {
|
|
74
|
+
default: () => [props.options.map((option) => _createVNode(Cell, {
|
|
75
|
+
"key": option.value,
|
|
76
|
+
"clickable": !option.disabled,
|
|
77
|
+
"title": option.label,
|
|
78
|
+
"onClick": () => toggleOption(option)
|
|
79
|
+
}, {
|
|
80
|
+
"right-icon": () => _createVNode(Checkbox, {
|
|
81
|
+
"name": option.value,
|
|
82
|
+
"disabled": option.disabled,
|
|
83
|
+
"onClick": (event) => event.stopPropagation()
|
|
84
|
+
}, null)
|
|
85
|
+
}))]
|
|
86
|
+
})]), _createVNode("div", {
|
|
87
|
+
"class": bem("footer")
|
|
88
|
+
}, [_createVNode(Button, {
|
|
89
|
+
"block": true,
|
|
90
|
+
"type": "primary",
|
|
91
|
+
"onClick": confirm
|
|
92
|
+
}, {
|
|
93
|
+
default: () => [props.confirmText]
|
|
94
|
+
})])])]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
stdin_default as default
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-checkbox-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-checkbox-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-checkbox-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-checkbox-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-checkbox-panel__nav .van-nav-bar__left--slot,.van-checkbox-panel__nav .van-nav-bar__right--slot{padding:0}.van-checkbox-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-checkbox-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-checkbox-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-checkbox-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-checkbox-panel__footer{flex:none;padding:var(--van-padding-xs) 12px;background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}.van-checkbox-panel__select-all{color:var(--van-primary-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-font-size-md)}.van-checkbox-panel .van-cell{min-height:44px}.van-checkbox-panel .van-checkbox{margin:0}
|