vant 2.12.36 → 2.12.37
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/datetime-picker/index.js +1 -1
- package/es/datetime-picker/shared.js +25 -3
- package/es/image-preview/ImagePreview.js +1 -0
- package/es/image-preview/index.js +1 -0
- package/es/index.js +1 -1
- package/lib/datetime-picker/index.js +1 -1
- package/lib/datetime-picker/shared.js +25 -3
- package/lib/image-preview/ImagePreview.js +1 -0
- package/lib/image-preview/index.js +1 -0
- package/lib/index.js +1 -1
- package/lib/vant.js +34 -10
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/types/image-preview.d.ts +1 -0
- package/vetur/attributes.json +202 -198
- package/vetur/tags.json +68 -67
- package/vetur/web-types.json +607 -598
@@ -77,10 +77,32 @@ export var TimePickerMixin = {
|
|
77
77
|
});
|
78
78
|
},
|
79
79
|
methods: {
|
80
|
-
// @exposed-api
|
81
80
|
getPicker: function getPicker() {
|
82
81
|
return this.$refs.picker;
|
83
82
|
},
|
83
|
+
// https://github.com/youzan/vant/issues/10013
|
84
|
+
getProxiedPicker: function getProxiedPicker() {
|
85
|
+
var _this4 = this;
|
86
|
+
|
87
|
+
var picker = this.$refs.picker;
|
88
|
+
|
89
|
+
if (picker) {
|
90
|
+
var proxy = function proxy(fn) {
|
91
|
+
return function () {
|
92
|
+
picker[fn].apply(picker, arguments);
|
93
|
+
|
94
|
+
_this4.updateInnerValue();
|
95
|
+
};
|
96
|
+
};
|
97
|
+
|
98
|
+
return _extends({}, picker, {
|
99
|
+
setValues: proxy('setValues'),
|
100
|
+
setIndexes: proxy('setIndexes'),
|
101
|
+
setColumnIndex: proxy('setColumnIndex'),
|
102
|
+
setColumnValue: proxy('setColumnValue')
|
103
|
+
});
|
104
|
+
}
|
105
|
+
},
|
84
106
|
onConfirm: function onConfirm() {
|
85
107
|
this.$emit('input', this.innerValue);
|
86
108
|
this.$emit('confirm', this.innerValue);
|
@@ -90,12 +112,12 @@ export var TimePickerMixin = {
|
|
90
112
|
}
|
91
113
|
},
|
92
114
|
render: function render() {
|
93
|
-
var
|
115
|
+
var _this5 = this;
|
94
116
|
|
95
117
|
var h = arguments[0];
|
96
118
|
var props = {};
|
97
119
|
Object.keys(pickerProps).forEach(function (key) {
|
98
|
-
props[key] =
|
120
|
+
props[key] = _this5[key];
|
99
121
|
});
|
100
122
|
return h(Picker, {
|
101
123
|
"ref": "picker",
|
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.37';
|
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];
|
@@ -90,10 +90,32 @@ var TimePickerMixin = {
|
|
90
90
|
});
|
91
91
|
},
|
92
92
|
methods: {
|
93
|
-
// @exposed-api
|
94
93
|
getPicker: function getPicker() {
|
95
94
|
return this.$refs.picker;
|
96
95
|
},
|
96
|
+
// https://github.com/youzan/vant/issues/10013
|
97
|
+
getProxiedPicker: function getProxiedPicker() {
|
98
|
+
var _this4 = this;
|
99
|
+
|
100
|
+
var picker = this.$refs.picker;
|
101
|
+
|
102
|
+
if (picker) {
|
103
|
+
var proxy = function proxy(fn) {
|
104
|
+
return function () {
|
105
|
+
picker[fn].apply(picker, arguments);
|
106
|
+
|
107
|
+
_this4.updateInnerValue();
|
108
|
+
};
|
109
|
+
};
|
110
|
+
|
111
|
+
return (0, _extends2.default)({}, picker, {
|
112
|
+
setValues: proxy('setValues'),
|
113
|
+
setIndexes: proxy('setIndexes'),
|
114
|
+
setColumnIndex: proxy('setColumnIndex'),
|
115
|
+
setColumnValue: proxy('setColumnValue')
|
116
|
+
});
|
117
|
+
}
|
118
|
+
},
|
97
119
|
onConfirm: function onConfirm() {
|
98
120
|
this.$emit('input', this.innerValue);
|
99
121
|
this.$emit('confirm', this.innerValue);
|
@@ -103,12 +125,12 @@ var TimePickerMixin = {
|
|
103
125
|
}
|
104
126
|
},
|
105
127
|
render: function render() {
|
106
|
-
var
|
128
|
+
var _this5 = this;
|
107
129
|
|
108
130
|
var h = arguments[0];
|
109
131
|
var props = {};
|
110
132
|
Object.keys(_shared.pickerProps).forEach(function (key) {
|
111
|
-
props[key] =
|
133
|
+
props[key] = _this5[key];
|
112
134
|
});
|
113
135
|
return h(_picker.default, {
|
114
136
|
"ref": "picker",
|
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.37';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
package/lib/vant.js
CHANGED
@@ -790,7 +790,7 @@ __webpack_require__.d(__webpack_exports__, "Overlay", function() { return /* ree
|
|
790
790
|
__webpack_require__.d(__webpack_exports__, "Pagination", function() { return /* reexport */ pagination; });
|
791
791
|
__webpack_require__.d(__webpack_exports__, "Panel", function() { return /* reexport */ panel; });
|
792
792
|
__webpack_require__.d(__webpack_exports__, "PasswordInput", function() { return /* reexport */ password_input; });
|
793
|
-
__webpack_require__.d(__webpack_exports__, "Picker", function() { return /* reexport */
|
793
|
+
__webpack_require__.d(__webpack_exports__, "Picker", function() { return /* reexport */ es_picker; });
|
794
794
|
__webpack_require__.d(__webpack_exports__, "Popover", function() { return /* reexport */ popover; });
|
795
795
|
__webpack_require__.d(__webpack_exports__, "Popup", function() { return /* reexport */ popup; });
|
796
796
|
__webpack_require__.d(__webpack_exports__, "Progress", function() { return /* reexport */ es_progress; });
|
@@ -2560,7 +2560,7 @@ var picker_createNamespace = Object(create["a" /* createNamespace */])('picker')
|
|
2560
2560
|
picker_bem = picker_createNamespace[1],
|
2561
2561
|
t = picker_createNamespace[2];
|
2562
2562
|
|
2563
|
-
/* harmony default export */ var
|
2563
|
+
/* harmony default export */ var es_picker = (picker_createComponent({
|
2564
2564
|
props: _extends({}, pickerProps, {
|
2565
2565
|
defaultIndex: {
|
2566
2566
|
type: [Number, String],
|
@@ -3228,7 +3228,7 @@ function pickSlots(instance, keys) {
|
|
3228
3228
|
confirm: this.onConfirm
|
3229
3229
|
});
|
3230
3230
|
|
3231
|
-
return h(
|
3231
|
+
return h(es_picker, {
|
3232
3232
|
"ref": "picker",
|
3233
3233
|
"class": area_bem(),
|
3234
3234
|
"attrs": {
|
@@ -10881,10 +10881,32 @@ var TimePickerMixin = {
|
|
10881
10881
|
});
|
10882
10882
|
},
|
10883
10883
|
methods: {
|
10884
|
-
// @exposed-api
|
10885
10884
|
getPicker: function getPicker() {
|
10886
10885
|
return this.$refs.picker;
|
10887
10886
|
},
|
10887
|
+
// https://github.com/youzan/vant/issues/10013
|
10888
|
+
getProxiedPicker: function getProxiedPicker() {
|
10889
|
+
var _this4 = this;
|
10890
|
+
|
10891
|
+
var picker = this.$refs.picker;
|
10892
|
+
|
10893
|
+
if (picker) {
|
10894
|
+
var proxy = function proxy(fn) {
|
10895
|
+
return function () {
|
10896
|
+
picker[fn].apply(picker, arguments);
|
10897
|
+
|
10898
|
+
_this4.updateInnerValue();
|
10899
|
+
};
|
10900
|
+
};
|
10901
|
+
|
10902
|
+
return _extends({}, picker, {
|
10903
|
+
setValues: proxy('setValues'),
|
10904
|
+
setIndexes: proxy('setIndexes'),
|
10905
|
+
setColumnIndex: proxy('setColumnIndex'),
|
10906
|
+
setColumnValue: proxy('setColumnValue')
|
10907
|
+
});
|
10908
|
+
}
|
10909
|
+
},
|
10888
10910
|
onConfirm: function onConfirm() {
|
10889
10911
|
this.$emit('input', this.innerValue);
|
10890
10912
|
this.$emit('confirm', this.innerValue);
|
@@ -10894,14 +10916,14 @@ var TimePickerMixin = {
|
|
10894
10916
|
}
|
10895
10917
|
},
|
10896
10918
|
render: function render() {
|
10897
|
-
var
|
10919
|
+
var _this5 = this;
|
10898
10920
|
|
10899
10921
|
var h = arguments[0];
|
10900
10922
|
var props = {};
|
10901
10923
|
Object.keys(pickerProps).forEach(function (key) {
|
10902
|
-
props[key] =
|
10924
|
+
props[key] = _this5[key];
|
10903
10925
|
});
|
10904
|
-
return h(
|
10926
|
+
return h(es_picker, {
|
10905
10927
|
"ref": "picker",
|
10906
10928
|
"attrs": {
|
10907
10929
|
"columns": this.columns,
|
@@ -11424,7 +11446,7 @@ var datetime_picker_createNamespace = Object(create["a" /* createNamespace */])(
|
|
11424
11446
|
methods: {
|
11425
11447
|
// @exposed-api
|
11426
11448
|
getPicker: function getPicker() {
|
11427
|
-
return this.$refs.root.
|
11449
|
+
return this.$refs.root.getProxiedPicker();
|
11428
11450
|
}
|
11429
11451
|
},
|
11430
11452
|
render: function render() {
|
@@ -13393,6 +13415,7 @@ function getDistance(touches) {
|
|
13393
13415
|
className: null,
|
13394
13416
|
closeable: Boolean,
|
13395
13417
|
asyncClose: Boolean,
|
13418
|
+
overlayStyle: Object,
|
13396
13419
|
showIndicators: Boolean,
|
13397
13420
|
images: {
|
13398
13421
|
type: Array,
|
@@ -13626,6 +13649,7 @@ var image_preview_defaultConfig = {
|
|
13626
13649
|
asyncClose: false,
|
13627
13650
|
transition: 'van-fade',
|
13628
13651
|
getContainer: 'body',
|
13652
|
+
overlayStyle: null,
|
13629
13653
|
startPosition: 0,
|
13630
13654
|
swipeDuration: 300,
|
13631
13655
|
showIndicators: false,
|
@@ -22149,10 +22173,10 @@ TreeSelect.props = {
|
|
22149
22173
|
|
22150
22174
|
|
22151
22175
|
|
22152
|
-
var version = '2.12.
|
22176
|
+
var version = '2.12.37';
|
22153
22177
|
|
22154
22178
|
function install(Vue) {
|
22155
|
-
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,
|
22179
|
+
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];
|
22156
22180
|
components.forEach(function (item) {
|
22157
22181
|
if (item.install) {
|
22158
22182
|
Vue.use(item);
|