|
@@ -83,12 +83,17 @@ export default {
|
|
|
top: e.y + "px",
|
|
|
left: e.x - 50 + "px"
|
|
|
});
|
|
|
- const positionInfos = fetchSameExplainNumberExplainChildernPositionInfo(
|
|
|
- this.curElement,
|
|
|
- this.pages
|
|
|
- );
|
|
|
- this.showDeleteChildBtn = positionInfos.length >= 2;
|
|
|
- this.IS_EXPLAIN_CHILDREN = this.curElement.type === "EXPLAIN_CHILDREN";
|
|
|
+ // 作文题非拆分题
|
|
|
+ if (this.curElement.type === "COMPOSITION") {
|
|
|
+ this.showDeleteChildBtn = false;
|
|
|
+ } else {
|
|
|
+ const positionInfos = fetchSameExplainNumberExplainChildernPositionInfo(
|
|
|
+ this.curElement,
|
|
|
+ this.pages
|
|
|
+ );
|
|
|
+ this.showDeleteChildBtn = positionInfos.length >= 2;
|
|
|
+ this.IS_EXPLAIN_CHILDREN = this.curElement.type === "EXPLAIN_CHILDREN";
|
|
|
+ }
|
|
|
// 直接用了setTimeout,解决弹出框跟随延迟的问题,似乎粗暴了点。
|
|
|
setTimeout(() => {
|
|
|
this.visible = true;
|