mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
66 lines (65 loc) • 1.01 kB
TypeScript
import { ModelRef } from 'vue';
/**
* 列表项目
*/
export interface ListDataItem {
id: number;
state: boolean;
}
/**
* emits
*/
export interface Emits {
(event: 'change'): void;
}
/**
* props
*/
export interface Props {
/**
* 自定义未选中图标
*/
icon?: string;
/**
* 自定义选中图标
*/
iconSelect?: string;
/**
* 自定义图标颜色
*/
color?: string;
/**
* 自定义数量
*/
count?: number;
/**
* 只读状态
*/
readonly?: boolean;
/**
* 禁用状态
*/
disabled?: boolean;
/**
* 自定义提示语
*/
tips?: string[];
/**
* 自定义提示语颜色
*/
tipsColor?: string;
/**
* 评分大小
*/
size?: string;
}
/**
* useHandler
*/
export declare namespace USEHandler {
interface Option {
props: Readonly<Required<Props>>;
emit: Emits;
modelValue: ModelRef<number>;
}
}