File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,22 @@ import omit from '../_util/omit';
8
8
9
9
export interface SkeletonInputProps extends Omit < SkeletonElementProps , 'size' | 'shape' > {
10
10
size ?: 'large' | 'small' | 'default' ;
11
+ block ?: boolean ;
11
12
}
12
13
13
14
const SkeletonInput = defineComponent ( {
14
15
name : 'ASkeletonInput' ,
15
16
props : {
16
17
...omit ( skeletonElementProps ( ) , [ 'shape' ] ) ,
17
18
size : String as PropType < 'large' | 'small' | 'default' > ,
19
+ block : Boolean ,
18
20
} ,
19
21
setup ( props ) {
20
22
const { prefixCls } = useConfigInject ( 'skeleton' , props ) ;
21
23
const cls = computed ( ( ) =>
22
24
classNames ( prefixCls . value , `${ prefixCls . value } -element` , {
23
25
[ `${ prefixCls . value } -active` ] : props . active ,
26
+ [ `${ prefixCls . value } -block` ] : props . block ,
24
27
} ) ,
25
28
) ;
26
29
return ( ) => {
Original file line number Diff line number Diff line change 109
109
}
110
110
}
111
111
112
- // Skeleton Block Button
112
+ // Skeleton Block Button, Input
113
113
& .@{skeleton-prefix-cls} -block {
114
114
width : 100% ;
115
115
116
116
.@{skeleton-button-prefix-cls} {
117
117
width : 100% ;
118
118
}
119
+
120
+ .@{skeleton-input-prefix-cls} {
121
+ width : 100% ;
122
+ }
119
123
}
120
124
121
125
// Skeleton element
238
242
}
239
243
240
244
.skeleton-element-input-size (@size ) {
241
- width : 100% ;
245
+ width : @size * 5 ;
246
+ min-width : @size * 5 ;
242
247
.skeleton-element-common-size (@size );
243
248
}
244
249
You can’t perform that action at this time.
0 commit comments