Commit c7adb9e0 authored by Mac's avatar Mac

首店认证

parent aa995aab
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<block v-for="(item, index) in list" :key="index"> <block v-for="(item, index) in list" :key="index">
<view @touchmove.stop.prevent @tap="itemClick(index)" :style="[itemStyle(index)]" class="u-action-sheet-item" :class="[index < list.length - 1 ? 'u-border-bottom' : '']" <view @touchmove.stop.prevent @tap="itemClick(index)" :style="[itemStyle(index)]" class="u-action-sheet-item" :class="[index < list.length - 1 ? 'u-border-bottom' : '']"
hover-class="u-hover-class" :hover-stay-time="150"> hover-class="u-hover-class" :hover-stay-time="150">
{{item.text}} {{ item[name] || item['name']}}
</view> </view>
</block> </block>
<view class="u-gab" v-if="cancelBtn"> <view class="u-gab" v-if="cancelBtn">
...@@ -89,7 +89,12 @@ ...@@ -89,7 +89,12 @@
zIndex: { zIndex: {
type: [String, Number], type: [String, Number],
default: 0 default: 0
} },
// 读取传入的数组对象的属性
name: {
type: String,
default: 'text'
},
}, },
computed: { computed: {
// 顶部提示的样式 // 顶部提示的样式
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
type: String, type: String,
default: '#606266' default: '#606266'
}, },
borderBottom{ borderBottom:{
type: Boolean, type: Boolean,
default: false default: false
}, },
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment