@minilo/ui 0.0.4 → 0.0.6
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/README.md +44 -44
- package/minilo/dist/index.full.js +11 -6
- package/minilo/dist/index.full.min.js +1 -1
- package/minilo/dist/index.full.min.js.map +1 -1
- package/minilo/dist/index.full.min.mjs +1 -1
- package/minilo/dist/index.full.min.mjs.map +1 -1
- package/minilo/dist/index.full.mjs +11 -6
- package/minilo/es/components/image-upload-pro/index.d.ts +238 -339
- package/minilo/es/components/image-upload-pro/index.vue.d.ts +263 -364
- package/minilo/es/components/search/index.d.ts +51 -149
- package/minilo/es/components/search/index.vue.d.ts +102 -298
- package/minilo/es/components/tree-select-dialog/index.d.ts +11 -9
- package/minilo/es/components/tree-select-dialog/index.vue2.mjs +5 -3
- package/minilo/es/components/tree-select-drawer/index.d.ts +15 -12
- package/minilo/es/components/tree-select-drawer/index.vue2.mjs +6 -3
- package/minilo/es/index.d.ts +315 -509
- package/minilo/lib/components/image-upload-pro/index.d.ts +238 -339
- package/minilo/lib/components/image-upload-pro/index.vue.d.ts +263 -364
- package/minilo/lib/components/search/index.d.ts +51 -149
- package/minilo/lib/components/search/index.vue.d.ts +102 -298
- package/minilo/lib/components/tree-select-dialog/index.d.ts +11 -9
- package/minilo/lib/components/tree-select-dialog/index.vue2.js +5 -3
- package/minilo/lib/components/tree-select-drawer/index.d.ts +15 -12
- package/minilo/lib/components/tree-select-drawer/index.vue2.js +6 -3
- package/minilo/lib/index.d.ts +315 -509
- package/minilo/theme-chalk/src/button.scss +22 -22
- package/minilo/theme-chalk/src/chart.scss +11 -11
- package/minilo/theme-chalk/src/default/variable.scss +1 -1
- package/minilo/theme-chalk/src/detail.scss +9 -9
- package/minilo/theme-chalk/src/image-upload-pro.scss +70 -70
- package/minilo/theme-chalk/src/index.scss +14 -14
- package/minilo/theme-chalk/src/mixins/mixin.scss +273 -273
- package/minilo/theme-chalk/src/search-table.scss +47 -47
- package/minilo/theme-chalk/src/search.scss +20 -20
- package/minilo/theme-chalk/src/tree-select.scss +47 -47
- package/minilo/theme-chalk/src/virtual-list.scss +49 -49
- package/package.json +4 -3
|
@@ -1,273 +1,273 @@
|
|
|
1
|
-
@use '../default/variable.scss' as *;
|
|
2
|
-
|
|
3
|
-
@mixin bem($block) {
|
|
4
|
-
$block-selector: '.#{$library-prefix}#{$block}';
|
|
5
|
-
|
|
6
|
-
#{$block-selector} {
|
|
7
|
-
@content;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin flex(
|
|
12
|
-
$display: flex,
|
|
13
|
-
// 显示类型:flex 或 inline-flex
|
|
14
|
-
$justify: flex-start,
|
|
15
|
-
// 主轴对齐:flex-start | center | flex-end | space-between | space-around | space-evenly
|
|
16
|
-
$align-items: stretch,
|
|
17
|
-
// 交叉轴对齐:stretch | flex-start | center | flex-end | baseline
|
|
18
|
-
$direction: row,
|
|
19
|
-
// 主轴方向:row | column | row-reverse | column-reverse
|
|
20
|
-
$wrap: nowrap,
|
|
21
|
-
// 换行方式:nowrap | wrap | wrap-reverse
|
|
22
|
-
$align-content: stretch,
|
|
23
|
-
// 多行对齐:stretch | flex-start | center | flex-end | space-between | space-around
|
|
24
|
-
$gap: 0 // 项目间距
|
|
25
|
-
) {
|
|
26
|
-
display: $display;
|
|
27
|
-
justify-content: $justify;
|
|
28
|
-
align-items: $align-items;
|
|
29
|
-
flex-direction: $direction;
|
|
30
|
-
flex-wrap: $wrap;
|
|
31
|
-
align-content: $align-content;
|
|
32
|
-
gap: $gap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 水平方向:左对齐 + 顶部对齐
|
|
36
|
-
@mixin flex-start-start($wrap: nowrap, $gap: 0) {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: row;
|
|
39
|
-
justify-content: flex-start;
|
|
40
|
-
align-items: flex-start;
|
|
41
|
-
flex-wrap: $wrap;
|
|
42
|
-
gap: $gap;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// 水平方向:左对齐 + 垂直居中
|
|
46
|
-
@mixin flex-start-center($wrap: nowrap, $gap: 0) {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
justify-content: flex-start;
|
|
50
|
-
align-items: center;
|
|
51
|
-
flex-wrap: $wrap;
|
|
52
|
-
gap: $gap;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// 水平方向:左对齐 + 底部对齐
|
|
56
|
-
@mixin flex-start-end($wrap: nowrap, $gap: 0) {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
justify-content: flex-start;
|
|
60
|
-
align-items: flex-end;
|
|
61
|
-
flex-wrap: $wrap;
|
|
62
|
-
gap: $gap;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// 水平方向:居中对齐 + 顶部对齐
|
|
66
|
-
@mixin flex-center-start($wrap: nowrap, $gap: 0) {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
align-items: flex-start;
|
|
71
|
-
flex-wrap: $wrap;
|
|
72
|
-
gap: $gap;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// 水平方向:居中对齐 + 垂直居中(最常用)
|
|
76
|
-
@mixin flex-center-center($wrap: nowrap, $gap: 0) {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
align-items: center;
|
|
81
|
-
flex-wrap: $wrap;
|
|
82
|
-
gap: $gap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// 水平方向:居中对齐 + 底部对齐
|
|
86
|
-
@mixin flex-center-end($wrap: nowrap, $gap: 0) {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
align-items: flex-end;
|
|
91
|
-
flex-wrap: $wrap;
|
|
92
|
-
gap: $gap;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// 水平方向:右对齐 + 顶部对齐
|
|
96
|
-
@mixin flex-end-start($wrap: nowrap, $gap: 0) {
|
|
97
|
-
display: flex;
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
justify-content: flex-end;
|
|
100
|
-
align-items: flex-start;
|
|
101
|
-
flex-wrap: $wrap;
|
|
102
|
-
gap: $gap;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// 水平方向:右对齐 + 垂直居中
|
|
106
|
-
@mixin flex-end-center($wrap: nowrap, $gap: 0) {
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
justify-content: flex-end;
|
|
110
|
-
align-items: center;
|
|
111
|
-
flex-wrap: $wrap;
|
|
112
|
-
gap: $gap;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// 水平方向:右对齐 + 底部对齐
|
|
116
|
-
@mixin flex-end-end($wrap: nowrap, $gap: 0) {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-direction: row;
|
|
119
|
-
justify-content: flex-end;
|
|
120
|
-
align-items: flex-end;
|
|
121
|
-
flex-wrap: $wrap;
|
|
122
|
-
gap: $gap;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// 水平方向:两端对齐 + 顶部对齐
|
|
126
|
-
@mixin flex-between-start($wrap: nowrap, $gap: 0) {
|
|
127
|
-
display: flex;
|
|
128
|
-
flex-direction: row;
|
|
129
|
-
justify-content: space-between;
|
|
130
|
-
align-items: flex-start;
|
|
131
|
-
flex-wrap: $wrap;
|
|
132
|
-
gap: $gap;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// 水平方向:两端对齐 + 垂直居中(常用于导航栏)
|
|
136
|
-
@mixin flex-between-center($wrap: nowrap, $gap: 0) {
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-direction: row;
|
|
139
|
-
justify-content: space-between;
|
|
140
|
-
align-items: center;
|
|
141
|
-
flex-wrap: $wrap;
|
|
142
|
-
gap: $gap;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// 水平方向:两端对齐 + 底部对齐
|
|
146
|
-
@mixin flex-between-end($wrap: nowrap, $gap: 0) {
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: row;
|
|
149
|
-
justify-content: space-between;
|
|
150
|
-
align-items: flex-end;
|
|
151
|
-
flex-wrap: $wrap;
|
|
152
|
-
gap: $gap;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// 垂直方向:顶部对齐 + 左对齐
|
|
156
|
-
@mixin flex-col-start-start($wrap: nowrap, $gap: 0) {
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-direction: column;
|
|
159
|
-
justify-content: flex-start;
|
|
160
|
-
align-items: flex-start;
|
|
161
|
-
flex-wrap: $wrap;
|
|
162
|
-
gap: $gap;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// 垂直方向:顶部对齐 + 水平居中
|
|
166
|
-
@mixin flex-col-start-center($wrap: nowrap, $gap: 0) {
|
|
167
|
-
display: flex;
|
|
168
|
-
flex-direction: column;
|
|
169
|
-
justify-content: flex-start;
|
|
170
|
-
align-items: center;
|
|
171
|
-
flex-wrap: $wrap;
|
|
172
|
-
gap: $gap;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// 垂直方向:顶部对齐 + 右对齐
|
|
176
|
-
@mixin flex-col-start-end($wrap: nowrap, $gap: 0) {
|
|
177
|
-
display: flex;
|
|
178
|
-
flex-direction: column;
|
|
179
|
-
justify-content: flex-start;
|
|
180
|
-
align-items: flex-end;
|
|
181
|
-
flex-wrap: $wrap;
|
|
182
|
-
gap: $gap;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// 垂直方向:垂直居中 + 左对齐
|
|
186
|
-
@mixin flex-col-center-start($wrap: nowrap, $gap: 0) {
|
|
187
|
-
display: flex;
|
|
188
|
-
flex-direction: column;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
align-items: flex-start;
|
|
191
|
-
flex-wrap: $wrap;
|
|
192
|
-
gap: $gap;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// 垂直方向:垂直居中 + 水平居中(常用于模态框)
|
|
196
|
-
@mixin flex-col-center-center($wrap: nowrap, $gap: 0) {
|
|
197
|
-
display: flex;
|
|
198
|
-
flex-direction: column;
|
|
199
|
-
justify-content: center;
|
|
200
|
-
align-items: center;
|
|
201
|
-
flex-wrap: $wrap;
|
|
202
|
-
gap: $gap;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// 垂直方向:垂直居中 + 右对齐
|
|
206
|
-
@mixin flex-col-center-end($wrap: nowrap, $gap: 0) {
|
|
207
|
-
display: flex;
|
|
208
|
-
flex-direction: column;
|
|
209
|
-
justify-content: center;
|
|
210
|
-
align-items: flex-end;
|
|
211
|
-
flex-wrap: $wrap;
|
|
212
|
-
gap: $gap;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// 垂直方向:底部对齐 + 左对齐
|
|
216
|
-
@mixin flex-col-end-start($wrap: nowrap, $gap: 0) {
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
justify-content: flex-end;
|
|
220
|
-
align-items: flex-start;
|
|
221
|
-
flex-wrap: $wrap;
|
|
222
|
-
gap: $gap;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// 垂直方向:底部对齐 + 水平居中
|
|
226
|
-
@mixin flex-col-end-center($wrap: nowrap, $gap: 0) {
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-direction: column;
|
|
229
|
-
justify-content: flex-end;
|
|
230
|
-
align-items: center;
|
|
231
|
-
flex-wrap: $wrap;
|
|
232
|
-
gap: $gap;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// 垂直方向:底部对齐 + 右对齐
|
|
236
|
-
@mixin flex-col-end-end($wrap: nowrap, $gap: 0) {
|
|
237
|
-
display: flex;
|
|
238
|
-
flex-direction: column;
|
|
239
|
-
justify-content: flex-end;
|
|
240
|
-
align-items: flex-end;
|
|
241
|
-
flex-wrap: $wrap;
|
|
242
|
-
gap: $gap;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
// 垂直方向:均匀分布 + 左对齐
|
|
246
|
-
@mixin flex-col-between-start($wrap: nowrap, $gap: 0) {
|
|
247
|
-
display: flex;
|
|
248
|
-
flex-direction: column;
|
|
249
|
-
justify-content: space-between;
|
|
250
|
-
align-items: flex-start;
|
|
251
|
-
flex-wrap: $wrap;
|
|
252
|
-
gap: $gap;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// 垂直方向:均匀分布 + 水平居中(常用于卡片)
|
|
256
|
-
@mixin flex-col-between-center($wrap: nowrap, $gap: 0) {
|
|
257
|
-
display: flex;
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
justify-content: space-between;
|
|
260
|
-
align-items: center;
|
|
261
|
-
flex-wrap: $wrap;
|
|
262
|
-
gap: $gap;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// 垂直方向:均匀分布 + 右对齐
|
|
266
|
-
@mixin flex-col-between-end($wrap: nowrap, $gap: 0) {
|
|
267
|
-
display: flex;
|
|
268
|
-
flex-direction: column;
|
|
269
|
-
justify-content: space-between;
|
|
270
|
-
align-items: flex-end;
|
|
271
|
-
flex-wrap: $wrap;
|
|
272
|
-
gap: $gap;
|
|
273
|
-
}
|
|
1
|
+
@use '../default/variable.scss' as *;
|
|
2
|
+
|
|
3
|
+
@mixin bem($block) {
|
|
4
|
+
$block-selector: '.#{$library-prefix}#{$block}';
|
|
5
|
+
|
|
6
|
+
#{$block-selector} {
|
|
7
|
+
@content;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin flex(
|
|
12
|
+
$display: flex,
|
|
13
|
+
// 显示类型:flex 或 inline-flex
|
|
14
|
+
$justify: flex-start,
|
|
15
|
+
// 主轴对齐:flex-start | center | flex-end | space-between | space-around | space-evenly
|
|
16
|
+
$align-items: stretch,
|
|
17
|
+
// 交叉轴对齐:stretch | flex-start | center | flex-end | baseline
|
|
18
|
+
$direction: row,
|
|
19
|
+
// 主轴方向:row | column | row-reverse | column-reverse
|
|
20
|
+
$wrap: nowrap,
|
|
21
|
+
// 换行方式:nowrap | wrap | wrap-reverse
|
|
22
|
+
$align-content: stretch,
|
|
23
|
+
// 多行对齐:stretch | flex-start | center | flex-end | space-between | space-around
|
|
24
|
+
$gap: 0 // 项目间距
|
|
25
|
+
) {
|
|
26
|
+
display: $display;
|
|
27
|
+
justify-content: $justify;
|
|
28
|
+
align-items: $align-items;
|
|
29
|
+
flex-direction: $direction;
|
|
30
|
+
flex-wrap: $wrap;
|
|
31
|
+
align-content: $align-content;
|
|
32
|
+
gap: $gap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 水平方向:左对齐 + 顶部对齐
|
|
36
|
+
@mixin flex-start-start($wrap: nowrap, $gap: 0) {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
flex-wrap: $wrap;
|
|
42
|
+
gap: $gap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 水平方向:左对齐 + 垂直居中
|
|
46
|
+
@mixin flex-start-center($wrap: nowrap, $gap: 0) {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
align-items: center;
|
|
51
|
+
flex-wrap: $wrap;
|
|
52
|
+
gap: $gap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 水平方向:左对齐 + 底部对齐
|
|
56
|
+
@mixin flex-start-end($wrap: nowrap, $gap: 0) {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
justify-content: flex-start;
|
|
60
|
+
align-items: flex-end;
|
|
61
|
+
flex-wrap: $wrap;
|
|
62
|
+
gap: $gap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// 水平方向:居中对齐 + 顶部对齐
|
|
66
|
+
@mixin flex-center-start($wrap: nowrap, $gap: 0) {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: row;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: flex-start;
|
|
71
|
+
flex-wrap: $wrap;
|
|
72
|
+
gap: $gap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// 水平方向:居中对齐 + 垂直居中(最常用)
|
|
76
|
+
@mixin flex-center-center($wrap: nowrap, $gap: 0) {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
flex-wrap: $wrap;
|
|
82
|
+
gap: $gap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 水平方向:居中对齐 + 底部对齐
|
|
86
|
+
@mixin flex-center-end($wrap: nowrap, $gap: 0) {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: flex-end;
|
|
91
|
+
flex-wrap: $wrap;
|
|
92
|
+
gap: $gap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 水平方向:右对齐 + 顶部对齐
|
|
96
|
+
@mixin flex-end-start($wrap: nowrap, $gap: 0) {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
flex-wrap: $wrap;
|
|
102
|
+
gap: $gap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// 水平方向:右对齐 + 垂直居中
|
|
106
|
+
@mixin flex-end-center($wrap: nowrap, $gap: 0) {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
justify-content: flex-end;
|
|
110
|
+
align-items: center;
|
|
111
|
+
flex-wrap: $wrap;
|
|
112
|
+
gap: $gap;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// 水平方向:右对齐 + 底部对齐
|
|
116
|
+
@mixin flex-end-end($wrap: nowrap, $gap: 0) {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: row;
|
|
119
|
+
justify-content: flex-end;
|
|
120
|
+
align-items: flex-end;
|
|
121
|
+
flex-wrap: $wrap;
|
|
122
|
+
gap: $gap;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// 水平方向:两端对齐 + 顶部对齐
|
|
126
|
+
@mixin flex-between-start($wrap: nowrap, $gap: 0) {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: row;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
flex-wrap: $wrap;
|
|
132
|
+
gap: $gap;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// 水平方向:两端对齐 + 垂直居中(常用于导航栏)
|
|
136
|
+
@mixin flex-between-center($wrap: nowrap, $gap: 0) {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: row;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
align-items: center;
|
|
141
|
+
flex-wrap: $wrap;
|
|
142
|
+
gap: $gap;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// 水平方向:两端对齐 + 底部对齐
|
|
146
|
+
@mixin flex-between-end($wrap: nowrap, $gap: 0) {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: row;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
align-items: flex-end;
|
|
151
|
+
flex-wrap: $wrap;
|
|
152
|
+
gap: $gap;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// 垂直方向:顶部对齐 + 左对齐
|
|
156
|
+
@mixin flex-col-start-start($wrap: nowrap, $gap: 0) {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
justify-content: flex-start;
|
|
160
|
+
align-items: flex-start;
|
|
161
|
+
flex-wrap: $wrap;
|
|
162
|
+
gap: $gap;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// 垂直方向:顶部对齐 + 水平居中
|
|
166
|
+
@mixin flex-col-start-center($wrap: nowrap, $gap: 0) {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
justify-content: flex-start;
|
|
170
|
+
align-items: center;
|
|
171
|
+
flex-wrap: $wrap;
|
|
172
|
+
gap: $gap;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// 垂直方向:顶部对齐 + 右对齐
|
|
176
|
+
@mixin flex-col-start-end($wrap: nowrap, $gap: 0) {
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
justify-content: flex-start;
|
|
180
|
+
align-items: flex-end;
|
|
181
|
+
flex-wrap: $wrap;
|
|
182
|
+
gap: $gap;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// 垂直方向:垂直居中 + 左对齐
|
|
186
|
+
@mixin flex-col-center-start($wrap: nowrap, $gap: 0) {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
align-items: flex-start;
|
|
191
|
+
flex-wrap: $wrap;
|
|
192
|
+
gap: $gap;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// 垂直方向:垂直居中 + 水平居中(常用于模态框)
|
|
196
|
+
@mixin flex-col-center-center($wrap: nowrap, $gap: 0) {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
align-items: center;
|
|
201
|
+
flex-wrap: $wrap;
|
|
202
|
+
gap: $gap;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// 垂直方向:垂直居中 + 右对齐
|
|
206
|
+
@mixin flex-col-center-end($wrap: nowrap, $gap: 0) {
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
justify-content: center;
|
|
210
|
+
align-items: flex-end;
|
|
211
|
+
flex-wrap: $wrap;
|
|
212
|
+
gap: $gap;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// 垂直方向:底部对齐 + 左对齐
|
|
216
|
+
@mixin flex-col-end-start($wrap: nowrap, $gap: 0) {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
justify-content: flex-end;
|
|
220
|
+
align-items: flex-start;
|
|
221
|
+
flex-wrap: $wrap;
|
|
222
|
+
gap: $gap;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// 垂直方向:底部对齐 + 水平居中
|
|
226
|
+
@mixin flex-col-end-center($wrap: nowrap, $gap: 0) {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
justify-content: flex-end;
|
|
230
|
+
align-items: center;
|
|
231
|
+
flex-wrap: $wrap;
|
|
232
|
+
gap: $gap;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// 垂直方向:底部对齐 + 右对齐
|
|
236
|
+
@mixin flex-col-end-end($wrap: nowrap, $gap: 0) {
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
justify-content: flex-end;
|
|
240
|
+
align-items: flex-end;
|
|
241
|
+
flex-wrap: $wrap;
|
|
242
|
+
gap: $gap;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// 垂直方向:均匀分布 + 左对齐
|
|
246
|
+
@mixin flex-col-between-start($wrap: nowrap, $gap: 0) {
|
|
247
|
+
display: flex;
|
|
248
|
+
flex-direction: column;
|
|
249
|
+
justify-content: space-between;
|
|
250
|
+
align-items: flex-start;
|
|
251
|
+
flex-wrap: $wrap;
|
|
252
|
+
gap: $gap;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// 垂直方向:均匀分布 + 水平居中(常用于卡片)
|
|
256
|
+
@mixin flex-col-between-center($wrap: nowrap, $gap: 0) {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
justify-content: space-between;
|
|
260
|
+
align-items: center;
|
|
261
|
+
flex-wrap: $wrap;
|
|
262
|
+
gap: $gap;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// 垂直方向:均匀分布 + 右对齐
|
|
266
|
+
@mixin flex-col-between-end($wrap: nowrap, $gap: 0) {
|
|
267
|
+
display: flex;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
justify-content: space-between;
|
|
270
|
+
align-items: flex-end;
|
|
271
|
+
flex-wrap: $wrap;
|
|
272
|
+
gap: $gap;
|
|
273
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
@use './mixins/mixin.scss' as *;
|
|
2
|
-
@use './search.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include bem('search-table') {
|
|
5
|
-
height: 100%;
|
|
6
|
-
@include flex-col-start-start;
|
|
7
|
-
:deep(.el-table) {
|
|
8
|
-
border-radius: 8px 8px 0 0;
|
|
9
|
-
th {
|
|
10
|
-
background-color: #f3f3f3;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
&__content {
|
|
14
|
-
width: 100%;
|
|
15
|
-
margin-top: 10px;
|
|
16
|
-
flex: 1;
|
|
17
|
-
}
|
|
18
|
-
&__pagination {
|
|
19
|
-
width: 100%;
|
|
20
|
-
@include flex-end-center;
|
|
21
|
-
.el-pagination {
|
|
22
|
-
@include flex-end-center;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
// .search-table {
|
|
27
|
-
// height: 100%;
|
|
28
|
-
// @include flex-col-start-start;
|
|
29
|
-
// :deep(.el-table) {
|
|
30
|
-
// border-radius: 8px 8px 0 0;
|
|
31
|
-
// th {
|
|
32
|
-
// background-color: #f3f3f3;
|
|
33
|
-
// }
|
|
34
|
-
// }
|
|
35
|
-
// &__content {
|
|
36
|
-
// width: 100%;
|
|
37
|
-
// margin-top: 10px;
|
|
38
|
-
// flex: 1;
|
|
39
|
-
// }
|
|
40
|
-
// &__pagination {
|
|
41
|
-
// width: 100%;
|
|
42
|
-
// @include flex-end-center;
|
|
43
|
-
// .el-pagination {
|
|
44
|
-
// @include flex-end-center;
|
|
45
|
-
// }
|
|
46
|
-
// }
|
|
47
|
-
// }
|
|
1
|
+
@use './mixins/mixin.scss' as *;
|
|
2
|
+
@use './search.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include bem('search-table') {
|
|
5
|
+
height: 100%;
|
|
6
|
+
@include flex-col-start-start;
|
|
7
|
+
:deep(.el-table) {
|
|
8
|
+
border-radius: 8px 8px 0 0;
|
|
9
|
+
th {
|
|
10
|
+
background-color: #f3f3f3;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
&__content {
|
|
14
|
+
width: 100%;
|
|
15
|
+
margin-top: 10px;
|
|
16
|
+
flex: 1;
|
|
17
|
+
}
|
|
18
|
+
&__pagination {
|
|
19
|
+
width: 100%;
|
|
20
|
+
@include flex-end-center;
|
|
21
|
+
.el-pagination {
|
|
22
|
+
@include flex-end-center;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
// .search-table {
|
|
27
|
+
// height: 100%;
|
|
28
|
+
// @include flex-col-start-start;
|
|
29
|
+
// :deep(.el-table) {
|
|
30
|
+
// border-radius: 8px 8px 0 0;
|
|
31
|
+
// th {
|
|
32
|
+
// background-color: #f3f3f3;
|
|
33
|
+
// }
|
|
34
|
+
// }
|
|
35
|
+
// &__content {
|
|
36
|
+
// width: 100%;
|
|
37
|
+
// margin-top: 10px;
|
|
38
|
+
// flex: 1;
|
|
39
|
+
// }
|
|
40
|
+
// &__pagination {
|
|
41
|
+
// width: 100%;
|
|
42
|
+
// @include flex-end-center;
|
|
43
|
+
// .el-pagination {
|
|
44
|
+
// @include flex-end-center;
|
|
45
|
+
// }
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@use './mixins/mixin.scss' as *;
|
|
2
|
-
|
|
3
|
-
@include bem('search') {
|
|
4
|
-
width: 100%;
|
|
5
|
-
&__content {
|
|
6
|
-
@include flex-between-start;
|
|
7
|
-
.el-form-item {
|
|
8
|
-
margin-bottom: 6px;
|
|
9
|
-
}
|
|
10
|
-
&__left {
|
|
11
|
-
flex: 1;
|
|
12
|
-
}
|
|
13
|
-
&__right {
|
|
14
|
-
margin-left: 12px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
&__collapse {
|
|
18
|
-
margin-bottom: 10px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
@use './mixins/mixin.scss' as *;
|
|
2
|
+
|
|
3
|
+
@include bem('search') {
|
|
4
|
+
width: 100%;
|
|
5
|
+
&__content {
|
|
6
|
+
@include flex-between-start;
|
|
7
|
+
.el-form-item {
|
|
8
|
+
margin-bottom: 6px;
|
|
9
|
+
}
|
|
10
|
+
&__left {
|
|
11
|
+
flex: 1;
|
|
12
|
+
}
|
|
13
|
+
&__right {
|
|
14
|
+
margin-left: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&__collapse {
|
|
18
|
+
margin-bottom: 10px;
|
|
19
|
+
}
|
|
20
|
+
}
|