vant 2.13.7 → 2.13.8
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/changelog.generated.md +4 -14
- package/es/index.js +1 -1
- package/es/sku/Sku.js +4 -3
- package/lib/index.js +1 -1
- package/lib/sku/Sku.js +4 -3
- package/lib/vant.js +5 -4
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +551 -547
- package/vetur/tags.json +195 -194
- package/vetur/web-types.json +1437 -1428
package/changelog.generated.md
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
### [v2.13.
|
1
|
+
### [v2.13.8](https://github.com/vant-ui/vant/compare/v2.13.7...v2.13.8)
|
2
2
|
|
3
|
-
`2025-
|
3
|
+
`2025-05-20`
|
4
4
|
|
5
|
-
**
|
5
|
+
**Bug Fixes**
|
6
6
|
|
7
|
-
-
|
8
|
-
- add Rsbuild scaffold [a6983a](https://github.com/vant-ui/vant/commit/a6983a5ca2c6e4d9ff5410ae3cf6bb57a5ef2acc)
|
9
|
-
- changelog: vant v2.13.2 [#12373](https://github.com/vant-ui/vant/issues/12373)
|
10
|
-
|
11
|
-
**Feature**
|
12
|
-
|
13
|
-
- Sku: support sku properties [#13454](https://github.com/vant-ui/vant/issues/13454)
|
14
|
-
|
15
|
-
**release**
|
16
|
-
|
17
|
-
- 2.13.6 [e2ce4f](https://github.com/vant-ui/vant/commit/e2ce4fc397d8b9e6aa7ea292e9f1871c62517e32)
|
7
|
+
- Sku: set properties when sku change [#13483](https://github.com/vant-ui/vant/issues/13483)
|
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.13.
|
90
|
+
var version = '2.13.8';
|
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];
|
package/es/sku/Sku.js
CHANGED
@@ -207,11 +207,12 @@ export default createComponent({
|
|
207
207
|
price: Math.round(this.sku.price * 100),
|
208
208
|
stock_num: this.sku.stock_num
|
209
209
|
};
|
210
|
-
}
|
210
|
+
} // 更新当前规格属性数据
|
211
|
+
|
212
|
+
|
213
|
+
this.setCurrentSkuProperties(skuComb ? skuComb.id : null);
|
211
214
|
|
212
215
|
if (skuComb) {
|
213
|
-
// 更新当前规格属性数据
|
214
|
-
this.setCurrentSkuProperties(skuComb.id);
|
215
216
|
skuComb.properties = getSelectedProperties(this.propList, this.selectedProp);
|
216
217
|
skuComb.property_price = this.selectedPropValues.reduce(function (acc, cur) {
|
217
218
|
return acc + (cur.price || 0);
|
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.13.
|
364
|
+
var version = '2.13.8';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
package/lib/sku/Sku.js
CHANGED
@@ -231,11 +231,12 @@ var _default2 = createComponent({
|
|
231
231
|
price: Math.round(this.sku.price * 100),
|
232
232
|
stock_num: this.sku.stock_num
|
233
233
|
};
|
234
|
-
}
|
234
|
+
} // 更新当前规格属性数据
|
235
|
+
|
236
|
+
|
237
|
+
this.setCurrentSkuProperties(skuComb ? skuComb.id : null);
|
235
238
|
|
236
239
|
if (skuComb) {
|
237
|
-
// 更新当前规格属性数据
|
238
|
-
this.setCurrentSkuProperties(skuComb.id);
|
239
240
|
skuComb.properties = (0, _skuHelper.getSelectedProperties)(this.propList, this.selectedProp);
|
240
241
|
skuComb.property_price = this.selectedPropValues.reduce(function (acc, cur) {
|
241
242
|
return acc + (cur.price || 0);
|
package/lib/vant.js
CHANGED
@@ -21265,11 +21265,12 @@ var Sku_QUOTA_LIMIT = LIMIT_TYPE.QUOTA_LIMIT;
|
|
21265
21265
|
price: Math.round(this.sku.price * 100),
|
21266
21266
|
stock_num: this.sku.stock_num
|
21267
21267
|
};
|
21268
|
-
}
|
21268
|
+
} // 更新当前规格属性数据
|
21269
|
+
|
21270
|
+
|
21271
|
+
this.setCurrentSkuProperties(skuComb ? skuComb.id : null);
|
21269
21272
|
|
21270
21273
|
if (skuComb) {
|
21271
|
-
// 更新当前规格属性数据
|
21272
|
-
this.setCurrentSkuProperties(skuComb.id);
|
21273
21274
|
skuComb.properties = sku_helper_getSelectedProperties(this.propList, this.selectedProp);
|
21274
21275
|
skuComb.property_price = this.selectedPropValues.reduce(function (acc, cur) {
|
21275
21276
|
return acc + (cur.price || 0);
|
@@ -23228,7 +23229,7 @@ TreeSelect.props = {
|
|
23228
23229
|
|
23229
23230
|
|
23230
23231
|
|
23231
|
-
var version = '2.13.
|
23232
|
+
var version = '2.13.8';
|
23232
23233
|
|
23233
23234
|
function install(Vue) {
|
23234
23235
|
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];
|