From f847d5f10122d5af787ed41b07b0432fde32e8ec Mon Sep 17 00:00:00 2001 From: Yuan Date: Tue, 9 Jan 2024 15:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=E4=BA=8B=E9=A1=B9=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rollup.config.cjs | 2 ++ src/packages/Section/common/Section.ts | 7 +++++++ src/packages/Section/common/SectionDrawAssistant.ts | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/rollup.config.cjs b/rollup.config.cjs index 5607116..179ac18 100644 --- a/rollup.config.cjs +++ b/rollup.config.cjs @@ -16,6 +16,8 @@ const config = { }, plugins: [ alias({ + //FIXME components中生成的导入路径不可用,待调整 + //可能这个插件不太合适 entries: [{ find: 'common', replacement: 'src/common' }], }), typescript({ diff --git a/src/packages/Section/common/Section.ts b/src/packages/Section/common/Section.ts index 0de803e..110598d 100644 --- a/src/packages/Section/common/Section.ts +++ b/src/packages/Section/common/Section.ts @@ -209,6 +209,13 @@ export class Section extends JlGraphic { } } + //TODO + /** + * * Relation处理考虑按不同区段类型分别处理或交子类处理后导出子类 + * + * + */ + buildRelation() { this.relationManage.deleteRelationOfGraphicAndOtherType(this, Section.Type); diff --git a/src/packages/Section/common/SectionDrawAssistant.ts b/src/packages/Section/common/SectionDrawAssistant.ts index 513de4e..bb0a1aa 100644 --- a/src/packages/Section/common/SectionDrawAssistant.ts +++ b/src/packages/Section/common/SectionDrawAssistant.ts @@ -510,6 +510,12 @@ export class SectionPointEditPlugin extends GraphicInteractionPlugin
{ clearWaypointsConfig.handler = () => { clearWayPoint(section, false); }; + // TODO + /** + * 区段拆分的菜单项和对话框之前写在这里,但引用了Quasar组件不是很合适,暂时先注释掉 + * Section中已有获取拆分的数据的方法,考虑将生成对应目标区段的逻辑放业务层?或这里提供生成方法供业务层调用 + */ + // splitSectionConfig.disabled = false; // splitSectionConfig.handler = () => { // Dialog.create({