提交 c65dc5f0 编写于 作者: ShineKOT's avatar ShineKOT

feat: 还原模态宽度

上级 d951f9c9
......@@ -149,7 +149,15 @@ export default class AppModalCompponent extends Vue {
this.isfullscreen = true;
}
if ((!this.view.width || this.view.width === 0 || Object.is(this.view.width, '0px'))) {
this.width = 800;
let width = 600;
if (window && window.innerWidth > 100) {
if (window.innerWidth > 100) {
width = window.innerWidth - 100;
} else {
width = window.innerWidth;
}
}
this.width = width;
} else {
this.width = this.view.width;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册