eoss-ui 0.4.24 → 0.4.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -286,6 +286,7 @@ export default {
286
286
  type: String,
287
287
  default: ''
288
288
  },
289
+ param: Object,
289
290
  header: {
290
291
  type: Boolean,
291
292
  default: true
@@ -665,7 +666,7 @@ export default {
665
666
  }
666
667
  });
667
668
  },
668
- // 将chalk写入到页面中
669
+ // 将chalk写入到页面中
669
670
  handleColorToPage(globalThalk) {
670
671
  const thalk = document.getElementById('chalk-style');
671
672
  if (!thalk) {
@@ -917,7 +918,7 @@ export default {
917
918
  //获取应用导航菜单
918
919
  getMenu() {
919
920
  util
920
- .ajax({ url: this.action })
921
+ .ajax({ url: this.action, params: this.param ? this.param : {} })
921
922
  .then((res) => {
922
923
  if (res.rCode === 0) {
923
924
  this.menus = JSON.parse(JSON.stringify(res.results));
@@ -70,7 +70,7 @@ export default {
70
70
  } else {
71
71
  this.$nextTick(() => {
72
72
  let w = 0;
73
- Array.from(this.$refs.menu.$el.children).forEach(item => {
73
+ Array.from(this.$refs.menu.$el.children).forEach((item) => {
74
74
  w += item.offsetWidth;
75
75
  });
76
76
  const styles = window.getComputedStyle(this.$refs.menu.$el);
@@ -114,7 +114,7 @@ export default {
114
114
  this.$refs.menu.close(this.menuId);
115
115
  } else {
116
116
  let openedMenus = item.rootMenu.openedMenus;
117
- openedMenus.forEach(item => {
117
+ openedMenus.forEach((item) => {
118
118
  if (keyPath.indexOf(item) == -1) {
119
119
  this.$refs.menu.close(item);
120
120
  }
@@ -288,17 +288,20 @@ export default {
288
288
  },
289
289
  render(h) {
290
290
  let doms = [];
291
- this.data.forEach(item => {
291
+ this.data.forEach((item) => {
292
292
  if (item.children && item.children.length) {
293
293
  doms = doms.concat(this.getSub(item, h, 'es-sub-menu'));
294
294
  } else {
295
295
  const title = [
296
296
  h('i', {
297
- class: item.icons
298
- ? this.unicode(item.icons)
299
- ? item.icons
300
- : 'es-icons iconfont'
301
- : 'es-icon-application',
297
+ class: [
298
+ item.icons
299
+ ? this.unicode(item.icons)
300
+ ? item.icons
301
+ : 'es-icons iconfont'
302
+ : 'es-icon-application',
303
+ 'es-menu-item-icon'
304
+ ],
302
305
  domProps:
303
306
  item.icons === '' || this.unicode(item.icons)
304
307
  ? {}
@@ -343,6 +346,7 @@ export default {
343
346
  h(
344
347
  'el-menu-item',
345
348
  {
349
+ class: [`es-menu-item-${this.mode}`],
346
350
  props: {
347
351
  paddingLeft: this.paddingLeft
348
352
  },