mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-01-23 22:43:28 +00:00
启用富文本标签
This commit is contained in:
@@ -13,8 +13,10 @@
|
||||
import { ref, watch, onMounted, onBeforeUnmount, defineExpose } from 'vue';
|
||||
import LogicFlow, { EventType } from '@logicflow/core';
|
||||
import '@logicflow/core/lib/style/index.css';
|
||||
import { Menu } from "@logicflow/extension";
|
||||
import { Menu,Label } from "@logicflow/extension";
|
||||
import "@logicflow/extension/lib/style/index.css";
|
||||
import '@logicflow/core/es/index.css';
|
||||
import '@logicflow/extension/es/index.css';
|
||||
|
||||
import { register } from '@logicflow/vue-node-registry';
|
||||
import ShikigamiSelectNode from './nodes/yys/ShikigamiSelectNode.vue';
|
||||
@@ -65,8 +67,17 @@ onMounted(() => {
|
||||
grid: true,
|
||||
allowResize: true,
|
||||
allowRotate: true,
|
||||
plugins: [Menu],
|
||||
overlapMode:-1
|
||||
overlapMode:-1,
|
||||
plugins: [Menu,Label],
|
||||
pluginsOptions: {
|
||||
label: {
|
||||
isMultiple: true,
|
||||
maxCount: 3,
|
||||
labelWidth: 80,
|
||||
// textOverflowMode -> 'ellipsis' | 'wrap' | 'clip' | 'nowrap' | 'default'
|
||||
textOverflowMode: 'wrap',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const lfInstance = lf.value;
|
||||
|
||||
Reference in New Issue
Block a user