cgreact-core
Version:
未发表!CGReact前端Web研发框架核心包
20 lines (16 loc) • 802 B
text/typescript
/** 組件数据类型:STATE*/
import {LayoutState} from "./cgreact-type-layout";
import {ModalState} from "./cgreact-type-modal";
type CGReactComponentState = { [key: string]: any };//默认可配置任意类型
export interface CompState extends CGReactComponentState {}
/** 组件参数类型:PROP*/
type CGReactComponentProp = {
data?: CGReactComponentState, //组件数据结构
modal?: ModalState | boolean, //组件绑定的对话框数据结构
layout?: LayoutState, //组件绑定的布局数据结构
style?: React.CSSProperties //组件样式会生效在最外部layout布局上
};//组件参数默认配置
export interface CompProp extends CGReactComponentProp, LayoutState
{
[key: string]: any //在基础配饰上支持配置任意类型
}