@simsustech/quasar-components 0.5.0 → 0.5.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/CHANGELOG.md +6 -0
- package/dist/form.js +6 -2
- package/dist/style.css +3 -0
- package/package.json +1 -1
- package/src/ui/form/DateInput.vue +11 -1
package/CHANGELOG.md
CHANGED
package/dist/form.js
CHANGED
|
@@ -352,6 +352,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
352
352
|
const nr = Number(val);
|
|
353
353
|
if (nr && nr > 1e3 && nr < 1e4)
|
|
354
354
|
year.value = nr;
|
|
355
|
+
else
|
|
356
|
+
year.value = void 0;
|
|
355
357
|
};
|
|
356
358
|
const setMonth = (val) => {
|
|
357
359
|
const nr = Number(val);
|
|
@@ -471,7 +473,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
471
473
|
return openBlock(), createBlock(_component_q_field, {
|
|
472
474
|
"model-value": unref(modelValue),
|
|
473
475
|
"bottom-slots": "",
|
|
474
|
-
rules: validations.value
|
|
476
|
+
rules: validations.value,
|
|
477
|
+
label: _ctx.label,
|
|
478
|
+
"stack-label": ""
|
|
475
479
|
}, {
|
|
476
480
|
control: withCtx(() => [
|
|
477
481
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(format).split("-"), (part) => {
|
|
@@ -533,7 +537,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
533
537
|
})
|
|
534
538
|
]),
|
|
535
539
|
_: 1
|
|
536
|
-
}, 8, ["model-value", "rules"]);
|
|
540
|
+
}, 8, ["model-value", "rules", "label"]);
|
|
537
541
|
};
|
|
538
542
|
}
|
|
539
543
|
});
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-field
|
|
2
|
+
<q-field
|
|
3
|
+
:model-value="modelValue"
|
|
4
|
+
bottom-slots
|
|
5
|
+
:rules="validations"
|
|
6
|
+
:label="label"
|
|
7
|
+
stack-label
|
|
8
|
+
>
|
|
3
9
|
<template #control>
|
|
4
10
|
<component
|
|
5
11
|
:is="QInput"
|
|
@@ -86,6 +92,7 @@ const setYear: InstanceType<typeof QInput>['$props']['onUpdate:modelValue'] = (
|
|
|
86
92
|
) => {
|
|
87
93
|
const nr = Number(val)
|
|
88
94
|
if (nr && nr > 1e3 && nr < 1e4) year.value = nr
|
|
95
|
+
else year.value = undefined
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
const setMonth: InstanceType<typeof QInput>['$props']['onUpdate:modelValue'] = (
|
|
@@ -224,4 +231,7 @@ if (props.required)
|
|
|
224
231
|
.q-field--standard.q-field--dense .q-field__control {
|
|
225
232
|
padding-top: 0;
|
|
226
233
|
}
|
|
234
|
+
.q-field--auto-height.q-field--labeled .q-field__control-container {
|
|
235
|
+
padding-top: 13px;
|
|
236
|
+
}
|
|
227
237
|
</style>
|