king
2021-10-15 309cdd2d05e87051d451ad069e12db05fbbdc20c
2021-10-15
5个文件已修改
26 ■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/formconfig.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/topbar/normal-navbar/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/components/topbar/normal-navbar/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/modulesource/option.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/settingform/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/formconfig.jsx
@@ -226,7 +226,7 @@
      key: 'qrWidth',
      min: 5,
      max: 1000,
      label: '宽度',
      label: '二维码尺寸',
      initVal: card.qrWidth || 50,
      required: true,
    },
@@ -425,6 +425,7 @@
      key: 'noValue',
      label: '空值',
      initVal: card.noValue || 'show',
      tooltip: '当元素内容为空时,是否显示当前元素。',
      required: false,
      options: [
        { value: 'show', text: '显示' },
src/mob/components/topbar/normal-navbar/index.jsx
@@ -180,6 +180,19 @@
    this.updateComponent({...this.state.card, wrap: res})
  }
  skip = () => {
    const { wrap } = this.state.card
    if (!wrap.linkmenu) return
    MKEmitter.emit('changeEditMenu', {
      MenuID: wrap.linkmenu,
      copyMenuId: '',
      MenuNo: '',
      MenuName: '',
    })
  }
  render() {
    const { card } = this.state
@@ -188,10 +201,10 @@
      right = <Icon type="logout" />
    }
    if (card.wrap.scan === 'true') {
      right = !right ? <ExpandOutlined /> : <Icon type="ellipsis" />
      right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <Icon type="ellipsis" />
    }
    if (card.wrap.refresh === 'true') {
      right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" />
      right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" onDoubleClick={this.skip}/>
    }
    return (
src/mob/components/topbar/normal-navbar/index.scss
@@ -73,7 +73,7 @@
        cursor: pointer;
      }
      >.anticon:not(.anticon-search) {
        margin: 0px 5px;
        padding: 0px 5px;
      }
    }
  }
src/pc/modulesource/option.jsx
@@ -24,6 +24,7 @@
import dashboard from '@/assets/mobimg/dashboard.png'
import ratioboard from '@/assets/mobimg/ratioboard.png'
import scatter from '@/assets/mobimg/scatter.png'
import chart from '@/assets/mobimg/chart.png'
import tree from '@/assets/mobimg/tree.png'
// 组件配置信息
@@ -53,6 +54,7 @@
  { type: 'menu', url: dashboard, component: 'dashboard', subtype: 'dashboard', title: '仪表盘', width: 12 },
  { type: 'menu', url: ratioboard, component: 'dashboard', subtype: 'ratioboard', title: '占比图', width: 12 },
  { type: 'menu', url: scatter, component: 'scatter', subtype: 'scatter', title: '散点图', width: 24 },
  { type: 'menu', url: chart, component: 'chart', subtype: 'custom', title: '自定义图表', width: 24 },
  { type: 'menu', url: Editor, component: 'editor', subtype: 'brafteditor', title: '富文本', width: 24 },
  { type: 'menu', url: SandBox, component: 'code', subtype: 'sandbox', title: '自定义', width: 24 },
  { type: 'menu', url: group, component: 'group', subtype: 'normalgroup', title: '分组', width: 24 },
src/templates/modalconfig/settingform/index.jsx
@@ -236,7 +236,7 @@
              )}
            </Form.Item>
          </Col> : null}
          {display === 'drawer' ? <Col span={12}>
          {display === 'drawer' && appType !== 'mob' ? <Col span={12}>
            <Form.Item label="表单类型">
              {getFieldDecorator('formType', {
                initialValue: config.setting.formType || 'edit'