@lambo-design/shared 1.0.0-beta.61 → 1.0.0-beta.63
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.
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
@head-bg : #f9fafc;
|
|
106
106
|
@table-thead-bg : #41a5fa;
|
|
107
107
|
@table-td-stripe-bg : #f2fafe;
|
|
108
|
-
@table-td-hover-bg : #
|
|
108
|
+
@table-td-hover-bg : #eaf4fe;
|
|
109
109
|
@table-td-highlight-bg : #55B1E3;
|
|
110
110
|
@menu-dark-title : #333333;
|
|
111
111
|
@menu-dark-active-bg : #363e4f;
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
--head-bg: #f9fafc;
|
|
88
88
|
--table-thead-bg: #41a5fa;
|
|
89
89
|
--table-td-stripe-bg: #f2fafe;
|
|
90
|
-
--table-td-hover-bg: #
|
|
90
|
+
--table-td-hover-bg: #eaf4fe;
|
|
91
91
|
--table-td-highlight-bg: #55B1E3;
|
|
92
92
|
--menu-dark-title: #333333;
|
|
93
93
|
--menu-dark-active-bg: #363e4f;
|
package/package.json
CHANGED
package/utils/base64.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2
|
+
//客户端Base64编码
|
|
3
|
+
function base64encode(str) {
|
|
4
|
+
var out, i, len;
|
|
5
|
+
var c1, c2, c3;
|
|
6
|
+
|
|
7
|
+
len = str.length;
|
|
8
|
+
i = 0;
|
|
9
|
+
out = "";
|
|
10
|
+
while(i < len) {
|
|
11
|
+
c1 = str.charCodeAt(i++) & 0xff;
|
|
12
|
+
if(i == len)
|
|
13
|
+
{
|
|
14
|
+
out += base64EncodeChars.charAt(c1 >> 2);
|
|
15
|
+
out += base64EncodeChars.charAt((c1 & 0x3) << 4);
|
|
16
|
+
out += "==";
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
c2 = str.charCodeAt(i++);
|
|
20
|
+
if(i == len)
|
|
21
|
+
{
|
|
22
|
+
out += base64EncodeChars.charAt(c1 >> 2);
|
|
23
|
+
out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
|
|
24
|
+
out += base64EncodeChars.charAt((c2 & 0xF) << 2);
|
|
25
|
+
out += "=";
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
c3 = str.charCodeAt(i++);
|
|
29
|
+
out += base64EncodeChars.charAt(c1 >> 2);
|
|
30
|
+
out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
|
|
31
|
+
out += base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6));
|
|
32
|
+
out += base64EncodeChars.charAt(c3 & 0x3F);
|
|
33
|
+
}
|
|
34
|
+
return out;
|
|
35
|
+
}
|