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 refactoring #182
Tabs refactoring #182
Conversation
@mosinve Thnks :) Preparing docs. If ESLint fails i'll fix it too |
Change list :
@mosinve Would you please check changes and also what is your idea changing |
About navstyle, I left it as it was. In bootstrap there're 2 options: tabs or pills. So this prop intended to handle this. |
Figured about cards - cool feature :) |
@mosinve I was just used to <tab-item v-if="localshow || !lazy" v-show="localshow || lazy">```
And about navs if you agree we can make usage more semantic by (at least) providing `pills` prop to easily change style. |
I like lazy variant - it's more flexible. And one more thing, when i tested tabs on local playground, i catch a bug with parent/child assigment. Because of it i moved tabs init from tab (this.$parent) to tabs (this.$slots) - in playground all components are childen of this.vm, but in real life - tab are child of tabs so old version worked well, but gave an error in playground. |
@mosinve I didn't get your meaning about $slots . Do you mean it won't work outside of playground? |
slots work everywhere |
I think i got it :)) @mosinve Would you please commit final fixes for that? so we merge & release it sooner :) |
I'll do |
funny thing: |
😂 It seems being related to |
@mosinve Merge it when done :) We can be ready for next release |
поздравления :) |
متشکرم ;) Hope google trans make it correct))))) |
Hi @pi0, there is my refactor attempt of Tabs. Please check code b4 merge :) I've tested already, but just for sure :)