buttons.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /**
  2. * 按钮
  3. */
  4. export default {
  5. 'search': {
  6. label: '查询',
  7. type: 'primary',
  8. icon: 'ibps-icon-search',
  9. scope: ['toolbar', 'search']
  10. },
  11. // 'delete': {
  12. // label: '删除',
  13. // type: 'danger',
  14. // icon: 'ibps-icon-delete',
  15. // scope: ['toolbar', 'delete']
  16. // },
  17. 'resetSearch': {
  18. label: '刷新',
  19. icon: 'ibps-icon-undo',
  20. scope: ['toolbar', 'search']
  21. },
  22. 'moreSearch': {
  23. label: '更多',
  24. type: 'primary',
  25. icon: 'ibps-icon-ellipsis-h',
  26. scope: ['toolbar', 'search']
  27. },
  28. 'add': {
  29. label: '添加',
  30. type: 'success',
  31. icon: 'ibps-icon-add',
  32. scope: ['toolbar', 'contextmenu'],
  33. contextmenu: 'all'
  34. },
  35. 'remove': {
  36. label: '删除',
  37. type: 'danger',
  38. icon: 'ibps-icon-remove',
  39. scope: ['toolbar', 'manage'],
  40. contextmenu: 'sub'
  41. },
  42. 'edit': {
  43. label: '编辑',
  44. type: 'primary',
  45. icon: 'ibps-icon-edit',
  46. scope: ['toolbar', 'manage'],
  47. contextmenu: 'sub'
  48. },
  49. 'detail': {
  50. label: '明细',
  51. type: 'primary',
  52. icon: 'ibps-icon-detail',
  53. scope: ['toolbar', 'manage'],
  54. contextmenu: 'sub'
  55. },
  56. 'batchModify': {
  57. label: '批量修改',
  58. type: 'primary',
  59. icon: 'ibps-icon-check-square-o',
  60. scope: ['toolbar']
  61. },
  62. 'import': {
  63. label: '导入',
  64. type: 'primary',
  65. icon: 'ibps-icon-import',
  66. scope: ['toolbar']
  67. },
  68. 'export': {
  69. label: '导出',
  70. type: 'primary',
  71. icon: 'ibps-icon-export',
  72. scope: ['toolbar'],
  73. dropdown: [{
  74. label: '导出所有',
  75. key: 'exportAll'
  76. }, {
  77. label: '导出选中',
  78. key: 'exportSelected'
  79. }, {
  80. label: '导出当前页',
  81. key: 'exportCurPage'
  82. }]
  83. },
  84. 'close': {
  85. label: '关闭',
  86. type: 'danger',
  87. icon: 'ibps-icon-close',
  88. scope: ['edit', 'detail']
  89. },
  90. 'save': {
  91. label: '保存',
  92. type: 'primary',
  93. icon: 'ibps-icon-save',
  94. scope: ['edit']
  95. },
  96. 'print': {
  97. label: '打印',
  98. type: 'primary',
  99. icon: 'ibps-icon-print',
  100. scope: ['toolbar', 'manage', 'edit', 'detail']
  101. },
  102. 'custom': {
  103. label: '自定义',
  104. type: 'primary',
  105. icon: 'ibps-icon-setting',
  106. scope: ['toolbar', 'manage', 'edit', 'detail', 'dialog']
  107. },
  108. 'confirm': {
  109. label: '确定',
  110. type: 'primary',
  111. icon: 'ibps-icon-ok',
  112. scope: ['dialog']
  113. },
  114. 'clean': {
  115. label: '清空',
  116. type: 'info',
  117. icon: 'ibps-icon-clean',
  118. scope: ['dialog']
  119. },
  120. 'cleanSelected': {
  121. label: '清空选择',
  122. type: 'warning',
  123. icon: 'ibps-icon-times-circle-o',
  124. scope: ['dialog']
  125. },
  126. 'cancel': {
  127. label: '取消',
  128. icon: 'ibps-icon-cancel',
  129. scope: ['dialog']
  130. },
  131. 'refresh': {
  132. label: '刷新',
  133. type: 'primary',
  134. icon: 'ibps-icon-refresh',
  135. scope: ['toolbar']
  136. },
  137. 'expand': {
  138. label: '展开',
  139. type: 'primary',
  140. icon: 'ibps-icon-expand',
  141. scope: ['toolbar']
  142. },
  143. 'compress': {
  144. label: '收缩',
  145. type: 'primary',
  146. icon: 'ibps-icon-compress',
  147. scope: ['toolbar']
  148. },
  149. 'more': {
  150. label: '更多',
  151. type: 'primary',
  152. icon: 'ibps-icon-list-alt',
  153. scope: ['toolbar']
  154. },
  155. 'collapse': {
  156. label: '收缩',
  157. icon: 'ibps-icon-angle-up',
  158. scope: ['toolbar']
  159. },
  160. 'expansion': {
  161. label: '展开',
  162. icon: 'ibps-icon-angle-down',
  163. scope: ['toolbar']
  164. },
  165. 'fullscreen': {
  166. label: '全屏',
  167. icon: 'ibps-icon-window-maximize',
  168. scope: ['toolbar']
  169. },
  170. 'fullscreenOn': {
  171. label: '小屏',
  172. icon: 'ibps-icon-window-restore',
  173. scope: ['toolbar']
  174. }
  175. }