Skip to content

Commit 6aa17bc

Browse files
mash19tangbc
authored andcommitted
fix lint errors
1 parent 2e76c24 commit 6aa17bc

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

demos/vfor-mode-with-aria/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
:start="start"
1717
>
1818
<item
19-
v-for="(item, index) in items"
19+
v-for="item in items"
2020
v-bind:key="item.index"
2121
:index="item.index"
2222
:height="size"

demos/vfor-mode-with-aria/build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/aria.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getIndexList } from './util'
66
const theme = 'aria-test'
77

88
describe(theme, () => {
9-
const listCount = 100
9+
const listCount = 1000
1010
const wrapper = mount({
1111
template: `
1212
<div id="app" style="width: 300px;">
@@ -21,7 +21,7 @@ describe(theme, () => {
2121
:key="index"
2222
style="height: 40px; line-height: 40px;"
2323
role="list-item"
24-
:aria-setsize="items.length"
24+
:aria-setsize="setSize"
2525
:aria-posinset="index"
2626
>
2727
<span class="for-item-text">{{ item }}</span>
@@ -38,7 +38,8 @@ describe(theme, () => {
3838

3939
data () {
4040
return {
41-
items: getIndexList(listCount)
41+
items: getIndexList(listCount),
42+
setSize: listCount
4243
}
4344
}
4445
})

0 commit comments

Comments
 (0)