@lambo-design/pro-layout 1.0.0-beta.272 → 1.0.0-beta.274
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 +3 -3
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-icons.vue +4 -4
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-notice.vue +2 -2
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-search.vue +0 -16
- package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-todo.vue +2 -2
- package/src/components/pro-layout-sider/components/pro-layout-sider-collapsed-menu.vue +2 -2
- package/src/components/pro-layout-sider/components/pro-layout-sider-icon.vue +2 -2
- package/src/components/pro-layout-sider/components/pro-layout-sider-menu-item.vue +3 -3
- package/src/components/pro-layout-sider/components/pro-layout-sider-other-menu.vue +1 -1
- package/src/components/pro-layout-sider/index.vue +1 -1
- package/src/styles/images/xiaoxitongzhi.png +0 -0
- package/src/utils/sider.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/pro-layout",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.274",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/shared": "^1.0.0-beta.136",
|
|
14
|
+
"@lambo-design/core": "^4.7.1-beta.129"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {}
|
|
17
17
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
2
|
+
<Row class="pro-layout-tools-quick-icons">
|
|
3
|
+
<Col v-for="(item,index) in rightTopOptButtonList" :key="index" class="font-padding">
|
|
4
4
|
<ProLayoutToolsQuickSearch v-if="item === 'search'"></ProLayoutToolsQuickSearch>
|
|
5
5
|
<ProLayoutToolsQuickCollect v-if="item === 'collect'"></ProLayoutToolsQuickCollect>
|
|
6
6
|
<ProLayoutToolsQuickFullscreen v-if="item === 'fullScreen'"></ProLayoutToolsQuickFullscreen>
|
|
7
7
|
<ProLayoutToolsQuickTodo v-if="item === 'todo'"></ProLayoutToolsQuickTodo>
|
|
8
8
|
<ProLayoutToolsQuickNotice v-if="item === 'notice'"></ProLayoutToolsQuickNotice>
|
|
9
|
-
</
|
|
10
|
-
</
|
|
9
|
+
</Col>
|
|
10
|
+
</Row>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
@@ -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">
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script>
|
|
61
|
-
import config from '
|
|
61
|
+
import config from '@lambo-design/shared/config/config'
|
|
62
62
|
import ajax from "@lambo-design/shared/utils/ajax";
|
|
63
63
|
import Bus from "@lambo-design/shared/utils/bus";
|
|
64
64
|
export default {
|
|
@@ -56,28 +56,12 @@ export default {
|
|
|
56
56
|
},
|
|
57
57
|
methods: {
|
|
58
58
|
initListener() {
|
|
59
|
-
Bus.$on('system-info',(data) => {
|
|
60
|
-
this.initSystemInfo(data);
|
|
61
|
-
})
|
|
62
|
-
Bus.$on('origin-all-menu-list', (data) => {
|
|
63
|
-
this.initOriginAllMenu(data);
|
|
64
|
-
})
|
|
65
59
|
Bus.$on('menu-list', (data) => {
|
|
66
60
|
this.initMenu(data);
|
|
67
61
|
})
|
|
68
|
-
Bus.$on('menu-click',(name,item) => {
|
|
69
|
-
this.initMenuClick(name, item)
|
|
70
|
-
})
|
|
71
|
-
Bus.$on('collect-menu-list',(data)=>{
|
|
72
|
-
this.initCollectMenu(data)
|
|
73
|
-
});
|
|
74
62
|
},
|
|
75
63
|
destroyListener() {
|
|
76
|
-
Bus.$off('system-info')
|
|
77
|
-
Bus.$off('origin-all-menu-list')
|
|
78
64
|
Bus.$off('menu-list')
|
|
79
|
-
Bus.$off('menu-click')
|
|
80
|
-
Bus.$off('collect-menu-list')
|
|
81
65
|
},
|
|
82
66
|
initMenu(data){
|
|
83
67
|
this.menuList = deepCopy(data);
|
package/src/components/pro-layout-header/pro-layout-tools/components/pro-layout-tools-quick-todo.vue
CHANGED
|
@@ -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">
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script>
|
|
61
|
-
import config from '
|
|
61
|
+
import config from '@lambo-design/shared/config/config'
|
|
62
62
|
import ajax from "@lambo-design/shared/utils/ajax";
|
|
63
63
|
import Bus from "@lambo-design/shared/utils/bus";
|
|
64
64
|
export default {
|
|
@@ -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>
|
|
@@ -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;
|
|
Binary file
|
package/src/utils/sider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {showTitle} from '@lambo-design/shared/utils/platform'
|
|
2
|
-
import ProLayoutSiderIcon from "../components/pro-layout-sider-icon";
|
|
2
|
+
import ProLayoutSiderIcon from "../components/pro-layout-sider/components/pro-layout-sider-icon";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
components: {
|