@ftlab/one-vue3 0.3.8-6 → 0.4.1

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +39 -144
  2. package/README.md +143 -61
  3. package/assets/css/index.scss +25 -25
  4. package/assets/css/mixin.scss +142 -142
  5. package/assets/css/public.scss +175 -175
  6. package/assets/img/Germany.png +0 -0
  7. package/components.d.ts +6 -3
  8. package/dist/CheckMessageDialog-DygR717d.js +78 -0
  9. package/dist/FtlEntry.js +109 -0
  10. package/dist/FtlMessage.js +186 -0
  11. package/dist/FtlMultipleChoose-D8o09guU.js +312 -0
  12. package/dist/FtlMultipleChoose.js +1 -0
  13. package/dist/FtlNavbar-SsenWatk.js +191 -0
  14. package/dist/FtlNavbar.js +1 -0
  15. package/dist/FtlPasswordDialog-Dj_vS0mC.js +188 -0
  16. package/dist/FtlPasswordDialog.js +1 -0
  17. package/dist/FtlSidebar-D5AkRjgA.js +159 -0
  18. package/dist/FtlSidebar.js +1 -0
  19. package/dist/_plugin-vue_export-helper-Djzt4Yr7.js +7 -0
  20. package/dist/asyncToGenerator-CENKRPhX.js +26 -0
  21. package/dist/configProvider-CFU3sEdy.js +6 -0
  22. package/dist/ftlOne.js +16 -13
  23. package/dist/langSelect-DdbxrMFQ.js +106 -0
  24. package/dist/objectSpread2-Bpgh6RJW.js +57 -0
  25. package/dist/storage-DBeiC15W.js +25 -0
  26. package/dist/store.js +39 -98
  27. package/dist/style.css +2 -1
  28. package/dist/utils-BuLanift.js +10 -0
  29. package/dist/utils.js +558 -475
  30. package/global.d.ts +63 -63
  31. package/i18n/cn.json +22 -22
  32. package/i18n/de.json +23 -0
  33. package/i18n/en.json +22 -22
  34. package/i18n/es.json +23 -0
  35. package/i18n/fr.json +22 -22
  36. package/package.json +127 -74
  37. package/.eslintrc.cjs +0 -24
  38. package/.prettierrc.cjs +0 -18
  39. package/dist/CheckMessageDialog-0f85dbee.js +0 -167
  40. package/dist/index-2284be94.js +0 -15036
  41. package/dist/storage-9f2ae3ed.js +0 -30
  42. package/dist/utils-0eda3e43.js +0 -17
  43. package/dist/vuex.esm-bundler-2a047356.js +0 -770
  44. package/function/index.ts +0 -4
  45. package/function/info.js +0 -17
  46. package/function/permission.js +0 -17
  47. package/store/app.js +0 -24
  48. package/store/auth.js +0 -87
  49. package/store/index.ts +0 -10
  50. package/utils/date.ts +0 -127
  51. package/utils/index.ts +0 -3
  52. package/utils/storage.js +0 -27
  53. package/utils/utils.ts +0 -10
