属性框线条样式

This commit is contained in:
zh
2025-08-22 23:50:22 +08:00
parent f37f95d646
commit dff3739a0f
2 changed files with 4 additions and 1 deletions

View File

@ -224,6 +224,7 @@ class BillboardObject extends Base {
this.attributeElm.style.top = (winpos.y + pixelOffset.y - (this.options.label.show ? (this.options.label.fontSize / 2) : -(this.options.label.fontSize / 2)) - this.attributeElm.offsetHeight - this.options.attributePos.y + height).toFixed(0) + 'px' this.attributeElm.style.top = (winpos.y + pixelOffset.y - (this.options.label.show ? (this.options.label.fontSize / 2) : -(this.options.label.fontSize / 2)) - this.attributeElm.offsetHeight - this.options.attributePos.y + height).toFixed(0) + 'px'
this.attributeElm.style.width = this.options.attributePos.width + 'px' this.attributeElm.style.width = this.options.attributePos.width + 'px'
this.attributeElm.style.height = this.options.attributePos.height + 'px' this.attributeElm.style.height = this.options.attributePos.height + 'px'
lineElm.style.zIndex = '-1'
if (this.options.attributePos.x < -this.options.attributePos.width / 2) { if (this.options.attributePos.x < -this.options.attributePos.width / 2) {
flag = true flag = true
lineElm.style.left = 'unset' lineElm.style.left = 'unset'
@ -2602,6 +2603,7 @@ class BillboardObject extends Base {
} }
if (height !== undefined) { if (height !== undefined) {
this.options.positions.alt = Number(Number(height).toFixed(2)) this.options.positions.alt = Number(Number(height).toFixed(2))
this.#_billboardHeight = this.options.positions.alt
this._elms.alt && this._elms.alt &&
this._elms.alt.forEach(item => { this._elms.alt.forEach(item => {
item.value = this.options.positions.alt item.value = this.options.positions.alt
@ -2982,7 +2984,7 @@ class BillboardObject extends Base {
` `
if (!linkHtml && !goodsHtml && !richTextHtml) { if (!linkHtml && !goodsHtml && !richTextHtml) {
boxHtml = boxHtml + '<p style="margin: 0;width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;">暂无属性信息</p><div class="billboard-attribute-box-line"></div>' boxHtml = boxHtml + '<p style="margin: 0;width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;backdrop-filter: blur(2px);">暂无属性信息</p><div class="billboard-attribute-box-line"></div>'
} }
else { else {
boxHtml = boxHtml + ` boxHtml = boxHtml + `

View File

@ -3627,6 +3627,7 @@
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
backdrop-filter: blur(2px);
} }
.billboard-attribute-box .DIV-cy-tabs .DIV-cy-tab-top .DIV-cy-tab-pane-title { .billboard-attribute-box .DIV-cy-tabs .DIV-cy-tab-top .DIV-cy-tab-pane-title {