feat: 首次提交

This commit is contained in:
peerless_hero
2023-08-17 21:28:49 +08:00
parent 36f80fb971
commit ec1e5e16cd
571 changed files with 95322 additions and 0 deletions

View File

@ -0,0 +1,95 @@
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号1 86 1 407 2 549身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title">Grid</view>
<view class="fui-page__desc">Grid 宫格主要使用场景如热门内容等</view>
</view>
<view class="fui-page__bd">
<view class="fui-section__title">九宫格</view>
<fui-grid>
<fui-grid-item v-for="(item,index) in nums" :key="index">
<view class="fui-grid__cell">
<image src="/static/images/common/icon_tabbar_3x.png" class="fui-icon" mode="widthFix"></image>
<text>Grid</text>
</view>
</fui-grid-item>
</fui-grid>
<view class="fui-section__title">高度自适应</view>
<fui-grid :square="false">
<fui-grid-item v-for="(item,index) in nums" :key="index">
<view class="fui-grid__cell fui-padding">
<image src="/static/images/common/icon_tabbar_2x.png" class="fui-icon__2x" mode="widthFix">
</image>
<text>Grid</text>
</view>
</fui-grid-item>
</fui-grid>
<view class="fui-section__title">改变列数4</view>
<fui-grid :columns="4">
<fui-grid-item v-for="(item,index) in arrs" :key="index">
<view class="fui-grid__cell fui-padding">
<image src="/static/images/common/icon_tabbar_2x.png" class="fui-icon__2x" mode="widthFix">
</image>
<text>Grid</text>
</view>
</fui-grid-item>
</fui-grid>
</view>
</view>
</template>
<script>
export default {
data() {
return {
//百度小程序循环数字有问题
nums: [0, 1, 2, 3, 4, 5, 6, 7, 8],
arrs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
}
},
onLoad() {}
}
</script>
<style>
page {
background-color: #FFFFFF;
/* 非nvue端可通过此变量控制边框颜色 */
/* --fui-color-border:#465CFF; */
}
.fui-section__title {
margin-left: 32rpx;
}
.fui-grid__cell {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
flex: 1;
font-size: 28rpx;
font-weight: 400;
}
.fui-padding {
padding: 36rpx 0;
}
.fui-icon {
width: 96rpx;
height: 96rpx;
margin-bottom: 16rpx;
}
.fui-icon__2x {
width: 64rpx;
height: 64rpx;
margin-bottom: 16rpx;
}
.fui-flex__column {
flex: 1;
}
</style>