vant 2.12.46 → 2.12.49
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 +17 -5
- 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/dialog/Dialog.js +4 -2
- 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 +91 -0
- 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/step/index.js +26 -13
- package/es/stepper/index.js +1 -1
- package/es/steps/index.js +1 -0
- 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/utils/dom/scroll.js +2 -2
- 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/dialog/Dialog.js +4 -2
- 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 +96 -0
- 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/step/index.js +26 -13
- package/lib/stepper/index.js +1 -1
- package/lib/steps/index.js +1 -0
- 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/utils/dom/scroll.js +2 -2
- package/lib/utils/index.js +1 -1
- package/lib/vant.js +999 -86
- package/lib/vant.min.js +2 -2
- package/package.json +3 -3
- package/vetur/attributes.json +328 -412
- package/vetur/tags.json +105 -171
- package/vetur/web-types.json +1068 -1182
package/lib/calendar/index.js
CHANGED
@@ -171,7 +171,7 @@ var _default2 = (0, _utils.createComponent)({
|
|
171
171
|
mounted: function mounted() {
|
172
172
|
var _this$vanPopup;
|
173
173
|
|
174
|
-
this.init(); // https://github.com/
|
174
|
+
this.init(); // https://github.com/vant-ui/vant/issues/9845
|
175
175
|
|
176
176
|
(_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
|
177
177
|
},
|
@@ -199,7 +199,7 @@ var _default2 = (0, _utils.createComponent)({
|
|
199
199
|
|
200
200
|
this.$nextTick(function () {
|
201
201
|
// add Math.floor to avoid decimal height issues
|
202
|
-
// https://github.com/
|
202
|
+
// https://github.com/vant-ui/vant/issues/5640
|
203
203
|
_this.bodyHeight = Math.floor(_this.$refs.body.getBoundingClientRect().height);
|
204
204
|
|
205
205
|
_this.onScroll();
|
@@ -13,7 +13,7 @@
|
|
13
13
|
&__title {
|
14
14
|
.van-cell__right-icon::before {
|
15
15
|
// using translateZ to fix safari rendering issues
|
16
|
-
// see: https://github.com/
|
16
|
+
// see: https://github.com/vant-ui/vant/issues/8608
|
17
17
|
transform: rotate(90deg) translateZ(0);
|
18
18
|
transition: transform @collapse-item-transition-duration;
|
19
19
|
}
|
package/lib/count-down/index.js
CHANGED
@@ -91,7 +91,7 @@ var _default = createComponent({
|
|
91
91
|
},
|
92
92
|
tick: function tick() {
|
93
93
|
// should not start counting in server
|
94
|
-
// see: https://github.com/
|
94
|
+
// see: https://github.com/vant-ui/vant/issues/7807
|
95
95
|
if (!_utils.inBrowser) {
|
96
96
|
return;
|
97
97
|
}
|
@@ -286,7 +286,7 @@ var _default2 = createComponent({
|
|
286
286
|
this.updateInnerValue();
|
287
287
|
this.$nextTick(function () {
|
288
288
|
_this4.$nextTick(function () {
|
289
|
-
// https://github.com/
|
289
|
+
// https://github.com/vant-ui/vant/issues/9775
|
290
290
|
_this4.updateInnerValue();
|
291
291
|
|
292
292
|
_this4.$emit('change', picker);
|
@@ -125,7 +125,7 @@ var _default = createComponent({
|
|
125
125
|
this.updateInnerValue();
|
126
126
|
this.$nextTick(function () {
|
127
127
|
_this2.$nextTick(function () {
|
128
|
-
// https://github.com/
|
128
|
+
// https://github.com/vant-ui/vant/issues/9775
|
129
129
|
_this2.updateInnerValue();
|
130
130
|
|
131
131
|
_this2.$emit('change', picker);
|
@@ -93,7 +93,7 @@ var TimePickerMixin = {
|
|
93
93
|
getPicker: function getPicker() {
|
94
94
|
return this.$refs.picker;
|
95
95
|
},
|
96
|
-
// https://github.com/
|
96
|
+
// https://github.com/vant-ui/vant/issues/10013
|
97
97
|
getProxiedPicker: function getProxiedPicker() {
|
98
98
|
var _this4 = this;
|
99
99
|
|
package/lib/dialog/Dialog.js
CHANGED
@@ -189,7 +189,8 @@ var _default = createComponent({
|
|
189
189
|
"attrs": {
|
190
190
|
"size": "large",
|
191
191
|
"loading": this.loading.cancel,
|
192
|
-
"text": this.cancelButtonText || t('cancel')
|
192
|
+
"text": this.cancelButtonText || t('cancel'),
|
193
|
+
"nativeType": "button"
|
193
194
|
},
|
194
195
|
"class": bem('cancel'),
|
195
196
|
"style": {
|
@@ -204,7 +205,8 @@ var _default = createComponent({
|
|
204
205
|
"attrs": {
|
205
206
|
"size": "large",
|
206
207
|
"loading": this.loading.confirm,
|
207
|
-
"text": this.confirmButtonText || t('confirm')
|
208
|
+
"text": this.confirmButtonText || t('confirm'),
|
209
|
+
"nativeType": "button"
|
208
210
|
},
|
209
211
|
"class": [bem('confirm'), (_ref = {}, _ref[_constant.BORDER_LEFT] = multiple, _ref)],
|
210
212
|
"style": {
|
package/lib/field/index.js
CHANGED
@@ -307,7 +307,7 @@ var _default = createComponent({
|
|
307
307
|
}
|
308
308
|
|
309
309
|
value = (0, _utils.isDef)(value) ? String(value) : ''; // native maxlength have incorrect line-break counting
|
310
|
-
// see: https://github.com/
|
310
|
+
// see: https://github.com/vant-ui/vant/issues/5033
|
311
311
|
|
312
312
|
var maxlength = this.maxlength;
|
313
313
|
|
@@ -348,7 +348,7 @@ var _default = createComponent({
|
|
348
348
|
},
|
349
349
|
onFocus: function onFocus(event) {
|
350
350
|
this.focused = true;
|
351
|
-
this.$emit('focus', event); // https://github.com/
|
351
|
+
this.$emit('focus', event); // https://github.com/vant-ui/vant/issues/9715
|
352
352
|
|
353
353
|
this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari
|
354
354
|
|
@@ -431,7 +431,7 @@ var _default = createComponent({
|
|
431
431
|
}
|
432
432
|
|
433
433
|
if (height) {
|
434
|
-
input.style.height = height + 'px'; // https://github.com/
|
434
|
+
input.style.height = height + 'px'; // https://github.com/vant-ui/vant/issues/9178
|
435
435
|
|
436
436
|
(0, _scroll.setRootScrollTop)(scrollTop);
|
437
437
|
}
|
package/lib/grid-item/index.less
CHANGED
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.49';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
@@ -0,0 +1,96 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports.default = void 0;
|
5
|
+
var _default = {
|
6
|
+
name: 'Tên',
|
7
|
+
tel: 'Điện thoại',
|
8
|
+
save: 'Đồng ý',
|
9
|
+
confirm: 'Xác nhận',
|
10
|
+
cancel: 'Hủy bỏ',
|
11
|
+
delete: 'Xóa bỏ',
|
12
|
+
complete: 'Hoàn thành',
|
13
|
+
loading: 'Đang tải...',
|
14
|
+
telEmpty: 'Vui lòng điền số điện thoại',
|
15
|
+
nameEmpty: 'vui lòng điền tên',
|
16
|
+
nameInvalid: 'Vui lòng nhập tên chính xác',
|
17
|
+
confirmDelete: 'Bạn có chắc chắn muốn xóa',
|
18
|
+
telInvalid: 'Vui lòng nhập số điện thoại chính xác',
|
19
|
+
vanCalendar: {
|
20
|
+
end: 'Chấm dứt',
|
21
|
+
start: 'Bắt đầu',
|
22
|
+
title: 'Chọn ngày',
|
23
|
+
confirm: 'Đảm bảo',
|
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
|
+
monthTitle: function monthTitle(year, month) {
|
27
|
+
return year + " n\u0103m " + month + " th\xE1ng";
|
28
|
+
},
|
29
|
+
rangePrompt: function rangePrompt(maxRange) {
|
30
|
+
return "C\xE1c ng\xE0y \u0111\u01B0\u1EE3c ch\u1ECDn kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 " + maxRange + " ng\xE0y";
|
31
|
+
}
|
32
|
+
},
|
33
|
+
vanCascader: {
|
34
|
+
select: 'Xin hãy lựa chọn'
|
35
|
+
},
|
36
|
+
vanContactCard: {
|
37
|
+
addText: 'Thêm địa chỉ liên hệ'
|
38
|
+
},
|
39
|
+
vanContactList: {
|
40
|
+
addText: 'Địa chỉ liên lạc mới'
|
41
|
+
},
|
42
|
+
vanPagination: {
|
43
|
+
prev: 'Trang trước',
|
44
|
+
next: 'Trang sau'
|
45
|
+
},
|
46
|
+
vanPullRefresh: {
|
47
|
+
pulling: 'Kéo xuống để làm mới...',
|
48
|
+
loosing: 'Phát hành để làm mới...'
|
49
|
+
},
|
50
|
+
vanSubmitBar: {
|
51
|
+
label: 'Toàn bộ:'
|
52
|
+
},
|
53
|
+
vanCoupon: {
|
54
|
+
unlimited: 'Không có ngưỡng sử dụng',
|
55
|
+
discount: function discount(_discount) {
|
56
|
+
return _discount + " Chi\u1EBFt kh\u1EA5u";
|
57
|
+
},
|
58
|
+
condition: function condition(_condition) {
|
59
|
+
return "C\xF3 s\u1EB5n sau khi chi ti\xEAu " + _condition + " Vi\u1EC7t Nam \u0110\u1ED3ng";
|
60
|
+
}
|
61
|
+
},
|
62
|
+
vanCouponCell: {
|
63
|
+
title: 'Phiếu giảm giá',
|
64
|
+
tips: 'Chưa có',
|
65
|
+
count: function count(_count) {
|
66
|
+
return _count + " trang t\xEDnh kh\u1EA3 d\u1EE5ng";
|
67
|
+
}
|
68
|
+
},
|
69
|
+
vanCouponList: {
|
70
|
+
empty: 'Chưa có phiếu giảm giá',
|
71
|
+
exchange: 'Trao đổi',
|
72
|
+
close: 'Không sử dụng phiếu giảm giá',
|
73
|
+
enable: 'Có sẵn',
|
74
|
+
disabled: 'không có sẵn',
|
75
|
+
placeholder: 'Vui lòng nhập mã khuyến mãi'
|
76
|
+
},
|
77
|
+
vanAddressEdit: {
|
78
|
+
area: 'Khu vực',
|
79
|
+
postal: 'Mã bưu điện',
|
80
|
+
areaEmpty: 'Vui lòng chọn khu vực',
|
81
|
+
addressEmpty: 'Vui lòng điền vào địa chỉ chi tiết',
|
82
|
+
postalEmpty: 'Định dạng mã zip không chính xác',
|
83
|
+
defaultAddress: 'Đặt làm địa chỉ giao hàng mặc định',
|
84
|
+
telPlaceholder: 'Số điện thoại của người nhận hàng',
|
85
|
+
namePlaceholder: 'Tên người nhận hàng',
|
86
|
+
areaPlaceholder: 'Chọn Tỉnh / Thành phố / Quận / Huyện'
|
87
|
+
},
|
88
|
+
vanAddressEditDetail: {
|
89
|
+
label: 'Địa chỉ chi tiết',
|
90
|
+
placeholder: 'Số đường phố, số phòng tầng, v.v.'
|
91
|
+
},
|
92
|
+
vanAddressList: {
|
93
|
+
add: 'Thêm địa chỉ'
|
94
|
+
}
|
95
|
+
};
|
96
|
+
exports.default = _default;
|
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/step/index.js
CHANGED
@@ -33,15 +33,27 @@ var _default = createComponent({
|
|
33
33
|
return this.status === 'process';
|
34
34
|
},
|
35
35
|
lineStyle: function lineStyle() {
|
36
|
-
|
36
|
+
var _this$parent = this.parent,
|
37
|
+
activeColor = _this$parent.activeColor,
|
38
|
+
inactiveColor = _this$parent.inactiveColor,
|
39
|
+
center = _this$parent.center,
|
40
|
+
direction = _this$parent.direction;
|
41
|
+
var style = {
|
42
|
+
background: this.status === 'finish' ? activeColor : inactiveColor
|
43
|
+
};
|
44
|
+
|
45
|
+
if (center && direction === 'vertical') {
|
46
|
+
style.top = '50%';
|
47
|
+
}
|
48
|
+
|
49
|
+
return style;
|
50
|
+
},
|
51
|
+
circleContainerStyle: function circleContainerStyle() {
|
52
|
+
if (this.parent.center && this.parent.direction === 'vertical') {
|
37
53
|
return {
|
38
|
-
|
54
|
+
top: '50%'
|
39
55
|
};
|
40
56
|
}
|
41
|
-
|
42
|
-
return {
|
43
|
-
background: this.parent.inactiveColor
|
44
|
-
};
|
45
57
|
},
|
46
58
|
titleStyle: function titleStyle() {
|
47
59
|
if (this.active) {
|
@@ -60,12 +72,12 @@ var _default = createComponent({
|
|
60
72
|
methods: {
|
61
73
|
genCircle: function genCircle() {
|
62
74
|
var h = this.$createElement;
|
63
|
-
var _this$
|
64
|
-
activeIcon = _this$
|
65
|
-
iconPrefix = _this$
|
66
|
-
activeColor = _this$
|
67
|
-
finishIcon = _this$
|
68
|
-
inactiveIcon = _this$
|
75
|
+
var _this$parent2 = this.parent,
|
76
|
+
activeIcon = _this$parent2.activeIcon,
|
77
|
+
iconPrefix = _this$parent2.iconPrefix,
|
78
|
+
activeColor = _this$parent2.activeColor,
|
79
|
+
finishIcon = _this$parent2.finishIcon,
|
80
|
+
inactiveIcon = _this$parent2.inactiveIcon;
|
69
81
|
|
70
82
|
if (this.active) {
|
71
83
|
return this.slots('active-icon') || h(_icon.default, {
|
@@ -133,7 +145,8 @@ var _default = createComponent({
|
|
133
145
|
"class": bem('circle-container'),
|
134
146
|
"on": {
|
135
147
|
"click": this.onClickStep
|
136
|
-
}
|
148
|
+
},
|
149
|
+
"style": this.circleContainerStyle
|
137
150
|
}, [this.genCircle()]), h("div", {
|
138
151
|
"class": bem('line'),
|
139
152
|
"style": this.lineStyle
|
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/steps/index.js
CHANGED
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/utils/dom/scroll.js
CHANGED
@@ -13,10 +13,10 @@ 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
|
-
var overflowScrollReg = /scroll|auto/i;
|
19
|
+
var overflowScrollReg = /scroll|auto|overlay/i;
|
20
20
|
|
21
21
|
function getScroller(el, root) {
|
22
22
|
if (root === void 0) {
|
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
|
}
|