@lambo-design/pro-layout 1.0.0-beta.2 → 1.0.0-beta.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/pro-layout",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <Dropdown ref="dropdown" :class="hideTitle ? '' : 'collased-menu-dropdown'" :placement="placement"
3
- :transfer="hideTitle" @on-click="handleClick">
4
- <a :style="{textAlign: !hideTitle ? 'left' : ''}" class="drop-menu-a" type="text"
3
+ :transfer="!hideTitle" @on-click="handleClick">
4
+ <a :style="{textAlign: !hideTitle ? 'left' : '',padding: !hideTitle ? '0px' : ''}" class="drop-menu-a" type="text"
5
5
  @mouseover="handleMousemove($event, children)">
6
6
  <ProLayoutSiderIcon :icon-type="parentItem.meta.icon"></ProLayoutSiderIcon>
7
7
  <span v-if="!hideTitle" class="menu-title">{{ showTitle(parentItem) }}</span>
8
- <Icon v-if="!hideTitle" :size="20" style="float: right;" type="ios-arrow-forward"/>
8
+ <Icon v-if="!hideTitle" :size="16"type="ios-arrow-forward"/>
9
9
  </a>
10
10
  <DropdownMenu ref="dropdown" slot="list">
11
11
  <template v-for="child in children">
@@ -73,22 +73,17 @@ export default {
73
73
  color: var(--heading-color, @_heading-color);
74
74
  background: rgba(26,26,26,0.05);
75
75
  }
76
- a.drop-menu-a{
77
- display: inline-block;
78
- width: 100%;
79
- font-weight: normal;
80
- color: var(--text-color, @_text-color);
81
- &:hover{
82
- color: var(--heading-color, @_heading-color);
76
+ /deep/.ivu-dropdown-rel{
77
+ a.drop-menu-a{
78
+ display: inline-block;
79
+ width: 100%;
80
+ font-weight: normal;
81
+ color: var(--text-color, @_text-color) !important;
82
+ text-decoration: none;
83
+ &:hover{
84
+ color: var(--heading-color, @_heading-color) !important;
85
+ }
83
86
  }
84
87
  }
85
88
  }
86
- </style>
87
- <style lang="less">
88
- .ivu-select-dropdown {
89
- &.ivu-dropdown-transfer {
90
- max-height: 400px;
91
- max-width: 150px;
92
- }
93
- }
94
89
  </style>
@@ -205,6 +205,7 @@ export default {
205
205
  <style scoped lang="less">
206
206
  @import "@lambo-design/core/src/styles/default";
207
207
  .pro-layout-sider{
208
+ overflow-y: scroll;
208
209
  /deep/.ivu-menu-submenu{
209
210
  .ivu-menu{
210
211
  background: #1A1A1A;
package/src/index.vue CHANGED
@@ -199,7 +199,7 @@ export default {
199
199
  .pro-layout{
200
200
  color: #ffffff;
201
201
  min-width: 1100px;
202
- min-height: 600px;
202
+ min-height: 550px;
203
203
  .ivu-layout-header{
204
204
  padding: 0;
205
205
  }
@@ -1,92 +0,0 @@
1
- .pro-layout{
2
- .logo-con{
3
- height: 64px;
4
- padding: 10px;
5
- background-color: #1890ff;
6
- position: sticky;
7
- top: 0px;
8
- z-index: 1000;
9
- img{
10
- height: 44px;
11
- width: 44px;
12
- margin-left: 15px;
13
- float: left;
14
- }
15
- .system-title{
16
- float: left;
17
- font-weight: bolder;
18
- font-size: 30px;
19
- margin-right: 20px;
20
- color: #ffffff;
21
- }
22
- }
23
- .header-con{
24
- background: #1890ff;
25
- color: #ffffff;
26
- padding: 0 0px;
27
- width: 100%;
28
- }
29
- .main-layout-con{
30
- height: 100%;
31
- overflow: hidden;
32
- }
33
- .main-content-con{
34
- height: ~"calc(100% - 60px)";
35
- overflow: hidden;
36
- }
37
- //tab框样式
38
- .tags-nav .scroll-outer {
39
- background: #f5f7f9;
40
- box-shadow: 0px 0 3px 2px #f5f7f9 inset
41
- }
42
- .tag-nav-wrapper{
43
- padding: 0;
44
- height:40px;
45
- background:#F0F0F0;
46
- }
47
- .content-wrapper{
48
- height: ~"calc(100% - 80px)";
49
- background: #ffffff;
50
- }
51
- .left-sider{
52
- background: #f5f7f9;
53
- .ivu-layout-sider-children{
54
- overflow-y: scroll;
55
- margin-right: -18px;
56
- }
57
- }
58
- }
59
- .ivu-menu-item > i{
60
- margin-right: 12px !important;
61
- }
62
- .ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
63
- margin-right: 8px !important;
64
- }
65
- .collased-menu-dropdown{
66
- width: 100%;
67
- margin: 0;
68
- line-height: normal;
69
- padding: 7px 0 6px 16px;
70
- clear: both;
71
- font-size: 12px !important;
72
- white-space: nowrap;
73
- list-style: none;
74
- cursor: pointer;
75
- transition: background 0.2s ease-in-out;
76
- &:hover{
77
- background: rgba(100, 100, 100, 0.1);
78
- }
79
- & * {
80
- color: #515a6e;
81
- }
82
- .ivu-menu-item > i{
83
- margin-right: 12px !important;
84
- }
85
- .ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
86
- margin-right: 8px !important;
87
- }
88
- }
89
-
90
- .ivu-select-dropdown.ivu-dropdown-transfer{
91
- max-height: 400px;
92
- }