zartui 2.0.58 → 2.0.60
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/field/index.js +2 -2
- package/es/hierarchy-select/index.js +5 -0
- package/es/image-preview/ImagePreview.js +1 -1
- package/es/image-preview/index.js +1 -1
- package/es/index.js +1 -1
- package/es/mixins/popup/index.js +2 -2
- package/es/notice-bar/index.js +1 -1
- package/es/number-keyboard/index.js +1 -1
- package/es/picker/PickerColumn.js +1 -1
- package/es/picker/index.js +1 -1
- package/es/popover/index.js +1 -1
- package/es/tabs/Title.js +5 -1
- package/es/uploader/index.js +1 -1
- package/es/utils/constant.js +1 -1
- package/lib/field/index.js +2 -2
- package/lib/hierarchy-select/index.js +5 -0
- package/lib/image-preview/ImagePreview.js +1 -1
- package/lib/image-preview/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/mixins/popup/index.js +2 -2
- package/lib/notice-bar/index.js +1 -1
- package/lib/number-keyboard/index.js +1 -1
- package/lib/picker/PickerColumn.js +1 -1
- package/lib/picker/index.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/tabs/Title.js +5 -1
- package/lib/uploader/index.js +1 -1
- package/lib/utils/constant.js +1 -1
- package/lib/zart.js +2424 -1476
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
package/es/field/index.js
CHANGED
|
@@ -670,7 +670,7 @@ export default createComponent({
|
|
|
670
670
|
"titleStyle": this.labelStyle,
|
|
671
671
|
"valueClass": bem('value'),
|
|
672
672
|
"titleClass": [bem('label', labelAlign), this.labelClass, {
|
|
673
|
-
'
|
|
673
|
+
'zt2-field--error-label': this.showErrorMessage
|
|
674
674
|
}],
|
|
675
675
|
"arrowDirection": this.arrowDirection,
|
|
676
676
|
"noFlex": this.type === 'textarea',
|
|
@@ -745,7 +745,7 @@ export default createComponent({
|
|
|
745
745
|
"titleStyle": this.labelStyle,
|
|
746
746
|
"valueClass": bem('value'),
|
|
747
747
|
"titleClass": [bem('label', labelAlign), this.labelClass, {
|
|
748
|
-
'
|
|
748
|
+
'zt2-field--error-label': this.showErrorMessage
|
|
749
749
|
}],
|
|
750
750
|
"arrowDirection": this.arrowDirection,
|
|
751
751
|
"noFlex": this.type === 'textarea',
|
package/es/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import Tag from './tag';
|
|
|
74
74
|
import Timeline from './timeline';
|
|
75
75
|
import Toast from './toast';
|
|
76
76
|
import Uploader from './uploader';
|
|
77
|
-
var version = '2.0.
|
|
77
|
+
var version = '2.0.60';
|
|
78
78
|
|
|
79
79
|
function install(Vue) {
|
|
80
80
|
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, Timeline, Toast, Uploader];
|
package/es/mixins/popup/index.js
CHANGED
|
@@ -134,7 +134,7 @@ export function PopupMixin(options) {
|
|
|
134
134
|
on(document, 'touchmove', this.onTouchMove);
|
|
135
135
|
|
|
136
136
|
if (!context.lockCount) {
|
|
137
|
-
document.body.classList.add('
|
|
137
|
+
document.body.classList.add('zt2-overflow-hidden');
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
context.lockCount++;
|
|
@@ -147,7 +147,7 @@ export function PopupMixin(options) {
|
|
|
147
147
|
off(document, 'touchmove', this.onTouchMove);
|
|
148
148
|
|
|
149
149
|
if (!context.lockCount) {
|
|
150
|
-
document.body.classList.remove('
|
|
150
|
+
document.body.classList.remove('zt2-overflow-hidden');
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
},
|
package/es/notice-bar/index.js
CHANGED
|
@@ -268,7 +268,7 @@ export default createComponent({
|
|
|
268
268
|
}, [h("div", {
|
|
269
269
|
"ref": "content",
|
|
270
270
|
"class": [bem('content'), {
|
|
271
|
-
'
|
|
271
|
+
'zt2-ellipsis': this.scrollable === false && !this.wrapable
|
|
272
272
|
}],
|
|
273
273
|
"style": contentStyle,
|
|
274
274
|
"on": {
|
|
@@ -244,7 +244,7 @@ export default createComponent({
|
|
|
244
244
|
var Title = this.genTitle();
|
|
245
245
|
return h("transition", {
|
|
246
246
|
"attrs": {
|
|
247
|
-
"name": this.transition ? '
|
|
247
|
+
"name": this.transition ? 'zt2-slide-up' : ''
|
|
248
248
|
}
|
|
249
249
|
}, [h("div", {
|
|
250
250
|
"directives": [{
|
|
@@ -321,7 +321,7 @@ export default createComponent({
|
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
var childData = {
|
|
324
|
-
class: '
|
|
324
|
+
class: 'zt2-ellipsis',
|
|
325
325
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? 'innerHTML' : 'textContent'] = text, _domProps)
|
|
326
326
|
};
|
|
327
327
|
return h("li", _mergeJSXProps2([{}, data]), [_this4.slots('option', option) || h("div", _mergeJSXProps([{}, childData]))]);
|
package/es/picker/index.js
CHANGED
package/es/popover/index.js
CHANGED
|
@@ -184,7 +184,7 @@ export default createComponent({
|
|
|
184
184
|
"value": this.value,
|
|
185
185
|
"overlay": this.overlay,
|
|
186
186
|
"position": null,
|
|
187
|
-
"transition": "
|
|
187
|
+
"transition": "zt2-popover-zoom",
|
|
188
188
|
"lockScroll": false,
|
|
189
189
|
"getContainer": this.getContainer
|
|
190
190
|
},
|
package/es/tabs/Title.js
CHANGED
|
@@ -45,9 +45,13 @@ export default createComponent({
|
|
|
45
45
|
|
|
46
46
|
if (titleColor) {
|
|
47
47
|
style.color = titleColor;
|
|
48
|
+
} // 可滚动的tabs,不对元素宽度进行限制
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if (!this.scrollable) {
|
|
52
|
+
style.maxWidth = this.maxWidth;
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
style.maxWidth = this.maxWidth;
|
|
51
55
|
return style;
|
|
52
56
|
}
|
|
53
57
|
},
|
package/es/uploader/index.js
CHANGED
|
@@ -473,7 +473,7 @@ export default createComponent({
|
|
|
473
473
|
"name": "description"
|
|
474
474
|
}
|
|
475
475
|
}), h("div", {
|
|
476
|
-
"class": [bem('file-name'), '
|
|
476
|
+
"class": [bem('file-name'), 'zt2-ellipsis']
|
|
477
477
|
}, [item.file ? item.file.name : item.url]), PreviewCover]);
|
|
478
478
|
return h("div", {
|
|
479
479
|
"class": bem('preview'),
|
package/es/utils/constant.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export var RED = '#ee0a24';
|
|
3
3
|
export var BLUE = '#0091FA'; // border
|
|
4
4
|
|
|
5
|
-
export var BORDER = '
|
|
5
|
+
export var BORDER = 'zt2-hairline';
|
|
6
6
|
export var BORDER_RIGHT = BORDER + "--right";
|
|
7
7
|
export var BORDER_TOP = BORDER + "--top";
|
|
8
8
|
export var BORDER_LEFT = BORDER + "--left";
|
package/lib/field/index.js
CHANGED
|
@@ -686,7 +686,7 @@ var _default = createComponent({
|
|
|
686
686
|
"titleStyle": this.labelStyle,
|
|
687
687
|
"valueClass": bem('value'),
|
|
688
688
|
"titleClass": [bem('label', labelAlign), this.labelClass, {
|
|
689
|
-
'
|
|
689
|
+
'zt2-field--error-label': this.showErrorMessage
|
|
690
690
|
}],
|
|
691
691
|
"arrowDirection": this.arrowDirection,
|
|
692
692
|
"noFlex": this.type === 'textarea',
|
|
@@ -761,7 +761,7 @@ var _default = createComponent({
|
|
|
761
761
|
"titleStyle": this.labelStyle,
|
|
762
762
|
"valueClass": bem('value'),
|
|
763
763
|
"titleClass": [bem('label', labelAlign), this.labelClass, {
|
|
764
|
-
'
|
|
764
|
+
'zt2-field--error-label': this.showErrorMessage
|
|
765
765
|
}],
|
|
766
766
|
"arrowDirection": this.arrowDirection,
|
|
767
767
|
"noFlex": this.type === 'textarea',
|
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.60';
|
|
313
313
|
exports.version = version;
|
|
314
314
|
|
|
315
315
|
function install(Vue) {
|
|
@@ -150,7 +150,7 @@ function PopupMixin(options) {
|
|
|
150
150
|
(0, _event.on)(document, 'touchmove', this.onTouchMove);
|
|
151
151
|
|
|
152
152
|
if (!_context.context.lockCount) {
|
|
153
|
-
document.body.classList.add('
|
|
153
|
+
document.body.classList.add('zt2-overflow-hidden');
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
_context.context.lockCount++;
|
|
@@ -163,7 +163,7 @@ function PopupMixin(options) {
|
|
|
163
163
|
(0, _event.off)(document, 'touchmove', this.onTouchMove);
|
|
164
164
|
|
|
165
165
|
if (!_context.context.lockCount) {
|
|
166
|
-
document.body.classList.remove('
|
|
166
|
+
document.body.classList.remove('zt2-overflow-hidden');
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
package/lib/notice-bar/index.js
CHANGED
|
@@ -284,7 +284,7 @@ var _default = createComponent({
|
|
|
284
284
|
}, [h("div", {
|
|
285
285
|
"ref": "content",
|
|
286
286
|
"class": [bem('content'), {
|
|
287
|
-
'
|
|
287
|
+
'zt2-ellipsis': this.scrollable === false && !this.wrapable
|
|
288
288
|
}],
|
|
289
289
|
"style": contentStyle,
|
|
290
290
|
"on": {
|
|
@@ -255,7 +255,7 @@ var _default = createComponent({
|
|
|
255
255
|
var Title = this.genTitle();
|
|
256
256
|
return h("transition", {
|
|
257
257
|
"attrs": {
|
|
258
|
-
"name": this.transition ? '
|
|
258
|
+
"name": this.transition ? 'zt2-slide-up' : ''
|
|
259
259
|
}
|
|
260
260
|
}, [h("div", {
|
|
261
261
|
"directives": [{
|
|
@@ -336,7 +336,7 @@ var _default2 = createComponent({
|
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
var childData = {
|
|
339
|
-
class: '
|
|
339
|
+
class: 'zt2-ellipsis',
|
|
340
340
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? 'innerHTML' : 'textContent'] = text, _domProps)
|
|
341
341
|
};
|
|
342
342
|
return h("li", (0, _babelHelperVueJsxMergeProps.default)([{}, data]), [_this4.slots('option', option) || h("div", (0, _babelHelperVueJsxMergeProps.default)([{}, childData]))]);
|
package/lib/picker/index.js
CHANGED
package/lib/popover/index.js
CHANGED
|
@@ -197,7 +197,7 @@ var _default2 = createComponent({
|
|
|
197
197
|
"value": this.value,
|
|
198
198
|
"overlay": this.overlay,
|
|
199
199
|
"position": null,
|
|
200
|
-
"transition": "
|
|
200
|
+
"transition": "zt2-popover-zoom",
|
|
201
201
|
"lockScroll": false,
|
|
202
202
|
"getContainer": this.getContainer
|
|
203
203
|
},
|
package/lib/tabs/Title.js
CHANGED
|
@@ -53,9 +53,13 @@ var _default = createComponent({
|
|
|
53
53
|
|
|
54
54
|
if (titleColor) {
|
|
55
55
|
style.color = titleColor;
|
|
56
|
+
} // 可滚动的tabs,不对元素宽度进行限制
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
if (!this.scrollable) {
|
|
60
|
+
style.maxWidth = this.maxWidth;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
style.maxWidth = this.maxWidth;
|
|
59
63
|
return style;
|
|
60
64
|
}
|
|
61
65
|
},
|
package/lib/uploader/index.js
CHANGED
|
@@ -489,7 +489,7 @@ var _default2 = createComponent({
|
|
|
489
489
|
"name": "description"
|
|
490
490
|
}
|
|
491
491
|
}), h("div", {
|
|
492
|
-
"class": [bem('file-name'), '
|
|
492
|
+
"class": [bem('file-name'), 'zt2-ellipsis']
|
|
493
493
|
}, [item.file ? item.file.name : item.url]), PreviewCover]);
|
|
494
494
|
return h("div", {
|
|
495
495
|
"class": bem('preview'),
|
package/lib/utils/constant.js
CHANGED