feat: page component (#4087)
* feat: page component * chore: basic page * chore: add demos * chore: add header-sticky support * chore: update web-ele * chore: rename slot name --------- Co-authored-by: Vben <ann.vben@gmail.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
|
||||
import { NDataTable } from 'naive-ui';
|
||||
|
||||
const columns = ref([
|
||||
@@ -25,7 +27,12 @@ const data = [
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NDataTable :columns="columns" :data="data" />
|
||||
<Page title="NDataTable">
|
||||
<template #header>
|
||||
表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。
|
||||
</template>
|
||||
<NDataTable :columns="columns" :data="data" />
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user