mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-24 19:07:44 +08:00
fix(editor): cose-select无法删除
This commit is contained in:
parent
f0a39667e1
commit
b0d8c5383b
@ -56,6 +56,13 @@ const codeConfig = computed<GroupListConfig>(() => ({
|
||||
|
||||
return Array.isArray(model.codeId) ? model.codeId.join('/') : index;
|
||||
}
|
||||
|
||||
const codeContent = codeBlockService.getCodeContentById(model.codeId);
|
||||
|
||||
if (codeContent) {
|
||||
return codeContent.name;
|
||||
}
|
||||
|
||||
return model.codeId || index;
|
||||
},
|
||||
items: [
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
.m-fields-code-select {
|
||||
width: 100%;
|
||||
.el-card__header {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user