1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
-
- <view class="tui-table__box" :style="{
- borderTop:borderTop? `${borderWidth} solid ${borderColor}`:'0',
- borderLeft:borderLeft? `${borderWidth} solid ${borderColor}`:'0',
- borderBottom: borderBottom ? `${borderWidth} solid ${borderColor}` : '0',
- borderRight: borderRight ? `${borderWidth} solid ${borderColor}` : '0'
- }">
- <slot></slot>
- </view>
- </template>
- <script>
-
- export default {
- name: 'tuiTable',
- props: {
-
- borderWidth: {
- type: String,
- default: '1rpx'
- },
-
- borderColor: {
- type: String,
- default: '#EAEEF5'
- },
-
- borderTop: {
- type: Boolean,
- default: true
- },
-
- borderLeft: {
- type: Boolean,
- default: true
- },
-
- borderBottom: {
- type: Boolean,
- default: false
- },
-
- borderRight: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- width: 320
- };
- },
- methods:{
-
- }
- };
- </script>
- <style scoped>
- .tui-table__box {
- font-size: 0;
- box-sizing: border-box;
- }
- </style>
|