UNPKG

tav-ui

Version:
376 lines (373 loc) 5.97 kB
import { ETableProEmits, DEFAULT_ALIGN, ROW_KEY, DEFAULT_LINE_HEIGTH, PAGE_SIZE, PAGE_SIZE_OPTIONS, FETCH_SETTING } from './const2.mjs'; const _tableProEmits = []; for (const k in ETableProEmits) { _tableProEmits.push(k); } const tableProEmits = _tableProEmits; const tableProProps = { size: { type: [String, null], default: "small" }, id: { type: String }, height: { type: [String, Number], default: "auto" }, maxHeight: { type: [String, Number] }, minHeight: { type: [String, Number] }, data: { type: Array }, resizable: { type: Boolean, default: true }, stripe: { type: Boolean, default: false }, round: { type: Boolean, default: true }, border: { type: [String, Boolean], default: "inner" }, loading: { type: Boolean, default: false }, align: { type: [String, null], default: DEFAULT_ALIGN }, headerAlign: { type: [String, null], default: DEFAULT_ALIGN }, footerAlign: { type: [String, null], default: DEFAULT_ALIGN }, showHeader: { type: Boolean, default: true }, showFooter: { type: Boolean }, highlightCurrentRow: { type: Boolean, default: false }, highlightHoverRow: { type: Boolean, default: true }, highlightCurrentColumn: { type: Boolean, default: false }, highlightHoverColumn: { type: Boolean, default: true }, highlightCell: { type: Boolean, default: false }, footerMethod: { type: Function }, rowClassName: { type: [String, Function] }, cellClassName: { type: [String, Function] }, headerRowClassName: { type: [String, Function] }, headerCellClassName: { type: [String, Function] }, footerRowClassName: { type: [String, Function] }, footerCellClassName: { type: [String, Function] }, cellStyle: { type: Object }, headerCellStyle: { type: Object }, footerCellStyle: { type: Object }, rowStyle: { type: Object }, headerRowStyle: { type: Object }, footerRowStyle: { type: Object }, mergeCells: { type: Array }, mergeFooterItems: { type: Array }, spanMethod: { type: Function }, footerSpanMethod: { type: Function }, showOverflow: { type: [String, Boolean, null], default: false }, showHeaderOverflow: { type: [String, Boolean, null], default: false }, showFooterOverflow: { type: [String, Boolean, null], default: false }, keepSource: { type: Boolean, default: false }, autoResize: { type: Boolean }, resizeConfig: { type: Object, default: () => ({ refreshDelay: 500 }) }, syncResize: { type: [String, Number, Boolean] }, scrollX: { type: Object, default: () => ({ enabled: true, gt: 20, oSize: 10 }) }, scrollY: { type: Object, default: () => ({ enabled: true, mode: "default", gt: 50, oSize: 10 }) }, columnConfig: { type: Object, default: () => ({ resizable: true }) }, rowConfig: { type: Object, default: () => ({ keyField: ROW_KEY, height: DEFAULT_LINE_HEIGTH }) }, customConfig: { type: Object }, resizableConfig: { type: Object }, seqConfig: { type: Object }, sortConfig: { type: Object }, filterConfig: { type: Object }, filterExclusion: { type: Boolean, default: true }, radioConfig: { type: Object, default: () => ({ enabled: false, highlight: true }) }, checkboxConfig: { type: Object, default: () => ({ enabled: true, range: true, highlight: true, cache: false }) }, tooltipConfig: { type: Object, default: () => ({ theme: "dark" }) }, exportConfig: { type: Object }, importConfig: { type: Object }, printConfig: { type: Object }, mouseConfig: { type: Object }, areaConfig: { type: Object }, fnrConfig: { type: Object }, keyboardConfig: { type: Object }, clipConfig: { type: Object }, filterModalClassName: { type: String }, expandConfig: { type: Object }, treeConfig: { type: Object }, menuConfig: { type: Object }, editConfig: { type: Object }, validConfig: { type: Object }, editRules: { type: Object }, emptyText: { type: String }, emptyRender: { type: Object }, columns: { type: Object }, pagerConfig: { type: Object, default: () => ({ size: "mini", layouts: ["PrevPage", "Number", "NextPage", "Sizes", "Total"], pageSize: PAGE_SIZE, pageSizes: PAGE_SIZE_OPTIONS.map((size) => Number(size)), controller: "backend" }) }, proxyConfig: { type: Object }, toolbarConfig: { type: Object }, formConfig: { type: Object }, zoomConfig: { type: Object }, showOperations: { type: Boolean, default: true }, filterFormConfig: { type: Object, default: () => ({ enabled: true }) }, customActionConfig: { type: Object, default: () => ({ enabled: true }) }, apiType: { type: String, default: "pager" }, api: { type: Function }, beforeApi: { type: Function }, afterApi: { type: Function }, apiSetting: { type: Object, default: () => { return FETCH_SETTING; } }, immediate: { type: Boolean, default: true }, scrollTopActions: { type: Array, default: () => ["paginate", "refresh"] }, fillInner: { type: Boolean, default: true }, showTooltip: { type: Boolean, default: true }, fixedLineHeight: { type: Boolean, default: true }, permission: { type: Object } }; export { tableProEmits, tableProProps }; //# sourceMappingURL=types2.mjs.map