area.data.ts 446 B

1234567891011121314151617181920212223
  1. import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
  2. // CrudSchema
  3. const crudSchemas = reactive<VxeCrudSchema>({
  4. primaryKey: 'id',
  5. primaryType: null,
  6. action: false,
  7. columns: [
  8. {
  9. title: '编号',
  10. field: 'id',
  11. table: {
  12. treeNode: true,
  13. align: 'left'
  14. }
  15. },
  16. {
  17. title: '名字',
  18. field: 'name'
  19. }
  20. ]
  21. })
  22. export const { allSchemas } = useVxeCrudSchemas(crudSchemas)