Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jun 14, 2022
1 parent f709a16 commit e63e864
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 19 deletions.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/components/src/BlitzTh/examples/Basic.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts" setup>
import BlitzTh from '../BlitzTh.vue'
</script>

<template>
<BlitzTh :column="{ id: 'name' }" :sortState="[]" :lang="{}" />
<BlitzTh :column="{ id: 'id', label: 'ID' }" :sortState="[]" :lang="{}" />
</template>
7 changes: 7 additions & 0 deletions packages/components/src/BlitzTh/examples/Lang.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script lang="ts" setup>
import BlitzTh from '../BlitzTh.vue'
</script>

<template>
<BlitzTh :column="{ id: 'name' }" :sortState="[]" :lang="{ name: '名前' }" />
</template>
11 changes: 11 additions & 0 deletions packages/components/src/BlitzTh/examples/Sort.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script lang="ts" setup>
import BlitzTh from '../BlitzTh.vue'
</script>

<template>
<BlitzTh
:column="{ id: 'name', sortable: true }"
:sortState="[{ id: 'name', direction: 'asc' }]"
:lang="{}"
/>
</template>

0 comments on commit e63e864

Please sign in to comment.