Skip to content
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

fix: resolve admin pages pagination bug #4280

Merged
merged 1 commit into from
Sep 11, 2021
Merged

fix: resolve admin pages pagination bug #4280

merged 1 commit into from
Sep 11, 2021

Conversation

tsh96
Copy link
Contributor

@tsh96 tsh96 commented Aug 8, 2021

Solve Admin Search bug #1180

@auto-assign auto-assign bot requested a review from NGPixel August 8, 2021 10:07
@NGPixel NGPixel merged commit 7e997aa into requarks:dev Sep 11, 2021
@craph craph mentioned this pull request Sep 29, 2021
@craph
Copy link
Contributor

craph commented Sep 29, 2021

Hi @tsh96 ,
I was looking your PR because I'm trying to increase my skills to contribute to this beautiful project and I'm unable to understand what does the @page-count="pageTotal = $event"
I'm not familliar with this synthax for vuejs I think it's pug in a vue template but I'm not aware of what the @ does and same for :

Is that related to vuetify or pug ? I'm not able to find a documentation about that

Please could you give me some advise ?
Thank you very much.

Best regards,

@NGPixel
Copy link
Member

NGPixel commented Sep 29, 2021

@something is an event in Vue.js. So when event page-count is triggered by the component, the expression in quotes is evaluated. In this case, the variable pageTotal is updated with the value of $event.

@craph
Copy link
Contributor

craph commented Sep 30, 2021

@NGPixel Thank you very much for the explanation :)
So if I'm right @something is an event and :something is a property of the component where it's placed ?

@tsh96
Copy link
Contributor Author

tsh96 commented Oct 2, 2021

Hi @craph,
Yes,
@ is shorthand for v-on: which is used to handle an event.
: is shorthand for v-bind: which is used to bind a data.

Another well known shorthand is # for v-slot:

For more information you can refer to
https://vuejs.org/v2/guide/syntax.html#Shorthands
https://vuejs.org/v2/api/#v-slot

@craph
Copy link
Contributor

craph commented Oct 4, 2021

Hi @craph, Yes, @ is shorthand for v-on: which is used to handle an event. : is shorthand for v-bind: which is used to bind a data.

Another well known shorthand is # for v-slot:

For more information you can refer to https://vuejs.org/v2/guide/syntax.html#Shorthands https://vuejs.org/v2/api/#v-slot

Thank you very much @tsh96 :)

jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants