sl-express/project-wl-yonghuduan-uniap.../components/BtnFooter/index.vue

31 lines
529 B
Vue
Raw Permalink Normal View History

2023-09-04 16:40:17 +08:00
<!-- 底部按钮 -->
<template>
<view class="BtnFooter">
<view class="btn" :class="isActive?'active':''" @click="handleClick">{{btnText}}</view>
</view>
</template>
<script setup>
import {
ref,
reactive,
onMounted,
} from 'vue';
defineProps({
btnText:{
type: String,
default: '确定',
},
isActive:{
type: Boolean,
default: false,
}
})
const emits = defineEmits(["@confirm"]);
const handleClick = ()=>{
emits('confirm')
}
</script>
<style src="./index.scss" lang="scss" scoped></style>