-
Notifications
You must be signed in to change notification settings - Fork 342
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
[#1725] VaSplit
component implementation
#2068
[#1725] VaSplit
component implementation
#2068
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.
Would be nice to have real-world example (like Sidebar and App content.)
Have you tested this on phone? You will need to listen for touchstart, touchend events.
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.
Looks awesome! I have a little suggestion: if the cursor goes out of the splitter container we lose the 'draggable' state, would be better if the user can move the splitter out of the container.
packages/docs/src/page-configs/ui-elements/split/examples/CustomGrabber.vue
Outdated
Show resolved
Hide resolved
packages/docs/src/page-configs/ui-elements/split/examples/Disabled.vue
Outdated
Show resolved
Hide resolved
fix:minor fix fix:redundant limits prop changed to number
fix:minor fix fix:redundant limits prop changed to number
feat:added resize observer to the container (to recalc limits) feat:docs updates
packages/docs/src/page-configs/ui-elements/split/examples/CustomGrabber.vue
Outdated
Show resolved
Hide resolved
fix: review fixes
# Conflicts: # packages/docs/src/locales/en/en.json # packages/docs/src/locales/ru/ru.json
From discussion with Vitaly:
|
}) | ||
|
||
switch (measureValue) { | ||
case '%': |
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.endsWith('%')
v.endsWith('px')
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.
We have to parse value anyway. So, this suggestion isn't suitable in my opinion.
case '': | ||
return 100 | ||
default: | ||
warn('Invalid limits measure!') | ||
return 0 |
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.
default:
if (v !== Number(v)) warn('puk')
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.
Same as above.
Can we also have some specs like this? We will put it later under documentation page. It takes too much time to understand how it works... |
fix: review suggestions refactor: minor docs refactor
fix: minor demo fix
Close: #1725
Description
New split component implementation.
Types of changes