template.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "id": "",
  3. "name": "",
  4. "type": "AssociatedDocument",
  5. "mode": "default", //script table or text
  6. "select": "multi",
  7. "buttonText": "选择关联文档",
  8. "textStyle": "<div style=\"margin-top: 3px; margin-left: 4px; width: 21px; height: 24px; margin-right: 5px; background: url('../x_component_process_Xform/$Form/default/icon/doc_work.png') center center / 21px 24px no-repeat; float: left;\">\n</div>\n<div style=\"float: left;\">{targetTitle}</div>\n<div data-o2-action='delete' style=\"margin-top: 7px; margin-left: 5px; width: 16px; height: 16px; margin-right: 5px; background: url('../x_component_process_Xform/$Form/default/icon/delete1.png') center center / 16px 16px no-repeat; float: left;\">\n</div>",
  9. "displayScript": {
  10. "html": "return '<div style=\"margin-top: 3px; margin-left: 4px; width: 21px; height: 24px; margin-right: 5px; background: url(\\'../x_component_process_Xform/$Form/default/icon/doc_work.png\\') center center / 21px 24px no-repeat; float: left;\">'+\n'</div>'+\n'<div style=\"float: left;\">'+this.line.targetTitle+'</div>'+\n'<div data-o2-action=\"delete\" style=\"margin-top: 7px; margin-left: 5px; width: 16px; height: 16px; margin-right: 5px; background: url(\\'../x_component_process_Xform/$Form/default/icon/delete1.png\\') center center / 16px 16px no-repeat; float: left;\">'+\n'</div>'",
  11. "code": "return '<div style=\"margin-top: 3px; margin-left: 4px; width: 21px; height: 24px; margin-right: 5px; background: url(\\'../x_component_process_Xform/$Form/default/icon/doc_work.png\\') center center / 21px 24px no-repeat; float: left;\">'+\n'</div>'+\n'<div style=\"float: left;\">'+this.line.targetTitle+'</div>'+\n'<div data-o2-action=\"delete\" style=\"margin-top: 7px; margin-left: 5px; width: 16px; height: 16px; margin-right: 5px; background: url(\\'../x_component_process_Xform/$Form/default/icon/delete1.png\\') center center / 16px 16px no-repeat; float: left;\">'+\n'</div>'"
  12. },
  13. "events": {
  14. "queryLoad": {
  15. "code": "",
  16. "html": ""
  17. },
  18. "postLoad": {
  19. "code": "",
  20. "html": ""
  21. },
  22. "load": {
  23. "code": "",
  24. "html": ""
  25. },
  26. "beforeLoadView": {
  27. "code": "",
  28. "html": ""
  29. },
  30. "loadView" : {
  31. "code": "",
  32. "html": ""
  33. },
  34. "select": {
  35. "code": "",
  36. "html": ""
  37. },
  38. "unselect": {
  39. "code": "",
  40. "html": ""
  41. },
  42. // "openDocument": {
  43. // "code": "",
  44. // "html": ""
  45. // },
  46. "selectResult": {
  47. "code": "",
  48. "html": ""
  49. },
  50. "afterSelectResult": {
  51. "code": "",
  52. "html": ""
  53. },
  54. "click": {
  55. "code": "",
  56. "html": ""
  57. },
  58. "dblclick": {
  59. "code": "",
  60. "html": ""
  61. },
  62. "keydown": {
  63. "code": "",
  64. "html": ""
  65. },
  66. "keypress": {
  67. "code": "",
  68. "html": ""
  69. },
  70. "keyup": {
  71. "code": "",
  72. "html": ""
  73. },
  74. "mousedown": {
  75. "code": "",
  76. "html": ""
  77. },
  78. "mousemove": {
  79. "code": "",
  80. "html": ""
  81. },
  82. "mouseout": {
  83. "code": "",
  84. "html": ""
  85. },
  86. "mouseover": {
  87. "code": "",
  88. "html": ""
  89. },
  90. "mouseup": {
  91. "code": "",
  92. "html": ""
  93. },
  94. "focus": {
  95. "code": "",
  96. "html": ""
  97. },
  98. "blur": {
  99. "code": "",
  100. "html": ""
  101. }
  102. },
  103. "properties": {},
  104. "class": "",
  105. "styles": {},
  106. "container": ""
  107. }