提交 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
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,
}
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({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册