-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
9,654 additions
and
10,241 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
8 changes: 8 additions & 0 deletions
8
packages/yike-design-demo/src/examples/calendar/calendar-min.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,8 @@ | ||
<template> | ||
<yk-calendar-min v-model="currentRef"></yk-calendar-min> | ||
</template> | ||
<script setup lang="ts"> | ||
import { YkCalendarMin } from '@yike-design/ui/index' | ||
import { ref } from 'vue' | ||
const currentRef = ref(new Date()) | ||
</script> |
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
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
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
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
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
31 changes: 13 additions & 18 deletions
31
packages/yike-design-demo/src/examples/pagination/pagination-disabled.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 |
---|---|---|
@@ -1,21 +1,16 @@ | ||
<template> | ||
<div> | ||
<yk-space dir="vertical"> | ||
<yk-switch v-model="disabled"></yk-switch> | ||
<yk-pagination | ||
disabled | ||
:total="50" | ||
show-jumper | ||
show-page-size | ||
show-total | ||
></yk-pagination> | ||
</div> | ||
<div style="margin-top: 10px"> | ||
<yk-pagination | ||
disabled | ||
:total="50" | ||
simple | ||
show-jumper | ||
show-page-size | ||
show-total | ||
></yk-pagination> | ||
</div> | ||
:total="100" | ||
:layouts="['total', 'prev', 'pager', 'next', 'pageSize', 'jumper']" | ||
:disabled="disabled" | ||
/> | ||
</yk-space> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const disabled = ref(true) | ||
</script> |
30 changes: 15 additions & 15 deletions
30
packages/yike-design-demo/src/examples/pagination/pagination-events.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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<template> | ||
<yk-pagination | ||
v-model:current="current" | ||
:total="1000" | ||
show-jumper | ||
show-page-size | ||
show-total | ||
@change="handleChange" | ||
@page-size-change="handlePageSizeChange" | ||
></yk-pagination> | ||
<yk-space overflow="auto"> | ||
<yk-pagination | ||
v-model:current="current" | ||
:total="1000" | ||
@change="handleChange" | ||
@page-size-change="handlePageSizeChange" | ||
/> | ||
</yk-space> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref, watch } from 'vue' | ||
import { ref } from 'vue' | ||
const current = ref<number>(3) | ||
const handleChange = (current: number) => { | ||
function handleChange(current: number) { | ||
console.log(`current page is: ${current}`) | ||
} | ||
const handlePageSizeChange = (pageSize: number) => { | ||
function handlePageSizeChange(pageSize: number) { | ||
console.log(`current page size is: ${pageSize}`) | ||
} | ||
watch(current, (newVal) => { | ||
console.log(`v-model value is: ${newVal}`) | ||
}) | ||
</script> |
4 changes: 3 additions & 1 deletion
4
packages/yike-design-demo/src/examples/pagination/pagination-fix-width.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<template> | ||
<yk-pagination :total="1000" fix-width></yk-pagination> | ||
<yk-space overflow="auto"> | ||
<yk-pagination :total="1000" fix-width /> | ||
</yk-space> | ||
</template> |
6 changes: 6 additions & 0 deletions
6
packages/yike-design-demo/src/examples/pagination/pagination-layouts.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,6 @@ | ||
<template> | ||
<yk-pagination | ||
:total="1000" | ||
:layouts="['total', 'pager', 'prev', 'next', 'pageSize', 'jumper']" | ||
/> | ||
</template> |
8 changes: 0 additions & 8 deletions
8
packages/yike-design-demo/src/examples/pagination/pagination-page-size-options.vue
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/yike-design-demo/src/examples/pagination/pagination-pager-count.vue
This file was deleted.
Oops, something went wrong.
13 changes: 8 additions & 5 deletions
13
packages/yike-design-demo/src/examples/pagination/pagination-primary.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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<template> | ||
<yk-space dir="vertical"> | ||
<yk-pagination :total="30"></yk-pagination> | ||
<yk-pagination :total="40"></yk-pagination> | ||
<yk-pagination :total="50"></yk-pagination> | ||
</yk-space> | ||
<yk-slider v-model="value" :min="1" :max="1000" :step="1" /> | ||
<yk-pagination fix-width :total="value" style="margin-top: 12px" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const value = ref(30) | ||
</script> |
3 changes: 0 additions & 3 deletions
3
packages/yike-design-demo/src/examples/pagination/pagination-show-jumper.vue
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/yike-design-demo/src/examples/pagination/pagination-show-page-size.vue
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/yike-design-demo/src/examples/pagination/pagination-simple.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<yk-pagination :total="50" simple></yk-pagination> | ||
<yk-pagination :total="50" simple /> | ||
</template> |
19 changes: 8 additions & 11 deletions
19
.../pagination/pagination-different-size.vue → ...c/examples/pagination/pagination-size.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 |
---|---|---|
@@ -1,26 +1,23 @@ | ||
<template> | ||
<div> | ||
<yk-space dir="vertical"> | ||
<yk-radio-group v-model="size" type="button"> | ||
<yk-radio value="s">s</yk-radio> | ||
<yk-radio value="m">m</yk-radio> | ||
<yk-radio value="l">l</yk-radio> | ||
<yk-radio value="xl">xl</yk-radio> | ||
</yk-radio-group> | ||
</div> | ||
<div style="margin: 20px 0"> | ||
|
||
<yk-pagination | ||
:total="2345" | ||
:size="size" | ||
show-jumper | ||
show-page-size | ||
show-total | ||
></yk-pagination> | ||
</div> | ||
<div> | ||
<yk-pagination :total="2345" :size="size" simple></yk-pagination> | ||
</div> | ||
:layouts="['total', 'prev', 'pager', 'next', 'pageSize', 'jumper']" | ||
/> | ||
<yk-pagination :total="2345" :size="size" simple /> | ||
</yk-space> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const size = ref<'s' | 'm' | 'l' | 'xl'>('l') | ||
</script> |
3 changes: 3 additions & 0 deletions
3
packages/yike-design-demo/src/examples/time-picker/basic-time-picker.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,3 @@ | ||
<template> | ||
<yk-time-picker></yk-time-picker> | ||
</template> |
9 changes: 9 additions & 0 deletions
9
packages/yike-design-demo/src/examples/time-picker/custom-step.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,9 @@ | ||
<template> | ||
<yk-time-picker | ||
:step="{ | ||
hour: 2, | ||
minute: 5, | ||
second: 10, | ||
}" | ||
/> | ||
</template> |
10 changes: 10 additions & 0 deletions
10
packages/yike-design-demo/src/examples/time-picker/default-value.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,10 @@ | ||
<template> | ||
<yk-time-picker | ||
:default-value="'23:11:06'" | ||
:style="{ marginBottom: '20px' }" | ||
></yk-time-picker> | ||
<yk-time-picker | ||
:default-value="['23:11:06', '12:12:10']" | ||
type="time-range" | ||
></yk-time-picker> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
packages/yike-design-demo/src/examples/time-picker/disabled-options.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,7 @@ | ||
<template> | ||
<yk-time-picker | ||
:disabled-hours="() => [1, 2, 4, 14]" | ||
:disabled-minutes="() => [1, 2, 3, 4, 14, 15, 16, 20, 50]" | ||
:disabled-seconds="() => [1, 2, 3, 4, 5, 6, 7, 10, 14, 60]" | ||
></yk-time-picker> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
packages/yike-design-demo/src/examples/time-picker/disabled-picker.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,3 @@ | ||
<template> | ||
<yk-time-picker disabled></yk-time-picker> | ||
</template> |
Oops, something went wrong.