@squirrel-cloud/ui-vue
Version:
松鼠的坚果屋前端VUE框架
39 lines (38 loc) • 646 B
TypeScript
import { ComponentSize } from '../../typings';
/**
* 编辑器属性
*/
export interface EditorProps {
/**
* 是否圆角编辑器
*/
round?: boolean;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 占位文本
*/
placeholder?: string;
/**
* 最大长度
*/
maxlength?: number | string;
/**
* 最小长度
*/
minlength?: number | string;
/**
* 是否MD格式
*/
md?: boolean;
/**
* 编辑器大小
*/
size?: ComponentSize;
/**
* 预览内容前处理
*/
beforePreview?: (input: string) => string;
}