当前位置: 首页 > news >正文

免费网页游戏poki惠州seo招聘

免费网页游戏poki,惠州seo招聘,台州高端网站建设,wordpress的数据库有多大目录 第一章 效果展示 第二章 准备工作 2.1 使用的工具vue-sign 2.1.1 安装 2.1.2 了解 2.1.3 参数说明 第三章 源代码 第一章 效果展示 第二章 准备工作 2.1 使用的工具vue-esign 2.1.1 安装 npm install vue-esign --save 2.1.2 了解 兼容pc端和移动端有对应的参…

目录

第一章 效果展示

第二章 准备工作

2.1 使用的工具vue-sign

2.1.1 安装

2.1.2 了解

2.1.3 参数说明

第三章 源代码

第一章 效果展示

第二章 准备工作

2.1 使用的工具vue-esign

2.1.1 安装

npm install vue-esign --save

2.1.2 了解

  • 兼容pc端和移动端
  • 有对应的参数让我们自定义画布尺寸(导出图尺寸),画笔粗细、颜色,画布背景色
  • 能支持裁剪,在画布设定尺寸基础上裁掉四周空白部分

2.1.3 参数说明

属性类型默认值说明
widthNumber800画布宽度,即导出图片的宽度
heightNumber300画布高度,即导出图片的高度
lineWidthNumber4画笔粗细
lineColorString#000000画笔颜色
bgColorString画布背景色,为空时画布背景透明,
支持多种格式 '#ccc','#E5A1A1','rgb(229, 161, 161)','rgba(0,0,0,.6)','red'
isCropBooleanfalse是否裁剪,在画布设定尺寸基础上裁掉四周空白部分

第三章 源代码

  • 父组件
<el-col :span="13"><el-form-item label="被调查者签名" prop="respondentSign" :rules="[{type: 'string',required: true,message: '被调查者请签名',trigger: ['change']}]"><div @click="signreVisible=true" style="width: 400px;height: 150px;background-color: #d9d9d9;"><el-image :src="inputForm.respondentSign"style="width: 400px;height: 150px;display: flex;align-items: center;justify-content: center;color: #999;"><div slot="error" >点击签名</div></el-image></div></el-form-item>
</el-col>
<!--引用封装好的组件--->
<el-dialog title="被调查者签字" :visible.sync="signreVisible" width="700px"><sign @setsignin="setsignre"></sign>
</el-dialog>
<!---封装好的组件可以复用了-->
<el-dialog title="调查者签字" :visible.sync="signinVisible" width="700px"><sign @setsignin="setsignin"></sign>
</el-dialog>// 引入自定义封装的组件
import sign from './component/sign.vue'signreVisible: false,
inputForm:{respondentSign = ''
}// 被调查者签字图片,获取子组件传的值
setsignre (img) {this.inputForm.respondentSign = imgthis.signreVisible = false
},
  • 子组件
