操作按钮隐藏

找到如下节点,在 optShow 中设置表格上方的按钮显与隐

  1. cruds() {
  2. return [
  3. CRUD({ title: '字典详情', url: 'api/dictDetail', query: { dictName: '' }, sort: ['dictSort,asc', 'id,desc'],
  4. crudMethod: { ...crudDictDetail },
  5. optShow: {
  6. add: true,
  7. edit: true,
  8. del: true,
  9. reset: false
  10. },
  11. queryOnPresenterCreated: false
  12. })
  13. ]
  14. }