vant 3.2.5 → 3.2.6
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-bar/index.css +1 -1
- package/es/action-bar/index.less +1 -1
- package/es/action-bar-icon/ActionBarIcon.js +2 -2
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-bar-icon/index.less +1 -1
- package/es/action-sheet/ActionSheet.d.ts +15 -9
- package/es/action-sheet/ActionSheet.js +7 -15
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +10 -3
- package/es/action-sheet/index.less +2 -2
- package/es/address-edit/AddressEdit.d.ts +1 -2
- package/es/address-edit/AddressEdit.js +3 -8
- package/es/address-edit/AddressEditDetail.js +5 -6
- package/es/address-edit/index.css +1 -1
- package/es/address-edit/index.d.ts +1 -2
- package/es/address-edit/index.less +2 -2
- package/es/address-edit/style/index.js +0 -3
- package/es/address-edit/style/less.js +0 -3
- package/es/address-list/AddressList.js +2 -6
- package/es/badge/index.css +1 -1
- package/es/badge/index.less +4 -2
- package/es/calendar/Calendar.js +11 -8
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +3 -3
- package/es/card/index.css +1 -1
- package/es/card/index.less +1 -1
- package/es/cascader/Cascader.d.ts +25 -14
- package/es/cascader/Cascader.js +49 -46
- package/es/cascader/index.d.ts +8 -6
- package/es/cascader/types.d.ts +18 -0
- package/es/cascader/types.js +1 -0
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +1 -1
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.less +1 -1
- package/es/checkbox/Checker.js +1 -8
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/types.d.ts +3 -0
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/checkbox-group/types.d.ts +2 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.less +1 -1
- package/es/contact-edit/ContactEdit.js +1 -4
- package/es/contact-edit/style/index.js +0 -5
- package/es/contact-edit/style/less.js +0 -5
- package/es/coupon/index.css +1 -1
- package/es/coupon/index.less +1 -1
- package/es/coupon-list/CouponList.js +1 -1
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.less +1 -1
- package/es/dialog/Dialog.js +5 -10
- package/es/dialog/function-call.d.ts +2 -2
- package/es/dialog/function-call.js +2 -2
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +1 -1
- package/es/dropdown-item/DropdownItem.js +1 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.less +1 -1
- package/es/empty/Network.js +8 -27
- package/es/grid-item/GridItem.js +2 -2
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.less +1 -1
- package/es/image/Image.js +7 -20
- package/es/image/index.css +1 -1
- package/es/image/index.less +1 -1
- package/es/image-preview/ImagePreview.js +5 -6
- package/es/image-preview/function-call.js +2 -2
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.less +1 -1
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/index.less +2 -2
- package/es/index-bar/IndexBar.js +1 -12
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/de-DE-formal.d.ts +0 -1
- package/es/locale/lang/de-DE-formal.js +0 -1
- package/es/locale/lang/de-DE.d.ts +0 -1
- package/es/locale/lang/de-DE.js +0 -1
- package/es/locale/lang/en-US.d.ts +0 -1
- package/es/locale/lang/en-US.js +0 -1
- package/es/locale/lang/es-ES.d.ts +0 -1
- package/es/locale/lang/es-ES.js +0 -1
- package/es/locale/lang/fr-FR.d.ts +0 -1
- package/es/locale/lang/fr-FR.js +0 -1
- package/es/locale/lang/ja-JP.d.ts +0 -1
- package/es/locale/lang/ja-JP.js +0 -1
- package/es/locale/lang/nb-NO.d.ts +0 -1
- package/es/locale/lang/nb-NO.js +0 -1
- package/es/locale/lang/ro-RO.d.ts +0 -1
- package/es/locale/lang/ro-RO.js +0 -1
- package/es/locale/lang/ru-RU.d.ts +0 -1
- package/es/locale/lang/ru-RU.js +0 -1
- package/es/locale/lang/th-TH.d.ts +0 -1
- package/es/locale/lang/th-TH.js +0 -1
- package/es/locale/lang/tr-TR.d.ts +0 -1
- package/es/locale/lang/tr-TR.js +0 -1
- package/es/locale/lang/zh-CN.d.ts +0 -1
- package/es/locale/lang/zh-CN.js +0 -1
- package/es/locale/lang/zh-HK.d.ts +0 -1
- package/es/locale/lang/zh-HK.js +0 -1
- package/es/locale/lang/zh-TW.d.ts +0 -1
- package/es/locale/lang/zh-TW.js +0 -1
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.less +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/index.less +1 -1
- package/es/notify/Notify.d.ts +4 -2
- package/es/notify/Notify.js +6 -1
- package/es/notify/function-call.d.ts +4 -2
- package/es/notify/function-call.js +1 -1
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +4 -4
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.less +3 -3
- package/es/overlay/Overlay.js +2 -2
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.less +1 -1
- package/es/pagination/index.css +1 -1
- package/es/pagination/index.less +1 -1
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.less +3 -3
- package/es/picker/index.css +1 -1
- package/es/picker/index.less +2 -2
- package/es/popover/Popover.js +3 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.less +2 -2
- package/es/popup/Popup.js +2 -4
- package/es/popup/index.css +1 -1
- package/es/popup/index.less +1 -1
- package/es/progress/Progress.js +7 -3
- package/es/progress/index.css +1 -1
- package/es/progress/index.less +10 -1
- package/es/progress/var.less +1 -0
- package/es/pull-refresh/PullRefresh.js +2 -2
- package/es/radio/Radio.d.ts +9 -6
- package/es/radio/index.d.ts +2 -0
- package/es/radio-group/RadioGroup.d.ts +1 -0
- package/es/radio-group/index.d.ts +2 -0
- package/es/search/Search.js +3 -4
- package/es/search/index.css +1 -1
- package/es/search/index.less +2 -2
- package/es/share-sheet/ShareSheet.d.ts +7 -0
- package/es/share-sheet/ShareSheet.js +5 -6
- package/es/share-sheet/index.d.ts +7 -0
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/skeleton/index.less +2 -2
- package/es/slider/index.css +1 -1
- package/es/slider/index.less +3 -3
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/Stepper.js +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -1
- package/es/stepper/index.less +3 -3
- package/es/steps/index.d.ts +6 -4
- package/es/submit-bar/index.css +1 -1
- package/es/submit-bar/index.less +2 -2
- package/es/swipe-cell/SwipeCell.js +1 -2
- package/es/switch/index.css +1 -1
- package/es/switch/index.less +3 -3
- package/es/tabbar/Tabbar.js +1 -2
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/index.less +1 -1
- package/es/tabbar-item/TabbarItem.js +2 -2
- package/es/tabs/Tabs.js +2 -5
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +2 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.less +6 -6
- package/es/toast/Toast.js +5 -11
- package/es/toast/index.css +1 -1
- package/es/toast/index.less +1 -1
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.less +2 -2
- package/es/uploader/UploaderPreviewItem.js +3 -4
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.less +4 -4
- package/es/utils/interceptor.d.ts +1 -2
- package/es/utils/interceptor.js +6 -9
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar/index.less +1 -1
- package/lib/action-bar-icon/ActionBarIcon.js +1 -1
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-bar-icon/index.less +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +15 -9
- package/lib/action-sheet/ActionSheet.js +6 -14
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +10 -3
- package/lib/action-sheet/index.less +2 -2
- package/lib/address-edit/AddressEdit.d.ts +1 -2
- package/lib/address-edit/AddressEdit.js +3 -9
- package/lib/address-edit/AddressEditDetail.js +4 -5
- package/lib/address-edit/index.css +1 -1
- package/lib/address-edit/index.d.ts +1 -2
- package/lib/address-edit/index.less +2 -2
- package/lib/address-edit/style/index.js +0 -6
- package/lib/address-edit/style/less.js +0 -6
- package/lib/address-list/AddressList.js +2 -6
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.less +4 -2
- package/lib/calendar/Calendar.js +11 -8
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.less +3 -3
- package/lib/card/index.css +1 -1
- package/lib/card/index.less +1 -1
- package/lib/cascader/Cascader.d.ts +25 -14
- package/lib/cascader/Cascader.js +48 -45
- package/lib/cascader/index.d.ts +8 -6
- package/lib/cascader/types.d.ts +18 -0
- package/lib/cascader/types.js +3 -0
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.less +1 -1
- package/lib/checkbox/Checker.js +1 -8
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/types.d.ts +3 -0
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/checkbox-group/types.d.ts +2 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.less +1 -1
- package/lib/contact-edit/ContactEdit.js +1 -5
- package/lib/contact-edit/style/index.js +0 -10
- package/lib/contact-edit/style/less.js +0 -10
- package/lib/coupon/index.css +1 -1
- package/lib/coupon/index.less +1 -1
- package/lib/coupon-list/CouponList.js +1 -1
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.less +1 -1
- package/lib/dialog/Dialog.js +5 -10
- package/lib/dialog/function-call.d.ts +2 -2
- package/lib/dialog/function-call.js +2 -2
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +1 -1
- package/lib/dropdown-item/DropdownItem.js +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.less +1 -1
- package/lib/empty/Network.js +8 -27
- package/lib/grid-item/GridItem.js +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.less +1 -1
- package/lib/image/Image.js +7 -20
- package/lib/image/index.css +1 -1
- package/lib/image/index.less +1 -1
- package/lib/image-preview/ImagePreview.js +5 -6
- package/lib/image-preview/function-call.js +2 -2
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.less +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/index.less +2 -2
- package/lib/index-bar/IndexBar.js +1 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +1 -1
- package/lib/locale/lang/de-DE-formal.d.ts +0 -1
- package/lib/locale/lang/de-DE-formal.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -1
- package/lib/locale/lang/de-DE.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -1
- package/lib/locale/lang/en-US.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -1
- package/lib/locale/lang/es-ES.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -1
- package/lib/locale/lang/fr-FR.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -1
- package/lib/locale/lang/ja-JP.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -1
- package/lib/locale/lang/nb-NO.js +0 -1
- package/lib/locale/lang/ro-RO.d.ts +0 -1
- package/lib/locale/lang/ro-RO.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -1
- package/lib/locale/lang/ru-RU.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -1
- package/lib/locale/lang/th-TH.js +0 -1
- package/lib/locale/lang/tr-TR.d.ts +0 -1
- package/lib/locale/lang/tr-TR.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -1
- package/lib/locale/lang/zh-CN.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -1
- package/lib/locale/lang/zh-HK.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -1
- package/lib/locale/lang/zh-TW.js +0 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.less +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/index.less +1 -1
- package/lib/notify/Notify.d.ts +4 -2
- package/lib/notify/Notify.js +6 -1
- package/lib/notify/function-call.d.ts +4 -2
- package/lib/notify/function-call.js +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +4 -4
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.less +3 -3
- package/lib/overlay/Overlay.js +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.less +1 -1
- package/lib/pagination/index.css +1 -1
- package/lib/pagination/index.less +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.less +3 -3
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.less +2 -2
- package/lib/popover/Popover.js +3 -4
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.less +2 -2
- package/lib/popup/Popup.js +2 -4
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.less +1 -1
- package/lib/progress/Progress.js +7 -3
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.less +10 -1
- package/lib/progress/var.less +1 -0
- package/lib/pull-refresh/PullRefresh.js +1 -1
- package/lib/radio/Radio.d.ts +9 -6
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio-group/RadioGroup.d.ts +1 -0
- package/lib/radio-group/index.d.ts +2 -0
- package/lib/search/Search.js +3 -4
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +2 -2
- package/lib/share-sheet/ShareSheet.d.ts +7 -0
- package/lib/share-sheet/ShareSheet.js +5 -6
- package/lib/share-sheet/index.d.ts +7 -0
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.less +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/skeleton/index.less +2 -2
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.less +3 -3
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -1
- package/lib/stepper/index.less +3 -3
- package/lib/steps/index.d.ts +6 -4
- package/lib/submit-bar/index.css +1 -1
- package/lib/submit-bar/index.less +2 -2
- package/lib/swipe-cell/SwipeCell.js +1 -2
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.less +3 -3
- package/lib/tabbar/Tabbar.js +1 -2
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/index.less +1 -1
- package/lib/tabbar-item/TabbarItem.js +1 -1
- package/lib/tabs/Tabs.js +2 -5
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +2 -2
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.less +6 -6
- package/lib/toast/Toast.js +4 -10
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.less +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.less +2 -2
- package/lib/uploader/UploaderPreviewItem.js +2 -3
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.less +4 -4
- package/lib/utils/interceptor.d.ts +1 -2
- package/lib/utils/interceptor.js +6 -9
- package/lib/vant.es.js +758 -831
- package/lib/vant.es.min.js +758 -831
- package/lib/vant.js +758 -831
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +60 -56
- package/vetur/tags.json +18 -17
- package/vetur/web-types.json +198 -184
- package/changelog.generated.md +0 -148
package/es/action-bar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-action-bar-background-color:var(--van-white);--van-action-bar-height:50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background
|
1
|
+
:root{--van-action-bar-background-color:var(--van-white);--van-action-bar-height:50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background-color)}
|
package/es/action-bar/index.less
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
1
|
+
import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
|
2
2
|
import { defineComponent } from 'vue';
|
3
3
|
import { extend, createNamespace, unknownProp, numericProp } from '../utils';
|
4
4
|
import { ACTION_BAR_KEY } from '../action-bar/ActionBar'; // Composables
|
@@ -43,7 +43,7 @@ export default defineComponent({
|
|
43
43
|
"content": badge,
|
44
44
|
"class": bem('icon')
|
45
45
|
}, {
|
46
|
-
default:
|
46
|
+
default: slots.icon
|
47
47
|
});
|
48
48
|
}
|
49
49
|
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-action-bar-icon-width:48px;--van-action-bar-icon-height:100%;--van-action-bar-icon-color:var(--van-text-color);--van-action-bar-icon-size:18px;--van-action-bar-icon-font-size:var(--van-font-size-xs);--van-action-bar-icon-active-color:var(--van-active-color);--van-action-bar-icon-text-color:var(--van-gray-7);--van-action-bar-icon-background-color:var(--van-white)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background
|
1
|
+
:root{--van-action-bar-icon-width:48px;--van-action-bar-icon-height:100%;--van-action-bar-icon-color:var(--van-text-color);--van-action-bar-icon-size:18px;--van-action-bar-icon-font-size:var(--van-font-size-xs);--van-action-bar-icon-active-color:var(--van-active-color);--van-action-bar-icon-text-color:var(--van-gray-7);--van-action-bar-icon-background-color:var(--van-white)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background-color);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
1
|
export declare type ActionSheetAction = {
|
3
2
|
name?: string;
|
4
3
|
color?: string;
|
@@ -16,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
15
|
default: true;
|
17
16
|
};
|
18
17
|
duration: (NumberConstructor | StringConstructor)[];
|
19
|
-
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
18
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
20
19
|
lockScroll: {
|
21
20
|
type: BooleanConstructor;
|
22
21
|
default: true;
|
@@ -25,9 +24,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
24
|
type: BooleanConstructor;
|
26
25
|
default: true;
|
27
26
|
};
|
28
|
-
beforeClose: PropType<import("../utils").Interceptor>;
|
29
|
-
overlayStyle: PropType<import("vue").CSSProperties>;
|
30
|
-
overlayClass: PropType<unknown>;
|
27
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
28
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
29
|
+
overlayClass: import("vue").PropType<unknown>;
|
31
30
|
transitionAppear: BooleanConstructor;
|
32
31
|
closeOnClickOverlay: {
|
33
32
|
type: BooleanConstructor;
|
@@ -39,9 +38,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
38
|
type: BooleanConstructor;
|
40
39
|
default: true;
|
41
40
|
};
|
42
|
-
actions:
|
41
|
+
actions: {
|
42
|
+
type: import("vue").PropType<ActionSheetAction[]>;
|
43
|
+
default: () => never[];
|
44
|
+
};
|
43
45
|
closeIcon: {
|
44
|
-
type: PropType<string>;
|
46
|
+
type: import("vue").PropType<string>;
|
45
47
|
default: string;
|
46
48
|
};
|
47
49
|
closeable: {
|
@@ -50,7 +52,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
52
|
};
|
51
53
|
cancelText: StringConstructor;
|
52
54
|
description: StringConstructor;
|
53
|
-
closeOnPopstate:
|
55
|
+
closeOnPopstate: {
|
56
|
+
type: BooleanConstructor;
|
57
|
+
default: true;
|
58
|
+
};
|
54
59
|
closeOnClickAction: BooleanConstructor;
|
55
60
|
safeAreaInsetBottom: {
|
56
61
|
type: BooleanConstructor;
|
@@ -91,6 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
96
|
closeIcon: string;
|
92
97
|
closeable: boolean;
|
93
98
|
closeOnPopstate: boolean;
|
99
|
+
actions: ActionSheetAction[];
|
94
100
|
closeOnClickAction: boolean;
|
95
101
|
} & {
|
96
102
|
description?: string | undefined;
|
@@ -101,7 +107,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
107
|
beforeClose?: import("../utils").Interceptor | undefined;
|
102
108
|
overlayStyle?: import("vue").CSSProperties | undefined;
|
103
109
|
overlayClass?: unknown;
|
104
|
-
actions?: ActionSheetAction[] | undefined;
|
105
110
|
cancelText?: string | undefined;
|
106
111
|
}> & {
|
107
112
|
onSelect?: ((...args: any[]) => any) | undefined;
|
@@ -119,6 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
124
|
closeIcon: string;
|
120
125
|
closeable: boolean;
|
121
126
|
closeOnPopstate: boolean;
|
127
|
+
actions: ActionSheetAction[];
|
122
128
|
closeOnClickAction: boolean;
|
123
129
|
}>;
|
124
130
|
export default _default;
|
@@ -1,24 +1,25 @@
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { nextTick, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
|
-
import { pick, extend, truthProp, makeStringProp, createNamespace } from '../utils'; // Components
|
4
|
+
import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace } from '../utils'; // Components
|
5
5
|
|
6
6
|
import { Icon } from '../icon';
|
7
7
|
import { Popup } from '../popup';
|
8
8
|
import { Loading } from '../loading';
|
9
9
|
import { popupSharedProps, popupSharedPropKeys } from '../popup/shared';
|
10
10
|
var [name, bem] = createNamespace('action-sheet');
|
11
|
+
var popupKeys = [...popupSharedPropKeys, 'round', 'closeOnPopstate', 'safeAreaInsetBottom'];
|
11
12
|
export default defineComponent({
|
12
13
|
name,
|
13
14
|
props: extend({}, popupSharedProps, {
|
14
15
|
title: String,
|
15
16
|
round: truthProp,
|
16
|
-
actions:
|
17
|
+
actions: makeArrayProp(),
|
17
18
|
closeIcon: makeStringProp('cross'),
|
18
19
|
closeable: truthProp,
|
19
20
|
cancelText: String,
|
20
21
|
description: String,
|
21
|
-
closeOnPopstate:
|
22
|
+
closeOnPopstate: truthProp,
|
22
23
|
closeOnClickAction: Boolean,
|
23
24
|
safeAreaInsetBottom: truthProp
|
24
25
|
}),
|
@@ -115,23 +116,14 @@ export default defineComponent({
|
|
115
116
|
}
|
116
117
|
};
|
117
118
|
|
118
|
-
var renderOptions = () => {
|
119
|
-
if (props.actions) {
|
120
|
-
return props.actions.map(renderOption);
|
121
|
-
}
|
122
|
-
};
|
123
|
-
|
124
119
|
return () => _createVNode(Popup, _mergeProps({
|
125
120
|
"class": bem(),
|
126
|
-
"round": props.round,
|
127
121
|
"position": "bottom",
|
128
|
-
"
|
129
|
-
}, pick(props,
|
130
|
-
'onUpdate:show': updateShow
|
131
|
-
}), {
|
122
|
+
"onUpdate:show": updateShow
|
123
|
+
}, pick(props, popupKeys)), {
|
132
124
|
default: () => [renderHeader(), renderDescription(), _createVNode("div", {
|
133
125
|
"class": bem('content')
|
134
|
-
}, [
|
126
|
+
}, [props.actions.map(renderOption), slots.default == null ? void 0 : slots.default()]), renderCancel()]
|
135
127
|
});
|
136
128
|
}
|
137
129
|
|
@@ -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-gray-6);--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-white);--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-gray-5);--van-action-sheet-subname-color:var(--van-gray-6);--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-active-color:var(--van-gray-6);--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__cancel,.van-action-sheet__item{display:block;width:100%;padding:14px var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background
|
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-gray-6);--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-white);--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-gray-5);--van-action-sheet-subname-color:var(--van-gray-6);--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-active-color:var(--van-gray-6);--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__cancel,.van-action-sheet__item{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__cancel:active,.van-action-sheet__item:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--disabled,.van-action-sheet__item--loading{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--disabled:active,.van-action-sheet__item--loading: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}.van-action-sheet__close:active{color:var(--van-action-sheet-close-icon-active-color)}
|
@@ -29,7 +29,10 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
29
29
|
type: BooleanConstructor;
|
30
30
|
default: true;
|
31
31
|
};
|
32
|
-
actions:
|
32
|
+
actions: {
|
33
|
+
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
|
34
|
+
default: () => never[];
|
35
|
+
};
|
33
36
|
closeIcon: {
|
34
37
|
type: import("vue").PropType<string>;
|
35
38
|
default: string;
|
@@ -40,7 +43,10 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
40
43
|
};
|
41
44
|
cancelText: StringConstructor;
|
42
45
|
description: StringConstructor;
|
43
|
-
closeOnPopstate:
|
46
|
+
closeOnPopstate: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: true;
|
49
|
+
};
|
44
50
|
closeOnClickAction: BooleanConstructor;
|
45
51
|
safeAreaInsetBottom: {
|
46
52
|
type: BooleanConstructor;
|
@@ -81,6 +87,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
81
87
|
closeIcon: string;
|
82
88
|
closeable: boolean;
|
83
89
|
closeOnPopstate: boolean;
|
90
|
+
actions: import("./ActionSheet").ActionSheetAction[];
|
84
91
|
closeOnClickAction: boolean;
|
85
92
|
} & {
|
86
93
|
description?: string | undefined;
|
@@ -91,7 +98,6 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
91
98
|
beforeClose?: import("../utils").Interceptor | undefined;
|
92
99
|
overlayStyle?: import("vue").CSSProperties | undefined;
|
93
100
|
overlayClass?: unknown;
|
94
|
-
actions?: import("./ActionSheet").ActionSheetAction[] | undefined;
|
95
101
|
cancelText?: string | undefined;
|
96
102
|
}> & {
|
97
103
|
onSelect?: ((...args: any[]) => any) | undefined;
|
@@ -109,6 +115,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
109
115
|
closeIcon: string;
|
110
116
|
closeable: boolean;
|
111
117
|
closeOnPopstate: boolean;
|
118
|
+
actions: import("./ActionSheet").ActionSheetAction[];
|
112
119
|
closeOnClickAction: boolean;
|
113
120
|
}>>;
|
114
121
|
export default ActionSheet;
|
@@ -45,7 +45,7 @@
|
|
45
45
|
width: 100%;
|
46
46
|
padding: 14px var(--van-padding-md);
|
47
47
|
font-size: var(--van-action-sheet-item-font-size);
|
48
|
-
background
|
48
|
+
background: var(--van-action-sheet-item-background);
|
49
49
|
border: none;
|
50
50
|
cursor: pointer;
|
51
51
|
|
@@ -91,7 +91,7 @@
|
|
91
91
|
&__gap {
|
92
92
|
display: block;
|
93
93
|
height: var(--van-action-sheet-cancel-padding-top);
|
94
|
-
background
|
94
|
+
background: var(--van-action-sheet-cancel-padding-color);
|
95
95
|
}
|
96
96
|
|
97
97
|
&__header {
|
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
98
98
|
type: PropType<(val: string) => boolean>;
|
99
99
|
default: (value: string) => boolean;
|
100
100
|
};
|
101
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "
|
101
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "change-default")[], "focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
102
102
|
areaList?: unknown;
|
103
103
|
isSaving?: unknown;
|
104
104
|
isDeleting?: unknown;
|
@@ -153,7 +153,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
153
153
|
"onClick-area"?: ((...args: any[]) => any) | undefined;
|
154
154
|
"onChange-area"?: ((...args: any[]) => any) | undefined;
|
155
155
|
"onChange-detail"?: ((...args: any[]) => any) | undefined;
|
156
|
-
"onCancel-delete"?: ((...args: any[]) => any) | undefined;
|
157
156
|
"onChange-default"?: ((...args: any[]) => any) | undefined;
|
158
157
|
}, {
|
159
158
|
isSaving: boolean;
|
@@ -11,7 +11,6 @@ import { Field } from '../field';
|
|
11
11
|
import { Popup } from '../popup';
|
12
12
|
import { Toast } from '../toast';
|
13
13
|
import { Button } from '../button';
|
14
|
-
import { Dialog } from '../dialog';
|
15
14
|
import { Switch } from '../switch';
|
16
15
|
import AddressEditDetail from './AddressEditDetail'; // Types
|
17
16
|
|
@@ -67,7 +66,7 @@ var props = {
|
|
67
66
|
export default defineComponent({
|
68
67
|
name,
|
69
68
|
props,
|
70
|
-
emits: ['save', 'focus', 'delete', 'click-area', 'change-area', 'change-detail', '
|
69
|
+
emits: ['save', 'focus', 'delete', 'click-area', 'change-area', 'change-detail', 'select-search', 'change-default'],
|
71
70
|
|
72
71
|
setup(props, {
|
73
72
|
emit,
|
@@ -207,11 +206,7 @@ export default defineComponent({
|
|
207
206
|
emit('change-area', values);
|
208
207
|
};
|
209
208
|
|
210
|
-
var onDelete = () =>
|
211
|
-
Dialog.confirm({
|
212
|
-
title: t('confirmDelete')
|
213
|
-
}).then(() => emit('delete', state.data)).catch(() => emit('cancel-delete', state.data));
|
214
|
-
}; // get values of area component
|
209
|
+
var onDelete = () => emit('delete', state.data); // get values of area component
|
215
210
|
|
216
211
|
|
217
212
|
var getArea = () => areaRef.value ? areaRef.value.getValues() : []; // set area code to area component
|
@@ -351,7 +346,7 @@ export default defineComponent({
|
|
351
346
|
"text": props.deleteButtonText || t('delete'),
|
352
347
|
"onClick": onDelete
|
353
348
|
}, null)]), [[_vShow, !hideBottomFields.value]]), _createVNode(Popup, {
|
354
|
-
|
349
|
+
"show": state.showAreaPopup,
|
355
350
|
"onUpdate:show": $event => state.showAreaPopup = $event,
|
356
351
|
"round": true,
|
357
352
|
"teleport": "body",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Fragment as _Fragment, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
|
2
2
|
import { ref, defineComponent } from 'vue'; // Utils
|
3
3
|
|
4
4
|
import { createNamespace, numericProp } from '../utils'; // Components
|
@@ -71,7 +71,7 @@ export default defineComponent({
|
|
71
71
|
|
72
72
|
return () => {
|
73
73
|
if (props.show) {
|
74
|
-
return _createVNode(_Fragment, null, [_createVNode(Field,
|
74
|
+
return _createVNode(_Fragment, null, [_createVNode(Field, {
|
75
75
|
"autosize": true,
|
76
76
|
"clearable": true,
|
77
77
|
"ref": field,
|
@@ -85,10 +85,9 @@ export default defineComponent({
|
|
85
85
|
"placeholder": t('placeholder'),
|
86
86
|
"errorMessage": props.errorMessage,
|
87
87
|
"onBlur": onBlur,
|
88
|
-
"onFocus": onFocus
|
89
|
-
|
90
|
-
|
91
|
-
}), null), renderSearchResult()]);
|
88
|
+
"onFocus": onFocus,
|
89
|
+
"onUpdate:modelValue": onInput
|
90
|
+
}, null), renderSearchResult()]);
|
92
91
|
}
|
93
92
|
};
|
94
93
|
}
|
@@ -1 +1 @@
|
|
1
|
-
:root{--van-address-edit-padding:var(--van-padding-sm);--van-address-edit-buttons-padding:var(--van-padding-xl) var(--van-padding-base);--van-address-edit-button-margin-bottom:var(--van-padding-sm);--van-
|
1
|
+
:root{--van-address-edit-padding:var(--van-padding-sm);--van-address-edit-buttons-padding:var(--van-padding-xl) var(--van-padding-base);--van-address-edit-button-margin-bottom:var(--van-padding-sm);--van-address-edit-button-font-size:var(--van-font-size-lg)}.van-address-edit{padding:var(--van-address-edit-padding)}.van-address-edit__fields{overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__fields .van-field__label{width:4.1em}.van-address-edit__default{margin-top:var(--van-padding-sm);overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__buttons{padding:var(--van-address-edit-buttons-padding)}.van-address-edit__button{margin-bottom:var(--van-address-edit-button-margin-bottom);font-size:var(--van-address-edit-button-font-size)}.van-address-edit-detail__search-item{background:var(--van-gray-2)}.van-address-edit-detail__keyword{color:var(--van-danger-color)}
|
@@ -46,7 +46,7 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
46
46
|
type: import("vue").PropType<(val: string) => boolean>;
|
47
47
|
default: (value: string) => boolean;
|
48
48
|
};
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "change-default")[], "focus" | "select-search" | "save" | "delete" | "click-area" | "change-area" | "change-detail" | "change-default", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<{
|
50
50
|
areaList?: unknown;
|
51
51
|
isSaving?: unknown;
|
52
52
|
isDeleting?: unknown;
|
@@ -101,7 +101,6 @@ export declare const AddressEdit: import("../utils").WithInstall<import("vue").D
|
|
101
101
|
"onClick-area"?: ((...args: any[]) => any) | undefined;
|
102
102
|
"onChange-area"?: ((...args: any[]) => any) | undefined;
|
103
103
|
"onChange-detail"?: ((...args: any[]) => any) | undefined;
|
104
|
-
"onCancel-delete"?: ((...args: any[]) => any) | undefined;
|
105
104
|
"onChange-default"?: ((...args: any[]) => any) | undefined;
|
106
105
|
}, {
|
107
106
|
isSaving: boolean;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
--van-address-edit-padding: @address-edit-padding;
|
5
5
|
--van-address-edit-buttons-padding: @address-edit-buttons-padding;
|
6
6
|
--van-address-edit-button-margin-bottom: @address-edit-button-margin-bottom;
|
7
|
-
--van-
|
7
|
+
--van-address-edit-button-font-size: @address-edit-button-font-size;
|
8
8
|
}
|
9
9
|
|
10
10
|
.van-address-edit {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
&-detail {
|
38
38
|
&__search-item {
|
39
|
-
background
|
39
|
+
background: var(--van-gray-2);
|
40
40
|
}
|
41
41
|
|
42
42
|
&__keyword {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import '../../style/base.css';
|
2
|
-
import '../../action-bar/index.css';
|
3
2
|
import '../../badge/index.css';
|
4
3
|
import '../../icon/index.css';
|
5
4
|
import '../../cell/index.css';
|
@@ -8,9 +7,7 @@ import '../../loading/index.css';
|
|
8
7
|
import '../../switch/index.css';
|
9
8
|
import '../../picker/index.css';
|
10
9
|
import '../../button/index.css';
|
11
|
-
import '../../action-bar-button/index.css';
|
12
10
|
import '../../overlay/index.css';
|
13
11
|
import '../../popup/index.css';
|
14
|
-
import '../../dialog/index.css';
|
15
12
|
import '../../toast/index.css';
|
16
13
|
import '../index.css';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import '../../style/base.less';
|
2
|
-
import '../../action-bar/index.less';
|
3
2
|
import '../../badge/index.less';
|
4
3
|
import '../../icon/index.less';
|
5
4
|
import '../../cell/index.less';
|
@@ -8,9 +7,7 @@ import '../../loading/index.less';
|
|
8
7
|
import '../../switch/index.less';
|
9
8
|
import '../../picker/index.less';
|
10
9
|
import '../../button/index.less';
|
11
|
-
import '../../action-bar-button/index.less';
|
12
10
|
import '../../overlay/index.less';
|
13
11
|
import '../../popup/index.less';
|
14
|
-
import '../../dialog/index.less';
|
15
12
|
import '../../toast/index.less';
|
16
13
|
import '../index.less';
|
@@ -25,16 +25,12 @@ export default defineComponent({
|
|
25
25
|
emit
|
26
26
|
}) {
|
27
27
|
var renderItem = (item, index, disabled) => {
|
28
|
-
var onEdit = () =>
|
29
|
-
var name = disabled ? 'edit-disabled' : 'edit';
|
30
|
-
emit(name, item, index);
|
31
|
-
};
|
28
|
+
var onEdit = () => emit(disabled ? 'edit-disabled' : 'edit', item, index);
|
32
29
|
|
33
30
|
var onClick = () => emit('click-item', item, index);
|
34
31
|
|
35
32
|
var onSelect = () => {
|
36
|
-
|
37
|
-
emit(name, item, index);
|
33
|
+
emit(disabled ? 'select-disabled' : 'select', item, index);
|
38
34
|
|
39
35
|
if (!disabled) {
|
40
36
|
emit('update:modelValue', item.id);
|
package/es/badge/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-badge-size:16px;--van-badge-color:var(--van-white);--van-badge-padding:0 3px;--van-badge-font-size:var(--van-font-size-sm);--van-badge-font-weight:var(--van-font-weight-bold);--van-badge-border-width:var(--van-border-width-base);--van-badge-background-color:var(--van-danger-color);--van-badge-dot-color:var(--van-danger-color);--van-badge-dot-size:8px;--van-badge-font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif}.van-badge{display:inline-block;box-sizing:border-box;min-width:var(--van-badge-size);padding:var(--van-badge-padding);color:var(--van-badge-color);font-weight:var(--van-badge-font-weight);font-size:var(--van-badge-font-size);font-family:var(--van-badge-font-family);line-height:1.2;text-align:center;background
|
1
|
+
:root{--van-badge-size:16px;--van-badge-color:var(--van-white);--van-badge-padding:0 3px;--van-badge-font-size:var(--van-font-size-sm);--van-badge-font-weight:var(--van-font-weight-bold);--van-badge-border-width:var(--van-border-width-base);--van-badge-background-color:var(--van-danger-color);--van-badge-dot-color:var(--van-danger-color);--van-badge-dot-size:8px;--van-badge-font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif}.van-badge{display:inline-block;box-sizing:border-box;min-width:var(--van-badge-size);padding:var(--van-badge-padding);color:var(--van-badge-color);font-weight:var(--van-badge-font-weight);font-size:var(--van-badge-font-size);font-family:var(--van-badge-font-family);line-height:1.2;text-align:center;background:var(--van-badge-background-color);border:var(--van-badge-border-width) solid var(--van-white);border-radius:var(--van-border-radius-max)}.van-badge--fixed{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100%}.van-badge--dot{width:var(--van-badge-dot-size);min-width:0;height:var(--van-badge-dot-size);background:var(--van-badge-dot-color);border-radius:100%;border:none;padding:0}.van-badge__wrapper{position:relative;display:inline-block}
|
package/es/badge/index.less
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
font-family: var(--van-badge-font-family);
|
25
25
|
line-height: 1.2;
|
26
26
|
text-align: center;
|
27
|
-
background
|
27
|
+
background: var(--van-badge-background-color);
|
28
28
|
border: var(--van-badge-border-width) solid var(--van-white);
|
29
29
|
border-radius: var(--van-border-radius-max);
|
30
30
|
|
@@ -40,8 +40,10 @@
|
|
40
40
|
width: var(--van-badge-dot-size);
|
41
41
|
min-width: 0;
|
42
42
|
height: var(--van-badge-dot-size);
|
43
|
-
background
|
43
|
+
background: var(--van-badge-dot-color);
|
44
44
|
border-radius: 100%;
|
45
|
+
border: none;
|
46
|
+
padding: 0;
|
45
47
|
}
|
46
48
|
|
47
49
|
&__wrapper {
|
package/es/calendar/Calendar.js
CHANGED
@@ -400,18 +400,22 @@ export default defineComponent({
|
|
400
400
|
}
|
401
401
|
|
402
402
|
if (props.showConfirm) {
|
403
|
-
var
|
403
|
+
var slot = slots['confirm-text'];
|
404
|
+
var disabled = buttonDisabled.value;
|
405
|
+
var text = disabled ? props.confirmDisabledText : props.confirmText;
|
404
406
|
return _createVNode(Button, {
|
405
407
|
"round": true,
|
406
408
|
"block": true,
|
407
409
|
"type": "danger",
|
408
410
|
"color": props.color,
|
409
411
|
"class": bem('confirm'),
|
410
|
-
"disabled":
|
412
|
+
"disabled": disabled,
|
411
413
|
"nativeType": "button",
|
412
414
|
"onClick": onConfirm
|
413
415
|
}, {
|
414
|
-
default: () => [
|
416
|
+
default: () => [slot ? slot({
|
417
|
+
disabled
|
418
|
+
}) : text || t('confirm')]
|
415
419
|
});
|
416
420
|
}
|
417
421
|
};
|
@@ -450,7 +454,7 @@ export default defineComponent({
|
|
450
454
|
onMountedOrActivated(init);
|
451
455
|
return () => {
|
452
456
|
if (props.poppable) {
|
453
|
-
return _createVNode(Popup,
|
457
|
+
return _createVNode(Popup, {
|
454
458
|
"show": props.show,
|
455
459
|
"class": bem('popup'),
|
456
460
|
"round": props.round,
|
@@ -458,11 +462,10 @@ export default defineComponent({
|
|
458
462
|
"closeable": props.showTitle || props.showSubtitle,
|
459
463
|
"teleport": props.teleport,
|
460
464
|
"closeOnPopstate": props.closeOnPopstate,
|
461
|
-
"closeOnClickOverlay": props.closeOnClickOverlay
|
465
|
+
"closeOnClickOverlay": props.closeOnClickOverlay,
|
466
|
+
"onUpdate:show": updateShow
|
462
467
|
}, {
|
463
|
-
|
464
|
-
}), {
|
465
|
-
default: () => [renderCalendar()]
|
468
|
+
default: renderCalendar
|
466
469
|
});
|
467
470
|
}
|
468
471
|
|
package/es/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-calendar-background-color:var(--van-white);--van-calendar-popup-height:80%;--van-calendar-header-box-shadow:0 2px 10px rgba(125, 126, 128, 0.16);--van-calendar-header-title-height:44px;--van-calendar-header-title-font-size:var(--van-font-size-lg);--van-calendar-header-subtitle-font-size:var(--van-font-size-md);--van-calendar-weekdays-height:30px;--van-calendar-weekdays-font-size:var(--van-font-size-sm);--van-calendar-month-title-font-size:var(--van-font-size-md);--van-calendar-month-mark-color:rgba(242, 243, 245, 0.8);--van-calendar-month-mark-font-size:160px;--van-calendar-day-height:64px;--van-calendar-day-font-size:var(--van-font-size-lg);--van-calendar-range-edge-color:var(--van-white);--van-calendar-range-edge-background-color:var(--van-danger-color);--van-calendar-range-middle-color:var(--van-danger-color);--van-calendar-range-middle-background-opacity:0.1;--van-calendar-selected-day-size:54px;--van-calendar-selected-day-color:var(--van-white);--van-calendar-info-font-size:var(--van-font-size-xs);--van-calendar-info-line-height:var(--van-line-height-xs);--van-calendar-selected-day-background-color:var(--van-danger-color);--van-calendar-day-disabled-color:var(--van-gray-5);--van-calendar-confirm-button-height:36px;--van-calendar-confirm-button-margin:7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background
|
1
|
+
:root{--van-calendar-background-color:var(--van-white);--van-calendar-popup-height:80%;--van-calendar-header-box-shadow:0 2px 10px rgba(125, 126, 128, 0.16);--van-calendar-header-title-height:44px;--van-calendar-header-title-font-size:var(--van-font-size-lg);--van-calendar-header-subtitle-font-size:var(--van-font-size-md);--van-calendar-weekdays-height:30px;--van-calendar-weekdays-font-size:var(--van-font-size-sm);--van-calendar-month-title-font-size:var(--van-font-size-md);--van-calendar-month-mark-color:rgba(242, 243, 245, 0.8);--van-calendar-month-mark-font-size:160px;--van-calendar-day-height:64px;--van-calendar-day-font-size:var(--van-font-size-lg);--van-calendar-range-edge-color:var(--van-white);--van-calendar-range-edge-background-color:var(--van-danger-color);--van-calendar-range-middle-color:var(--van-danger-color);--van-calendar-range-middle-background-opacity:0.1;--van-calendar-selected-day-size:54px;--van-calendar-selected-day-color:var(--van-white);--van-calendar-info-font-size:var(--van-font-size-xs);--van-calendar-info-line-height:var(--van-line-height-xs);--van-calendar-selected-day-background-color:var(--van-danger-color);--van-calendar-day-disabled-color:var(--van-gray-5);--van-calendar-confirm-button-height:36px;--van-calendar-confirm-button-margin:7px 0}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background-color)}.van-calendar__popup.van-popup--bottom,.van-calendar__popup.van-popup--top{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:11px}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-box-shadow)}.van-calendar__header-subtitle,.van-calendar__header-title,.van-calendar__month-title{height:var(--van-calendar-header-title-height);font-weight:var(--van-font-weight-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);cursor:pointer}.van-calendar__day--end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected,.van-calendar__day--start,.van-calendar__day--start-end{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background-color)}.van-calendar__day--start{border-radius:var(--van-border-radius-md) 0 0 var(--van-border-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-border-radius-md) var(--van-border-radius-md) 0}.van-calendar__day--multiple-selected,.van-calendar__day--start-end{border-radius:var(--van-border-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle::after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:''}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__bottom-info,.van-calendar__top-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width:350px){.van-calendar__bottom-info,.van-calendar__top-info{font-size:9px}}.van-calendar__top-info{top:6px}.van-calendar__bottom-info{bottom:6px}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background-color);border-radius:var(--van-border-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}
|
package/es/calendar/index.less
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
display: flex;
|
33
33
|
flex-direction: column;
|
34
34
|
height: 100%;
|
35
|
-
background
|
35
|
+
background: var(--van-calendar-background-color);
|
36
36
|
|
37
37
|
&__popup {
|
38
38
|
&.van-popup--top,
|
@@ -132,7 +132,7 @@
|
|
132
132
|
&--multiple-middle,
|
133
133
|
&--multiple-selected {
|
134
134
|
color: var(--van-calendar-range-edge-color);
|
135
|
-
background
|
135
|
+
background: var(--van-calendar-range-edge-background-color);
|
136
136
|
}
|
137
137
|
|
138
138
|
&--start {
|
@@ -194,7 +194,7 @@
|
|
194
194
|
width: var(--van-calendar-selected-day-size);
|
195
195
|
height: var(--van-calendar-selected-day-size);
|
196
196
|
color: var(--van-calendar-selected-day-color);
|
197
|
-
background
|
197
|
+
background: var(--van-calendar-selected-day-background-color);
|
198
198
|
border-radius: var(--van-border-radius-md);
|
199
199
|
}
|
200
200
|
|
package/es/card/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-card-padding:var(--van-padding-xs) var(--van-padding-md);--van-card-font-size:var(--van-font-size-sm);--van-card-text-color:var(--van-text-color);--van-card-background-color:var(--van-background-color-light);--van-card-thumb-size:88px;--van-card-thumb-border-radius:var(--van-border-radius-lg);--van-card-title-line-height:16px;--van-card-desc-color:var(--van-gray-7);--van-card-desc-line-height:var(--van-line-height-md);--van-card-price-color:var(--van-gray-8);--van-card-origin-price-color:var(--van-gray-6);--van-card-num-color:var(--van-gray-6);--van-card-origin-price-font-size:var(--van-font-size-xs);--van-card-price-font-size:var(--van-font-size-sm);--van-card-price-integer-font-size:var(--van-font-size-lg);--van-card-price-font-family:var(--van-price-integer-font-family)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background
|
1
|
+
:root{--van-card-padding:var(--van-padding-xs) var(--van-padding-md);--van-card-font-size:var(--van-font-size-sm);--van-card-text-color:var(--van-text-color);--van-card-background-color:var(--van-background-color-light);--van-card-thumb-size:88px;--van-card-thumb-border-radius:var(--van-border-radius-lg);--van-card-title-line-height:16px;--van-card-desc-color:var(--van-gray-7);--van-card-desc-line-height:var(--van-line-height-md);--van-card-price-color:var(--van-gray-8);--van-card-origin-price-color:var(--van-gray-6);--van-card-num-color:var(--van-gray-6);--van-card-origin-price-font-size:var(--van-font-size-xs);--van-card-price-font-size:var(--van-font-size-sm);--van-card-price-integer-font-size:var(--van-font-size-lg);--van-card-price-font-family:var(--van-price-integer-font-family)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background-color)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-border-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__desc,.van-card__title{word-wrap:break-word}.van-card__title{max-height:32px;font-weight:var(--van-font-weight-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font-family)}.van-card__price-decimal{font-family:var(--van-card-price-font-family)}.van-card__origin-price{display:inline-block;margin-left:5px;color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:2px;left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:5px}
|
package/es/card/index.less
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
padding: var(--van-card-padding);
|
26
26
|
color: var(--van-card-text-color);
|
27
27
|
font-size: var(--van-card-font-size);
|
28
|
-
background
|
28
|
+
background: var(--van-card-background-color);
|
29
29
|
|
30
30
|
&:not(:first-child) {
|
31
31
|
margin-top: var(--van-padding-xs);
|