vant 2.12.49 → 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.
@@ -1,24 +1,15 @@
1
- ### [v2.12.49](https://github.com/vant-ui/vant/compare/v2.12.48...v2.12.49)
1
+ ### [v2.12.50](https://github.com/vant-ui/vant/compare/v2.12.49...v2.12.50)
2
2
 
3
- `2022-09-05`
3
+ `2022-09-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
+ - Uploader: optimize image preview [#11044](https://github.com/vant-ui/vant/issues/11044)
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)
11
+ - changelog: vant@2.12.49 [#11011](https://github.com/vant-ui/vant/issues/11011)
21
12
 
22
- **Feature**
13
+ **Types**
23
14
 
24
- - cli: add site.headHtml option [d4ab42](https://github.com/vant-ui/vant/commit/d4ab4214ef3cceb259e5496cf2e7d0e0e4dc4015)
15
+ - ImagePreview: fix missing onScale type [#11057](https://github.com/vant-ui/vant/issues/11057)
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.50';
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);
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.50';
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
@@ -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);
@@ -23174,7 +23174,7 @@ TreeSelect.props = {
23174
23174
 
23175
23175
 
23176
23176
 
23177
- var version = '2.12.49';
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];