gtht-miniapp-sdk
Version:
gtht-miniapp-sdk 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
39 lines (38 loc) • 1.14 kB
TypeScript
import { type StyleValue } from 'vue';
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: {
shape: SearchProps["shape"];
focus: boolean;
};
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;
}