Skip to content

Inthur/in-draw-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

in-writing-board

A Vue.js project

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

功能

手机端写字板、画板vue组件

使用

import draw from './inDraw/index'
      <div id="draw-box">                  #样式自定义
        <draw ref="in-draw"
          :inRatio="3"                     #retina屏兼容,画布大小放大倍数,Number   
          :inLineColor="'#999'"            #笔触颜色
          :inLineWidth="5"                 #笔触宽度,Number
          :inShadowBlur="5"                #笔触阴影大小,Number
        ></draw>
        <div class="draw-delete" @click="drawDelete()">清空</div>    #可调用组件方法inDeleteCanvas清空画布
      </div>
  methods: {
      drawDelete(){
        this.$refs["in-draw"].inDeleteCanvas()
      },
  }

About

手机端写字板、画板vue组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published