@opensig/opendesign
Version:
83 lines (82 loc) • 1.67 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const TableBorderTypes = ["all", "row", "column", "frame", "row-column", "row-frame", "column-frame", "none"];
const tableProps = {
/**
* @zh-CN 表头数据
* @en-US Table header data
*/
columns: {
type: Array
},
/**
* @zh-CN 表格数据
* @en-US Table data
*/
data: {
type: Array
},
/**
* @zh-CN 表格边框
* @en-US Table border
* @default 'row'
*/
border: {
type: String,
default: "row"
},
/**
* @zh-CN 表格斑马纹,仅body中无纵向合并单元格时生效
* @en-US Table striping, taking effect only when there are no vertically merged cells in the table body.
* @since 1.2.0
*/
stripe: {
type: Boolean,
default: false
},
/**
* @zh-CN 是否使用小尺寸
* @en-US Use small size
*/
small: {
type: Boolean
},
/**
* @zh-CN 单元格合并(不含表头)
* @en-US Cell merge (excluding header)
*/
cellSpan: {
type: Function
},
/**
* @zh-CN 空数据提示文本
* @en-US Empty data prompt text
*/
emptyLabel: {
type: String
},
/**
* @zh-CN 是否显示加载中状态
* @en-US Whether to show loading state
*/
loading: {
type: Boolean
},
/**
* @zh-CN 加载中提示文本
* @en-US Loading prompt text
*/
loadingLabel: {
type: String
},
/**
* @zh-CN 是否高亮当前行
* @en-US Whether to highlight the current row
*/
highlightCurrentRow: {
type: Boolean,
default: false
}
};
exports.TableBorderTypes = TableBorderTypes;
exports.tableProps = tableProps;