@@ -1,142 +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 55px !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
- }
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 0 0 55px !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
+ }
@@ -1,176 +1,176 @@
1
- * {
2
- box-sizing: border-box;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- @for $i from -20 through 20 {
8
- $num: 5 * $i;
9
- .p#{$num} {
10
- padding: 0px + $num;
11
- }
12
- .pt#{$num} {
13
- padding-top: 0px + $num;
14
- }
15
- .pr#{$num} {
16
- padding-right: 0px + $num;
17
- }
18
- .pb#{$num} {
19
- padding-bottom: 0px + $num;
20
- }
21
- .pl#{$num} {
22
- padding-left: 0px + $num;
23
- }
24
- .pv#{$num} {
25
- padding-top: 0px + $num;
26
- padding-bottom: 0px + $num;
27
- }
28
- .ph#{$num} {
29
- padding-left: 0px + $num;
30
- padding-right: 0px + $num;
31
- }
32
- .m#{$num} {
33
- margin: 0px + $num;
34
- }
35
- .mt#{$num} {
36
- margin-top: 0px + $num;
37
- }
38
- .mr#{$num} {
39
- margin-right: 0px + $num;
40
- }
41
- .mb#{$num} {
42
- margin-bottom: 0px + $num;
43
- }
44
- .ml#{$num} {
45
- margin-left: 0px + $num;
46
- }
47
- .mv#{$num} {
48
- margin-top: 0px + $num;
49
- margin-bottom: 0px + $num;
50
- }
51
- .mh#{$num} {
52
- margin-left: 0px + $num;
53
- margin-right: 0px + $num;
54
- }
55
- }
56
-
57
- @for $j from 12 through 40 {
58
- .fs#{$j} {
59
- font-size: 0px + $j !important;
60
- }
61
- .lh#{$j} {
62
- line-height: 0px + $j;
63
- }
64
- }
65
-
66
- .f {
67
- display: flex;
68
- }
69
-
70
- .f-s-c {
71
- display: flex;
72
- justify-content: space-between;
73
- align-items: center;
74
- }
75
-
76
- .f-s {
77
- display: flex;
78
- justify-content: space-between;
79
- }
80
-
81
- .f-c {
82
- display: flex;
83
- align-items: center;
84
- }
85
-
86
- .f-c-c {
87
- display: flex;
88
- justify-content: center;
89
- align-items: center;
90
- }
91
-
92
- .f-c-e {
93
- display: flex;
94
- justify-content: flex-end;
95
- align-items: center;
96
- }
97
-
98
- .f-c-c-c {
99
- display: flex;
100
- flex-direction: column;
101
- justify-content: center;
102
- align-items: center;
103
- }
104
-
105
- .f600 {
106
- font-weight: 600;
107
- }
108
-
109
- .tl {
110
- text-align: left;
111
- }
112
- .tc {
113
- text-align: center;
114
- }
115
- .tr {
116
- text-align: right;
117
- }
118
-
119
- .cp {
120
- cursor: pointer;
121
- }
122
-
123
- .breadcrumb-enter-active,
124
- .breadcrumb-leave-active {
125
- transition: all 0.5s;
126
- }
127
-
128
- .breadcrumb-enter,
129
- .breadcrumb-leave-active {
130
- opacity: 0;
131
- transform: translateX(20px);
132
- }
133
-
134
- .breadcrumb-move {
135
- transition: all 0.5s;
136
- }
137
-
138
- .breadcrumb-leave-active {
139
- position: absolute;
140
- }
141
-
142
- .fade-enter-from {
143
- opacity: 0;
144
- transform: translateX(-30px);
145
- }
146
-
147
- .fade-leave-to {
148
- opacity: 0;
149
- transform: translateX(30px);
150
- }
151
-
152
- .fade-enter-active {
153
- transition: all 0.5s;
154
- }
155
- .fade-leave-active {
156
- transition: all 0.5s;
157
- }
158
-
159
- ::-webkit-scrollbar {
160
- width: 8px;
161
- height: 8px;
162
- z-index: 9999;
163
- }
164
-
165
- ::-webkit-scrollbar-track {
166
- border-radius: 0;
167
- background-color: transparent;
168
- }
169
-
170
- input:-webkit-autofill,
171
- input:-webkit-autofill:hover,
172
- input:-webkit-autofill:focus,
173
- input:-webkit-autofill:active {
174
- transition-delay: 111111s;
175
- transition: color 11111s ease-out, background-color 111111s ease-out;
1
+ * {
2
+ box-sizing: border-box;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ @for $i from -20 through 20 {
8
+ $num: 5 * $i;
9
+ .p#{$num} {
10
+ padding: 0px + $num;
11
+ }
12
+ .pt#{$num} {
13
+ padding-top: 0px + $num;
14
+ }
15
+ .pr#{$num} {
16
+ padding-right: 0px + $num;
17
+ }
18
+ .pb#{$num} {
19
+ padding-bottom: 0px + $num;
20
+ }
21
+ .pl#{$num} {
22
+ padding-left: 0px + $num;
23
+ }
24
+ .pv#{$num} {
25
+ padding-top: 0px + $num;
26
+ padding-bottom: 0px + $num;
27
+ }
28
+ .ph#{$num} {
29
+ padding-left: 0px + $num;
30
+ padding-right: 0px + $num;
31
+ }
32
+ .m#{$num} {
33
+ margin: 0px + $num;
34
+ }
35
+ .mt#{$num} {
36
+ margin-top: 0px + $num;
37
+ }
38
+ .mr#{$num} {
39
+ margin-right: 0px + $num;
40
+ }
41
+ .mb#{$num} {
42
+ margin-bottom: 0px + $num;
43
+ }
44
+ .ml#{$num} {
45
+ margin-left: 0px + $num;
46
+ }
47
+ .mv#{$num} {
48
+ margin-top: 0px + $num;
49
+ margin-bottom: 0px + $num;
50
+ }
51
+ .mh#{$num} {
52
+ margin-left: 0px + $num;
53
+ margin-right: 0px + $num;
54
+ }
55
+ }
56
+
57
+ @for $j from 12 through 40 {
58
+ .fs#{$j} {
59
+ font-size: 0px + $j !important;
60
+ }
61
+ .lh#{$j} {
62
+ line-height: 0px + $j;
63
+ }
64
+ }
65
+
66
+ .f {
67
+ display: flex;
68
+ }
69
+
70
+ .f-s-c {
71
+ display: flex;
72
+ justify-content: space-between;
73
+ align-items: center;
74
+ }
75
+
76
+ .f-s {
77
+ display: flex;
78
+ justify-content: space-between;
79
+ }
80
+
81
+ .f-c {
82
+ display: flex;
83
+ align-items: center;
84
+ }
85
+
86
+ .f-c-c {
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+ }
91
+
92
+ .f-c-e {
93
+ display: flex;
94
+ justify-content: flex-end;
95
+ align-items: center;
96
+ }
97
+
98
+ .f-c-c-c {
99
+ display: flex;
100
+ flex-direction: column;
101
+ justify-content: center;
102
+ align-items: center;
103
+ }
104
+
105
+ .f600 {
106
+ font-weight: 600;
107
+ }
108
+
109
+ .tl {
110
+ text-align: left;
111
+ }
112
+ .tc {
113
+ text-align: center;
114
+ }
115
+ .tr {
116
+ text-align: right;
117
+ }
118
+
119
+ .cp {
120
+ cursor: pointer;
121
+ }
122
+
123
+ .breadcrumb-enter-active,
124
+ .breadcrumb-leave-active {
125
+ transition: all 0.5s;
126
+ }
127
+
128
+ .breadcrumb-enter,
129
+ .breadcrumb-leave-active {
130
+ opacity: 0;
131
+ transform: translateX(20px);
132
+ }
133
+
134
+ .breadcrumb-move {
135
+ transition: all 0.5s;
136
+ }
137
+
138
+ .breadcrumb-leave-active {
139
+ position: absolute;
140
+ }
141
+
142
+ .fade-enter-from {
143
+ opacity: 0;
144
+ transform: translateX(-30px);
145
+ }
146
+
147
+ .fade-leave-to {
148
+ opacity: 0;
149
+ transform: translateX(30px);
150
+ }
151
+
152
+ .fade-enter-active {
153
+ transition: all 0.5s;
154
+ }
155
+ .fade-leave-active {
156
+ transition: all 0.5s;
157
+ }
158
+
159
+ ::-webkit-scrollbar {
160
+ width: 8px;
161
+ height: 8px;
162
+ z-index: 9999;
163
+ }
164
+
165
+ ::-webkit-scrollbar-track {
166
+ border-radius: 0;
167
+ background-color: transparent;
168
+ }
169
+
170
+ input:-webkit-autofill,
171
+ input:-webkit-autofill:hover,
172
+ input:-webkit-autofill:focus,
173
+ input:-webkit-autofill:active {
174
+ transition-delay: 111111s;
175
+ transition: color 11111s ease-out, background-color 111111s ease-out;
176
176
  }
