Skip to content

Commit f08f378

Browse files
committed
fix: 修改textarea-types 缩进
1 parent b33813b commit f08f378

File tree

1 file changed

+33
-31
lines changed

1 file changed

+33
-31
lines changed
Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
1-
import type { PropType, ExtractPropTypes } from 'vue'
1+
import type { PropType, ExtractPropTypes } from 'vue';
22

33
export const textareaProps = {
4-
id: {
4+
id: {
55
type: String,
6-
default: undefined
7-
},
8-
autofocus: {
6+
default: undefined,
7+
},
8+
autofocus: {
99
type: Boolean,
10-
default: false
11-
},
12-
showCount: {
10+
default: false,
11+
},
12+
showCount: {
1313
type: Boolean,
14-
default: false
15-
},
16-
placeholder: {
14+
default: false,
15+
},
16+
placeholder: {
1717
type: String,
18-
default: undefined
19-
},
20-
value: {
18+
default: undefined,
19+
},
20+
value: {
2121
type: String,
22-
default: undefined
23-
},
24-
maxLength: {
22+
default: undefined,
23+
},
24+
maxLength: {
2525
type: Number,
26-
default: undefined
26+
default: undefined,
2727
},
28-
disabled: {
28+
disabled: {
2929
type: Boolean,
30-
default: false
31-
},
32-
error: {
30+
default: false,
31+
},
32+
error: {
3333
type: Boolean,
34-
default: false
35-
},
36-
cssClass: {
34+
default: false,
35+
},
36+
cssClass: {
3737
type: String,
38-
default: ''
38+
default: '',
3939
},
40-
resize: {
41-
type: String as PropType<'none' | 'vertical' | 'horizontal'|'both'|'inherit' >,
42-
default: 'none'
40+
resize: {
41+
type: String as PropType<
42+
'none' | 'vertical' | 'horizontal' | 'both' | 'inherit'
43+
>,
44+
default: 'none',
4345
},
44-
} as const
46+
} as const;
4547

46-
export type TextareaProps = ExtractPropTypes<typeof textareaProps>
48+
export type TextareaProps = ExtractPropTypes<typeof textareaProps>;

0 commit comments

Comments
 (0)