2023-08-04 11:33:43 +08:00

40 lines
589 B
Vue

<template>
<view>
<button @click="click" class="new_btn">{{text}}</button>
</view>
</template>
<script>
export default {
props: {
text: {
type: String,
default: '新增'
}
},
data(){
return{
}
},
methods:{
click(){
this.$emit('click')
}
}
}
</script>
<style lang="scss">
.new_btn{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
border-radius: 0;
color: #fff;
height: 90rpx;
line-height: 90rpx;
background-color: $theme-oa-color;
}
</style>