UNPKG

ysj-plus-table

Version:

A Vue 3 table component based on Element Plus

25 lines (20 loc) 518 B
import PlusTable from './components/PlusTable/index.vue' import './style/index.scss' // 定义组件名称 PlusTable.name = 'YsjPlusTable' // 定义 install 方法 const install = function(app) { app.component(PlusTable.name, PlusTable) } // 判断是否直接引入文件 if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) } // 导出组件和样式 export { PlusTable } export * from './style/index.scss' // 统一导出 export default { install, PlusTable }