新增按钮
This commit is contained in:
parent
45e04f27f2
commit
ceb32c4b71
40
components/mybtn/mybtn.vue
Normal file
40
components/mybtn/mybtn.vue
Normal 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>
|
2
main.js
2
main.js
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user