king
2021-04-20 d1657e9835a6b3350dee76956deae3029cfe4b11
src/mob/components/navbar/normal-navbar/menusetting/menutable/index.jsx
@@ -12,7 +12,8 @@
class MenuTable extends Component {
  static propTpyes = {
    menus: PropTypes.object,    // 卡片行信息
    menus: PropTypes.array,     // 卡片行信息
    cols: PropTypes.array,      // 字段集
  }
  state = {
@@ -25,6 +26,9 @@
        const trans = {menu: '菜单', link: '链接', linkmenu: '关联菜单'}
        return trans[text]
      }},
      { title: '图标', dataIndex: 'icon', key: 'icon',  render: (text, record) => {
        return text ? <Icon type={text} /> : ''
      }},
      { title: '是否隐藏', dataIndex: 'hidden', key: 'hidden',  render: (text, record) => {
        const trans = {'true': '是', 'false': '否'}
@@ -151,6 +155,7 @@
  }
  render() {
    const { cols } = this.props
    const { columns, data, visible, editMenu } = this.state
    return (
@@ -165,7 +170,7 @@
        <Modal
          title="编辑"
          visible={visible}
          width={600}
          width={750}
          maskClosable={false}
          onOk={this.menuSubmit}
          onCancel={() => { this.setState({ visible: false }) }}
@@ -173,6 +178,7 @@
        >
          <MenuForm
            menu={editMenu}
            cols={cols}
            inputSubmit={this.menuSubmit}
            wrappedComponentRef={(inst) => this.menuRef = inst}
          />