inlineBtn.vue
740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template lang="html">
<div class="">
<div v-if="type === 'enable'" class="set-enable-btn">
<slot></slot>
</div>
<div v-if="type === 'unable'" class="un-set-btn">
<slot></slot>
</div>
</div>
</template>
<script>
export default {
props: ['type']
}
</script>
<style lang="less">
.set-enable-btn {
color: #8EA8CF;
background-color: #FFFFFF;
text-align: center;
margin: 0.5rem 1rem;
padding: 0.5rem 0;
border-radius: .2rem;
font-size: .85rem;
border: 1px solid #8EA8CF;
}
.un-set-btn {
color: white;
background-color: #8EA8CF;
text-align: center;
margin: 0.5rem 1rem;
padding: 0.5rem 0;
border-radius: .2rem;
font-size: .85rem;
}
</style>