chore: add code comment

This commit is contained in:
dntzhang 2020-04-15 09:59:24 +08:00
parent f0c495e3e8
commit 7d490d8f31
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ define('my-demo', class extends WeElement {
render() {
if (!this.demo) return
// iframe 加上 display 的原因是 visibility hidden 在 ios 下不会隐藏的bug
return (
<div>
<iframe style={`width:${window.innerWidth - 1180}px;height:${window.innerHeight - 59}px;visibility:${this.show ? 'visible' : 'hidden'};display:${this.show ? 'block' : 'none'};`} src={this.demo} ></iframe>