mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
55 lines (54 loc) • 978 B
TypeScript
import { ModelRef } from 'vue';
/**
* emits
*/
export interface Emits {
(event: 'click'): void;
(event: 'search'): void;
(event: 'focus', e: FocusEvent): void;
(event: 'blur', e: FocusEvent): void;
(event: 'input', e: Event): void;
(event: 'change', e: Event): void;
}
/**
* props
*/
export interface Props {
/**
* 占位符
*/
placeholder?: string;
/**
* 右侧按钮内容
*/
btnText?: string;
/**
* 搜索框对齐方式
*/
align?: 'left' | 'center' | 'right' | 'justify' | 'inherit';
/**
* 搜索框倒角
*/
radius?: string;
/**
* 搜索框背景色
*/
background?: string;
/**
* 字体颜色
*/
color?: string;
/**
* 是否禁用输入框
*/
disabled?: boolean;
}
/**
* useBtns
*/
export declare namespace USEBtns {
interface Option {
emit: Emits;
inputVal: ModelRef<string | undefined>;
}
}