configData.js 784 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. export const tableColumns =
  2. [
  3. {
  4. title: '序号',
  5. dataIndex: 'index',
  6. key: 'index',
  7. width: 75,
  8. customRender: ({ text, record, index }) => `${index + 1}`,
  9. },
  10. {
  11. title: '设备名称',
  12. key: 'printerName',
  13. dataIndex: 'printerName',
  14. width: 150,
  15. },
  16. {
  17. title: '设备类型',
  18. key: 'printerType',
  19. dataIndex: 'printerType',
  20. width: 150,
  21. },
  22. {
  23. title: '是否支持Rfid',
  24. key: 'supportRfid',
  25. dataIndex: 'supportRfid',
  26. width: 150,
  27. },
  28. {
  29. title: '操作',
  30. key: 'operation',
  31. dataIndex: 'operation',
  32. width: 150,
  33. },
  34. ].map(item => ({
  35. ...item,
  36. align: 'center',
  37. resizable: true,
  38. mainWidth: 75,
  39. maxWidth: 400,
  40. }));