yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
38 lines (33 loc) • 767 B
TypeScript
import type { StyleValue } from '../ele-app/types';
import type { ElColProps } from '../ele-app/el';
/**
* 单选值
*/
export type SingleValue = string | number | boolean;
/**
* 多选值
*/
export type MultipleValue = Array<SingleValue>;
/**
* 值
*/
export type CheckedValue = SingleValue | MultipleValue | undefined | null;
/**
* 多选卡片数据
*/
export interface CheckCardItem extends Record<keyof any, any> {
/** 循环的 key */
key?: string | number | symbol;
/** 值 */
value?: string | number | boolean;
/** 是否禁用 */
disabled?: boolean;
/** 是否显示边框 */
bordered?: boolean;
/** 自定义类名 */
class?: string;
/** 自定义样式 */
style?: StyleValue;
/** 栅格属性 */
col?: ElColProps;
}