12345678910111213141516171819202122232425 |
- import VxeTable from './src/table'
- import VxeTableBody from './src/body'
- import VXETable from '../v-x-e-table'
- export const Table = Object.assign(VxeTable, {
- install (Vue) {
- if (typeof window !== 'undefined' && window.VXETableMixin) {
- VxeTable.mixins.push(window.VXETableMixin)
- delete window.VXETableMixin
- }
- VXETable.Vue = Vue
- VXETable.Table = VxeTable
- VXETable.TableComponent = VxeTable
- if (!Vue.prototype.$vxe) {
- Vue.prototype.$vxe = { t: VXETable.t, _t: VXETable._t }
- } else {
- Vue.prototype.$vxe.t = VXETable.t
- Vue.prototype.$vxe._t = VXETable._t
- }
- Vue.component(VxeTable.name, VxeTable)
- Vue.component(VxeTableBody.name, VxeTableBody)
- }
- })
- export default Table
|