Skip to content

Commit 176cf46

Browse files
committed
docs: relase 0.6.0
1 parent 0909bd3 commit 176cf46

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

docs/.vuepress/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const article = [
9696

9797
const verisonInfo = [
9898
'0.3.0',
99-
'0.4.0'
99+
'0.4.0',
100+
'0.6.0'
100101
];
101102

102103
module.exports = {

docs/version-info/0.6.0.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 0.6.0
2+
3+
## API
4+
5+
- [feat: 插件DndPanel支持默认文本](/guide/extension/component-dnd-panel.html)
6+
[#255](https://github.com/didi/LogicFlow/issues/225)
7+
- [feat: 选区组件使用优化](/guide/extension/component-selection.html)
8+
9+
## bugfix
10+
11+
- fix: 解决html节点无法动态基于properties修改的问题
12+
13+

packages/core/index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
const height = 130;
101101
this.width = width;
102102
this.height = height;
103+
const properties = this.properties;
103104
this.anchorsOffset = [
104105
[width / 2, 0],
105106
[0, height / 2],
@@ -111,7 +112,6 @@
111112
class UmlNode extends HtmlNode {
112113
setHtml(rootEl) {
113114
const { properties } = this.getAttributes();
114-
console.log(7777, properties)
115115
const el = document.createElement('div');
116116
el.className = 'uml-wrapper';
117117
const html = `
@@ -502,13 +502,10 @@
502502
lf.on('text:update', (data) => {
503503
console.log('test:update', data)
504504
});
505-
lf.on('node:click', ({ data }) => {
506-
console.log(6666)
507-
lf.setProperties(data.id, {
508-
name: 'xt'
509-
})
510-
console.log(lf.getProperties(data.id));
511-
})
505+
// lf.on('node:click', ({ data }) => {
506+
// const model = lf.graphModel.getElement(data.id)
507+
// model.fill = 'red'
508+
// })
512509
// lf.on('node:mouseup',()=> {
513510
// console.log('nodeup')
514511
// })

packages/extension/src/components/selection-select/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import LogicFlow, { Extension } from '@logicflow/core';
2-
3-
interface SelectionSelectPlugin extends Extension {
4-
open: () => void;
5-
close: () => void;
6-
[x: string]: any;
7-
}
1+
import LogicFlow from '@logicflow/core';
82

93
class SelectionSelect {
104
__domContainer: HTMLElement;

0 commit comments

Comments
 (0)