vant 2.12.49 → 2.12.51

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.
@@ -1,24 +1,11 @@
1
- ### [v2.12.49](https://github.com/vant-ui/vant/compare/v2.12.48...v2.12.49)
1
+ ### [v2.12.51](https://github.com/vant-ui/vant/compare/v2.12.50...v2.12.51)
2
2
 
3
- `2022-09-05`
3
+ `2022-10-17`
4
4
 
5
5
  **Bug Fixes**
6
6
 
7
- - utils: avoid getting unexpected value [#11010](https://github.com/vant-ui/vant/issues/11010)
8
-
9
- - fix (vi-Vn lang): Accurate Vietnamese translation (#10889) [#10889](https://github.com/vant-ui/vant/issues/10889)
10
-
11
- **dcos**
12
-
13
- - update changelog [ffb819](https://github.com/vant-ui/vant/commit/ffb819181a3eaecd00e8a6f11a15ce8a439bd0e5)
7
+ - Calendar: throw an error that scrollTop in undefined when poppable in popup [#11140](https://github.com/vant-ui/vant/issues/11140)
14
8
 
15
9
  **Document**
16
10
 
17
- - fix [107511](https://github.com/vant-ui/vant/commit/107511aa54e430a1a15fd5f20559ce592d9d0a19)
18
- - Uploader: fix isOverSize param [#10824](https://github.com/vant-ui/vant/issues/10824)
19
- - update domain [60b890](https://github.com/vant-ui/vant/commit/60b8906acd736d105ec92c1c30446aea9297bc8c)
20
- - changelog: vant@2.12.48 [#10744](https://github.com/vant-ui/vant/issues/10744)
21
-
22
- **Feature**
23
-
24
- - cli: add site.headHtml option [d4ab42](https://github.com/vant-ui/vant/commit/d4ab4214ef3cceb259e5496cf2e7d0e0e4dc4015)
11
+ - changelog: vant@2.12.50 [#11058](https://github.com/vant-ui/vant/issues/11058)
@@ -153,11 +153,13 @@ export default createComponent({
153
153
  }
154
154
  },
155
155
  mounted: function mounted() {
156
- var _this$vanPopup;
157
-
158
156
  this.init(); // https://github.com/vant-ui/vant/issues/9845
159
157
 
160
- (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
158
+ if (!this.poppable) {
159
+ var _this$vanPopup;
160
+
161
+ (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
162
+ }
161
163
  },
162
164
 
163
165
  /* istanbul ignore next */
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.49';
90
+ var version = '2.12.51';
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];
@@ -276,7 +276,7 @@ export default createComponent({
276
276
  return isImageFile(item);
277
277
  });
278
278
  var imageContents = imageFiles.map(function (item) {
279
- if (item.file && !item.url) {
279
+ if (item.file && !item.url && item.status !== 'failed') {
280
280
  item.url = URL.createObjectURL(item.file);
281
281
 
282
282
  _this5.urls.push(item.url);
@@ -169,11 +169,13 @@ var _default2 = (0, _utils.createComponent)({
169
169
  }
170
170
  },
171
171
  mounted: function mounted() {
172
- var _this$vanPopup;
173
-
174
172
  this.init(); // https://github.com/vant-ui/vant/issues/9845
175
173
 
176
- (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
174
+ if (!this.poppable) {
175
+ var _this$vanPopup;
176
+
177
+ (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
178
+ }
177
179
  },
178
180
 
179
181
  /* istanbul ignore next */
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.49';
364
+ var version = '2.12.51';
365
365
  exports.version = version;
366
366
 
367
367
  function install(Vue) {
@@ -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/vant.js CHANGED
@@ -8071,11 +8071,13 @@ var Header_createNamespace = Object(create["a" /* createNamespace */])('calendar
8071
8071
  }
8072
8072
  },
8073
8073
  mounted: function mounted() {
8074
- var _this$vanPopup;
8075
-
8076
8074
  this.init(); // https://github.com/vant-ui/vant/issues/9845
8077
8075
 
8078
- (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
8076
+ if (!this.poppable) {
8077
+ var _this$vanPopup;
8078
+
8079
+ (_this$vanPopup = this.vanPopup) == null ? void 0 : _this$vanPopup.$on('opened', this.onScroll);
8080
+ }
8079
8081
  },
8080
8082
 
8081
8083
  /* istanbul ignore next */
@@ -20318,7 +20320,7 @@ var uploader_createNamespace = Object(create["a" /* createNamespace */])('upload
20318
20320
  return isImageFile(item);
20319
20321
  });
20320
20322
  var imageContents = imageFiles.map(function (item) {
20321
- if (item.file && !item.url) {
20323
+ if (item.file && !item.url && item.status !== 'failed') {
20322
20324
  item.url = URL.createObjectURL(item.file);
20323
20325
 
20324
20326
  _this5.urls.push(item.url);
@@ -23174,7 +23176,7 @@ TreeSelect.props = {
23174
23176
 
23175
23177
 
23176
23178
 
23177
- var version = '2.12.49';
23179
+ var version = '2.12.51';
23178
23180
 
23179
23181
  function install(Vue) {
23180
23182
  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];