feat: 栅格系统

This commit is contained in:
wang_fan_w 2024-05-21 23:51:46 +08:00
parent 440b9007fb
commit a26f025ba7
2 changed files with 14 additions and 21 deletions

View File

@ -8,31 +8,20 @@
</div> </div>
</div> </div>
<a-divider :margin="16" /> <a-divider :margin="16" />
<!-- <div class="flex-row-between-center"> <a-row>
<div v-for="(item, index) in shortcut" :key="item.id" class="card-middling row-center" :class="'animated-fade-up-' + index">
<div>
<SvgIcon :name="item.svg" :size="40" />
<span class="shortcut-card-label">{{ item.name }}</span>
</div>
</div>
</div> -->
<a-row class="grid-demo">
<a-col <a-col
:xs="24" :xs="24"
:sm="12" :sm="12"
:md="12"
:lg="8" :lg="8"
:xl="4" :xl="4"
:xxl="4" :gutter="[24, 12]"
v-for="(item, index) in shortcut" v-for="(item, index) in shortcut"
:key="item.id" :key="item.id"
class="card-middling row-center" class="card-middling row-center card-box"
:class="'animated-fade-up-' + index" :class="'animated-fade-up-' + index"
> >
<div> <SvgIcon :name="item.svg" :size="40" />
<SvgIcon :name="item.svg" :size="40" /> <div class="shortcut-card-label">{{ item.name }}</div>
<span class="shortcut-card-label">{{ item.name }}</span>
</div>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
@ -75,10 +64,14 @@ const shortcut = ref([
<style lang="scss" scoped> <style lang="scss" scoped>
.shortcut-box { .shortcut-box {
.shortcut-card-label { .card-box {
font-size: $font-size-body-3; margin-bottom: $padding;
margin-left: 20px; .shortcut-card-label {
color: $color-text-2; width: 100px;
font-size: $font-size-body-3;
margin-left: 20px;
color: $color-text-2;
}
} }
} }
.box-title { .box-title {

View File

@ -65,7 +65,7 @@ const targetData = reactive({
<style lang="scss" scoped> <style lang="scss" scoped>
.target-box { .target-box {
margin-top: calc($padding * 2); margin-top: $padding;
.target-grade { .target-grade {
width: 180px; width: 180px;
height: 60px; height: 60px;