Code Monkey home page Code Monkey logo

yd-tuotuo's Introduction

case-user

课程直播

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

// 图片上传的时候在引入vux-upload插件之后,会只调用相机,如果希望也调用相册的话可以将源码的capture属性去掉

//图片裁剪使用的是vue-core-image-upload,手机端上传时会出现图片翻转的情况,故显示了翻转按钮,选择了本地裁剪上传模式,会修改一些源码。以下源码修改均为node_modules/vue-core-image-upload/dist目录下进行 1.npm install --save daycaca https://www.javascriptcn.com/read-6569.html 一款基于canvas图片处理类库 2.crop.vue里注销掉了第17行 不允许用户缩放裁剪框 3.crop.vue里props新增添如下,默认为true rotate: { type: [Boolean], default: true, } 4.vue-core-image-upload.vue文件第319,320行修改如下,如此修改是为解决图片上传时window.btoa不识别base64图片问题,限制本地裁剪上传时的图片type为png type: this.crop === 'local' ? 'image/png' : this.files[0]['type'], filename: this.crop === 'local' && this.files[0]['name'].indexOf('.png') < 0 ? this.files[0]['name'] + '.png' : this.files[0]['name'], 5.crop.vue文件中第341行daycaca.rotate2改为daycaca.rotate 6.vue-core-image-upload里的daycaca.rotate2都改为daycaca.rotate

yd-tuotuo's People

Contributors

xuyifeicoco avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.