提交 555ef42e 编写于 作者: RedPig97's avatar RedPig97

update: 布局面板更新

上级 24a1324e
...@@ -107,7 +107,7 @@ export class PanelContainerModel extends PanelDetailModel { ...@@ -107,7 +107,7 @@ export class PanelContainerModel extends PanelDetailModel {
*/ */
protected getSpecificStyle() { protected getSpecificStyle() {
const boxStyle = {}; const boxStyle = {};
if (Object.is(this.itemStyle, 'STYLE2') && this.sysImage && (this.sysImage.imagePath || this.sysImage.rawContent)) { if (this.sysImage && (this.sysImage.imagePath || this.sysImage.rawContent)) {
Object.assign(boxStyle, { background: `url('${this.sysImage.imagePath || this.sysImage.rawContent}') no-repeat 0px 0px`, 'background-size': '100% 100%' }); Object.assign(boxStyle, { background: `url('${this.sysImage.imagePath || this.sysImage.rawContent}') no-repeat 0px 0px`, 'background-size': '100% 100%' });
if (!this.layoutWidth) { if (!this.layoutWidth) {
Object.assign(boxStyle, { width: '100%' }); Object.assign(boxStyle, { width: '100%' });
......
...@@ -407,7 +407,6 @@ export class PanelDetailModel { ...@@ -407,7 +407,6 @@ export class PanelDetailModel {
const layoutStyle = {}; const layoutStyle = {};
Object.assign(layoutStyle, this.getBoxSelfAlignStyle()); Object.assign(layoutStyle, this.getBoxSelfAlignStyle());
Object.assign(layoutStyle, this.getBoxLayOutStyle()); Object.assign(layoutStyle, this.getBoxLayOutStyle());
Object.assign(layoutStyle, this.getBoxSelfAlignStyle());
return layoutStyle; return layoutStyle;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册