File tree 4 files changed +6
-14
lines changed
packages/vuetify/src/components
4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ import {
25
25
EventProp ,
26
26
genericComponent ,
27
27
getUid ,
28
- isOn ,
29
28
nullifyTransforms ,
30
- pick ,
31
29
propsFactory ,
32
30
standardEasing ,
33
31
useRender ,
@@ -407,9 +405,3 @@ export const VField = genericComponent<new <T>(
407
405
} )
408
406
409
407
export type VField = InstanceType < typeof VField >
410
-
411
- // TODO: this is kinda slow, might be better to implicitly inherit props instead
412
- export function filterFieldProps ( attrs : Record < string , unknown > ) {
413
- const keys = Object . keys ( VField . props ) . filter ( k => ! isOn ( k ) && k !== 'class' && k !== 'style' )
414
- return pick ( attrs , keys )
415
- }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import './VFileInput.sass'
5
5
import { VChip } from '@/components/VChip'
6
6
import { VCounter } from '@/components/VCounter'
7
7
import { VField } from '@/components/VField'
8
- import { filterFieldProps , makeVFieldProps } from '@/components/VField/VField'
8
+ import { makeVFieldProps } from '@/components/VField/VField'
9
9
import { makeVInputProps , VInput } from '@/components/VInput/VInput'
10
10
11
11
// Composables
@@ -179,7 +179,7 @@ export const VFileInput = genericComponent<VFileInputSlots>()({
179
179
const hasDetails = ! ! ( hasCounter || slots . details )
180
180
const [ rootAttrs , inputAttrs ] = filterInputAttrs ( attrs )
181
181
const { modelValue : _ , ...inputProps } = VInput . filterProps ( props )
182
- const fieldProps = filterFieldProps ( props )
182
+ const fieldProps = VField . filterProps ( props )
183
183
184
184
return (
185
185
< VInput
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import './VTextField.sass'
3
3
4
4
// Components
5
5
import { VCounter } from '@/components/VCounter/VCounter'
6
- import { filterFieldProps , makeVFieldProps , VField } from '@/components/VField/VField'
6
+ import { makeVFieldProps , VField } from '@/components/VField/VField'
7
7
import { makeVInputProps , VInput } from '@/components/VInput/VInput'
8
8
9
9
// Composables
@@ -158,7 +158,7 @@ export const VTextField = genericComponent<VTextFieldSlots>()({
158
158
const hasDetails = ! ! ( hasCounter || slots . details )
159
159
const [ rootAttrs , inputAttrs ] = filterInputAttrs ( attrs )
160
160
const { modelValue : _ , ...inputProps } = VInput . filterProps ( props )
161
- const fieldProps = filterFieldProps ( props )
161
+ const fieldProps = VField . filterProps ( props )
162
162
163
163
return (
164
164
< VInput
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import '../VTextField/VTextField.sass'
5
5
// Components
6
6
import { VCounter } from '@/components/VCounter/VCounter'
7
7
import { VField } from '@/components/VField'
8
- import { filterFieldProps , makeVFieldProps } from '@/components/VField/VField'
8
+ import { makeVFieldProps } from '@/components/VField/VField'
9
9
import { makeVInputProps , VInput } from '@/components/VInput/VInput'
10
10
11
11
// Composables
@@ -206,7 +206,7 @@ export const VTextarea = genericComponent<VTextareaSlots>()({
206
206
const hasDetails = ! ! ( hasCounter || slots . details )
207
207
const [ rootAttrs , inputAttrs ] = filterInputAttrs ( attrs )
208
208
const { modelValue : _ , ...inputProps } = VInput . filterProps ( props )
209
- const fieldProps = filterFieldProps ( props )
209
+ const fieldProps = VField . filterProps ( props )
210
210
211
211
return (
212
212
< VInput
You can’t perform that action at this time.
0 commit comments