Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

遇到自闭合标签解析异常 #2

Open
VitoBeijing opened this issue Jun 4, 2021 · 0 comments
Open

遇到自闭合标签解析异常 #2

VitoBeijing opened this issue Jun 4, 2021 · 0 comments

Comments

@VitoBeijing
Copy link

VitoBeijing commented Jun 4, 2021

遇到自闭合标签,解析后children只有一个子节点

html`
    <template>
        <div class="mongodb-activity ui-panel-loading" 
            track-name="新建任务">
        <span>	 开通{{type === 'audit' ? '审计日志' : '这两个'}}功能,需读取您的{{type === 'audit' ? '审计' : '运行'}}日志文件</span>
        <span>	测试{{test}}的点点滴滴{{sss}}</span>
        <sui-empty
            slot="empty"
            emptyText="{{table.emptyText}}"
            actionText="新建迁移任务>"
            on-click="onCreateTask"
            track-id="{{trackId}}"
            track-name="新建任务"
        />
        </div>
    </template>`

输出:

{"tag":"root","children":[{"type":"Text","content":"\n    \n    "}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant