buttons.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. {
  75. label: '导出所有',
  76. key: 'exportAll'
  77. },
  78. {
  79. label: '导出选中',
  80. key: 'exportSelected'
  81. },
  82. {
  83. label: '导出当前页',
  84. key: 'exportCurPage'
  85. }
  86. ]
  87. },
  88. close: {
  89. label: '关闭',
  90. type: 'danger',
  91. icon: 'ibps-icon-close',
  92. scope: ['edit', 'detail']
  93. },
  94. save: {
  95. label: '保存',
  96. type: 'primary',
  97. icon: 'ibps-icon-save',
  98. scope: ['edit']
  99. },
  100. print: {
  101. label: '打印',
  102. type: 'primary',
  103. icon: 'ibps-icon-print',
  104. scope: ['toolbar', 'manage', 'edit', 'detail']
  105. },
  106. custom: {
  107. label: '自定义',
  108. type: 'primary',
  109. icon: 'ibps-icon-setting',
  110. scope: ['toolbar', 'manage', 'edit', 'detail', 'dialog']
  111. },
  112. confirm: {
  113. label: '确定',
  114. type: 'primary',
  115. icon: 'ibps-icon-ok',
  116. scope: ['dialog']
  117. },
  118. clean: {
  119. label: '清空',
  120. type: 'info',
  121. icon: 'ibps-icon-clean',
  122. scope: ['dialog']
  123. },
  124. cleanSelected: {
  125. label: '清空选择',
  126. type: 'warning',
  127. icon: 'ibps-icon-times-circle-o',
  128. scope: ['dialog']
  129. },
  130. cancel: {
  131. label: '取消',
  132. type: 'danger',
  133. icon: 'ibps-icon-cancel',
  134. scope: ['dialog']
  135. },
  136. refresh: {
  137. label: '刷新',
  138. type: 'primary',
  139. icon: 'ibps-icon-refresh',
  140. scope: ['toolbar']
  141. },
  142. expand: {
  143. label: '展开',
  144. type: 'primary',
  145. icon: 'ibps-icon-expand',
  146. scope: ['toolbar']
  147. },
  148. compress: {
  149. label: '收缩',
  150. type: 'primary',
  151. icon: 'ibps-icon-compress',
  152. scope: ['toolbar']
  153. },
  154. more: {
  155. label: '更多',
  156. type: 'primary',
  157. icon: 'ibps-icon-list-alt',
  158. scope: ['toolbar']
  159. },
  160. collapse: {
  161. label: '收缩',
  162. icon: 'ibps-icon-angle-up',
  163. scope: ['toolbar']
  164. },
  165. expansion: {
  166. label: '展开',
  167. icon: 'ibps-icon-angle-down',
  168. scope: ['toolbar']
  169. },
  170. fullscreen: {
  171. label: '全屏',
  172. icon: 'ibps-icon-window-maximize',
  173. scope: ['toolbar']
  174. },
  175. fullscreenOn: {
  176. label: '小屏',
  177. icon: 'ibps-icon-window-restore',
  178. scope: ['toolbar']
  179. }
  180. }