Commit d893e4ae1fc47015db497c465025f3ac5dab263f

Authored by 徐烜
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容器内部滚动
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
... ... @@ -54,6 +54,6 @@
54 54 text-align: left;
55 55 }
56 56  
57   -.myspin .ant-spin-blur {
  57 +.my-spin .ant-spin-blur {
58 58 opacity: 0;
59 59 }
... ...
front-end/h5/src/components/core/styles/props-config-panel.scss
... ... @@ -2,4 +2,10 @@
2 2 .ant-form-item {
3 3 margin-bottom: 12px;
4 4 }
5   -}
6 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 +}
... ...