gen.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. export const tableOption = {
  18. border: true,
  19. index: true,
  20. stripe: true,
  21. menuAlign: 'center',
  22. align: 'center',
  23. addBtn: false,
  24. editBtn: false,
  25. delBtn: false,
  26. column: [{
  27. label: '表名称',
  28. prop: 'tableName',
  29. align: 'center',
  30. search: true
  31. }, {
  32. label: '表注释',
  33. prop: 'tableComment',
  34. align: 'center'
  35. }, {
  36. label: '索引',
  37. prop: 'engine',
  38. align: 'center'
  39. }, {
  40. type: 'datetime',
  41. valueFormat: 'timestamp',
  42. format: 'yyyy-MM-dd hh:mm:ss',
  43. label: '创建时间',
  44. prop: 'createTime',
  45. align: 'center'
  46. }]
  47. }
  48. export const formOption = {
  49. submitText: '生成',
  50. column: [
  51. {
  52. label: '表名称',
  53. prop: 'tableName',
  54. disabled: true
  55. }, {
  56. label: '包名',
  57. prop: 'packageName',
  58. placeholder: '可为空,加载系统默认配置'
  59. }, {
  60. label: '作者',
  61. prop: 'author',
  62. placeholder: '可为空,加载系统默认配置'
  63. }, {
  64. label: '模块',
  65. prop: 'moduleName',
  66. placeholder: '可为空,加载系统默认配置'
  67. }, {
  68. label: '表前缀',
  69. prop: 'tablePrefix',
  70. placeholder: '可为空,加载系统默认配置'
  71. }, {
  72. label: '注释',
  73. prop: 'comments',
  74. placeholder: '可为空,加载表备注'
  75. }
  76. ]
  77. }