zartui 2.1.24 → 2.1.26
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/index.js +1 -1
- package/es/multiple-picker/MultiplePickerOptions.js +2 -0
- package/es/multiple-picker/index.js +16 -0
- package/lib/index.js +1 -1
- package/lib/multiple-picker/MultiplePickerOptions.js +2 -0
- package/lib/multiple-picker/index.js +16 -0
- package/lib/zart.js +19 -1
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -76,7 +76,7 @@ import TextEllipsis from './text-ellipsis';
|
|
|
76
76
|
import Timeline from './timeline';
|
|
77
77
|
import Toast from './toast';
|
|
78
78
|
import Uploader from './uploader';
|
|
79
|
-
var version = '2.1.
|
|
79
|
+
var version = '2.1.26';
|
|
80
80
|
function install(Vue) {
|
|
81
81
|
var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, Grid, GridItem, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MediaPicker, MediaPlayer, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, SpeechRecognizer, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, TextEllipsis, Timeline, Toast, Uploader];
|
|
82
82
|
components.forEach(function (item) {
|
|
@@ -55,6 +55,8 @@ export default createComponent({
|
|
|
55
55
|
setOptions: function setOptions(options) {
|
|
56
56
|
if (JSON.stringify(options) !== JSON.stringify(this.options)) {
|
|
57
57
|
this.options = deepClone(options);
|
|
58
|
+
// 当 options 变化时,需要重置 confirmed 状态,允许重新设置索引
|
|
59
|
+
this.confirmed = false;
|
|
58
60
|
this.setDefaultIndexs();
|
|
59
61
|
}
|
|
60
62
|
},
|
|
@@ -62,6 +62,19 @@ export default createComponent({
|
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
64
|
watch: {
|
|
65
|
+
options: {
|
|
66
|
+
handler: function handler(newOptions) {
|
|
67
|
+
// 当 options 变化时,需要过滤掉无效的索引
|
|
68
|
+
if (this.confirmIndexs) {
|
|
69
|
+
var validIndexs = this.confirmIndexs.filter(function (index) {
|
|
70
|
+
return index < newOptions.length;
|
|
71
|
+
});
|
|
72
|
+
this.confirmIndexs = validIndexs.length > 0 ? validIndexs : null;
|
|
73
|
+
this.currentIndexs = validIndexs;
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
immediate: false
|
|
77
|
+
},
|
|
65
78
|
showPicker: {
|
|
66
79
|
handler: function handler(val) {
|
|
67
80
|
var _this = this;
|
|
@@ -69,8 +82,11 @@ export default createComponent({
|
|
|
69
82
|
this.$nextTick(function () {
|
|
70
83
|
if (_this.$refs.pickerOptions && _this.confirmIndexs) {
|
|
71
84
|
_this.$refs.pickerOptions.setConfirmIndex(_this.confirmIndexs);
|
|
85
|
+
// 同步 currentIndexs 以更新底部全选和已选状态
|
|
86
|
+
_this.currentIndexs = [].concat(_this.confirmIndexs);
|
|
72
87
|
} else if (!_this.confirmIndexs && _this.defaultIndexs && _this.defaultIndexs.length === 0) {
|
|
73
88
|
_this.$refs.pickerOptions.setConfirmIndex([]);
|
|
89
|
+
_this.currentIndexs = [];
|
|
74
90
|
}
|
|
75
91
|
});
|
|
76
92
|
}
|
package/lib/index.js
CHANGED
|
@@ -161,7 +161,7 @@ var _toast = _interopRequireDefault(require("./toast"));
|
|
|
161
161
|
exports.Toast = _toast.default;
|
|
162
162
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
163
163
|
exports.Uploader = _uploader.default;
|
|
164
|
-
var version = exports.version = '2.1.
|
|
164
|
+
var version = exports.version = '2.1.26';
|
|
165
165
|
function install(Vue) {
|
|
166
166
|
var components = [_actionSheet.default, _area.default, _avatar.default, _backTop.default, _badge.default, _button.default, _calendar.default, _cascader.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _col.default, _collapse.default, _collapseItem.default, _countDown.default, _datetimePicker.default, _dialog.default, _divider.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _foldDialog.default, _form.default, _grid.default, _gridItem.default, _hierarchySelect.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _lazyload.default, _list.default, _loading.default, _locale.default, _mediaPicker.default, _mediaPlayer.default, _multiplePicker.default, _navBar.default, _noticeBar.default, _numberKeyboard.default, _overlay.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rate.default, _row.default, _search.default, _signature.default, _skeleton.default, _slider.default, _speechRecognizer.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tabs.default, _tag.default, _textEllipsis.default, _timeline.default, _toast.default, _uploader.default];
|
|
167
167
|
components.forEach(function (item) {
|
|
@@ -60,6 +60,8 @@ var _default2 = exports.default = createComponent({
|
|
|
60
60
|
setOptions: function setOptions(options) {
|
|
61
61
|
if (JSON.stringify(options) !== JSON.stringify(this.options)) {
|
|
62
62
|
this.options = (0, _deepClone.deepClone)(options);
|
|
63
|
+
// 当 options 变化时,需要重置 confirmed 状态,允许重新设置索引
|
|
64
|
+
this.confirmed = false;
|
|
63
65
|
this.setDefaultIndexs();
|
|
64
66
|
}
|
|
65
67
|
},
|
|
@@ -69,6 +69,19 @@ var _default2 = exports.default = createComponent({
|
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
watch: {
|
|
72
|
+
options: {
|
|
73
|
+
handler: function handler(newOptions) {
|
|
74
|
+
// 当 options 变化时,需要过滤掉无效的索引
|
|
75
|
+
if (this.confirmIndexs) {
|
|
76
|
+
var validIndexs = this.confirmIndexs.filter(function (index) {
|
|
77
|
+
return index < newOptions.length;
|
|
78
|
+
});
|
|
79
|
+
this.confirmIndexs = validIndexs.length > 0 ? validIndexs : null;
|
|
80
|
+
this.currentIndexs = validIndexs;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
immediate: false
|
|
84
|
+
},
|
|
72
85
|
showPicker: {
|
|
73
86
|
handler: function handler(val) {
|
|
74
87
|
var _this = this;
|
|
@@ -76,8 +89,11 @@ var _default2 = exports.default = createComponent({
|
|
|
76
89
|
this.$nextTick(function () {
|
|
77
90
|
if (_this.$refs.pickerOptions && _this.confirmIndexs) {
|
|
78
91
|
_this.$refs.pickerOptions.setConfirmIndex(_this.confirmIndexs);
|
|
92
|
+
// 同步 currentIndexs 以更新底部全选和已选状态
|
|
93
|
+
_this.currentIndexs = [].concat(_this.confirmIndexs);
|
|
79
94
|
} else if (!_this.confirmIndexs && _this.defaultIndexs && _this.defaultIndexs.length === 0) {
|
|
80
95
|
_this.$refs.pickerOptions.setConfirmIndex([]);
|
|
96
|
+
_this.currentIndexs = [];
|
|
81
97
|
}
|
|
82
98
|
});
|
|
83
99
|
}
|
package/lib/zart.js
CHANGED
|
@@ -25872,6 +25872,8 @@ function MultiplePickerOptions_isOptionDisabled(option) {
|
|
|
25872
25872
|
setOptions: function setOptions(options) {
|
|
25873
25873
|
if (JSON.stringify(options) !== JSON.stringify(this.options)) {
|
|
25874
25874
|
this.options = deepClone(options);
|
|
25875
|
+
// 当 options 变化时,需要重置 confirmed 状态,允许重新设置索引
|
|
25876
|
+
this.confirmed = false;
|
|
25875
25877
|
this.setDefaultIndexs();
|
|
25876
25878
|
}
|
|
25877
25879
|
},
|
|
@@ -26030,6 +26032,19 @@ var multiple_picker_createNamespace = Object(utils["b" /* createNamespace */])('
|
|
|
26030
26032
|
};
|
|
26031
26033
|
},
|
|
26032
26034
|
watch: {
|
|
26035
|
+
options: {
|
|
26036
|
+
handler: function handler(newOptions) {
|
|
26037
|
+
// 当 options 变化时,需要过滤掉无效的索引
|
|
26038
|
+
if (this.confirmIndexs) {
|
|
26039
|
+
var validIndexs = this.confirmIndexs.filter(function (index) {
|
|
26040
|
+
return index < newOptions.length;
|
|
26041
|
+
});
|
|
26042
|
+
this.confirmIndexs = validIndexs.length > 0 ? validIndexs : null;
|
|
26043
|
+
this.currentIndexs = validIndexs;
|
|
26044
|
+
}
|
|
26045
|
+
},
|
|
26046
|
+
immediate: false
|
|
26047
|
+
},
|
|
26033
26048
|
showPicker: {
|
|
26034
26049
|
handler: function handler(val) {
|
|
26035
26050
|
var _this = this;
|
|
@@ -26037,8 +26052,11 @@ var multiple_picker_createNamespace = Object(utils["b" /* createNamespace */])('
|
|
|
26037
26052
|
this.$nextTick(function () {
|
|
26038
26053
|
if (_this.$refs.pickerOptions && _this.confirmIndexs) {
|
|
26039
26054
|
_this.$refs.pickerOptions.setConfirmIndex(_this.confirmIndexs);
|
|
26055
|
+
// 同步 currentIndexs 以更新底部全选和已选状态
|
|
26056
|
+
_this.currentIndexs = [].concat(_this.confirmIndexs);
|
|
26040
26057
|
} else if (!_this.confirmIndexs && _this.defaultIndexs && _this.defaultIndexs.length === 0) {
|
|
26041
26058
|
_this.$refs.pickerOptions.setConfirmIndex([]);
|
|
26059
|
+
_this.currentIndexs = [];
|
|
26042
26060
|
}
|
|
26043
26061
|
});
|
|
26044
26062
|
}
|
|
@@ -35194,7 +35212,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
35194
35212
|
|
|
35195
35213
|
|
|
35196
35214
|
|
|
35197
|
-
var es_version = '2.1.
|
|
35215
|
+
var es_version = '2.1.26';
|
|
35198
35216
|
function install(Vue) {
|
|
35199
35217
|
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, speech_recognizer, es_step, stepper, steps, es_sticky, swipe, swipe_cell, swipe_item, es_switch, switch_cell, tab, tabbar, tabbar_item, table, tabs, es_tag, text_ellipsis, timeline, es_toast, uploader];
|
|
35200
35218
|
components.forEach(function (item) {
|