Skip to content

Commit 6d73990

Browse files
fix: css style
1 parent 32218b7 commit 6d73990

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
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.36",
3+
"version": "1.0.37",
44
"description": "一个基于React的数据可视化建模的DAG图,适用于UML,数据库建模,数据仓库建设等业务",
55
"main": "dist/index.js",
66
"pack": "pack/index.js",

src/canvas/node.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export default class TableNode extends Node {
9393

9494
// 记录状态
9595
this.status = 'expand';
96-
// 改变icon状态
97-
$(this.dom).find('.table-build-icon-xiala').removeClass('collapse');
96+
// 改变伸缩状态
97+
$(this.dom).removeClass('collapse');
9898
}
9999

100100
_collapse(oldEdges) {
@@ -110,8 +110,8 @@ export default class TableNode extends Node {
110110
});
111111
// 记录状态
112112
this.status = 'collapse';
113-
// 改变icon状态
114-
$(this.dom).find('.table-build-icon-xiala').addClass('collapse');
113+
// 改变伸缩状态
114+
$(this.dom).addClass('collapse');
115115

116116
// 生成新线段,并去重
117117
let newEdges = [];

src/index.less

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
border: 1px solid #5A5A5A;
1111
border-radius: 4px;
1212
color: #fff;
13+
background: #252525;
14+
&.collapse {
15+
.title {
16+
border-bottom: none;
17+
}
18+
}
1319
.title {
1420
position: relative;
15-
background: #252525;
1621
border-bottom: 1px solid #5A5A5A;
1722
padding: 0 50px 0 15px;
1823
height: 30px;
@@ -54,9 +59,6 @@
5459
}
5560
.table-build-icon-xiala{
5661
display: inline-block;
57-
&.collapse{
58-
/* todo: 需要一个新icon */
59-
}
6062
}
6163
}
6264
}
@@ -68,7 +70,6 @@
6870
line-height: 24px;
6971
align-items: center;
7072
display: flex;
71-
background: #252525;
7273
&:hover {
7374
background: rgba(216, 216, 216, 0.06);
7475
.point {

0 commit comments

Comments
 (0)