zartui 2.0.68 → 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 -24
- package/es/dropdown-item/index.less +5 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.js +3 -1
- package/es/dropdown-menu/index.less +4 -0
- 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 -24
- package/lib/dropdown-item/index.less +5 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.js +3 -1
- package/lib/dropdown-menu/index.less +4 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/media-player/index.js +3 -3
- package/lib/zart.js +21 -28
- 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: {
|
|
@@ -11024,8 +11025,6 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11024
11025
|
value = value.substr(0, value.length - 1);
|
|
11025
11026
|
return value;
|
|
11026
11027
|
}
|
|
11027
|
-
|
|
11028
|
-
return this.placeholder;
|
|
11029
11028
|
}
|
|
11030
11029
|
|
|
11031
11030
|
var match = this.options.filter(function (option) {
|
|
@@ -11076,6 +11075,7 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11076
11075
|
this.showPopup = show;
|
|
11077
11076
|
|
|
11078
11077
|
if (show) {
|
|
11078
|
+
this.innerValue = [].concat(this.value);
|
|
11079
11079
|
this.parent.updateOffset();
|
|
11080
11080
|
this.showWrapper = true;
|
|
11081
11081
|
}
|
|
@@ -11095,28 +11095,27 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11095
11095
|
}
|
|
11096
11096
|
},
|
|
11097
11097
|
select: function select(value) {
|
|
11098
|
-
if (this.
|
|
11099
|
-
this.
|
|
11098
|
+
if (this.innerValue.indexOf(value) >= 0) {
|
|
11099
|
+
this.innerValue.splice(this.innerValue.indexOf(value), 1);
|
|
11100
11100
|
} else {
|
|
11101
|
-
this.
|
|
11101
|
+
this.innerValue.push(value);
|
|
11102
11102
|
}
|
|
11103
11103
|
},
|
|
11104
11104
|
isSelect: function isSelect(value) {
|
|
11105
|
-
if (this.
|
|
11105
|
+
if (this.innerValue.indexOf(value) >= 0) {
|
|
11106
11106
|
return true;
|
|
11107
11107
|
}
|
|
11108
11108
|
|
|
11109
11109
|
return false;
|
|
11110
11110
|
},
|
|
11111
11111
|
reset: function reset() {
|
|
11112
|
-
this.
|
|
11113
|
-
this.$emit('input', []);
|
|
11114
|
-
this.$emit('reset', []);
|
|
11112
|
+
this.innerValue = [];
|
|
11115
11113
|
},
|
|
11116
11114
|
confirm: function confirm() {
|
|
11117
11115
|
this.showPopup = false;
|
|
11118
|
-
this.$emit('input', this.
|
|
11119
|
-
this.$emit('change', this.
|
|
11116
|
+
this.$emit('input', this.innerValue);
|
|
11117
|
+
this.$emit('change', this.innerValue);
|
|
11118
|
+
this.$emit('confirm', this.innerValue);
|
|
11120
11119
|
}
|
|
11121
11120
|
},
|
|
11122
11121
|
render: function render() {
|
|
@@ -11135,7 +11134,7 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11135
11134
|
|
|
11136
11135
|
if (this.multiSelect) {
|
|
11137
11136
|
Options = this.options.map(function (option, index) {
|
|
11138
|
-
var active = _this3.
|
|
11137
|
+
var active = _this3.innerValue.indexOf(option.value) >= 0;
|
|
11139
11138
|
return h(cell, {
|
|
11140
11139
|
"attrs": {
|
|
11141
11140
|
"clickable": true,
|
|
@@ -11199,25 +11198,18 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11199
11198
|
});
|
|
11200
11199
|
}
|
|
11201
11200
|
|
|
11202
|
-
var buttonStyle = {};
|
|
11203
|
-
var optionStyle = {};
|
|
11204
11201
|
var popupStyle = {};
|
|
11205
11202
|
|
|
11206
11203
|
if (this.multiSelect) {
|
|
11207
11204
|
var optionsLength = this.options.length;
|
|
11208
11205
|
|
|
11209
|
-
if (this.options.length <
|
|
11210
|
-
var height = optionsLength * 44;
|
|
11206
|
+
if (this.options.length < 7) {
|
|
11211
11207
|
var popupHeight = optionsLength * 44 + 68;
|
|
11212
|
-
buttonStyle.top = height + "px";
|
|
11213
|
-
optionStyle.height = height + "px";
|
|
11214
11208
|
popupStyle.height = popupHeight + "px";
|
|
11215
11209
|
popupStyle.paddingLeft = "0px";
|
|
11216
11210
|
} else {
|
|
11217
|
-
buttonStyle.top = '176px';
|
|
11218
|
-
optionStyle.height = '174px';
|
|
11219
11211
|
popupStyle.paddingLeft = "0px";
|
|
11220
|
-
popupStyle.height = "
|
|
11212
|
+
popupStyle.height = "378px";
|
|
11221
11213
|
}
|
|
11222
11214
|
}
|
|
11223
11215
|
|
|
@@ -11280,14 +11272,12 @@ var dropdown_item_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11280
11272
|
}]
|
|
11281
11273
|
}, [Options]), h("div", {
|
|
11282
11274
|
"class": dropdown_item_bem('options'),
|
|
11283
|
-
"style": optionStyle,
|
|
11284
11275
|
"directives": [{
|
|
11285
11276
|
name: "show",
|
|
11286
11277
|
value: this.multiSelect
|
|
11287
11278
|
}]
|
|
11288
11279
|
}, [Options]), h("div", {
|
|
11289
11280
|
"class": dropdown_item_bem('button'),
|
|
11290
|
-
"style": buttonStyle,
|
|
11291
11281
|
"directives": [{
|
|
11292
11282
|
name: "show",
|
|
11293
11283
|
value: this.multiSelect
|
|
@@ -11468,7 +11458,9 @@ var dropdown_menu_createNamespace = Object(utils["b" /* createNamespace */])('dr
|
|
|
11468
11458
|
}, [h("div", {
|
|
11469
11459
|
"class": "zt2-ellipsis",
|
|
11470
11460
|
"style": 'padding-right: 20px'
|
|
11471
|
-
}, [item.slots('title') || item.displayTitle
|
|
11461
|
+
}, [item.slots('title') || item.displayTitle ? item.displayTitle : h("div", {
|
|
11462
|
+
"class": [dropdown_menu_bem('placeholder')]
|
|
11463
|
+
}, [item.placeholder]), item.slots('icon') || h(es_icon, {
|
|
11472
11464
|
"class": dropdown_menu_bem('icon'),
|
|
11473
11465
|
"attrs": {
|
|
11474
11466
|
"name": "spinner-expand",
|
|
@@ -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];
|