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,7 +46,7 @@ export default { | ||
| 46 | }, | 46 | }, |
| 47 | render (h) { | 47 | render (h) { |
| 48 | return ( | 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 | <a-radio-group | 50 | <a-radio-group |
| 51 | class="mode-toggle-wrapper" | 51 | class="mode-toggle-wrapper" |
| 52 | size="small" | 52 | size="small" |
front-end/h5/src/components/core/editor/right-panel/props.js
| @@ -188,7 +188,7 @@ export default { | @@ -188,7 +188,7 @@ export default { | ||
| 188 | <BoxModelEditor /> | 188 | <BoxModelEditor /> |
| 189 | </a-collapse-panel> | 189 | </a-collapse-panel> |
| 190 | {/* #!zh: 属性设置 */} | 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 | <a-form | 192 | <a-form |
| 193 | ref="form" | 193 | ref="form" |
| 194 | size="mini" | 194 | size="mini" |
front-end/h5/src/components/core/plugins/bsth/bsth-weather-realtime.js
| @@ -309,7 +309,7 @@ export default { | @@ -309,7 +309,7 @@ export default { | ||
| 309 | } | 309 | } |
| 310 | 310 | ||
| 311 | return ( | 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 | <div style={weatherDivStyle}> | 313 | <div style={weatherDivStyle}> |
| 314 | <div> | 314 | <div> |
| 315 | <div style={weatherCondStyle} class="cond"> | 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
| @@ -2,4 +2,10 @@ | @@ -2,4 +2,10 @@ | ||
| 2 | .ant-form-item { | 2 | .ant-form-item { |
| 3 | margin-bottom: 12px; | 3 | margin-bottom: 12px; |
| 4 | } | 4 | } |
| 5 | -} | ||
| 6 | \ No newline at end of file | 5 | \ No newline at end of file |
| 6 | +} | ||
| 7 | + | ||
| 8 | +/* 用于属性设置标签页内panel滚动 */ | ||
| 9 | +.my-prop-panel .ant-collapse-content { | ||
| 10 | + max-height: calc(100vh - 235px); | ||
| 11 | + overflow: auto; | ||
| 12 | +} |