We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee22aa6 commit 22dfd00Copy full SHA for 22dfd00
packages/mars-build/src/compiler/template/mark-component.js
@@ -89,7 +89,7 @@ function isComplexExp(exp) {
89
function getFilters(node) {
90
let props = node.attrsList
91
? node.attrsList.filter(({name, value}) =>
92
- name.indexOf(':') >= 0 && (value.indexOf('|') > 0 || isComplexExp(value))
+ name.indexOf(':') >= 0 && (/[^|]+\|[^|]+/.test(value) || isComplexExp(value))
93
)
94
: [];
95
props = props.map(({name}) => name.replace(/^(v-bind)?:/, ''));
0 commit comments