-
Notifications
You must be signed in to change notification settings - Fork 264
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
feat(xo-core): update TabItem
and TabList
components to v2
#8047
base: master
Are you sure you want to change the base?
Conversation
e413add
to
b30d16d
Compare
selected?: boolean | ||
tag?: string | ||
}>(), | ||
{ tag: 'span', disabled: undefined } |
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.
What is the point of assigning undefined
as the default value?
Is it to prevent vue
from converting undefined
to false
?
If so, is there any point in having undefined
instead of false
here?
Or maybe this is something I missed in the guideline?
In that case, why selected
is not handled?
defineProps<{ | ||
disabled?: boolean | ||
selected?: boolean | ||
tag?: string | ||
}>(), |
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.
In the DS, i can see a counter
prop.
@@ -1,6 +1,6 @@ | |||
<!-- v1.0 --> | |||
<!-- v2 --> |
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.
Based on the Tabs bar changelog
, the v2
implement the scroll bar option
@@ -22,7 +22,7 @@ export function useTabList<TName extends string>(names: TName[], initialTab?: Ma | |||
event.preventDefault() | |||
activate(name) | |||
}, | |||
active: isActive(name), | |||
selected: isActive(name), |
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.
selected
: isSelected(name)
maybe? In order to sync name. (or isCurrent()
if the proposition is accepted)
Description
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md
Review process
Notes: