JavaScript/vue.js/标签属性:修订间差异
来自康健生活
| 第8行: | 第8行: | ||
<input v-if="show" type="file" capture="camera" /> | <input v-if="show" type="file" capture="camera" /> | ||
<input v-else type="file" multiple /></syntaxhighlight> | <input v-else type="file" multiple /></syntaxhighlight> | ||
<syntaxhighlight lang="html5"> | |||
:style="{background: 'url(' + | |||
( | |||
(item.voteStatus === -1) | |||
?require('@@/assets/img/search/u23_mouseOver.svg') | |||
:require('@@/assets/img/search/u23.svg') | |||
)+ ') no-repeat', | |||
cursor: ( | |||
(item.voteStatus === '-1') | |||
?'default' | |||
:'pointer' | |||
) | |||
}"</syntaxhighlight> | |||