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/es/calendar/style/index.js +1 -0
- package/es/calendar/style/less.js +1 -0
- package/es/datetime-picker/index.css +1 -0
- package/es/datetime-picker/index.js +302 -1
- package/es/datetime-picker/index.less +81 -0
- package/es/datetime-picker/shared.js +18 -5
- package/es/datetime-picker/style/index.js +3 -1
- package/es/datetime-picker/style/less.js +3 -1
- package/es/picker/index.js +43 -20
- package/lib/calendar/style/index.js +1 -0
- package/lib/calendar/style/less.js +1 -0
- package/lib/datetime-picker/index.css +1 -0
- package/lib/datetime-picker/index.js +308 -4
- package/lib/datetime-picker/index.less +81 -0
- package/lib/datetime-picker/shared.js +17 -4
- package/lib/datetime-picker/style/index.js +3 -1
- package/lib/datetime-picker/style/less.js +3 -1
- package/lib/index.css +1 -1
- package/lib/index.less +2 -1
- package/lib/picker/index.js +43 -20
- package/lib/zart.js +569 -232
- package/lib/zart.min.js +1 -1
- package/package.json +1 -1
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";
|
package/lib/picker/index.js
CHANGED
|
@@ -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
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
"
|
|
467
|
-
"
|
|
468
|
-
|
|
469
|
-
"
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
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
|
|