sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
37 lines (36 loc) • 1.16 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
export interface SearchProps {
rootStyle?: StyleValue;
rootClass?: string;
modelValue?: string;
placeholder?: string;
shape?: 'round' | 'square';
background?: string;
inputBackground?: string;
inputColor?: string;
readonly?: boolean;
disabled?: boolean;
align?: 'left' | 'center' | 'right';
cancel?: string;
search?: string;
focus?: boolean;
}
export declare const defaultSearchProps: () => DefaultProps<SearchProps>;
export interface SearchSlots {
prepend?(props: Record<string, never>): any;
append?(props: Record<string, never>): any;
'input-prepend'?(props: Record<string, never>): any;
'input-append'?(props: Record<string, never>): any;
}
export interface SearchEmits {
(e: 'update:model-value', value: string): void;
(e: 'input', value: string): void;
(e: 'change', value: string): void;
(e: 'cancel'): void;
(e: 'search', value: string): void;
(e: 'click', event: any): void;
(e: 'clear'): void;
(e: 'focus', event: any): void;
(e: 'blur', event: any): void;
}