@lambo-design/pro-layout 1.0.0-beta.281 → 1.0.0-beta.282
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.
- package/package.json +1 -1
- package/src/components/{pro-layout-header.vue → pro-layout-header/index.vue} +3 -3
- package/src/components/{pro-layout-logo.vue → pro-layout-header/pro-layout-logo/index.vue} +1 -1
- package/src/components/{pro-layout-nav-slide.vue → pro-layout-header/pro-layout-nav/components/pro-layout-nav-slide-menu.vue} +178 -178
- package/src/components/{pro-layout-nav-slide-btn.vue → pro-layout-header/pro-layout-nav/index-slide.vue} +3 -3
- package/src/components/{pro-layout-tools-quick-fullscreen.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-fullscreen.vue} +3 -0
- package/src/components/{pro-layout-tools-quick-notice.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-notice.vue} +1 -1
- package/src/components/{pro-layout-tools-quick-todo.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-todo.vue} +1 -1
- package/src/components/{pro-layout-tools.vue → pro-layout-header/pro-layout-tools/index.vue} +2 -2
- package/src/components/{pro-layout-sider-collapsed-menu.vue → pro-layout-sider/components/pro-layout-sider-collapsed-menu.vue} +2 -2
- package/src/components/{pro-layout-sider-icon.vue → pro-layout-sider/components/pro-layout-sider-icon.vue} +2 -2
- package/src/components/{pro-layout-sider-menu-item.vue → pro-layout-sider/components/pro-layout-sider-menu-item.vue} +3 -3
- package/src/components/{pro-layout-other-menu.vue → pro-layout-sider/components/pro-layout-sider-other-menu.vue} +1 -1
- package/src/components/{pro-layout-sider.vue → pro-layout-sider/index.vue} +8 -8
- /package/src/components/{pro-layout-nav.vue → pro-layout-header/pro-layout-nav/index.vue} +0 -0
- /package/src/components/{pro-layout-tools-quick-collect.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-collect.vue} +0 -0
- /package/src/components/{pro-layout-tools-quick-icons.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-icons.vue} +0 -0
- /package/src/components/{pro-layout-tools-quick-search.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-search.vue} +0 -0
- /package/src/components/{pro-layout-tools-user.vue → pro-layout-header/pro-layout-tools/components/pro-layout-tools-user.vue} +0 -0
- /package/src/components/{pro-layout-trigger.vue → pro-layout-header/pro-layout-trigger/index.vue} +0 -0
- /package/src/components/{pro-layout-sider-search.vue → pro-layout-sider/components/pro-layout-sider-search.vue} +0 -0
- /package/src/components/{pro-layout-tabs.vue → pro-layout-tabs/index.vue} +0 -0
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<LamboProTools></LamboProTools>
|
|
14
14
|
</div>
|
|
15
15
|
<div v-show="systemInfo && systemInfo.navType && systemInfo.navType == 'slide'">
|
|
16
|
-
<
|
|
16
|
+
<LamboProNavSilde></LamboProNavSilde>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import LamboProTrigger from './pro-layout-trigger'
|
|
23
23
|
import LamboProLogo from './pro-layout-logo'
|
|
24
24
|
import LamboProNav from './pro-layout-nav'
|
|
25
|
-
import
|
|
25
|
+
import LamboProNavSilde from './pro-layout-nav/index-slide'
|
|
26
26
|
import LamboProTools from './pro-layout-tools'
|
|
27
27
|
import Bus from "@lambo-design/shared/utils/bus";
|
|
28
28
|
export default {
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
LamboProTrigger,
|
|
43
43
|
LamboProLogo,
|
|
44
44
|
LamboProNav,
|
|
45
|
-
|
|
45
|
+
LamboProNavSilde,
|
|
46
46
|
LamboProTools
|
|
47
47
|
},
|
|
48
48
|
computed:{
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
122
122
|
.logo{
|
|
123
123
|
width: 150px;
|
|
124
124
|
height: 43px;
|
|
125
|
-
background: url("
|
|
125
|
+
background: url("../../../styles/images/inspur.png") no-repeat;
|
|
126
126
|
background-size: 100%;
|
|
127
127
|
background-position: center; /* 图片在背景区域内居中显示 */
|
|
128
128
|
//float: left;
|
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="menu-list" >
|
|
3
|
-
<ul class="top-menu" :style="layoutSize === 'default' ? {height: '64px'} : {height: '50px'}" ref="topNav">
|
|
4
|
-
<li class="top-menu-item" :class="{ 'active': activeName === item.appId }" v-for="(item,index) in topMenList" :key="item.appId" @click="selectApp(item.appId)">
|
|
5
|
-
<div class="menu-item" :style="layoutSize === 'default' ? {paddingTop: '10px'} : {paddingTop: '2px'}" v-show="pointer <= index && index < pointer + topMenuNum && flag">
|
|
6
|
-
<p class="menu-icon"><Icon :type="item.icon" :size="20"></Icon></p>
|
|
7
|
-
<p class="menu-txt">{{ item.name }}</p>
|
|
8
|
-
</div>
|
|
9
|
-
</li>
|
|
10
|
-
</ul>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
import Bus from '@lambo-design/shared/utils/bus'
|
|
16
|
-
import { deepCopy } from '@lambo-design/shared/utils/assist'
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
props: {
|
|
20
|
-
acceptInt: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 0
|
|
23
|
-
},
|
|
24
|
-
topMenListNum: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
systemInfo:{},
|
|
32
|
-
pointer:0,
|
|
33
|
-
flag:true,
|
|
34
|
-
arrowFlag: true,
|
|
35
|
-
acceptAppId: '',
|
|
36
|
-
navList: [],
|
|
37
|
-
topMenList: [],
|
|
38
|
-
topTqmMenList:[],
|
|
39
|
-
otherList: [],
|
|
40
|
-
activeName: '',
|
|
41
|
-
topMenuNum: 7,
|
|
42
|
-
lastTopMenuNum:-1,
|
|
43
|
-
originMenuList: [],
|
|
44
|
-
layoutSize:"default"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
methods: {
|
|
48
|
-
initListener() {
|
|
49
|
-
Bus.$on('system-info',(data) => {
|
|
50
|
-
this.initSystemInfo(data);
|
|
51
|
-
})
|
|
52
|
-
Bus.$on('nav-list', (data) => {
|
|
53
|
-
this.initNav(data)
|
|
54
|
-
})
|
|
55
|
-
Bus.$on('change-app', ({ appId, appInfo }) => {
|
|
56
|
-
this.changeApp(appId, appInfo)
|
|
57
|
-
})
|
|
58
|
-
},
|
|
59
|
-
destroyListener() {
|
|
60
|
-
Bus.$off('system-info')
|
|
61
|
-
Bus.$off('nav-list')
|
|
62
|
-
Bus.$off('change-app')
|
|
63
|
-
},
|
|
64
|
-
initSystemInfo(data) {
|
|
65
|
-
if (data) {
|
|
66
|
-
this.layoutSize = data.layoutSize ? data.layoutSize : 'default';
|
|
67
|
-
this.topMenuNum = data.topMenuNum ? data.topMenuNum : 4;
|
|
68
|
-
this.acceptAppId = data.acceptAppId ? data.acceptAppId : '';
|
|
69
|
-
this.initNav(this.navList)
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
initNav(data) {
|
|
73
|
-
if (data.toString() === this.navList.toString() && this.topMenuNum === this.lastTopMenuNum) {
|
|
74
|
-
return
|
|
75
|
-
}
|
|
76
|
-
this.navList = data
|
|
77
|
-
this.lastTopMenuNum = this.topMenuNum
|
|
78
|
-
if (data.length > this.topMenuNum) {
|
|
79
|
-
let navList = deepCopy(data)
|
|
80
|
-
this.topMenList = navList
|
|
81
|
-
this.$emit('topMen-list', this.topMenList);
|
|
82
|
-
this.$emit('topMen-num', this.topMenuNum);
|
|
83
|
-
this.$emit('topMen-true', true);
|
|
84
|
-
// this.topMenList = navList.splice(0, this.topMenuNum)
|
|
85
|
-
// this.otherList = navList
|
|
86
|
-
} else {
|
|
87
|
-
this.topMenList = this.navList
|
|
88
|
-
this.$emit('topMen-true', false);
|
|
89
|
-
}
|
|
90
|
-
if (this.topMenList.length > 0) {
|
|
91
|
-
let appId = this.topMenList[0].appId
|
|
92
|
-
for (let i = 0; i < this.topMenList.length; i++) {
|
|
93
|
-
if (this.topMenList[i].selected == true) {
|
|
94
|
-
appId = this.topMenList[i].appId
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (this.activeName) {
|
|
98
|
-
appId = this.activeName
|
|
99
|
-
}
|
|
100
|
-
this.selectApp(appId)
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
changeApp(appId, appInfo){
|
|
104
|
-
this.activeName = appId
|
|
105
|
-
},
|
|
106
|
-
selectApp(appId) {
|
|
107
|
-
this.activeName = appId
|
|
108
|
-
let res = this.navList.filter(app => app.appId == appId)
|
|
109
|
-
Bus.$emit('change-app', { appId, appInfo: res[0] })
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
watch: {
|
|
113
|
-
acceptInt(val){
|
|
114
|
-
this.pointer = val;
|
|
115
|
-
},
|
|
116
|
-
acceptAppId(val) {
|
|
117
|
-
this.selectApp(val)
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
created() {
|
|
121
|
-
this.initListener()
|
|
122
|
-
},
|
|
123
|
-
beforeDestroy() {
|
|
124
|
-
this.destroyListener()
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
</script>
|
|
128
|
-
|
|
129
|
-
<style scoped lang="less">
|
|
130
|
-
@import '@lambo-design/core/src/styles/default.less';
|
|
131
|
-
.menu-list {
|
|
132
|
-
height: 100%;
|
|
133
|
-
line-height: 24px;
|
|
134
|
-
//color: #ffffff;
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
font-size: 16px;
|
|
137
|
-
margin-left: 53px;
|
|
138
|
-
.top-menu {
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
.top-menu-item {
|
|
141
|
-
position: relative;
|
|
142
|
-
height: 100%;
|
|
143
|
-
//color: #FFFFFF;
|
|
144
|
-
list-style: none;
|
|
145
|
-
float: left;
|
|
146
|
-
&:hover {
|
|
147
|
-
//background: transparent;
|
|
148
|
-
.menu-item {
|
|
149
|
-
//color: #fff;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
&.active {
|
|
153
|
-
//background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)) !important;
|
|
154
|
-
//border-bottom: 2px solid var(--primary-color-tint-5, @_primary-color-tint-5);
|
|
155
|
-
.menu-item {
|
|
156
|
-
//color: #fff;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.menu-item {
|
|
160
|
-
padding: 2px 0px 0px 8px;
|
|
161
|
-
margin: 0px 30px;
|
|
162
|
-
}
|
|
163
|
-
.menu-icon {
|
|
164
|
-
height: 20px;
|
|
165
|
-
line-height: 20px;
|
|
166
|
-
text-align: center;
|
|
167
|
-
//position: absolute;
|
|
168
|
-
left: 14px;
|
|
169
|
-
}
|
|
170
|
-
.menu-txt {
|
|
171
|
-
text-align: center;
|
|
172
|
-
font-size: 14px;
|
|
173
|
-
line-height: 2;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="menu-list" >
|
|
3
|
+
<ul class="top-menu" :style="layoutSize === 'default' ? {height: '64px'} : {height: '50px'}" ref="topNav">
|
|
4
|
+
<li class="top-menu-item" :class="{ 'active': activeName === item.appId }" v-for="(item,index) in topMenList" :key="item.appId" @click="selectApp(item.appId)">
|
|
5
|
+
<div class="menu-item" :style="layoutSize === 'default' ? {paddingTop: '10px'} : {paddingTop: '2px'}" v-show="pointer <= index && index < pointer + topMenuNum && flag">
|
|
6
|
+
<p class="menu-icon"><Icon :type="item.icon" :size="20"></Icon></p>
|
|
7
|
+
<p class="menu-txt">{{ item.name }}</p>
|
|
8
|
+
</div>
|
|
9
|
+
</li>
|
|
10
|
+
</ul>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import Bus from '@lambo-design/shared/utils/bus'
|
|
16
|
+
import { deepCopy } from '@lambo-design/shared/utils/assist'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
props: {
|
|
20
|
+
acceptInt: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 0
|
|
23
|
+
},
|
|
24
|
+
topMenListNum: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
systemInfo:{},
|
|
32
|
+
pointer:0,
|
|
33
|
+
flag:true,
|
|
34
|
+
arrowFlag: true,
|
|
35
|
+
acceptAppId: '',
|
|
36
|
+
navList: [],
|
|
37
|
+
topMenList: [],
|
|
38
|
+
topTqmMenList:[],
|
|
39
|
+
otherList: [],
|
|
40
|
+
activeName: '',
|
|
41
|
+
topMenuNum: 7,
|
|
42
|
+
lastTopMenuNum:-1,
|
|
43
|
+
originMenuList: [],
|
|
44
|
+
layoutSize:"default"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
initListener() {
|
|
49
|
+
Bus.$on('system-info',(data) => {
|
|
50
|
+
this.initSystemInfo(data);
|
|
51
|
+
})
|
|
52
|
+
Bus.$on('nav-list', (data) => {
|
|
53
|
+
this.initNav(data)
|
|
54
|
+
})
|
|
55
|
+
Bus.$on('change-app', ({ appId, appInfo }) => {
|
|
56
|
+
this.changeApp(appId, appInfo)
|
|
57
|
+
})
|
|
58
|
+
},
|
|
59
|
+
destroyListener() {
|
|
60
|
+
Bus.$off('system-info')
|
|
61
|
+
Bus.$off('nav-list')
|
|
62
|
+
Bus.$off('change-app')
|
|
63
|
+
},
|
|
64
|
+
initSystemInfo(data) {
|
|
65
|
+
if (data) {
|
|
66
|
+
this.layoutSize = data.layoutSize ? data.layoutSize : 'default';
|
|
67
|
+
this.topMenuNum = data.topMenuNum ? data.topMenuNum : 4;
|
|
68
|
+
this.acceptAppId = data.acceptAppId ? data.acceptAppId : '';
|
|
69
|
+
this.initNav(this.navList)
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
initNav(data) {
|
|
73
|
+
if (data.toString() === this.navList.toString() && this.topMenuNum === this.lastTopMenuNum) {
|
|
74
|
+
return
|
|
75
|
+
}
|
|
76
|
+
this.navList = data
|
|
77
|
+
this.lastTopMenuNum = this.topMenuNum
|
|
78
|
+
if (data.length > this.topMenuNum) {
|
|
79
|
+
let navList = deepCopy(data)
|
|
80
|
+
this.topMenList = navList
|
|
81
|
+
this.$emit('topMen-list', this.topMenList);
|
|
82
|
+
this.$emit('topMen-num', this.topMenuNum);
|
|
83
|
+
this.$emit('topMen-true', true);
|
|
84
|
+
// this.topMenList = navList.splice(0, this.topMenuNum)
|
|
85
|
+
// this.otherList = navList
|
|
86
|
+
} else {
|
|
87
|
+
this.topMenList = this.navList
|
|
88
|
+
this.$emit('topMen-true', false);
|
|
89
|
+
}
|
|
90
|
+
if (this.topMenList.length > 0) {
|
|
91
|
+
let appId = this.topMenList[0].appId
|
|
92
|
+
for (let i = 0; i < this.topMenList.length; i++) {
|
|
93
|
+
if (this.topMenList[i].selected == true) {
|
|
94
|
+
appId = this.topMenList[i].appId
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (this.activeName) {
|
|
98
|
+
appId = this.activeName
|
|
99
|
+
}
|
|
100
|
+
this.selectApp(appId)
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
changeApp(appId, appInfo){
|
|
104
|
+
this.activeName = appId
|
|
105
|
+
},
|
|
106
|
+
selectApp(appId) {
|
|
107
|
+
this.activeName = appId
|
|
108
|
+
let res = this.navList.filter(app => app.appId == appId)
|
|
109
|
+
Bus.$emit('change-app', { appId, appInfo: res[0] })
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
watch: {
|
|
113
|
+
acceptInt(val){
|
|
114
|
+
this.pointer = val;
|
|
115
|
+
},
|
|
116
|
+
acceptAppId(val) {
|
|
117
|
+
this.selectApp(val)
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
created() {
|
|
121
|
+
this.initListener()
|
|
122
|
+
},
|
|
123
|
+
beforeDestroy() {
|
|
124
|
+
this.destroyListener()
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
</script>
|
|
128
|
+
|
|
129
|
+
<style scoped lang="less">
|
|
130
|
+
@import '@lambo-design/core/src/styles/default.less';
|
|
131
|
+
.menu-list {
|
|
132
|
+
height: 100%;
|
|
133
|
+
line-height: 24px;
|
|
134
|
+
//color: #ffffff;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
font-size: 16px;
|
|
137
|
+
margin-left: 53px;
|
|
138
|
+
.top-menu {
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
.top-menu-item {
|
|
141
|
+
position: relative;
|
|
142
|
+
height: 100%;
|
|
143
|
+
//color: #FFFFFF;
|
|
144
|
+
list-style: none;
|
|
145
|
+
float: left;
|
|
146
|
+
&:hover {
|
|
147
|
+
//background: transparent;
|
|
148
|
+
.menu-item {
|
|
149
|
+
//color: #fff;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&.active {
|
|
153
|
+
//background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)) !important;
|
|
154
|
+
//border-bottom: 2px solid var(--primary-color-tint-5, @_primary-color-tint-5);
|
|
155
|
+
.menu-item {
|
|
156
|
+
//color: #fff;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.menu-item {
|
|
160
|
+
padding: 2px 0px 0px 8px;
|
|
161
|
+
margin: 0px 30px;
|
|
162
|
+
}
|
|
163
|
+
.menu-icon {
|
|
164
|
+
height: 20px;
|
|
165
|
+
line-height: 20px;
|
|
166
|
+
text-align: center;
|
|
167
|
+
//position: absolute;
|
|
168
|
+
left: 14px;
|
|
169
|
+
}
|
|
170
|
+
.menu-txt {
|
|
171
|
+
text-align: center;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
line-height: 2;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pro-layout-nav-slide-wrapper">
|
|
3
3
|
<div class="nav-box-slide">
|
|
4
|
-
<
|
|
4
|
+
<LamboProNavSlideMenu :accept-int="pointer" @topMen-list="handleCustomEvent" @topMen-num="topMen" @topMen-true="topMenTrue"></LamboProNavSlideMenu>
|
|
5
5
|
</div>
|
|
6
6
|
<!--slide按钮-->
|
|
7
7
|
<div class="tools-box-slide">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script>
|
|
28
|
-
import
|
|
28
|
+
import LamboProNavSlideMenu from './components/pro-layout-nav-slide-menu'
|
|
29
29
|
export default {
|
|
30
30
|
data(){
|
|
31
31
|
return {
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
components: {
|
|
39
|
-
|
|
39
|
+
LamboProNavSlideMenu
|
|
40
40
|
},
|
|
41
41
|
methods:{
|
|
42
42
|
handleCustomEvent(data) {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="dropdown-content">
|
|
12
12
|
<DropdownItem v-for="(item, index) in noticeDatas" :key="index" class="dropdown-item" @click.native="detail(item)" >
|
|
13
13
|
<div class="item-image-container">
|
|
14
|
-
<img src="
|
|
14
|
+
<img src="../../../../styles/images/xiaoxitongzhi.png" class="item-image" alt=""/>
|
|
15
15
|
<span class="red-dot"></span>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="item-content">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="dropdown-content">
|
|
12
12
|
<DropdownItem v-for="(item, index) in noticeDatas" :key="index" class="dropdown-item" @click.native="detail(item)" >
|
|
13
13
|
<div class="item-image-container">
|
|
14
|
-
<img src="
|
|
14
|
+
<img src="../../../../styles/images/xiaoxitongzhi.png" class="item-image" alt=""/>
|
|
15
15
|
<span class="red-dot"></span>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="item-content">
|
package/src/components/{pro-layout-tools.vue → pro-layout-header/pro-layout-tools/index.vue}
RENAMED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
9
|
-
import LamboProLayoutToolsQuickIcons from './pro-layout-tools-quick-icons'
|
|
10
|
-
import LamboProLayoutToolsUser from './pro-layout-tools-user'
|
|
9
|
+
import LamboProLayoutToolsQuickIcons from './components/pro-layout-tools-quick-icons'
|
|
10
|
+
import LamboProLayoutToolsUser from './components/pro-layout-tools-user'
|
|
11
11
|
export default {
|
|
12
12
|
name: "pro-layout-tools",
|
|
13
13
|
components: {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</Dropdown>
|
|
23
23
|
</template>
|
|
24
24
|
<script>
|
|
25
|
-
import sider from '
|
|
26
|
-
import menuItem from '
|
|
25
|
+
import sider from '../../../utils/sider'
|
|
26
|
+
import menuItem from '../../../utils/menuItem'
|
|
27
27
|
import {findNodeUpperByClasses} from '@lambo-design/shared/utils/platform'
|
|
28
28
|
|
|
29
29
|
export default {
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
}
|
|
41
41
|
if (iconType.indexOf('iconfont') > -1) {
|
|
42
42
|
let imgName = iconType.replace('iconfont','').replace(/\s+/g,'');
|
|
43
|
-
return 'background: url('+ require('
|
|
43
|
+
return 'background: url('+ require('../../../styles/images/menuicon/' + imgName + '-s.png') +') no-repeat;background-size: 100%;';
|
|
44
44
|
}
|
|
45
45
|
return '';
|
|
46
46
|
}
|
|
@@ -78,4 +78,4 @@ export default {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
</style>
|
|
81
|
+
</style>
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
</Submenu>
|
|
56
56
|
</template>
|
|
57
57
|
<script>
|
|
58
|
-
import sider from '
|
|
59
|
-
import menuItem from '
|
|
58
|
+
import sider from '../../../utils/sider'
|
|
59
|
+
import menuItem from '../../../utils/menuItem'
|
|
60
60
|
import Bus from '@lambo-design/shared/utils/bus'
|
|
61
61
|
import {deepCopy} from '@lambo-design/shared/utils/assist'
|
|
62
62
|
|
|
@@ -100,5 +100,5 @@ export default {
|
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
102
|
<style scoped lang="less">
|
|
103
|
-
@import '
|
|
103
|
+
@import '../../../styles/other-menu.less';
|
|
104
104
|
</style>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</template>
|
|
49
49
|
</Menu>
|
|
50
50
|
|
|
51
|
-
<
|
|
51
|
+
<ProLayoutSiderOtherMenu :collapsed="collapsed" @select-menu="selectMenu"></ProLayoutSiderOtherMenu>
|
|
52
52
|
<ProLayoutSiderSearch
|
|
53
53
|
v-show="!collapsed"
|
|
54
54
|
:searchType="0"
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
import Bus from "@lambo-design/shared/utils/bus";
|
|
83
83
|
import {deepCopy} from "@lambo-design/shared/utils/assist";
|
|
84
84
|
import generatorMenuList from "@lambo-design/shared/utils/menu/index";
|
|
85
|
-
import sider from '
|
|
86
|
-
import
|
|
87
|
-
import ProLayoutSiderSearch from "./pro-layout-sider-search";
|
|
88
|
-
import ProLayoutSiderMenuItem from './pro-layout-sider-menu-item'
|
|
89
|
-
import ProLayoutSiderCollapsedMenu from './pro-layout-sider-collapsed-menu'
|
|
85
|
+
import sider from '../../utils/sider'
|
|
86
|
+
import ProLayoutSiderOtherMenu from "./components/pro-layout-sider-other-menu";
|
|
87
|
+
import ProLayoutSiderSearch from "./components/pro-layout-sider-search";
|
|
88
|
+
import ProLayoutSiderMenuItem from './components/pro-layout-sider-menu-item'
|
|
89
|
+
import ProLayoutSiderCollapsedMenu from './components/pro-layout-sider-collapsed-menu'
|
|
90
90
|
import {
|
|
91
91
|
filterMenuName,
|
|
92
92
|
filterMenuUri,
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
components: {
|
|
100
100
|
ProLayoutSiderMenuItem,
|
|
101
101
|
ProLayoutSiderCollapsedMenu,
|
|
102
|
-
|
|
102
|
+
ProLayoutSiderOtherMenu,
|
|
103
103
|
ProLayoutSiderSearch
|
|
104
104
|
},
|
|
105
105
|
props:{
|
|
@@ -338,7 +338,7 @@ export default {
|
|
|
338
338
|
|
|
339
339
|
<style scoped lang="less">
|
|
340
340
|
@import "@lambo-design/core/src/styles/default";
|
|
341
|
-
@import '
|
|
341
|
+
@import '../../styles/other-menu.less';
|
|
342
342
|
.pro-layout-sider-wrapper{
|
|
343
343
|
margin-bottom: 50px;
|
|
344
344
|
padding-top: 47px;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{pro-layout-trigger.vue → pro-layout-header/pro-layout-trigger/index.vue}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|