SOURCE

console 命令行工具 X clear

                    
>
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>
<!-- 使用 cdn 引用方式需要注意是否锁定版本,默认指向最新版本 -->

<div id="app">
	<div>
    <vxe-grid v-bind="gridOptions">
	</div>
</div>
@import url("https://cdn.jsdelivr.net/npm/vxe-table@next/lib/style.css");