vant 2.12.39 → 2.12.43
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 +3 -3
- package/README.zh-CN.md +4 -4
- package/es/cascader/index.js +20 -13
- package/es/collapse-item/index.js +5 -1
- package/es/icon/index.css +1 -1
- package/es/icon/index.less +1 -0
- package/es/index.js +1 -1
- package/lib/cascader/index.js +20 -13
- package/lib/collapse-item/index.js +5 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.less +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.js +27 -16
- package/lib/vant.min.js +1 -1
- package/package.json +6 -3
- package/vetur/attributes.json +322 -314
- package/vetur/tags.json +98 -96
- package/vetur/web-types.json +905 -887
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.43';
|
365
365
|
exports.version = version;
|
366
366
|
|
367
367
|
function install(Vue) {
|
package/lib/vant.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
exports["vant"] = factory(require("vue"));
|
8
8
|
else
|
9
9
|
root["vant"] = factory(root["Vue"]);
|
10
|
-
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__3__) {
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__3__) {
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
12
12
|
/******/ // The module cache
|
13
13
|
/******/ var installedModules = {};
|
@@ -8843,6 +8843,10 @@ var cascader_createNamespace = Object(create["a" /* createNamespace */])('cascad
|
|
8843
8843
|
closeable: {
|
8844
8844
|
type: Boolean,
|
8845
8845
|
default: true
|
8846
|
+
},
|
8847
|
+
showHeader: {
|
8848
|
+
type: Boolean,
|
8849
|
+
default: true
|
8846
8850
|
}
|
8847
8851
|
},
|
8848
8852
|
data: function data() {
|
@@ -9003,19 +9007,22 @@ var cascader_createNamespace = Object(create["a" /* createNamespace */])('cascad
|
|
9003
9007
|
},
|
9004
9008
|
renderHeader: function renderHeader() {
|
9005
9009
|
var h = this.$createElement;
|
9006
|
-
|
9007
|
-
|
9008
|
-
|
9009
|
-
|
9010
|
-
|
9011
|
-
|
9012
|
-
|
9013
|
-
|
9014
|
-
|
9015
|
-
|
9016
|
-
"
|
9017
|
-
|
9018
|
-
|
9010
|
+
|
9011
|
+
if (this.showHeader) {
|
9012
|
+
return h("div", {
|
9013
|
+
"class": cascader_bem('header')
|
9014
|
+
}, [h("h2", {
|
9015
|
+
"class": cascader_bem('title')
|
9016
|
+
}, [this.slots('title') || this.title]), this.closeable ? h(es_icon, {
|
9017
|
+
"attrs": {
|
9018
|
+
"name": "cross"
|
9019
|
+
},
|
9020
|
+
"class": cascader_bem('close-icon'),
|
9021
|
+
"on": {
|
9022
|
+
"click": this.onClose
|
9023
|
+
}
|
9024
|
+
}) : null]);
|
9025
|
+
}
|
9019
9026
|
},
|
9020
9027
|
renderOptions: function renderOptions(options, selectedOption, tabIndex) {
|
9021
9028
|
var _this4 = this;
|
@@ -9575,6 +9582,10 @@ var CELL_SLOTS = ['title', 'icon', 'right-icon'];
|
|
9575
9582
|
props: _extends({}, cellProps, {
|
9576
9583
|
name: [Number, String],
|
9577
9584
|
disabled: Boolean,
|
9585
|
+
lazyRender: {
|
9586
|
+
type: Boolean,
|
9587
|
+
default: true
|
9588
|
+
},
|
9578
9589
|
isLink: {
|
9579
9590
|
type: Boolean,
|
9580
9591
|
default: true
|
@@ -9723,7 +9734,7 @@ var CELL_SLOTS = ['title', 'icon', 'right-icon'];
|
|
9723
9734
|
genContent: function genContent() {
|
9724
9735
|
var h = this.$createElement;
|
9725
9736
|
|
9726
|
-
if (this.inited) {
|
9737
|
+
if (this.inited || !this.lazyRender) {
|
9727
9738
|
return h("div", {
|
9728
9739
|
"directives": [{
|
9729
9740
|
name: "show",
|
@@ -22215,7 +22226,7 @@ TreeSelect.props = {
|
|
22215
22226
|
|
22216
22227
|
|
22217
22228
|
|
22218
|
-
var version = '2.12.
|
22229
|
+
var version = '2.12.43';
|
22219
22230
|
|
22220
22231
|
function install(Vue) {
|
22221
22232
|
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];
|