mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
feat: 添加阴阳师和技能选择器,完成资产选择器统一架构迁移
- 新增阴阳师和阴阳师技能资产类型配置 - 添加 54 张阴阳师和技能图片资源 - 将式神和御魂选择器迁移到统一的 assetSelector 架构 - 删除 10 个冗余的独立节点和面板组件 - 统一使用 GenericImageSelector 通用选择器 - 完全实现配置驱动的设计理念 - 减少约 800+ 行重复代码 所有资产类型(式神/御魂/阴阳师/技能)现在都通过单一的 assetSelector 节点和通用选择器处理
This commit is contained in:
@@ -69,8 +69,6 @@ import '@logicflow/extension/es/index.css';
|
||||
import { translateEdgeData, translateNodeData } from '@logicflow/core/es/keyboard/shortcut';
|
||||
|
||||
import { register } from '@logicflow/vue-node-registry';
|
||||
import ShikigamiSelectNode from './nodes/yys/ShikigamiSelectNode.vue';
|
||||
import YuhunSelectNode from './nodes/yys/YuhunSelectNode.vue';
|
||||
import PropertySelectNode from './nodes/yys/PropertySelectNode.vue';
|
||||
import ImageNode from './nodes/common/ImageNode.vue';
|
||||
import AssetSelectorNode from './nodes/common/AssetSelectorNode.vue';
|
||||
@@ -666,8 +664,6 @@ function distributeSelected(type: DistributeType) {
|
||||
|
||||
// 注册自定义节点
|
||||
function registerNodes(lfInstance: LogicFlow) {
|
||||
register({ type: 'shikigamiSelect', component: ShikigamiSelectNode }, lfInstance);
|
||||
register({ type: 'yuhunSelect', component: YuhunSelectNode }, lfInstance);
|
||||
register({ type: 'propertySelect', component: PropertySelectNode }, lfInstance);
|
||||
|
||||
register({ type: 'imageNode', component: ImageNode }, lfInstance);
|
||||
|
||||
Reference in New Issue
Block a user