vant 2.12.30 → 2.12.31
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 +11 -10
- package/README.zh-CN.md +11 -10
- package/es/field/index.js +4 -1
- package/es/index.js +1 -1
- package/es/progress/index.js +5 -0
- package/lib/field/index.js +4 -1
- package/lib/index.js +1 -1
- package/lib/progress/index.js +6 -0
- package/lib/vant.js +10 -2
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +45 -45
- package/vetur/tags.json +19 -19
- package/vetur/web-types.json +166 -166
- package/changelog.generated.md +0 -3
package/README.md
CHANGED
@@ -29,16 +29,17 @@
|
|
29
29
|
|
30
30
|
## Features
|
31
31
|
|
32
|
-
-
|
33
|
-
-
|
34
|
-
- 90%+ Unit test coverage
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
- Support
|
39
|
-
- Support
|
40
|
-
- Support
|
41
|
-
- Support
|
32
|
+
- 🚀 1KB Component average size (min+gzip)
|
33
|
+
- 🚀 65+ High quality components
|
34
|
+
- 💪 90%+ Unit test coverage
|
35
|
+
- 💪 Written in TypeScript
|
36
|
+
- 📖 Extensive documentation and demos
|
37
|
+
- 📖 Provide Sketch and Axure design resources
|
38
|
+
- 🍭 Support Vue 2 & Vue 3
|
39
|
+
- 🍭 Support Tree Shaking
|
40
|
+
- 🍭 Support Custom Theme
|
41
|
+
- 🍭 Support i18n
|
42
|
+
- 🌍 Support SSR
|
42
43
|
|
43
44
|
## Install
|
44
45
|
|
package/README.zh-CN.md
CHANGED
@@ -32,16 +32,17 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源
|
|
32
32
|
|
33
33
|
## 特性
|
34
34
|
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
-
|
43
|
-
-
|
44
|
-
-
|
35
|
+
- 🚀 性能极佳,组件平均体积小于 1KB(min+gzip)
|
36
|
+
- 🚀 65+ 个高质量组件,覆盖移动端主流场景
|
37
|
+
- 💪 使用 TypeScript 编写,提供完整的类型定义
|
38
|
+
- 💪 单元测试覆盖率超过 90%,提供稳定性保障
|
39
|
+
- 📖 提供完善的中英文文档和组件示例
|
40
|
+
- 📖 提供 Sketch 和 Axure 设计资源
|
41
|
+
- 🍭 支持 Vue 2、Vue 3 和微信小程序
|
42
|
+
- 🍭 支持主题定制,内置 700+ 个主题变量
|
43
|
+
- 🍭 支持按需引入和 Tree Shaking
|
44
|
+
- 🍭 支持服务器端渲染
|
45
|
+
- 🌍 支持国际化和语言包定制
|
45
46
|
|
46
47
|
## 安装
|
47
48
|
|
package/es/field/index.js
CHANGED
@@ -333,7 +333,9 @@ export default createComponent({
|
|
333
333
|
},
|
334
334
|
onFocus: function onFocus(event) {
|
335
335
|
this.focused = true;
|
336
|
-
this.$emit('focus', event); //
|
336
|
+
this.$emit('focus', event); // https://github.com/youzan/vant/issues/9715
|
337
|
+
|
338
|
+
this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari
|
337
339
|
|
338
340
|
/* istanbul ignore if */
|
339
341
|
|
@@ -348,6 +350,7 @@ export default createComponent({
|
|
348
350
|
this.updateValue(this.value, 'onBlur');
|
349
351
|
this.$emit('blur', event);
|
350
352
|
this.validateWithTrigger('onBlur');
|
353
|
+
this.$nextTick(this.adjustSize);
|
351
354
|
resetScroll();
|
352
355
|
},
|
353
356
|
onClick: function onClick(event) {
|
package/es/index.js
CHANGED
@@ -87,7 +87,7 @@ import Tag from './tag';
|
|
87
87
|
import Toast from './toast';
|
88
88
|
import TreeSelect from './tree-select';
|
89
89
|
import Uploader from './uploader';
|
90
|
-
var version = '2.12.
|
90
|
+
var version = '2.12.31';
|
91
91
|
|
92
92
|
function install(Vue) {
|
93
93
|
var components = [ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Sku, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
|
package/es/progress/index.js
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
import { createNamespace, addUnit } from '../utils';
|
2
|
+
import { BindEventMixin } from '../mixins/bind-event';
|
2
3
|
|
3
4
|
var _createNamespace = createNamespace('progress'),
|
4
5
|
createComponent = _createNamespace[0],
|
5
6
|
bem = _createNamespace[1];
|
6
7
|
|
7
8
|
export default createComponent({
|
9
|
+
mixins: [BindEventMixin(function (bind) {
|
10
|
+
bind(window, 'resize', this.resize, true);
|
11
|
+
bind(window, 'orientationchange', this.resize, true);
|
12
|
+
})],
|
8
13
|
props: {
|
9
14
|
color: String,
|
10
15
|
inactive: Boolean,
|
package/lib/field/index.js
CHANGED
@@ -348,7 +348,9 @@ var _default = createComponent({
|
|
348
348
|
},
|
349
349
|
onFocus: function onFocus(event) {
|
350
350
|
this.focused = true;
|
351
|
-
this.$emit('focus', event); //
|
351
|
+
this.$emit('focus', event); // https://github.com/youzan/vant/issues/9715
|
352
|
+
|
353
|
+
this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari
|
352
354
|
|
353
355
|
/* istanbul ignore if */
|
354
356
|
|
@@ -363,6 +365,7 @@ var _default = createComponent({
|
|
363
365
|
this.updateValue(this.value, 'onBlur');
|
364
366
|
this.$emit('blur', event);
|
365
367
|
this.validateWithTrigger('onBlur');
|
368
|
+
this.$nextTick(this.adjustSize);
|
366
369
|
(0, _resetScroll.resetScroll)();
|
367
370
|
},
|
368
371
|
onClick: function onClick(event) {
|
package/lib/index.js
CHANGED
@@ -361,7 +361,7 @@ exports.TreeSelect = _treeSelect.default;
|
|
361
361
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
362
362
|
|
363
363
|
exports.Uploader = _uploader.default;
|
364
|
-
var version = '2.12.
|
364
|
+
var version = '2.12.31';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
package/lib/progress/index.js
CHANGED
@@ -5,11 +5,17 @@ exports.default = void 0;
|
|
5
5
|
|
6
6
|
var _utils = require("../utils");
|
7
7
|
|
8
|
+
var _bindEvent = require("../mixins/bind-event");
|
9
|
+
|
8
10
|
var _createNamespace = (0, _utils.createNamespace)('progress'),
|
9
11
|
createComponent = _createNamespace[0],
|
10
12
|
bem = _createNamespace[1];
|
11
13
|
|
12
14
|
var _default = createComponent({
|
15
|
+
mixins: [(0, _bindEvent.BindEventMixin)(function (bind) {
|
16
|
+
bind(window, 'resize', this.resize, true);
|
17
|
+
bind(window, 'orientationchange', this.resize, true);
|
18
|
+
})],
|
13
19
|
props: {
|
14
20
|
color: String,
|
15
21
|
inactive: Boolean,
|
package/lib/vant.js
CHANGED
@@ -3745,7 +3745,9 @@ var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
|
|
3745
3745
|
},
|
3746
3746
|
onFocus: function onFocus(event) {
|
3747
3747
|
this.focused = true;
|
3748
|
-
this.$emit('focus', event); //
|
3748
|
+
this.$emit('focus', event); // https://github.com/youzan/vant/issues/9715
|
3749
|
+
|
3750
|
+
this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari
|
3749
3751
|
|
3750
3752
|
/* istanbul ignore if */
|
3751
3753
|
|
@@ -3760,6 +3762,7 @@ var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
|
|
3760
3762
|
this.updateValue(this.value, 'onBlur');
|
3761
3763
|
this.$emit('blur', event);
|
3762
3764
|
this.validateWithTrigger('onBlur');
|
3765
|
+
this.$nextTick(this.adjustSize);
|
3763
3766
|
resetScroll();
|
3764
3767
|
},
|
3765
3768
|
onClick: function onClick(event) {
|
@@ -16651,11 +16654,16 @@ var popover_createNamespace = Object(create["a" /* createNamespace */])('popover
|
|
16651
16654
|
// CONCATENATED MODULE: ./es/progress/index.js
|
16652
16655
|
|
16653
16656
|
|
16657
|
+
|
16654
16658
|
var progress_createNamespace = Object(create["a" /* createNamespace */])('progress'),
|
16655
16659
|
progress_createComponent = progress_createNamespace[0],
|
16656
16660
|
progress_bem = progress_createNamespace[1];
|
16657
16661
|
|
16658
16662
|
/* harmony default export */ var es_progress = (progress_createComponent({
|
16663
|
+
mixins: [BindEventMixin(function (bind) {
|
16664
|
+
bind(window, 'resize', this.resize, true);
|
16665
|
+
bind(window, 'orientationchange', this.resize, true);
|
16666
|
+
})],
|
16659
16667
|
props: {
|
16660
16668
|
color: String,
|
16661
16669
|
inactive: Boolean,
|
@@ -22048,7 +22056,7 @@ TreeSelect.props = {
|
|
22048
22056
|
|
22049
22057
|
|
22050
22058
|
|
22051
|
-
var version = '2.12.
|
22059
|
+
var version = '2.12.31';
|
22052
22060
|
|
22053
22061
|
function install(Vue) {
|
22054
22062
|
var components = [action_sheet, address_edit, address_list, es_area, badge, es_button, calendar, card, cascader, cell, cell_group, es_checkbox, checkbox_group, circle, col, collapse, collapse_item, contact_card, contact_edit, contact_list, count_down, es_coupon, coupon_cell, coupon_list, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, es_form, goods_action, goods_action_button, goods_action_icon, grid, grid_item, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, es_list, es_loading, locale["a" /* default */], nav_bar, notice_bar, notify, number_keyboard, es_overlay, pagination, panel, password_input, picker, popover, popup, es_progress, pull_refresh, es_radio, radio_group, es_rate, row, search, share_sheet, sidebar, sidebar_item, skeleton, es_sku, slider, es_step, stepper, steps, es_sticky, submit_bar, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, tabs, es_tag, es_toast, tree_select, uploader];
|