vant/src/cell/shared.ts
2020-01-19 15:27:28 +08:00

39 lines
801 B
TypeScript

export type SharedCellProps = {
icon?: string;
size?: string;
border: boolean;
center?: boolean;
isLink?: boolean;
required?: boolean;
clickable?: boolean;
titleStyle?: any;
titleClass?: any;
valueClass?: any;
labelClass?: any;
title?: string | number;
value?: string | number;
label?: string | number;
arrowDirection?: 'up' | 'down' | 'left' | 'right';
};
export const cellProps = {
icon: String,
size: String,
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleStyle: null as any,
titleClass: null as any,
valueClass: null as any,
labelClass: null as any,
title: [Number, String],
value: [Number, String],
label: [Number, String],
arrowDirection: String,
border: {
type: Boolean,
default: true,
},
};