mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
chore: 兼容 onActiveChange 方法
refactor: 增加拖拽时 insertion 动画效果
This commit is contained in:
parent
3a4d47a388
commit
219436afe0
@ -170,6 +170,7 @@ export class InsertionView extends Component<{ host: BuiltinSimulatorHost }> {
|
||||
}
|
||||
}
|
||||
style.transform = `translate3d(${x}px, ${y}px, 0)`;
|
||||
style.transition = 'all 0.2s ease-in-out';
|
||||
|
||||
return <div className={className} style={style} />;
|
||||
}
|
||||
|
||||
@ -141,6 +141,13 @@ export default class PanelDock implements IWidget {
|
||||
showPanel() {
|
||||
this.panel?.setActive(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
onActiveChange(func: () => any) {
|
||||
return this.panel?.onActiveChange(func);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -86,6 +86,7 @@
|
||||
height: @treeNodeHeight;
|
||||
box-sizing: border-box;
|
||||
transform: translateZ(0);
|
||||
transition: all 0.2s ease-in-out;
|
||||
&.invalid {
|
||||
border-color: red;
|
||||
background-color: rgba(240, 154, 154, 0.719);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user