king
2025-02-07 50955551f7aebd3f664d3840ded3d1cb4aed3beb
2025-02-07
7个文件已修改
73 ■■■■ 已修改文件
src/menu/components/card/balcony/index.jsx 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/balcony/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/code/sandbox/index.scss 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/index.scss 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/tree/antd-tree/index.scss 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/editor/braft-editor/index.jsx 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/balcony/index.jsx
@@ -160,8 +160,17 @@
  changeStyle = () => {
    const { card } = this.state
    let options = ['width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform']
    MKEmitter.emit('changeStyle', ['width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform'], card.style, this.getStyle)
    if (card.style && !card.style.width) {
      if (card.style.height) {
        options = ['height', 'width', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'position', 'transform']
      } else if (card.style.position && ['fixed', 'absolute'].includes(card.style.position)) {
        options = ['position', 'width', 'height', 'background', 'border', 'padding', 'margin', 'shadow', 'clear', 'minHeight', 'transform']
      }
    }
    MKEmitter.emit('changeStyle', options, card.style, this.getStyle)
  }
  getStyle = (style) => {
@@ -277,7 +286,7 @@
    let _style = resetStyle(card.style)
    return (
      <div className="menu-balcony-edit-box" style={_style} id={card.uuid}>
      <div className={'menu-balcony-edit-box' + (['fixed', 'absolute'].includes(_style.position) ? ' ctrl-position' : '')} style={_style} id={card.uuid}>
        {card.style.height ? <ColumnHeightOutlined className="fixed-height" title="定高" /> : null}
        <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
          <div className="mk-popover-control">
src/menu/components/card/balcony/index.scss
@@ -58,6 +58,10 @@
    color: orange;
  }
}
.menu-balcony-edit-box.ctrl-position {
  width: auto!important;
  height: auto!important;
}
.menu-balcony-edit-box::after {
  display: block;
  content: ' ';
src/menu/components/code/sandbox/index.scss
@@ -17,13 +17,6 @@
    padding: 5px;
    background: rgba(255, 255, 255, 0.55);
  }
  .empty-content {
    text-align: center;
    font-size: 30px;
    margin: 0;
    line-height: 90px;
    color: #bcbcbc;
  }
}
.menu-editor-sand-box::after {
  display: block;
src/menu/components/editor/braft-editor/index.jsx
@@ -212,7 +212,7 @@
        } trigger="hover">
          <ToolOutlined />
        </Popover>
        <BraftContent value={card.wrap.datatype !== 'static' ? '<p class="empty-content">富文本</p>' : card.html}/>
        <BraftContent value={card.wrap.datatype !== 'static' ? '<p class="empty-content"><span>富文本<span>字符替换:空格(blank_space_**),其中**代表空格数。 </span></span></p>' : card.html}/>
        <div className="component-name">
          <div className="center">
            <div className="title">{card.name}</div>
src/menu/components/editor/braft-editor/index.scss
@@ -18,11 +18,25 @@
    background: rgba(255, 255, 255, 0.55);
  }
  .empty-content {
    text-align: center;
    font-size: 30px;
    margin: 0;
    line-height: 90px;
    height: 90px;
    color: #bcbcbc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    span {
      display: inline-block;
      text-align: center;
      span {
        display: block;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.65);
        white-space: nowrap;
      }
    }
  }
}
.menu-normal-editor-box.th-light {
src/menu/components/tree/antd-tree/index.scss
@@ -19,13 +19,6 @@
    padding: 5px;
    background: rgba(255, 255, 255, 0.55);
  }
  .empty-content {
    text-align: center;
    font-size: 30px;
    margin: 0;
    line-height: 90px;
    color: #bcbcbc;
  }
  .model-menu-action-list:not(.length0) {
    margin: 10px 0px;
  }
src/tabviews/custom/components/editor/braft-editor/index.jsx
@@ -63,6 +63,17 @@
      } else {
        _data = [_data]
      }
    } else if (config.html) {
      if (/blank_space_\d+/ig.test(config.html)) {
        config.html = config.html.replace(/blank_space_\d+/ig, (w) => {
          let n = +w.replace(/blank_space_/ig, '')
          if (n) {
            return new Array(n).fill('&nbsp;').join('')
          }
          return w
        })
      }
    }
    if (_config.wrap.minHeight) {
@@ -261,6 +272,17 @@
            item.$html = item.$html.replace(reg, item[key])
          })
        }
        if (/blank_space_\d+/ig.test(item.$html)) {
          item.$html = item.$html.replace(/blank_space_\d+/ig, (w) => {
            let n = +w.replace(/blank_space_/ig, '')
            if (n) {
              return new Array(n).fill('&nbsp;').join('')
            }
            return w
          })
        }
      }
    })