@ftlab/one-vue3 0.0.2 → 0.0.3

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 CHANGED
@@ -7,7 +7,14 @@ 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.2
10
+ ## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3)
11
+
12
+ ### Commits
13
+
14
+ - feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
15
+ - feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
16
+
17
+ ## v0.0.2 - 2023-06-30
11
18
 
12
19
  ### Commits
13
20
 
@@ -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,180 @@
1
+ @import "../assets/fontAwesome/css/font-awesome.css";
2
+ @import url("https://at.alicdn.com/t/font_1710489_t05xcfhmqqp.css");
3
+
4
+ [class^="ftl-icon"],
5
+ [class*=" ftl-icon"] {
6
+ font-family: "iconfont" !important;
7
+ font-size: 16px;
8
+ font-style: normal;
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ }
12
+
13
+ * {
14
+ box-sizing: border-box;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ @for $i from -20 through 20 {
20
+ $num: 5 * $i;
21
+ .p#{$num} {
22
+ padding: 0px + $num;
23
+ }
24
+ .pt#{$num} {
25
+ padding-top: 0px + $num;
26
+ }
27
+ .pr#{$num} {
28
+ padding-right: 0px + $num;
29
+ }
30
+ .pb#{$num} {
31
+ padding-bottom: 0px + $num;
32
+ }
33
+ .pl#{$num} {
34
+ padding-left: 0px + $num;
35
+ }
36
+ .pv#{$num} {
37
+ padding-top: 0px + $num;
38
+ padding-bottom: 0px + $num;
39
+ }
40
+ .ph#{$num} {
41
+ padding-left: 0px + $num;
42
+ padding-right: 0px + $num;
43
+ }
44
+ .m#{$num} {
45
+ margin: 0px + $num;
46
+ }
47
+ .mt#{$num} {
48
+ margin-top: 0px + $num;
49
+ }
50
+ .mr#{$num} {
51
+ margin-right: 0px + $num;
52
+ }
53
+ .mb#{$num} {
54
+ margin-bottom: 0px + $num;
55
+ }
56
+ .ml#{$num} {
57
+ margin-left: 0px + $num;
58
+ }
59
+ .mv#{$num} {
60
+ margin-top: 0px + $num;
61
+ margin-bottom: 0px + $num;
62
+ }
63
+ .mh#{$num} {
64
+ margin-left: 0px + $num;
65
+ margin-right: 0px + $num;
66
+ }
67
+ }
68
+
69
+ @for $j from 12 through 40 {
70
+ .fs#{$j} {
71
+ font-size: 0px + $j !important;
72
+ }
73
+ .lh#{$j} {
74
+ line-height: 0px + $j;
75
+ }
76
+ }
77
+
78
+ .f {
79
+ display: flex;
80
+ }
81
+
82
+ .f-s-c {
83
+ display: flex;
84
+ justify-content: space-between;
85
+ align-items: center;
86
+ }
87
+
88
+ .f-s {
89
+ display: flex;
90
+ justify-content: space-between;
91
+ }
92
+
93
+ .f-c {
94
+ display: flex;
95
+ align-items: center;
96
+ }
97
+
98
+ .f-c-c {
99
+ display: flex;
100
+ justify-content: center;
101
+ align-items: center;
102
+ }
103
+
104
+ .f-c-e {
105
+ display: flex;
106
+ justify-content: flex-end;
107
+ align-items: center;
108
+ }
109
+
110
+ .f-c-c-c {
111
+ display: flex;
112
+ flex-direction: column;
113
+ justify-content: center;
114
+ align-items: center;
115
+ }
116
+
117
+ .f600 {
118
+ font-weight: 600;
119
+ }
120
+
121
+ .tl {
122
+ text-align: left;
123
+ }
124
+ .tc {
125
+ text-align: center;
126
+ }
127
+ .tr {
128
+ text-align: right;
129
+ }
130
+
131
+ .cp {
132
+ cursor: pointer;
133
+ }
134
+
135
+ .breadcrumb-enter-active,
136
+ .breadcrumb-leave-active {
137
+ transition: all 0.5s;
138
+ }
139
+
140
+ .breadcrumb-enter,
141
+ .breadcrumb-leave-active {
142
+ opacity: 0;
143
+ transform: translateX(20px);
144
+ }
145
+
146
+ .breadcrumb-move {
147
+ transition: all 0.5s;
148
+ }
149
+
150
+ .breadcrumb-leave-active {
151
+ position: absolute;
152
+ }
153
+
154
+ .fade-enter-from {
155
+ opacity: 0;
156
+ transform: translateX(-30px);
157
+ }
158
+
159
+ .fade-leave-to {
160
+ opacity: 0;
161
+ transform: translateX(30px);
162
+ }
163
+
164
+ .fade-enter-active {
165
+ transition: all 0.5s;
166
+ }
167
+ .fade-leave-active {
168
+ transition: all 0.5s;
169
+ }
170
+
171
+ ::-webkit-scrollbar {
172
+ width: 8px;
173
+ height: 8px;
174
+ z-index: 9999;
175
+ }
176
+
177
+ ::-webkit-scrollbar-track {
178
+ border-radius: 0;
179
+ background-color: transparent;
180
+ }