You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
690 B
Vue
45 lines
690 B
Vue
2 years ago
|
<template>
|
||
|
<view class="tui-grids" :class="{'tui-border-top':unlined}">
|
||
|
<slot></slot>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name:"tuiGrid",
|
||
|
props: {
|
||
|
//是否去掉上线条
|
||
|
unlined: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.tui-grids {
|
||
|
width: 100%;
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
.tui-grids::after {
|
||
|
content: " ";
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 100%;
|
||
|
height: 1px;
|
||
|
border-top: 1px solid #eaeef1;
|
||
|
-webkit-transform-origin: 0 0;
|
||
|
transform-origin: 0 0;
|
||
|
-webkit-transform: scaleY(0.5);
|
||
|
transform: scaleY(0.5);
|
||
|
}
|
||
|
|
||
|
.tui-border-top::after {
|
||
|
border-top: 0 !important;
|
||
|
}
|
||
|
</style>
|