water_xcx/miniprogram_npm/tdesign-miniprogram/tabs
Cc a25b49fd6d 初始化:小程序同步 2025-04-15 15:44:51 +08:00
..
README.en-US.md 初始化:小程序同步 2025-04-15 15:44:51 +08:00
README.md 初始化:小程序同步 2025-04-15 15:44:51 +08:00
props.d.ts 初始化:小程序同步 2025-04-15 15:44:51 +08:00
props.js 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel-props.d.ts 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel-props.js 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel.d.ts 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel.js 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel.json 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel.wxml 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tab-panel.wxss 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.d.ts 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.js 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.json 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.wxml 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.wxs 初始化:小程序同步 2025-04-15 15:44:51 +08:00
tabs.wxss 初始化:小程序同步 2025-04-15 15:44:51 +08:00
type.d.ts 初始化:小程序同步 2025-04-15 15:44:51 +08:00
type.js 初始化:小程序同步 2025-04-15 15:44:51 +08:00

README.en-US.md

:: BASE_DOC ::

API

Tabs Props

name type default description required
animation Object - TypescriptTabAnimation type TabAnimation = { duration: number } & Record<string, any>see more ts definition N
external-classes Array - ['t-class', 't-class-item', 't-class-active', 't-class-track'] N
placement String top optionsleft/top N
show-bottom-line Boolean true - N
sticky Boolean false - N
sticky-props Object - TypescriptStickyPropsSticky API Documentssee more ts definition N
swipeable Boolean true - N
value String / Number - TypescriptTabValue `type TabValue = string number`。see more ts definition
default-value String / Number undefined uncontrolled property。TypescriptTabValue `type TabValue = string number`。see more ts definition

Tabs Events

name params description
change (value: TabValue, label: string) -
click (value: TabValue, label: string) -
scroll ({ scrollTop: number, isFixed: boolean }) -

TabPanel Props

name type default description required
destroy-on-hide Boolean true - N
disabled Boolean false - N
label String - - N
panel String / Slot - - N
value String / Number - TypescriptTabValue N