add lodash
Former-commit-id: 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 73ea160b23495f950ee69827a5c13d36a3e97fbb [formerly 9ef81430726fa668b012ee37224e42c19bd10ead]]]]] Former-commit-id: 6ab56dac7d0f52becc925f670792f9670f33b558 Former-commit-id: b288cfb0c1c6878a42c886c3500692ff1c91f23a Former-commit-id: b3ceec55c70f26d49f4e258c3515d453f040b365 [formerly efb78f7126a3512f4522965ea7a114b300506693] Former-commit-id: 2c78d9a1540bc86e3cee333f2ae4053e349b141c Former-commit-id: fc17089e3aaf1d3297cd0756f309c6fd332e90c4 Former-commit-id: ba1a80dd8dccbc54a34b904f341ce22cb4de6f27 Former-commit-id: d26afea6acaee187772fe9308cb7e8c4e889ec40 Former-commit-id: b1037ca3fdb2886a5544b04d47eef55bacbb1199
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<el-menu-item :index="menu.path || uniqueid">
|
||||
<el-menu-item :index="menu.path || uniqueId">
|
||||
<i :class="`fa fa-${menu.icon || 'file-o'}`"></i>
|
||||
<span slot="title">{{menu.title || '未命名菜单'}}</span>
|
||||
</el-menu-item>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniqueid from 'lodash.uniqueid'
|
||||
import { uniqueId } from 'lodash'
|
||||
export default {
|
||||
name: 'd2-layout-header-aside-menu-item',
|
||||
props: {
|
||||
@@ -18,7 +18,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
uniqueid: uniqueid('d2-menu-empty-')
|
||||
uniqueId: uniqueId('d2-menu-empty-')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-submenu :index="menu.path || uniqueid">
|
||||
<el-submenu :index="menu.path || uniqueId">
|
||||
<template slot="title">
|
||||
<i :class="`fa fa-${menu.icon || 'folder-o'}`"></i>
|
||||
<span slot="title">{{menu.title}}</span>
|
||||
@@ -12,7 +12,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import uniqueid from 'lodash.uniqueid'
|
||||
import { uniqueId } from 'lodash'
|
||||
// 组件
|
||||
import d2LayoutMainMenuItem from '../menu-item'
|
||||
|
||||
@@ -30,7 +30,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
uniqueid: uniqueid('d2-menu-empty-')
|
||||
uniqueId: uniqueId('d2-menu-empty-')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user