-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为 Tabs 增加 WAI-ARIA 支持 #235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好多改格式的,看起来累
packages/veui/demo/cases/Tabs.vue
Outdated
@@ -75,7 +75,9 @@ | |||
<veui-button @click="addTab1">添加 TAB</veui-button> | |||
<veui-tabs :active.sync="active2" :index.sync="index3"> | |||
<template slot="tab-item-extra" slot-scope="props"> | |||
<icon name="cross-small" v-if="props.removable && tabs1.length > 1" @click.native="removeTab1(props)"></icon> | |||
<button type="button" class="veui-tabs-item-remove" @click="removeTab1(props)"> | |||
<icon name="cross-small" v-if="props.removable && tabs1.length > 1"></icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v-if
应该在 button 上吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该在 button 上,不过这里我正在加新样式,到时候一堆冲突
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像可以放在 <template>
上,要不我先合了?你 rebase 下再改?@chestnutchen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
分支不一样吧?你这个 aria 的啥时候合。。。
For #234.