@@ -31,11 +31,6 @@ export interface InputTimeProps extends Omit<TimeFieldRootProps, 'as' | 'asChild
3131 highlight? : boolean
3232 autofocus? : boolean
3333 autofocusDelay? : number
34- /**
35- * The locale to use for formatting and parsing numbers.
36- * @defaultValue UApp.locale.code
37- */
38- locale? : string
3934 class? : any
4035 ui? : InputTime [' slots' ]
4136}
@@ -61,7 +56,6 @@ import { useAppConfig } from '#imports'
6156import { useFieldGroup } from ' ../composables/useFieldGroup'
6257import { useComponentIcons } from ' ../composables/useComponentIcons'
6358import { useFormField } from ' ../composables/useFormField'
64- import { useLocale } from ' ../composables/useLocale'
6559import { tv } from ' ../utils/tv'
6660import UIcon from ' ./Icon.vue'
6761import UAvatar from ' ./Avatar.vue'
@@ -72,16 +66,14 @@ const props = withDefaults(defineProps<InputTimeProps>(), {
7266const emits = defineEmits <InputTimeEmits >()
7367const slots = defineSlots <InputTimeSlots >()
7468
75- const { code : codeLocale, dir } = useLocale ()
7669const appConfig = useAppConfig () as InputTime [' AppConfig' ]
7770
78- const rootProps = useForwardPropsEmits (reactiveOmit (props , ' id' , ' name' , ' color' , ' variant' , ' size' , ' highlight' , ' disabled' , ' autofocus' , ' autofocusDelay' , ' locale ' , ' icon' , ' avatar' , ' leading' , ' leadingIcon' , ' trailing' , ' trailingIcon' , ' loading' , ' loadingIcon' , ' class' , ' ui' ), emits )
71+ const rootProps = useForwardPropsEmits (reactiveOmit (props , ' id' , ' name' , ' color' , ' variant' , ' size' , ' highlight' , ' disabled' , ' autofocus' , ' autofocusDelay' , ' icon' , ' avatar' , ' leading' , ' leadingIcon' , ' trailing' , ' trailingIcon' , ' loading' , ' loadingIcon' , ' class' , ' ui' ), emits )
7972
8073const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size : formGroupSize, name, highlight, disabled, ariaAttrs } = useFormField <InputTimeProps >(props )
8174const { orientation, size : fieldGroupSize } = useFieldGroup <InputTimeProps >(props )
8275const { isLeading, isTrailing, leadingIconName, trailingIconName } = useComponentIcons (props )
8376
84- const locale = computed (() => props .locale || codeLocale .value )
8577const inputSize = computed (() => fieldGroupSize .value || formGroupSize .value )
8678
8779const ui = computed (() => tv ({ extend: tv (theme ), ... (appConfig .ui ?.inputTime || {}) })({
@@ -140,8 +132,6 @@ defineExpose({
140132 v-slot =" { segments }"
141133 :name =" name"
142134 :disabled =" disabled"
143- :locale =" locale"
144- :dir =" dir"
145135 :class =" ui.base({ class: [props.ui?.base, props.class] })"
146136 @update:model-value =" onUpdate"
147137 @blur =" onBlur"
0 commit comments