UNPKG

uview-pro

Version:

uView Pro,是全面支持Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0

20 lines (17 loc) 740 B
import type { ExtractPropTypes, PropType } from 'vue'; import type { InputAlign } from '../../types/global'; /** * u-grid 组件 Props 类型定义 * @description 宫格组件属性 */ export const GridProps = { /** 分成几列 */ col: { type: [Number, String] as PropType<string | number>, default: 3 }, /** 是否显示边框 */ border: { type: Boolean, default: true }, /** 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右 */ align: { type: String as PropType<InputAlign>, default: 'left' }, /** 宫格按压时的样式类,"none"为无效果 */ hoverClass: { type: String, default: 'u-hover-class' } }; export type GridProps = ExtractPropTypes<typeof GridProps>;