fix(types): input prefix prop types (#2880)

pull/2900/head
John60676 2020-09-23 10:35:42 +08:00 committed by GitHub
parent 0367f3e57e
commit 12afa05aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 26 deletions

View File

@ -2,13 +2,12 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent, AntdProps } from '../component';
import { AntdComponent } from '../component';
import { VNodeChild } from 'vue';
import { InputProps } from './input';
export declare class InputSearch extends AntdComponent {
$props: AntdProps &
InputProps & {
$props: InputProps & {
/**
* to show an enter button after input
* @default false

View File

@ -9,7 +9,7 @@ import { TextArea } from './textarea';
import { Password } from './password';
import { VNodeChild } from 'vue';
export type InputProps = {
export type InputProps = Omit<AntdProps, 'prefix'> & {
/**
* The label text displayed after (on the right side of) the input field.
* @type any (string | slot)
@ -83,5 +83,5 @@ export declare class Input extends AntdComponent {
static Search: typeof InputSearch;
static TextArea: typeof TextArea;
static Password: typeof Password;
$props: AntdProps & InputProps;
$props: InputProps;
}

View File

@ -2,12 +2,11 @@
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent, AntdProps } from '../component';
import { AntdComponent } from '../component';
import { InputProps } from './input';
export declare class Password extends AntdComponent {
$props: AntdProps &
Omit<InputProps, 'type' | 'suffix'> & {
$props: Omit<InputProps, 'type' | 'suffix'> & {
/**
* Whether show toggle button
* @default true