mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +01:00
chore(Switch): clean
This commit is contained in:
@@ -40,7 +40,6 @@ const emits = defineEmits<SwitchEmits>()
|
|||||||
const appConfig = useAppConfig()
|
const appConfig = useAppConfig()
|
||||||
const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultChecked', 'checked', 'required', 'value'), emits)
|
const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultChecked', 'checked', 'required', 'value'), emits)
|
||||||
|
|
||||||
|
|
||||||
const { inputId, emitFormChange, size, color, name, disabled } = useFormField<SwitchProps>(props)
|
const { inputId, emitFormChange, size, color, name, disabled } = useFormField<SwitchProps>(props)
|
||||||
|
|
||||||
const ui = computed(() => tv({ extend: switchTv, slots: props.ui })({
|
const ui = computed(() => tv({ extend: switchTv, slots: props.ui })({
|
||||||
|
|||||||
Reference in New Issue
Block a user