You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
582 B
19 lines
582 B
import { VueConstructor } from 'vue'
|
|
import VxeUploadComponent from './src/upload'
|
|
import { VxeUI } from '@vxe-ui/core'
|
|
import { dynamicApp } from '../dynamics'
|
|
import { saveLocalFile, readLocalFile } from './src/util'
|
|
|
|
export const VxeUpload = Object.assign({}, VxeUploadComponent, {
|
|
install (app: VueConstructor) {
|
|
app.component(VxeUploadComponent.name as string, VxeUploadComponent)
|
|
}
|
|
})
|
|
|
|
dynamicApp.use(VxeUpload)
|
|
VxeUI.component(VxeUploadComponent)
|
|
VxeUI.saveFile = saveLocalFile
|
|
VxeUI.readFile = readLocalFile
|
|
|
|
export const Upload = VxeUpload
|
|
export default VxeUpload
|
|
|