UNPKG

@bos-model-alpha/data

Version:

数据管理

12 lines (11 loc) 503 B
import { jsx as _jsx } from "react/jsx-runtime"; import { DocTable } from './doc-table'; import { EdgeTable } from './edge-table'; export var DataList = function (_a) { var classDefined = _a.classDefined, attributes = _a.attributes; var tableMode = { doc: _jsx(DocTable, { classDefined: classDefined, attributes: attributes }), edge: _jsx(EdgeTable, { classDefined: classDefined, attributes: attributes }) }; return classDefined ? tableMode[classDefined.type] : null; };