You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
571 B

import { convertDynamicProperties } from "../../static/utils/dynamic_properties.js";
export default {
template: `
<q-table
ref="qRef"
v-bind="$attrs"
:columns="convertedColumns"
>
<template v-for="(_, slot) in $slots" v-slot:[slot]="slotProps">
<slot :name="slot" v-bind="slotProps || {}" />
</template>
</q-table>
`,
props: {
columns: Array,
},
computed: {
convertedColumns() {
this.columns.forEach((column) => convertDynamicProperties(column, false));
return this.columns;
},
},
};