File tree 3 files changed +24
-26
lines changed
3 files changed +24
-26
lines changed Original file line number Diff line number Diff line change 2
2
// Definitions by: akki-jat <https://github.com/akki-jat>
3
3
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4
4
5
- import { AntdComponent , AntdProps } from '../component' ;
5
+ import { AntdComponent } from '../component' ;
6
6
import { VNodeChild } from 'vue' ;
7
7
import { InputProps } from './input' ;
8
8
9
9
export declare class InputSearch extends AntdComponent {
10
- $props : AntdProps &
11
- InputProps & {
12
- /**
13
- * to show an enter button after input
14
- * @default false
15
- * @type any (boolean | slot)
16
- */
17
- enterButton ?: boolean | VNodeChild | JSX . Element ;
10
+ $props : InputProps & {
11
+ /**
12
+ * to show an enter button after input
13
+ * @default false
14
+ * @type any (boolean | slot)
15
+ */
16
+ enterButton ?: boolean | VNodeChild | JSX . Element ;
18
17
19
- /**
20
- * Callback when search is clicked or enter is pressed
21
- * @type Function
22
- */
23
- onSearch ?: ( value : string | number , event : Event ) => void ;
24
- } ;
18
+ /**
19
+ * Callback when search is clicked or enter is pressed
20
+ * @type Function
21
+ */
22
+ onSearch ?: ( value : string | number , event : Event ) => void ;
23
+ } ;
25
24
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { TextArea } from './textarea';
9
9
import { Password } from './password' ;
10
10
import { VNodeChild } from 'vue' ;
11
11
12
- export type InputProps = {
12
+ export type InputProps = Omit < AntdProps , 'prefix' > & {
13
13
/**
14
14
* The label text displayed after (on the right side of) the input field.
15
15
* @type any (string | slot)
@@ -83,5 +83,5 @@ export declare class Input extends AntdComponent {
83
83
static Search : typeof InputSearch ;
84
84
static TextArea : typeof TextArea ;
85
85
static Password : typeof Password ;
86
- $props : AntdProps & InputProps ;
86
+ $props : InputProps ;
87
87
}
Original file line number Diff line number Diff line change 2
2
// Definitions by: akki-jat <https://github.com/akki-jat>
3
3
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4
4
5
- import { AntdComponent , AntdProps } from '../component' ;
5
+ import { AntdComponent } from '../component' ;
6
6
import { InputProps } from './input' ;
7
7
8
8
export declare class Password extends AntdComponent {
9
- $props : AntdProps &
10
- Omit < InputProps , 'type' | 'suffix' > & {
11
- /**
12
- * Whether show toggle button
13
- * @default true
14
- */
15
- visibilityToggle ?: boolean ;
16
- } ;
9
+ $props : Omit < InputProps , 'type' | 'suffix' > & {
10
+ /**
11
+ * Whether show toggle button
12
+ * @default true
13
+ */
14
+ visibilityToggle ?: boolean ;
15
+ } ;
17
16
}
You can’t perform that action at this time.
0 commit comments