king
2023-02-20 4a245839597731db8e787535329995e4fccfb47c
2023-02-20
8个文件已修改
40 ■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/elementform/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/doublecardcomponent/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/doublecardcomponent/index.scss 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/dragaction/card.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.scss 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/elementform/index.jsx
@@ -158,7 +158,7 @@
      }
    } else if (eleType === 'icon') {
      if (datatype === 'dynamic') {
        _options.push('field')
        _options.push('field', 'noValue')
      } else {
        _options.push('icon')
      }
src/menu/components/card/doublecardcomponent/index.jsx
@@ -255,16 +255,19 @@
    }
    let checkAll = ''
    let mainBox = ''
    if (cards.wrap.selStyle === 'check') {
      checkAll = 'mk-checkable'
    } else if (cards.wrap.selStyle === 'check square') {
      checkAll = 'mk-checkable square'
    } else if (card.setting.display !== 'default' && card.setting.controlIcon === 'left') {
      mainBox = 'flex-card '
    }
    return (
      <Col span={card.setting.width || 24}>
        <div className="card-item-wrap" style={_wrapStyle}>
          <div className={`card-item ${card.setting.btnControl || ''} ${checkAll} mk-${card.setting.display}`} style={_style} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}>
          <div className={`card-item ${card.setting.btnControl || ''} ${checkAll} mk-${card.setting.display} ${mainBox}`} style={_style} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}>
            <span className="circle-select"></span>
            {card.setting.controlIcon === 'left' ? <PlusSquareOutlined /> : <UpOutlined />}
            <div className="card-control" onDoubleClick={(e) => e.stopPropagation()}>
src/menu/components/card/doublecardcomponent/index.scss
@@ -99,6 +99,12 @@
    flex: 1;
  }
}
.card-item.flex-card {
  display: flex;
  .model-menu-card-cell-list {
    flex: 1;
  }
}
.card-item.mk-checkable.square {
  .circle-select {
    border-radius: 0;
src/menu/components/share/actioncomponent/dragaction/card.jsx
@@ -52,7 +52,7 @@
  let _style = resetStyle(card.style)
  let _class = ''
  let show = card.show
  if (type === 'datacard') {
  if (type === 'datacard' || type === 'dualdatacard') {
    _style = null
    _class = 'swiper swiper-' + card.color
    show = 'button'
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -22,7 +22,7 @@
  if (card.eleType === 'button') {
    type = 'card'
  } else if (config.subtype === 'datacard' || config.subtype === 'tablecard') {
  } else if (config.subtype === 'datacard' || config.subtype === 'tablecard' || config.subtype === 'dualdatacard') {
    type = 'datacard'
  } else if (config.type === 'line' || config.type === 'bar' || config.type === 'scatter') {
    type = 'chart'
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -475,6 +475,10 @@
          icon = card.icon
        }
        if (!icon && card.noValue === 'hide') { // 空值隐藏
          return null
        }
        if (!height) { // 兼容
          let fontSize = 14
          let lineHeight = 1.5
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -854,12 +854,14 @@
    }
    let checkAll = ''
    let mainBox = ''
    if (config.wrap.selStyle && config.wrap.selStyle.indexOf('check') > -1) {
      if (selectedData.length > 0) {
        checkAll = selectedData.length < data.length ? ' half' : ' whole'
      }
    } else if (card.setting.display !== 'default' && card.setting.controlIcon === 'left') {
      mainBox = 'flex-card '
    }
    return (
      <div className="custom-data-card-box" id={'anchor' + config.uuid} style={config.style}>
        {loading ?
@@ -890,7 +892,7 @@
              </Col>
            ))}
            {data && data.map((item, index) => {
              let className = `card-item-wrap mk-card `
              let className = 'card-item-wrap mk-card ' + mainBox
              let subClass = 'mk-unfold'
              let unfold = true
              if (config.wrap.parity === 'true') {
@@ -899,7 +901,7 @@
                }
              }
              if (item.$disabled) {
                className = 'mk-disabled'
                className = 'mk-disabled ' + mainBox
              } else if (activeKey === index) {
                className += 'active'
              } else if (selectKeys.indexOf(index) > -1) {
@@ -925,7 +927,7 @@
                      {card.setting.display !== 'default' && card.setting.controlIcon !== 'left' ? <UpOutlined className={subClass} onClick={(e) => this.changeUnfold(e, index, subClass)}/> : null}
                    </CardItem>
                    <div className={'sub-card-wrap ' + subClass}>
                      {item.children.map((cell, index) => <Col key={'d' + index} span={subcard.setting.width || 24}>
                      {item.children.map((cell, index) => <Col key={'sub' + index} span={subcard.setting.width || 24}>
                        <CardItem card={subcard} cards={subconfig} data={cell} />
                      </Col>)}
                    </div>
src/tabviews/custom/components/card/double-data-card/index.scss
@@ -226,7 +226,6 @@
      background: var(--mk-sys-color);
    }
    .card-item-box {
      // width: 100%;
      display: flex;
    }
    .card-cell-list {
@@ -285,6 +284,14 @@
      transition: height 0.3s;
    }
  }
  .card-item-wrap.flex-card {
    >.card-item-box:first-child {
      display: flex;
      .card-cell-list {
        flex: 1;
      }
    }
  }
}
.custom-data-card-box::-webkit-scrollbar {
  width: 7px;