@lambo-design/shared 1.0.0-beta.214 → 1.0.0-beta.216
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/config/themes/atrovirens/atrovirens.css +1 -1
- package/config/themes/atrovirens/atrovirens.less +1 -0
- package/config/themes/atrovirens/var.less +1 -0
- package/config/themes/blue/blue.css +1 -1
- package/config/themes/blue/blue.less +1 -0
- package/config/themes/blue/var.less +1 -0
- package/config/themes/blue-white/blue-white.css +1 -1
- package/config/themes/blue-white/blue-white.less +1 -0
- package/config/themes/blue-white/var.less +1 -0
- package/config/themes/blue-white-tight/blue-white-tight.css +1 -1
- package/config/themes/blue-white-tight/blue-white-tight.less +1 -0
- package/config/themes/blue-white-tight/var.less +1 -0
- package/config/themes/danqing/danqing.css +6 -6
- package/config/themes/danqing/danqing.less +1 -0
- package/config/themes/danqing/var.less +6 -5
- package/config/themes/deep/deep.css +1 -1
- package/config/themes/deep/deep.less +1 -0
- package/config/themes/deep/var.less +1 -0
- package/config/themes/default/default.css +1 -1
- package/config/themes/default/default.less +1 -0
- package/config/themes/default/var.less +1 -0
- package/config/themes/eap/eap.css +1 -1
- package/config/themes/eap/eap.less +1 -0
- package/config/themes/eap/var.less +1 -0
- package/config/themes/gold/gold.css +1 -1
- package/config/themes/gold/gold.less +1 -0
- package/config/themes/gold/var.less +1 -0
- package/config/themes/lime/lime.css +1 -1
- package/config/themes/lime/lime.less +1 -0
- package/config/themes/lime/var.less +1 -0
- package/config/themes/orange/orange.css +1 -1
- package/config/themes/orange/orange.less +1 -0
- package/config/themes/orange/var.less +1 -0
- package/config/themes/red/red.css +1 -1
- package/config/themes/red/red.less +1 -0
- package/config/themes/red/var.less +1 -0
- package/nstyles/components/table.less +1 -1
- package/nstyles/third/view-design.less +4 -0
- package/package.json +1 -1
- package/utils/storage.js +198 -198
- package/utils/theme.js +2 -1
- package/utils/type.js +102 -102
- package/utils/crypto/aes.js +0 -23
- package/utils/crypto/rsa.js +0 -16
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=atrovirens.css.map */
|
|
@@ -210,6 +210,7 @@
|
|
|
210
210
|
--layout-header-active-color : @layout-header-active-color;
|
|
211
211
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
212
212
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
213
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
213
214
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
214
215
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
215
216
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=blue.css.map */
|
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
--layout-header-active-color : @layout-header-active-color;
|
|
213
213
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
214
214
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
215
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
215
216
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
216
217
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
217
218
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: #333333;
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=blue-white.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-title;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: #333333;
|
|
@@ -571,4 +572,3 @@ vxe-table
|
|
|
571
572
|
--content-header-bg-color: #fff;
|
|
572
573
|
--content-header-font-weight: 500;
|
|
573
574
|
}
|
|
574
|
-
/*# sourceMappingURL=blue-white-tight.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-title;
|
|
@@ -179,7 +179,7 @@ vxe-table
|
|
|
179
179
|
--grid-columns: 24;
|
|
180
180
|
--grid-gutter-width: 0;
|
|
181
181
|
--layout-body-background: #f5f7f9;
|
|
182
|
-
--layout-header-background: #
|
|
182
|
+
--layout-header-background: #258b73;
|
|
183
183
|
--layout-header-height: 64px;
|
|
184
184
|
--layout-header-padding: 0 50px;
|
|
185
185
|
--layout-footer-padding: 24px 50px;
|
|
@@ -195,12 +195,13 @@ vxe-table
|
|
|
195
195
|
--layout-header-color: rgba(255, 255, 255, 0.7);
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
|
-
--layout-header-nav-active-color: #
|
|
199
|
-
--layout-header-nav-active-
|
|
200
|
-
--layout-header-nav-active-background-
|
|
198
|
+
--layout-header-nav-active-color: #258b73;
|
|
199
|
+
--layout-header-nav-active-font-weight: bold;
|
|
200
|
+
--layout-header-nav-active-background-begin: #ffffff;
|
|
201
|
+
--layout-header-nav-active-background-end: #c2ddd7;
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
202
203
|
--layout-header-drop-active-color: #fff;
|
|
203
|
-
--layout-header-drop-background: #
|
|
204
|
+
--layout-header-drop-background: #258b73;
|
|
204
205
|
--layout-header-drop-active-background: rgba(255, 255, 255, 0.2);
|
|
205
206
|
--layout-sider-submenu-color: rgba(255, 255, 255, 0.7);
|
|
206
207
|
--layout-sider-submenu-active-color: #fff;
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #F5F9F9;
|
|
571
572
|
--content-header-font-weight: bold;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=danqing.css.map */
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
--layout-header-active-color : @layout-header-active-color;
|
|
210
210
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
211
211
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
212
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
212
213
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
213
214
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
214
215
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -189,12 +189,12 @@
|
|
|
189
189
|
@grid-columns : 24;
|
|
190
190
|
@grid-gutter-width : 0;
|
|
191
191
|
@layout-body-background : #f5f7f9;
|
|
192
|
-
@layout-header-background :
|
|
192
|
+
@layout-header-background : @primary-color;
|
|
193
193
|
@layout-header-height : 64px;
|
|
194
194
|
@layout-header-padding : 0 50px;
|
|
195
195
|
@layout-footer-padding : 24px 50px;
|
|
196
196
|
@layout-footer-background : @layout-body-background;
|
|
197
|
-
@layout-sider-background :
|
|
197
|
+
@layout-sider-background : #333333;
|
|
198
198
|
@layout-sider-background-tint-10 : tint(@layout-sider-background, 10%);
|
|
199
199
|
@layout-trigger-height : 48px;
|
|
200
200
|
@layout-trigger-color : #fff;
|
|
@@ -207,9 +207,10 @@
|
|
|
207
207
|
@layout-header-color : @menu-dark-subsidiary-color;
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
|
-
@layout-header-nav-active-color : @
|
|
211
|
-
@layout-header-nav-active-
|
|
212
|
-
@layout-header-nav-active-background-
|
|
210
|
+
@layout-header-nav-active-color : @primary-color;
|
|
211
|
+
@layout-header-nav-active-font-weight : bold;
|
|
212
|
+
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 1);
|
|
213
|
+
@layout-header-nav-active-background-end : rgba(194, 221, 215, 1);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
214
215
|
@layout-header-drop-active-color : @white;
|
|
215
216
|
@layout-header-drop-background : @layout-header-background;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=deep.css.map */
|
|
@@ -210,6 +210,7 @@
|
|
|
210
210
|
--layout-header-active-color : @layout-header-active-color;
|
|
211
211
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
212
212
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
213
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
213
214
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
214
215
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
215
216
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=default.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--cursor-disabled: not-allowed;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=eap.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=gold.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=lime.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=orange.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
|
@@ -196,6 +196,7 @@ vxe-table
|
|
|
196
196
|
--layout-header-active-color: #fff;
|
|
197
197
|
--layout-header-nav-color: rgba(255, 255, 255, 0.7);
|
|
198
198
|
--layout-header-nav-active-color: #fff;
|
|
199
|
+
--layout-header-nav-active-font-weight: normal;
|
|
199
200
|
--layout-header-nav-active-background-begin: rgba(255, 255, 255, 0.4);
|
|
200
201
|
--layout-header-nav-active-background-end: rgba(255, 255, 255, 0);
|
|
201
202
|
--layout-header-drop-color: rgba(255, 255, 255, 0.7);
|
|
@@ -570,4 +571,3 @@ vxe-table
|
|
|
570
571
|
--content-header-bg-color: #fff;
|
|
571
572
|
--content-header-font-weight: 500;
|
|
572
573
|
}
|
|
573
|
-
/*# sourceMappingURL=red.css.map */
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
--layout-header-active-color : @layout-header-active-color;
|
|
212
212
|
--layout-header-nav-color : @layout-header-nav-color;
|
|
213
213
|
--layout-header-nav-active-color : @layout-header-nav-active-color;
|
|
214
|
+
--layout-header-nav-active-font-weight : @layout-header-nav-active-font-weight;
|
|
214
215
|
--layout-header-nav-active-background-begin : @layout-header-nav-active-background-begin;
|
|
215
216
|
--layout-header-nav-active-background-end : @layout-header-nav-active-background-end;
|
|
216
217
|
--layout-header-drop-color : @layout-header-drop-color;
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
@layout-header-active-color : @white;
|
|
209
209
|
@layout-header-nav-color : @menu-dark-subsidiary-color;
|
|
210
210
|
@layout-header-nav-active-color : @white;
|
|
211
|
+
@layout-header-nav-active-font-weight : normal;
|
|
211
212
|
@layout-header-nav-active-background-begin : rgba(255, 255, 255, 0.4);
|
|
212
213
|
@layout-header-nav-active-background-end : rgba(255, 255, 255, 0);
|
|
213
214
|
@layout-header-drop-color : @menu-dark-subsidiary-color;
|
package/package.json
CHANGED
package/utils/storage.js
CHANGED
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2019 WeBank
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/* \
|
|
19
|
-
|*|
|
|
20
|
-
|*| :: cookies.js ::
|
|
21
|
-
|*|
|
|
22
|
-
|*| A complete cookies reader/writer framework with full unicode support.
|
|
23
|
-
|*|
|
|
24
|
-
|*| https://developer.mozilla.org/en-US/docs/DOM/document.cookie
|
|
25
|
-
|*|
|
|
26
|
-
|*| This framework is released under the GNU Public License, version 3 or later.
|
|
27
|
-
|*| http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
|
28
|
-
|*|
|
|
29
|
-
|*| Syntaxes:
|
|
30
|
-
|*|
|
|
31
|
-
|*| * docCookies.setItem(name, value[, end[, path[, domain[, secure]]]])
|
|
32
|
-
|*| * docCookies.getItem(name)
|
|
33
|
-
|*| * docCookies.removeItem(name[, path], domain)
|
|
34
|
-
|*| * docCookies.hasItem(name)
|
|
35
|
-
|*| * docCookies.keys()
|
|
36
|
-
|*|
|
|
37
|
-
\ */
|
|
38
|
-
|
|
39
|
-
let docCookies = {
|
|
40
|
-
getItem: function(sKey) {
|
|
41
|
-
return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null;
|
|
42
|
-
},
|
|
43
|
-
setItem: function(sKey, sValue, vEnd, sPath, sDomain, bSecure) {
|
|
44
|
-
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
let sExpires = '';
|
|
48
|
-
if (vEnd) {
|
|
49
|
-
switch (vEnd.constructor) {
|
|
50
|
-
case Number:
|
|
51
|
-
sExpires = vEnd === Infinity ? '; expires=Fri, 31 Dec 9999 23:59:59 GMT' : '; max-age=' + vEnd;
|
|
52
|
-
break;
|
|
53
|
-
case String:
|
|
54
|
-
sExpires = '; expires=' + vEnd;
|
|
55
|
-
break;
|
|
56
|
-
case Date:
|
|
57
|
-
sExpires = '; expires=' + vEnd.toUTCString();
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
document.cookie = encodeURIComponent(sKey) + '=' + encodeURIComponent(sValue) + sExpires + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '') + (bSecure ? '; secure' : '');
|
|
62
|
-
return true;
|
|
63
|
-
},
|
|
64
|
-
removeItem: function(sKey, sPath, sDomain) {
|
|
65
|
-
if (!sKey || !this.hasItem(sKey)) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
document.cookie = encodeURIComponent(sKey) + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '');
|
|
69
|
-
return true;
|
|
70
|
-
},
|
|
71
|
-
hasItem: function(sKey) {
|
|
72
|
-
return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie);
|
|
73
|
-
},
|
|
74
|
-
keys: /* optional method: you can safely remove it! */ function() {
|
|
75
|
-
let aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, '').split(/\s*(?:\=[^;]*)?;\s*/);
|
|
76
|
-
for (let nIdx = 0; nIdx < aKeys.length; nIdx++) {
|
|
77
|
-
aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
|
|
78
|
-
}
|
|
79
|
-
return aKeys;
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* 操作cookie、sessionStorage、localStorage、缓存
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
SESSION = 'session';
|
|
89
|
-
|
|
90
|
-
const LOCAL = 'local';
|
|
91
|
-
|
|
92
|
-
const COOKIE = 'cookie';
|
|
93
|
-
|
|
94
|
-
export default {
|
|
95
|
-
set: function(key, value, category = SESSION, expired) {
|
|
96
|
-
let { storage, isWebStorage = true } = this._map(category);
|
|
97
|
-
|
|
98
|
-
if (isWebStorage) {
|
|
99
|
-
storageManager.set(key, value, storage);
|
|
100
|
-
} else {
|
|
101
|
-
cookieManager.set(key, value, expired);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
get: function(key, category = SESSION) {
|
|
105
|
-
let { storage, isWebStorage = true } = this._map(category);
|
|
106
|
-
|
|
107
|
-
if (isWebStorage) {
|
|
108
|
-
return storageManager.get(key, storage);
|
|
109
|
-
} else {
|
|
110
|
-
return cookieManager.get(key);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
clear: function(category = SESSION) {
|
|
114
|
-
let { storage, isWebStorage = true } = this._map(category);
|
|
115
|
-
|
|
116
|
-
if (isWebStorage) {
|
|
117
|
-
storageManager.clear(storage);
|
|
118
|
-
} else {
|
|
119
|
-
cookieManager.clear();
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
remove: function(key, category = SESSION) {
|
|
123
|
-
let { storage, isWebStorage = true } = this._map(category);
|
|
124
|
-
|
|
125
|
-
if (isWebStorage) {
|
|
126
|
-
storageManager.remove(key, storage);
|
|
127
|
-
} else {
|
|
128
|
-
cookieManager.remove(key);
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
_map: function(category) {
|
|
132
|
-
let isWebStorage = true; let storage;
|
|
133
|
-
|
|
134
|
-
switch (true) {
|
|
135
|
-
case category === SESSION:
|
|
136
|
-
storage = 'sessionStorage';
|
|
137
|
-
break;
|
|
138
|
-
case category === LOCAL:
|
|
139
|
-
storage = 'localStorage';
|
|
140
|
-
break;
|
|
141
|
-
case category === COOKIE:
|
|
142
|
-
storage = 'cookie';
|
|
143
|
-
isWebStorage = false;
|
|
144
|
-
break;
|
|
145
|
-
default:
|
|
146
|
-
storage = 'sessionStorage';
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return { isWebStorage, storage };
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
let isProd = process.env.NODE_ENV === 'production';
|
|
154
|
-
|
|
155
|
-
export const storageManager = {
|
|
156
|
-
set: function(key, value, storage) {
|
|
157
|
-
try {
|
|
158
|
-
window[storage].setItem(key, JSON.stringify(value));
|
|
159
|
-
} catch (e) {
|
|
160
|
-
!isProd && console.error(e);
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
get: function(key, storage) {
|
|
164
|
-
try {
|
|
165
|
-
if (window[storage].getItem(key)) {
|
|
166
|
-
return JSON.parse(window[storage].getItem(key));
|
|
167
|
-
} else {
|
|
168
|
-
return window[storage].getItem(key);
|
|
169
|
-
}
|
|
170
|
-
} catch (e) {
|
|
171
|
-
!isProd && console.error(e, key);
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
clear: function(storage) {
|
|
175
|
-
window[storage].clear();
|
|
176
|
-
},
|
|
177
|
-
remove: function(key, storage) {
|
|
178
|
-
window[storage].removeItem(key);
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export const cookieManager = {
|
|
183
|
-
set: function(key, value, expired) {
|
|
184
|
-
if (expired) docCookies.setItem(key, value, expired);
|
|
185
|
-
else docCookies.setItem(key, value);
|
|
186
|
-
},
|
|
187
|
-
get: function(key) {
|
|
188
|
-
return docCookies.getItem(key);
|
|
189
|
-
},
|
|
190
|
-
clear: function() {
|
|
191
|
-
docCookies.keys().forEach((key) => {
|
|
192
|
-
docCookies.removeItem(key);
|
|
193
|
-
});
|
|
194
|
-
},
|
|
195
|
-
remove: function(key) {
|
|
196
|
-
docCookies.removeItem(key);
|
|
197
|
-
},
|
|
198
|
-
};
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019 WeBank
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* \
|
|
19
|
+
|*|
|
|
20
|
+
|*| :: cookies.js ::
|
|
21
|
+
|*|
|
|
22
|
+
|*| A complete cookies reader/writer framework with full unicode support.
|
|
23
|
+
|*|
|
|
24
|
+
|*| https://developer.mozilla.org/en-US/docs/DOM/document.cookie
|
|
25
|
+
|*|
|
|
26
|
+
|*| This framework is released under the GNU Public License, version 3 or later.
|
|
27
|
+
|*| http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
|
28
|
+
|*|
|
|
29
|
+
|*| Syntaxes:
|
|
30
|
+
|*|
|
|
31
|
+
|*| * docCookies.setItem(name, value[, end[, path[, domain[, secure]]]])
|
|
32
|
+
|*| * docCookies.getItem(name)
|
|
33
|
+
|*| * docCookies.removeItem(name[, path], domain)
|
|
34
|
+
|*| * docCookies.hasItem(name)
|
|
35
|
+
|*| * docCookies.keys()
|
|
36
|
+
|*|
|
|
37
|
+
\ */
|
|
38
|
+
|
|
39
|
+
let docCookies = {
|
|
40
|
+
getItem: function(sKey) {
|
|
41
|
+
return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null;
|
|
42
|
+
},
|
|
43
|
+
setItem: function(sKey, sValue, vEnd, sPath, sDomain, bSecure) {
|
|
44
|
+
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
let sExpires = '';
|
|
48
|
+
if (vEnd) {
|
|
49
|
+
switch (vEnd.constructor) {
|
|
50
|
+
case Number:
|
|
51
|
+
sExpires = vEnd === Infinity ? '; expires=Fri, 31 Dec 9999 23:59:59 GMT' : '; max-age=' + vEnd;
|
|
52
|
+
break;
|
|
53
|
+
case String:
|
|
54
|
+
sExpires = '; expires=' + vEnd;
|
|
55
|
+
break;
|
|
56
|
+
case Date:
|
|
57
|
+
sExpires = '; expires=' + vEnd.toUTCString();
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
document.cookie = encodeURIComponent(sKey) + '=' + encodeURIComponent(sValue) + sExpires + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '') + (bSecure ? '; secure' : '');
|
|
62
|
+
return true;
|
|
63
|
+
},
|
|
64
|
+
removeItem: function(sKey, sPath, sDomain) {
|
|
65
|
+
if (!sKey || !this.hasItem(sKey)) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
document.cookie = encodeURIComponent(sKey) + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '');
|
|
69
|
+
return true;
|
|
70
|
+
},
|
|
71
|
+
hasItem: function(sKey) {
|
|
72
|
+
return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie);
|
|
73
|
+
},
|
|
74
|
+
keys: /* optional method: you can safely remove it! */ function() {
|
|
75
|
+
let aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, '').split(/\s*(?:\=[^;]*)?;\s*/);
|
|
76
|
+
for (let nIdx = 0; nIdx < aKeys.length; nIdx++) {
|
|
77
|
+
aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
|
|
78
|
+
}
|
|
79
|
+
return aKeys;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 操作cookie、sessionStorage、localStorage、缓存
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
const
|
|
88
|
+
SESSION = 'session';
|
|
89
|
+
|
|
90
|
+
const LOCAL = 'local';
|
|
91
|
+
|
|
92
|
+
const COOKIE = 'cookie';
|
|
93
|
+
|
|
94
|
+
export default {
|
|
95
|
+
set: function(key, value, category = SESSION, expired) {
|
|
96
|
+
let { storage, isWebStorage = true } = this._map(category);
|
|
97
|
+
|
|
98
|
+
if (isWebStorage) {
|
|
99
|
+
storageManager.set(key, value, storage);
|
|
100
|
+
} else {
|
|
101
|
+
cookieManager.set(key, value, expired);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
get: function(key, category = SESSION) {
|
|
105
|
+
let { storage, isWebStorage = true } = this._map(category);
|
|
106
|
+
|
|
107
|
+
if (isWebStorage) {
|
|
108
|
+
return storageManager.get(key, storage);
|
|
109
|
+
} else {
|
|
110
|
+
return cookieManager.get(key);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
clear: function(category = SESSION) {
|
|
114
|
+
let { storage, isWebStorage = true } = this._map(category);
|
|
115
|
+
|
|
116
|
+
if (isWebStorage) {
|
|
117
|
+
storageManager.clear(storage);
|
|
118
|
+
} else {
|
|
119
|
+
cookieManager.clear();
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
remove: function(key, category = SESSION) {
|
|
123
|
+
let { storage, isWebStorage = true } = this._map(category);
|
|
124
|
+
|
|
125
|
+
if (isWebStorage) {
|
|
126
|
+
storageManager.remove(key, storage);
|
|
127
|
+
} else {
|
|
128
|
+
cookieManager.remove(key);
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
_map: function(category) {
|
|
132
|
+
let isWebStorage = true; let storage;
|
|
133
|
+
|
|
134
|
+
switch (true) {
|
|
135
|
+
case category === SESSION:
|
|
136
|
+
storage = 'sessionStorage';
|
|
137
|
+
break;
|
|
138
|
+
case category === LOCAL:
|
|
139
|
+
storage = 'localStorage';
|
|
140
|
+
break;
|
|
141
|
+
case category === COOKIE:
|
|
142
|
+
storage = 'cookie';
|
|
143
|
+
isWebStorage = false;
|
|
144
|
+
break;
|
|
145
|
+
default:
|
|
146
|
+
storage = 'sessionStorage';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return { isWebStorage, storage };
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
let isProd = process.env.NODE_ENV === 'production';
|
|
154
|
+
|
|
155
|
+
export const storageManager = {
|
|
156
|
+
set: function(key, value, storage) {
|
|
157
|
+
try {
|
|
158
|
+
window[storage].setItem(key, JSON.stringify(value));
|
|
159
|
+
} catch (e) {
|
|
160
|
+
!isProd && console.error(e);
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
get: function(key, storage) {
|
|
164
|
+
try {
|
|
165
|
+
if (window[storage].getItem(key)) {
|
|
166
|
+
return JSON.parse(window[storage].getItem(key));
|
|
167
|
+
} else {
|
|
168
|
+
return window[storage].getItem(key);
|
|
169
|
+
}
|
|
170
|
+
} catch (e) {
|
|
171
|
+
!isProd && console.error(e, key);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
clear: function(storage) {
|
|
175
|
+
window[storage].clear();
|
|
176
|
+
},
|
|
177
|
+
remove: function(key, storage) {
|
|
178
|
+
window[storage].removeItem(key);
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export const cookieManager = {
|
|
183
|
+
set: function(key, value, expired) {
|
|
184
|
+
if (expired) docCookies.setItem(key, value, expired);
|
|
185
|
+
else docCookies.setItem(key, value);
|
|
186
|
+
},
|
|
187
|
+
get: function(key) {
|
|
188
|
+
return docCookies.getItem(key);
|
|
189
|
+
},
|
|
190
|
+
clear: function() {
|
|
191
|
+
docCookies.keys().forEach((key) => {
|
|
192
|
+
docCookies.removeItem(key);
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
remove: function(key) {
|
|
196
|
+
docCookies.removeItem(key);
|
|
197
|
+
},
|
|
198
|
+
};
|
package/utils/theme.js
CHANGED
|
@@ -68,7 +68,8 @@ const changeThemeByThemeId = (themeId, status, filterStatus, systemForm) => {
|
|
|
68
68
|
}
|
|
69
69
|
// 记录当前主题
|
|
70
70
|
if (typeof window !== 'undefined') {
|
|
71
|
-
localStorage.setItem('themeIdCurrent', themeId)
|
|
71
|
+
// localStorage.setItem('themeIdCurrent', themeId)
|
|
72
|
+
localStorage.setItem('themeIdCurrent', themeId+'-'+status+'-'+filterStatus)
|
|
72
73
|
}
|
|
73
74
|
// 顶部栏背景图处理
|
|
74
75
|
let background_image = config.upmsServerContext + '/anon/oss/file/getImage/' + systemForm.topBkImg + '?height=64&width=1920'
|
package/utils/type.js
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2019 WeBank
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
const objectToString = Object.prototype.toString;
|
|
19
|
-
const OBJECT_STRING = '[object Object]';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 是否是普通对象
|
|
23
|
-
* @param {any} obj
|
|
24
|
-
* @return {Boolean}
|
|
25
|
-
*/
|
|
26
|
-
export function isPlainObject(obj) {
|
|
27
|
-
return objectToString.call(obj) === OBJECT_STRING;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 是否是数字
|
|
32
|
-
* @param {any} value
|
|
33
|
-
* @return {Boolean}
|
|
34
|
-
*/
|
|
35
|
-
export function isNumber(value) {
|
|
36
|
-
return typeof value === 'number';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 是否是日期
|
|
41
|
-
* @param {any} value
|
|
42
|
-
* @return {Boolean}
|
|
43
|
-
*/
|
|
44
|
-
export function isDate(value) {
|
|
45
|
-
return objectToString.call(value) === '[object Date]';
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 是否是函数
|
|
50
|
-
* @param {any} value
|
|
51
|
-
* @return {Boolean}
|
|
52
|
-
*/
|
|
53
|
-
export function isFunction(value) {
|
|
54
|
-
return typeof value === 'function';
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 是否是函数
|
|
59
|
-
* @param {any} value
|
|
60
|
-
* @return {Boolean}
|
|
61
|
-
*/
|
|
62
|
-
export function isObject(value) {
|
|
63
|
-
let type = typeof value;
|
|
64
|
-
return !!value && (type == 'object' || type == 'function');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* 是否是数组
|
|
69
|
-
* @param {any} value
|
|
70
|
-
* @return {Boolean}
|
|
71
|
-
*/
|
|
72
|
-
export function isArray(value) {
|
|
73
|
-
return Array.isArray(value);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* 是否像对象
|
|
78
|
-
* @param {any} value
|
|
79
|
-
* @return {Boolean}
|
|
80
|
-
*/
|
|
81
|
-
export function isObjectLike(value) {
|
|
82
|
-
return !!value && typeof value == 'object';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 是否是字符串
|
|
87
|
-
* @param {any} value
|
|
88
|
-
* @return {Boolean}
|
|
89
|
-
*/
|
|
90
|
-
export function isString(value) {
|
|
91
|
-
return typeof value == 'string' ||
|
|
92
|
-
(!isArray(value) && isObjectLike(value) && objectToString.call(value) == '[object String]');
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 是否是空的
|
|
97
|
-
* @param {any} value
|
|
98
|
-
* @return {Boolean}
|
|
99
|
-
*/
|
|
100
|
-
export function isNull(value) {
|
|
101
|
-
return value === undefined || value === null || value === '';
|
|
102
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019 WeBank
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const objectToString = Object.prototype.toString;
|
|
19
|
+
const OBJECT_STRING = '[object Object]';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 是否是普通对象
|
|
23
|
+
* @param {any} obj
|
|
24
|
+
* @return {Boolean}
|
|
25
|
+
*/
|
|
26
|
+
export function isPlainObject(obj) {
|
|
27
|
+
return objectToString.call(obj) === OBJECT_STRING;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 是否是数字
|
|
32
|
+
* @param {any} value
|
|
33
|
+
* @return {Boolean}
|
|
34
|
+
*/
|
|
35
|
+
export function isNumber(value) {
|
|
36
|
+
return typeof value === 'number';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 是否是日期
|
|
41
|
+
* @param {any} value
|
|
42
|
+
* @return {Boolean}
|
|
43
|
+
*/
|
|
44
|
+
export function isDate(value) {
|
|
45
|
+
return objectToString.call(value) === '[object Date]';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 是否是函数
|
|
50
|
+
* @param {any} value
|
|
51
|
+
* @return {Boolean}
|
|
52
|
+
*/
|
|
53
|
+
export function isFunction(value) {
|
|
54
|
+
return typeof value === 'function';
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 是否是函数
|
|
59
|
+
* @param {any} value
|
|
60
|
+
* @return {Boolean}
|
|
61
|
+
*/
|
|
62
|
+
export function isObject(value) {
|
|
63
|
+
let type = typeof value;
|
|
64
|
+
return !!value && (type == 'object' || type == 'function');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 是否是数组
|
|
69
|
+
* @param {any} value
|
|
70
|
+
* @return {Boolean}
|
|
71
|
+
*/
|
|
72
|
+
export function isArray(value) {
|
|
73
|
+
return Array.isArray(value);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 是否像对象
|
|
78
|
+
* @param {any} value
|
|
79
|
+
* @return {Boolean}
|
|
80
|
+
*/
|
|
81
|
+
export function isObjectLike(value) {
|
|
82
|
+
return !!value && typeof value == 'object';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 是否是字符串
|
|
87
|
+
* @param {any} value
|
|
88
|
+
* @return {Boolean}
|
|
89
|
+
*/
|
|
90
|
+
export function isString(value) {
|
|
91
|
+
return typeof value == 'string' ||
|
|
92
|
+
(!isArray(value) && isObjectLike(value) && objectToString.call(value) == '[object String]');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 是否是空的
|
|
97
|
+
* @param {any} value
|
|
98
|
+
* @return {Boolean}
|
|
99
|
+
*/
|
|
100
|
+
export function isNull(value) {
|
|
101
|
+
return value === undefined || value === null || value === '';
|
|
102
|
+
}
|
package/utils/crypto/aes.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as CryptoJS from 'crypto-js';
|
|
2
|
-
|
|
3
|
-
const AES_KEY = 'gYj2iqBV5AzxC8H0';
|
|
4
|
-
const AES_IV = 'z5c8fSuHX1PxWtIg';
|
|
5
|
-
|
|
6
|
-
crypto.aes = {
|
|
7
|
-
encrypt(message) {
|
|
8
|
-
return CryptoJS.AES.encrypt(message, AES_KEY, {
|
|
9
|
-
mode: CryptoJS.mode.CBC,
|
|
10
|
-
padding: CryptoJS.pad.Pkcs7,
|
|
11
|
-
iv: AES_IV
|
|
12
|
-
})
|
|
13
|
-
},
|
|
14
|
-
decrypt(ciphertext) {
|
|
15
|
-
return CryptoJS.AES.decrypt(ciphertext, AES_KEY, {
|
|
16
|
-
mode: CryptoJS.mode.CBC,
|
|
17
|
-
padding: CryptoJS.pad.Pkcs7,
|
|
18
|
-
iv: AES_IV
|
|
19
|
-
}).toString(CryptoJS.enc.Utf8)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default crypto.aes;
|
package/utils/crypto/rsa.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import NodeRSA from "node-rsa";
|
|
2
|
-
|
|
3
|
-
const publicKey = `-----BEGIN PUBLIC KEY-----
|
|
4
|
-
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyhhlApSAjPWRjzg+wSIfALbrC
|
|
5
|
-
Ti4GVBYYBjfMYKU0O9z6EGQAXSLPW+S4VYm4LKtKXuKoeF441KU2HvnGM63cTIYt
|
|
6
|
-
T4lGbTGeYfsbeWNs1u9G9J+DrfKK8HsVB1IZIqhbMf0x7KGMeoQ2SN4KtbaPIwhl
|
|
7
|
-
IPfXzuLZiCW90l+a/wIDAQAB
|
|
8
|
-
-----END PUBLIC KEY-----`;
|
|
9
|
-
|
|
10
|
-
// 创建NodeRSA实例并指定公钥格式
|
|
11
|
-
const key = new NodeRSA(publicKey, "pkcs8-public");
|
|
12
|
-
|
|
13
|
-
// 加密函数
|
|
14
|
-
function rsa(data) {
|
|
15
|
-
return key.encrypt(data, "base64");
|
|
16
|
-
}
|