add 增加logicflow流程图预览
This commit is contained in:
21
src/components/Process/js/between.js
Normal file
21
src/components/Process/js/between.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { RectNode, RectNodeModel } from '@logicflow/core';
|
||||
|
||||
class BetweenModel extends RectNodeModel {
|
||||
initNodeData(data) {
|
||||
super.initNodeData(data);
|
||||
this.width = 100;
|
||||
this.height = 80;
|
||||
this.radius = 5;
|
||||
}
|
||||
getNodeStyle() {
|
||||
return super.getNodeStyle();
|
||||
}
|
||||
}
|
||||
|
||||
class BetweenView extends RectNode {}
|
||||
|
||||
export default {
|
||||
type: 'between',
|
||||
model: BetweenModel,
|
||||
view: BetweenView
|
||||
};
|
||||
Reference in New Issue
Block a user