mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[improvement] Template: use v-text instead of mustache (#2404)
This commit is contained in:
@@ -6,12 +6,11 @@
|
||||
<div :class="b('nav')">
|
||||
<div
|
||||
v-for="(item, index) in items"
|
||||
v-text="item.text"
|
||||
class="van-ellipsis"
|
||||
:class="b('nitem', { active: mainActiveIndex === index, disabled: item.disabled })"
|
||||
@click="onClickNav(item, index)"
|
||||
>
|
||||
{{ item.text }}
|
||||
</div>
|
||||
/>
|
||||
</div>
|
||||
<div :class="b('content')">
|
||||
<div
|
||||
|
Reference in New Issue
Block a user