├── dist ├── logo.png ├── video │ └── Uploader.10d5704.swf └── vue-upload-web.js ├── src ├── assets │ └── logo.png ├── components │ └── upload │ │ ├── Uploader.swf │ │ └── upload.vue ├── main.js ├── index.js └── App.vue ├── .babelrc ├── .gitignore ├── .editorconfig ├── index.html ├── package.json ├── README.md └── webpack.config.js /dist/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/z719725611/vue-upload-web/HEAD/dist/logo.png -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/z719725611/vue-upload-web/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-3" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /dist/video/Uploader.10d5704.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/z719725611/vue-upload-web/HEAD/dist/video/Uploader.10d5704.swf -------------------------------------------------------------------------------- /src/components/upload/Uploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/z719725611/vue-upload-web/HEAD/src/components/upload/Uploader.swf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | yarn-error.log 5 | 6 | # Editor directories and files 7 | .idea 8 | *.suo 9 | *.ntvs* 10 | *.njsproj 11 | *.sln 12 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import VueUploadWeb from './index.js' 4 | 5 | Vue.use(VueUploadWeb); 6 | 7 | new Vue({ 8 | el: '#app', 9 | render: h => h(App) 10 | }) 11 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import vueUploadWeb from './components/upload/upload'; 2 | 3 | const uploadWeb = { 4 | install (Vue, options) { 5 | Vue.component(vueUploadWeb.name, vueUploadWeb) //全局组件 6 | } 7 | } 8 | 9 | if (typeof window !== 'undefined' && window.Vue) { 10 | window.Vue.use(uploadWeb) 11 | } 12 | 13 | export default uploadWeb //导出 14 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |