console
var Main = {
setup() {
const gridRef = ref(null)
const gridOptions = reactive({
columns: [{ field: 'name', title: 'Name' }],
})
return {
gridOptions, onTest, gridRef
}
}
};
Vue.createApp(Main).use(VXETable).mount('#app')
<script src="https://cdn.jsdelivr.net/npm/vue@next">
</script>
<script src="https://cdn.jsdelivr.net/npm/xe-utils">
</script>
<script src="https://cdn.jsdelivr.net/npm/vxe-table@next">
</script>
<div id="app">
<div>
<vxe-grid v-bind="gridOptions">
</div>
</div>
@import url("https://cdn.jsdelivr.net/npm/vxe-table@next/lib/style.css");