zartui 2.0.89 → 2.0.90
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/tabs/Title.js +25 -0
- package/es/tabs/index.js +4 -3
- package/lib/index.js +1 -1
- package/lib/tabs/Title.js +25 -0
- package/lib/tabs/index.js +4 -3
- package/lib/zart.js +30 -4
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -75,7 +75,7 @@ import TextEllipsis from './text-ellipsis';
|
|
|
75
75
|
import Timeline from './timeline';
|
|
76
76
|
import Toast from './toast';
|
|
77
77
|
import Uploader from './uploader';
|
|
78
|
-
var version = '2.0.
|
|
78
|
+
var version = '2.0.90';
|
|
79
79
|
|
|
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, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, TextEllipsis, Timeline, Toast, Uploader];
|
package/es/tabs/Title.js
CHANGED
|
@@ -17,11 +17,17 @@ export default createComponent({
|
|
|
17
17
|
scrollable: Boolean,
|
|
18
18
|
activeColor: String,
|
|
19
19
|
inactiveColor: String,
|
|
20
|
+
setLine: Function,
|
|
20
21
|
maxWidth: {
|
|
21
22
|
type: String,
|
|
22
23
|
default: '112px'
|
|
23
24
|
}
|
|
24
25
|
},
|
|
26
|
+
data: function data() {
|
|
27
|
+
return {
|
|
28
|
+
mutationObserver: null
|
|
29
|
+
};
|
|
30
|
+
},
|
|
25
31
|
computed: {
|
|
26
32
|
style: function style() {
|
|
27
33
|
var style = {};
|
|
@@ -88,11 +94,30 @@ export default createComponent({
|
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
return Text;
|
|
97
|
+
},
|
|
98
|
+
mutation: function mutation() {
|
|
99
|
+
this.setLine();
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
mounted: function mounted() {
|
|
103
|
+
if (!this.$refs.dom) {
|
|
104
|
+
return;
|
|
91
105
|
}
|
|
106
|
+
|
|
107
|
+
this.mutationObserver = new MutationObserver(this.mutation);
|
|
108
|
+
this.mutationObserver.observe(this.$refs.dom, {
|
|
109
|
+
characterData: true,
|
|
110
|
+
childList: true,
|
|
111
|
+
subtree: true
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
beforeDestroy: function beforeDestroy() {
|
|
115
|
+
this.mutationObserver && this.mutationObserver.unobserve(this.$refs.dom);
|
|
92
116
|
},
|
|
93
117
|
render: function render() {
|
|
94
118
|
var h = arguments[0];
|
|
95
119
|
return h("div", {
|
|
120
|
+
"ref": "dom",
|
|
96
121
|
"attrs": {
|
|
97
122
|
"role": "tab",
|
|
98
123
|
"aria-selected": this.isActive
|
package/es/tabs/index.js
CHANGED
|
@@ -375,7 +375,8 @@ export default createComponent({
|
|
|
375
375
|
"disabled": item.disabled,
|
|
376
376
|
"scrollable": scrollable,
|
|
377
377
|
"activeColor": _this8.titleActiveColor,
|
|
378
|
-
"inactiveColor": _this8.titleInactiveColor
|
|
378
|
+
"inactiveColor": _this8.titleInactiveColor,
|
|
379
|
+
"setLine": _this8.setLine
|
|
379
380
|
},
|
|
380
381
|
"style": item.titleStyle,
|
|
381
382
|
"class": item.titleClass,
|
|
@@ -398,11 +399,11 @@ export default createComponent({
|
|
|
398
399
|
});
|
|
399
400
|
});
|
|
400
401
|
var wrapStyle = {
|
|
401
|
-
borderBottom:
|
|
402
|
+
borderBottom: 'none'
|
|
402
403
|
};
|
|
403
404
|
|
|
404
405
|
if (type !== 'card' && this.divider) {
|
|
405
|
-
wrapStyle.borderBottom =
|
|
406
|
+
wrapStyle.borderBottom = '1px solid #eee';
|
|
406
407
|
}
|
|
407
408
|
|
|
408
409
|
var Wrap = h("div", {
|
package/lib/index.js
CHANGED
|
@@ -313,7 +313,7 @@ exports.Toast = _toast.default;
|
|
|
313
313
|
var _uploader = _interopRequireDefault(require("./uploader"));
|
|
314
314
|
|
|
315
315
|
exports.Uploader = _uploader.default;
|
|
316
|
-
var version = '2.0.
|
|
316
|
+
var version = '2.0.90';
|
|
317
317
|
exports.version = version;
|
|
318
318
|
|
|
319
319
|
function install(Vue) {
|
package/lib/tabs/Title.js
CHANGED
|
@@ -25,11 +25,17 @@ var _default = createComponent({
|
|
|
25
25
|
scrollable: Boolean,
|
|
26
26
|
activeColor: String,
|
|
27
27
|
inactiveColor: String,
|
|
28
|
+
setLine: Function,
|
|
28
29
|
maxWidth: {
|
|
29
30
|
type: String,
|
|
30
31
|
default: '112px'
|
|
31
32
|
}
|
|
32
33
|
},
|
|
34
|
+
data: function data() {
|
|
35
|
+
return {
|
|
36
|
+
mutationObserver: null
|
|
37
|
+
};
|
|
38
|
+
},
|
|
33
39
|
computed: {
|
|
34
40
|
style: function style() {
|
|
35
41
|
var style = {};
|
|
@@ -96,11 +102,30 @@ var _default = createComponent({
|
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
return Text;
|
|
105
|
+
},
|
|
106
|
+
mutation: function mutation() {
|
|
107
|
+
this.setLine();
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
mounted: function mounted() {
|
|
111
|
+
if (!this.$refs.dom) {
|
|
112
|
+
return;
|
|
99
113
|
}
|
|
114
|
+
|
|
115
|
+
this.mutationObserver = new MutationObserver(this.mutation);
|
|
116
|
+
this.mutationObserver.observe(this.$refs.dom, {
|
|
117
|
+
characterData: true,
|
|
118
|
+
childList: true,
|
|
119
|
+
subtree: true
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
beforeDestroy: function beforeDestroy() {
|
|
123
|
+
this.mutationObserver && this.mutationObserver.unobserve(this.$refs.dom);
|
|
100
124
|
},
|
|
101
125
|
render: function render() {
|
|
102
126
|
var h = arguments[0];
|
|
103
127
|
return h("div", {
|
|
128
|
+
"ref": "dom",
|
|
104
129
|
"attrs": {
|
|
105
130
|
"role": "tab",
|
|
106
131
|
"aria-selected": this.isActive
|
package/lib/tabs/index.js
CHANGED
|
@@ -395,7 +395,8 @@ var _default2 = createComponent({
|
|
|
395
395
|
"disabled": item.disabled,
|
|
396
396
|
"scrollable": scrollable,
|
|
397
397
|
"activeColor": _this8.titleActiveColor,
|
|
398
|
-
"inactiveColor": _this8.titleInactiveColor
|
|
398
|
+
"inactiveColor": _this8.titleInactiveColor,
|
|
399
|
+
"setLine": _this8.setLine
|
|
399
400
|
},
|
|
400
401
|
"style": item.titleStyle,
|
|
401
402
|
"class": item.titleClass,
|
|
@@ -418,11 +419,11 @@ var _default2 = createComponent({
|
|
|
418
419
|
});
|
|
419
420
|
});
|
|
420
421
|
var wrapStyle = {
|
|
421
|
-
borderBottom:
|
|
422
|
+
borderBottom: 'none'
|
|
422
423
|
};
|
|
423
424
|
|
|
424
425
|
if (type !== 'card' && this.divider) {
|
|
425
|
-
wrapStyle.borderBottom =
|
|
426
|
+
wrapStyle.borderBottom = '1px solid #eee';
|
|
426
427
|
}
|
|
427
428
|
|
|
428
429
|
var Wrap = h("div", {
|
package/lib/zart.js
CHANGED
|
@@ -7803,11 +7803,17 @@ var Title_createNamespace = Object(utils["b" /* createNamespace */])('tab'),
|
|
|
7803
7803
|
scrollable: Boolean,
|
|
7804
7804
|
activeColor: String,
|
|
7805
7805
|
inactiveColor: String,
|
|
7806
|
+
setLine: Function,
|
|
7806
7807
|
maxWidth: {
|
|
7807
7808
|
type: String,
|
|
7808
7809
|
default: '112px'
|
|
7809
7810
|
}
|
|
7810
7811
|
},
|
|
7812
|
+
data: function data() {
|
|
7813
|
+
return {
|
|
7814
|
+
mutationObserver: null
|
|
7815
|
+
};
|
|
7816
|
+
},
|
|
7811
7817
|
computed: {
|
|
7812
7818
|
style: function style() {
|
|
7813
7819
|
var style = {};
|
|
@@ -7874,11 +7880,30 @@ var Title_createNamespace = Object(utils["b" /* createNamespace */])('tab'),
|
|
|
7874
7880
|
}
|
|
7875
7881
|
|
|
7876
7882
|
return Text;
|
|
7883
|
+
},
|
|
7884
|
+
mutation: function mutation() {
|
|
7885
|
+
this.setLine();
|
|
7886
|
+
}
|
|
7887
|
+
},
|
|
7888
|
+
mounted: function mounted() {
|
|
7889
|
+
if (!this.$refs.dom) {
|
|
7890
|
+
return;
|
|
7877
7891
|
}
|
|
7892
|
+
|
|
7893
|
+
this.mutationObserver = new MutationObserver(this.mutation);
|
|
7894
|
+
this.mutationObserver.observe(this.$refs.dom, {
|
|
7895
|
+
characterData: true,
|
|
7896
|
+
childList: true,
|
|
7897
|
+
subtree: true
|
|
7898
|
+
});
|
|
7899
|
+
},
|
|
7900
|
+
beforeDestroy: function beforeDestroy() {
|
|
7901
|
+
this.mutationObserver && this.mutationObserver.unobserve(this.$refs.dom);
|
|
7878
7902
|
},
|
|
7879
7903
|
render: function render() {
|
|
7880
7904
|
var h = arguments[0];
|
|
7881
7905
|
return h("div", {
|
|
7906
|
+
"ref": "dom",
|
|
7882
7907
|
"attrs": {
|
|
7883
7908
|
"role": "tab",
|
|
7884
7909
|
"aria-selected": this.isActive
|
|
@@ -8692,7 +8717,8 @@ var tabs_createNamespace = Object(utils["b" /* createNamespace */])('tabs'),
|
|
|
8692
8717
|
"disabled": item.disabled,
|
|
8693
8718
|
"scrollable": scrollable,
|
|
8694
8719
|
"activeColor": _this8.titleActiveColor,
|
|
8695
|
-
"inactiveColor": _this8.titleInactiveColor
|
|
8720
|
+
"inactiveColor": _this8.titleInactiveColor,
|
|
8721
|
+
"setLine": _this8.setLine
|
|
8696
8722
|
},
|
|
8697
8723
|
"style": item.titleStyle,
|
|
8698
8724
|
"class": item.titleClass,
|
|
@@ -8715,11 +8741,11 @@ var tabs_createNamespace = Object(utils["b" /* createNamespace */])('tabs'),
|
|
|
8715
8741
|
});
|
|
8716
8742
|
});
|
|
8717
8743
|
var wrapStyle = {
|
|
8718
|
-
borderBottom:
|
|
8744
|
+
borderBottom: 'none'
|
|
8719
8745
|
};
|
|
8720
8746
|
|
|
8721
8747
|
if (type !== 'card' && this.divider) {
|
|
8722
|
-
wrapStyle.borderBottom =
|
|
8748
|
+
wrapStyle.borderBottom = '1px solid #eee';
|
|
8723
8749
|
}
|
|
8724
8750
|
|
|
8725
8751
|
var Wrap = h("div", {
|
|
@@ -34756,7 +34782,7 @@ var uploader_createNamespace = Object(utils["b" /* createNamespace */])('uploade
|
|
|
34756
34782
|
|
|
34757
34783
|
|
|
34758
34784
|
|
|
34759
|
-
var version = '2.0.
|
|
34785
|
+
var version = '2.0.90';
|
|
34760
34786
|
|
|
34761
34787
|
function install(Vue) {
|
|
34762
34788
|
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, text_ellipsis, timeline, es_toast, uploader];
|