paas-component-library 0.9.80 → 0.9.81
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/dist/paas-ui.js +24 -22
- package/dist/paas-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/paas-ui.js
CHANGED
|
@@ -30468,7 +30468,8 @@ const Ice = {
|
|
|
30468
30468
|
default: !1
|
|
30469
30469
|
},
|
|
30470
30470
|
modelValue: {
|
|
30471
|
-
type:
|
|
30471
|
+
type: Object,
|
|
30472
|
+
default: () => ({ start: null, end: null })
|
|
30472
30473
|
},
|
|
30473
30474
|
showTime: {
|
|
30474
30475
|
type: Boolean,
|
|
@@ -30478,34 +30479,35 @@ const Ice = {
|
|
|
30478
30479
|
type: String,
|
|
30479
30480
|
default: "YYYY-MM-DD"
|
|
30480
30481
|
},
|
|
30481
|
-
textWidth: {
|
|
30482
|
+
textWidth: {
|
|
30483
|
+
type: Number,
|
|
30484
|
+
default: null
|
|
30485
|
+
},
|
|
30482
30486
|
isJoin: {
|
|
30483
30487
|
type: Boolean,
|
|
30484
30488
|
default: !1
|
|
30485
30489
|
}
|
|
30486
30490
|
},
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30490
|
-
|
|
30491
|
-
|
|
30492
|
-
|
|
30493
|
-
|
|
30494
|
-
immediate: !0,
|
|
30495
|
-
handler(r) {
|
|
30496
|
-
Array.isArray(r) && r.length === 2 ? this.value = [La(r[0]), La(r[1])] : this.value = [];
|
|
30497
|
-
}
|
|
30491
|
+
computed: {
|
|
30492
|
+
parsedValue() {
|
|
30493
|
+
const { start: r, end: e } = this.modelValue || {};
|
|
30494
|
+
return {
|
|
30495
|
+
start: r ? La(r) : null,
|
|
30496
|
+
end: e ? La(e) : null
|
|
30497
|
+
};
|
|
30498
30498
|
}
|
|
30499
30499
|
},
|
|
30500
30500
|
methods: {
|
|
30501
30501
|
handleChange(r) {
|
|
30502
30502
|
if (!r || r.length !== 2) {
|
|
30503
|
-
this.$emit("update:modelValue",
|
|
30503
|
+
this.$emit("update:modelValue", { start: null, end: null });
|
|
30504
30504
|
return;
|
|
30505
30505
|
}
|
|
30506
|
-
|
|
30507
|
-
|
|
30508
|
-
|
|
30506
|
+
let [e, t] = r, n = e.format(this.format), a = t.format(this.format);
|
|
30507
|
+
this.isJoin && (n += " 00:00:00", a += " 23:59:59"), this.$emit("update:modelValue", {
|
|
30508
|
+
start: n,
|
|
30509
|
+
end: a
|
|
30510
|
+
});
|
|
30509
30511
|
}
|
|
30510
30512
|
}
|
|
30511
30513
|
};
|
|
@@ -30518,21 +30520,21 @@ function Rce(r, e, t, n, a, f) {
|
|
|
30518
30520
|
O(b, {
|
|
30519
30521
|
label: t.label,
|
|
30520
30522
|
name: t.name,
|
|
30521
|
-
"label-col": { style: { width: t.textWidth
|
|
30523
|
+
"label-col": { style: { width: t.textWidth || f.labelWidth } },
|
|
30522
30524
|
"wrapper-col": { style: { flex: 1 } }
|
|
30523
30525
|
}, {
|
|
30524
30526
|
default: Ee(() => [
|
|
30525
30527
|
O(h, {
|
|
30526
|
-
value:
|
|
30528
|
+
value: [f.parsedValue.start, f.parsedValue.end],
|
|
30527
30529
|
"show-time": t.showTime,
|
|
30528
30530
|
readonly: t.readonly,
|
|
30529
30531
|
disabled: t.disabled,
|
|
30530
30532
|
format: t.format,
|
|
30531
30533
|
picker: t.type,
|
|
30532
|
-
onChange: f.handleChange,
|
|
30533
30534
|
placeholder: t.placeholder,
|
|
30534
|
-
style: { width: "100%" }
|
|
30535
|
-
|
|
30535
|
+
style: { width: "100%" },
|
|
30536
|
+
onChange: f.handleChange
|
|
30537
|
+
}, null, 8, ["value", "show-time", "readonly", "disabled", "format", "picker", "placeholder", "onChange"])
|
|
30536
30538
|
]),
|
|
30537
30539
|
_: 1
|
|
30538
30540
|
}, 8, ["label", "name", "label-col"])
|