zartui 2.0.90 → 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.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