You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <!-- 底部弹窗 --> <view class="cu-modal bottom-modal" :class="modalShow?'show':''" @tap="hideModal"> <view class="cu-dialog"> <view> <view v-for="(item,index) in content" :key="index" class="solid-bottom padding-tb text-black" @tap="BtnClick(index)"> {{item.text}} </view> <view style="background-color: #efefef; height: 10rpx;"></view> <view class="text-gray padding-tb" @tap="hideModal">取消</view> </view> </view> </view></template>
<script> export default { props: { content: { type: Array,
default: () => { return [] }, }, modalShow: { type: Boolean, default: false } }, data() { return {
} },
methods: { //确认
BtnClick(index) { this.$emit('determine', index) }, //隐藏弹窗
hideModal() { this.$emit('hideModal') }, } }</script>
<style scoped>
</style>
|