feat(editor): Add v1 banner (#6443)

This commit is contained in:
Iván Ovejero
2023-06-19 16:23:57 +02:00
committed by कारतोफ्फेलस्क्रिप्ट™
parent 85372aabdf
commit 0fe415add2
17 changed files with 198 additions and 5 deletions

View File

@@ -50,6 +50,10 @@ export default defineComponent({
slim: {
type: Boolean,
},
overrideIcon: {
type: Boolean,
default: false,
},
},
computed: {
classes(): string[] {
@@ -61,6 +65,8 @@ export default defineComponent({
];
},
getIcon(): string {
if (this.overrideIcon) return this.icon;
if (Object.keys(CALLOUT_DEFAULT_ICONS).includes(this.theme)) {
return CALLOUT_DEFAULT_ICONS[this.theme];
}