zartui 2.0.89 → 2.0.91-beta.1

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/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.89';
316
+ var version = '2.0.90';
317
317
  exports.version = version;
318
318
 
319
319
  function install(Vue) {
package/lib/index.less CHANGED
@@ -29,8 +29,9 @@
29
29
  @import "./dialog/index.less";
30
30
  @import "./text-ellipsis/index.less";
31
31
  @import "./table/index.less";
32
- @import "./calendar/index.less";
33
32
  @import "./picker/index.less";
33
+ @import "./datetime-picker/index.less";
34
+ @import "./calendar/index.less";
34
35
  @import "./action-sheet/index.less";
35
36
  @import "./avatar/index.less";
36
37
  @import "./back-top/index.less";
@@ -64,6 +64,10 @@ var _default2 = createComponent({
64
64
  valueKey: {
65
65
  type: String,
66
66
  default: 'text'
67
+ },
68
+ popup: {
69
+ type: Boolean,
70
+ default: true
67
71
  }
68
72
  }),
69
73
  data: function data() {
@@ -326,6 +330,15 @@ var _default2 = createComponent({
326
330
  });
327
331
  this.emit('confirm');
328
332
  },
333
+ // @exposed-api
334
+ pureRecordConfirmIndex: function pureRecordConfirmIndex() {
335
+ this.children.forEach(function (child) {
336
+ return child.stopMomentum();
337
+ });
338
+ this.children.forEach(function (child) {
339
+ return child.recordConfirmIndex();
340
+ });
341
+ },
329
342
  cancel: function cancel() {
330
343
  this.$emit('update:showPicker', false);
331
344
  this.emit('cancel');
@@ -459,26 +472,36 @@ var _default2 = createComponent({
459
472
  }
460
473
  },
461
474
  render: function render(h) {
462
- return h(_popup.default, {
463
- "attrs": {
464
- "value": this.showPicker,
465
- "round": true,
466
- "position": "bottom",
467
- "closeOnPopstate": this.closeOnPopstate,
468
- "closeOnClickOverlay": this.closeOnClickOverlay,
469
- "customOnClickOverlay": this.onClickOverlay,
470
- "getContainer": this.getContainer
471
- }
472
- }, [h("div", {
473
- "class": bem(),
474
- "ref": 'columnParent'
475
- }, [this.toolbarPosition === 'top' ? this.genToolbar() : h(), this.toolbarPosition === 'top' ? h() : this.genTitle(), this.toolbarPosition === 'top' ? h("div", {
476
- "class": bem('border')
477
- }) : h(), this.loading ? h(_loading.default, {
478
- "class": bem('loading')
479
- }) : h(), this.slots('columns-top'), this.headers && this.headers.length > 0 ? this.genHeaders() : h(), this.headers && this.headers.length > 0 ? h("div", {
480
- "class": bem('border')
481
- }) : h(), this.genColumns(), this.slots('columns-bottom'), this.toolbarPosition === 'bottom' ? this.genToolbar() : h()])]);
475
+ var _this7 = this;
476
+
477
+ var renderPicker = function renderPicker() {
478
+ return h("div", {
479
+ "class": bem(),
480
+ "ref": "columnParent"
481
+ }, [_this7.toolbarPosition === 'top' ? _this7.genToolbar() : h(), _this7.toolbarPosition === 'top' ? h() : _this7.genTitle(), _this7.toolbarPosition === 'top' ? h("div", {
482
+ "class": bem('border')
483
+ }) : h(), _this7.loading ? h(_loading.default, {
484
+ "class": bem('loading')
485
+ }) : h(), _this7.slots('columns-top'), _this7.headers && _this7.headers.length > 0 ? _this7.genHeaders() : h(), _this7.headers && _this7.headers.length > 0 ? h("div", {
486
+ "class": bem('border')
487
+ }) : h(), _this7.genColumns(), _this7.slots('columns-bottom'), _this7.toolbarPosition === 'bottom' ? _this7.genToolbar() : h()]);
488
+ };
489
+
490
+ if (this.popup) {
491
+ return h(_popup.default, {
492
+ "attrs": {
493
+ "value": this.showPicker,
494
+ "round": true,
495
+ "position": "bottom",
496
+ "closeOnPopstate": this.closeOnPopstate,
497
+ "closeOnClickOverlay": this.closeOnClickOverlay,
498
+ "customOnClickOverlay": this.onClickOverlay,
499
+ "getContainer": this.getContainer
500
+ }
501
+ }, [renderPicker()]);
502
+ }
503
+
504
+ return renderPicker();
482
505
  }
483
506
  });
484
507
 
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: "none"
422
+ borderBottom: 'none'
422
423
  };
423
424
 
424
425
  if (type !== 'card' && this.divider) {
425
- wrapStyle.borderBottom = "1px solid #eee";
426
+ wrapStyle.borderBottom = '1px solid #eee';
426
427
  }
427
428
 
428
429
  var Wrap = h("div", {