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 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
- 'zt-field--error-label': this.showErrorMessage
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
- 'zt-field--error-label': this.showErrorMessage
748
+ 'zt2-field--error-label': this.showErrorMessage
749
749
  }],
750
750
  "arrowDirection": this.arrowDirection,
751
751
  "noFlex": this.type === 'textarea',
@@ -91,6 +91,11 @@ export default createComponent({
91
91
  _this.loading = false;
92
92
  });
93
93
  }
94
+
95
+ this.$emit('clickNext', {
96
+ item: item,
97
+ index: index
98
+ });
94
99
  },
95
100
  selected: function selected(item) {
96
101
  this.$emit("selected", item);
@@ -44,7 +44,7 @@ export default createComponent({
44
44
  },
45
45
  transition: {
46
46
  type: String,
47
- default: 'zt-fade'
47
+ default: 'zt2-fade'
48
48
  },
49
49
  showIndex: {
50
50
  type: Boolean,
@@ -16,7 +16,7 @@ var defaultConfig = {
16
16
  closeable: false,
17
17
  closeIcon: 'clear',
18
18
  asyncClose: false,
19
- transition: 'zt-fade',
19
+ transition: 'zt2-fade',
20
20
  getContainer: 'body',
21
21
  startPosition: 0,
22
22
  swipeDuration: 300,
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.58';
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];
@@ -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('zt-overflow-hidden');
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('zt-overflow-hidden');
150
+ document.body.classList.remove('zt2-overflow-hidden');
151
151
  }
152
152
  }
153
153
  },
@@ -268,7 +268,7 @@ export default createComponent({
268
268
  }, [h("div", {
269
269
  "ref": "content",
270
270
  "class": [bem('content'), {
271
- 'zt-ellipsis': this.scrollable === false && !this.wrapable
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 ? 'zt-slide-up' : ''
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: 'zt-ellipsis',
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]))]);
@@ -324,7 +324,7 @@ export default createComponent({
324
324
 
325
325
  if (this.title) {
326
326
  return h("div", {
327
- "class": ['zt-ellipsis', bem('title')]
327
+ "class": ['zt2-ellipsis', bem('title')]
328
328
  }, [this.title]);
329
329
  }
330
330
  },
@@ -184,7 +184,7 @@ export default createComponent({
184
184
  "value": this.value,
185
185
  "overlay": this.overlay,
186
186
  "position": null,
187
- "transition": "zt-popover-zoom",
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
  },
@@ -473,7 +473,7 @@ export default createComponent({
473
473
  "name": "description"
474
474
  }
475
475
  }), h("div", {
476
- "class": [bem('file-name'), 'zt-ellipsis']
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'),
@@ -2,7 +2,7 @@
2
2
  export var RED = '#ee0a24';
3
3
  export var BLUE = '#0091FA'; // border
4
4
 
5
- export var BORDER = 'zt-hairline';
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";
@@ -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
- 'zt-field--error-label': this.showErrorMessage
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
- 'zt-field--error-label': this.showErrorMessage
764
+ 'zt2-field--error-label': this.showErrorMessage
765
765
  }],
766
766
  "arrowDirection": this.arrowDirection,
767
767
  "noFlex": this.type === 'textarea',
@@ -103,6 +103,11 @@ var _default2 = createComponent({
103
103
  _this.loading = false;
104
104
  });
105
105
  }
106
+
107
+ this.$emit('clickNext', {
108
+ item: item,
109
+ index: index
110
+ });
106
111
  },
107
112
  selected: function selected(item) {
108
113
  this.$emit("selected", item);
@@ -58,7 +58,7 @@ var _default2 = (0, _shared.createComponent)({
58
58
  },
59
59
  transition: {
60
60
  type: String,
61
- default: 'zt-fade'
61
+ default: 'zt2-fade'
62
62
  },
63
63
  showIndex: {
64
64
  type: Boolean,
@@ -27,7 +27,7 @@ var defaultConfig = {
27
27
  closeable: false,
28
28
  closeIcon: 'clear',
29
29
  asyncClose: false,
30
- transition: 'zt-fade',
30
+ transition: 'zt2-fade',
31
31
  getContainer: 'body',
32
32
  startPosition: 0,
33
33
  swipeDuration: 300,
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.58';
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('zt-overflow-hidden');
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('zt-overflow-hidden');
166
+ document.body.classList.remove('zt2-overflow-hidden');
167
167
  }
168
168
  }
169
169
  },
@@ -284,7 +284,7 @@ var _default = createComponent({
284
284
  }, [h("div", {
285
285
  "ref": "content",
286
286
  "class": [bem('content'), {
287
- 'zt-ellipsis': this.scrollable === false && !this.wrapable
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 ? 'zt-slide-up' : ''
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: 'zt-ellipsis',
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]))]);
@@ -340,7 +340,7 @@ var _default2 = createComponent({
340
340
 
341
341
  if (this.title) {
342
342
  return h("div", {
343
- "class": ['zt-ellipsis', bem('title')]
343
+ "class": ['zt2-ellipsis', bem('title')]
344
344
  }, [this.title]);
345
345
  }
346
346
  },
@@ -197,7 +197,7 @@ var _default2 = createComponent({
197
197
  "value": this.value,
198
198
  "overlay": this.overlay,
199
199
  "position": null,
200
- "transition": "zt-popover-zoom",
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
  },
@@ -489,7 +489,7 @@ var _default2 = createComponent({
489
489
  "name": "description"
490
490
  }
491
491
  }), h("div", {
492
- "class": [bem('file-name'), 'zt-ellipsis']
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'),
@@ -8,7 +8,7 @@ exports.RED = RED;
8
8
  var BLUE = '#0091FA'; // border
9
9
 
10
10
  exports.BLUE = BLUE;
11
- var BORDER = 'zt-hairline';
11
+ var BORDER = 'zt2-hairline';
12
12
  exports.BORDER = BORDER;
13
13
  var BORDER_RIGHT = BORDER + "--right";
14
14
  exports.BORDER_RIGHT = BORDER_RIGHT;