protable组件抽取,并绘制demo界面

This commit is contained in:
2024-10-15 15:37:50 +08:00
parent 9957857be0
commit 7c8d5644f7
18 changed files with 628 additions and 156 deletions

View File

@@ -0,0 +1,48 @@
/**
* 模拟字典静态数据,有后端接口后,需要删除 todo...
*/
import { Dict } from '@/api/interface'
const dictData: Dict[] = [
{
id: "1",
code: 'sex',
label: '性别',
children: [
{
id: "1",
label: '男',
code: 1,
},
{
id: "2",
label: '女',
code: 2,
},
{
id: "3",
label: '未知',
code: 3,
},
],
},
{
id: "2",
code: 'status',
label: '状态',
children: [
{
id: "123456789",
label: '启用',
code: 1,
},
{
id: "987654321",
label: '禁用',
code: 0,
},
],
},
]
export default dictData