mirror of
https://gitee.com/ulthon/layui-ul.git
synced 2026-07-08 21:22:48 +08:00
将数据卡片极简使用新结构重构
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@import './card/ul-card-data-a/index';
|
||||
@import './card/ul-card-data-simple/index';
|
||||
@import './card/ul-card-money/index';
|
||||
@import './card/ul-card-qrcode/index';
|
||||
@import './card/ul-easy-image/index';
|
||||
|
||||
6
source/components/card/ul-card-data-simple/_index.env
Normal file
6
source/components/card/ul-card-data-simple/_index.env
Normal file
@@ -0,0 +1,6 @@
|
||||
title=数据卡片极简
|
||||
padding=1
|
||||
margin=0
|
||||
gray=1
|
||||
mobile=0
|
||||
inner_margin=0
|
||||
70
source/components/card/ul-card-data-simple/_index.html
Normal file
70
source/components/card/ul-card-data-simple/_index.html
Normal file
@@ -0,0 +1,70 @@
|
||||
<div class="ul-section">
|
||||
<div class="ul-card-data-simple">
|
||||
<div class="item line">
|
||||
<div class="item-title">
|
||||
订单数量
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
<div class="item-rate up">
|
||||
30%
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item-title">
|
||||
订单数量
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
<div class="item-rate down">
|
||||
30%
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item-title">
|
||||
线下订单
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
<div class="item-rate">
|
||||
30%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ul-section">
|
||||
<div class="ul-card-data-simple bg-black">
|
||||
<div class="item main">
|
||||
<div class="item-title">
|
||||
订单数量
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item-title">
|
||||
订单数量
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item-title">
|
||||
线下订单
|
||||
</div>
|
||||
<div class="item-value">
|
||||
120
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
5
source/components/card/ul-card-data-simple/_index.php
Normal file
5
source/components/card/ul-card-data-simple/_index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
83
source/components/card/ul-card-data-simple/_index.scss
Normal file
83
source/components/card/ul-card-data-simple/_index.scss
Normal file
@@ -0,0 +1,83 @@
|
||||
.ul-card-data-simple {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
|
||||
margin: 15px 0;
|
||||
padding: 0 15px;
|
||||
text-align: left;
|
||||
|
||||
.item-title {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.item-rate {
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
.item-rate.up {
|
||||
color: #FF5722;
|
||||
|
||||
&::after {
|
||||
content: ' ↑';
|
||||
}
|
||||
}
|
||||
|
||||
.item-rate.down {
|
||||
color: #1E9FFF;
|
||||
|
||||
&::after {
|
||||
content: ' ↓';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item.line {
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
&.bg-black {
|
||||
background-color: #393D49;
|
||||
color: #fff;
|
||||
border-radius: 15px;
|
||||
padding: 15px;
|
||||
box-shadow: 0 0 4px #999;
|
||||
|
||||
.item {
|
||||
padding: 15px;
|
||||
margin: 0 10px 0 0;
|
||||
|
||||
.item-title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.item.main {
|
||||
background-color: #fff;
|
||||
color: #393D49;
|
||||
border-radius: 15px;
|
||||
|
||||
box-shadow: 1px 1px 3px #999;
|
||||
margin-right: 25px;
|
||||
|
||||
.item-title {
|
||||
color: #393D49;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
@import './ul-card-simple-icon';
|
||||
@import './ul-card-message';
|
||||
@import './ul-info-card';
|
||||
@import './ul-card-data-simple';
|
||||
@import './ul-card-data-simple-bg-black';
|
||||
@import './ul-data-card';
|
||||
@import './ul-card-file';
|
||||
@@ -1,34 +0,0 @@
|
||||
.ul-card-data-simple.ul-card-data-simple-bg-black {
|
||||
background-color: #393D49;
|
||||
color : #fff;
|
||||
border-radius : 15px;
|
||||
padding : 15px;
|
||||
|
||||
box-shadow: 0 0 4px #999;
|
||||
|
||||
.item {
|
||||
padding: 15px;
|
||||
margin : 0 10px 0 0;
|
||||
|
||||
.item-title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.item.main {
|
||||
background-color: #fff;
|
||||
color : #393D49;
|
||||
border-radius : 15px;
|
||||
|
||||
box-shadow : 1px 1px 3px #999;
|
||||
margin-right: 25px;
|
||||
|
||||
.item-title {
|
||||
color: #393D49;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
.ul-card-data-simple {
|
||||
display : flex;
|
||||
align-items : center;
|
||||
justify-content : flex-start;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
|
||||
margin : 15px 0;
|
||||
padding : 0 15px;
|
||||
text-align: left;
|
||||
|
||||
.item-title {
|
||||
font-size: 12px;
|
||||
color : #666;
|
||||
}
|
||||
|
||||
.item-value {
|
||||
font-size : 16px;
|
||||
font-weight: 600;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.item-rate {
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
.item-rate.up {
|
||||
color: #FF5722;
|
||||
}
|
||||
|
||||
.item-rate.down {
|
||||
color: #1E9FFF;
|
||||
}
|
||||
}
|
||||
|
||||
.item.line {
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user