1.8.24 • Published 6 months ago

@antdp/layout-tabs v1.8.24

Weekly downloads
9
License
MIT
Repository
github
Last release
6 months ago

@antdp/layout-tabs

npm version npm download

用于主框架选项卡组件。解决 antd 组件 Tabs 切换性能慢的问题。

Tab 选项卡技术实现

测试项页面切换重新渲染页面切换 “隐藏”iframe src 嵌入页面iframe 组件生成
性能✅💯⚠️(还需优化)✅💯✅💯
页面状态⚠️(有代码量)
路由使用❌(浏览器地址栏无变化)
antd 组件❌(大量弹出类组件位置错乱)
主框架交互⚠️(局限以内,父页面交互复杂)
样式加载⚠️(还需优化)

Installation

npm i @antdp/layout-tabs --save

Basic Usage

import React from 'react';
import LayoutTabs from '@antdp/layout-tabs';

<LayoutTabs
  activeKey={location.pathname}
  dataSource={[]}
/>

Component Interface

interface LayoutTabsRouter {
  component?: JSX.Element;
  exact?: boolean;
  icon: string;
  key: string;
  name: string;
  path: string;
}

interface LayoutTabsProps {
  activeKey?: string[]
  dataSource?: LayoutTabsRouter[]
  children?: React.ReactNode;
}

通过配置 @antdp/config,来解决是否重新渲染或者 iframe 展示页面等功能

1.8.20

7 months ago

1.8.21

6 months ago

1.8.22

6 months ago

1.8.23

6 months ago

1.8.24

6 months ago

1.8.17

10 months ago

1.8.18

10 months ago

1.8.19

9 months ago

1.8.16

12 months ago

1.8.15

1 year ago

1.8.14

1 year ago

1.8.13

1 year ago

1.8.12

1 year ago

1.8.11

1 year ago

1.8.9

1 year ago

1.8.10

1 year ago

1.8.8

1 year ago

1.8.7

1 year ago

1.8.6

1 year ago

1.8.2

1 year ago

1.8.5

1 year ago

1.8.4

1 year ago

1.8.3

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.19

1 year ago

1.6.17

1 year ago

1.6.16

1 year ago

1.6.18

1 year ago

1.6.15

1 year ago

1.6.14

1 year ago

1.6.11

1 year ago

1.6.13

1 year ago

1.6.4

1 year ago

1.6.9

1 year ago

1.6.8

1 year ago

1.6.10

1 year ago

1.6.7

1 year ago

1.6.6

1 year ago

1.6.5

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.0

1 year ago

1.5.4

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.12

2 years ago

1.3.11

2 years ago

1.3.10

2 years ago

1.3.7

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.23

2 years ago