Skip to content

Commit fae9fef

Browse files
committed
feat(file-upload): 文件上传
1 parent 2fa6514 commit fae9fef

File tree

16 files changed

+8298
-0
lines changed

16 files changed

+8298
-0
lines changed

JavaScript深拷贝.html

Whitespace-only changes.

file-upload/.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

file-upload/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

file-upload/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# file-upload
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Customize configuration
19+
See [Configuration Reference](https://cli.vuejs.org/config/).

file-upload/babel.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
],
5+
"plugins": [
6+
[
7+
"component",
8+
{
9+
"libraryName": "element-ui",
10+
"styleLibraryName": "theme-chalk"
11+
}
12+
]
13+
]
14+
}

file-upload/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "file-upload",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build"
8+
},
9+
"dependencies": {
10+
"core-js": "^3.6.5",
11+
"element-ui": "^2.15.0",
12+
"vue": "^2.6.11",
13+
"vue-router": "^3.2.0"
14+
},
15+
"devDependencies": {
16+
"@vue/cli-plugin-babel": "~4.5.0",
17+
"@vue/cli-plugin-router": "~4.5.0",
18+
"@vue/cli-service": "~4.5.0",
19+
"babel-plugin-component": "^1.1.1",
20+
"less": "^3.0.4",
21+
"less-loader": "^5.0.0",
22+
"vue-template-compiler": "^2.6.11"
23+
}
24+
}

file-upload/public/favicon.ico

4.19 KB
Binary file not shown.

file-upload/public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

file-upload/src/App.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div id="app">
3+
<router-view/>
4+
</div>
5+
</template>
6+
7+
<style lang="less">
8+
#app {
9+
font-family: Avenir, Helvetica, Arial, sans-serif;
10+
-webkit-font-smoothing: antialiased;
11+
-moz-osx-font-smoothing: grayscale;
12+
text-align: center;
13+
color: #2c3e50;
14+
}
15+
16+
#nav {
17+
padding: 30px;
18+
19+
a {
20+
font-weight: bold;
21+
color: #2c3e50;
22+
23+
&.router-link-exact-active {
24+
color: #42b983;
25+
}
26+
}
27+
}
28+
</style>

file-upload/src/assets/logo.png

6.69 KB
Loading

0 commit comments

Comments
 (0)