64 lines
1.0 KiB
Vue
64 lines
1.0 KiB
Vue
<template>
|
|
<div class="techy-fake-table">
|
|
<div class="table-inner">
|
|
<section class="table-header" />
|
|
<section class="table-body" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: '',
|
|
props: {
|
|
tableProps: {
|
|
type: Array,
|
|
default: () => []
|
|
},
|
|
tableData: {
|
|
type: Array,
|
|
default: () => []
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
headMap: {}
|
|
}
|
|
},
|
|
created() {},
|
|
mounted() {
|
|
this.renderHeadRow().then(() => {
|
|
this.renderCommonRow()
|
|
})
|
|
},
|
|
methods: {
|
|
renderHeadRow() {
|
|
return new Promise((resolve, reject) => {
|
|
// do something...
|
|
})
|
|
},
|
|
renderCommonRow() {
|
|
return new Promise((resolve, reject) => {
|
|
// do something...
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.techy-fake-table {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100px;
|
|
background: #3333;
|
|
overflow: hidden;
|
|
overflow-x: scroll;
|
|
}
|
|
.table-inner {
|
|
max-width: 10000px;
|
|
color: white;
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|