Commit 1ff0cee9 authored by 罗超's avatar 罗超

1

parent abf987c1
......@@ -170,7 +170,7 @@
}
.adv-box .property-box{
position: absolute;
left: 532px;
left: 550px;
top: 0px;
width: 640px;
right: 10px;
......
......@@ -75,7 +75,7 @@
</li> -->
</ul>
<div class="property-box" v-if='currentNode.type==0 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="100px">
<el-form ref="form" :model="currentNode" label-width="80px">
<el-form-item label="内容:">
<el-input type="textarea" v-model="currentNode.content"></el-input>
</el-form-item>
......@@ -171,7 +171,7 @@
<img :src="st" />
</div>
<div class="property-box" v-if='currentNode.type==1 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="100px">
<el-form ref="form" :model="currentNode" label-width="80px">
<!-- <el-form-item label="宽度:">
<el-input-number v-model="currentNode.width" :min="0"></el-input-number>
</el-form-item>
......@@ -229,7 +229,7 @@
</el-form>
</div>
<div class="property-box" v-if='currentNode.type==2 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="100px">
<el-form ref="form" :model="currentNode" label-width="80px">
<el-form-item label="圆角:">
<el-input-number v-model="currentNode.radius" :min="0"></el-input-number>
<label class="remark">修改块的圆角弧度(有背景色时体现)</label>
......@@ -287,7 +287,7 @@
</el-form>
</div>
<div class="property-box" v-if='currentNode.type==3 && !isMax'>
<el-form ref="form" :model="currentNode" label-width="100px">
<el-form ref="form" :model="currentNode" label-width="80px">
<el-form-item label="内容:">
<el-input type="textarea" v-model="currentNode.content"></el-input>
</el-form-item>
......@@ -807,8 +807,10 @@
var shareContent = cntElem
var width = shareContent.offsetWidth
var height = shareContent.offsetHeight
console.log('canvas', width,height)
var canvas = document.createElement("canvas")
var scale = 2
// var scale = window.devicePixelRatio;//显示设备的物理像素分辨率与CSS像素分辨率之比
var scale=1
canvas.width = width * scale
canvas.height = height * scale
canvas.getContext("2d").scale(scale, scale)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment