diff --git a/packages/uni-app-harmony/src/view/framework/dom/components/index.ts b/packages/uni-app-harmony/src/view/framework/dom/components/index.ts index 53984a0d4d3dd8b913eabd25991c8041b1e72154..9319e99633d0c0f80e53efec00279973fa3ce693 100644 --- a/packages/uni-app-harmony/src/view/framework/dom/components/index.ts +++ b/packages/uni-app-harmony/src/view/framework/dom/components/index.ts @@ -3,6 +3,7 @@ import { UniComment } from '@dcloudio/uni-app-plus/view/framework/dom/elements/U import { UniViewElement } from '@dcloudio/uni-app-plus/view/framework/dom/elements/UniViewElement' import { UniButton } from '@dcloudio/uni-app-plus/view/framework/dom/components/UniButton' import { UniImage } from '@dcloudio/uni-app-plus/view/framework/dom/components/UniImage' +import { UniTextElement } from '@dcloudio/uni-app-plus/view/framework/dom/elements/UniTextElement' export const BuiltInComponents = { '#text': UniTextNode, @@ -10,4 +11,5 @@ export const BuiltInComponents = { VIEW: UniViewElement, BUTTON: UniButton, IMAGE: UniImage, + TEXT: UniTextElement, } diff --git a/packages/uni-components/src/vue/text/index.tsx b/packages/uni-components/src/vue/text/index.tsx index d8a7c3f7144e132f7f59b825472beb087263aa8a..1c8af61692a24d7a286bcd8fdebf82698b270690 100644 --- a/packages/uni-components/src/vue/text/index.tsx +++ b/packages/uni-components/src/vue/text/index.tsx @@ -1,15 +1,15 @@ import { - VNode, - Component, + Comment, + type Component, + type VNode, createTextVNode, createVNode, - Comment, - ref, onMounted, + ref, } from 'vue' import { defineBuiltInComponent } from '../../helpers/component' import { UniElement } from '../../helpers/UniElement' -import { DecodeOptions, parseText } from '../../helpers/text' +import { type DecodeOptions, parseText } from '../../helpers/text' export class UniTextElement extends UniElement {} export default /*#__PURE__*/ defineBuiltInComponent({