Closed
Description
current
<template>
<div class='box'>
{{content}}
</div>
</template>
output:
return n("div", {
staticClass: "box"
}, [t._v("\n " + t._s(t.content) + "\n")])
what I want
return n("div", {
staticClass: "box"
}, [t._v(t._s(t.content))])
Suggestion
Wrap text content
with a tag like <Text></Text>
. The tag will be removed at webpack's compile-time.
<template>
<div class='box'>
<Text>{{content}}</Text>
</div>
</template>
loader's configuration:
{
query: {
// default option
textContentTrimmingTag: 'Text'
}
}
Metadata
Metadata
Assignees
Labels
No labels