king
2023-11-14 7f270b5ab1b0cc104b4678354fbee40443a4d9f1
2023-11-14
6个文件已修改
31 ■■■■ 已修改文件
src/assets/css/main.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/dragaction/action.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/index.jsx 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/css/main.scss
@@ -737,6 +737,10 @@
.ant-col.ant-col-0 {
  display: inline-block;
}
.mk-cell-btn.ant-col-0 {
  width: auto;
  float: left;
}
.ant-dropdown {
  .ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover {
src/menu/components/card/cardcellcomponent/dragaction/action.jsx
@@ -79,7 +79,7 @@
    _style_ = {float: 'right'}
  }
  let className = card.width || ''
  let className = card.width || 0
  if (card.hidden === 'true') {
    className += ' mk-hidden'
  }
src/menu/components/card/cardcellcomponent/index.jsx
@@ -449,6 +449,7 @@
              res.style = {}
            }
          } else if (res.class !== cell.class || res.show !== cell.show || !res.style) {
            if (res.class) {
            let cl = res.class.replace('border-', '')
            let style = {}
            if (res.class === 'default') {
@@ -464,6 +465,20 @@
              style.backgroundColor = color[cl]
            }
            res.style = {...res.style, ...style}
            } else {
              res.style = res.style || {}
            }
          }
          if (res.width === 0 && cell.width !== 0) {
            res.style = res.style || {}
            res.style.paddingLeft = '15px'
            res.style.paddingRight = '15px'
            res.style.marginRight = '15px'
            res.style.width = 'auto'
            delete res.style.marginLeft
          }
          res.updateTime = moment().format('YYYY-MM-DD HH:mm')
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -753,12 +753,12 @@
    {
      type: 'number',
      key: 'width',
      min: 1,
      min: 0,
      max: 24,
      precision: 0,
      label: '宽度',
      initVal: card.width || 12,
      tooltip: '栅格布局,每行等分为24列。',
      initVal: card.width || (card.width === 0 ? 0 : 12),
      tooltip: '栅格布局,每行等分为24列。为 0 时宽度自适应。',
      forbid: type !== 'card',
      required: true
    },
src/tabviews/custom/components/card/data-card/index.jsx
@@ -38,7 +38,7 @@
    loading: false,
    card: null,
    data: [],
    total: null,
    total: 0,
    precards: [],
    nextcards: [],
    selected: 'false',
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -36,7 +36,7 @@
    loading: false,            // 数据加载状态
    card: null,                // 卡片设置
    data: [],                // 数据
    total: null,
    total: 0,
    precards: [],
    nextcards: [],
    selected: 'false',