@tplc/wot
Version:
130 lines (129 loc) • 2.47 kB
TypeScript
import type { ExtractPropTypes } from 'vue'
import { type FormItemRule } from '../wd-form/types'
export declare const cellProps: {
/**
* 标题
*/
title: StringConstructor
/**
* 右侧内容
*/
value: {
type: (NumberConstructor | StringConstructor)[]
default: string
}
/**
* 图标类名
*/
icon: StringConstructor
/**
* 描述信息
*/
label: StringConstructor
/**
* 是否为跳转链接
*/
isLink: {
type: BooleanConstructor
default: boolean
}
/**
* 跳转地址
*/
to: StringConstructor
/**
* 跳转时是否替换栈顶页面
*/
replace: {
type: BooleanConstructor
default: boolean
}
/**
* 开启点击反馈,is-link 默认开启
*/
clickable: {
type: BooleanConstructor
default: boolean
}
/**
* 设置单元格大小,可选值:large
*/
size: StringConstructor
/**
* 是否展示边框线
*/
border: BooleanConstructor
/**
* 设置左侧标题宽度
*/
titleWidth: StringConstructor
/**
* 是否垂直居中,默认顶部居中
*/
center: {
type: BooleanConstructor
default: boolean
}
/**
* 是否必填
*/
required: {
type: BooleanConstructor
default: boolean
}
/**
* 表单属性,上下结构
*/
vertical: {
type: BooleanConstructor
default: boolean
}
/**
* 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
*/
prop: StringConstructor
/**
* 表单验证规则,结合wd-form组件使用
*/
rules: {
type: import('vue').PropType<FormItemRule[]>
default: () => never[]
}
/**
* icon 使用 slot 时的自定义样式
*/
customIconClass: {
type: import('vue').PropType<string>
default: string
}
/**
* label 使用 slot 时的自定义样式
*/
customLabelClass: {
type: import('vue').PropType<string>
default: string
}
/**
* value 使用 slot 时的自定义样式
*/
customValueClass: {
type: import('vue').PropType<string>
default: string
}
/**
* title 使用 slot 时的自定义样式
*/
customTitleClass: {
type: import('vue').PropType<string>
default: string
}
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}
export type CellProps = ExtractPropTypes<typeof cellProps>