feat: 添加组件无障碍功能支持 #7272
Annotations
11 errors and 10 warnings
|
build:
src/packages/tabbaritem/tabbaritem.taro.tsx#L136
Type '{ children: Element | null; ariaSelected: boolean; id?: string | undefined; className: string; style: { accentColor?: AccentColor | undefined; alignContent?: AlignContent | undefined; ... 854 more ...; glyphOrientationVertical?: GlyphOrientationVertical | undefined; }; ... 4 more ...; ariaRoledescription: string | u...' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
build:
src/packages/swiper/swiper.tsx#L41
Property 'alt' does not exist on type '{ direction: Direction; indicator: ReactNode; loop: boolean; duration: SimpleValue; autoPlay: number | boolean; autoplay: number | boolean; defaultValue: number; ... 7 more ...; id?: string | undefined; }'.
|
|
build:
src/packages/swiper/swiper.taro.tsx#L167
Type '{ children: string | number | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode>; ... 4 more ...; ariaRoledescription: string | undefined; }' is not assignable to type 'IntrinsicAttributes & SwiperItemProps'.
|
|
build:
src/packages/price/price.taro.tsx#L174
Type '{ children: Element; className: string; style: CSSProperties | undefined; ariaLabel: string; }' is not assignable to type 'IntrinsicAttributes & TextProps'.
|
|
build:
src/packages/noticebar/noticebar.taro.tsx#L498
Type '{ size: number; ariaLabel: string; }' is not assignable to type 'IntrinsicAttributes & SVG_IconProps'.
|
|
build:
src/packages/inputnumber/inputnumber.taro.tsx#L233
Type '{ children: Element; className: string; onClick: (e: ITouchEvent) => Promise<void>; ariaRole: string; ariaLabel: string; ariaDisabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
build:
src/packages/inputnumber/inputnumber.taro.tsx#L200
Type '{ children: Element; className: string; onClick: (e: ITouchEvent) => Promise<void>; ariaRole: string; ariaLabel: string; ariaDisabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
build:
src/packages/inputnumber/inputnumber.taro.tsx#L193
Type '{ children: Element[]; className: string; style: CSSProperties | undefined; ariaLabel: string | undefined; ariaDisabled: boolean; }' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
build:
src/packages/dialog/content.taro.tsx#L66
Type '{ children: (string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | Element | null)[]; ... 5 more ...; tabindex: number; }' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
build:
src/packages/button/button.taro.tsx#L166
Type '{ children: Element; ref: ForwardedRef<HTMLButtonElement>; className: string; style: { [x: `--${string}`]: any; accentColor?: AccentColor | undefined; ... 855 more ...; glyphOrientationVertical?: GlyphOrientationVertical | undefined; }; onClick: (e: ITouchEvent) => void; ariaRole: string; ariaDisabled: boolean | und...' is not assignable to type 'IntrinsicAttributes & ViewProps'.
|
|
test
Process completed with exit code 1.
|
|
lint:
src/packages/avatarcropper/avatarcropper.tsx#L114
React Hook useMemo has a missing dependency: 'shape'. Either include it or remove the dependency array
|
|
lint:
src/packages/avatarcropper/avatarcropper.taro.tsx#L327
React Hook useCallback has missing dependencies: 'alipayDraw', 'canvasAll', 'showAlipayCanvas2D', 'space', 'state', and 'webDraw'. Either include them or remove the dependency array
|
|
lint:
src/packages/avatarcropper/avatarcropper.taro.tsx#L270
React Hook useCallback has missing dependencies: 'canvasAll.canvasId', 'state.displayHeight', and 'state.displayWidth'. Either include them or remove the dependency array
|
|
lint:
src/packages/avatarcropper/avatarcropper.taro.tsx#L253
React Hook useCallback has missing dependencies: 'pixelRatio' and 'space'. Either include them or remove the dependency array
|
|
lint:
src/packages/avatarcropper/avatarcropper.taro.tsx#L171
React Hook useMemo has a missing dependency: 'shape'. Either include it or remove the dependency array
|
|
lint:
src/packages/avatarcropper/avatarcropper.taro.tsx#L159
React Hook useEffect has a missing dependency: 'canvasAll'. Either include it or remove the dependency array. You can also do a functional update 'setCanvasAll(c => ...)' if you only need 'canvasAll' in the 'setCanvasAll' call
|
|
lint:
src/packages/avatar/avatar.taro.tsx#L107
React Hook useEffect has a missing dependency: 'groupMax'. Either include it or remove the dependency array
|
|
lint:
src/packages/animatingnumbers/countup.taro.tsx#L84
React Hook useCallback has a missing dependency: 'duration'. Either include it or remove the dependency array
|
|
lint:
src/packages/address/elevatorRender.tsx#L174
React Hook useEffect has missing dependencies: 'levels.length', 'select', and 'selectProvince'. Either include them or remove the dependency array
|
|
lint:
src/packages/address/elevatorRender.taro.tsx#L175
React Hook useEffect has missing dependencies: 'levels.length', 'select', and 'selectProvince'. Either include them or remove the dependency array
|