当前位置:网站首页>Assemblage stylisé de cartes de commutation auto - encapsulées
Assemblage stylisé de cartes de commutation auto - encapsulées
2022-07-19 01:30:00 【Taitchan】
Tableau des effets:
Code:
<template>
<div class="card" :class="isOpen?type:'off'">
<el-row style="position:relative">
<i :class="icon" style="font-size: 40px;font-weight: 100" />
<div style="position: absolute;top: 0;right: 0;padding-top: 10px">
<ct-switch
v-model="isOpen"
:circle-color="isOpen?activeColors[type]:'#fff'"
active-color="#FDFDFD"
inactive-color="#8A88B7"
active-text="ON"
inactive-text="OFF"
/>
</div>
</el-row>
<el-row style="height: 40px;position: relative">
<span style="font-size: 16px;font-weight: 600;position: absolute;bottom: 0;left:0;letter-spacing: 1px">{
{
name }}</span>
</el-row>
</div>
</template>
<script>
import CtSwitch from './ct-switch'
export default {
name: 'CtCard',
components: {
CtSwitch },
props: {
type: {
type: String,
default: 'off'
},
icon: {
type: String,
default: 'el-icon-coffee-cup'
},
name: {
type: String,
default: 'taitChan'
}
},
data() {
return {
isOpen: true,
activeColors: {
success: '#2BAA5D', danger: '#F2946D', primary: '#0077F4', warning: '#7230F9' }
}
}
}
</script>
<style scoped>
.card{
border-radius: 20px;
width: 200px;
height: 120px;
margin: 0 20px 20px 0;
display: inline-block;
padding: 20px;
color: white;
}
.success{
background-image: linear-gradient(to bottom right, #33C8B4, #2CAD66);
}
.primary{
background-color: #0082F6;
}
.danger{
background-image: linear-gradient(to right, #FA7D74 , #F94E39);
}
.warning{
background-color: #7A40F2;
}
.off{
box-shadow: 0 0 20px rgba(138, 136, 183,0.8);
}
</style>
Section de commutation(ct-switch) Ça a changé. , Le changement est assez grossier .
边栏推荐
- uni-app微信公众号(4)——地址管理页面
- C Programming Language(2nd Edition)--读书笔记--1.5
- extern和static的区别
- C Programming Language (2nd Edition)--读书笔记--1.4
- Colorful text advertising code, text advertising code beautification version, add text advertising tutorials to the website
- Oracle database architecture
- Day07 ORM table relationship and operation
- Oracle automatic storage management 18C step-by-step installation -2
- object-fit:cover; It doesn't work in the applet. How to deal with the deformation of the applet image
- 小程序swiper高度
猜你喜欢

uni-app微信小程序——商城(3)——商城主页

JS intercepts the first few digits of the string or the last few digits of the string

深度之眼三——(6)】数学:矩阵对角化及二次型1

物联网开发基础

object-fit:cover;在小程序中不起作用,小程序图片变形了如何处理

JSX syntax

XSS simple summary
![Eye of depth III - (7, 8)] mathematics: matrix diagonalization and quadratic form 2.3](/img/fd/2808b277cdbf06ab7b041225d8d17e.png)
Eye of depth III - (7, 8)] mathematics: matrix diagonalization and quadratic form 2.3

js替换字符串某个字符,js修改字符串中指定字符

Record once easy_ SQL Stack Injection
随机推荐
两表连接进行增删改查
wget 警告: 无法验证
Record buuctf [netding Cup 2018] unfinish1 problem solving ideas
E-commerce background management login
The C Programming Language(2nd)--笔记--1.10
深度之眼三——(3)】 數學:矩陣特征值與特征向量1
Record once easy_ SQL Stack Injection
JSX compilation
@Configurationproperties annotation usage
The C Programming Language (2nd)--笔记--1.7
win10解压文件时,出错:不能创建符号链接 你可能需要以管理员权限运行Winrar 客户端没有所需的特权
解决小程序自定义底部菜单切换闪动
C Programming Language (2nd Edition)--读书笔记--1.4
(七)流程控制
P6-day01-general attempt (P4 review)
cmake的基本使用
uniapp中text-indent不起作用,uniapp首行缩进不管用如何解决?
(10)文件包含
C Programming Language (2nd Edition)--读书笔记--1.3
Day10 front back continuous adjustment