init2
This commit is contained in:
BIN
src/views/bigScreen/components/bigScreenBtn/default.png
Normal file
BIN
src/views/bigScreen/components/bigScreenBtn/default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
55
src/views/bigScreen/components/bigScreenBtn/index.vue
Normal file
55
src/views/bigScreen/components/bigScreenBtn/index.vue
Normal file
@ -0,0 +1,55 @@
|
||||
|
||||
|
||||
<template>
|
||||
<div class="bigScreenBtn" :class="{selected:selected}">
|
||||
<div>{{title}}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'BigScreenBtn',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: '按钮',
|
||||
},
|
||||
selected: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bigScreenBtn {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
width: 125px;
|
||||
height: 32px;
|
||||
line-height: 25px;
|
||||
padding-left: 22px;
|
||||
box-sizing: border-box;
|
||||
font-size: 18px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: initial;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
background-size: 100% 100%;
|
||||
background-image: url(./default.png);
|
||||
}
|
||||
.bigScreenBtn:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
.bigScreenBtn.selected {
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
background-image: url(./selected.png);
|
||||
}
|
||||
</style>
|
||||
BIN
src/views/bigScreen/components/bigScreenBtn/selected.png
Normal file
BIN
src/views/bigScreen/components/bigScreenBtn/selected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 KiB |
Reference in New Issue
Block a user