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';
88
99export interface SkeletonInputProps extends Omit < SkeletonElementProps , 'size' | 'shape' > {
1010 size ?: 'large' | 'small' | 'default' ;
11+ block ?: boolean ;
1112}
1213
1314const SkeletonInput = defineComponent ( {
1415 name : 'ASkeletonInput' ,
1516 props : {
1617 ...omit ( skeletonElementProps ( ) , [ 'shape' ] ) ,
1718 size : String as PropType < 'large' | 'small' | 'default' > ,
19+ block : Boolean ,
1820 } ,
1921 setup ( props ) {
2022 const { prefixCls } = useConfigInject ( 'skeleton' , props ) ;
2123 const cls = computed ( ( ) =>
2224 classNames ( prefixCls . value , `${ prefixCls . value } -element` , {
2325 [ `${ prefixCls . value } -active` ] : props . active ,
26+ [ `${ prefixCls . value } -block` ] : props . block ,
2427 } ) ,
2528 ) ;
2629 return ( ) => {
Original file line number Diff line number Diff line change 109109 }
110110 }
111111
112- // Skeleton Block Button
112+ // Skeleton Block Button, Input
113113 & .@{skeleton-prefix-cls} -block {
114114 width : 100% ;
115115
116116 .@{skeleton-button-prefix-cls} {
117117 width : 100% ;
118118 }
119+
120+ .@{skeleton-input-prefix-cls} {
121+ width : 100% ;
122+ }
119123 }
120124
121125 // Skeleton element
238242}
239243
240244.skeleton-element-input-size (@size ) {
241- width : 100% ;
245+ width : @size * 5 ;
246+ min-width : @size * 5 ;
242247 .skeleton-element-common-size (@size );
243248}
244249
You can’t perform that action at this time.
0 commit comments