Binary file
package/components.d.ts CHANGED
@@ -1,17 +1,20 @@
1
1
  /* eslint-disable */
2
- /* prettier-ignore */
3
2
  // @ts-nocheck
3
+ // biome-ignore lint: disable
4
+ // oxlint-disable
5
+ // ------
4
6
  // Generated by unplugin-vue-components
5
7
  // Read more: https://github.com/vuejs/core/pull/3399
8
+
6
9
  export {}
7
10
 
11
+ /* prettier-ignore */
8
12
  declare module 'vue' {
9
13
  export interface GlobalComponents {
10
14
  ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
11
15
  ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
12
16
  ElButton: typeof import('element-plus/es')['ElButton']
13
17
  ElCard: typeof import('element-plus/es')['ElCard']
14
- ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
15
18
  ElDialog: typeof import('element-plus/es')['ElDialog']
16
19
  ElDivider: typeof import('element-plus/es')['ElDivider']
17
20
  ElDropdown: typeof import('element-plus/es')['ElDropdown']
@@ -32,7 +35,7 @@ declare module 'vue' {
32
35
  RouterLink: typeof import('vue-router')['RouterLink']
33
36
  RouterView: typeof import('vue-router')['RouterView']
34
37
  }
35
- export interface ComponentCustomProperties {
38
+ export interface GlobalDirectives {
36
39
  vLoading: typeof import('element-plus/es')['ElLoadingDirective']
37
40
  }
38
41
  }