Skip to content

Commit

Permalink
style: 3.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
peiyun0114 committed Feb 26, 2021
1 parent 0d9eff5 commit fea1857
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 76 deletions.
90 changes: 45 additions & 45 deletions example/demo/industry/index.jsx
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
'use strict';
import React, {Component} from 'react';
require('./index.less');
require('butterfly-dag/dist/index.css');

const IndustryCanvas = require('./canvas');
const mockData = require('./data.js');

class Industry extends Component {
constructor() {
super();
}
componentDidMount() {
let root = document.getElementById('dag-canvas');
this.canvas = new IndustryCanvas({
root: root,
disLinkable: true, // 可删除连线
linkable: false, // 可连线
draggable: true, // 可拖动
zoomable: true, // 可放大
moveable: true, // 可平移
css: {
groupHoverClass: 'datac-group-drag-hover', // 节点移动到上面新增的class
groupActiveClass: 'datac-group-drag-active' // 节点可移动到上面新增的class
},
theme: {
edge: {
type: 'AdvancedBezier'
},
}
});
this.canvas.draw(mockData);

}
render() {
return (
<div className='industry-page'>
<div className="industry-canvas" id="dag-canvas">
</div>
</div>
);
}
}

module.exports = Industry;
'use strict';
import React, {Component} from 'react';
require('./index.less');
require('butterfly-dag/dist/index.css');

const IndustryCanvas = require('./canvas');
const mockData = require('./data.js');

class Industry extends Component {
constructor() {
super();
}
componentDidMount() {
let root = document.getElementById('dag-canvas');
this.canvas = new IndustryCanvas({
root: root,
disLinkable: true, // 可删除连线
linkable: false, // 可连线
draggable: true, // 可拖动
zoomable: true, // 可放大
moveable: true, // 可平移
css: {
groupHoverClass: 'datac-group-drag-hover', // 节点移动到上面新增的class
groupActiveClass: 'datac-group-drag-active' // 节点可移动到上面新增的class
},
theme: {
edge: {
type: 'AdvancedBezier'
},
}
});
this.canvas.draw(mockData);

}
render() {
return (
<div className='industry-page'>
<div className="industry-canvas" id="dag-canvas">
</div>
</div>
);
}
}

module.exports = Industry;
60 changes: 30 additions & 30 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@
"author": "jambin",
"license": "MIT",
"dependencies": {
"antd": "^3.26.20",
"butterfly-dag": "^3.1.13",
"jquery": "^3.5.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2"
"antd": "~3.26.7",
"butterfly-dag": "*",
"jquery": "^3.4.1",
"react": "~16.12.0",
"react-dom": "~16.12.0",
"react-router": "~5.1.2",
"react-router-dom": "~5.1.2"
},
"devDependencies": {
"@antv/hierarchy": "^0.6.6",
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@antv/hierarchy": "~0.6.4",
"@babel/core": "~7.8.3",
"@babel/plugin-proposal-class-properties": "~7.8.3",
"@babel/plugin-proposal-object-rest-spread": "~7.8.3",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"babel-loader": "^8.0.6",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"css-loader": "^1.0.1",
"dagre": "^0.8.5",
"eslint": "^5.16.0",
"eslint-config-aliyun": "^2.0.3",
"eslint-plugin-react": "^7.13.0",
"file-loader": "^2.0.0",
"@babel/preset-env": "~7.8.3",
"@babel/preset-react": "~7.8.3",
"babel-loader": "8.0.6",
"babel-plugin-transform-es2015-modules-commonjs": "~6.26.2",
"css-loader": "~1.0.0",
"dagre": "~0.8.5",
"eslint": "~5.16.0",
"eslint-config-aliyun": "~2.0.3",
"eslint-plugin-react": "~7.13.0",
"file-loader": "~2.0.0",
"html-webpack-plugin": "^3.2.0",
"less": "^3.7.1",
"less-loader": "^4.1.0",
"mini-css-extract-plugin": "^0.9.0",
"style-loader": "^0.21.0",
"less": "~3.7.0",
"less-loader": "~4.1.0",
"mini-css-extract-plugin": "~0.9.0",
"style-loader": "~0.21.0",
"style-resources-loader": "^1.4.1",
"url-loader": "^1.0.1",
"webpack": "^4.41.6",
"webpack-cli": "^3.0.8",
"webpack-dev-server": "^3.10.3"
"url-loader": "~1.0.1",
"webpack": "~4.41.5",
"webpack-cli": "~3.0.8",
"webpack-dev-server": "~3.10.1"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "butterfly-dag",
"version": "3.1.18",
"version": "3.1.19",
"description": "一个基于数据驱动的节点式编排组件库,让你有方便快捷定制可视化流程图表",
"main": "dist/index.js",
"es": "es/index.js",
Expand Down

0 comments on commit fea1857

Please sign in to comment.