@fishawack/lab-velocity 0.1.7 → 0.2.0
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/_defaults.scss +18 -1
- package/_variables.scss +28 -1
- package/components/_button.scss +130 -2
- package/components/_cascader.scss +3 -0
- package/components/_footer.scss +17 -0
- package/components/_header.scss +32 -0
- package/components/_icon.scss +11 -1
- package/components/_link.scss +32 -0
- package/components/_navigation.scss +47 -0
- package/components/_pageTitle.scss +9 -0
- package/components/_sidebar.scss +51 -0
- package/components/_typography.scss +139 -0
- package/form/Button.vue +13 -17
- package/form/Cascader.vue +85 -0
- package/form/DatePicker.vue +2 -1
- package/general.scss +10 -1
- package/index.js +8 -0
- package/layout/Footer.vue +29 -0
- package/layout/Header.vue +15 -0
- package/layout/pageTitle.vue +18 -0
- package/layout/sideBar.vue +27 -0
- package/package.json +3 -2
package/_defaults.scss
CHANGED
|
@@ -4,4 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
$colors: variables.dynamic('color', module-variables("variables"));
|
|
6
6
|
|
|
7
|
-
// Override lab-ui defaults here, e.g $button: $color6;
|
|
7
|
+
// Override lab-ui defaults here, e.g $button: $color6;
|
|
8
|
+
$spacing: 12px;
|
|
9
|
+
|
|
10
|
+
html {
|
|
11
|
+
font-size: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: $primaryFont, sans-serif;
|
|
16
|
+
font-size: 1.6rem;
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
color: $color1;
|
|
19
|
+
background-color: $color3;
|
|
20
|
+
}
|
|
21
|
+
.container {
|
|
22
|
+
margin-left: 0;
|
|
23
|
+
padding: 0px 4rem
|
|
24
|
+
}
|
package/_variables.scss
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
1
|
@import "@fishawack/lab-ui/_variables.scss";
|
|
2
2
|
|
|
3
|
-
// Set global variables here, e.g $color6: red;
|
|
3
|
+
// Set global variables here, e.g $color6: red;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
$primaryFont: 'Inter';
|
|
7
|
+
$primaryFontThin: 'Inter-Thin';
|
|
8
|
+
$primaryFontExtraLight: 'Inter-ExtraLight';
|
|
9
|
+
$primaryFontLight: 'Inter-Light';
|
|
10
|
+
$primaryFontRegular: 'Inter-Regular';
|
|
11
|
+
$primaryFontMedium: 'Inter-Medium';
|
|
12
|
+
$primaryFontSemiBold: 'Inter-SemiBold';
|
|
13
|
+
$primaryFontBold: 'Inter-Bold';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
$secondaryFont: 'NotoSerif';
|
|
17
|
+
$secondaryFontMedium: 'NotoSerif-Medium';
|
|
18
|
+
// Colors
|
|
19
|
+
|
|
20
|
+
$color1: #2D2D2D;
|
|
21
|
+
$color2: #333333;
|
|
22
|
+
$color3: #F7F7F7;
|
|
23
|
+
$color4: #e6e6e6;
|
|
24
|
+
$color5: #cccccc;
|
|
25
|
+
$color6: #999999;
|
|
26
|
+
$color7: #666666;
|
|
27
|
+
$color8: #f2f2f2; //Used
|
|
28
|
+
$color9: #ff0000;
|
|
29
|
+
$color10: #dcdbdb;
|
|
30
|
+
$color11: #8C8C8C; //Used
|
package/components/_button.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "element-plus/theme-chalk/el-button";
|
|
2
2
|
|
|
3
3
|
.vel-button {
|
|
4
|
+
border-radius: 0px;
|
|
4
5
|
&[disabled=true] {
|
|
5
6
|
pointer-events: none !important;
|
|
6
7
|
}
|
|
@@ -17,11 +18,138 @@
|
|
|
17
18
|
}
|
|
18
19
|
&--iconOnly {
|
|
19
20
|
.vel-button__button {
|
|
20
|
-
>span {
|
|
21
|
+
> span {
|
|
21
22
|
margin: 0;
|
|
22
|
-
display: none;
|
|
23
23
|
}
|
|
24
|
+
.vel-icon{
|
|
25
|
+
width: 1rem;
|
|
26
|
+
height: 1rem;
|
|
27
|
+
}
|
|
28
|
+
svg {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.el-button--default {
|
|
37
|
+
border: solid 1px $color5;
|
|
38
|
+
&:hover {
|
|
39
|
+
background-color: #AFAFAF;
|
|
40
|
+
color: $color1;
|
|
41
|
+
}
|
|
42
|
+
&:active {
|
|
43
|
+
background-color: #F2F2F2;
|
|
44
|
+
border: solid 1px #2D2D2D;
|
|
45
|
+
color: $color1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.el-button--primary {
|
|
50
|
+
background-color: $color1;
|
|
51
|
+
color: $color0;
|
|
52
|
+
|
|
53
|
+
&:hover, &.is-loading {
|
|
54
|
+
background-color: #5C5C5C;
|
|
55
|
+
color: $color0;
|
|
56
|
+
}
|
|
57
|
+
&:disabled {
|
|
58
|
+
background-color: #AFAFAF;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.is-plain {
|
|
62
|
+
padding: .4rem 1.6rem;
|
|
63
|
+
background-color: #F2F2F2;
|
|
64
|
+
color: #2D2D2D;
|
|
65
|
+
|
|
66
|
+
&:hover, &.is-loading {
|
|
67
|
+
background-color: #2D2D2D;
|
|
68
|
+
color: $color0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:active {
|
|
72
|
+
background-color: #090909;
|
|
73
|
+
color:$color0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled {
|
|
77
|
+
background-color: #D5D5D5;
|
|
78
|
+
color:#757575;
|
|
24
79
|
}
|
|
25
80
|
}
|
|
81
|
+
}
|
|
82
|
+
.el-button--success {
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
.el-button--info {
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
.el-button--warning {
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
.el-button--danger {
|
|
92
|
+
|
|
93
|
+
background-color: #D53A3A;
|
|
94
|
+
color: $color0;
|
|
95
|
+
|
|
96
|
+
&:hover, &.is-loading {
|
|
97
|
+
background-color: #DF6B6B;
|
|
98
|
+
color: $color0;
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
&:disabled {
|
|
102
|
+
background-color: #EA9C9C;
|
|
103
|
+
}
|
|
104
|
+
&:active {
|
|
105
|
+
background-color: #B42929;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.is-plain {
|
|
109
|
+
border-color: #D53A3A;
|
|
110
|
+
background-color: #F2F2F2;
|
|
111
|
+
color: #EA9C9C;
|
|
112
|
+
|
|
113
|
+
&:hover{
|
|
114
|
+
background-color: #D53A3A;
|
|
115
|
+
color: $color0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:active {
|
|
119
|
+
background-color: #B42929;
|
|
120
|
+
color:$color0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:disabled {
|
|
124
|
+
background-color: #FCF1F1;
|
|
125
|
+
color:#EA9C9C;
|
|
126
|
+
border-color:#F9E1E1;
|
|
127
|
+
}
|
|
128
|
+
&.is-loading {
|
|
129
|
+
background-color: #FCF1F1;
|
|
130
|
+
border-color: #EA9C9C;
|
|
131
|
+
color:#DF6B6B;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// sizes
|
|
137
|
+
.el-button--default {
|
|
138
|
+
font-size: 1.6rem;
|
|
139
|
+
line-height: 2.4rem;
|
|
140
|
+
padding: 1rem 1.6rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.el-button--large {
|
|
144
|
+
padding: 1.2rem 2rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.el-button--small {
|
|
148
|
+
font-size: 1.2rem;
|
|
149
|
+
line-height: 1.8rem;
|
|
150
|
+
}
|
|
26
151
|
|
|
152
|
+
.el-button {
|
|
153
|
+
height: auto;
|
|
154
|
+
--el-border-radius-base: 0px;
|
|
27
155
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
footer {
|
|
2
|
+
background-color: $color1;
|
|
3
|
+
// width: 100%;
|
|
4
|
+
min-height: 16.4rem;
|
|
5
|
+
padding: 4rem 2.4rem;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
svg {
|
|
10
|
+
width: 2.2rem;
|
|
11
|
+
max-width: 2.2rem;
|
|
12
|
+
height: 2.2rem;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
margin-right: $spacing;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
header {
|
|
2
|
+
border-bottom: solid 1px $color4;
|
|
3
|
+
background-color: $color0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
|
|
7
|
+
.icon {
|
|
8
|
+
min-width: 2rem;
|
|
9
|
+
max-width: 2rem;
|
|
10
|
+
width: 2rem;
|
|
11
|
+
height: 2rem;
|
|
12
|
+
margin-right: .5 * $spacing;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.header--list {
|
|
17
|
+
> div {
|
|
18
|
+
align-items: center;
|
|
19
|
+
&:not(:last-child) {
|
|
20
|
+
position: relative;
|
|
21
|
+
&::after {
|
|
22
|
+
position: absolute;
|
|
23
|
+
content:"";
|
|
24
|
+
border-right: solid 1px $color4;
|
|
25
|
+
height: 75%;
|
|
26
|
+
transform: translateY(-50%);
|
|
27
|
+
top: 50%;
|
|
28
|
+
right:0px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/components/_icon.scss
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import "element-plus/theme-chalk/el-link";
|
|
2
|
+
|
|
3
|
+
.vel-link {
|
|
4
|
+
|
|
5
|
+
}
|
|
6
|
+
.vel-link--underline {
|
|
7
|
+
&:after {
|
|
8
|
+
border-bottom: 1px solid var(--el-link-hover-text-color);
|
|
9
|
+
bottom: 0;
|
|
10
|
+
content: "";
|
|
11
|
+
height: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.vel-link--default {
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.vel-link--large {
|
|
23
|
+
font-size: 1.125rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vel-link--small {
|
|
27
|
+
font-size: .875rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.vel-link--xsmall {
|
|
31
|
+
font-size: .75rem;
|
|
32
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import 'element-plus/theme-chalk/el-menu';
|
|
2
|
+
@import 'element-plus/theme-chalk/el-menu-item';
|
|
3
|
+
|
|
4
|
+
ul.el-menu--vertical {
|
|
5
|
+
li {
|
|
6
|
+
--el-menu-level-padding : 0;
|
|
7
|
+
padding-right: 0px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
a {
|
|
11
|
+
padding: 1.2rem 2rem;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-left: solid .4rem $color8;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
font-size: 1.8rem;
|
|
20
|
+
|
|
21
|
+
&.active{
|
|
22
|
+
border-left-color: $color1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.icon {
|
|
26
|
+
width: 2rem;
|
|
27
|
+
max-width: 2rem;
|
|
28
|
+
min-width: 2rem;
|
|
29
|
+
padding-bottom: 0px;
|
|
30
|
+
* {
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
span {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transition: .2s ease-in-out opacity;
|
|
39
|
+
margin-left: .5 * $spacing;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.active & {
|
|
43
|
+
span {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.side-bar {
|
|
2
|
+
flex-basis: 6rem;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
box-shadow: 0px 4px 4px 0px hsla(0, 0%, 0%, 0.251);
|
|
6
|
+
min-height: 94.5vh;
|
|
7
|
+
max-height: 100vh;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
transition: flex-basis .3s ease-in-out;
|
|
10
|
+
background-color: $color0;
|
|
11
|
+
|
|
12
|
+
position: sticky;
|
|
13
|
+
top: 0vh;
|
|
14
|
+
|
|
15
|
+
> div {
|
|
16
|
+
&:first-child {
|
|
17
|
+
flex-grow: .98;
|
|
18
|
+
}
|
|
19
|
+
&:last-child {
|
|
20
|
+
margin-bottom: 5.5vh;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.active {
|
|
25
|
+
flex-basis: 25.2rem;
|
|
26
|
+
|
|
27
|
+
.side-bar__button {
|
|
28
|
+
transform: rotateY(180deg);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.side-bar__button {
|
|
34
|
+
outline: none;
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
border: none;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
.icon {
|
|
39
|
+
width: 2rem;
|
|
40
|
+
min-width: 2rem;
|
|
41
|
+
padding-bottom: 2rem;
|
|
42
|
+
fill: currentColor;
|
|
43
|
+
}
|
|
44
|
+
&:focus {
|
|
45
|
+
outline: 1px solid;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
main {
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* Primary font
|
|
2
|
+
-------------------------------------------------- */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family : $primaryFont;
|
|
5
|
+
font-weight : 400;
|
|
6
|
+
font-style : normal;
|
|
7
|
+
|
|
8
|
+
src :
|
|
9
|
+
resolve($primaryFontRegular + '.woff2') format('woff2'),
|
|
10
|
+
resolve($primaryFontRegular + '.woff') format('woff'),
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family : $primaryFont;
|
|
15
|
+
font-weight : 100;
|
|
16
|
+
font-style : normal;
|
|
17
|
+
|
|
18
|
+
src :
|
|
19
|
+
resolve($primaryFontThin + '.woff2') format('woff2'),
|
|
20
|
+
resolve($primaryFontThin + '.woff') format('woff'),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family : $primaryFont;
|
|
25
|
+
font-weight : 200;
|
|
26
|
+
font-style : normal;
|
|
27
|
+
|
|
28
|
+
src :
|
|
29
|
+
resolve($primaryFontExtraLight + '.woff2') format('woff2'),
|
|
30
|
+
resolve($primaryFontExtraLight + '.woff') format('woff'),
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family : $primaryFont;
|
|
35
|
+
font-weight : 300;
|
|
36
|
+
font-style : normal;
|
|
37
|
+
|
|
38
|
+
src :
|
|
39
|
+
resolve($primaryFontLight + '.woff2') format('woff2'),
|
|
40
|
+
resolve($primaryFontLight + '.woff') format('woff'),
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family : $primaryFont;
|
|
45
|
+
font-weight : 500;
|
|
46
|
+
font-style : normal;
|
|
47
|
+
|
|
48
|
+
src :
|
|
49
|
+
resolve($primaryFontMedium + '.woff2') format('woff2'),
|
|
50
|
+
resolve($primaryFontMedium + '.woff') format('woff'),
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family : $primaryFont;
|
|
55
|
+
font-weight : 600;
|
|
56
|
+
font-style : normal;
|
|
57
|
+
|
|
58
|
+
src :
|
|
59
|
+
resolve($primaryFontSemiBold + '.woff2') format('woff2'),
|
|
60
|
+
resolve($primaryFontSemiBold + '.woff') format('woff'),
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@font-face {
|
|
64
|
+
font-family : $primaryFont;
|
|
65
|
+
font-weight : 700;
|
|
66
|
+
font-style : normal;
|
|
67
|
+
|
|
68
|
+
src :
|
|
69
|
+
resolve($primaryFontBold + '.woff2') format('woff2'),
|
|
70
|
+
resolve($primaryFontBold + '.woff2') format('woff2'),
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@font-face {
|
|
76
|
+
font-family : $secondaryFont;
|
|
77
|
+
font-weight : 500;
|
|
78
|
+
font-style : normal;
|
|
79
|
+
|
|
80
|
+
src :
|
|
81
|
+
resolve($secondaryFontMedium + '.ttf') format('truetype')
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
h1,.h1 {
|
|
86
|
+
font-size: 4.8rem;
|
|
87
|
+
line-height: 5.52rem;
|
|
88
|
+
font-family: $secondaryFont;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
h2, .h2 {
|
|
92
|
+
font-size: 3.6rem;
|
|
93
|
+
line-height: 4.8rem;
|
|
94
|
+
font-family : $primaryFont;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h3, .h3 {
|
|
98
|
+
font-size: 3.2rem;
|
|
99
|
+
line-height: 4.17rem;
|
|
100
|
+
font-family : $primaryFont;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
h4, .h4 {
|
|
104
|
+
font-size: 2.4rem;
|
|
105
|
+
line-height: 3.36rem;
|
|
106
|
+
font-family : $primaryFont;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h5, .h5 {
|
|
110
|
+
font-size: 2rem;
|
|
111
|
+
line-height: 2.4rem;
|
|
112
|
+
font-weight: 700;
|
|
113
|
+
font-family : $primaryFont;
|
|
114
|
+
}
|
|
115
|
+
h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5 {
|
|
116
|
+
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// may be project specific
|
|
121
|
+
.text-10 {
|
|
122
|
+
font-size: 10px;
|
|
123
|
+
line-height: 15px;
|
|
124
|
+
}
|
|
125
|
+
.text-12 {
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
line-height: 18px;
|
|
128
|
+
}
|
|
129
|
+
.text-14 {
|
|
130
|
+
font-size: 14px;
|
|
131
|
+
line-height: 21px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.text-60 {
|
|
135
|
+
font-size: 6rem;
|
|
136
|
+
line-height: 6.9rem;
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
font-family : $primaryFont;
|
|
139
|
+
}
|
package/form/Button.vue
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
<el-button
|
|
4
4
|
:class="[`button ${baseClass}__button`]"
|
|
5
5
|
:name="name"
|
|
6
|
-
:label="label"
|
|
7
6
|
:id="name"
|
|
8
7
|
:disabled="disabled"
|
|
9
8
|
:round="round"
|
|
@@ -19,13 +18,10 @@
|
|
|
19
18
|
:loading="loading"
|
|
20
19
|
:customIcon="customIcon"
|
|
21
20
|
v-model="content"
|
|
21
|
+
:href="href"
|
|
22
|
+
:target="target"
|
|
22
23
|
@input="handleInput">
|
|
23
|
-
|
|
24
|
-
<template v-if="icon || customIcon " #icon>
|
|
25
|
-
<component :is="icon" v-if="icon" :class="iconClasses" />
|
|
26
|
-
<VIcon v-if="customIcon" :name="customIcon" :class="iconClasses" embed></VIcon>
|
|
27
|
-
</template>
|
|
28
|
-
<span v-if="label" v-html="label" :class="[`${baseClass}__label`]" />
|
|
24
|
+
<slot />
|
|
29
25
|
|
|
30
26
|
</el-button>
|
|
31
27
|
</XInput>
|
|
@@ -33,10 +29,8 @@
|
|
|
33
29
|
|
|
34
30
|
<script>
|
|
35
31
|
import { ElButton } from "element-plus";
|
|
36
|
-
import { ElIcon } from "element-plus";
|
|
37
32
|
import input from "./input.js";
|
|
38
33
|
import XInput from "./input.vue";
|
|
39
|
-
import VIcon from "../Icon.vue";
|
|
40
34
|
import {
|
|
41
35
|
Check,
|
|
42
36
|
Delete,
|
|
@@ -98,10 +92,6 @@ export default {
|
|
|
98
92
|
type: Boolean,
|
|
99
93
|
default: false,
|
|
100
94
|
},
|
|
101
|
-
icon: {
|
|
102
|
-
type: ElIcon,
|
|
103
|
-
default: null,
|
|
104
|
-
},
|
|
105
95
|
customIcon: {
|
|
106
96
|
type: String,
|
|
107
97
|
default: null,
|
|
@@ -109,14 +99,20 @@ export default {
|
|
|
109
99
|
iconClasses: {
|
|
110
100
|
type: String,
|
|
111
101
|
default: "",
|
|
112
|
-
}
|
|
102
|
+
},
|
|
103
|
+
href: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: null,
|
|
106
|
+
},
|
|
107
|
+
target: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: null,
|
|
110
|
+
},
|
|
113
111
|
},
|
|
114
112
|
|
|
115
113
|
components: {
|
|
116
114
|
XInput,
|
|
117
|
-
ElButton
|
|
118
|
-
VIcon,
|
|
119
|
-
ElIcon
|
|
115
|
+
ElButton
|
|
120
116
|
},
|
|
121
117
|
};
|
|
122
118
|
</script>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<XInput v-bind="$props">
|
|
3
|
+
<template #label>
|
|
4
|
+
<slot name="label" />
|
|
5
|
+
</template>
|
|
6
|
+
<el-cascader
|
|
7
|
+
class="block"
|
|
8
|
+
v-model="content"
|
|
9
|
+
:options="options"
|
|
10
|
+
:placeholder="placeholder"
|
|
11
|
+
:clearable="clearable"
|
|
12
|
+
:show-all-levels="showAllLevels"
|
|
13
|
+
:props="{
|
|
14
|
+
multiple: multiple,
|
|
15
|
+
checkStrictly:checkStrictly
|
|
16
|
+
}"
|
|
17
|
+
/>
|
|
18
|
+
</XInput>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import { ElCascader } from 'element-plus';
|
|
23
|
+
import input from "./input.js";
|
|
24
|
+
import XInput from "./input.vue";
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
mixins: [input],
|
|
28
|
+
props: {
|
|
29
|
+
baseClass: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "vel-cascader",
|
|
32
|
+
},
|
|
33
|
+
multiple: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
checkStrictly: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
clearable: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
44
|
+
},
|
|
45
|
+
showAllLevels: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
options: {
|
|
50
|
+
type: Array,
|
|
51
|
+
default: [],
|
|
52
|
+
},
|
|
53
|
+
...input.props,
|
|
54
|
+
},
|
|
55
|
+
components: {
|
|
56
|
+
XInput,
|
|
57
|
+
ElCascader,
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
emits: ['change', 'clear', 'blur'],
|
|
61
|
+
methods: {
|
|
62
|
+
castValue(value) {
|
|
63
|
+
if (
|
|
64
|
+
!_.isNull(value) &&
|
|
65
|
+
typeof value === "string" &&
|
|
66
|
+
!isNaN(Number(value))
|
|
67
|
+
) {
|
|
68
|
+
return parseInt(value);
|
|
69
|
+
}
|
|
70
|
+
return value;
|
|
71
|
+
},
|
|
72
|
+
handleInput(value, $event) {
|
|
73
|
+
this.$emit('change', value);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
data() {
|
|
78
|
+
return {
|
|
79
|
+
pr: {
|
|
80
|
+
multiple:true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
</script>
|
package/form/DatePicker.vue
CHANGED
package/general.scss
CHANGED
|
@@ -9,4 +9,13 @@
|
|
|
9
9
|
@import "./components/_icon.scss";
|
|
10
10
|
@import "./components/_button.scss";
|
|
11
11
|
@import "./components/_select.scss";
|
|
12
|
-
@import "./components/_datepicker.scss";
|
|
12
|
+
@import "./components/_datepicker.scss";
|
|
13
|
+
@import "./components/_link.scss";
|
|
14
|
+
@import "./components/_cascader.scss";
|
|
15
|
+
|
|
16
|
+
@import "./components/_sidebar.scss";
|
|
17
|
+
@import "./components/_typography.scss";
|
|
18
|
+
@import "./components/_footer.scss";
|
|
19
|
+
@import "./components/_navigation.scss";
|
|
20
|
+
@import "./components/_header.scss";
|
|
21
|
+
@import "./components/_pageTitle.scss";
|
package/index.js
CHANGED
|
@@ -8,6 +8,14 @@ export { default as file } from "./form/file.vue";
|
|
|
8
8
|
export { default as Select } from "./form/Select.vue";
|
|
9
9
|
export { default as Switch } from "./form/Switch.vue";
|
|
10
10
|
export { default as wysiwyg } from "./form/wysiwyg.vue";
|
|
11
|
+
export { default as SideBar } from "./layout/sideBar.vue";
|
|
12
|
+
export { default as Footer } from "./layout/Footer.vue";
|
|
13
|
+
export { default as Header } from "./layout/Header.vue";
|
|
14
|
+
export { default as PageTitle } from "./layout/pageTitle.vue";
|
|
15
|
+
export { default as Menu } from "./navigation/Menu.vue";
|
|
16
|
+
export { default as MenuItem } from "./navigation/MenuItem.vue";
|
|
17
|
+
export { default as MenuItemGroup } from "./navigation/MenuItemGroup.vue";
|
|
18
|
+
export { default as SubMenu } from "./navigation/SubMenu.vue";
|
|
11
19
|
|
|
12
20
|
export { default as Icon } from "./Icon.vue";
|
|
13
21
|
export { default as Svg } from "./Svg.vue";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<footer>
|
|
3
|
+
<div>
|
|
4
|
+
<h5 class="color-0 flex items-center">
|
|
5
|
+
<slot/>
|
|
6
|
+
</h5>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="grid grid--1/2 justify-between mt-3.5">
|
|
9
|
+
<div class="grid">
|
|
10
|
+
<p class="color-0">© 2024 Avalere Avalere Health</p>
|
|
11
|
+
<a class="color-0 link ml" href="https://avalerehealth.com/privacy-policy/" target="_blank">Privacy Policy</a>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="justify-end flex">
|
|
14
|
+
<p class="color-0">Have a question? <a class="link" :href="contact">Contact our Support Team</a></p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</footer>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
props: {
|
|
23
|
+
contact: {
|
|
24
|
+
required:true,
|
|
25
|
+
type:String
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<header class="header grid justify-between items-center justify-end-dive grid--1/2 p-1.5">
|
|
3
|
+
<slot/>
|
|
4
|
+
|
|
5
|
+
<div class="grid pr-1.5 grid--gutters-x-1.5 header--list">
|
|
6
|
+
<slot name="links"/>
|
|
7
|
+
</div>
|
|
8
|
+
</header>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="side-bar" :class="{ active: active }">
|
|
3
|
+
<div>
|
|
4
|
+
<slot name="navigation" />
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div class="flex justify-end border-t-color-1 border-t-solid py px-1.5">
|
|
8
|
+
<button class="side-bar__button pointer" @click="active = !active">
|
|
9
|
+
<slot name="expand">
|
|
10
|
+
>
|
|
11
|
+
</slot>
|
|
12
|
+
</button>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
export default {
|
|
19
|
+
name: "SideBar",
|
|
20
|
+
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
active: true,
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishawack/lab-velocity",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Avalere Health branded style system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"setup": "npm ci || npm i && npm run content",
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"*.scss",
|
|
48
48
|
"*.vue",
|
|
49
49
|
"form",
|
|
50
|
-
"components"
|
|
50
|
+
"components",
|
|
51
|
+
"layout"
|
|
51
52
|
],
|
|
52
53
|
"main": "index.js",
|
|
53
54
|
"release": {
|