UNPKG

@tplc/wot

Version:

60 lines (59 loc) 1.13 kB
import { type ExtractPropTypes, type InjectionKey } from 'vue' export type GridProvide = { props: { clickable?: boolean square?: boolean column?: number border?: boolean bgColor?: string gutter?: number } } export declare const GRID_KEY: InjectionKey<GridProvide> export declare const gridProps: { /** * 是否开启格子点击反馈 */ clickable: { type: BooleanConstructor default: boolean } /** * 是否将格子固定为正方形 */ square: { type: BooleanConstructor default: boolean } /** * 列数 */ column: NumberConstructor /** * 是否显示边框 */ border: { type: BooleanConstructor default: boolean } /** * 背景颜色 */ bgColor: { type: import('vue').PropType<string> default: string } /** * 格子之间的间距,默认单位为px */ gutter: NumberConstructor customStyle: { type: import('vue').PropType<string> default: string } customClass: { type: import('vue').PropType<string> default: string } } export type GridProps = ExtractPropTypes<typeof gridProps>