Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all components using target/scroll-target to use the same in…
…terface #5906 (#5421) * Refactor all components using target/scroll-target to use the same interface - target accepts (in QMenu, QPopupProxy, QTooltip): - true => auto find target based on first parent (starting from parentEl) without .q-anchor--skip class - false => no anchor - Vue instance => uses $el of that instance - CSS selector or DOM element => that element - scroll-target accepts (in QInfiniteScroll, QMenu, QScrollObserver, QParalax, QPullToRefresh, QTooltip, QVirtualScroll) - null or void 0 => auto detect using getScrollTarget - Vue instance => uses $el of that instance - CSS selector or DOM element => that element - in the end, if the scroll target is document, document.body, document.scrollingElement or document.documentElement, window is selected as scroll target close #5051 * Update scroll-observer.md * Update scroll.js * Update QInfiniteScroll.js * Update QInfiniteScroll.json * Update QMenu.js * Update QMenu.js * Update QMenu.json * Update QParallax.js * Update QParallax.json * Update QPullToRefresh.js * Update QPullToRefresh.json * Update QScrollObserver.js * Update QScrollObserver.json * Update QTooltip.js * Update QTooltip.json * Update QVirtualScroll.js * Update QVirtualScroll.json * Update anchor.js Co-authored-by: Razvan Stoenescu <razvan.stoenescu@gmail.com>
- Loading branch information
1 parent
40984e8
commit 06f7696
Showing
16 changed files
with
142 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,10 @@ | |
|
||
"disable": { | ||
"extends": "disable" | ||
}, | ||
|
||
"scroll-target": { | ||
"extends": "scroll-target" | ||
} | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
06f7696
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.
I just updated from v1.7.3 to v1.7.4 and now Webstorm don't recognize anymore html tags, maybe this is related to this huge refactoring?
I tried rebuilding node_modules too and clearing cache on webstorm, but nothing... I have one project with 1.7.1 and it works without problem, another on v1.7.3 and it works, so only this new project with v1.7.4 with that error.
If i revert to v1.7.3 it works.
I know that maybe this is only a problem of Webstorm but it can be fixed in some way it will be a good thing. Thank you
06f7696
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.
Hi,
The commit above didn't go into 1.7.4.
Your issue must be something else, but can't tell what...
06f7696
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.
Ok sorry, I'll try to investigate further.
06f7696
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.
@dariodepaolis pls do tell me if you get to the bottom of this. we'll also try to see if there's anything wrong.
06f7696
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.
Sure, I'll let you know, I think it's something related to components registration, I'll differ 1.7.4 from 1.7.3 ;)
06f7696
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.
@dariodepaolis I will try to update the project and find out the problem. Just to clear out - WebStorm recognizes components based on
web-types.json
file that is generated during build from JSON API (so it's probably our problem (likely mine 😄 or someone else who broke JSON api) )06f7696
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.
This seems like an issue with WebStorm, so I filed an issue, you can follow it here . Workaround for now is to use 1.7.3 or revert only
package.json
file innode_modules/quasar
to an older version.06f7696
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.
Thank you so much!