我想根据元素中传递的属性显示模板。
说
<template>
<template is="dom-if" if="[[!multiLine]]">
..
</template>
<template is="dom-if" if="[[multiLine]]">
..
</template>
</template>
在我通过的属性中
properties:{
multiLine: {
type: Boolean,
value: false
}
}
在 html 中我只能将多行作为属性传递。我怎样才能做到这一点?它总是在第一个。