king
2021-10-18 890df0b04581225466433fcf6832f0519c1f0a90
2021-10-18
9个文件已修改
56 ■■■■ 已修改文件
src/menu/components/card/cardcomponent/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcomponent/options.jsx 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/data-card/index.scss 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/prop-card/index.scss 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/normalheader/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/menubar/normal-menubar/menucomponent/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/menubar/normal-menubar/menucomponent/options.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardItem/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardItem/index.scss 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcomponent/index.jsx
@@ -303,7 +303,7 @@
    return (
      <Col span={card.setting.width || 6} offset={offset || 0}>
        <div className="card-item" style={_style} onClick={this.clickComponent} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}>
        <div className={'card-item ' + (card.setting.btnControl || '')} style={_style} onClick={this.clickComponent} onDoubleClick={(e) => {e.stopPropagation(); this.doubleClickCard()}} id={card.uuid}>
          <CardCellComponent cards={cards} cardCell={card} side={side} elements={elements} updateElement={this.updateCard}/>
          <div className="card-control" onDoubleClick={(e) => e.stopPropagation()}>
            <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
src/menu/components/card/cardcomponent/options.jsx
@@ -170,6 +170,19 @@
      initval: setting.linkbtn || '',
      required: true,
      options: buttons
    },
    {
      type: 'radio',
      field: 'btnControl',
      label: '按钮控制',
      initval: setting.btnControl || 'show',
      tooltip: '可设置按钮显示规则,一直显示或鼠标悬浮时显示。',
      required: false,
      options: [
        {value: 'show', label: '正常显示'},
        {value: 'hover', label: '悬浮显示'},
      ],
      forbid: appType === 'mob'
    }
  ]
src/menu/components/card/data-card/index.scss
@@ -38,6 +38,12 @@
    background-size: cover;
    min-height: 20px;
  }
  .card-item.hover:not(:hover) {
    button {
      opacity: 0;
      transition: opacity 0.3s;
    }
  }
  
  .card-item:hover {
    box-shadow: 0px 0px 2px #1890ff;
src/menu/components/card/prop-card/index.scss
@@ -37,6 +37,12 @@
    background-size: cover;
    min-height: 20px;
  }
  .card-item.hover:not(:hover) {
    button {
      opacity: 0;
      transition: opacity 0.3s;
    }
  }
  
  .card-item:hover {
    box-shadow: 0px 0px 2px #1890ff;
src/menu/components/share/normalheader/index.jsx
@@ -53,8 +53,12 @@
  changeStyle = () => {
    const { config } = this.props
    // MKEmitter.emit('changeStyle', [config.uuid, 'header'], ['font', 'height', 'border'], config.headerStyle)
    MKEmitter.emit('changeStyle', [config.uuid, 'header'], ['font', 'border'], config.headerStyle)
    let options = ['font', 'border']
    if (config.type === 'menubar') {
      options.push('padding')
    }
    MKEmitter.emit('changeStyle', [config.uuid, 'header'], options, config.headerStyle)
  }
  render() {
src/mob/components/menubar/normal-menubar/menucomponent/index.jsx
@@ -147,10 +147,11 @@
                fontSize: card.setting.iconFont || 20,
                padding: card.setting.padding,
                background: card.setting.background,
                color: card.setting.color
                color: card.setting.color,
                borderRadius: card.setting.borderRadius || '50%'
              }} type={card.setting.icon}/>
            </div> : <div className="menu-sign">
              <img style={{width: card.setting.imgWidth, height: card.setting.imgWidth}} src={card.setting.url} alt=""/>
              <img style={{width: card.setting.imgWidth, height: card.setting.imgWidth, borderRadius: card.setting.borderRadius || '50%'}} src={card.setting.url} alt=""/>
            </div>}
            <div className="menu-name">{card.setting.name}</div>
          </div>
src/mob/components/menubar/normal-menubar/menucomponent/options.jsx
@@ -142,6 +142,13 @@
      required: true
    },
    {
      type: 'styleInput',
      field: 'borderRadius',
      label: '圆角',
      initval: setting.borderRadius || '50%',
      required: false
    },
    {
      type: 'color',
      field: 'color',
      label: '字体颜色',
src/tabviews/custom/components/card/cardItem/index.jsx
@@ -146,7 +146,7 @@
    const { card, data, cards } = this.props
    return (
      <div className="card-item-box" style={card.style} onClick={this.openView}>
      <div className={'card-item-box ' + (card.setting.btnControl || '')} style={card.style} onClick={this.openView}>
        <CardCellComponent data={data} cards={cards} cardCell={card} elements={card.elements}/>
        {card.setting.type === 'multi' ? <div className={'back-side ' + card.setting.transform} style={card.backStyle}>
          <CardCellComponent data={data} cards={cards} cardCell={card} elements={card.backElements}/>
src/tabviews/custom/components/card/cardItem/index.scss
@@ -55,4 +55,11 @@
  .back-side.scale {
    transform: scale(1, 1);
  }
}
.card-item-box.hover:not(:hover) {
  button {
    opacity: 0;
    transition: opacity 0.3s;
  }
}