|
@@ -75,43 +75,26 @@
|
|
|
<a-row :gutter="20" style="margin-bottom: 30px">
|
|
|
<a-col :span="12">
|
|
|
<a-card title="带看次数排行(前5)" :bordered="false">
|
|
|
- <a-badge-ribbon text="1" color="red">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
-
|
|
|
- <a-badge-ribbon text="2" color="orange">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="3" color="yellow">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="4" color="#eee">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="5" color="#eee">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
+ <ul class="topic-list">
|
|
|
+ <li>Coffee</li>
|
|
|
+ <li>Tea</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ </ul>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-card title="留言数排行(前5)" :bordered="false">
|
|
|
- <a-badge-ribbon text="1" color="red">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="2" color="orange">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="3" color="yellow">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="4" color="#eee">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- <a-badge-ribbon text="5" color="#eee">
|
|
|
- <p>Card content</p>
|
|
|
- </a-badge-ribbon>
|
|
|
- </a-card></a-col
|
|
|
- >
|
|
|
+ <ul class="topic-list">
|
|
|
+ <li>Coffee</li>
|
|
|
+ <li>Tea</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ <li>Milk</li>
|
|
|
+ </ul>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
|
|
|
<a-row>
|
|
@@ -190,4 +173,39 @@ onMounted(() => {
|
|
|
width: 100%;
|
|
|
min-height: 500px;
|
|
|
}
|
|
|
+.topic-list {
|
|
|
+ list-style: none;
|
|
|
+ padding: 0;
|
|
|
+ li {
|
|
|
+ counter-increment: li-counter;
|
|
|
+ line-height: 20px;
|
|
|
+ margin: 15px 0;
|
|
|
+ &::before {
|
|
|
+ content: '' counter(li-counter) '';
|
|
|
+ display: inline-block;
|
|
|
+ background: red;
|
|
|
+ text-align: center;
|
|
|
+ width: 20px;
|
|
|
+ color: white;
|
|
|
+ height: 20px;
|
|
|
+ line-height: 20px;
|
|
|
+ border-radius: 6px;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ &:nth-child(2)::before {
|
|
|
+ background: #fe6600;
|
|
|
+ }
|
|
|
+ &:nth-child(3)::before {
|
|
|
+ background: #f2a841;
|
|
|
+ }
|
|
|
+ &:nth-child(4)::before {
|
|
|
+ background: #ebedf0;
|
|
|
+ color: #323233;
|
|
|
+ }
|
|
|
+ &:nth-child(5)::before {
|
|
|
+ background: #ebedf0;
|
|
|
+ color: #323233;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|