From 695efc00a8c5c4dfc88dbcb3ce71db6dbc1656f7 Mon Sep 17 00:00:00 2001 From: i33 <78162524@qq.com> Date: Wed, 14 Sep 2022 11:40:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8Dtext=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=9C=A8=E6=B5=81=E5=BC=8F=E5=AE=B9=E5=99=A8=E5=86=85?= =?UTF-8?q?=E6=97=A0=E5=AE=BD=E9=AB=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/src/text/src/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/text/src/index.vue b/packages/ui/src/text/src/index.vue index 694a477d..c320bb10 100644 --- a/packages/ui/src/text/src/index.vue +++ b/packages/ui/src/text/src/index.vue @@ -52,9 +52,9 @@ export default defineComponent({ render() { const className = this.config?.multiple ? 'magic-ui-text' : 'magic-ui-text magic-ui-text--single-line'; if (typeof this.$slots?.default === 'function') { - return h('span', { class: className }, [this.$slots?.default?.() || '']); + return h('div', { class: className }, [this.$slots?.default?.() || '']); } - return h('span', { + return h('div', { class: className, ...(this.displayText ? { innerHTML: this.displayText } : {}), });