vant 3.4.7 → 3.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -0
- package/changelog.generated.md +41 -43
- package/es/calendar/CalendarDay.js +4 -0
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.less +2 -0
- package/es/calendar/var.less +1 -0
- package/es/datetime-picker/DatePicker.js +1 -0
- package/es/dialog/index.css +1 -1
- package/es/empty/Empty.d.ts +8 -7
- package/es/empty/Empty.js +2 -2
- package/es/empty/index.d.ts +2 -2
- package/es/field/Field.d.ts +4 -0
- package/es/field/Field.js +2 -0
- package/es/field/index.d.ts +2 -0
- package/es/form/Form.js +1 -0
- package/es/form/types.d.ts +1 -0
- package/es/icon/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/da-DK.d.ts +64 -0
- package/es/locale/lang/da-DK.js +66 -0
- package/es/popup/index.css +1 -1
- package/es/rate/Rate.js +32 -10
- package/es/search/Search.d.ts +3 -0
- package/es/search/index.d.ts +2 -0
- package/es/share-sheet/ShareSheet.js +25 -11
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.less +45 -1
- package/es/slider/index.css +1 -1
- package/es/style/animation.css +1 -1
- package/es/style/base.css +1 -1
- package/es/swipe-cell/index.css +1 -1
- package/lib/action-bar/ActionBar.js +8 -13
- package/lib/action-bar/index.js +9 -16
- package/lib/action-bar-button/ActionBarButton.js +8 -13
- package/lib/action-bar-button/index.js +9 -16
- package/lib/action-bar-icon/ActionBarIcon.js +8 -13
- package/lib/action-bar-icon/index.js +9 -16
- package/lib/action-sheet/ActionSheet.js +8 -13
- package/lib/action-sheet/index.js +9 -16
- package/lib/address-edit/AddressEdit.js +9 -16
- package/lib/address-edit/AddressEditDetail.js +8 -13
- package/lib/address-edit/index.js +9 -16
- package/lib/address-edit/types.js +7 -12
- package/lib/address-list/AddressList.js +9 -16
- package/lib/address-list/AddressListItem.js +8 -13
- package/lib/address-list/index.js +9 -16
- package/lib/area/Area.js +8 -13
- package/lib/area/index.js +9 -16
- package/lib/area/types.js +7 -12
- package/lib/badge/Badge.js +8 -13
- package/lib/badge/index.js +9 -16
- package/lib/button/Button.js +8 -13
- package/lib/button/index.js +9 -16
- package/lib/button/types.js +7 -12
- package/lib/calendar/Calendar.js +9 -16
- package/lib/calendar/CalendarDay.js +12 -13
- package/lib/calendar/CalendarHeader.js +8 -13
- package/lib/calendar/CalendarMonth.js +9 -16
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.js +9 -16
- package/lib/calendar/index.less +2 -0
- package/lib/calendar/types.js +7 -12
- package/lib/calendar/utils.js +8 -13
- package/lib/calendar/var.less +1 -0
- package/lib/card/Card.js +8 -13
- package/lib/card/index.js +9 -16
- package/lib/cascader/Cascader.js +8 -13
- package/lib/cascader/index.js +9 -16
- package/lib/cascader/types.js +7 -12
- package/lib/cell/Cell.js +8 -13
- package/lib/cell/index.js +9 -16
- package/lib/cell-group/CellGroup.js +8 -13
- package/lib/cell-group/index.js +9 -16
- package/lib/checkbox/Checkbox.js +9 -16
- package/lib/checkbox/Checker.js +8 -13
- package/lib/checkbox/index.js +9 -16
- package/lib/checkbox/types.js +7 -12
- package/lib/checkbox-group/CheckboxGroup.js +8 -13
- package/lib/checkbox-group/index.js +9 -16
- package/lib/checkbox-group/types.js +7 -12
- package/lib/circle/Circle.js +8 -13
- package/lib/circle/index.js +9 -16
- package/lib/col/Col.js +8 -13
- package/lib/col/index.js +9 -16
- package/lib/collapse/Collapse.js +8 -13
- package/lib/collapse/index.js +9 -16
- package/lib/collapse-item/CollapseItem.js +8 -13
- package/lib/collapse-item/index.js +9 -16
- package/lib/collapse-item/types.js +7 -12
- package/lib/composables/on-popup-reopen.js +8 -13
- package/lib/composables/use-expose.js +8 -13
- package/lib/composables/use-height.js +8 -13
- package/lib/composables/use-id.js +8 -13
- package/lib/composables/use-lazy-render.js +8 -13
- package/lib/composables/use-lock-scroll.js +8 -13
- package/lib/composables/use-placeholder.js +8 -13
- package/lib/composables/use-refs.js +8 -13
- package/lib/composables/use-route.js +8 -13
- package/lib/composables/use-tab-status.js +8 -13
- package/lib/composables/use-touch.js +8 -13
- package/lib/composables/use-visibility-change.js +8 -13
- package/lib/config-provider/ConfigProvider.js +8 -13
- package/lib/config-provider/index.js +9 -16
- package/lib/contact-card/ContactCard.js +8 -13
- package/lib/contact-card/index.js +9 -16
- package/lib/contact-edit/ContactEdit.js +8 -13
- package/lib/contact-edit/index.js +9 -16
- package/lib/contact-list/ContactList.js +8 -13
- package/lib/contact-list/index.js +9 -16
- package/lib/count-down/CountDown.js +8 -13
- package/lib/count-down/index.js +9 -16
- package/lib/count-down/types.js +7 -12
- package/lib/count-down/utils.js +8 -13
- package/lib/coupon/Coupon.js +8 -13
- package/lib/coupon/index.js +9 -16
- package/lib/coupon/utils.js +8 -13
- package/lib/coupon-cell/CouponCell.js +8 -13
- package/lib/coupon-cell/index.js +9 -16
- package/lib/coupon-list/CouponList.js +8 -13
- package/lib/coupon-list/index.js +9 -16
- package/lib/datetime-picker/DatePicker.js +9 -13
- package/lib/datetime-picker/DatetimePicker.js +9 -16
- package/lib/datetime-picker/TimePicker.js +8 -13
- package/lib/datetime-picker/index.js +9 -16
- package/lib/datetime-picker/types.js +7 -12
- package/lib/datetime-picker/utils.js +8 -13
- package/lib/dialog/Dialog.js +8 -13
- package/lib/dialog/function-call.js +9 -16
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +8 -13
- package/lib/dialog/types.js +7 -12
- package/lib/divider/Divider.js +8 -13
- package/lib/divider/index.js +9 -16
- package/lib/dropdown-item/DropdownItem.js +8 -13
- package/lib/dropdown-item/index.js +9 -16
- package/lib/dropdown-item/types.js +7 -12
- package/lib/dropdown-menu/DropdownMenu.js +8 -13
- package/lib/dropdown-menu/index.js +9 -16
- package/lib/dropdown-menu/types.js +7 -12
- package/lib/empty/Empty.d.ts +8 -7
- package/lib/empty/Empty.js +9 -14
- package/lib/empty/Network.js +8 -13
- package/lib/empty/index.d.ts +2 -2
- package/lib/empty/index.js +9 -16
- package/lib/field/Field.d.ts +4 -0
- package/lib/field/Field.js +10 -13
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +9 -16
- package/lib/field/types.js +7 -12
- package/lib/field/utils.js +8 -13
- package/lib/form/Form.js +9 -13
- package/lib/form/index.js +9 -16
- package/lib/form/types.d.ts +1 -0
- package/lib/form/types.js +7 -12
- package/lib/grid/Grid.js +8 -13
- package/lib/grid/index.js +9 -16
- package/lib/grid-item/GridItem.js +8 -13
- package/lib/grid-item/index.js +9 -16
- package/lib/icon/Icon.js +8 -13
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +9 -16
- package/lib/image/Image.js +8 -13
- package/lib/image/index.js +9 -16
- package/lib/image-preview/ImagePreview.js +9 -16
- package/lib/image-preview/ImagePreviewItem.js +8 -13
- package/lib/image-preview/function-call.js +9 -16
- package/lib/image-preview/index.js +8 -13
- package/lib/image-preview/types.js +7 -12
- package/lib/index-anchor/IndexAnchor.js +8 -13
- package/lib/index-anchor/index.js +9 -16
- package/lib/index-bar/IndexBar.js +8 -13
- package/lib/index-bar/index.js +9 -16
- package/lib/index-bar/types.js +7 -12
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +96 -100
- package/lib/lazyload/index.js +8 -13
- package/lib/lazyload/vue-lazyload/index.js +9 -16
- package/lib/lazyload/vue-lazyload/lazy-component.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-container.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy-image.js +8 -13
- package/lib/lazyload/vue-lazyload/lazy.js +9 -16
- package/lib/lazyload/vue-lazyload/listener.js +8 -13
- package/lib/lazyload/vue-lazyload/util.js +8 -13
- package/lib/list/List.js +8 -13
- package/lib/list/index.js +9 -16
- package/lib/list/types.js +7 -12
- package/lib/loading/Loading.js +8 -13
- package/lib/loading/index.js +9 -16
- package/lib/locale/index.js +9 -16
- package/lib/locale/lang/bn-BD.js +8 -13
- package/lib/locale/lang/da-DK.d.ts +64 -0
- package/lib/locale/lang/da-DK.js +85 -0
- package/lib/locale/lang/de-DE-formal.js +8 -13
- package/lib/locale/lang/de-DE.js +8 -13
- package/lib/locale/lang/en-US.js +8 -13
- package/lib/locale/lang/es-ES.js +8 -13
- package/lib/locale/lang/fr-FR.js +8 -13
- package/lib/locale/lang/hi-IN.js +8 -13
- package/lib/locale/lang/id-ID.js +8 -13
- package/lib/locale/lang/is-IS.js +8 -13
- package/lib/locale/lang/it-IT.js +8 -13
- package/lib/locale/lang/ja-JP.js +8 -13
- package/lib/locale/lang/ko-KR.js +8 -13
- package/lib/locale/lang/la-LA.js +8 -13
- package/lib/locale/lang/nb-NO.js +8 -13
- package/lib/locale/lang/pt-BR.js +8 -13
- package/lib/locale/lang/ro-RO.js +8 -13
- package/lib/locale/lang/ru-RU.js +8 -13
- package/lib/locale/lang/sv-SE.js +8 -13
- package/lib/locale/lang/th-TH.js +8 -13
- package/lib/locale/lang/tr-TR.js +8 -13
- package/lib/locale/lang/uk-UA.js +8 -13
- package/lib/locale/lang/vi-VN.js +8 -13
- package/lib/locale/lang/zh-CN.js +8 -13
- package/lib/locale/lang/zh-HK.js +8 -13
- package/lib/locale/lang/zh-TW.js +8 -13
- package/lib/nav-bar/NavBar.js +8 -13
- package/lib/nav-bar/index.js +9 -16
- package/lib/notice-bar/NoticeBar.js +8 -13
- package/lib/notice-bar/index.js +9 -16
- package/lib/notice-bar/types.js +7 -12
- package/lib/notify/Notify.js +8 -13
- package/lib/notify/function-call.js +9 -16
- package/lib/notify/index.js +8 -13
- package/lib/notify/types.js +7 -12
- package/lib/number-keyboard/NumberKeyboard.js +9 -16
- package/lib/number-keyboard/NumberKeyboardKey.js +8 -13
- package/lib/number-keyboard/index.js +9 -16
- package/lib/overlay/Overlay.js +8 -13
- package/lib/overlay/index.js +9 -16
- package/lib/pagination/Pagination.js +8 -13
- package/lib/pagination/index.js +9 -16
- package/lib/password-input/PasswordInput.js +8 -13
- package/lib/password-input/index.js +9 -16
- package/lib/picker/Picker.js +9 -16
- package/lib/picker/PickerColumn.js +8 -13
- package/lib/picker/index.js +9 -16
- package/lib/picker/types.js +7 -12
- package/lib/popover/Popover.js +8 -13
- package/lib/popover/index.js +9 -16
- package/lib/popover/types.js +7 -12
- package/lib/popup/Popup.js +8 -13
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +9 -16
- package/lib/popup/shared.js +8 -13
- package/lib/popup/types.js +7 -12
- package/lib/progress/Progress.js +8 -13
- package/lib/progress/index.js +9 -16
- package/lib/progress/types.js +7 -12
- package/lib/pull-refresh/PullRefresh.js +8 -13
- package/lib/pull-refresh/index.js +9 -16
- package/lib/radio/Radio.js +9 -16
- package/lib/radio/index.js +9 -16
- package/lib/radio-group/RadioGroup.js +8 -13
- package/lib/radio-group/index.js +9 -16
- package/lib/rate/Rate.js +39 -22
- package/lib/rate/index.js +9 -16
- package/lib/row/Row.js +8 -13
- package/lib/row/index.js +9 -16
- package/lib/search/Search.d.ts +3 -0
- package/lib/search/Search.js +8 -13
- package/lib/search/index.d.ts +2 -0
- package/lib/search/index.js +9 -16
- package/lib/search/types.js +7 -12
- package/lib/share-sheet/ShareSheet.js +33 -24
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +9 -16
- package/lib/share-sheet/index.less +45 -1
- package/lib/sidebar/Sidebar.js +8 -13
- package/lib/sidebar/index.js +9 -16
- package/lib/sidebar-item/SidebarItem.js +8 -13
- package/lib/sidebar-item/index.js +9 -16
- package/lib/skeleton/Skeleton.js +8 -13
- package/lib/skeleton/index.js +9 -16
- package/lib/slider/Slider.js +8 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.js +9 -16
- package/lib/step/Step.js +8 -13
- package/lib/step/index.js +9 -16
- package/lib/stepper/Stepper.js +8 -13
- package/lib/stepper/index.js +9 -16
- package/lib/steps/Steps.js +8 -13
- package/lib/steps/index.js +9 -16
- package/lib/sticky/Sticky.js +8 -13
- package/lib/sticky/index.js +9 -16
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/submit-bar/SubmitBar.js +8 -13
- package/lib/submit-bar/index.js +9 -16
- package/lib/swipe/Swipe.js +8 -13
- package/lib/swipe/index.js +9 -16
- package/lib/swipe/types.js +7 -12
- package/lib/swipe-cell/SwipeCell.js +8 -13
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.js +9 -16
- package/lib/swipe-cell/types.js +7 -12
- package/lib/swipe-item/SwipeItem.js +8 -13
- package/lib/swipe-item/index.js +9 -16
- package/lib/switch/Switch.js +8 -13
- package/lib/switch/index.js +9 -16
- package/lib/tab/Tab.js +8 -13
- package/lib/tab/index.js +9 -16
- package/lib/tabbar/Tabbar.js +8 -13
- package/lib/tabbar/index.js +9 -16
- package/lib/tabbar-item/TabbarItem.js +8 -13
- package/lib/tabbar-item/index.js +9 -16
- package/lib/tabs/Tabs.js +9 -16
- package/lib/tabs/TabsContent.js +8 -13
- package/lib/tabs/TabsTitle.js +8 -13
- package/lib/tabs/index.js +9 -16
- package/lib/tabs/types.js +7 -12
- package/lib/tabs/utils.js +8 -13
- package/lib/tag/Tag.js +8 -13
- package/lib/tag/index.js +9 -16
- package/lib/toast/Toast.js +8 -13
- package/lib/toast/function-call.js +9 -16
- package/lib/toast/index.js +8 -13
- package/lib/toast/lock-click.js +8 -13
- package/lib/toast/types.js +7 -12
- package/lib/tree-select/TreeSelect.js +8 -13
- package/lib/tree-select/index.js +9 -16
- package/lib/uploader/Uploader.js +9 -16
- package/lib/uploader/UploaderPreviewItem.js +8 -13
- package/lib/uploader/index.js +9 -16
- package/lib/uploader/types.js +7 -12
- package/lib/uploader/utils.js +8 -13
- package/lib/utils/basic.js +8 -13
- package/lib/utils/constant.js +8 -13
- package/lib/utils/create.js +9 -16
- package/lib/utils/deep-assign.js +8 -13
- package/lib/utils/deep-clone.js +8 -13
- package/lib/utils/dom.js +8 -13
- package/lib/utils/format.js +8 -13
- package/lib/utils/index.js +17 -21
- package/lib/utils/interceptor.js +8 -13
- package/lib/utils/mount-component.js +8 -13
- package/lib/utils/props.js +8 -13
- package/lib/utils/validate.js +8 -13
- package/lib/utils/with-install.js +8 -13
- package/lib/vant.cjs.js +65 -22
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +65 -22
- package/lib/vant.es.min.js +65 -22
- package/lib/vant.js +65 -22
- package/lib/vant.min.js +1 -1
- package/package.json +3 -3
- package/vetur/attributes.json +693 -760
- package/vetur/tags.json +216 -214
- package/vetur/web-types.json +3829 -2976
package/README.md
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img alt="logo" src="https://cdn.jsdelivr.net/npm/@vant/assets/logo.png" width="120" height="120" style="margin-bottom: 10px;">
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<h1 align="center">Vant</h1>
|
6
|
+
|
7
|
+
<p align="center">Mobile UI Components built on Vue</p>
|
8
|
+
|
9
|
+
<p align="center">
|
10
|
+
<img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
|
11
|
+
<img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=flat-square" alt="CI Status" />
|
12
|
+
<img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
13
|
+
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
14
|
+
<img src="https://img.shields.io/jsdelivr/npm/hm/vant?style=flat-square" alt="Jsdelivr Hits">
|
15
|
+
<img src="https://img.badgesize.io/https://unpkg.com/vant@3/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
16
|
+
</p>
|
17
|
+
|
18
|
+
<p align="center">
|
19
|
+
🔥 <a href="https://vant-contrib.gitee.io/vant">文档网站(国内)</a>
|
20
|
+
|
21
|
+
🌈 <a href="https://youzan.github.io/vant">文档网站(GitHub)</a>
|
22
|
+
|
23
|
+
🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
|
24
|
+
</p>
|
25
|
+
|
26
|
+
---
|
27
|
+
|
28
|
+
## Features
|
29
|
+
|
30
|
+
- 🚀 1KB Component average size (min+gzip)
|
31
|
+
- 🚀 70+ High quality components
|
32
|
+
- 💪 90%+ Unit test coverage
|
33
|
+
- 💪 Written in TypeScript
|
34
|
+
- 📖 Extensive documentation and demos
|
35
|
+
- 📖 Provide Sketch and Axure design resources
|
36
|
+
- 🍭 Support Vue 2 & Vue 3
|
37
|
+
- 🍭 Support Tree Shaking
|
38
|
+
- 🍭 Support Custom Theme
|
39
|
+
- 🍭 Support Accessibility (still improving)
|
40
|
+
- 🍭 Support Dark Mode (Requires upgrade to [Vant 4](https://vant-contrib.gitee.io/vant/v4/#/en-US/config-provider))
|
41
|
+
- 🍭 Support SSR
|
42
|
+
- 🌍 Support i18n, built-in 20+ languages
|
43
|
+
|
44
|
+
## Install
|
45
|
+
|
46
|
+
Using `npm` to install:
|
47
|
+
|
48
|
+
```bash
|
49
|
+
# install latest Vant for Vue 3 project
|
50
|
+
npm i vant
|
51
|
+
|
52
|
+
# install Vant 2 for Vue 2 project
|
53
|
+
npm i vant@latest-v2
|
54
|
+
```
|
55
|
+
|
56
|
+
Using `yarn` or `pnpm`:
|
57
|
+
|
58
|
+
```bash
|
59
|
+
# with yarn
|
60
|
+
yarn add vant
|
61
|
+
|
62
|
+
# with pnpm
|
63
|
+
pnpm add vant
|
64
|
+
```
|
65
|
+
|
66
|
+
## Quickstart
|
67
|
+
|
68
|
+
```js
|
69
|
+
import { createApp } from 'vue';
|
70
|
+
import { Button } from 'vant';
|
71
|
+
import 'vant/lib/index.css';
|
72
|
+
|
73
|
+
const app = createApp();
|
74
|
+
app.use(Button);
|
75
|
+
```
|
76
|
+
|
77
|
+
See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart).
|
78
|
+
|
79
|
+
## Browser Support
|
80
|
+
|
81
|
+
Vant 2 supports modern browsers and Android >= 4.0、iOS >= 8.0.
|
82
|
+
|
83
|
+
Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3).
|
84
|
+
|
85
|
+
## Official Ecosystem
|
86
|
+
|
87
|
+
| Project | Description |
|
88
|
+
| --- | --- |
|
89
|
+
| [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI |
|
90
|
+
| [vant-demo](https://github.com/youzan/vant-demo) | Collection of Vant demos |
|
91
|
+
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
|
92
|
+
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
|
93
|
+
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |
|
94
|
+
|
95
|
+
## Community Ecosystem
|
96
|
+
|
97
|
+
| Project | Description |
|
98
|
+
| --- | --- |
|
99
|
+
| [3lang3/react-vant](https://github.com/3lang3/react-vant) | React mobile UI Components based on Vant |
|
100
|
+
| [rc-ui-lib](https://github.com/rancui/rc-ui-lib) | React mobile UI Components based on Vant |
|
101
|
+
| [vant-aliapp](https://github.com/ant-move/Vant-Aliapp) | Alipay MiniProgram UI |
|
102
|
+
| [taroify](https://gitee.com/mallfoundry/taroify) | Vant Taro |
|
103
|
+
| [vant-theme](https://github.com/Aisen60/vant-theme) | Online theme preview built on Vant UI |
|
104
|
+
| [@antmjs/vantui](https://github.com/antmjs/vantui) | Mobile UI Components based on Vant, supporting Taro and React |
|
105
|
+
| [sfc-playground-vant](https://github.com/zhixiaoqiang/sfc-playground-vant) | Try Vant in the Playground. Currently only Vant 3+ is supported |
|
106
|
+
|
107
|
+
## Links
|
108
|
+
|
109
|
+
- [Documentation](https://youzan.github.io/vant)
|
110
|
+
- [Changelog](https://youzan.github.io/vant#/en-US/changelog)
|
111
|
+
- [Gitter](https://gitter.im/vant-contrib/discuss?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
|
112
|
+
|
113
|
+
## Preview
|
114
|
+
|
115
|
+
You can scan the following QR code to access the demo:
|
116
|
+
|
117
|
+
<img src="https://cdn.jsdelivr.net/npm/@vant/assets/preview-qrcode.png" width="220" height="220" >
|
118
|
+
|
119
|
+
## Core Team
|
120
|
+
|
121
|
+
Core contributors of Vant and Vant Weapp:
|
122
|
+
|
123
|
+
| [](https://github.com/chenjiahan/) | [](https://github.com/cookfront/) | [](https://github.com/w91/) | [](https://github.com/pangxie1991/) | [](https://github.com/rex-zsd/) | [](https://github.com/nemo-shen/) | [](https://github.com/Lindysen/) | [](https://github.com/JakeLaoyu/) |
|
124
|
+
| :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
|
125
|
+
| [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) | [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) |
|
126
|
+
|
127
|
+
## All Contributors
|
128
|
+
|
129
|
+
Thanks to the following friends for their contributions to Vant:
|
130
|
+
|
131
|
+
<a href="https://github.com/youzan/vant/graphs/contributors">
|
132
|
+
<img src="https://opencollective.com/vant/contributors.svg?width=890&button=false" alt="contributors">
|
133
|
+
</a>
|
134
|
+
|
135
|
+
## Contribution Guide
|
136
|
+
|
137
|
+
Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.
|
138
|
+
|
139
|
+
## LICENSE
|
140
|
+
|
141
|
+
[MIT](https://en.wikipedia.org/wiki/MIT_License)
|
package/changelog.generated.md
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
### [v3.4.8](https://github.com/youzan/vant/compare/v3.4.7...v3.4.8)
|
2
|
+
|
3
|
+
`2022-04-16`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- datetime-picker: modeValue is inconsistent with the selected data. [#10448](https://github.com/youzan/vant/issues/10448)
|
8
|
+
- Rate: support precisely selected [#10500](https://github.com/youzan/vant/issues/10500)
|
9
|
+
|
10
|
+
**doc**
|
11
|
+
|
12
|
+
- update readme add sfc-playground-vant to Community Ecosystem [#10475](https://github.com/youzan/vant/issues/10475)
|
13
|
+
|
14
|
+
**Document**
|
15
|
+
|
16
|
+
- @vant/cli: changelog v4.0.1 [#10473](https://github.com/youzan/vant/issues/10473)
|
17
|
+
- @vant/icons: changelog v1.8.0 [#10472](https://github.com/youzan/vant/issues/10472)
|
18
|
+
- Badge: add show-zero tip [#10506](https://github.com/youzan/vant/issues/10506)
|
19
|
+
- changelog: 3.4.7 [99876c](https://github.com/youzan/vant/commit/99876cfb7c203b5a37fcef1220eeee55d02772cd)
|
20
|
+
- ContactCard: fix missing editable prop [#10507](https://github.com/youzan/vant/issues/10507)
|
21
|
+
- fix ContactCard return error [#10460](https://github.com/youzan/vant/issues/10460)
|
22
|
+
- fix Lazyload register multilple times [#10456](https://github.com/youzan/vant/issues/10456)
|
23
|
+
- Icons: update contribution guide [#10471](https://github.com/youzan/vant/issues/10471)
|
24
|
+
- List: add en FAQ [#10508](https://github.com/youzan/vant/issues/10508)
|
25
|
+
|
26
|
+
**Feature**
|
27
|
+
|
28
|
+
- CalendarDay: add default margin-bottom [#10441](https://github.com/youzan/vant/issues/10441)
|
29
|
+
- Empty: support set the image size separately [#10465](https://github.com/youzan/vant/issues/10465)
|
30
|
+
- Field: add enterkeyhint prop [#10478](https://github.com/youzan/vant/issues/10478)
|
31
|
+
- Form: add getValues method [#10511](https://github.com/youzan/vant/issues/10511)
|
32
|
+
- Icon: add some icons for ShareSheet [#10468](https://github.com/youzan/vant/issues/10468)
|
33
|
+
- Locale: add Danish lang [#10513](https://github.com/youzan/vant/issues/10513)
|
34
|
+
- ShareSheet: no longer rely on CDN images [#10469](https://github.com/youzan/vant/issues/10469)
|
35
|
+
- VantMarkdownVetur: support arguments of events [#10474](https://github.com/youzan/vant/issues/10474)
|
36
|
+
|
37
|
+
**release**
|
38
|
+
|
39
|
+
- @vant/icons 1.8.0 [e461ab](https://github.com/youzan/vant/commit/e461abaafaea45ee6ba5eb06145618867a3ff7cf)
|
40
|
+
- @vant/markdown-vetur v2.3.0 [#10480](https://github.com/youzan/vant/issues/10480)
|
1
41
|
### [v3.4.7](https://github.com/youzan/vant/compare/v3.4.6...v3.4.7)
|
2
42
|
|
3
43
|
`2022-03-29`
|
@@ -36,46 +76,4 @@
|
|
36
76
|
**release**
|
37
77
|
|
38
78
|
- @vant/area-data 1.2.3 [029c93](https://github.com/youzan/vant/commit/029c93a4669ff3ee4d88615adb000668535f46d0)
|
39
|
-
|
40
|
-
|
41
|
-
`2022-03-13`
|
42
|
-
|
43
|
-
**Bug Fixes**
|
44
|
-
|
45
|
-
- 🐛 修复官网更新日志的版本链接及 issue 链接异常的问题 [#10329](https://github.com/youzan/vant/issues/10329)
|
46
|
-
- cli: issue link in generated changelog [#10337](https://github.com/youzan/vant/issues/10337)
|
47
|
-
- Skeleton: fix non-props attributes warning [#10384](https://github.com/youzan/vant/issues/10384)
|
48
|
-
- SwipeCell: cell should stopPropagation when lockClick is true [#10319](https://github.com/youzan/vant/issues/10319)
|
49
|
-
- Toast: failed to render message after changing type [#10311](https://github.com/youzan/vant/issues/10311)
|
50
|
-
- vant-cli: decamelize ReDoS [#10351](https://github.com/youzan/vant/issues/10351)
|
51
|
-
|
52
|
-
**Document**
|
53
|
-
|
54
|
-
- @vant/use: changelog 1.3.6 [f95239](https://github.com/youzan/vant/commit/f95239006cf23665593c8316258f4cec4237f29a)
|
55
|
-
- add mirror repo description [#10382](https://github.com/youzan/vant/issues/10382)
|
56
|
-
- add Vant 4 link [#10340](https://github.com/youzan/vant/issues/10340)
|
57
|
-
- Calendar: add formatter async usage [#10385](https://github.com/youzan/vant/issues/10385)
|
58
|
-
- changelog: 3.4.5 [0a50e7](https://github.com/youzan/vant/commit/0a50e721aa399b2540474d979e185795790b7a56)
|
59
|
-
- changelog: fix link mistake [#10328](https://github.com/youzan/vant/issues/10328)
|
60
|
-
- Field: add v-model type guide [#10383](https://github.com/youzan/vant/issues/10383)
|
61
|
-
- modify JSX.ELement to JSX.Element [#10344](https://github.com/youzan/vant/issues/10344)
|
62
|
-
- update react-vant address [#10305](https://github.com/youzan/vant/issues/10305)
|
63
|
-
- update vite-plugin-style-import version [#10303](https://github.com/youzan/vant/issues/10303)
|
64
|
-
|
65
|
-
- Update contribution.zh-CN.md (#10314) [#10314](https://github.com/youzan/vant/issues/10314)
|
66
|
-
|
67
|
-
**Feature**
|
68
|
-
|
69
|
-
- add van-safe-area-top class [#10356](https://github.com/youzan/vant/issues/10356)
|
70
|
-
- Calendar: add safe-area-inset-top prop [#10358](https://github.com/youzan/vant/issues/10358)
|
71
|
-
- Popup: add safe-area-inset-top prop [#10357](https://github.com/youzan/vant/issues/10357)
|
72
|
-
|
73
|
-
**release**
|
74
|
-
|
75
|
-
- @vant/cli 4.0.1 [202efb](https://github.com/youzan/vant/commit/202efbbf85ec94f7d804075d1ecbfb71c6824cb4)
|
76
|
-
- @vant/use 1.3.6 [1040af](https://github.com/youzan/vant/commit/1040afdda6e6f8bb98ea36cbc9212b65ecb8c49b)
|
77
|
-
- 3.4.6 [1cfa46](https://github.com/youzan/vant/commit/1cfa46e9219b2d0dac04e3657395c306df90a87a)
|
78
|
-
|
79
|
-
**Types**
|
80
|
-
|
81
|
-
- fix missing VisibilityState after typescript 4.6.0 [#10370](https://github.com/youzan/vant/issues/10370)
|
79
|
+
- 3.4.7 [048330](https://github.com/youzan/vant/commit/0483305eddd424a3a0343566461d35d659947646)
|
@@ -18,6 +18,7 @@ var stdin_default = defineComponent({
|
|
18
18
|
slots
|
19
19
|
}) {
|
20
20
|
const style = computed(() => {
|
21
|
+
var _a;
|
21
22
|
const {
|
22
23
|
item,
|
23
24
|
index,
|
@@ -49,6 +50,9 @@ var stdin_default = defineComponent({
|
|
49
50
|
break;
|
50
51
|
}
|
51
52
|
}
|
53
|
+
if (offset + (((_a = item.date) == null ? void 0 : _a.getDate()) || 1) > 28) {
|
54
|
+
style2.marginBottom = 0;
|
55
|
+
}
|
52
56
|
return style2;
|
53
57
|
});
|
54
58
|
const onClick = () => {
|
package/es/calendar/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-calendar-background-color: var(--van-background-color-light);--van-calendar-popup-height: 80%;--van-calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, .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, .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: .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-text-color-3);--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--top,.van-calendar__popup.van-popup--bottom{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__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{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--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{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--start-end,.van-calendar__day--multiple-selected{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__top-info,.van-calendar__bottom-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__top-info,.van-calendar__bottom-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)}
|
1
|
+
:root{--van-calendar-background-color: var(--van-background-color-light);--van-calendar-popup-height: 80%;--van-calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, .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, .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-day-margin-bottom: 4px;--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: .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-text-color-3);--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--top,.van-calendar__popup.van-popup--bottom{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__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{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);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{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--start-end,.van-calendar__day--multiple-selected{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__top-info,.van-calendar__bottom-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__top-info,.van-calendar__bottom-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
@@ -14,6 +14,7 @@
|
|
14
14
|
--van-calendar-month-mark-font-size: @calendar-month-mark-font-size;
|
15
15
|
--van-calendar-day-height: @calendar-day-height;
|
16
16
|
--van-calendar-day-font-size: @calendar-day-font-size;
|
17
|
+
--van-calendar-day-margin-bottom: @calendar-day-margin-bottom;
|
17
18
|
--van-calendar-range-edge-color: @calendar-range-edge-color;
|
18
19
|
--van-calendar-range-edge-background-color: @calendar-range-edge-background-color;
|
19
20
|
--van-calendar-range-middle-color: @calendar-range-middle-color;
|
@@ -124,6 +125,7 @@
|
|
124
125
|
width: 14.285%;
|
125
126
|
height: var(--van-calendar-day-height);
|
126
127
|
font-size: var(--van-calendar-day-font-size);
|
128
|
+
margin-bottom: var(--van-calendar-day-margin-bottom);
|
127
129
|
cursor: pointer;
|
128
130
|
|
129
131
|
&--end,
|
package/es/calendar/var.less
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
@calendar-month-mark-font-size: 160px;
|
14
14
|
@calendar-day-height: 64px;
|
15
15
|
@calendar-day-font-size: var(--van-font-size-lg);
|
16
|
+
@calendar-day-margin-bottom: 4px;
|
16
17
|
@calendar-range-edge-color: var(--van-white);
|
17
18
|
@calendar-range-edge-background-color: var(--van-danger-color);
|
18
19
|
@calendar-range-middle-color: var(--van-danger-color);
|
package/es/dialog/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-animation-duration-base);--van-dialog-border-radius: 16px;--van-dialog-background-color: var(--van-background-color-light);--van-dialog-header-font-weight: var(--van-font-weight-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-danger-color)}.van-dialog{top:45%;left:50%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background-color);border-radius:var(--van-dialog-border-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:
|
1
|
+
:root{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-animation-duration-base);--van-dialog-border-radius: 16px;--van-dialog-background-color: var(--van-background-color-light);--van-dialog-header-font-weight: var(--van-font-weight-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-danger-color)}.van-dialog{top:45%;left:50%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background-color);border-radius:var(--van-dialog-border-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
|
package/es/empty/Empty.d.ts
CHANGED
@@ -1,26 +1,27 @@
|
|
1
|
-
import { type ExtractPropTypes } from 'vue';
|
1
|
+
import { PropType, type ExtractPropTypes } from 'vue';
|
2
|
+
import { Numeric } from '../utils';
|
2
3
|
declare const emptyProps: {
|
3
4
|
image: {
|
4
|
-
type:
|
5
|
+
type: PropType<string>;
|
5
6
|
default: string;
|
6
7
|
};
|
7
|
-
imageSize:
|
8
|
+
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
8
9
|
description: StringConstructor;
|
9
10
|
};
|
10
11
|
export declare type EmptyProps = ExtractPropTypes<typeof emptyProps>;
|
11
12
|
declare const _default: import("vue").DefineComponent<{
|
12
13
|
image: {
|
13
|
-
type:
|
14
|
+
type: PropType<string>;
|
14
15
|
default: string;
|
15
16
|
};
|
16
|
-
imageSize:
|
17
|
+
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
17
18
|
description: StringConstructor;
|
18
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
19
20
|
image: {
|
20
|
-
type:
|
21
|
+
type: PropType<string>;
|
21
22
|
default: string;
|
22
23
|
};
|
23
|
-
imageSize:
|
24
|
+
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
24
25
|
description: StringConstructor;
|
25
26
|
}>>, {
|
26
27
|
image: string;
|
package/es/empty/Empty.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
|
-
import {
|
3
|
+
import { getSizeStyle, makeStringProp, createNamespace } from "../utils";
|
4
4
|
import { Network } from "./Network";
|
5
5
|
const [name, bem] = createNamespace("empty");
|
6
6
|
const PRESET_IMAGES = ["error", "search", "default"];
|
7
7
|
const emptyProps = {
|
8
8
|
image: makeStringProp("default"),
|
9
|
-
imageSize:
|
9
|
+
imageSize: [Number, String, Array],
|
10
10
|
description: String
|
11
11
|
};
|
12
12
|
var stdin_default = defineComponent({
|
package/es/empty/index.d.ts
CHANGED
@@ -3,14 +3,14 @@ export declare const Empty: import("../utils").WithInstall<import("vue").DefineC
|
|
3
3
|
type: import("vue").PropType<string>;
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
-
imageSize: (
|
6
|
+
imageSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
7
7
|
description: StringConstructor;
|
8
8
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
9
9
|
image: {
|
10
10
|
type: import("vue").PropType<string>;
|
11
11
|
default: string;
|
12
12
|
};
|
13
|
-
imageSize: (
|
13
|
+
imageSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
14
14
|
description: StringConstructor;
|
15
15
|
}>>, {
|
16
16
|
image: string;
|
package/es/field/Field.d.ts
CHANGED
@@ -21,6 +21,7 @@ export declare const fieldSharedProps: {
|
|
21
21
|
placeholder: StringConstructor;
|
22
22
|
autocomplete: StringConstructor;
|
23
23
|
errorMessage: StringConstructor;
|
24
|
+
enterkeyhint: StringConstructor;
|
24
25
|
clearTrigger: {
|
25
26
|
type: PropType<FieldClearTrigger>;
|
26
27
|
default: FieldClearTrigger;
|
@@ -86,6 +87,7 @@ declare const fieldProps: {
|
|
86
87
|
placeholder: StringConstructor;
|
87
88
|
autocomplete: StringConstructor;
|
88
89
|
errorMessage: StringConstructor;
|
90
|
+
enterkeyhint: StringConstructor;
|
89
91
|
clearTrigger: {
|
90
92
|
type: PropType<FieldClearTrigger>;
|
91
93
|
default: FieldClearTrigger;
|
@@ -169,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
169
171
|
placeholder: StringConstructor;
|
170
172
|
autocomplete: StringConstructor;
|
171
173
|
errorMessage: StringConstructor;
|
174
|
+
enterkeyhint: StringConstructor;
|
172
175
|
clearTrigger: {
|
173
176
|
type: PropType<FieldClearTrigger>;
|
174
177
|
default: FieldClearTrigger;
|
@@ -250,6 +253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
250
253
|
placeholder: StringConstructor;
|
251
254
|
autocomplete: StringConstructor;
|
252
255
|
errorMessage: StringConstructor;
|
256
|
+
enterkeyhint: StringConstructor;
|
253
257
|
clearTrigger: {
|
254
258
|
type: PropType<FieldClearTrigger>;
|
255
259
|
default: FieldClearTrigger;
|
package/es/field/Field.js
CHANGED
@@ -24,6 +24,7 @@ const fieldSharedProps = {
|
|
24
24
|
placeholder: String,
|
25
25
|
autocomplete: String,
|
26
26
|
errorMessage: String,
|
27
|
+
enterkeyhint: String,
|
27
28
|
clearTrigger: makeStringProp("focus"),
|
28
29
|
formatTrigger: makeStringProp("onChange"),
|
29
30
|
error: {
|
@@ -293,6 +294,7 @@ var stdin_default = defineComponent({
|
|
293
294
|
autofocus: props.autofocus,
|
294
295
|
placeholder: props.placeholder,
|
295
296
|
autocomplete: props.autocomplete,
|
297
|
+
enterkeyhint: props.enterkeyhint,
|
296
298
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
297
299
|
onBlur,
|
298
300
|
onFocus,
|
package/es/field/index.d.ts
CHANGED
@@ -43,6 +43,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
43
43
|
placeholder: StringConstructor;
|
44
44
|
autocomplete: StringConstructor;
|
45
45
|
errorMessage: StringConstructor;
|
46
|
+
enterkeyhint: StringConstructor;
|
46
47
|
clearTrigger: {
|
47
48
|
type: import("vue").PropType<import("./types").FieldClearTrigger>;
|
48
49
|
default: import("./types").FieldClearTrigger;
|
@@ -124,6 +125,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
124
125
|
placeholder: StringConstructor;
|
125
126
|
autocomplete: StringConstructor;
|
126
127
|
errorMessage: StringConstructor;
|
128
|
+
enterkeyhint: StringConstructor;
|
127
129
|
clearTrigger: {
|
128
130
|
type: import("vue").PropType<import("./types").FieldClearTrigger>;
|
129
131
|
default: import("./types").FieldClearTrigger;
|
package/es/form/Form.js
CHANGED
package/es/form/types.d.ts
CHANGED
@@ -3,6 +3,7 @@ import type { FormProps } from './Form';
|
|
3
3
|
export declare type FormExpose = {
|
4
4
|
submit: () => void;
|
5
5
|
validate: (name?: string | string[] | undefined) => Promise<void>;
|
6
|
+
getValues: () => Record<string, unknown>;
|
6
7
|
scrollToField: (name: string, options?: boolean | ScrollIntoViewOptions | undefined) => void;
|
7
8
|
resetValidation: (name?: string | string[] | undefined) => void;
|
8
9
|
};
|