新增按钮

This commit is contained in:
weipengfei 2023-08-04 11:33:43 +08:00
parent 45e04f27f2
commit ceb32c4b71
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<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>

View File

@ -5,9 +5,11 @@ import initRouter from '@/router/router.js'
import uView from '@/uni_modules/uview-ui'
import taskCard from "@/components/taskCard/taskCard.vue"
import mybtn from "@/components/mybtn/mybtn.vue"
import company from "@/components/company/company.vue"
Vue.use(uView)
Vue.use(taskCard)
Vue.use(mybtn)
Vue.use(company)
initRouter()