Merge pull request #6907 from dataease/pr@dev@style_UI

style: 样式优化
This commit is contained in:
王嘉豪 2023-11-28 23:03:37 +08:00 committed by GitHub
commit ab1daeb508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -878,12 +878,16 @@ export default {
//
getParentSize() {
if (this.parent === true) {
const style = window.getComputedStyle(this.$el.parentNode, null)
const rect = this.$el.parentNode.getBoundingClientRect()
this.parentX = rect.x
this.parentY = rect.y
// 100000 60px
return [Math.round(parseFloat(style.getPropertyValue('width'), 10)) + 6, 100000]
try {
const style = window.getComputedStyle(this.$el.parentNode, null)
const rect = this.$el.parentNode.getBoundingClientRect()
this.parentX = rect.x
this.parentY = rect.y
// 100000 60px
return [Math.round(parseFloat(style.getPropertyValue('width'), 10)) + 6, 100000]
} catch (e) {
console.warn('custom:getParentSize')
}
}
if (typeof this.parent === 'string') {
const parentNode = document.querySelector(this.parent)

View File

@ -1790,6 +1790,10 @@ export default {
font-size: 14px;
}
.dialog-css ::v-deep .el-dialog__headerbtn {
z-index: 2;
}
.dialog-css ::v-deep .el-dialog__header {
padding: 20px 20px 0;
}