Skip to content

Commit

Permalink
[docs] 细节样式微调
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 committed Aug 2, 2023
1 parent 0e6f4b6 commit 2ef4d59
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 21 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"rollup": "^3.27.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-esbuild": "^5.0.0",
"sass": "^1.64.2",
"simple-git-hooks": "^2.9.0",
"tsx": "^3.12.7",
"type-fest": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/.vitepress/components/DemoCard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="rounded-lg bg-neutral-1 dark:bg-black/20! p-6">
<div class="rounded-lg bg-neutral-1 dark:bg-black/20! p-6 my-4">
<slot />
</div>
</template>
6 changes: 3 additions & 3 deletions packages/mixte/src/random/demo/randomNatural.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div flex gap-2 items-center>
<div grid="~ cols-[auto_1fr] items-center gap-1">
min: <el-input-number v-model="min" class="w-30!" controls-position="right" :min="0" />
max: <el-input-number v-model="max" class="w-30!" controls-position="right" :min="min" />
min: <el-input-number v-model="min" class="w-32!" controls-position="right" :min="0" />
max: <el-input-number v-model="max" class="w-32!" controls-position="right" :min="min" />
</div>
<button m-btn @click="value = randomNatural(min, max)">点击随机</button>
<el-input v-model="value" class="w-30!" readonly />
<el-input v-model="value" class="w-36!" readonly />
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion packages/mixte/src/random/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

在传入的两个自然数之间随机生成一个自然数

## 演示
### 演示

<DemoCard>
<RandomNatural />
Expand Down
2 changes: 1 addition & 1 deletion packages/unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
'm-box-b': 'flex-(~ items-center justify-center) rounded b-(1 solid neutral-3)',

// 按钮
'm-btn': 'h-9 m-box bg-teal-5 c-white rounded-1 p-3 disabled:cursor-not-allowed',
'm-btn': 'h-9 flex-none m-box bg-teal-5 c-white rounded-1 p-3 disabled:cursor-not-allowed',

// 输入框
'm-input': 'lh-none b-(1 solid neutral-3 rounded-1) p-(2 x-3)',
Expand Down
48 changes: 33 additions & 15 deletions pnpm-lock.yaml

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

0 comments on commit 2ef4d59

Please sign in to comment.