ant-design-vue/components/upload/index.tsx

22 lines
515 B
Vue
Raw Normal View History

2021-06-26 01:35:40 +00:00
import type { App, Plugin } from 'vue';
2019-01-12 03:33:27 +00:00
import Upload from './Upload';
import Dragger from './Dragger';
2018-04-13 08:19:50 +00:00
2021-12-17 07:32:32 +00:00
export type { UploadProps, UploadListProps, UploadChangeParam } from './interface';
2018-04-13 08:19:50 +00:00
2019-01-12 03:33:27 +00:00
Upload.Dragger = Dragger;
/* istanbul ignore next */
2021-06-23 15:08:16 +00:00
Upload.install = function (app: App) {
2020-06-25 14:21:23 +00:00
app.component(Upload.name, Upload);
app.component(Dragger.name, Dragger);
2020-10-13 11:14:56 +00:00
return app;
2019-01-12 03:33:27 +00:00
};
2021-06-23 13:47:53 +00:00
export const UploadDragger = Dragger;
2020-11-01 07:03:33 +00:00
export default Upload as typeof Upload &
Plugin & {
readonly Dragger: typeof Dragger;
};