Commit d893e4ae1fc47015db497c465025f3ac5dab263f
1 parent
d1158a43
电子站牌项目
1、修改core/styles/props-config-panel.scss,添加.my-prop-panel .ant-collapse-content自定义样式,用于属性面板长度固定,可以滚动 2、修改core/editor/right-panel/props.js,修改a-collapse-panel定义,添加class="my-prop-panel" 3、修改core/editor/canvas/index.js,修改a-layout定义,添加style,用于控制中间页面作品定义长宽超出屏幕长宽,在layout容器内部滚动
Showing
5 changed files
with
11 additions
and
5 deletions
front-end/h5/src/components/core/editor/canvas/index.js
| ... | ... | @@ -46,7 +46,7 @@ export default { |
| 46 | 46 | }, |
| 47 | 47 | render (h) { |
| 48 | 48 | return ( |
| 49 | - <a-layout id="canvas-outer-wrapper"> | |
| 49 | + <a-layout id="canvas-outer-wrapper" style="max-height: calc(100vh - 64px); overflow: auto;"> | |
| 50 | 50 | <a-radio-group |
| 51 | 51 | class="mode-toggle-wrapper" |
| 52 | 52 | size="small" | ... | ... |
front-end/h5/src/components/core/editor/right-panel/props.js
| ... | ... | @@ -188,7 +188,7 @@ export default { |
| 188 | 188 | <BoxModelEditor /> |
| 189 | 189 | </a-collapse-panel> |
| 190 | 190 | {/* #!zh: 属性设置 */} |
| 191 | - <a-collapse-panel key="2" header={this.$t('editor.editPanel.common.ConfigProps')}> | |
| 191 | + <a-collapse-panel key="2" header={this.$t('editor.editPanel.common.ConfigProps')} class="my-prop-panel"> | |
| 192 | 192 | <a-form |
| 193 | 193 | ref="form" |
| 194 | 194 | size="mini" | ... | ... |
front-end/h5/src/components/core/plugins/bsth/bsth-weather-realtime.js
| ... | ... | @@ -309,7 +309,7 @@ export default { |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | 311 | return ( |
| 312 | - <a-spin tip={this.initLoadingText} spinning={this.initLoading} size="large" wrapperClassName="myspin"> | |
| 312 | + <a-spin tip={this.initLoadingText} spinning={this.initLoading} size="large" wrapperClassName="my-spin"> | |
| 313 | 313 | <div style={weatherDivStyle}> |
| 314 | 314 | <div> |
| 315 | 315 | <div style={weatherCondStyle} class="cond"> | ... | ... |
front-end/h5/src/components/core/plugins/bsth/bsth-weather.css
front-end/h5/src/components/core/styles/props-config-panel.scss