fuint-uniapp-master/components/oveui-layout/o-col/o-col.vue
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view :class="[Span, Offset]" :style="'padding:1rpx '+ Gutter +'rpx;'"
@tap="onClick" :data-type="type" :data-url="url">
<view v-if="bgClass!='' || bgStyle!=''" class="Bg" :class="bgClass" :style="Radius + bgStyle">
<slot></slot>
</view>
<slot v-else></slot>
</view>
</template>
<script>
export default {
name: "o-col",
props:{
span:{
type:[Number,String],
default:''
},
offset:{
type:[Number,String],
default:0
},
url:{
type:String,
default:''
},
type:{
type:String,
default:''
},
},
inject: ['gutter','bgclass','bgstyle','radius','cols'],
computed:{
Span(){
if(this.cols!='') return '';
else if(this.span =='' || this.span > 24) return 'o-col-24';
else if(this.span < 1 ) return 'o-col-1';
else return 'o-col-'+this.span;
},
Offset(){
if(this.offset >= 1 && this.offset < 24)
return 'offset-' + this.offset;
else return '';
},
Radius(){
if(this.radius > 0)
return 'border-radius:' + this.radius + 'rpx;overflow:hidden;';
else return '';
},
bgStyle(){
if(this.bgstyle != '')
return 'background-color:'+this.bgstyle;
else return '';
},
bgClass(){
if(this.bgclass != '' && this.bgstyle == '')
return this.bgclass;
else return '';
},
Gutter(){
后面还有 81 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。