[新增] empty 组件
This commit is contained in:
39
docs/docs/zh-CN/components/empty.md
Normal file
39
docs/docs/zh-CN/components/empty.md
Normal file
@@ -0,0 +1,39 @@
|
||||
::: demo
|
||||
|
||||
<template>
|
||||
<lay-empty></lay-empty>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
:::
|
||||
|
||||
::: demo
|
||||
|
||||
<template>
|
||||
<lay-empty description="刷新试试"></lay-empty>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
:::
|
||||
@@ -83,6 +83,7 @@ export default {
|
||||
{ id: 22, title: '表格',subTitle:"table" ,path: '/zh-CN/components/table' },
|
||||
{ id: 23, title: '头像',subTitle:"avatar" ,path: '/zh-CN/components/avatar' },
|
||||
{ id: 24, title: '字段',subTitle:"field" ,path: '/zh-CN/components/field' },
|
||||
{ id: 25, title: '空',subTitle:"empty" ,path: '/zh-CN/components/empty' },
|
||||
]
|
||||
|
||||
const selected = ref(1)
|
||||
|
||||
@@ -126,6 +126,11 @@ const zhCN = [
|
||||
path: '/zh-CN/components/field',
|
||||
component: () => import('../../docs/zh-CN/components/field.md'),
|
||||
meta: { title: '字段' },
|
||||
},
|
||||
{
|
||||
path: '/zh-CN/components/empty',
|
||||
component: () => import('../../docs/zh-CN/components/empty.md'),
|
||||
meta: { title: '空' },
|
||||
}
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user