Skip to content

Commit

Permalink
[docs] 完善文档 Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 committed Aug 4, 2023
1 parent c9be181 commit c97781c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/mixte/src/random/demo/randomLowercaseLetter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template>
<div flex flex-col gap-2 items-center>
<el-input v-model="value" class="w-36! [&_input]-text-center" readonly />
<button m-btn @click="value = randomLowercaseLetter()">点击随机</button>
</div>
</template>

<script setup>
import { randomLowercaseLetter } from 'mixte';
const value = ref();
</script>
12 changes: 12 additions & 0 deletions packages/mixte/src/random/demo/randomUppercaseLetter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template>
<div flex flex-col gap-2 items-center>
<el-input v-model="value" class="w-36! [&_input]-text-center" readonly />
<button m-btn @click="value = randomUppercaseLetter()">点击随机</button>
</div>
</template>

<script setup>
import { randomUppercaseLetter } from 'mixte';
const value = ref();
</script>

0 comments on commit c97781c

Please sign in to comment.