@zkwq/business 0.0.47 → 0.0.49
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/dist/css/AppDialog.css +44 -44
- package/dist/css/AppDialog.min.css +1 -1
- package/dist/scss/config.scss +4 -0
- package/dist/scss/drawer.scss +218 -0
- package/dist/scss/function.scss +43 -0
- package/dist/{mixins.scss → scss/mixins.scss} +16 -0
- package/dist/scss/var.scss +1022 -0
- package/package.json +1 -1
- package/vite.config.js +7 -3
- /package/dist/{animations.scss → scss/animations.scss} +0 -0
- /package/dist/{transition.scss → scss/transition.scss} +0 -0
package/dist/css/AppDialog.css
CHANGED
|
@@ -1,4 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
.AppDialog__wrapper.base-dialog__wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
}
|
|
8
|
+
.AppDialog {
|
|
9
|
+
max-height: 100vh;
|
|
10
|
+
transition: max-height 0.8s ease, height 0.8s ease;
|
|
11
|
+
}
|
|
12
|
+
.AppDialog.base-dialog {
|
|
13
|
+
margin-top: 0 !important;
|
|
14
|
+
margin-bottom: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
.AppDialog .base-dialog__header {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
.AppDialog .base-dialog__body {
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
.AppDialog--fullPage {
|
|
23
|
+
height: 100vh;
|
|
24
|
+
}
|
|
25
|
+
.AppDialog--fullPage.AppDialog .base-dialog__body {
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
.AppDialog--fullPage.AppDialog .AppDialog__inner {
|
|
29
|
+
height: 100vh;
|
|
30
|
+
overflow: visible;
|
|
31
|
+
}
|
|
32
|
+
.AppDialog--fullPage.AppDialog .AppDialog__content {
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
.Modal__closeButton {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 8px;
|
|
38
|
+
right: -60px;
|
|
39
|
+
padding: 12px;
|
|
40
|
+
}
|
|
41
|
+
.Modal__closeIcon {
|
|
42
|
+
vertical-align: top;
|
|
43
|
+
fill: #FFF;
|
|
44
|
+
}
|
|
2
45
|
|
|
3
46
|
|
|
4
47
|
|
|
@@ -116,47 +159,4 @@
|
|
|
116
159
|
.AppDialog__subtitle--left[data-v-47783249] {
|
|
117
160
|
padding: 0 16px;
|
|
118
161
|
}
|
|
119
|
-
}.AppDialog__wrapper.base-dialog__wrapper {
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-direction: column;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
overflow-x: hidden;
|
|
124
|
-
overflow-y: auto;
|
|
125
|
-
}
|
|
126
|
-
.AppDialog {
|
|
127
|
-
max-height: 100vh;
|
|
128
|
-
transition: max-height 0.8s ease, height 0.8s ease;
|
|
129
|
-
}
|
|
130
|
-
.AppDialog.base-dialog {
|
|
131
|
-
margin-top: 0 !important;
|
|
132
|
-
margin-bottom: 0 !important;
|
|
133
|
-
}
|
|
134
|
-
.AppDialog .base-dialog__header {
|
|
135
|
-
padding: 0;
|
|
136
|
-
}
|
|
137
|
-
.AppDialog .base-dialog__body {
|
|
138
|
-
padding: 0;
|
|
139
|
-
}
|
|
140
|
-
.AppDialog--fullPage {
|
|
141
|
-
height: 100vh;
|
|
142
|
-
}
|
|
143
|
-
.AppDialog--fullPage.AppDialog .base-dialog__body {
|
|
144
|
-
height: 100%;
|
|
145
|
-
}
|
|
146
|
-
.AppDialog--fullPage.AppDialog .AppDialog__inner {
|
|
147
|
-
height: 100vh;
|
|
148
|
-
overflow: visible;
|
|
149
|
-
}
|
|
150
|
-
.AppDialog--fullPage.AppDialog .AppDialog__content {
|
|
151
|
-
height: 100%;
|
|
152
|
-
}
|
|
153
|
-
.Modal__closeButton {
|
|
154
|
-
position: absolute;
|
|
155
|
-
top: 8px;
|
|
156
|
-
right: -60px;
|
|
157
|
-
padding: 12px;
|
|
158
|
-
}
|
|
159
|
-
.Modal__closeIcon {
|
|
160
|
-
vertical-align: top;
|
|
161
|
-
fill: #FFF;
|
|
162
162
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-47783249]:export{primary:#2F3A91;success:#67C23A;warning:#FF791A;danger:#F1403C;info:#8590a6}.AppDialog__inner[data-v-47783249]{max-height:100vh;transition:max-height .8s ease,height .8s ease}.AppDialog__content[data-v-47783249]{padding:10px 20px 50px}.AppDialog__title[data-v-47783249]{margin-top:40px;font-size:24px;font-weight:500;color:#2f3a91;text-align:center}.AppDialog__subtitle[data-v-47783249]{padding:0 38px;margin-top:4px;font-size:14px;line-height:1.5;color:#8590a6;text-align:center}.AppDialog__title--left[data-v-47783249]{padding:0 20px;font-size:15px;color:#2f3a91;font-weight:600;height:60px;line-height:60px}.AppDialog__subtitle--left[data-v-47783249]{padding:0 20px;font-size:14px;line-height:1;color:#8590a6;text-align:left}@media (max-width:576px){.AppDialog__title--left[data-v-47783249]{padding:20px 16px 10px}.AppDialog__subtitle--left[data-v-47783249]{padding:0 16px}}
|
|
1
|
+
.AppDialog__wrapper.base-dialog__wrapper{display:flex;flex-direction:column;justify-content:center;overflow-x:hidden;overflow-y:auto}.AppDialog{max-height:100vh;transition:max-height .8s ease,height .8s ease}.AppDialog.base-dialog{margin-top:0!important;margin-bottom:0!important}.AppDialog .base-dialog__header{padding:0}.AppDialog .base-dialog__body{padding:0}.AppDialog--fullPage{height:100vh}.AppDialog--fullPage.AppDialog .base-dialog__body{height:100%}.AppDialog--fullPage.AppDialog .AppDialog__inner{height:100vh;overflow:visible}.AppDialog--fullPage.AppDialog .AppDialog__content{height:100%}.Modal__closeButton{position:absolute;top:8px;right:-60px;padding:12px}.Modal__closeIcon{vertical-align:top;fill:#FFF}[data-v-47783249]:export{primary:#2F3A91;success:#67C23A;warning:#FF791A;danger:#F1403C;info:#8590a6}.AppDialog__inner[data-v-47783249]{max-height:100vh;transition:max-height .8s ease,height .8s ease}.AppDialog__content[data-v-47783249]{padding:10px 20px 50px}.AppDialog__title[data-v-47783249]{margin-top:40px;font-size:24px;font-weight:500;color:#2f3a91;text-align:center}.AppDialog__subtitle[data-v-47783249]{padding:0 38px;margin-top:4px;font-size:14px;line-height:1.5;color:#8590a6;text-align:center}.AppDialog__title--left[data-v-47783249]{padding:0 20px;font-size:15px;color:#2f3a91;font-weight:600;height:60px;line-height:60px}.AppDialog__subtitle--left[data-v-47783249]{padding:0 20px;font-size:14px;line-height:1;color:#8590a6;text-align:left}@media (max-width:576px){.AppDialog__title--left[data-v-47783249]{padding:20px 16px 10px}.AppDialog__subtitle--left[data-v-47783249]{padding:0 16px}}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
@import "mixins";
|
|
2
|
+
@import "var";
|
|
3
|
+
|
|
4
|
+
@keyframes base-drawer-fade-in {
|
|
5
|
+
0% {
|
|
6
|
+
opacity: 0;
|
|
7
|
+
}
|
|
8
|
+
100% {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin drawer-animation($direction) {
|
|
14
|
+
|
|
15
|
+
@keyframes #{$direction}-drawer-in {
|
|
16
|
+
0% {
|
|
17
|
+
|
|
18
|
+
@if $direction == ltr {
|
|
19
|
+
transform: translate(-100%, 0px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@if $direction == rtl {
|
|
23
|
+
transform: translate(100%, 0px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@if $direction == ttb {
|
|
27
|
+
transform: translate(0px, -100%);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@if $direction == btt {
|
|
31
|
+
transform: translate(0px, 100%);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
@if $direction == ltr {
|
|
37
|
+
transform: translate(0px, 0px);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@if $direction == rtl {
|
|
41
|
+
transform: translate(0px, 0px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@if $direction == ttb {
|
|
45
|
+
transform: translate(0px, 0px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@if $direction == btt {
|
|
49
|
+
transform: translate(0px, 0px);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes #{$direction}-drawer-out {
|
|
55
|
+
0% {
|
|
56
|
+
@if $direction == ltr {
|
|
57
|
+
transform: translate(0px, 0px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@if $direction == rtl {
|
|
61
|
+
transform: translate(0px, 0px);;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@if $direction == ttb {
|
|
65
|
+
transform: translate(0px, 0px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@if $direction == btt {
|
|
69
|
+
transform: translate(0px, 0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
100% {
|
|
74
|
+
@if $direction == ltr {
|
|
75
|
+
transform: translate(-100%, 0px);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@if $direction == rtl {
|
|
79
|
+
transform: translate(100%, 0px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@if $direction == ttb {
|
|
83
|
+
transform: translate(0px, -100%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@if $direction == btt {
|
|
87
|
+
transform: translate(0px, 100%);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin animation-in($direction) {
|
|
94
|
+
.base-drawer__open &.#{$direction} {
|
|
95
|
+
animation: #{$direction}-drawer-in .3s 1ms;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin animation-out($direction) {
|
|
100
|
+
&.#{$direction} {
|
|
101
|
+
animation: #{$direction}-drawer-out .3s;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@include drawer-animation(rtl);
|
|
106
|
+
@include drawer-animation(ltr);
|
|
107
|
+
@include drawer-animation(ttb);
|
|
108
|
+
@include drawer-animation(btt);
|
|
109
|
+
|
|
110
|
+
$directions: rtl, ltr, ttb, btt;
|
|
111
|
+
|
|
112
|
+
@include b(drawer) {
|
|
113
|
+
position: absolute;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
background-color: $--dialog-background-color;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2),
|
|
119
|
+
0 16px 24px 2px rgba(0, 0, 0, 0.14),
|
|
120
|
+
0 6px 30px 5px rgba(0, 0, 0, 0.12);
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
|
|
123
|
+
@each $direction in $directions {
|
|
124
|
+
@include animation-out($direction);
|
|
125
|
+
@include animation-in($direction);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&__wrapper {
|
|
129
|
+
position: fixed;
|
|
130
|
+
top: 0;
|
|
131
|
+
right: 0;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
left: 0;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
margin: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__header {
|
|
139
|
+
align-items: center;
|
|
140
|
+
color: $--color-text-primary;
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-bottom: 28px;
|
|
143
|
+
padding: $--dialog-padding-primary;
|
|
144
|
+
padding-bottom: 0;
|
|
145
|
+
& > :first-child {
|
|
146
|
+
flex: 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__title {
|
|
151
|
+
margin: 0;
|
|
152
|
+
flex: 1;
|
|
153
|
+
line-height: inherit;
|
|
154
|
+
font-size: 1rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&__close-btn {
|
|
158
|
+
border: none;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
font-size: $--font-size-extra-large;
|
|
161
|
+
color: $--color-text-secondary;
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&__body {
|
|
166
|
+
flex: 1;
|
|
167
|
+
padding-bottom: 60px;
|
|
168
|
+
& > * {
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.ltr, &.rtl {
|
|
174
|
+
height: 100%;
|
|
175
|
+
top: 0;
|
|
176
|
+
bottom: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.ttb, &.btt {
|
|
180
|
+
width: 100%;
|
|
181
|
+
left: 0;
|
|
182
|
+
right: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.ltr {
|
|
186
|
+
left: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&.rtl {
|
|
190
|
+
right: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&.ttb {
|
|
194
|
+
top: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&.btt {
|
|
198
|
+
bottom: 0;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.base-drawer__container {
|
|
203
|
+
position: relative;
|
|
204
|
+
left: 0;
|
|
205
|
+
right: 0;
|
|
206
|
+
top: 0;
|
|
207
|
+
bottom: 0;
|
|
208
|
+
height: 100%;
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.base-drawer-fade-enter-active {
|
|
213
|
+
animation: base-drawer-fade-in .3s;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.base-drawer-fade-leave-active {
|
|
217
|
+
animation: base-drawer-fade-in .3s reverse;
|
|
218
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import "config";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@function selectorToString($selector) {
|
|
5
|
+
$selector: inspect($selector);
|
|
6
|
+
$selector: str-slice($selector, 2, -2);
|
|
7
|
+
@return $selector;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@function containsModifier($selector) {
|
|
11
|
+
$selector: selectorToString($selector);
|
|
12
|
+
|
|
13
|
+
@if str-index($selector, $modifier-separator) {
|
|
14
|
+
@return true;
|
|
15
|
+
} @else {
|
|
16
|
+
@return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@function containWhenFlag($selector) {
|
|
21
|
+
$selector: selectorToString($selector);
|
|
22
|
+
|
|
23
|
+
@if str-index($selector, '.' + $state-prefix) {
|
|
24
|
+
@return true
|
|
25
|
+
} @else {
|
|
26
|
+
@return false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@function containPseudoClass($selector) {
|
|
31
|
+
$selector: selectorToString($selector);
|
|
32
|
+
|
|
33
|
+
@if str-index($selector, ':') {
|
|
34
|
+
@return true
|
|
35
|
+
} @else {
|
|
36
|
+
@return false
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@function hitAllSpecialNestRule($selector) {
|
|
41
|
+
|
|
42
|
+
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
|
|
43
|
+
}
|
|
@@ -194,3 +194,19 @@
|
|
|
194
194
|
@content
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
@mixin transition-base($prop) {
|
|
199
|
+
transition: $prop .3s;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@mixin position-absolute($top, $right, $bottom, $left) {
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: $top;
|
|
205
|
+
right: $right;
|
|
206
|
+
bottom: $bottom;
|
|
207
|
+
left: $left;
|
|
208
|
+
}
|
|
209
|
+
@mixin margin-x($infix) {
|
|
210
|
+
margin-left: $infix;
|
|
211
|
+
margin-right: $infix;
|
|
212
|
+
}
|