zartui 2.0.69 → 2.0.71
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/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.js +14 -22
- package/es/dropdown-item/index.less +5 -1
- package/es/index.js +1 -1
- package/es/media-player/index.js +4 -3
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.js +14 -22
- package/lib/dropdown-item/index.less +5 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/media-player/index.js +3 -3
- package/lib/zart.js +18 -25
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -309,7 +309,7 @@ exports.Toast = _toast.default;
|
|
|
309
309
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
310
310
|
|
|
311
311
|
exports.Uploader = _uploader.default;
|
|
312
|
-
var version = '2.0.
|
|
312
|
+
var version = '2.0.71';
|
|
313
313
|
exports.version = version;
|
|
314
314
|
|
|
315
315
|
function install(Vue) {
|
|
@@ -9,14 +9,13 @@ var _utils = require("../utils");
|
|
|
9
9
|
|
|
10
10
|
var _type = require("../media-picker/type");
|
|
11
11
|
|
|
12
|
-
var _toast = _interopRequireDefault(require("../toast"));
|
|
13
|
-
|
|
14
12
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
15
13
|
|
|
16
14
|
var _button = _interopRequireDefault(require("../button"));
|
|
17
15
|
|
|
18
16
|
var _device = require("../utils/device");
|
|
19
17
|
|
|
18
|
+
// import Toast from '../toast';
|
|
20
19
|
var _createNamespace = (0, _utils.createNamespace)('media-player'),
|
|
21
20
|
createComponent = _createNamespace[0],
|
|
22
21
|
bem = _createNamespace[1];
|
|
@@ -144,7 +143,8 @@ var _default = createComponent({
|
|
|
144
143
|
"overlay": true,
|
|
145
144
|
"safe-area-inset-bottom": true,
|
|
146
145
|
"close-on-popstate": true,
|
|
147
|
-
"customOnClickOverlay": this.onClose
|
|
146
|
+
"customOnClickOverlay": this.onClose,
|
|
147
|
+
"getContainer": this.getContainer
|
|
148
148
|
},
|
|
149
149
|
"on": {
|
|
150
150
|
"open": this.onOpen
|
package/lib/zart.js
CHANGED
|
@@ -11002,7 +11002,8 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11002
11002
|
return {
|
|
11003
11003
|
transition: true,
|
|
11004
11004
|
showPopup: false,
|
|
11005
|
-
showWrapper: false
|
|
11005
|
+
showWrapper: false,
|
|
11006
|
+
innerValue: []
|
|
11006
11007
|
};
|
|
11007
11008
|
},
|
|
11008
11009
|
computed: {
|
|
@@ -11074,6 +11075,7 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11074
11075
|
this.showPopup = show;
|
|
11075
11076
|
|
|
11076
11077
|
if (show) {
|
|
11078
|
+
this.innerValue = [].concat(this.value);
|
|
11077
11079
|
this.parent.updateOffset();
|
|
11078
11080
|
this.showWrapper = true;
|
|
11079
11081
|
}
|
|
@@ -11093,28 +11095,27 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11093
11095
|
}
|
|
11094
11096
|
},
|
|
11095
11097
|
select: function select(value) {
|
|
11096
|
-
if (this.
|
|
11097
|
-
this.
|
|
11098
|
+
if (this.innerValue.indexOf(value) >= 0) {
|
|
11099
|
+
this.innerValue.splice(this.innerValue.indexOf(value), 1);
|
|
11098
11100
|
} else {
|
|
11099
|
-
this.
|
|
11101
|
+
this.innerValue.push(value);
|
|
11100
11102
|
}
|
|
11101
11103
|
},
|
|
11102
11104
|
isSelect: function isSelect(value) {
|
|
11103
|
-
if (this.
|
|
11105
|
+
if (this.innerValue.indexOf(value) >= 0) {
|
|
11104
11106
|
return true;
|
|
11105
11107
|
}
|
|
11106
11108
|
|
|
11107
11109
|
return false;
|
|
11108
11110
|
},
|
|
11109
11111
|
reset: function reset() {
|
|
11110
|
-
this.
|
|
11111
|
-
this.$emit('input', []);
|
|
11112
|
-
this.$emit('reset', []);
|
|
11112
|
+
this.innerValue = [];
|
|
11113
11113
|
},
|
|
11114
11114
|
confirm: function confirm() {
|
|
11115
11115
|
this.showPopup = false;
|
|
11116
|
-
this.$emit('input', this.
|
|
11117
|
-
this.$emit('change', this.
|
|
11116
|
+
this.$emit('input', this.innerValue);
|
|
11117
|
+
this.$emit('change', this.innerValue);
|
|
11118
|
+
this.$emit('confirm', this.innerValue);
|
|
11118
11119
|
}
|
|
11119
11120
|
},
|
|
11120
11121
|
render: function render() {
|
|
@@ -11133,7 +11134,7 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11133
11134
|
|
|
11134
11135
|
if (this.multiSelect) {
|
|
11135
11136
|
Options = this.options.map(function (option, index) {
|
|
11136
|
-
var active = _this3.
|
|
11137
|
+
var active = _this3.innerValue.indexOf(option.value) >= 0;
|
|
11137
11138
|
return h(cell, {
|
|
11138
11139
|
"attrs": {
|
|
11139
11140
|
"clickable": true,
|
|
@@ -11197,25 +11198,18 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11197
11198
|
});
|
|
11198
11199
|
}
|
|
11199
11200
|
|
|
11200
|
-
var buttonStyle = {};
|
|
11201
|
-
var optionStyle = {};
|
|
11202
11201
|
var popupStyle = {};
|
|
11203
11202
|
|
|
11204
11203
|
if (this.multiSelect) {
|
|
11205
11204
|
var optionsLength = this.options.length;
|
|
11206
11205
|
|
|
11207
|
-
if (this.options.length <
|
|
11208
|
-
var height = optionsLength * 44;
|
|
11206
|
+
if (this.options.length < 7) {
|
|
11209
11207
|
var popupHeight = optionsLength * 44 + 68;
|
|
11210
|
-
buttonStyle.top = height + "px";
|
|
11211
|
-
optionStyle.height = height + "px";
|
|
11212
11208
|
popupStyle.height = popupHeight + "px";
|
|
11213
11209
|
popupStyle.paddingLeft = "0px";
|
|
11214
11210
|
} else {
|
|
11215
|
-
buttonStyle.top = '176px';
|
|
11216
|
-
optionStyle.height = '174px';
|
|
11217
11211
|
popupStyle.paddingLeft = "0px";
|
|
11218
|
-
popupStyle.height = "
|
|
11212
|
+
popupStyle.height = "378px";
|
|
11219
11213
|
}
|
|
11220
11214
|
}
|
|
11221
11215
|
|
|
@@ -11278,14 +11272,12 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11278
11272
|
}]
|
|
11279
11273
|
}, [Options]), h("div", {
|
|
11280
11274
|
"class": dropdown_item_bem('options'),
|
|
11281
|
-
"style": optionStyle,
|
|
11282
11275
|
"directives": [{
|
|
11283
11276
|
name: "show",
|
|
11284
11277
|
value: this.multiSelect
|
|
11285
11278
|
}]
|
|
11286
11279
|
}, [Options]), h("div", {
|
|
11287
11280
|
"class": dropdown_item_bem('button'),
|
|
11288
|
-
"style": buttonStyle,
|
|
11289
11281
|
"directives": [{
|
|
11290
11282
|
name: "show",
|
|
11291
11283
|
value: this.multiSelect
|
|
@@ -18672,7 +18664,7 @@ function device_isIOS() {
|
|
|
18672
18664
|
}
|
|
18673
18665
|
// CONCATENATED MODULE: ./es/media-player/index.js
|
|
18674
18666
|
|
|
18675
|
-
|
|
18667
|
+
// import Toast from '../toast';
|
|
18676
18668
|
|
|
18677
18669
|
|
|
18678
18670
|
|
|
@@ -18805,7 +18797,8 @@ var media_player_createNamespace = Object(utils["b" /* createNamespace */])('med
|
|
|
18805
18797
|
"overlay": true,
|
|
18806
18798
|
"safe-area-inset-bottom": true,
|
|
18807
18799
|
"close-on-popstate": true,
|
|
18808
|
-
"customOnClickOverlay": this.onClose
|
|
18800
|
+
"customOnClickOverlay": this.onClose,
|
|
18801
|
+
"getContainer": this.getContainer
|
|
18809
18802
|
},
|
|
18810
18803
|
"on": {
|
|
18811
18804
|
"open": this.onOpen
|
|
@@ -29761,7 +29754,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
29761
29754
|
|
|
29762
29755
|
|
|
29763
29756
|
|
|
29764
|
-
var version = '2.0.
|
|
29757
|
+
var version = '2.0.71';
|
|
29765
29758
|
|
|
29766
29759
|
function install(Vue) {
|
|
29767
29760
|
var components = [action_sheet, es_area, avatar, back_top, badge, es_button, calendar, cascader, cell, cell_group, es_checkbox, checkbox_group, col, collapse, collapse_item, count_down, datetime_picker, dialog, divider, dropdown_item, dropdown_menu, empty, es_field, fold_dialog, es_form, grid, grid_item, hierarchy_select, es_icon, es_image, image_preview, index_anchor, index_bar, es_info, lazyload, es_list, es_loading, locale["a" /* default */], media_picker, media_player, multiple_picker, nav_bar, notice_bar, number_keyboard, es_overlay, password_input, es_picker, popover, popup, pull_refresh, es_radio, radio_group, rate, row, search, signature, skeleton, slider, es_step, stepper, es_steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, timeline, es_toast, uploader];
|