2.3.12 • Published 5 years ago

nuke-tabbar v2.3.12

Weekly downloads
259
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

Tabbar

  • category: UI
  • chinese: Tab切换
  • type: UI Component

Usage

tab toggle, commonly used in the entire layout framework of the business.

API

Tabbar

PropsDescriptionTypeDefault
itemStylecustomized tabbar-item style, will override the default style, through this field, you can customize the width, height and layout of the tab navigation barobjectfalse
styleCustomize the style of the tabbar container and override the default styleobjectfalse
navTopThe position of the navigation, default value is bottom, also can be adjusted to the topbooleanfalse
navStylecustom tab title bar styles need to be imported{active: {style...}, inactive: {style...}} active corresponding selection styles, inactive unchecks the styleobjectfalse
navScrollablenavigation scrolls? If it can scroll, you don't limit the tab width and scroll horizontally. If it can't scroll, each child element flex =1 is equal to the parent container widthbooleanfalse
iconBarwith iconbooleanfalse
activeKey(Necessary) used to open and switch to the specified tab and receive the tab valuestringfalse
asFrameworkuse this as a framework to start this item. It needs the business side to control the shouldComponentUpdate event so that it will be optimized. Otherwise, it will be used as a simple container component, so that props change will be filtration controled.booleanfalse
onChange(embed mode invalid)prevTab and nextTab are thrown when tab is switched, and props is not triggered manuallyfuntionfalse customChange(embed mode invalid)Defines the injection method name of the built-in switch tab, which defaults to changeTo, in tabContent call this.changeTo('tab 的key') directly.stringfalse
customFocus(embed mode invalid)Defining the intersection point of hook. This method is implemented when tabbar is switched, default method is onFoucs. The changeTo can be defined directly in tabContent. When tab is switched, true is cut into false.stringfalse

Watching

  • Change state, props does not take effect Default setting of asFrameworkis false and non tabbar state changes will be filtered, in order to improve the performance of the effect. If the user needs to control the component through state changes, set it to true.
  • embed mode When Tabbar.item sets the SRC property, the embed mode is enabled. The mode H5 shows the use of iframe loading pages. Native shows the ability to load modules with embed loaded with jsBundle. But not all app supported embed mode, so please fully self-test before use.

Tabbar.Item

PropsDescriptionTypeDefault
renderCustom rendering function, item will be imported whether the current belongs to the active state of status, the current tabkey as the parameterfunctionnull
tabKey(necessary)define the key of this tabbarstringnull
preventDefaultEventdefines whether to disable default eventsbooleannull
numthe numbers revealed, follow the title of tab, show way: title(num)stringnull
onPresshandler event after clickingfunctionnull
titlerevealing copystringnull
iconif tabbar sets iconbar=true, so it valids here, {src: 'xxx',selected:'xxx',size:'small/medium/large',style:{}}objectnull
src(enable embed mode)define being loaded jsbundle urlstringnull

1.0.0 later, tabbar remove the scrollable effect if still need, please refer nuke-biz-ep-tabbar.

The Other

  • Chat with @翊晨[yichen] in Dingtalk desktop App Download
  • DingTalk Group
2.3.12

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.0

5 years ago

2.2.29

6 years ago

2.2.28

6 years ago

2.2.26

6 years ago

2.2.24

6 years ago

2.2.23

6 years ago

2.2.21

6 years ago

2.2.19

6 years ago

2.2.18

6 years ago

2.2.17

6 years ago

2.2.16

6 years ago

0.3.25

6 years ago

2.2.14

6 years ago

2.2.13

6 years ago

2.2.11

6 years ago

2.2.8

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.4

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.1.10

6 years ago

2.1.6

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.1-4.3

6 years ago

2.1.1-3

6 years ago

2.0.6

6 years ago

0.3.23

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

0.3.21

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.3.20

7 years ago

0.3.19

7 years ago

0.3.18

7 years ago

0.3.17

7 years ago

0.3.16

7 years ago

0.3.15

7 years ago

0.3.14

7 years ago

0.3.13

7 years ago

0.3.12

7 years ago

0.3.11

7 years ago

0.3.10

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.33

7 years ago

0.1.32

7 years ago

0.1.31

7 years ago

0.1.30

7 years ago

0.1.29

7 years ago

0.1.28

7 years ago

0.1.27

7 years ago

0.1.26

7 years ago

0.1.25

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.33

7 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago