Files
dvcp_v2_webapp/packages/bigscreen/designer/components/tableEditor.vue

43 lines
635 B
Vue
Raw Normal View History

2024-01-22 17:12:32 +08:00
<script>
2024-01-22 18:19:56 +08:00
import Vue from 'vue'
2024-01-22 17:12:32 +08:00
2024-01-22 18:19:56 +08:00
console.log(window.AVUE)
2024-01-22 17:12:32 +08:00
export default {
name: "tableEditor",
2024-01-22 18:19:56 +08:00
model: {
event: "input",
prop: "tableData"
},
2024-01-22 17:12:32 +08:00
props: {
tableData: {default: () => []},
configs: {default: () => []}
},
computed: {
columns: v => v.configs
},
2024-01-22 18:19:56 +08:00
created() {
Vue.use(window.AVUE, {
size: 'small',
tableSize: 'small',
calcHeight: 48,
})
}
2024-01-22 17:12:32 +08:00
}
</script>
<template>
<section class="tableEditor">
2024-01-22 18:19:56 +08:00
<avue-crud/>
2024-01-22 17:12:32 +08:00
</section>
</template>
2024-01-22 18:19:56 +08:00
<style scoped lang="scss">
.tableEditor {
width: 100%;
height: auto;
.ag-theme-balham {
height: 300px;
}
}
</style>