File tree Expand file tree Collapse file tree
packages/taro-components/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { CSSProperties , LegacyRef , ReactNode } from 'react'
22import { COMPILE_MODE_SUB_RENDER_FN } from '@tarojs/shared'
33
4- export interface StandardProps < T = any , TouchEvent extends BaseTouchEvent < any > = ITouchEvent > extends EventProps < TouchEvent > {
4+ export interface A11yProps {
5+ /** 定义元素的角色 */
6+ ariaRole ?: string
7+ /** 为元素提供一个可访问名称 */
8+ ariaLabel ?: string
9+ /** 当前 view 及其子 view 是否屏幕无障碍隐藏 */
10+ ariaHidden ?: boolean
11+ /** 标识当前是否被选中 */
12+ ariaChecked ?: boolean
13+ /** 指示元素是否处于选中状态 */
14+ ariaSelected ?: boolean
15+ /** 为元素的 role 提供额外说明 */
16+ ariaRoledescription ?: string
17+ /** 设置数值控件的最大值 */
18+ ariaValuemax ?: string
19+ /** 设置数值控件的最小值 */
20+ ariaValuemin ?: string
21+ /** 设置数值控件的当前值 */
22+ ariaValuenow ?: string
23+ /** 设置将覆盖 ariaValuemax、ariaValuemin 和 ariaValuenow 的值 */
24+ ariaValuetext ?: string
25+ }
26+
27+ export interface StandardProps < T = any , TouchEvent extends BaseTouchEvent < any > = ITouchEvent > extends EventProps < TouchEvent > , A11yProps {
528 /** 组件的唯一标示, 保持整个页面唯一 */
629 id ?: string
730 /** 同 `class`,在 React/Preact 里一般使用 `className` 作为 `class` 的代称 */
You can’t perform that action at this time.
0 commit comments