Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 32218b7

Browse files
fix: title style
1 parent 9b23bf1 commit 32218b7

File tree

3 files changed

+5
-7
lines changed

3 files changed

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

‎src/canvas/node.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ export default class TableNode extends Node {
4444
mounted() {
4545
// 生成field的endpoint
4646
this._createNodeEndpoint();
47-
// 保持title宽度
48-
if (this.fieldsList.length > 0) {
49-
let width = $(this.fieldsList[0].dom).width();
50-
$(this.dom).find('.title').css('width', width);
51-
} else {
47+
48+
if (this.fieldsList.length === 0) {
5249
$(this.dom).find('.title').css('width', this.options._emptyWidth || 150);
5350
}
5451

‎src/index.less‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
position: relative;
1515
background: #252525;
1616
border-bottom: 1px solid #5A5A5A;
17-
padding-left: 15px;
17+
padding: 050px0 15px;
1818
height: 30px;
1919
line-height: 30px;
20+
min-width: 150px;
2021
cursor: pointer;
2122
.title-text {
2223
overflow: hidden;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /