design-system-next 2.5.0 → 2.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.
|
@@ -15558,6 +15558,10 @@ const Z9 = (e) => ({
|
|
|
15558
15558
|
helperText: {
|
|
15559
15559
|
type: String,
|
|
15560
15560
|
default: ""
|
|
15561
|
+
},
|
|
15562
|
+
placeholder: {
|
|
15563
|
+
type: String,
|
|
15564
|
+
default: ""
|
|
15561
15565
|
}
|
|
15562
15566
|
}, A7 = {
|
|
15563
15567
|
"update:modelValue": (e) => e instanceof MouseEvent
|
|
@@ -15586,7 +15590,7 @@ const Z9 = (e) => ({
|
|
|
15586
15590
|
return `${v.toString().padStart(2, "0")}:${m}`;
|
|
15587
15591
|
}, f = _(() => p()), M = _(() => f.value), h = (C) => {
|
|
15588
15592
|
o.value = C;
|
|
15589
|
-
}, N = _(() => r.value === "12" ? "HH : MM AM/PM" : "HH : MM");
|
|
15593
|
+
}, N = _(() => e.placeholder ? e.placeholder : r.value === "12" ? "HH : MM AM/PM" : "HH : MM");
|
|
15590
15594
|
return {
|
|
15591
15595
|
optionClasses: u,
|
|
15592
15596
|
filteredOptions: M,
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -51,6 +51,10 @@ export const timePickerPropTypes = {
|
|
|
51
51
|
type: String,
|
|
52
52
|
default: '',
|
|
53
53
|
},
|
|
54
|
+
placeholder: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: '',
|
|
57
|
+
},
|
|
54
58
|
};
|
|
55
59
|
export const timePickerEmitTypes = {
|
|
56
60
|
'update:modelValue': (evt: MouseEvent): evt is MouseEvent => evt instanceof MouseEvent,
|
|
@@ -75,6 +75,8 @@ export const useTimePicker = (props: TimePickerPropTypes, emit: SetupContext<Tim
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
const getPlaceHolder: ComputedRef<string> = computed(() => {
|
|
78
|
+
if (props.placeholder) return props.placeholder;
|
|
79
|
+
|
|
78
80
|
return format.value === '12' ? 'HH : MM AM/PM' : 'HH : MM';
|
|
79
81
|
});
|
|
80
82
|
|