前端项目实战之Web端常见的侧边导航栏组件封装

前言:前端B端开发,web常常会用到导航栏,下面进行封装

一、组件封装

  • 组件名: Navigation
  • 入口文件:index.tsx
  • 样式文件:index.module.less

index.tsx

import type {
   
    
     CSSProperties } from 'react';
import {
   
    
     useState } from 'react';
import 

猜你喜欢

转载自blog.csdn.net/yiguoxiaohai/article/details/127312264