Skip to content

Commit 0796316

Browse files
author
wb-zyx597643
committed
fix: 删除计算宽度,父级自动撑开
1 parent 5acec1f commit 0796316

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-visual-modeling",
3-
"version": "1.0.31",
3+
"version": "1.0.32",
44
"description": "一个基于React的数据可视化建模的DAG图,适用于UML,数据库建模,数据仓库建设等业务",
55
"main": "dist/index.js",
66
"pack": "pack/index.js",

src/adaptor.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@ import * as _ from 'lodash';
33
import Edge from './canvas/edge';
44
import TableNode from './canvas/node';
55

6-
export const BORDER_WIDTH = 2;
7-
export const OPER_ICON_WIDTH = 86;
8-
9-
export const getWidth = (columns) => {
10-
let width = columns.reduce((cur, pre) => {
11-
cur = cur + pre.width;
12-
return cur;
13-
}, 0);
14-
return width;
15-
}
16-
176
export const transformInitData = (info) => {
187
let {
198
columns, data, config,

0 commit comments

Comments
 (0)