UNPKG

ivue-material-plus

Version:

A high quality UI components Library with Vue.js

144 lines (141 loc) 2.35 kB
import { oneOf } from '../../../utils/assist.mjs'; const TableContextKey = Symbol("ivue-table"); var defaultProps = { data: { type: Array, default: () => { return []; } }, fit: { type: Boolean, default: true }, border: { type: Boolean, default: false }, height: { type: [String, Number], default: null }, maxHeight: { type: [String, Number], default: null }, showHeader: { type: Boolean, default: true }, treeProps: { type: Object, default: () => { return { hasChildren: "hasChildren", children: "children" }; } }, rowKey: { type: [String, Function] }, defaultExpandAll: { type: Boolean, default: false }, selectOnIndeterminate: { type: Boolean, default: true }, indent: { type: Number, default: 16 }, lazy: { type: Boolean, default: false }, showSummary: { type: Boolean, default: false }, tableLayout: { type: String, validator(value) { return oneOf(value, ["fixed", "auto"]); }, default: "fixed" }, defaultSort: { type: Object }, placeholder: { type: String, default: "No Data" }, scrollbarAlways: { type: Boolean, default: false }, stripe: { type: Boolean, default: false }, rowClassName: { type: [String, Function] }, rowStyle: { type: [Object, Function] }, highlightCurrentRow: { type: Boolean, default: false }, expandRowKeys: { type: Array }, load: { type: Function }, sumText: { type: String, default: "\u5408\u8BA1" }, summaryMethod: { type: Function }, spanMethod: { type: Function }, headerCellStyle: { type: [Object, Function] }, headerCellClassName: { type: [String, Function] }, headerRowStyle: { type: [Object, Function] }, headerRowClassName: { type: [String, Function] }, cellStyle: { type: [Object, Function] }, cellClassName: { type: [String, Function] }, tooltipTheme: { type: String, validator(value) { return oneOf(value, ["dark", "light"]); }, default: "dark" }, tooltipStop: { type: Boolean, default: false } }; export { TableContextKey, defaultProps as default }; //# sourceMappingURL=defaults.mjs.map