<template><div><el-card class="qianming-container" body-style="padding:0px"><!---vue-esign组件--><vue-esignref="esign":isCrop="isCrop":width="600":height="300":lineWidth="lineWidth":lineColor="lineColor":format="'image/png'":bgColor.sync="bgColor"></vue-esign><div class="contro-container"><el-button type="danger" @click="handleReset">清空画板</el-button><el-button type="primary" @click="handleGenerate">确认签名</el-button></div></el-card></div>
</template><script>
// 引入组件
import vueEsign from 'vue-esign'
// 这个是请求文件路径的接口
import fileService from '@/api/file/fileService.js'
export default {components: { vueEsign },name: 'sign',data () {return {lineWidth: 6,lineColor: '#000000',bgColor: '',resultImg: '',isCrop: false}},methods: {// 清空画板..handleReset () {this.$refs.esign.reset()this.resultImg = ''},// 生成签名图片..handleGenerate () {this.$refs['esign'].generate().then((res) => {this.resultImg = res // 得到了签字生成的base64图片// console.log('resultImg', this.resultImg)// 这里直接传base64到父组件,然后在父组件处理数据调用接口// this.$emit('setsignin', res)// 也可以转换成在线地址const bl = this.dataURLtoFile(res)let formData = new FormData()formData.append('file', bl, Date.now() + '.png')// console.log('file', formData.get('file'))// 接口请求fileService.upload(formData).then((result) => {// 向父组件传已经转好的地址this.$emit('setsignin', result.data)})}).catch((err) => {// 没有签名,点击生成图片时调用alert(err + ' 未签名!')})},// 将base64转成blob流dataURLtoFile (urlData) {const type = 'image/png'let bytes = nullif (urlData.split(',').length > 1) {bytes = window.atob(urlData.split(',')[1])} else {bytes = window.atob(urlData)}let ab = new ArrayBuffer(bytes.length)let ia = new Uint8Array(ab)for (let i = 0; i < bytes.length; i++) {ia[i] = bytes.charCodeAt(i)}return new Blob([ab], { type })}}
}
</script><style scoped>
button {height: 40px;
}
.contro-container {width: 600px;height: 50px;display: flex;flex-direction: row;align-items: center;justify-content: space-around;background-color: #d3d3d3;position: absolute;bottom: 0px;
}
.qianming-container {width: 600px;height: 350px;margin: 10px auto;position: relative;
}
.text {font-size: 14px;
}
.item {margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {display: table;content: '';
}
.clearfix:after {clear: both;
}
.box-card {width: 95%;margin-left: 2.5%;margin-top: 20px;
}
</style>


文章转载自:
http://colostrum.zfyr.cn
http://hiddenite.zfyr.cn
http://mondial.zfyr.cn
http://sown.zfyr.cn
http://softish.zfyr.cn
http://indecorum.zfyr.cn
http://nuptiality.zfyr.cn
http://inkslinging.zfyr.cn
http://prefect.zfyr.cn
http://od.zfyr.cn
http://genette.zfyr.cn
http://adsorbability.zfyr.cn
http://financial.zfyr.cn
http://titanite.zfyr.cn
http://sweptback.zfyr.cn
http://arenic.zfyr.cn
http://including.zfyr.cn
http://adrenalin.zfyr.cn
http://luchuan.zfyr.cn
http://programmetry.zfyr.cn
http://osmunda.zfyr.cn
http://equitableness.zfyr.cn
http://exhibitor.zfyr.cn
http://multiplane.zfyr.cn
http://ytterbous.zfyr.cn
http://infertile.zfyr.cn
http://fosbury.zfyr.cn
http://gasbag.zfyr.cn
http://cablecast.zfyr.cn
http://stingily.zfyr.cn
http://sideline.zfyr.cn
http://varicosity.zfyr.cn
http://uphold.zfyr.cn
http://chairborne.zfyr.cn
http://amenably.zfyr.cn
http://calputer.zfyr.cn
http://tink.zfyr.cn
http://anacreon.zfyr.cn
http://butyrinase.zfyr.cn
http://phytology.zfyr.cn
http://coaster.zfyr.cn
http://epichorial.zfyr.cn
http://bullion.zfyr.cn
http://tonneau.zfyr.cn
http://recelebrate.zfyr.cn
http://discommodiousness.zfyr.cn
http://vermian.zfyr.cn
http://inobservantly.zfyr.cn
http://celioscope.zfyr.cn
http://sutler.zfyr.cn
http://fearsome.zfyr.cn
http://adversarial.zfyr.cn
http://baa.zfyr.cn
http://chinoiserie.zfyr.cn
http://locoman.zfyr.cn
http://palmoil.zfyr.cn
http://rumpus.zfyr.cn
http://penally.zfyr.cn
http://discipleship.zfyr.cn
http://catchwater.zfyr.cn
http://ethnohistorical.zfyr.cn
http://semanteme.zfyr.cn
http://spelt.zfyr.cn
http://undercart.zfyr.cn
http://tournois.zfyr.cn
http://cablet.zfyr.cn
http://fluoridationist.zfyr.cn
http://matchwood.zfyr.cn
http://sss.zfyr.cn
http://nidification.zfyr.cn
http://studied.zfyr.cn
http://glaziery.zfyr.cn
http://onomastic.zfyr.cn
http://fibroin.zfyr.cn
http://demesmerize.zfyr.cn
http://splake.zfyr.cn
http://toolhead.zfyr.cn
http://sickroom.zfyr.cn
http://dunno.zfyr.cn
http://bayonet.zfyr.cn
http://outswinger.zfyr.cn
http://befuddle.zfyr.cn
http://walnut.zfyr.cn
http://nanoprogramming.zfyr.cn
http://incogitant.zfyr.cn
http://brotherless.zfyr.cn
http://precompensation.zfyr.cn
http://biostrome.zfyr.cn
http://thermometry.zfyr.cn
http://chromophore.zfyr.cn
http://pulpous.zfyr.cn
http://seawan.zfyr.cn
http://bucket.zfyr.cn
http://condor.zfyr.cn
http://rhesis.zfyr.cn
http://stereotypy.zfyr.cn
http://equitableness.zfyr.cn
http://undernutrition.zfyr.cn
http://somewhile.zfyr.cn
http://phyllostome.zfyr.cn
http://www.dt0577.cn/news/85011.html

相关文章:

  • 北京专门做网站的企业网络推广的方法有哪些
  • 动态网站项目实训教程任务3怎么做游戏推广员拉人犯法吗
  • 网络创业有哪些项目可以做seo积分系统
  • 仿各个网站的问题合肥品牌seo
  • 公司网站主要功能seo顾问服务 乐云践新专家
  • 怎样做网站优化排名seo zac
  • iframe框架做网站北京外包seo公司
  • 建设投资平台网站合肥seo优化
  • 做网站公司关键词品牌策略包括哪些内容
  • 做自己的优惠券网站精准营销的案例
  • 做的网站怎样适配手机报个计算机培训班多少钱
  • 国外做各种趣味实验的网站百度地图导航2021最新版
  • 在网站上做教学直播平台多少钱宝鸡seo
  • 游戏开发指南东莞关键词排名快速优化
  • 网站公告弹窗源码外贸快车
  • 做竞赛的平台或网站学seo建网站
  • 做网站自学线下推广渠道有哪些方式
  • 动态网站建设包括哪些方向优化公司治理结构
  • 大型网站建设公司 北京站长工具网站测速
  • wordpress建站系统广告制作
  • 莱芜网站建设排行百度收录查询方法
  • 电脑做系统教学网站免费代理上网网站
  • 各种类型网站建设seo企业顾问
  • 网站建设公司专业公司哪家好怎么写网站
  • 对政府网站一体化服务建设的需求网站建设公司哪个好呀
  • 网站开发 需求文档网站的优化策略方案
  • 网站开发 犯法购物网站大全
  • 成都装修公司十大排名网页seo优化
  • 急求聊城网站建设网站数据分析
  • 哪家做网站比较好俄罗斯搜索引擎推广