UNPKG

my-dataentry

Version:

通用详情页功能组件

15 lines (11 loc) 377 B
import { createApp,h } from 'vue'; import ExcelJS from 'exceljs'; import Table from './Table.vue'; import 'handsontable/dist/handsontable.full.min.css'; export default async function render(buffer, target) { const workbook = await new ExcelJS.Workbook().xlsx.load(buffer); const app = createApp({ render: () => h(Table, { workbook }), }); app.mount(target); }