vant 2.12.53 → 2.13.0
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/icon/index.css +1 -1
- package/es/icon/local.css +1 -0
- package/es/icon/local.less +1 -1
- package/es/index.js +1 -1
- package/es/picker/PickerColumn.js +3 -4
- package/es/popover/index.js +14 -2
- package/es/search/index.css +1 -1
- package/es/search/index.less +1 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/local.css +1 -0
- package/lib/icon/local.less +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/picker/PickerColumn.js +3 -4
- package/lib/popover/index.js +13 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.less +1 -1
- package/lib/vant.js +17 -6
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +364 -364
- package/vetur/tags.json +123 -123
- package/vetur/web-types.json +949 -949
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.
|
364
|
+
var version = '2.13.0';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
@@ -203,12 +203,11 @@ var _default2 = createComponent({
|
|
203
203
|
|
204
204
|
if (this.startOffset === 0 && deltaY < 0) {
|
205
205
|
return;
|
206
|
-
} //
|
207
|
-
// if necessary, can adjust distance value to make scrolling smoother
|
206
|
+
} // Calculate the offset based on itemHeight
|
208
207
|
|
209
208
|
|
210
|
-
var
|
211
|
-
this.offset = (0, _number.range)(this.startOffset +
|
209
|
+
var itemOffset = this.itemHeight * (deltaY > 0 ? -1 : 1);
|
210
|
+
this.offset = (0, _number.range)(this.startOffset + itemOffset, -(this.count * this.itemHeight), this.itemHeight);
|
212
211
|
|
213
212
|
if (mousewheelTimer) {
|
214
213
|
clearTimeout(mousewheelTimer);
|
package/lib/popover/index.js
CHANGED
@@ -72,13 +72,18 @@ var _default2 = createComponent({
|
|
72
72
|
},
|
73
73
|
beforeDestroy: function beforeDestroy() {
|
74
74
|
if (this.popper) {
|
75
|
+
if (!_utils.isServer) {
|
76
|
+
window.removeEventListener('animationend', this.updateLocation);
|
77
|
+
window.removeEventListener('transitionend', this.updateLocation);
|
78
|
+
}
|
79
|
+
|
75
80
|
this.popper.destroy();
|
76
81
|
this.popper = null;
|
77
82
|
}
|
78
83
|
},
|
79
84
|
methods: {
|
80
85
|
createPopper: function createPopper() {
|
81
|
-
|
86
|
+
var popper = (0, _popperjs.createPopper)(this.$refs.wrapper, this.$refs.popover.$el, {
|
82
87
|
placement: this.placement,
|
83
88
|
modifiers: [{
|
84
89
|
name: 'computeStyles',
|
@@ -92,6 +97,13 @@ var _default2 = createComponent({
|
|
92
97
|
}
|
93
98
|
})]
|
94
99
|
});
|
100
|
+
|
101
|
+
if (!_utils.isServer) {
|
102
|
+
window.addEventListener('animationend', this.updateLocation);
|
103
|
+
window.addEventListener('transitionend', this.updateLocation);
|
104
|
+
}
|
105
|
+
|
106
|
+
return popper;
|
95
107
|
},
|
96
108
|
updateLocation: function updateLocation() {
|
97
109
|
var _this = this;
|
package/lib/search/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.van-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;background-color:#fff}.van-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:12px;background-color:#f7f8fa;border-radius:2px}.van-search__content--round{border-radius:999px}.van-search__label{padding:0 5px;color:#323233;font-size:14px;line-height:34px}.van-search .van-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:5px 8px 5px 0;background-color:transparent}.van-search .van-
|
1
|
+
.van-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;background-color:#fff}.van-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-left:12px;background-color:#f7f8fa;border-radius:2px}.van-search__content--round{border-radius:999px}.van-search__label{padding:0 5px;color:#323233;font-size:14px;line-height:34px}.van-search .van-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:5px 8px 5px 0;background-color:transparent}.van-search .van-cell .van-field__left-icon{color:#969799}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:0 8px;color:#323233;font-size:14px;line-height:34px;cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:#f2f3f5}
|
package/lib/search/index.less
CHANGED
package/lib/vant.js
CHANGED
@@ -3286,12 +3286,11 @@ var mousewheelTimer = null;
|
|
3286
3286
|
|
3287
3287
|
if (this.startOffset === 0 && deltaY < 0) {
|
3288
3288
|
return;
|
3289
|
-
} //
|
3290
|
-
// if necessary, can adjust distance value to make scrolling smoother
|
3289
|
+
} // Calculate the offset based on itemHeight
|
3291
3290
|
|
3292
3291
|
|
3293
|
-
var
|
3294
|
-
this.offset = range(this.startOffset +
|
3292
|
+
var itemOffset = this.itemHeight * (deltaY > 0 ? -1 : 1);
|
3293
|
+
this.offset = range(this.startOffset + itemOffset, -(this.count * this.itemHeight), this.itemHeight);
|
3295
3294
|
|
3296
3295
|
if (mousewheelTimer) {
|
3297
3296
|
clearTimeout(mousewheelTimer);
|
@@ -17553,13 +17552,18 @@ var popover_createNamespace = Object(create["a" /* createNamespace */])('popover
|
|
17553
17552
|
},
|
17554
17553
|
beforeDestroy: function beforeDestroy() {
|
17555
17554
|
if (this.popper) {
|
17555
|
+
if (!utils["h" /* isServer */]) {
|
17556
|
+
window.removeEventListener('animationend', this.updateLocation);
|
17557
|
+
window.removeEventListener('transitionend', this.updateLocation);
|
17558
|
+
}
|
17559
|
+
|
17556
17560
|
this.popper.destroy();
|
17557
17561
|
this.popper = null;
|
17558
17562
|
}
|
17559
17563
|
},
|
17560
17564
|
methods: {
|
17561
17565
|
createPopper: function createPopper() {
|
17562
|
-
|
17566
|
+
var popper = esm_createPopper(this.$refs.wrapper, this.$refs.popover.$el, {
|
17563
17567
|
placement: this.placement,
|
17564
17568
|
modifiers: [{
|
17565
17569
|
name: 'computeStyles',
|
@@ -17573,6 +17577,13 @@ var popover_createNamespace = Object(create["a" /* createNamespace */])('popover
|
|
17573
17577
|
}
|
17574
17578
|
})]
|
17575
17579
|
});
|
17580
|
+
|
17581
|
+
if (!utils["h" /* isServer */]) {
|
17582
|
+
window.addEventListener('animationend', this.updateLocation);
|
17583
|
+
window.addEventListener('transitionend', this.updateLocation);
|
17584
|
+
}
|
17585
|
+
|
17586
|
+
return popper;
|
17576
17587
|
},
|
17577
17588
|
updateLocation: function updateLocation() {
|
17578
17589
|
var _this = this;
|
@@ -23193,7 +23204,7 @@ TreeSelect.props = {
|
|
23193
23204
|
|
23194
23205
|
|
23195
23206
|
|
23196
|
-
var version = '2.
|
23207
|
+
var version = '2.13.0';
|
23197
23208
|
|
23198
23209
|
function install(Vue) {
|
23199
23210
|
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, es_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];
|