AI助手支持GPT4.0
为什么page-container弹出的框不是半页式?Why is the page-container popup box not half-paged?
为什么page-container弹出的框不是半页式?
data: { show: false, duration: 300, position: 'right', round: true, overlay: true, customStyle: '99', overlayStyle: '999' }, popup(res){ const position = res.currentTarget.dataset.position let customStyle = '' let duration = this.data.duration switch(position) { case 'top': case 'bottom': customStyle = 'height: 50%;' break case 'right': break } customStyle = 'height:50;' this.setData({ position, show: true, customStyle, duration }) }, onAfterLeave(res) { },
data: { show: false, duration: 300, position: 'right', round: true, overlay: true, customStyle: '99', overlayStyle: '999' }, popup(res){ const position = res.currentTarget.dataset.position let customStyle = '' let duration = this.data.duration switch(position) { case 'top': case 'bottom': customStyle = 'height: 50%;' break case 'right': break } customStyle = 'height:50;' this.setData({ position, show: true, customStyle, duration }) }, onAfterLeave(res) { // console.log(res) },
https://developers.weixin.qq.com/s/c3GKahm37jx4