1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

v1.0.0-beta 源码正式开源

This commit is contained in:
小莫唐尼
2022-12-06 15:08:29 +08:00
commit 636ae7b169
461 changed files with 116817 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<template>
<view class="tm-gap" :class="[vertical?'d-inline-block':'d-block']"
:style="{
width:vertical?gutter+'rpx':'auto',
height:!vertical?gutter+'rpx':'auto',
}"
></view>
</template>
<script>
/**
* 间隙
* @param {Number} gutter = [] 24 间隙
* @param {Boolean} vertical = [true/false] 默认:false 是否竖向。
*/
export default {
name:"tm-gap",
props:{
gutter:{
type:Number|String,
default:24
},
vertical:{
type:Boolean|String,
default:false
}
},
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>