gy-webcode2 1.1.3 → 1.1.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.
@@ -86,12 +86,12 @@ export default {
86
86
  },
87
87
  showRow1(){
88
88
  if(this.position == 'default'){
89
- if(this.$store.state.breadcrumbShow){
89
+ if(this.$store.state.vuex_breadcrumbShow){
90
90
  return true;
91
91
  }
92
92
  }
93
93
  else if(this.position == 'top'){
94
- if(this.$store.state.breadcrumbShow){
94
+ if(this.$store.state.vuex_breadcrumbShow){
95
95
  return true;
96
96
  }
97
97
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span class="operateBtnIcon " @click="$emit('click')" >
2
+ <span class="operateBtnIcon " :class="{disabled:disabled}" @click="iconClick" >
3
3
  <el-tooltip :enterable="false" :content="title" popper-class="operateBtnIconPopper" placement="bottom" effect="light">
4
4
  <slot></slot>
5
5
  </el-tooltip>
@@ -12,6 +12,18 @@ export default {
12
12
  title:{
13
13
  type:String,
14
14
  default:"",
15
+ },
16
+ disabled:{
17
+ type:Boolean,
18
+ default:false
19
+ }
20
+ },
21
+ methods:{
22
+ iconClick(){
23
+ if(!this.disabled){
24
+
25
+ this.$emit('click')
26
+ }
15
27
  }
16
28
  }
17
29
  }
@@ -36,7 +36,7 @@
36
36
  <div class="flex aic jcb pad_t_10 pad_b_10">
37
37
  <div>面包屑</div>
38
38
  <div>
39
- <el-switch v-model="$store.state.breadcrumbShow"></el-switch>
39
+ <el-switch @change="(value)=>{setPageStyle('breadcrumbShow',value)}" v-model="$store.state.vuex_breadcrumbShow"></el-switch>
40
40
  </div>
41
41
  </div>
42
42
  </div>
@@ -129,20 +129,35 @@
129
129
  },
130
130
  computed:{
131
131
  themeName(){
132
- return this.$store.state.themeName
132
+ return this.$store.state.vuex_themeName
133
133
  },
134
134
  themeColor(){
135
- return this.$store.state.themeColor
135
+ return this.$store.state.vuex_themeColor
136
136
  },
137
137
  },
138
138
  methods:{
139
139
  changeTheme(value){
140
- this.$store.state.themeName = value;
140
+ this.$store.state.vuex_themeName = value;
141
141
  window.document.body.setAttribute('data-theme', value)
142
+ this.setPageStyle('themeName',value)
142
143
  },
143
144
  changeThemeColor(value){
144
- this.$store.state.themeColor = value;
145
+ this.$store.state.vuex_themeColor = value;
145
146
  window.document.body.setAttribute('data-theme-color', value)
147
+ this.setPageStyle('themeColor',value)
148
+ },
149
+ setPageStyle(key,val){
150
+ let gyPageStyle = localStorage.getItem('gy_pageStyle');
151
+ if(gyPageStyle){
152
+ gyPageStyle =JSON.parse(gyPageStyle)
153
+ }
154
+ else{
155
+ gyPageStyle = {}
156
+ }
157
+ // console.log(gyPageStyle);
158
+ // console.log(key,val);
159
+ gyPageStyle[key] = val;
160
+ localStorage.setItem('gy_pageStyle',JSON.stringify(gyPageStyle))
146
161
  }
147
162
  }
148
163
  }
package/css/layout.scss CHANGED
@@ -222,7 +222,7 @@
222
222
  bottom: 0;
223
223
  display: flex;
224
224
  flex-direction: column;
225
- .header{
225
+ >.header{
226
226
  height: 56px;
227
227
  display: flex;
228
228
  align-items: center;
@@ -236,7 +236,7 @@
236
236
  cursor: pointer;
237
237
  }
238
238
  }
239
- .body{
239
+ >.body{
240
240
  position: relative;
241
241
  flex: 1;
242
242
  height: 0;
@@ -59,3 +59,6 @@
59
59
  .color_active{
60
60
  @include themeColor("color","color");
61
61
  }
62
+ .color_lan{
63
+ color: #5487ee;
64
+ }
@@ -78,12 +78,13 @@
78
78
  bottom: -1px;
79
79
  }
80
80
  &.gutter .el-table th.gutter{
81
- background: #fafafa;
81
+ background: #f0f0f0;
82
82
  display: table-cell!important;
83
83
  }
84
84
 
85
85
  .el-table__fixed-right-patch{
86
- background: #fafafa;
86
+ background: #f0f0f0;
87
+ border-radius: 0 8px 0 0;
87
88
  }
88
89
  .tr_error{
89
90
  background: #fff0f0;
@@ -37,7 +37,7 @@
37
37
  // right: 6px;
38
38
  left: 0;
39
39
  right: 0;
40
- width: 60px;
40
+ // width: 60px;
41
41
  height: 2px;
42
42
  margin: auto;
43
43
  @include themeColor('background-color','active');
@@ -53,4 +53,57 @@
53
53
  flex: 1;
54
54
 
55
55
  }
56
+ }
57
+ .tabs2{
58
+ height: 40px;
59
+ background: #fff;
60
+ border-bottom: 1px solid #d9d9d9;
61
+ display: flex;
62
+ .items{
63
+ display: flex;
64
+ }
65
+ .item{
66
+ position: relative;
67
+ min-width: 100px;
68
+ background: #fafafa;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ font-size: 14px;
73
+ color: #000000;
74
+ padding: 0 20px;
75
+ cursor: pointer;
76
+ transition: all 0.3s ease;
77
+ border: 1px solid #d9d9d9;
78
+ border-right: none;
79
+ position: relative;
80
+ bottom:-1px;
81
+ &:nth-last-of-type(1){
82
+ border-right: 1px solid #d9d9d9;
83
+ border-radius: 0 8px 0 0 ;
84
+ }
85
+ &:nth-of-type(1){
86
+ border-radius: 8px 0 0 0;
87
+ }
88
+
89
+ &.active{
90
+ background: #fff;
91
+ border-bottom-color: #fff;
92
+ position: relative;
93
+ @include themeColor("color",'active');
94
+
95
+ }
96
+ &:hover{
97
+ background: #fff;
98
+ @include themeColor("color",'active');
99
+ }
100
+ }
101
+ .other{
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: flex-end;
105
+ flex: 1;
106
+
107
+ }
108
+
56
109
  }
package/index.js CHANGED
@@ -13,5 +13,5 @@
13
13
  // 已使用项目 指标管理
14
14
 
15
15
  module.exports = {
16
- version :'1.1.3',
16
+ version :'1.1.4',
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {