vxe-table官网:vxe-table v4https://vxetable.cn/v4/#/table/start/install安装:xe-utils vxe-table
npm i -S xe-utils vxe-table
main.js中引入:
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
createApp(App).use(VXETable).mount('#app')
使用:
<template>
<p>
<vxe-button
content="多窗口、叠加窗口"
@click="
openAlert({ content: '多窗口、叠加窗口', lockView: false, mask: false })
"
></vxe-button>
</p>
</template>
<script setup>
import { VXETable } from "vxe-table";
const openAlert = (options) => {
VXETable.modal.alert(options);
};
</script>