import React, { useState } from 'react'; import WechatMenu from './menu'; import ConditionalMenu from './conditionalMenu'; import Style from './web.module.less'; import { Tabs } from 'antd'; import TagList from './tagList'; export default function Render(props) { const { menuId, oakFullpath, is_menu_open, applicationId, isPlatform, tabKey, } = props.data; const {} = props.methods; const [menuType, setMenuType] = useState('common'); const [tag, setTag] = useState({}); const getTag = (tag) => { setTag(tag); }; const items = [ { key: '1', label: '通用菜单', children: (), }, { key: '2', label: '个性化菜单', children: (
{tag.id ? () : (
请选择一个标签
)}
), }, ]; return (
{is_menu_open ? (
{isPlatform ? () : ( { if (key === '1') { setMenuType('common'); } else { setMenuType('conditional'); } }}/>)}
) : null}
); }