提交 8a2292e7 编写于 作者: D DCloud_LXH

feat(harmony): component text

上级 63d05c7b
...@@ -3,6 +3,7 @@ import { UniComment } from '@dcloudio/uni-app-plus/view/framework/dom/elements/U ...@@ -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 { UniViewElement } from '@dcloudio/uni-app-plus/view/framework/dom/elements/UniViewElement'
import { UniButton } from '@dcloudio/uni-app-plus/view/framework/dom/components/UniButton' 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 { 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 = { export const BuiltInComponents = {
'#text': UniTextNode, '#text': UniTextNode,
...@@ -10,4 +11,5 @@ export const BuiltInComponents = { ...@@ -10,4 +11,5 @@ export const BuiltInComponents = {
VIEW: UniViewElement, VIEW: UniViewElement,
BUTTON: UniButton, BUTTON: UniButton,
IMAGE: UniImage, IMAGE: UniImage,
TEXT: UniTextElement,
} }
import { import {
VNode, Comment,
Component, type Component,
type VNode,
createTextVNode, createTextVNode,
createVNode, createVNode,
Comment,
ref,
onMounted, onMounted,
ref,
} from 'vue' } from 'vue'
import { defineBuiltInComponent } from '../../helpers/component' import { defineBuiltInComponent } from '../../helpers/component'
import { UniElement } from '../../helpers/UniElement' import { UniElement } from '../../helpers/UniElement'
import { DecodeOptions, parseText } from '../../helpers/text' import { type DecodeOptions, parseText } from '../../helpers/text'
export class UniTextElement extends UniElement {} export class UniTextElement extends UniElement {}
export default /*#__PURE__*/ defineBuiltInComponent({ export default /*#__PURE__*/ defineBuiltInComponent({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册