This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 396
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
1 parent
af15331
commit 6a4ec97
Showing
22 changed files
with
1,036 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,17 @@ set -e | |
|
||
npm run build | ||
|
||
cd docs/.vuepress/dist | ||
cd dist | ||
|
||
touch .nojekyll | ||
|
||
git init | ||
git config --local user.email "vben" | ||
git config --local user.name "[email protected]" | ||
git add -A | ||
git commit -m 'deploy' | ||
|
||
|
||
git push -f "https://github.com/anncwb/vue-vben-admin-doc.git" master:gh-pages | ||
|
||
cd - |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Basic 基础组件 | ||
|
||
一些比较基础的通用组件 | ||
|
||
## BasicTitle | ||
|
||
用于显示标题 | ||
|
||
### 使用 | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<BasicTitle helpMessage="提示1">标题</BasicTitle> | ||
<BasicTitle :helpMessage="['提示1','提示2']">标题</BasicTitle> | ||
</div> | ||
</template> | ||
<script> | ||
import { BasicTitle } from '/@/components/Baisc/index'; | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
components: { BasicTitle }, | ||
setup() { | ||
return {}; | ||
}, | ||
}); | ||
</script> | ||
``` | ||
|
||
### Props | ||
|
||
| 属性 | 类型 | 默认值 | 说明 | | ||
| -------- | ---------------------- | ----------------- | ------------------------------------------------------------ | | ||
| helpMessage | `string|string[]` | - | 标题右侧帮助按钮信息 | ||
| showSpan | `boolean` | `true` | 是否显示标题左侧蓝色色块 | ||
|
||
### Slots | ||
|
||
| 名称 | 说明 | | ||
| ------- | -------- | | ||
| default | 标题文本 | | ||
|
||
|
||
## BasicArrow | ||
|
||
箭头组件,带动画 | ||
|
||
### 使用 | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<BasicArrow :expand="false"/> | ||
</div> | ||
</template> | ||
<script> | ||
import { BaseArrow } from '/@/components/Baisc/index'; | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
components: { BasicArrow }, | ||
setup() { | ||
return {}; | ||
}, | ||
}); | ||
</script> | ||
``` | ||
|
||
### Props | ||
|
||
| 属性 | 类型 | 默认值 | 说明 | | ||
| -------- | ---------------------- | ----------------- | ------------------------------------------------------------ | | ||
| expand | `boolean` | `true` | 箭头展开状态 | ||
|
||
## BasicHelp | ||
|
||
帮助按钮组件 | ||
|
||
### 使用 | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<BaseHelp text="['提示1', '提示2']" /> | ||
<BaseHelp text="提示" /> | ||
</div> | ||
</template> | ||
<script> | ||
import { BasicHelp } from '/@/components/Baisc/index'; | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
components: { BasicHelp }, | ||
setup() { | ||
return {}; | ||
}, | ||
}); | ||
</script> | ||
``` | ||
|
||
### Props | ||
| 属性 | 类型 | 默认值 | 可选值 | 说明 | | ||
| --- | --- | --- | --- | --- | | ||
| fontSize | `string` | `14px` | - | 字体大小 | | ||
| color | `string` | #fff | - | 颜色 | | ||
| text | `string|string[]` | - | - | 文本列表 | | ||
| showIndex | `boolean` | true | - | 是否显示序号,在 text 为 string[]情况下生效 | | ||
| maxWidth | `string` | `600px` | - | 最大宽度 | | ||
| icon | `string` | `info-circle` | - | 图标 | |
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,42 @@ | ||
# ClickOutSide 组件 | ||
|
||
用于监听包裹的元素点击外部触发事件 | ||
|
||
## 使用 | ||
|
||
```vue | ||
<template> | ||
<div> | ||
<ClickOutSide @clickOutside="() => (showRef.value = false)"> | ||
<div class="click-out-side-demo-content" @click="() => (showRef.value = true)"> | ||
{{showRef ? '鼠标点击那部(点击边框外可以恢复)' : '点击该区域状态(初始状态)'}} | ||
</div> | ||
</ClickOutSide> | ||
</div> | ||
</template> | ||
<script> | ||
import { defineComponent, ref } from 'vue'; | ||
import { ClickOutSide } from '@/components/ClickOutSide/index.vue'; | ||
export default defineComponent({ | ||
components:{ClickOutSide}, | ||
setup() { | ||
const showRef = ref(false); | ||
return { | ||
showRef | ||
}; | ||
}, | ||
}); | ||
</script> | ||
``` | ||
|
||
## events | ||
|
||
| 事件 | 回调参数 | 说明 | | ||
| ------------ | ---------- | ------------------------ | | ||
| clickOutside | `Function` | 点击包裹元素外部区域触发 | | ||
|
||
## slots | ||
|
||
| 名称 | 说明 | | ||
| ------- | ------------ | | ||
| default | 被包裹的元素 | |
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,25 @@ | ||
# CountTo 数字动画组件 | ||
|
||
该组件只是对于 [vue-countTo](https://github.com/PanJiaChen/vue-countTo) 进行调整,改造成适配vue3语法的组件。 | ||
|
||
```vue | ||
<template> | ||
<div class="p-4 count-to-demo"> | ||
<CountTo prefix="$" :startVal="1" :endVal="200000" :duration="8000" /> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { CountTo } from '/@/components/CountTo/index'; | ||
export default defineComponent({ | ||
components: { | ||
CountTo, | ||
}, | ||
setup() { | ||
return {}; | ||
}, | ||
}); | ||
</script> | ||
``` | ||
|
||
相关**Props**及**Methods**请查看 [vue-countTo](https://github.com/PanJiaChen/vue-countTo) |
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
Oops, something went wrong.