data.tsx 925 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { FormSchema } from '/@/components/Form/index';
  2. export const searchList = (() => {
  3. const result: any[] = [];
  4. for (let i = 0; i < 6; i++) {
  5. result.push({
  6. id: i,
  7. title: 'Vben Admin',
  8. description: ['Vben', '设计语言', 'Typescript'],
  9. content: '基于Vue Next, TypeScript, Ant Design实现的一套完整的企业级后台管理系统。',
  10. time: '2020-11-14 11:20',
  11. });
  12. }
  13. return result;
  14. })();
  15. export const actions: any[] = [
  16. { icon: 'clarity:star-line', text: '156', color: '#018ffb' },
  17. { icon: 'bx:bxs-like', text: '156', color: '#459ae8' },
  18. { icon: 'bx:bxs-message-dots', text: '2', color: '#42d27d' },
  19. ];
  20. export const schemas: FormSchema[] = [
  21. {
  22. field: 'field1',
  23. component: 'InputSearch',
  24. label: '项目名',
  25. colProps: {
  26. span: 8,
  27. },
  28. componentProps: {
  29. onChange: (e: any) => {
  30. console.log(e);
  31. },
  32. },
  33. },
  34. ];