data.code-snippets 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "data快速生成模板": {
  3. "prefix": "data_quick",
  4. "body": [
  5. "import { BasicColumn, FormSchema } from '/@/components/Table';",
  6. "import { radioBoolean } from '/@/utils/filters';\n",
  7. "export const columns: BasicColumn[] = [",
  8. "\t{",
  9. "\t\ttitle: '$1',",
  10. "\t\tdataIndex: '$2',",
  11. "\t\twidth: 150,",
  12. "\t}",
  13. "]\n",
  14. "export const searchFormSchema: FormSchema[] = [",
  15. "\t{",
  16. "\t\tfield: '$3',",
  17. "\t\tlabel: '$4',",
  18. "\t\tcomponent: 'Input',",
  19. "\t\tcomponentProps: {",
  20. "\t\t\tplaceholder: '请输入',",
  21. "\t\t},",
  22. "\t}",
  23. "]\n",
  24. "export const dataFormSchema: FormSchema[] = [",
  25. "\t{",
  26. "\t\tfield: ' ',",
  27. "\t\tlabel: ' ',",
  28. "\t\tcomponent: 'Input',",
  29. "\t\trequired: true,",
  30. "\t\tcomponentProps: {",
  31. "\t\t\tplaceholder: '请输入',",
  32. "\t\t},",
  33. "\t}",
  34. "]\n",
  35. ],
  36. "description": "data_quick"
  37. }
  38. }