|
|
@@ -33,6 +33,8 @@ const keywordsEditor = ref<HTMLInputElement | null>(null);
|
|
|
|
|
|
const keywordsEditing = ref(false);
|
|
|
|
|
|
+const repetitiveWarning = ref(false);
|
|
|
+
|
|
|
const fullTitle = ref('');
|
|
|
// 参考文献抽屉组件ref
|
|
|
const referenceDraw = ref<InstanceType<typeof ReferenceDraw> | null>(null);
|
|
|
@@ -126,8 +128,8 @@ function onSectionRecordUse(sectionId: number) {
|
|
|
emits("sectionRecordUse", sectionId)
|
|
|
}
|
|
|
|
|
|
-function notifyRepetitiveWarning(){
|
|
|
- contentEditor.value?.createErrorNotification()
|
|
|
+function notifyRepetitiveWarning(data: boolean){
|
|
|
+ repetitiveWarning.value = data;
|
|
|
}
|
|
|
|
|
|
defineExpose({
|
|
|
@@ -194,7 +196,7 @@ defineExpose({
|
|
|
</a-dropdown>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- <p v-if="contentEditorVisible">
|
|
|
+ <p v-if="contentEditorVisible" :class="{'repetitiveWarning': repetitiveWarning}">
|
|
|
<ContentEditor :data="data.content || ''" @change="onContentChange" ref="contentEditor" />
|
|
|
</p>
|
|
|
<div class="chapter-button-group" v-if="contentEditorVisible">
|
|
|
@@ -245,5 +247,10 @@ defineExpose({
|
|
|
.chapter-button-group {
|
|
|
text-align: right;
|
|
|
}
|
|
|
+
|
|
|
+ .repetitiveWarning{
|
|
|
+ border: 1px solid red;
|
|
|
+ border-radius: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|