提交 4b29097e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat: v-html

上级 af3d7ca0
......@@ -102,6 +102,12 @@
"navigationBarTitleText": "v-slot"
}
},
{
"path": "pages/directive/v-html/v-html",
"style": {
"navigationBarTitleText": "v-html"
}
},
{
"path": "pages/lifecycle/page/page",
"style": {
......
const PAGE_PATH = '/pages/directive/v-html/v-html'
describe('v-html', () => {
let page
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor('view')
})
it('basic', async () => {
const image = await program.screenshot()
expect(image).toMatchImageSnapshot()
})
})
\ No newline at end of file
<template>
<view v-html="html" />
</template>
<script lang="uts">
export default {
data() {
return {
html: '<p class="p" style="color: red;">hello world!</p>'
}
}
}
</script>
......@@ -30,7 +30,7 @@
<script>
let typeIndex = 0
const TypeList : Array<string> = ['A', 'B', 'C', 'D']
const TypeList = ['A', 'B', 'C', 'D']
export default {
data() {
return {
......
......@@ -141,6 +141,11 @@
url: 'v-slot',
enable: true,
},
{
name: 'v-html',
url: 'v-html',
enable: true,
},
{
name: 'v-pre',
url: 'v-pre',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册