UNPKG

vhb-table

Version:

一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...

26 lines (23 loc) 740 B
import VhbTable from './src/table' import VhbTableBody from './src/body' import VHBTable from '../v-h-b-table' export const Table = Object.assign(VhbTable, { install (Vue) { if (typeof window !== 'undefined' && window.VHBTableMixin) { VhbTable.mixins.push(window.VHBTableMixin) delete window.VHBTableMixin } VHBTable.Vue = Vue VHBTable.Table = VhbTable VHBTable.TableComponent = VhbTable if (!Vue.prototype.$vhb) { Vue.prototype.$vhb = { t: VHBTable.t, _t: VHBTable._t } } else { Vue.prototype.$vhb.t = VHBTable.t Vue.prototype.$vhb._t = VHBTable._t } Vue.component(VhbTable.name, VhbTable) Vue.component(VhbTableBody.name, VhbTableBody) } }) export default Table