Skip to content

Commit

Permalink
docs: 更新文档组件细节
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Jun 20, 2024
1 parent cc46f46 commit b9bd709
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/json/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
},
{
"title": "Up Load 文件上传",
"rule": "up-loadUpLoad文件上传upload",
"rule": "up-loadUpLoad文件上传uploadfile",
"url": "components/up-load"
},
{
Expand Down Expand Up @@ -361,4 +361,4 @@
"url": "components/confirm-box"
}
]
}
}
8 changes: 8 additions & 0 deletions docs/components/up-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
::: demo

<template #source>
{{ files1 }}
<f-up-load v-model:files="files1" />
</template>

```html
<template>
{{ files1 }}
<f-up-load v-model:files="files1" />
</template>

Expand All @@ -36,11 +38,13 @@
::: demo

<template #source>
{{ files2 }}
<f-up-load v-model:files="files2" multiple />
</template>

```html
<template>
{{ files2 }}
<f-up-load v-model:files="files2" multiple />
</template>

Expand All @@ -60,11 +64,13 @@
::: demo

<template #source>
{{ files3 }}
<f-up-load v-model:files="files3" multiple :max-length="4" />
</template>

```html
<template>
{{ files3 }}
<f-up-load v-model:files="files3" multiple :max-length="4" />
</template>

Expand All @@ -84,11 +90,13 @@
::: demo

<template #source>
{{ files4 }}
<f-up-load v-model:files="files4" multiple drag />
</template>

```html
<template>
{{ files4 }}
<f-up-load v-model:files="files4" multiple drag />
</template>

Expand Down
26 changes: 2 additions & 24 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
<script lang="ts" setup>
import { ref } from 'vue'
const value = ref('')
<script lang="ts" setup></script>

// setTimeout(() => {
// value.value = '1'
// setTimeout(() => {
// value.value = '3'
// setTimeout(() => {
// value.value = ''
// }, 1000)
// }, 1000)
// }, 1000)
</script>

<template>
<!-- <f-input v-model="value" clear></f-input> -->
<h1>{{ value || '无' }}</h1>
<f-select v-model="value" placeholder="请选择……" filter>
<f-option value="1">香蕉</f-option>
<f-option value="2">苹果</f-option>
<f-option value="3">哈密瓜</f-option>
<f-option value="4">樱桃</f-option>
</f-select>
</template>
<template></template>

0 comments on commit b9bd709

Please sign in to comment.