
        <script setup>
        import { computed } from "vue"
        import { Playground, PropsTable, ExampleHeader, PageTitle } from "@viteplay/vue"
        import { useRoute, useRouter } from "vue-router"
                
        
            let modules_0 = {}
            import * as  module_0_0 from "vue"
              modules_0["vue"] = module_0_0
              
import  module_0_1 from "/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CPager/CPager.vue"
              modules_0["../CPager.vue"] = module_0_1
              
            

        let componentProps = {"CPager":[]}
        let route = useRoute()
        let router = useRouter()
        let focusId = computed(() => route.query.focus && route.hash.slice(1))
        let shouldRender = (slug) => {
          return !route.query.focus || slug === focusId.value
        }
        let hiddenCount = computed(() => {
          return ["basic"].filter((slug) => !shouldRender(slug)).length
        })

        let showAll = () => {
          router.push({ query: {}, hash: route.hash })
        }

        let openInEditor = (file) => {
           fetch('/__open-in-editor?file=' + encodeURIComponent(file))
        }
        </script>
        <template>
          <PageTitle title="CPager" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CPager/CPager.vue')" />
          <div v-if="hiddenCount > 0" class="hidden-examples-info">
            {{ hiddenCount }} example{{ hiddenCount > 1 ? "s" : null }} hidden, <a @click.prevent="showAll" type="button" style="cursor: pointer">show all</a>
          </div>
          <PropsTable componentName="CPager" :componentProps="componentProps" />
          
          <section v-if="shouldRender('basic')" class="viteplay-example">

            <ExampleHeader slug="basic" title="Basic" />

            <div class="viteplay-docs"><p>合計のページ数はCAdminTableに計算されて、パスされるので、こちらにて更新しても、ページ数は変わらない</p>
</div>

            <Playground :darkExample="false" :componentProps="componentProps" :openInEditor="() => openInEditor('/Users/nakashimakeiju/ghq/github.com/CodeLic/console/src/components/CPager/examples/Basic.vue')" :modules="modules_0" :code="decodeURI(`%3Cscript%20lang=%22ts%22%20setup%3E%0Aimport%20%7B%20ref%20%7D%20from%20'vue'%0Aimport%20CPager%20from%20'../CPager.vue'%0A%0Aconst%20pageNrA%20=%20ref(1)%0Aconst%20pageNrB%20=%20ref(1)%0Aconst%20pageNrC%20=%20ref(1)%0A%3C/script%3E%0A%0A%0A%0A%3Ctemplate%3E%0A%20%20%3CCPager%20v-model=%22pageNrA%22%20:pageCount=%223%22%20/%3E%0A%20%20%3Cdiv%20style=%22padding:%201rem%22%3E%0A%20%20%20%20modelValue:%20%3Ccode%3E%7B%7B%20pageNrA%20%7D%7D%3C/code%3E%0A%20%20%3C/div%3E%0A%0A%20%20%3CCPager%20v-model=%22pageNrB%22%20:pageCount=%226%22%20/%3E%0A%20%20%3Cdiv%20style=%22padding:%201rem%22%3E%0A%20%20%20%20modelValue:%20%3Ccode%3E%7B%7B%20pageNrB%20%7D%7D%3C/code%3E%0A%20%20%3C/div%3E%0A%0A%20%20%3CCPager%20v-model=%22pageNrC%22%20:pageCount=%22100%22%20/%3E%0A%20%20%3Cdiv%20style=%22padding:%201rem%22%3E%0A%20%20%20%20modelValue:%20%3Ccode%3E%7B%7B%20pageNrC%20%7D%7D%3C/code%3E%0A%20%20%3C/div%3E%0A%3C/template%3E`)" />
          </section>
            
        </template>

<style scoped>
.hidden-examples-info {
  margin: 20px 0;
}
</style>
      