Merge remote-tracking branch 'gitee/master' into gitee-master

Raod 3 years ago
commit edac2d4ae2

@ -250,6 +250,7 @@ export default {
widthLeftForTools: 200, // widthLeftForTools: 200, //
widthLeftForToolsHideButton: 15, // widthLeftForToolsHideButton: 15, //
widthLeftForOptions: 300, // widthLeftForOptions: 300, //
widthPaddingTools: 18,
toolIsShow: true, // toolIsShow: true, //
bigscreenWidth: 1920, // bigscreenWidth: 1920, //
@ -319,7 +320,6 @@ export default {
widthLeftAndRight += this.widthLeftForOptions; // widthLeftAndRight += this.widthLeftForOptions; //
var middleWidth = this.bodyWidth - widthLeftAndRight; var middleWidth = this.bodyWidth - widthLeftAndRight;
console.log(middleWidth, this.bodyWidth, widthLeftAndRight);
return middleWidth; return middleWidth;
}, },
middleHeight() { middleHeight() {
@ -327,8 +327,10 @@ export default {
}, },
// //
bigscreenScaleInWorkbench() { bigscreenScaleInWorkbench() {
var widthScale = this.middleWidth / this.bigscreenWidth; var widthScale =
var heightScale = this.middleHeight / this.bigscreenHeight; (this.middleWidth - this.widthPaddingTools) / this.bigscreenWidth;
var heightScale =
(this.middleHeight - this.widthPaddingTools) / this.bigscreenHeight;
return Math.min(widthScale, heightScale); return Math.min(widthScale, heightScale);
}, },
workbenchTransform() { workbenchTransform() {
@ -338,10 +340,12 @@ export default {
}, },
// //
bigscreenWidthInWorkbench() { bigscreenWidthInWorkbench() {
return this.getPXUnderScale(this.bigscreenWidth); return this.getPXUnderScale(this.bigscreenWidth) + this.widthPaddingTools;
}, },
bigscreenHeightInWorkbench() { bigscreenHeightInWorkbench() {
return this.getPXUnderScale(this.bigscreenHeight); return (
this.getPXUnderScale(this.bigscreenHeight) + this.widthPaddingTools
);
} }
}, },
watch: { watch: {
@ -885,6 +889,7 @@ export default {
padding: 0; padding: 0;
.vueRuler { .vueRuler {
width: 100%; width: 100%;
padding: 18px 0px 0px 18px;
} }
.workbench { .workbench {
background-color: #1e1e1e; background-color: #1e1e1e;

@ -45,7 +45,7 @@ const screenConfig = {
value: '#000', value: '#000',
}, },
{ {
type: 'el-input-text', type: 'custom-upload',
label: '图片地址', label: '图片地址',
name: 'backgroundImage', name: 'backgroundImage',
required: false, required: false,
@ -649,7 +649,7 @@ const widgetTools = [
name: 'imageAdress', name: 'imageAdress',
required: false, required: false,
placeholder: '', placeholder: '',
value: 'http://pic.ik123.com/uploads/allimg/190813/12-1ZQ3095508.jpg', value: 'http://10.108.26.197:9095/file/download/fd20d563-00aa-45e2-b5db-aff951f814ec',
}, },
{ {
type: 'vue-color', type: 'vue-color',
@ -919,7 +919,7 @@ const widgetTools = [
name: 'iframeAdress', name: 'iframeAdress',
required: false, required: false,
placeholder: '', placeholder: '',
value: 'http://www.baidu.com', value: 'https://report.anji-plus.com/index.html',
}, },
], ],
// 数据 // 数据
@ -1189,7 +1189,7 @@ const widgetTools = [
name: 'reversalX', name: 'reversalX',
required: false, required: false,
placeholder: '', placeholder: '',
value: '' value: false
}, },
{ {
type: 'vue-color', type: 'vue-color',

@ -121,8 +121,6 @@ export default {
.vue-draggalbe { .vue-draggalbe {
position: absolute; position: absolute;
} }
.widget-container {
}
.widget-active { .widget-active {
cursor: move; cursor: move;
border: 1px dashed #09f; border: 1px dashed #09f;

Loading…
Cancel
Save