/** * 能力中心小程序索导航栏组件,可自定义导航栏样式,满足业务需求,使用时需添加"transparentTitle": "always"。 * * @see https://mas.alipay.com/material/component?id=75000010 */ interface AdcNavBarProps { /** * 自定义样式. */ className?: string; /** * 导航栏标题. */ title?: string; /** * justify-content对齐方式, 默认`flex-start`. */ align?: 'flex-start' | 'center' | 'flex-end'; /** * 是否填充头部, 默认`true`. */ fill?: boolean; /** * 是否需要返回按钮, 默认`true`. */ isBack?: boolean; /** * 是否自定义标题, 默认`false`. */ useSlot?: boolean; /** * 字体大小, 默认`32rpx`. */ fontSize?: string; /** * 字体颜色, 默认`#fff`. */ color?: string; /** * 背景颜色, 默认`linear-gradient(246deg, #FADC0F 0%, #FA8C12 100%, #FA8C12 100%)`. */ background?: string; /** * z-index, 默认`''`. */ zIndex?: string | number; /** * navbar加载完成回调,返回navbar高度, 默认`null`. */ onCallback?: ((navHeight: number) => void) | null; /** * 点击navbar, 默认`null`. */ onTitleBarTap?: () => void; } export type { AdcNavBarProps };