vant 2.12.48 → 2.12.50
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 -11
- package/README.zh-CN.md +9 -9
- package/changelog.generated.md +15 -0
- package/es/button/index.less +1 -1
- package/es/calendar/index.js +2 -2
- package/es/collapse-item/index.less +1 -1
- package/es/count-down/index.js +1 -1
- package/es/datetime-picker/DatePicker.js +1 -1
- package/es/datetime-picker/TimePicker.js +1 -1
- package/es/datetime-picker/shared.js +1 -1
- package/es/field/index.js +3 -3
- package/es/grid-item/index.less +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/vi-VN.js +18 -18
- package/es/mixins/touch.js +1 -1
- package/es/nav-bar/index.js +1 -1
- package/es/notice-bar/index.js +1 -1
- package/es/number-keyboard/Key.js +1 -1
- package/es/picker/index.js +2 -2
- package/es/sidebar-item/index.less +1 -1
- package/es/stepper/index.js +1 -1
- package/es/swipe/index.less +1 -1
- package/es/switch/index.less +1 -1
- package/es/switch-cell/index.js +1 -1
- package/es/tabbar/index.js +1 -1
- package/es/tabs/index.js +1 -1
- package/es/toast/index.less +1 -1
- package/es/uploader/index.js +1 -1
- package/es/utils/dom/scroll.js +1 -1
- package/es/utils/index.js +1 -1
- package/lib/button/index.less +1 -1
- package/lib/calendar/index.js +2 -2
- package/lib/collapse-item/index.less +1 -1
- package/lib/count-down/index.js +1 -1
- package/lib/datetime-picker/DatePicker.js +1 -1
- package/lib/datetime-picker/TimePicker.js +1 -1
- package/lib/datetime-picker/shared.js +1 -1
- package/lib/field/index.js +3 -3
- package/lib/grid-item/index.less +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/vi-VN.js +18 -18
- package/lib/mixins/touch.js +1 -1
- package/lib/nav-bar/index.js +1 -1
- package/lib/notice-bar/index.js +1 -1
- package/lib/number-keyboard/Key.js +1 -1
- package/lib/picker/index.js +2 -2
- package/lib/sidebar-item/index.less +1 -1
- package/lib/stepper/index.js +1 -1
- package/lib/swipe/index.less +1 -1
- package/lib/switch/index.less +1 -1
- package/lib/switch-cell/index.js +1 -1
- package/lib/tabbar/index.js +1 -1
- package/lib/tabs/index.js +1 -1
- package/lib/toast/index.less +1 -1
- package/lib/uploader/index.js +1 -1
- package/lib/utils/dom/scroll.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/vant.js +22 -22
- package/lib/vant.min.js +2 -2
- package/package.json +3 -3
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +336 -336
- package/vetur/tags.json +123 -123
- package/vetur/web-types.json +1056 -1056
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.50';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
package/lib/locale/lang/vi-VN.js
CHANGED
@@ -4,11 +4,11 @@ exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
5
5
|
var _default = {
|
6
6
|
name: 'Tên',
|
7
|
-
tel: '
|
8
|
-
save: '
|
9
|
-
confirm: '
|
7
|
+
tel: 'Điện thoại',
|
8
|
+
save: 'Đồng ý',
|
9
|
+
confirm: 'Xác nhận',
|
10
10
|
cancel: 'Hủy bỏ',
|
11
|
-
delete: '
|
11
|
+
delete: 'Xóa bỏ',
|
12
12
|
complete: 'Hoàn thành',
|
13
13
|
loading: 'Đang tải...',
|
14
14
|
telEmpty: 'Vui lòng điền số điện thoại',
|
@@ -17,12 +17,12 @@ var _default = {
|
|
17
17
|
confirmDelete: 'Bạn có chắc chắn muốn xóa',
|
18
18
|
telInvalid: 'Vui lòng nhập số điện thoại chính xác',
|
19
19
|
vanCalendar: {
|
20
|
-
end: '
|
20
|
+
end: 'Chấm dứt',
|
21
21
|
start: 'Bắt đầu',
|
22
|
-
title: '
|
22
|
+
title: 'Chọn ngày',
|
23
23
|
confirm: 'Đảm bảo',
|
24
|
-
startEnd: '
|
25
|
-
weekdays: ['Chủ
|
24
|
+
startEnd: 'Bắt đầu / Kết thúc',
|
25
|
+
weekdays: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'],
|
26
26
|
monthTitle: function monthTitle(year, month) {
|
27
27
|
return year + " n\u0103m " + month + " th\xE1ng";
|
28
28
|
},
|
@@ -40,15 +40,15 @@ var _default = {
|
|
40
40
|
addText: 'Địa chỉ liên lạc mới'
|
41
41
|
},
|
42
42
|
vanPagination: {
|
43
|
-
prev: '
|
44
|
-
next: '
|
43
|
+
prev: 'Trang trước',
|
44
|
+
next: 'Trang sau'
|
45
45
|
},
|
46
46
|
vanPullRefresh: {
|
47
47
|
pulling: 'Kéo xuống để làm mới...',
|
48
48
|
loosing: 'Phát hành để làm mới...'
|
49
49
|
},
|
50
50
|
vanSubmitBar: {
|
51
|
-
label: '
|
51
|
+
label: 'Toàn bộ:'
|
52
52
|
},
|
53
53
|
vanCoupon: {
|
54
54
|
unlimited: 'Không có ngưỡng sử dụng',
|
@@ -56,11 +56,11 @@ var _default = {
|
|
56
56
|
return _discount + " Chi\u1EBFt kh\u1EA5u";
|
57
57
|
},
|
58
58
|
condition: function condition(_condition) {
|
59
|
-
return "C\xF3 s\u1EB5n sau khi chi ti\xEAu " + _condition + "
|
59
|
+
return "C\xF3 s\u1EB5n sau khi chi ti\xEAu " + _condition + " Vi\u1EC7t Nam \u0110\u1ED3ng";
|
60
60
|
}
|
61
61
|
},
|
62
62
|
vanCouponCell: {
|
63
|
-
title: '
|
63
|
+
title: 'Phiếu giảm giá',
|
64
64
|
tips: 'Chưa có',
|
65
65
|
count: function count(_count) {
|
66
66
|
return _count + " trang t\xEDnh kh\u1EA3 d\u1EE5ng";
|
@@ -68,19 +68,19 @@ var _default = {
|
|
68
68
|
},
|
69
69
|
vanCouponList: {
|
70
70
|
empty: 'Chưa có phiếu giảm giá',
|
71
|
-
exchange: '
|
71
|
+
exchange: 'Trao đổi',
|
72
72
|
close: 'Không sử dụng phiếu giảm giá',
|
73
73
|
enable: 'Có sẵn',
|
74
74
|
disabled: 'không có sẵn',
|
75
75
|
placeholder: 'Vui lòng nhập mã khuyến mãi'
|
76
76
|
},
|
77
77
|
vanAddressEdit: {
|
78
|
-
area: '
|
79
|
-
postal: '
|
80
|
-
areaEmpty: '
|
78
|
+
area: 'Khu vực',
|
79
|
+
postal: 'Mã bưu điện',
|
80
|
+
areaEmpty: 'Vui lòng chọn khu vực',
|
81
81
|
addressEmpty: 'Vui lòng điền vào địa chỉ chi tiết',
|
82
82
|
postalEmpty: 'Định dạng mã zip không chính xác',
|
83
|
-
defaultAddress: '
|
83
|
+
defaultAddress: 'Đặt làm địa chỉ giao hàng mặc định',
|
84
84
|
telPlaceholder: 'Số điện thoại của người nhận hàng',
|
85
85
|
namePlaceholder: 'Tên người nhận hàng',
|
86
86
|
areaPlaceholder: 'Chọn Tỉnh / Thành phố / Quận / Huyện'
|
package/lib/mixins/touch.js
CHANGED
@@ -51,7 +51,7 @@ var TouchMixin = {
|
|
51
51
|
this.offsetY = 0;
|
52
52
|
},
|
53
53
|
// avoid Vue 2.6 event bubble issues by manually binding events
|
54
|
-
// https://github.com/
|
54
|
+
// https://github.com/vant-ui/vant/issues/3015
|
55
55
|
bindTouchEvent: function bindTouchEvent(el) {
|
56
56
|
var onTouchStart = this.onTouchStart,
|
57
57
|
onTouchMove = this.onTouchMove,
|
package/lib/nav-bar/index.js
CHANGED
@@ -45,7 +45,7 @@ var _default = createComponent({
|
|
45
45
|
_this.height = _this.$refs.navBar.getBoundingClientRect().height;
|
46
46
|
};
|
47
47
|
|
48
|
-
setHeight(); // https://github.com/
|
48
|
+
setHeight(); // https://github.com/vant-ui/vant/issues/10131
|
49
49
|
|
50
50
|
setTimeout(setHeight, 100);
|
51
51
|
}
|
package/lib/notice-bar/index.js
CHANGED
@@ -54,7 +54,7 @@ var _default = createComponent({
|
|
54
54
|
onTouchEnd: function onTouchEnd(event) {
|
55
55
|
if (this.active) {
|
56
56
|
// eliminate tap delay on safari
|
57
|
-
// see: https://github.com/
|
57
|
+
// see: https://github.com/vant-ui/vant/issues/6836
|
58
58
|
if (!this.slots('default')) {
|
59
59
|
event.preventDefault();
|
60
60
|
}
|
package/lib/picker/index.js
CHANGED
@@ -135,7 +135,7 @@ var _default2 = createComponent({
|
|
135
135
|
} else {
|
136
136
|
var values = this.getValues(); // compatible with old version of wrong parameters
|
137
137
|
// should be removed in next major version
|
138
|
-
// see: https://github.com/
|
138
|
+
// see: https://github.com/vant-ui/vant/issues/5905
|
139
139
|
|
140
140
|
if (this.dataType === 'cascade') {
|
141
141
|
values = values.map(function (item) {
|
@@ -174,7 +174,7 @@ var _default2 = createComponent({
|
|
174
174
|
} else {
|
175
175
|
var values = this.getValues(); // compatible with old version of wrong parameters
|
176
176
|
// should be removed in next major version
|
177
|
-
// see: https://github.com/
|
177
|
+
// see: https://github.com/vant-ui/vant/issues/5905
|
178
178
|
|
179
179
|
if (this.dataType === 'cascade') {
|
180
180
|
values = values.map(function (item) {
|
package/lib/stepper/index.js
CHANGED
@@ -270,7 +270,7 @@ var _default = createComponent({
|
|
270
270
|
},
|
271
271
|
onMousedown: function onMousedown(event) {
|
272
272
|
// fix mobile safari page scroll down issue
|
273
|
-
// see: https://github.com/
|
273
|
+
// see: https://github.com/vant-ui/vant/issues/7690
|
274
274
|
if (this.disableInput) {
|
275
275
|
event.preventDefault();
|
276
276
|
}
|
package/lib/swipe/index.less
CHANGED
package/lib/switch/index.less
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
left: 0;
|
20
20
|
width: @switch-node-size;
|
21
21
|
height: @switch-node-size;
|
22
|
-
// https://github.com/
|
22
|
+
// https://github.com/vant-ui/vant/issues/9839
|
23
23
|
font-size: inherit;
|
24
24
|
background-color: @switch-node-background-color;
|
25
25
|
border-radius: 100%;
|
package/lib/switch-cell/index.js
CHANGED
@@ -27,7 +27,7 @@ var _createNamespace = (0, _utils.createNamespace)('switch-cell'),
|
|
27
27
|
|
28
28
|
function SwitchCell(h, props, slots, ctx) {
|
29
29
|
if (process.env.NODE_ENV === 'development') {
|
30
|
-
console.warn('[Vant] "SwitchCell" component is deprecated, see: https://
|
30
|
+
console.warn('[Vant] "SwitchCell" component is deprecated, see: https://vant-ui.github.io/vant/v2/#/zh-CN/switch-cell.');
|
31
31
|
}
|
32
32
|
|
33
33
|
return h(_cell.default, (0, _babelHelperVueJsxMergeProps.default)([{
|
package/lib/tabbar/index.js
CHANGED
@@ -68,7 +68,7 @@ var _default = createComponent({
|
|
68
68
|
_this.height = _this.$refs.tabbar.getBoundingClientRect().height;
|
69
69
|
};
|
70
70
|
|
71
|
-
setHeight(); // https://github.com/
|
71
|
+
setHeight(); // https://github.com/vant-ui/vant/issues/10131
|
72
72
|
|
73
73
|
setTimeout(setHeight, 100);
|
74
74
|
}
|
package/lib/tabs/index.js
CHANGED
@@ -175,7 +175,7 @@ var _default2 = createComponent({
|
|
175
175
|
mounted: function mounted() {
|
176
176
|
var _this2 = this;
|
177
177
|
|
178
|
-
this.init(); // https://github.com/
|
178
|
+
this.init(); // https://github.com/vant-ui/vant/issues/7959
|
179
179
|
|
180
180
|
if (this.vanPopup) {
|
181
181
|
this.vanPopup.onReopen(function () {
|
package/lib/toast/index.less
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
// allow newline character
|
23
23
|
white-space: pre-wrap;
|
24
24
|
text-align: center;
|
25
|
-
// https://github.com/
|
25
|
+
// https://github.com/vant-ui/vant/issues/8959
|
26
26
|
word-break: break-all;
|
27
27
|
background-color: @toast-background-color;
|
28
28
|
border-radius: @toast-border-radius;
|
package/lib/uploader/index.js
CHANGED
@@ -290,7 +290,7 @@ var _default2 = createComponent({
|
|
290
290
|
return (0, _utils2.isImageFile)(item);
|
291
291
|
});
|
292
292
|
var imageContents = imageFiles.map(function (item) {
|
293
|
-
if (item.file && !item.url) {
|
293
|
+
if (item.file && !item.url && item.status !== 'failed') {
|
294
294
|
item.url = URL.createObjectURL(item.file);
|
295
295
|
|
296
296
|
_this5.urls.push(item.url);
|
package/lib/utils/dom/scroll.js
CHANGED
@@ -13,7 +13,7 @@ exports.getVisibleTop = getVisibleTop;
|
|
13
13
|
function isWindow(val) {
|
14
14
|
return val === window;
|
15
15
|
} // get nearest scroll element
|
16
|
-
// https://github.com/
|
16
|
+
// https://github.com/vant-ui/vant/issues/3823
|
17
17
|
|
18
18
|
|
19
19
|
var overflowScrollReg = /scroll|auto|overlay/i;
|
package/lib/utils/index.js
CHANGED
@@ -51,7 +51,7 @@ function get(object, path) {
|
|
51
51
|
keys.forEach(function (key) {
|
52
52
|
var _result$key;
|
53
53
|
|
54
|
-
result = (_result$key = result[key]) != null ? _result$key : '';
|
54
|
+
result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
|
55
55
|
});
|
56
56
|
return result;
|
57
57
|
}
|
package/lib/vant.js
CHANGED
@@ -135,7 +135,7 @@ function get(object, path) {
|
|
135
135
|
keys.forEach(function (key) {
|
136
136
|
var _result$key;
|
137
137
|
|
138
|
-
result = (_result$key = result[key]) != null ? _result$key : '';
|
138
|
+
result = isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
|
139
139
|
});
|
140
140
|
return result;
|
141
141
|
}
|
@@ -2024,7 +2024,7 @@ function removeOverlay(vm) {
|
|
2024
2024
|
function isWindow(val) {
|
2025
2025
|
return val === window;
|
2026
2026
|
} // get nearest scroll element
|
2027
|
-
// https://github.com/
|
2027
|
+
// https://github.com/vant-ui/vant/issues/3823
|
2028
2028
|
|
2029
2029
|
|
2030
2030
|
var overflowScrollReg = /scroll|auto|overlay/i;
|
@@ -2139,7 +2139,7 @@ var TouchMixin = {
|
|
2139
2139
|
this.offsetY = 0;
|
2140
2140
|
},
|
2141
2141
|
// avoid Vue 2.6 event bubble issues by manually binding events
|
2142
|
-
// https://github.com/
|
2142
|
+
// https://github.com/vant-ui/vant/issues/3015
|
2143
2143
|
bindTouchEvent: function bindTouchEvent(el) {
|
2144
2144
|
var onTouchStart = this.onTouchStart,
|
2145
2145
|
onTouchMove = this.onTouchMove,
|
@@ -3569,7 +3569,7 @@ var picker_createNamespace = Object(create["a" /* createNamespace */])('picker')
|
|
3569
3569
|
} else {
|
3570
3570
|
var values = this.getValues(); // compatible with old version of wrong parameters
|
3571
3571
|
// should be removed in next major version
|
3572
|
-
// see: https://github.com/
|
3572
|
+
// see: https://github.com/vant-ui/vant/issues/5905
|
3573
3573
|
|
3574
3574
|
if (this.dataType === 'cascade') {
|
3575
3575
|
values = values.map(function (item) {
|
@@ -3608,7 +3608,7 @@ var picker_createNamespace = Object(create["a" /* createNamespace */])('picker')
|
|
3608
3608
|
} else {
|
3609
3609
|
var values = this.getValues(); // compatible with old version of wrong parameters
|
3610
3610
|
// should be removed in next major version
|
3611
|
-
// see: https://github.com/
|
3611
|
+
// see: https://github.com/vant-ui/vant/issues/5905
|
3612
3612
|
|
3613
3613
|
if (this.dataType === 'cascade') {
|
3614
3614
|
values = values.map(function (item) {
|
@@ -4655,7 +4655,7 @@ var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
|
|
4655
4655
|
}
|
4656
4656
|
|
4657
4657
|
value = Object(utils["c" /* isDef */])(value) ? String(value) : ''; // native maxlength have incorrect line-break counting
|
4658
|
-
// see: https://github.com/
|
4658
|
+
// see: https://github.com/vant-ui/vant/issues/5033
|
4659
4659
|
|
4660
4660
|
var maxlength = this.maxlength;
|
4661
4661
|
|
@@ -4696,7 +4696,7 @@ var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
|
|
4696
4696
|
},
|
4697
4697
|
onFocus: function onFocus(event) {
|
4698
4698
|
this.focused = true;
|
4699
|
-
this.$emit('focus', event); // https://github.com/
|
4699
|
+
this.$emit('focus', event); // https://github.com/vant-ui/vant/issues/9715
|
4700
4700
|
|
4701
4701
|
this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari
|
4702
4702
|
|
@@ -4779,7 +4779,7 @@ var field_createNamespace = Object(create["a" /* createNamespace */])('field'),
|
|
4779
4779
|
}
|
4780
4780
|
|
4781
4781
|
if (height) {
|
4782
|
-
input.style.height = height + 'px'; // https://github.com/
|
4782
|
+
input.style.height = height + 'px'; // https://github.com/vant-ui/vant/issues/9178
|
4783
4783
|
|
4784
4784
|
setRootScrollTop(scrollTop);
|
4785
4785
|
}
|
@@ -8073,7 +8073,7 @@ var Header_createNamespace = Object(create["a" /* createNamespace */])('calendar
|
|
8073
8073
|
mounted: function mounted() {
|
8074
8074
|
var _this$vanPopup;
|
8075
8075
|
|
8076
|
-
this.init(); // https://github.com/
|
8076
|
+
this.init(); // https://github.com/vant-ui/vant/issues/9845
|
8077
8077
|
|
8078
8078
|
(_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
|
8079
8079
|
},
|
@@ -8101,7 +8101,7 @@ var Header_createNamespace = Object(create["a" /* createNamespace */])('calendar
|
|
8101
8101
|
|
8102
8102
|
this.$nextTick(function () {
|
8103
8103
|
// add Math.floor to avoid decimal height issues
|
8104
|
-
// https://github.com/
|
8104
|
+
// https://github.com/vant-ui/vant/issues/5640
|
8105
8105
|
_this.bodyHeight = Math.floor(_this.$refs.body.getBoundingClientRect().height);
|
8106
8106
|
|
8107
8107
|
_this.onScroll();
|
@@ -9474,7 +9474,7 @@ var tabs_createNamespace = Object(create["a" /* createNamespace */])('tabs'),
|
|
9474
9474
|
mounted: function mounted() {
|
9475
9475
|
var _this2 = this;
|
9476
9476
|
|
9477
|
-
this.init(); // https://github.com/
|
9477
|
+
this.init(); // https://github.com/vant-ui/vant/issues/7959
|
9478
9478
|
|
9479
9479
|
if (this.vanPopup) {
|
9480
9480
|
this.vanPopup.onReopen(function () {
|
@@ -11226,7 +11226,7 @@ var count_down_createNamespace = Object(create["a" /* createNamespace */])('coun
|
|
11226
11226
|
},
|
11227
11227
|
tick: function tick() {
|
11228
11228
|
// should not start counting in server
|
11229
|
-
// see: https://github.com/
|
11229
|
+
// see: https://github.com/vant-ui/vant/issues/7807
|
11230
11230
|
if (!utils["b" /* inBrowser */]) {
|
11231
11231
|
return;
|
11232
11232
|
}
|
@@ -11836,7 +11836,7 @@ var TimePickerMixin = {
|
|
11836
11836
|
getPicker: function getPicker() {
|
11837
11837
|
return this.$refs.picker;
|
11838
11838
|
},
|
11839
|
-
// https://github.com/
|
11839
|
+
// https://github.com/vant-ui/vant/issues/10013
|
11840
11840
|
getProxiedPicker: function getProxiedPicker() {
|
11841
11841
|
var _this4 = this;
|
11842
11842
|
|
@@ -12008,7 +12008,7 @@ var TimePicker_createNamespace = Object(create["a" /* createNamespace */])('time
|
|
12008
12008
|
this.updateInnerValue();
|
12009
12009
|
this.$nextTick(function () {
|
12010
12010
|
_this2.$nextTick(function () {
|
12011
|
-
// https://github.com/
|
12011
|
+
// https://github.com/vant-ui/vant/issues/9775
|
12012
12012
|
_this2.updateInnerValue();
|
12013
12013
|
|
12014
12014
|
_this2.$emit('change', picker);
|
@@ -12343,7 +12343,7 @@ var DatePicker_createNamespace = Object(create["a" /* createNamespace */])('date
|
|
12343
12343
|
this.updateInnerValue();
|
12344
12344
|
this.$nextTick(function () {
|
12345
12345
|
_this4.$nextTick(function () {
|
12346
|
-
// https://github.com/
|
12346
|
+
// https://github.com/vant-ui/vant/issues/9775
|
12347
12347
|
_this4.updateInnerValue();
|
12348
12348
|
|
12349
12349
|
_this4.$emit('change', picker);
|
@@ -15204,7 +15204,7 @@ var nav_bar_createNamespace = Object(create["a" /* createNamespace */])('nav-bar
|
|
15204
15204
|
_this.height = _this.$refs.navBar.getBoundingClientRect().height;
|
15205
15205
|
};
|
15206
15206
|
|
15207
|
-
setHeight(); // https://github.com/
|
15207
|
+
setHeight(); // https://github.com/vant-ui/vant/issues/10131
|
15208
15208
|
|
15209
15209
|
setTimeout(setHeight, 100);
|
15210
15210
|
}
|
@@ -15356,7 +15356,7 @@ var notice_bar_createNamespace = Object(create["a" /* createNamespace */])('noti
|
|
15356
15356
|
}
|
15357
15357
|
},
|
15358
15358
|
created: function created() {
|
15359
|
-
// https://github.com/
|
15359
|
+
// https://github.com/vant-ui/vant/issues/8634
|
15360
15360
|
if (this.vanPopup) {
|
15361
15361
|
this.vanPopup.onReopen(this.reset);
|
15362
15362
|
}
|
@@ -15742,7 +15742,7 @@ var Key_createNamespace = Object(create["a" /* createNamespace */])('key'),
|
|
15742
15742
|
onTouchEnd: function onTouchEnd(event) {
|
15743
15743
|
if (this.active) {
|
15744
15744
|
// eliminate tap delay on safari
|
15745
|
-
// see: https://github.com/
|
15745
|
+
// see: https://github.com/vant-ui/vant/issues/6836
|
15746
15746
|
if (!this.slots('default')) {
|
15747
15747
|
event.preventDefault();
|
15748
15748
|
}
|
@@ -19696,7 +19696,7 @@ function stepper_equal(value1, value2) {
|
|
19696
19696
|
},
|
19697
19697
|
onMousedown: function onMousedown(event) {
|
19698
19698
|
// fix mobile safari page scroll down issue
|
19699
|
-
// see: https://github.com/
|
19699
|
+
// see: https://github.com/vant-ui/vant/issues/7690
|
19700
19700
|
if (this.disableInput) {
|
19701
19701
|
event.preventDefault();
|
19702
19702
|
}
|
@@ -20318,7 +20318,7 @@ var uploader_createNamespace = Object(create["a" /* createNamespace */])('upload
|
|
20318
20318
|
return isImageFile(item);
|
20319
20319
|
});
|
20320
20320
|
var imageContents = imageFiles.map(function (item) {
|
20321
|
-
if (item.file && !item.url) {
|
20321
|
+
if (item.file && !item.url && item.status !== 'failed') {
|
20322
20322
|
item.url = URL.createObjectURL(item.file);
|
20323
20323
|
|
20324
20324
|
_this5.urls.push(item.url);
|
@@ -22766,7 +22766,7 @@ var tabbar_createNamespace = Object(create["a" /* createNamespace */])('tabbar')
|
|
22766
22766
|
_this.height = _this.$refs.tabbar.getBoundingClientRect().height;
|
22767
22767
|
};
|
22768
22768
|
|
22769
|
-
setHeight(); // https://github.com/
|
22769
|
+
setHeight(); // https://github.com/vant-ui/vant/issues/10131
|
22770
22770
|
|
22771
22771
|
setTimeout(setHeight, 100);
|
22772
22772
|
}
|
@@ -23174,7 +23174,7 @@ TreeSelect.props = {
|
|
23174
23174
|
|
23175
23175
|
|
23176
23176
|
|
23177
|
-
var version = '2.12.
|
23177
|
+
var version = '2.12.50';
|
23178
23178
|
|
23179
23179
|
function install(Vue) {
|
23180
23180
|
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];
|