How to use the @alifd/next.Nav.Item function in @alifd/next

To help you get started, we’ve selected a few @alifd/next examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / ice / react-materials / scaffolds / ice-design-ecommerce / src / layouts / BasicLayout / components / Aside / Aside.jsx View on Github external
/* eslint no-undef:0, no-unused-expressions:0, array-callback-return:0 */
import React, { Component } from 'react';
import { Nav } from '@alifd/next';
import { withRouter, Link } from 'react-router-dom';
import { asideMenuConfig } from '../../../../menuConfig';
import './Aside.scss';

const NavItem = Nav.Item;

@withRouter
export default class BasicLayout extends Component {
  render() {
    const { location } = this.props;
    const { pathname } = location;

    return (
      <nav style="{{" direction="ver">
        {Array.isArray(asideMenuConfig) &amp;&amp;
          asideMenuConfig.length &gt; 0 &amp;&amp;</nav>
github alibaba / ice / react-materials / scaffolds / ice-project-management-admin / src / layouts / BasicLayout / components / Aside / index.js View on Github external
/* eslint no-undef:0, no-unused-expressions:0, array-callback-return:0 */
import React, { Component } from 'react';
import { Nav } from '@alifd/next';
import { withRouter, Link } from 'react-router-dom';
import { asideMenuConfig } from '../../../../menuConfig';
import './index.scss';

const NavItem = Nav.Item;

@withRouter
export default class BasicLayout extends Component {
  render() {
    const { location } = this.props;
    const { pathname } = location;

    return (
      <div>
        <div>LOGO</div>
        <nav>
          {Array.isArray(asideMenuConfig) &amp;&amp;
            asideMenuConfig.length &gt; 0 &amp;&amp;
            asideMenuConfig.map((nav) =&gt; {
              return (
                </nav></div>
github alibaba / ice / react-materials / scaffolds / ice-design-pro / src / layouts / BasicLayout / components / Aside / index.js View on Github external
import React, { Component } from 'react';
import cx from 'classnames';
import FoundationSymbol from '@icedesign/foundation-symbol';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router';
import { Nav } from '@alifd/next';
import { FormattedMessage } from 'react-intl';

import Logo from '../Logo';
import { asideMenuConfig } from '../../../../menuConfig';
import Authorized from '../../../../utils/Authorized';
import './index.scss';

const SubNav = Nav.SubNav;
const NavItem = Nav.Item;

@withRouter
export default class Aside extends Component {
  static propTypes = {};

  static defaultProps = {};

  constructor(props) {
    super(props);

    const openKeys = this.getDefaultOpenKeys();
    this.state = {
      collapse: false,
      openDrawer: false,
      openKeys,
    };
github alibaba / ice / react-materials / scaffolds / ice-design-ecommerce / src / layouts / BasicLayout / components / Header / Header.jsx View on Github external
import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { Balloon, Icon, Nav } from '@alifd/next';
import IceImg from '@icedesign/img';
import { headerMenuConfig } from '../../../../menuConfig';
import Logo from '../Logo';
import './Header.scss';

const NavItem = Nav.Item;

@withRouter
export default class Header extends Component {
  render() {
    const { location = {} } = this.props;
    const { pathname } = location;
    return (
      <div>
        <div>
          
          <div>
            </div></div></div>