renusify 1.0.6 → 1.0.8
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/components/app/index.vue +23 -32
- package/components/app/style.scss +7 -18
- package/components/bar/bottomNavigationCircle.vue +75 -81
- package/components/bar/scss/bottomNav.scss +4 -13
- package/components/bar/scss/toolbar.scss +4 -9
- package/components/breadcrumb/style.scss +3 -9
- package/components/button/buttonConfirm.vue +44 -0
- package/components/button/style.scss +13 -38
- package/components/calendar/index.vue +5 -35
- package/components/card/style.scss +8 -17
- package/components/chat/chatInput.vue +4 -10
- package/components/chat/chatMsg.vue +222 -225
- package/components/chat/index.vue +104 -109
- package/components/chip/style.scss +27 -33
- package/components/container/style.scss +9 -11
- package/components/form/camInput.vue +1 -1
- package/components/form/checkbox.vue +115 -121
- package/components/form/colorPicker/picker.vue +9 -24
- package/components/form/datePicker/index.vue +9 -42
- package/components/form/fileUploader/single.vue +196 -197
- package/components/form/inputTel/index.vue +3 -7
- package/components/form/radioInput.vue +3 -9
- package/components/form/scss/input.scss +4 -29
- package/components/form/scss/rating.scss +1 -6
- package/components/form/scss/switch.scss +1 -6
- package/components/form/text-editor/style.scss +4 -22
- package/components/form/timepicker/timepicker.vue +11 -16
- package/components/form/unit-input.vue +98 -101
- package/components/icon/style.scss +2 -6
- package/components/index.js +2 -0
- package/components/infinite/index.vue +1 -1
- package/components/list/style.scss +2 -16
- package/components/map/route.vue +1 -1
- package/components/menu/index.vue +4 -15
- package/components/modal/style.scss +3 -12
- package/components/progress/style.scss +5 -21
- package/components/skeleton/index.vue +77 -0
- package/components/swiper/index.vue +8 -4
- package/components/table/style.scss +19 -111
- package/components/tabs/index.vue +116 -130
- package/components/timeline/index.vue +13 -18
- package/components/tree/index.vue +11 -15
- package/index.js +0 -1
- package/package.json +1 -1
- package/plugins/trans/Translate.js +1 -0
- package/style/app.scss +7 -71
- package/style/colors.scss +49 -73
- package/style/mixins/index.scss +0 -12
- package/style/variables/color.scss +8 -9
- package/tools/helper.js +15 -1
- package/components/skeletonLoader/index.vue +0 -42
package/style/app.scss
CHANGED
|
@@ -41,8 +41,8 @@ body {
|
|
|
41
41
|
background: rgba(100, 100, 100, 0.6);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
$color: var(--color-two
|
|
45
|
-
$color-text: var(--color-two-text
|
|
44
|
+
$color: var(--color-two);
|
|
45
|
+
$color-text: var(--color-two-text);
|
|
46
46
|
|
|
47
47
|
::-moz-selection {
|
|
48
48
|
color: $color-text;
|
|
@@ -54,33 +54,6 @@ $color-text: var(--color-two-text-light);
|
|
|
54
54
|
background: $color;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.app-dark {
|
|
58
|
-
::-webkit-scrollbar-track:hover {
|
|
59
|
-
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::-webkit-scrollbar-thumb {
|
|
63
|
-
background: rgba(255, 255, 255, 0.4);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
::-webkit-scrollbar-thumb:hover {
|
|
67
|
-
background: rgba(255, 255, 255, 0.8);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
$color: var(--color-two-dark);
|
|
71
|
-
$color-text: var(--color-two-text-dark);
|
|
72
|
-
|
|
73
|
-
::-moz-selection {
|
|
74
|
-
color: $color-text;
|
|
75
|
-
background: $color;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
::selection {
|
|
79
|
-
color: $color-text;
|
|
80
|
-
background: $color;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
57
|
.#{$prefix}app {
|
|
85
58
|
font-family: $body-font-family;
|
|
86
59
|
line-height: $line-height-root;
|
|
@@ -109,12 +82,7 @@ $color-text: var(--color-two-text-light);
|
|
|
109
82
|
}
|
|
110
83
|
|
|
111
84
|
.router-link-exact-active {
|
|
112
|
-
|
|
113
|
-
color: var(--color-link-dark);
|
|
114
|
-
}
|
|
115
|
-
@include light() {
|
|
116
|
-
color: var(--color-link-light)
|
|
117
|
-
}
|
|
85
|
+
color: var(--color-link)
|
|
118
86
|
}
|
|
119
87
|
|
|
120
88
|
//curser
|
|
@@ -214,13 +182,7 @@ $color-text: var(--color-two-text-light);
|
|
|
214
182
|
}
|
|
215
183
|
|
|
216
184
|
.subtitle-1, .subtitle-2, .body-2, .caption, .overline {
|
|
217
|
-
@include
|
|
218
|
-
@include text-color(var(--color-text-secondary-light));
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
@include dark() {
|
|
222
|
-
@include text-color(var(--color-text-secondary-dark));
|
|
223
|
-
}
|
|
185
|
+
@include text-color(var(--color-text-secondary));
|
|
224
186
|
}
|
|
225
187
|
|
|
226
188
|
//width
|
|
@@ -292,18 +254,9 @@ $color-text: var(--color-two-text-light);
|
|
|
292
254
|
margin: 0 15px;
|
|
293
255
|
}
|
|
294
256
|
|
|
295
|
-
@include light() {
|
|
296
|
-
$color: var(--color-one-light);
|
|
297
257
|
pre {
|
|
298
|
-
border-left: 5px solid
|
|
258
|
+
border-left: 5px solid var(--color-one);
|
|
299
259
|
}
|
|
300
|
-
}
|
|
301
|
-
@include dark() {
|
|
302
|
-
$color: var(--color-one-dark);
|
|
303
|
-
pre {
|
|
304
|
-
border-left: 5px solid $color;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
260
|
|
|
308
261
|
pre {
|
|
309
262
|
direction: ltr;
|
|
@@ -333,36 +286,19 @@ $color-text: var(--color-two-text-light);
|
|
|
333
286
|
color: white;
|
|
334
287
|
}
|
|
335
288
|
|
|
336
|
-
@include light() {
|
|
337
289
|
$background: #e2ece2;
|
|
338
290
|
blockquote {
|
|
339
291
|
background-color: $background;
|
|
340
|
-
border: 5px solid var(--color-one
|
|
341
|
-
|
|
342
|
-
&::before {
|
|
343
|
-
background-color: $background;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
&::after {
|
|
347
|
-
color: var(--color-one-light);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
@include dark() {
|
|
352
|
-
$background: #3a3e3a;
|
|
353
|
-
blockquote {
|
|
354
|
-
background-color: $background;
|
|
355
|
-
border: 5px solid var(--color-one-dark);
|
|
292
|
+
border: 5px solid var(--color-one);
|
|
356
293
|
|
|
357
294
|
&::before {
|
|
358
295
|
background-color: $background;
|
|
359
296
|
}
|
|
360
297
|
|
|
361
298
|
&::after {
|
|
362
|
-
color: var(--color-one
|
|
299
|
+
color: var(--color-one);
|
|
363
300
|
}
|
|
364
301
|
}
|
|
365
|
-
}
|
|
366
302
|
|
|
367
303
|
blockquote {
|
|
368
304
|
font-family: Georgia, Times, "Times New Roman", serif;
|
package/style/colors.scss
CHANGED
|
@@ -1,42 +1,37 @@
|
|
|
1
1
|
@import "./_include";
|
|
2
2
|
|
|
3
3
|
$colorsList: (
|
|
4
|
-
'one':
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'background-
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'text-
|
|
18
|
-
'text-
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'table-active': ('l':#f5f5f5, 'd':#505050),
|
|
28
|
-
'table-hover': ('l':#eeeeee, 'd':#616161),
|
|
29
|
-
'overlay': ('l':rgba(225, 225, 225, 0.5), 'd':rgba(80, 80, 80, 0.5)),
|
|
4
|
+
'one': #00acc1,
|
|
5
|
+
'one_l': #5ddef4,
|
|
6
|
+
'one_d': #007c91,
|
|
7
|
+
'two': #e8098f,
|
|
8
|
+
'error':#D50000,
|
|
9
|
+
'info':#0878f6,
|
|
10
|
+
'warning':#fbc02d,
|
|
11
|
+
'success':#04c40d,
|
|
12
|
+
'link':#4f98ec,
|
|
13
|
+
'background-one':#fafafa,
|
|
14
|
+
'background-two':#e0e0e0,
|
|
15
|
+
'divider':rgba(#444, 0.2),
|
|
16
|
+
'text-primary':#515151,
|
|
17
|
+
'text-secondary':#888,
|
|
18
|
+
'text-disabled':rgba(#000, 0.26),
|
|
19
|
+
'disabled':rgba(#000, 0.26),
|
|
20
|
+
'focused':rgba(#000, 0.12),
|
|
21
|
+
'pressed':rgba(#999, 0.4),
|
|
22
|
+
'border': rgba(#000, 0.24),
|
|
23
|
+
'sheet': #fff,
|
|
24
|
+
'table-active': #f5f5f5,
|
|
25
|
+
'table-hover': #eeeeee,
|
|
26
|
+
'overlay': rgba(225, 225, 225, 0.5)
|
|
30
27
|
) !default;
|
|
31
28
|
|
|
32
29
|
:root {
|
|
33
30
|
@each $color_name, $color_value in $colorsList {
|
|
34
|
-
--color-#{$color_name}
|
|
35
|
-
--color-#{$color_name}-dark: #{map_get($color_value, 'd')}
|
|
31
|
+
--color-#{$color_name}: #{$color_value};
|
|
36
32
|
}
|
|
37
33
|
@each $color_name, $color_value in $colorMain {
|
|
38
|
-
--color-#{$color_name}-text
|
|
39
|
-
--color-#{$color_name}-text-dark: #{map_get($color_value, 'd')};
|
|
34
|
+
--color-#{$color_name}-text: #{$color_value};
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
|
|
@@ -76,60 +71,41 @@ $colorsList: (
|
|
|
76
71
|
}
|
|
77
72
|
|
|
78
73
|
@each $color_name, $color_value in $colorMain {
|
|
79
|
-
.
|
|
80
|
-
@include background-color(var(--color-#{$color_name}
|
|
81
|
-
@include text-color(var(--color-#{$color_name}-text
|
|
74
|
+
.color-#{$color_name} {
|
|
75
|
+
@include background-color(var(--color-#{$color_name}), true);
|
|
76
|
+
@include text-color(var(--color-#{$color_name}-text));
|
|
82
77
|
}
|
|
83
|
-
.
|
|
84
|
-
@include text-color(var(--color-#{$color_name}
|
|
78
|
+
.color-#{$color_name}-text {
|
|
79
|
+
@include text-color(var(--color-#{$color_name}), true);
|
|
85
80
|
}
|
|
86
|
-
.app-dark .color-#{$color_name} {
|
|
87
|
-
@include background-color(var(--color-#{$color_name}-dark), true);
|
|
88
|
-
@include text-color(var(--color-#{$color_name}-text-dark));
|
|
89
|
-
}
|
|
90
|
-
.app-dark .color-#{$color_name}-text {
|
|
91
|
-
@include text-color(var(--color-#{$color_name}-dark), true);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.shadow-info{
|
|
95
|
-
--box-shadow: rgba(10, 150, 250, 0.2)
|
|
96
|
-
}
|
|
97
|
-
.shadow-success{
|
|
98
|
-
--box-shadow: rgba(50, 250, 10, 0.2)
|
|
99
81
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.shadow-warning{
|
|
104
|
-
--box-shadow: rgba(250, 150, 10, 0.2)
|
|
82
|
+
|
|
83
|
+
.shadow-info {
|
|
84
|
+
--box-shadow: rgba(10, 150, 250, 0.2)
|
|
105
85
|
}
|
|
106
86
|
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
87
|
+
.shadow-success {
|
|
88
|
+
--box-shadow: rgba(50, 250, 10, 0.2)
|
|
89
|
+
}
|
|
111
90
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
91
|
+
.shadow-error {
|
|
92
|
+
--box-shadow: rgba(255, 10, 30, 0.2)
|
|
93
|
+
}
|
|
115
94
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
95
|
+
.shadow-warning {
|
|
96
|
+
--box-shadow: rgba(250, 150, 10, 0.2)
|
|
119
97
|
}
|
|
120
98
|
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
99
|
+
.color-primary-text {
|
|
100
|
+
@include text-color(var(--color-text-primary), true);
|
|
101
|
+
}
|
|
125
102
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
103
|
+
.color-secondary-text {
|
|
104
|
+
@include text-color(var(--color-text-secondary), true);
|
|
105
|
+
}
|
|
129
106
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
107
|
+
.color-disabled-text {
|
|
108
|
+
@include text-color(var(--color-text-disabled), true);
|
|
133
109
|
}
|
|
134
110
|
|
|
135
111
|
|
package/style/mixins/index.scss
CHANGED
|
@@ -5,15 +5,14 @@ $gradient: (
|
|
|
5
5
|
'three': ('0':#e91e63,'1':#ec743d)
|
|
6
6
|
) !default;
|
|
7
7
|
$colorMain: (
|
|
8
|
-
'one'
|
|
9
|
-
'one_l'
|
|
10
|
-
'one_d'
|
|
11
|
-
'two'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'success':('l':#fff,'d':#fff)
|
|
8
|
+
'one':#fff,
|
|
9
|
+
'one_l':#fff,
|
|
10
|
+
'one_d':#fff,
|
|
11
|
+
'two':#fff,
|
|
12
|
+
'error':#fff,
|
|
13
|
+
'info':#fff,
|
|
14
|
+
'warning':#fff,
|
|
15
|
+
'success':#fff
|
|
17
16
|
) !default;
|
|
18
17
|
|
|
19
18
|
$shades: (
|
package/tools/helper.js
CHANGED
|
@@ -345,14 +345,28 @@ export function trim(s, c) {
|
|
|
345
345
|
return s.replace(new RegExp("^[" + c + "]+|[" + c + "]+$", "g"), "");
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
export function download(url, fileName = 'download') {
|
|
348
|
+
export function download(url, fileName = 'download', headers = null, percent = null) {
|
|
349
349
|
const f = url.split(".");
|
|
350
350
|
if (f[1]) {
|
|
351
351
|
fileName += '.' + f[1]
|
|
352
352
|
}
|
|
353
|
+
|
|
354
|
+
function updateProgress(evt) {
|
|
355
|
+
if (evt.lengthComputable) {
|
|
356
|
+
percent((evt.loaded / evt.total) * 100);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
353
360
|
let xhr = new XMLHttpRequest();
|
|
354
361
|
xhr.open("GET", url, true);
|
|
362
|
+
xhr.onprogress = updateProgress;
|
|
355
363
|
xhr.responseType = "blob";
|
|
364
|
+
if (headers) {
|
|
365
|
+
Object.keys(headers).forEach(function (key) {
|
|
366
|
+
xhr.setRequestHeader(key, headers[key]);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
|
|
356
370
|
xhr.onload = function () {
|
|
357
371
|
const urlCreator = window.URL || window.webkitURL;
|
|
358
372
|
const imageUrl = urlCreator.createObjectURL(this.response);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$r.prefix + 'skeleton-loader'" :style="{width:width,height:height}"></div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: "r-skeletonLoader",
|
|
8
|
-
props:{
|
|
9
|
-
width:String,
|
|
10
|
-
height:String,
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<style lang="scss">
|
|
16
|
-
@import "~renusify/style/include";
|
|
17
|
-
.#{$prefix}skeleton-loader {
|
|
18
|
-
background: rgba(0, 0, 0, 0.12);
|
|
19
|
-
&:after {
|
|
20
|
-
animation: loading 1.5s infinite;
|
|
21
|
-
content: "";
|
|
22
|
-
height: 100%;
|
|
23
|
-
left: 0;
|
|
24
|
-
position: absolute;
|
|
25
|
-
right: 0;
|
|
26
|
-
top: 0;
|
|
27
|
-
transform: translateX(-100%);
|
|
28
|
-
z-index: 1;
|
|
29
|
-
background: linear-gradient(
|
|
30
|
-
90deg,
|
|
31
|
-
hsla(0, 0%, 100%, 0),
|
|
32
|
-
hsla(0, 0%, 100%, 0.3),
|
|
33
|
-
hsla(0, 0%, 100%, 0)
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
@keyframes loading {
|
|
37
|
-
100% {
|
|
38
|
-
transform: translateX(100%);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
</style>
|