基于vue的文件分片上传 demo
inleft
2022-01-12 5c4f0c6483db9a719c952795c20ef6caaa73d5e1
追加
6 files added
11367 ■■■■■ changed files
README.md 23 ●●●●● patch | view | raw | blame | history
babel.config.js 13 ●●●●● patch | view | raw | blame | history
package-lock.json 11268 ●●●●● patch | view | raw | blame | history
package.json 31 ●●●●● patch | view | raw | blame | history
postcss.config.js 5 ●●●●● patch | view | raw | blame | history
vue.config.js 27 ●●●●● patch | view | raw | blame | history
README.md
New file
@@ -0,0 +1,23 @@
####
     Baby Song - 陈奕迅 (Eason Chan)
       词:岑宁儿
       曲:岑宁儿
       你的眼睛 像颗水晶通透
       里面有一个无穷无尽的宇宙
       小小的你 在你小小的梦里
       把我所有大大的事情都吹进风里
       我为我将对你撒的谎先跟你道歉
       当你发现黑白不是那么的分明
       世界不是那么的公平
babel.config.js
New file
@@ -0,0 +1,13 @@
module.exports = {
    presets: ["@vue/app"],
    plugins: [
        [
            "import",
            {
                libraryName: "ant-design-vue",
                libraryDirectory: "es",
                style: true
            }
        ]
    ]
};
package-lock.json
New file
Diff too large
package.json
New file
@@ -0,0 +1,31 @@
{
  "name": "default",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "vue-cli-service serve",
    "build": "vue-cli-service build"
  },
  "dependencies": {
    "ant-design-vue": "^1.7.4",
    "axios": "^0.24.0",
    "babel-plugin-import": "^1.13.3",
    "core-js": "^2.6.5",
    "element-ui": "^2.15.6",
    "jquery": "^3.6.0",
    "jsdom": "^18.1.1",
    "location": "0.0.1",
    "navigator": "^1.0.1",
    "spark-md5": "^3.0.2",
    "vue": "^2.6.10",
    "vue-simple-uploader": "^0.7.6",
    "xmlhttprequest": "^1.8.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.8.0",
    "@vue/cli-service": "^3.8.0",
    "less-loader": "^6.2.0",
    "sass-loader": "^12.3.0",
    "vue-template-compiler": "^2.6.10"
  }
}
postcss.config.js
New file
@@ -0,0 +1,5 @@
module.exports = {
  plugins: {
    autoprefixer: {}
  }
}
vue.config.js
New file
@@ -0,0 +1,27 @@
// vue.config.js for less-loader@6.0.0
module.exports = {
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    // If you are using less-loader@5 please spread the lessOptions to options directly
                    modifyVars: {
                        "primary-color": "#1DA57A", // 全局主色
                        "link-color": "#1890ff", // 链接色
                        "success-color": "#52c41a", // 成功色
                        "warning-color": "#faad14", // 警告色
                        "error-color": "#f5222d", // 错误色
                        "font-size-base": "14px", // 主字号
                        "heading-color": "rgba(0, 0, 0, 0.85) ", // 标题色
                        "text-color": "rgba(0, 0, 0, 0.65) ", // 主文本色
                        "text-color-secondary": "rgba(0, 0, 0, 0.45) ", // 次文本色
                        "disabled-color": "rgba(0, 0, 0, 0.25)", // 失效色
                        "border-radius-base": "4px", // 组件 / 浮层圆角 "border-color-base": "#d9d9d9" ,// 边框色
                        "box-shadow-base": "0 2px 8px rgba(0, 0, 0, 0.15) " // 浮层阴影
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },
};