mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] List: improve accessibility
This commit is contained in:
parent
cea1632927
commit
a7e346ca0f
@ -6,6 +6,7 @@
|
||||
|
||||
对以下组件增加了无障碍访问的支持:
|
||||
|
||||
- List
|
||||
- Dialog
|
||||
- Slider
|
||||
- NoticeBar
|
||||
|
@ -130,7 +130,7 @@ export default sfc({
|
||||
|
||||
render(h) {
|
||||
return (
|
||||
<div class={bem()}>
|
||||
<div class={bem()} role="feed" aria-busy={this.loading}>
|
||||
{this.direction === 'down' && this.slots()}
|
||||
{this.loading && (
|
||||
<div class={bem('loading')} key="loading">
|
||||
|
@ -15,7 +15,7 @@ exports[`renders demo correctly 1`] = `
|
||||
<div class="van-pull-refresh">
|
||||
<div class="van-pull-refresh__track" style="transition: 0ms;">
|
||||
<div class="van-pull-refresh__head"></div>
|
||||
<div class="van-list"></div>
|
||||
<div role="feed" class="van-list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user