first
This commit is contained in:
35
src/components/commonBtn.vue
Normal file
35
src/components/commonBtn.vue
Normal file
@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div class="button" @click="clickHandler">
|
||||
{{ title }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "commonBtn",
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: '提交'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickHandler() {
|
||||
this.$emit('submitClick')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/mixin.scss";
|
||||
.button {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
@include bgFontColor(#FFFFFF,#354D93);
|
||||
@include fontWeightSize(500,15px);
|
||||
@include whLin(88%,48px);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user