@ftlab/one-vue3 0.0.2 → 0.0.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.
- package/CHANGELOG.md +14 -1
- package/assets/css/mixin.scss +142 -0
- package/assets/css/public.scss +179 -0
- package/assets/fontAwesome/css/font-awesome.css +2341 -0
- package/assets/fontAwesome/fonts/FontAwesome.otf +0 -0
- package/assets/fontAwesome/fonts/fontawesome-webfont.eot +0 -0
- package/assets/fontAwesome/fonts/fontawesome-webfont.svg +2671 -0
- package/assets/fontAwesome/fonts/fontawesome-webfont.ttf +0 -0
- package/assets/fontAwesome/fonts/fontawesome-webfont.woff +0 -0
- package/assets/fontAwesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/assets/img/America.png +0 -0
- package/assets/img/China.png +0 -0
- package/assets/img/French.png +0 -0
- package/assets/img/Original.png +0 -0
- package/assets/img/Spanish.png +0 -0
- package/dist/ftlOne.cjs +44 -1
- package/dist/ftlOne.js +5220 -49
- package/dist/ftlOne.umd.cjs +44 -1
- package/dist/style.css +1 -1
- package/function/index.ts +4 -0
- package/function/info.ts +17 -0
- package/function/permission.ts +17 -0
- package/package.json +51 -42
- package/store/auth.ts +63 -0
- package/store/lang.ts +16 -0
- package/types/global.d.ts +4 -0
- package/utils/storage.ts +27 -0
- package/index.html +0 -13
- package/tsconfig.node.json +0 -9
- package/vite.config.ts +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
9
9
|
|
|
10
|
-
## 0.0.
|
|
10
|
+
## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4)
|
|
11
|
+
|
|
12
|
+
### Commits
|
|
13
|
+
|
|
14
|
+
- fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
|
|
15
|
+
|
|
16
|
+
## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
|
|
17
|
+
|
|
18
|
+
### Commits
|
|
19
|
+
|
|
20
|
+
- feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
|
|
21
|
+
- feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
|
|
22
|
+
|
|
23
|
+
## v0.0.2 - 2023-06-30
|
|
11
24
|
|
|
12
25
|
### Commits
|
|
13
26
|
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
@mixin toggle-button($--color-header) {
|
|
2
|
+
height: 35px;
|
|
3
|
+
font-size: 18px;
|
|
4
|
+
margin-left: 10px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
border-radius: 5px;
|
|
7
|
+
background-color: $--color-header;
|
|
8
|
+
padding: 0 10px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text) {
|
|
16
|
+
background-color: $bg;
|
|
17
|
+
.sidebar-container-header {
|
|
18
|
+
color: $color;
|
|
19
|
+
padding: 10px 0;
|
|
20
|
+
border-bottom: 2px solid $--color-header;
|
|
21
|
+
.pic-box {
|
|
22
|
+
width: 46px;
|
|
23
|
+
height: 46px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
.logo {
|
|
26
|
+
width: 46px;
|
|
27
|
+
height: 46px;
|
|
28
|
+
filter: drop-shadow(120px 0px #fff);
|
|
29
|
+
transform: translateX(-120px);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.ftl-pic-box {
|
|
33
|
+
height: 46px;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
.logo {
|
|
38
|
+
width: 46px;
|
|
39
|
+
height: 30px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.el-menu-vertical-demo {
|
|
44
|
+
padding: 10px;
|
|
45
|
+
}
|
|
46
|
+
.el-menu {
|
|
47
|
+
background-color: $bg;
|
|
48
|
+
border: none;
|
|
49
|
+
.custom-menu-item {
|
|
50
|
+
height: 38px;
|
|
51
|
+
line-height: 38px;
|
|
52
|
+
color: #fff !important;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
border-radius: 10px;
|
|
55
|
+
&:focus,
|
|
56
|
+
&:hover,
|
|
57
|
+
&.is-active {
|
|
58
|
+
background-color: $--color-header !important;
|
|
59
|
+
}
|
|
60
|
+
i {
|
|
61
|
+
color: #fff;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.el-sub-menu {
|
|
65
|
+
color: #fff !important;
|
|
66
|
+
margin-bottom: 10px;
|
|
67
|
+
&:focus,
|
|
68
|
+
&:hover,
|
|
69
|
+
&.is-active {
|
|
70
|
+
& > .el-sub-menu__title {
|
|
71
|
+
background-color: $--color-header !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.el-sub-menu__title {
|
|
75
|
+
height: 38px;
|
|
76
|
+
line-height: 38px;
|
|
77
|
+
border-radius: 10px;
|
|
78
|
+
color: #fff !important;
|
|
79
|
+
}
|
|
80
|
+
&.is-opened {
|
|
81
|
+
background: $--color-header;
|
|
82
|
+
border-radius: 10px;
|
|
83
|
+
.el-menu {
|
|
84
|
+
background-color: $content-bg !important;
|
|
85
|
+
border-bottom-left-radius: 10px !important;
|
|
86
|
+
border-bottom-right-radius: 10px !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.el-menu-item {
|
|
90
|
+
height: 38px;
|
|
91
|
+
line-height: 38px;
|
|
92
|
+
background-color: transparent !important;
|
|
93
|
+
color: #fff !important;
|
|
94
|
+
padding: 0 50px !important;
|
|
95
|
+
&:focus,
|
|
96
|
+
&:hover,
|
|
97
|
+
&.is-active {
|
|
98
|
+
color: $--color-text !important;
|
|
99
|
+
i {
|
|
100
|
+
color: $--color-text !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&:last-child {
|
|
104
|
+
margin-bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@mixin el-menu--vertical($bg, $--color-header, $--color-text) {
|
|
112
|
+
.el-tooltip__trigger {
|
|
113
|
+
padding: 0 !important;
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
align-items: center;
|
|
117
|
+
i {
|
|
118
|
+
margin-right: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
.el-menu {
|
|
122
|
+
background: $bg !important;
|
|
123
|
+
.el-menu-item {
|
|
124
|
+
color: #fff !important;
|
|
125
|
+
&:focus,
|
|
126
|
+
&:hover {
|
|
127
|
+
background: none !important;
|
|
128
|
+
color: $--color-text !important;
|
|
129
|
+
i {
|
|
130
|
+
color: $--color-text !important;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
i {
|
|
134
|
+
color: #fff;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.el-popper.is-pure {
|
|
141
|
+
border: none;
|
|
142
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@import url("https://at.alicdn.com/t/font_1710489_t05xcfhmqqp.css");
|
|
2
|
+
|
|
3
|
+
[class^="ftl-icon"],
|
|
4
|
+
[class*=" ftl-icon"] {
|
|
5
|
+
font-family: "iconfont" !important;
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
-webkit-font-smoothing: antialiased;
|
|
9
|
+
-moz-osx-font-smoothing: grayscale;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
* {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@for $i from -20 through 20 {
|
|
19
|
+
$num: 5 * $i;
|
|
20
|
+
.p#{$num} {
|
|
21
|
+
padding: 0px + $num;
|
|
22
|
+
}
|
|
23
|
+
.pt#{$num} {
|
|
24
|
+
padding-top: 0px + $num;
|
|
25
|
+
}
|
|
26
|
+
.pr#{$num} {
|
|
27
|
+
padding-right: 0px + $num;
|
|
28
|
+
}
|
|
29
|
+
.pb#{$num} {
|
|
30
|
+
padding-bottom: 0px + $num;
|
|
31
|
+
}
|
|
32
|
+
.pl#{$num} {
|
|
33
|
+
padding-left: 0px + $num;
|
|
34
|
+
}
|
|
35
|
+
.pv#{$num} {
|
|
36
|
+
padding-top: 0px + $num;
|
|
37
|
+
padding-bottom: 0px + $num;
|
|
38
|
+
}
|
|
39
|
+
.ph#{$num} {
|
|
40
|
+
padding-left: 0px + $num;
|
|
41
|
+
padding-right: 0px + $num;
|
|
42
|
+
}
|
|
43
|
+
.m#{$num} {
|
|
44
|
+
margin: 0px + $num;
|
|
45
|
+
}
|
|
46
|
+
.mt#{$num} {
|
|
47
|
+
margin-top: 0px + $num;
|
|
48
|
+
}
|
|
49
|
+
.mr#{$num} {
|
|
50
|
+
margin-right: 0px + $num;
|
|
51
|
+
}
|
|
52
|
+
.mb#{$num} {
|
|
53
|
+
margin-bottom: 0px + $num;
|
|
54
|
+
}
|
|
55
|
+
.ml#{$num} {
|
|
56
|
+
margin-left: 0px + $num;
|
|
57
|
+
}
|
|
58
|
+
.mv#{$num} {
|
|
59
|
+
margin-top: 0px + $num;
|
|
60
|
+
margin-bottom: 0px + $num;
|
|
61
|
+
}
|
|
62
|
+
.mh#{$num} {
|
|
63
|
+
margin-left: 0px + $num;
|
|
64
|
+
margin-right: 0px + $num;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@for $j from 12 through 40 {
|
|
69
|
+
.fs#{$j} {
|
|
70
|
+
font-size: 0px + $j !important;
|
|
71
|
+
}
|
|
72
|
+
.lh#{$j} {
|
|
73
|
+
line-height: 0px + $j;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.f {
|
|
78
|
+
display: flex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.f-s-c {
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
align-items: center;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.f-s {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.f-c {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.f-c-c {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.f-c-e {
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: flex-end;
|
|
106
|
+
align-items: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.f-c-c-c {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.f600 {
|
|
117
|
+
font-weight: 600;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tl {
|
|
121
|
+
text-align: left;
|
|
122
|
+
}
|
|
123
|
+
.tc {
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
.tr {
|
|
127
|
+
text-align: right;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.cp {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.breadcrumb-enter-active,
|
|
135
|
+
.breadcrumb-leave-active {
|
|
136
|
+
transition: all 0.5s;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.breadcrumb-enter,
|
|
140
|
+
.breadcrumb-leave-active {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transform: translateX(20px);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.breadcrumb-move {
|
|
146
|
+
transition: all 0.5s;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.breadcrumb-leave-active {
|
|
150
|
+
position: absolute;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.fade-enter-from {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
transform: translateX(-30px);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.fade-leave-to {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
transform: translateX(30px);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.fade-enter-active {
|
|
164
|
+
transition: all 0.5s;
|
|
165
|
+
}
|
|
166
|
+
.fade-leave-active {
|
|
167
|
+
transition: all 0.5s;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
::-webkit-scrollbar {
|
|
171
|
+
width: 8px;
|
|
172
|
+
height: 8px;
|
|
173
|
+
z-index: 9999;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
::-webkit-scrollbar-track {
|
|
177
|
+
border-radius: 0;
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
}
|