@tulaoda/rc-er
v1.0.0-beta1.0
Published
ER图工具 by G6
Downloads
2
Readme
rc-er
表关系展示组件(er 图),可用于原始表到目标表字段对标信息展示
Installation
npm i @tulaoda/rc-er --save
Usage
const models= [
{
name: 'bd_Quota_Apply',
label: '额度申请',
fields: [
{
name: 'FlowNumber',
label: '流水号',
typeMeta: [
{
relationModel: 'bd_PayInfo',
field: 'FlowNumber2',
type: 'Relation',
},
],
},
{
name: 'AcceptBank',
label: '承兑行',
},
{
name: 'Amount',
label: '金额',
typeMeta: [
{
relationModel: 'bd_PayInfo',
field: 'FID',
type: 'Relation',
},
{
relationModel: 'bd_PayInfo',
field: 'FlowNumber2',
type: 'Relation',
},
],
},
],
},
{
name: 'bd_PayInfo',
label: '打款信息',
fields: [
{
name: 'FID',
label: 'FID',
},
{
name: 'FlowNumber',
label: '流水号',
},
{
name: 'FlowNumber2',
label: '流水号',
},
{
name: 'FlowNumber3',
label: '流水号',
},
],
},
]
<WebPdm
themeColor="#111111"
models={models}
/>,
API
| Prop | Description | Default | | ---------- | ------------ | ------- | | themeColor | 主题色 | #000 | | models | 关系模型数据 | [] |
Keywords
er、g6、js