-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: wt-pagination docs [WTEL-3947]
- Loading branch information
Showing
3 changed files
with
128 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup> | ||
import Docs from './wt-pagination-docs.vue'; | ||
import ExamplePagination from './examples/example-pagination.vue'; | ||
</script> | ||
|
||
# WtPagination | ||
|
||
## Props | ||
::: raw | ||
<Docs/> | ||
::: | ||
|
||
## Example Pagination | ||
::: raw | ||
<ExamplePagination/> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-pagination.vue | ||
::: |
27 changes: 27 additions & 0 deletions
27
docs/pages/webitel-ui/components/wt-pagination/examples/example-pagination.vue
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const size = ref(10); | ||
const isNext = ref(true); | ||
const isPrev = ref(false); | ||
function alert(value) { | ||
window.alert(value); | ||
} | ||
</script> | ||
|
||
<template> | ||
<wt-pagination | ||
:size="size" | ||
:next="isNext" | ||
:prev="isPrev" | ||
@input="size = $event" | ||
@next="alert('next')" | ||
@prev="alert('prev')" | ||
/> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
</style> |
185 changes: 81 additions & 104 deletions
185
docs/pages/webitel-ui/components/wt-pagination/wt-pagination-docs.vue
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