Defaults.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. const labelWidth = 80
  2. export const windows = {
  3. modal: true,
  4. width: 900,
  5. height: 600,
  6. maximizable: true,
  7. constrain: true,
  8. shadow: false,
  9. // manageHeight: true,
  10. // draggable: true,
  11. // scrollable: true,
  12. }
  13. export const date = {
  14. labelAlign: 'right',
  15. labelWidth,
  16. }
  17. export const combo = {
  18. labelAlign: 'right',
  19. labelWidth,
  20. valueField: 'id',
  21. displayField: 'text',
  22. autoLoad: true,
  23. mode: 'local',
  24. forceSelection: true,
  25. triggerAction: 'all',
  26. enableKeyEvents: true,
  27. }
  28. export const comboGrid = {
  29. selectOnTab: true,
  30. pickerHeight: 500,
  31. pickerWidth: 850,
  32. editEnable: null,
  33. }
  34. export const comboGridPicker = {
  35. xtype: 'yvgrid',
  36. layout: 'fit',
  37. selModel: {
  38. selType: 'rowmodel',
  39. mode: 'SINGLE'
  40. },
  41. }
  42. export const comboGridMulti = {
  43. selectOnTab: true,
  44. pickerHeight: 500,
  45. pickerWidth: 850,
  46. editEnable: null,
  47. splitChar: ',',
  48. displayField: 'text',
  49. valueField: 'id',
  50. autoLoad: true,
  51. }
  52. export const comboGridMultiPicker = {
  53. selType: 'checkboxmodel',
  54. selModel: {
  55. type: 'checkboxmodel',
  56. checkOnly: false
  57. },
  58. }
  59. export const numberfield = {
  60. labelAlign: 'right',
  61. labelWidth,
  62. }
  63. export const checkbox = {
  64. labelAlign: 'right',
  65. labelWidth,
  66. checkedValue: true,
  67. uncheckedValue: false,
  68. }
  69. export const checkboxgroup = {
  70. labelAlign: 'right',
  71. labelWidth,
  72. }
  73. export const radio = {
  74. labelAlign: 'right',
  75. labelWidth,
  76. }
  77. export const radiogroup = {
  78. labelAlign: 'right',
  79. labelWidth,
  80. simpleValue: true,
  81. layout: 'hbox',
  82. defaults: {
  83. xtype: 'radio',
  84. name: 'type',
  85. margin: '0 15 0 0'
  86. },
  87. }
  88. export const form = {
  89. margin: '5 5 0 0',
  90. border: false,
  91. defaults: {
  92. margin: '0 0 5 0',
  93. border: false,
  94. },
  95. }
  96. export const column = {
  97. filter: {type: 'string'},
  98. }
  99. export const grid = {
  100. border: true,
  101. columnLines: true,
  102. rowLines: true,
  103. plugins: {
  104. cellediting: {
  105. clicksToEdit: 1
  106. },
  107. gridfilters: true
  108. },
  109. multiColumnSort: true,
  110. viewConfig: {
  111. enableTextSelection: true,
  112. sortOnClick: false,
  113. },
  114. selModel: {
  115. type: 'checkboxmodel',
  116. checkOnly: false
  117. },
  118. pagination: true,
  119. pageSize: 50,
  120. pageSizeOption: ['20', '50', '100', '200', '300'],
  121. hideFootbar: false,
  122. hideRefresh: false,
  123. hideExport: false,
  124. hideAutoSize: false,
  125. hideClearFilter: false,
  126. hideSaveGridUIConfig: false,
  127. hideClearGridUIConfig: false,
  128. autoLoad: true,
  129. remoteSort: false,
  130. remoteFilter: false,
  131. enableLocking: true,
  132. enableColumnMove: true,
  133. enableColumnHide: true,
  134. enableColumnResize: true,
  135. hidden: false,
  136. disabled: false,
  137. exportExcelPageSize: 100,
  138. exportExcelCurrentPage: 1,
  139. exportExcelTotal: 0,
  140. }
  141. export const fieldContainer = {
  142. labelAlign: 'right',
  143. labelWidth,
  144. layout: 'hbox',
  145. defaults: {
  146. flex: 1,
  147. }
  148. }
  149. export const tree = {
  150. autoLoad: true,
  151. hideFilter: false,
  152. hideToolbar: false,
  153. hideRefresh: false,
  154. hideExpand: false,
  155. hideCollapse: false,
  156. }
  157. export const search = {
  158. labelAlign: 'right',
  159. labelWidth,
  160. }
  161. export const text = {
  162. labelAlign: 'right',
  163. labelWidth,
  164. msgTarget: 'qtip',
  165. }
  166. export const toolbar = {
  167. overflowHandler: 'menu',
  168. }
  169. export const tbfill = {}
  170. export const tbseparator = {}
  171. export const button = {}
  172. export const fieldSet = {
  173. margin: '5 5 0 0',
  174. border: false,
  175. defaults: {
  176. margin: '0 0 5 0',
  177. border: false,
  178. },
  179. }
  180. export const panel = {}
  181. export const splitter = {}
  182. export const maintab = {}
  183. export const rows = {}
  184. export const cols = {
  185. defaults: {
  186. flex: 1
  187. },
  188. }