签入版本
This commit is contained in:
@@ -51,20 +51,25 @@
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<BasicTable @register="registerTable" />
|
||||
<BasicTable
|
||||
:columns="columns"
|
||||
:request="loadDataTable"
|
||||
:row-key="(row) => row.id"
|
||||
ref="basicTableRef"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { BasicTable, useTable } from '@/components/Table';
|
||||
import { BasicTable } from '@/components/Table';
|
||||
import { getExamplePage } from '@/api/tool/example';
|
||||
|
||||
const [registerTable] = useTable({
|
||||
api: getExamplePage,
|
||||
columns: [
|
||||
{ title: 'ID', field: 'id', width: 80 },
|
||||
{ title: '名称', field: 'name' },
|
||||
{ title: '状态', field: 'statusText', width: 100 },
|
||||
],
|
||||
});
|
||||
const columns = [
|
||||
{ title: 'ID', key: 'id', width: 80 },
|
||||
{ title: '名称', key: 'name' },
|
||||
{ title: '状态', key: 'statusText', width: 100 },
|
||||
];
|
||||
|
||||
const loadDataTable = async (params) => await getExamplePage({ ...params });
|
||||
</script>
|
||||
```
|
||||
|
||||
@@ -80,8 +85,8 @@ import { BasicForm, useForm } from '@/components/Form';
|
||||
|
||||
const [registerForm] = useForm({
|
||||
schemas: [
|
||||
{ field: 'name', label: '名称', component: 'Input', required: true },
|
||||
{ field: 'status', label: '状态', component: 'Select', componentProps: { options: [...] } },
|
||||
{ field: 'name', label: '名称', component: 'NInput', required: true },
|
||||
{ field: 'status', label: '状态', component: 'NSelect', componentProps: { options: [...] } },
|
||||
],
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
```text
|
||||
document/
|
||||
├── mysql/rxthinkcmf.thinkphp6.elevue.sql # MySQL 版本
|
||||
├── postgresql/rxthinkcmf.thinkphp6.elevue.sql # PostgreSQL 版本
|
||||
├── sqlserver/rxthinkcmf.thinkphp6.elevue.sql # SQL Server 版本
|
||||
├── oracle/rxthinkcmf.thinkphp6.elevue.sql # Oracle 版本
|
||||
└── sqlite/rxthinkcmf.thinkphp6.elevue.sql # SQLite 版本
|
||||
├── mysql/rxthinkcmf.thinkphp6.naivevue.sql # MySQL 版本
|
||||
├── postgresql/rxthinkcmf.thinkphp6.naivevue.sql # PostgreSQL 版本
|
||||
├── sqlserver/rxthinkcmf.thinkphp6.naivevue.sql # SQL Server 版本
|
||||
├── oracle/rxthinkcmf.thinkphp6.naivevue.sql # Oracle 版本
|
||||
└── sqlite/rxthinkcmf.thinkphp6.naivevue.sql # SQLite 版本
|
||||
```
|
||||
|
||||
各脚本已针对对应数据库的 SQL 语法做了适配,可直接导入使用。
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| TypeScript | - | JavaScript 超集,类型安全 |
|
||||
| Vite | - | 前端构建工具 |
|
||||
| Pinia | - | Vue 3 官方状态管理库 |
|
||||
| ElementPlus | - | Vue 3 UI 组件库 |
|
||||
| NaiveUI | - | Vue 3 UI 组件库 |
|
||||
| Axios | - | HTTP 请求库 |
|
||||
| TailwindCSS | - | 原子化 CSS 框架 |
|
||||
| TinyMce | - | 富文本编辑器 |
|
||||
|
||||
Reference in New Issue
Block a user