提交 d25e764f authored 作者: wangjiahao's avatar wangjiahao

fix: 修复边框选不上的问题

上级 6ef11632
...@@ -450,10 +450,10 @@ export default { ...@@ -450,10 +450,10 @@ export default {
::v-deep input::-webkit-outer-spin-button, ::v-deep input::-webkit-outer-spin-button,
::v-deep input::-webkit-inner-spin-button { ::v-deep input::-webkit-inner-spin-button {
/*-webkit-appearance: none !important;*/ -webkit-appearance: none !important;
} }
::v-deep input[type='number'] { ::v-deep input[type='number'] {
/*-moz-appearance: textfield !important;*/ -moz-appearance: textfield !important;
} }
</style> </style>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:style="classBackground" :style="classBackground"
@click.stop="setBoard" @click.stop="setBoard"
/> />
<span class="demonstration">{{ template.name }}</span> <span class="demonstration">{{ template.name }}</span>
</div> </div>
</template> </template>
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
computed: { computed: {
itemActive() { itemActive() {
return this.curComponent.commonBackground.innerImage === this.template.url return this.curComponent.commonBackground && this.curComponent.commonBackground.innerImage === this.template.url
}, },
classBackground() { classBackground() {
if (this.template.url) { if (this.template.url) {
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
} }
}, },
mounted() { mounted() {
if (this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') { if (this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') {
this.fileList.push({ url: this.curComponent.commonBackground.outerImage }) this.fileList.push({ url: this.curComponent.commonBackground.outerImage })
} }
this.backgroundOrigin = deepCopy(this.curComponent.commonBackground) this.backgroundOrigin = deepCopy(this.curComponent.commonBackground)
......
...@@ -619,7 +619,7 @@ export default { ...@@ -619,7 +619,7 @@ export default {
this.currentFilterCom.id = newComponentId this.currentFilterCom.id = newComponentId
this.currentFilterCom.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix this.currentFilterCom.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix
this.currentFilterCom.mobileStyle = BASE_MOBILE_STYLE this.currentFilterCom.mobileStyle = BASE_MOBILE_STYLE
this.currentFilterCom.commonBackground || deepCopy(COMMON_BACKGROUND) this.currentFilterCom.commonBackground = this.currentFilterCom.commonBackground || deepCopy(COMMON_BACKGROUND)
if (this.currentWidget.filterDialog) { if (this.currentWidget.filterDialog) {
this.show = false this.show = false
...@@ -649,7 +649,7 @@ export default { ...@@ -649,7 +649,7 @@ export default {
// 新拖入的组件矩阵状态 和仪表板当前的矩阵状态 保持一致 // 新拖入的组件矩阵状态 和仪表板当前的矩阵状态 保持一致
component.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix component.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix
// 统一设置背景信息 // 统一设置背景信息
component.commonBackground || deepCopy(COMMON_BACKGROUND) component.commonBackground = component.commonBackground || deepCopy(COMMON_BACKGROUND)
// 视图统一调整为复制 // 视图统一调整为复制
if (componentInfo.type === 'view') { if (componentInfo.type === 'view') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论