@ctzy-web-client/plugin-component-vue 1.0.0
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/package.json +43 -0
- package/src/advance-select/advance-operation.vue +44 -0
- package/src/advance-select/advance-option.vue +115 -0
- package/src/advance-select/advance-select.vue +343 -0
- package/src/advance-select/events-helpers.js +40 -0
- package/src/advance-select/index.js +13 -0
- package/src/advance-select/use-advance-option.js +58 -0
- package/src/advance-select/use-advance-select.js +142 -0
- package/src/application-slot/application-slot.js +70 -0
- package/src/application-slot/breadcrumb-item.vue +12 -0
- package/src/application-slot/header-tools-item.vue +12 -0
- package/src/application-slot/index.js +17 -0
- package/src/breadcrumb-select/breadcrumb-select.vue +97 -0
- package/src/breadcrumb-select/index.js +6 -0
- package/src/components.js +39 -0
- package/src/contextmenu/contextmenu-item.vue +13 -0
- package/src/contextmenu/contextmenu.vue +56 -0
- package/src/contextmenu/index.js +11 -0
- package/src/contextmenu/use-contextmenu.js +117 -0
- package/src/data-form/data-form-item.vue +49 -0
- package/src/data-form/data-form.vue +212 -0
- package/src/data-form/dynamic-component.js +24 -0
- package/src/data-form/form-components/Blots/AtBlot.js +32 -0
- package/src/data-form/form-components/bwa-date-picker.vue +43 -0
- package/src/data-form/form-components/bwa-date-time-picker.vue +49 -0
- package/src/data-form/form-components/bwa-input-float.vue +41 -0
- package/src/data-form/form-components/bwa-input-integer.vue +58 -0
- package/src/data-form/form-components/bwa-input.vue +32 -0
- package/src/data-form/form-components/bwa-multi-select.vue +27 -0
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +561 -0
- package/src/data-form/form-components/bwa-rich-text.vue +395 -0
- package/src/data-form/form-components/bwa-select.vue +67 -0
- package/src/data-form/form-components/bwa-textarea.vue +28 -0
- package/src/data-form/form-components/bwa-upload.vue +145 -0
- package/src/data-form/form-components/bwa-user-multi-select.vue +25 -0
- package/src/data-form/form-components/bwa-user-select.vue +81 -0
- package/src/data-form/index.js +35 -0
- package/src/data-table/data-column-view.vue +131 -0
- package/src/data-table/data-table-card.vue +81 -0
- package/src/data-table/data-table-column.vue +52 -0
- package/src/data-table/data-table.vue +426 -0
- package/src/data-table/dynamic-component.js +58 -0
- package/src/data-table/index.js +13 -0
- package/src/data-table/use-datatable-drag.js +156 -0
- package/src/datatable-settings/datatable-settings.vue +323 -0
- package/src/datatable-settings/index.js +6 -0
- package/src/date-range/date-picker.vue +115 -0
- package/src/date-range/date-range.vue +202 -0
- package/src/date-range/index.js +6 -0
- package/src/drag-list/constants.js +1 -0
- package/src/drag-list/drag-item.vue +46 -0
- package/src/drag-list/drag-list.vue +50 -0
- package/src/drag-list/index.js +6 -0
- package/src/drag-list/use-drag-list.js +209 -0
- package/src/dragable/constants.js +3 -0
- package/src/dragable/dragable-item.vue +19 -0
- package/src/dragable/dragable-operation.vue +28 -0
- package/src/dragable/dragable.vue +26 -0
- package/src/dragable/index.js +14 -0
- package/src/dragable/use-dragable.js +227 -0
- package/src/filter-panel/conditions/condition.js +35 -0
- package/src/filter-panel/conditions/date-range-condition.vue +35 -0
- package/src/filter-panel/conditions/department-condition/data.json +29537 -0
- package/src/filter-panel/conditions/department-condition/department-condition.vue +92 -0
- package/src/filter-panel/conditions/department-condition/department-node.vue +52 -0
- package/src/filter-panel/conditions/index.js +22 -0
- package/src/filter-panel/conditions/input-condition.vue +63 -0
- package/src/filter-panel/conditions/multi-user-condition.vue +56 -0
- package/src/filter-panel/conditions/multiple-menu-condition.vue +45 -0
- package/src/filter-panel/conditions/single-menu-condition.vue +58 -0
- package/src/filter-panel/conditions/single-user-condition.vue +56 -0
- package/src/filter-panel/filter-panel-item.vue +46 -0
- package/src/filter-panel/filter-panel.vue +149 -0
- package/src/filter-panel/index.js +17 -0
- package/src/filter-panel/use-filter-panel-item.js +59 -0
- package/src/filter-panel/use-filter-panel.js +203 -0
- package/src/hooks/use-data/index.js +234 -0
- package/src/index.js +48 -0
- package/src/layout/index.js +6 -0
- package/src/layout/layout.vue +74 -0
- package/src/make-installer.js +36 -0
- package/src/math/Rectangle.js +28 -0
- package/src/menu/index.js +6 -0
- package/src/menu/menu-item.vue +41 -0
- package/src/menu/menu.vue +53 -0
- package/src/panel/index.js +6 -0
- package/src/panel/panel.vue +42 -0
- package/src/panel-tabs/index.js +6 -0
- package/src/panel-tabs/panel-tabs.js +92 -0
- package/src/pct-filter-panel/index.js +10 -0
- package/src/pct-filter-panel/pct-compents/index.js +10 -0
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +63 -0
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +60 -0
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +177 -0
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue +142 -0
- package/src/pct-filter-panel/pct-filter-panel-item.vue +46 -0
- package/src/pct-filter-panel/pct-filter-panel.vue +201 -0
- package/src/pct-filter-panel/use-filter-panel-item.js +61 -0
- package/src/pct-filter-panel/use-filter-panel.js +206 -0
- package/src/plugins.js +3 -0
- package/src/progress/index.js +8 -0
- package/src/progress/progress-item.vue +81 -0
- package/src/progress/progress.vue +58 -0
- package/src/progress/use-progress.js +66 -0
- package/src/utils/db.js +8 -0
- package/src/utils.js +263 -0
- package/src/where-filter-panel/index.js +0 -0
- package/src/where-filter-panel/use-where-filter-panel.js +28 -0
- package/src/where-filter-panel/where-filter-panel.vue +9 -0
- package/style/advance-select.scss +316 -0
- package/style/breadcrumb-select.scss +80 -0
- package/style/common/var.scss +240 -0
- package/style/common.scss +48 -0
- package/style/contextmenu.scss +58 -0
- package/style/data-form.scss +35 -0
- package/style/data-table.scss +81 -0
- package/style/datatable-settings.scss +125 -0
- package/style/date-range.scss +136 -0
- package/style/department-condition.scss +39 -0
- package/style/drag-list.scss +68 -0
- package/style/dragable.scss +8 -0
- package/style/filter-panel.scss +199 -0
- package/style/index.scss +22 -0
- package/style/input-condition.scss +30 -0
- package/style/layout.scss +70 -0
- package/style/menu.scss +184 -0
- package/style/mixins/_var.scss +21 -0
- package/style/mixins/config.scss +4 -0
- package/style/mixins/function.scss +62 -0
- package/style/mixins/mixins.scss +88 -0
- package/style/panel-tabs.scss +60 -0
- package/style/panel.scss +110 -0
- package/style/pct-filter-panel.scss +306 -0
- package/style/progress.scss +122 -0
- package/style/rich-text.scss +30 -0
- package/style/theme/theme.scss +161 -0
- package/style/theme/var.scss +34 -0
- package/style/var.scss +21 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
@use 'common/var' as *;
|
|
2
|
+
@use 'mixins/mixins' as *;
|
|
3
|
+
|
|
4
|
+
@mixin advance-select-active {
|
|
5
|
+
background-color: getCssVar('advance-select', 'reference-active-bg-color');
|
|
6
|
+
|
|
7
|
+
// @include e(caret) {
|
|
8
|
+
// opacity: 1;
|
|
9
|
+
// }
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include b(advance-select) {
|
|
13
|
+
@include set-component-css-var('advance-select', $advance-select);
|
|
14
|
+
display: inline-block;
|
|
15
|
+
|
|
16
|
+
$spacing-line-color: getCssVar('advance-select', 'spacing-line-color');
|
|
17
|
+
$spacing-line-size: getCssVar('advance-select', 'spacing-line-size');
|
|
18
|
+
|
|
19
|
+
@include e(input-wrapper) {
|
|
20
|
+
height: getCssVar('advance-select', 'input-height');
|
|
21
|
+
box-shadow: 0 $spacing-line-size 0 0 $spacing-line-color;
|
|
22
|
+
margin-bottom: $spacing-line-size;
|
|
23
|
+
|
|
24
|
+
.el-input__wrapper {
|
|
25
|
+
box-shadow: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include e(reference) {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: getCssVar('advance-select', 'reference-padding');
|
|
33
|
+
border-radius: getCssVar('advance-select', 'reference-border-radius');
|
|
34
|
+
color: getCssVar('advance-select', 'reference-text-color');
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
transition: 0.2s ease-out;
|
|
37
|
+
|
|
38
|
+
@include pseudo(hover) {
|
|
39
|
+
@include advance-select-active();
|
|
40
|
+
}
|
|
41
|
+
@include when(active) {
|
|
42
|
+
@include advance-select-active();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@include e(pct-reference) {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
//padding: getCssVar('advance-select', 'reference-padding');
|
|
49
|
+
border-radius: getCssVar('advance-select', 'reference-border-radius');
|
|
50
|
+
color: getCssVar('advance-select', 'reference-text-color');
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
transition: 0.2s ease-out;
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@include e(top) {
|
|
58
|
+
padding: 4px 0;
|
|
59
|
+
box-shadow: 0 $spacing-line-size 0 0 $spacing-line-color;
|
|
60
|
+
margin-bottom: $spacing-line-size;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include e(content) {
|
|
64
|
+
@include set-component-css-var('advance-select', $advance-select);
|
|
65
|
+
|
|
66
|
+
@include when(single) {
|
|
67
|
+
.#{$namespace}-advance-select__clear {
|
|
68
|
+
margin-left: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include e(bottom) {
|
|
74
|
+
padding: 4px 0;
|
|
75
|
+
box-shadow: 0 calc(0px - $spacing-line-size) 0 0 $spacing-line-color;
|
|
76
|
+
margin-bottom: $spacing-line-size;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@include e(label) {
|
|
80
|
+
margin-right: getCssVar('advance-select', 'label-margin-right');
|
|
81
|
+
// opacity: 0.7;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@include e(content) {
|
|
85
|
+
font-weight: 500;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@include e(caret) {
|
|
89
|
+
margin-left: getCssVar('advance-select', 'caret-margin-left');
|
|
90
|
+
// opacity: 0.3;
|
|
91
|
+
transition: 0.2s ease-out;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include e(operation) {
|
|
95
|
+
padding: 0;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
line-height: 22px;
|
|
98
|
+
|
|
99
|
+
@include when(border) {
|
|
100
|
+
box-shadow: 0 $spacing-line-size 0 0 $spacing-line-color;
|
|
101
|
+
margin-bottom: $spacing-line-size;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@include e(selection-wrapper) {
|
|
106
|
+
padding: 6px 12px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include e(selection) {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
vertical-align: top;
|
|
112
|
+
color: getCssVar('text-color', 'placeholder');
|
|
113
|
+
|
|
114
|
+
@include when(has-selected) {
|
|
115
|
+
color: getCssVar('text-color', 'primary');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&__popper &__clear {
|
|
120
|
+
padding: 0;
|
|
121
|
+
margin: 0 0 0 16px;
|
|
122
|
+
border: none;
|
|
123
|
+
line-height: 22px;
|
|
124
|
+
vertical-align: top;
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include e(input) {
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 100%;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
line-height: 40px;
|
|
133
|
+
border: none;
|
|
134
|
+
outline: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@include e(list) {
|
|
138
|
+
padding: 4px 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@include e(empty) {
|
|
142
|
+
font-size: 14px;
|
|
143
|
+
line-height: 22px;
|
|
144
|
+
padding: 6px 12px;
|
|
145
|
+
color: getCssVar('text-color', 'regular');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include b(advance-option) {
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
align-items: center;
|
|
153
|
+
font-size: 14px;
|
|
154
|
+
height: 22px;
|
|
155
|
+
line-height: 22px;
|
|
156
|
+
padding: 5px 12px;
|
|
157
|
+
color: getCssVar('text-color', 'primary');
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
box-sizing: unset !important;
|
|
160
|
+
@include pseudo(hover) {
|
|
161
|
+
background-color: #e8f8ff;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@include e(content) {
|
|
165
|
+
flex: 1;
|
|
166
|
+
width: 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
text-overflow: ellipsis;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@include e(selected) {
|
|
173
|
+
color: getCssVar('color-primary');
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@include e(content-label) {
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// .#{$namespace}-advance-select {
|
|
183
|
+
// display: inline-block;
|
|
184
|
+
// &__input-wrapper {
|
|
185
|
+
// height: 40px;
|
|
186
|
+
// box-shadow: 0 1px 0 0 rgb(0 0 0 / 5%);
|
|
187
|
+
// margin-bottom: 1px;
|
|
188
|
+
|
|
189
|
+
// .el-input__wrapper {
|
|
190
|
+
// box-shadow: none;
|
|
191
|
+
// }
|
|
192
|
+
// }
|
|
193
|
+
|
|
194
|
+
// &__reference {
|
|
195
|
+
// display: inline-flex;
|
|
196
|
+
// align-items: center;
|
|
197
|
+
// padding: 3px 6px;
|
|
198
|
+
// border-radius: 4px;
|
|
199
|
+
// color: $black-1;
|
|
200
|
+
// cursor: pointer;
|
|
201
|
+
// transition: 0.2s ease-out;
|
|
202
|
+
|
|
203
|
+
// &:hover,
|
|
204
|
+
// &.is-active {
|
|
205
|
+
// background-color: #f2f4f6;
|
|
206
|
+
|
|
207
|
+
// .#{$namespace}-advance-select__caret {
|
|
208
|
+
// opacity: 1;
|
|
209
|
+
// }
|
|
210
|
+
// }
|
|
211
|
+
// }
|
|
212
|
+
|
|
213
|
+
// &__top {
|
|
214
|
+
// padding: 4px 0;
|
|
215
|
+
// box-shadow: 0 1px 0 0 rgb(0 0 0 / 5%);
|
|
216
|
+
// margin-bottom: 1px;
|
|
217
|
+
// }
|
|
218
|
+
|
|
219
|
+
// &__bottom {
|
|
220
|
+
// padding: 4px 0;
|
|
221
|
+
// box-shadow: 0 -1px 0 0 rgb(0 0 0 / 5%);
|
|
222
|
+
// margin-top: 1px;
|
|
223
|
+
// }
|
|
224
|
+
|
|
225
|
+
// &__label {
|
|
226
|
+
// margin-right: 6px;
|
|
227
|
+
// opacity: 0.7;
|
|
228
|
+
// }
|
|
229
|
+
|
|
230
|
+
// &__caret {
|
|
231
|
+
// margin-left: 3px;
|
|
232
|
+
// opacity: 0.3;
|
|
233
|
+
// transition: 0.2s ease-out;
|
|
234
|
+
// }
|
|
235
|
+
|
|
236
|
+
// &__operation {
|
|
237
|
+
// padding: 0;
|
|
238
|
+
// font-size: 14px;
|
|
239
|
+
// line-height: 22px;
|
|
240
|
+
|
|
241
|
+
// &.is-border {
|
|
242
|
+
// box-shadow: 0 1px 0 0 rgb(0 0 0 / 5%);
|
|
243
|
+
// margin-bottom: 1px;
|
|
244
|
+
// }
|
|
245
|
+
// }
|
|
246
|
+
|
|
247
|
+
// &__selection-wrapper {
|
|
248
|
+
// padding: 6px 12px;
|
|
249
|
+
// }
|
|
250
|
+
|
|
251
|
+
// &__selection {
|
|
252
|
+
// display: inline-block;
|
|
253
|
+
// vertical-align: top;
|
|
254
|
+
// color: $black-4;
|
|
255
|
+
|
|
256
|
+
// &.is-has-selected {
|
|
257
|
+
// color: $black-1;
|
|
258
|
+
// }
|
|
259
|
+
// }
|
|
260
|
+
|
|
261
|
+
// &__popper &__clear {
|
|
262
|
+
// padding: 0;
|
|
263
|
+
// margin: 0 0 0 16px;
|
|
264
|
+
// border: none;
|
|
265
|
+
// line-height: 22px;
|
|
266
|
+
// vertical-align: top;
|
|
267
|
+
// font-size: 14px;
|
|
268
|
+
// }
|
|
269
|
+
|
|
270
|
+
// &__input {
|
|
271
|
+
// width: 100%;
|
|
272
|
+
// height: 100%;
|
|
273
|
+
// font-size: 14px;
|
|
274
|
+
// line-height: 40px;
|
|
275
|
+
// border: none;
|
|
276
|
+
// outline: none;
|
|
277
|
+
// }
|
|
278
|
+
|
|
279
|
+
// &__list {
|
|
280
|
+
// padding: 4px 0;
|
|
281
|
+
// }
|
|
282
|
+
|
|
283
|
+
// &__empty {
|
|
284
|
+
// font-size: 14px;
|
|
285
|
+
// line-height: 22px;
|
|
286
|
+
// padding: 6px 12px;
|
|
287
|
+
// color: $black-3;
|
|
288
|
+
// }
|
|
289
|
+
// }
|
|
290
|
+
|
|
291
|
+
// .#{$namespace}-advance-option {
|
|
292
|
+
// display: flex;
|
|
293
|
+
// justify-content: space-between;
|
|
294
|
+
// align-items: center;
|
|
295
|
+
// font-size: 14px;
|
|
296
|
+
// line-height: 22px;
|
|
297
|
+
// padding: 6px 12px;
|
|
298
|
+
// color: $black-1;
|
|
299
|
+
// cursor: pointer;
|
|
300
|
+
|
|
301
|
+
// &:hover {
|
|
302
|
+
// background: $hoverBgColor;
|
|
303
|
+
// }
|
|
304
|
+
|
|
305
|
+
// &__content {
|
|
306
|
+
// flex: 1;
|
|
307
|
+
// width: 0;
|
|
308
|
+
// overflow: hidden;
|
|
309
|
+
// text-overflow: ellipsis;
|
|
310
|
+
// white-space: nowrap;
|
|
311
|
+
// }
|
|
312
|
+
|
|
313
|
+
// &__selected {
|
|
314
|
+
// color: $primaryColor;
|
|
315
|
+
// }
|
|
316
|
+
// }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use './mixins/mixins' as *;
|
|
2
|
+
@use './common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(breadcrumb-item) {
|
|
5
|
+
@include e(dropdown) {
|
|
6
|
+
padding: 8px !important;
|
|
7
|
+
|
|
8
|
+
.ptp-qiehuan {
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include e(content) {
|
|
14
|
+
margin: 0 6px;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(top) {
|
|
20
|
+
&-empty {
|
|
21
|
+
padding: 12px 12px;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 22px;
|
|
24
|
+
color: getCssVar('text-color', 'regular');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include e(opt) {
|
|
29
|
+
padding: 6px 12px !important;
|
|
30
|
+
color: getCssVar('color-primary');
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
33
|
+
&-label {
|
|
34
|
+
margin-left: 4px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background: #e8f8ff;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// .bwa-breadcrumb-item {
|
|
44
|
+
// &__dropdown {
|
|
45
|
+
// padding: 8px !important;
|
|
46
|
+
|
|
47
|
+
// .ptp-qiehuan {
|
|
48
|
+
// font-size: 18px;
|
|
49
|
+
// }
|
|
50
|
+
// }
|
|
51
|
+
|
|
52
|
+
// &__content {
|
|
53
|
+
// margin: 0 6px;
|
|
54
|
+
// font-size: 14px;
|
|
55
|
+
// font-weight: 600;
|
|
56
|
+
// }
|
|
57
|
+
|
|
58
|
+
// &__top {
|
|
59
|
+
// &-empty {
|
|
60
|
+
// padding: 12px 12px;
|
|
61
|
+
// font-size: 14px;
|
|
62
|
+
// line-height: 22px;
|
|
63
|
+
// color: var.$black-3;
|
|
64
|
+
// }
|
|
65
|
+
// }
|
|
66
|
+
|
|
67
|
+
// &__opt {
|
|
68
|
+
// padding: 6px 12px !important;
|
|
69
|
+
// color: var.$primaryColor;
|
|
70
|
+
// cursor: pointer;
|
|
71
|
+
|
|
72
|
+
// &-label {
|
|
73
|
+
// margin-left: 4px;
|
|
74
|
+
// }
|
|
75
|
+
|
|
76
|
+
// &:hover {
|
|
77
|
+
// background: var.$hoverBgColor;
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
80
|
+
// }
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../mixins/function' as *;
|
|
3
|
+
|
|
4
|
+
$types: primary, success, warning, danger, error;
|
|
5
|
+
|
|
6
|
+
$colors: () !default;
|
|
7
|
+
$colors: map.deep-merge(
|
|
8
|
+
(
|
|
9
|
+
'white': #ffffff,
|
|
10
|
+
'black': #000000,
|
|
11
|
+
'primary': (
|
|
12
|
+
'base': #19bbff,
|
|
13
|
+
),
|
|
14
|
+
'success': (
|
|
15
|
+
'base': #2dc86d,
|
|
16
|
+
),
|
|
17
|
+
'warning': (
|
|
18
|
+
'base': #ffa901,
|
|
19
|
+
),
|
|
20
|
+
'danger': (
|
|
21
|
+
'base': #ff7052,
|
|
22
|
+
),
|
|
23
|
+
'error': (
|
|
24
|
+
'base': #ff7052,
|
|
25
|
+
),
|
|
26
|
+
),
|
|
27
|
+
$colors
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
$color-white: map.get($colors, 'white') !default;
|
|
31
|
+
$color-black: map.get($colors, 'black') !default;
|
|
32
|
+
$color-primary: map.get($colors, 'primary', 'base') !default;
|
|
33
|
+
$color-success: map.get($colors, 'success', 'base') !default;
|
|
34
|
+
$color-warning: map.get($colors, 'warning', 'base') !default;
|
|
35
|
+
$color-danger: map.get($colors, 'danger', 'base') !default;
|
|
36
|
+
$color-error: map.get($colors, 'error', 'base') !default;
|
|
37
|
+
|
|
38
|
+
$primaryColor: $color-primary;
|
|
39
|
+
$successColor: $color-success;
|
|
40
|
+
$warningColor: $color-warning;
|
|
41
|
+
$dangerColor: $color-danger;
|
|
42
|
+
$errorColor: $color-error;
|
|
43
|
+
|
|
44
|
+
$text-color: () !default;
|
|
45
|
+
$text-color: map.merge(
|
|
46
|
+
(
|
|
47
|
+
'primary': #24515d,
|
|
48
|
+
'regular': #7c979e,
|
|
49
|
+
'placeholder': #b0c0c5,
|
|
50
|
+
'disabled': #c0c4cc,
|
|
51
|
+
),
|
|
52
|
+
$text-color
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
$border-radius: () !default;
|
|
56
|
+
$border-radius: map.merge(
|
|
57
|
+
(
|
|
58
|
+
'base': 4px,
|
|
59
|
+
'circle': 100%,
|
|
60
|
+
),
|
|
61
|
+
$border-radius
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
$border-color: () !default;
|
|
65
|
+
$border-color: map.merge(
|
|
66
|
+
(
|
|
67
|
+
'': rgba(234, 238, 239, 1),
|
|
68
|
+
),
|
|
69
|
+
$border-radius
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
$spacing-size: () !default;
|
|
73
|
+
$spacing-size: map.merge(
|
|
74
|
+
(
|
|
75
|
+
'module': 24px,
|
|
76
|
+
'input': 24px,
|
|
77
|
+
'filter': 24px,
|
|
78
|
+
'button': 16px,
|
|
79
|
+
),
|
|
80
|
+
$spacing-size
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
$fill-color: () !default;
|
|
84
|
+
$fill-color: map.merge(
|
|
85
|
+
(
|
|
86
|
+
'blank': #ffffff,
|
|
87
|
+
'grey': #f0f3f7,
|
|
88
|
+
),
|
|
89
|
+
$fill-color
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
$hoverBgColor: #e8f8ff;
|
|
93
|
+
|
|
94
|
+
$primarySelectColor: #e8f8ff;
|
|
95
|
+
|
|
96
|
+
$black-1: #24515d;
|
|
97
|
+
$black-3: #7c979e;
|
|
98
|
+
$black-4: #b0c0c5;
|
|
99
|
+
$bgColor: #f0f3f7;
|
|
100
|
+
|
|
101
|
+
$leftPanelWidth: 240px;
|
|
102
|
+
|
|
103
|
+
$fontWeight: (
|
|
104
|
+
'title': 600,
|
|
105
|
+
'text': 400,
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
$fontSize: (
|
|
109
|
+
'title': 16px,
|
|
110
|
+
'text': 14px,
|
|
111
|
+
'tips': 12px,
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
$gap: (
|
|
115
|
+
'module': 24px,
|
|
116
|
+
'input': 24px,
|
|
117
|
+
'filter': 24px,
|
|
118
|
+
'button': 16px,
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
$panel: () !default;
|
|
122
|
+
$panel: map.merge(
|
|
123
|
+
(
|
|
124
|
+
'bg-color': getCssVar('fill-color', 'blank'),
|
|
125
|
+
'border-color': getCssVar('border-color'),
|
|
126
|
+
'header-height': 48px,
|
|
127
|
+
'header-line-height': 48px,
|
|
128
|
+
'header-padding': 0 20px,
|
|
129
|
+
'tools-padding': 20px,
|
|
130
|
+
'body-padding': 20px,
|
|
131
|
+
'footer-padding': 20px,
|
|
132
|
+
),
|
|
133
|
+
$panel
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
$layout: () !default;
|
|
137
|
+
$layout: map.merge(
|
|
138
|
+
(
|
|
139
|
+
'left-panel-width': 240px,
|
|
140
|
+
'spacing-size': getCssVar('spacing-size', 'module'),
|
|
141
|
+
),
|
|
142
|
+
$layout
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
$datatable: () !default;
|
|
146
|
+
$datatable: map.merge(
|
|
147
|
+
(
|
|
148
|
+
'pagination-padding-top': 20px,
|
|
149
|
+
'pagination-line-height': 36px,
|
|
150
|
+
'pagination-info-margin-right': 16px,
|
|
151
|
+
'pagination-info-font-size': 12px,
|
|
152
|
+
'pagination-info-text-color': #547781,
|
|
153
|
+
),
|
|
154
|
+
$datatable
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
$progress: () !default;
|
|
158
|
+
$progress: map.merge(
|
|
159
|
+
(
|
|
160
|
+
'height': 8px,
|
|
161
|
+
'default-color': #eaeeef,
|
|
162
|
+
'percent-margin-left': 8px,
|
|
163
|
+
'percent-color': getCssVar('text-color', 'regular'),
|
|
164
|
+
'default-percent-width': 'auto',
|
|
165
|
+
'default-tooltip-width': 'auto',
|
|
166
|
+
'info-item-text-color': getCssVar('text-color', 'primary'),
|
|
167
|
+
'info-item-margin': 3px 0,
|
|
168
|
+
'info-item-dot-size': 6px,
|
|
169
|
+
'info-item-dot-border-radius': getCssVar('border-radius', 'circle'),
|
|
170
|
+
'info-item-dot-margin-right': 4px,
|
|
171
|
+
),
|
|
172
|
+
$progress
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
$datatable-settings: () !default;
|
|
176
|
+
$datatable-settings: map.merge(
|
|
177
|
+
(
|
|
178
|
+
'padding': 5px 0,
|
|
179
|
+
'width': 220px,
|
|
180
|
+
'header-height': 40px,
|
|
181
|
+
'header-margin': 0 11px,
|
|
182
|
+
'header-text-color': getCssVar('text-color', 'primary'),
|
|
183
|
+
'border-color': getCssVar('border-color'),
|
|
184
|
+
'tools-text-color': getCssVar('text-color', 'placeholder'),
|
|
185
|
+
'search-padding': 12px 0 8px,
|
|
186
|
+
'search-magin': 0 11px,
|
|
187
|
+
'main-margin': 0 11px,
|
|
188
|
+
'section-header-text-color': getCssVar('text-color', 'regular'),
|
|
189
|
+
'section-header-margin': 8px 0,
|
|
190
|
+
'section-empty-text-color': getCssVar('text-color', 'regular'),
|
|
191
|
+
'section-spacing': 16px,
|
|
192
|
+
'field-item-height': 36px,
|
|
193
|
+
'field-item-text-color': getCssVar('text-color', 'primary'),
|
|
194
|
+
),
|
|
195
|
+
$datatable-settings
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
$menu: () !default;
|
|
199
|
+
$menu: map.merge(
|
|
200
|
+
(
|
|
201
|
+
'icon-size': 14px,
|
|
202
|
+
'icon-color': #547781,
|
|
203
|
+
'icon-left': 32px,
|
|
204
|
+
'active-text-color': getCssVar('color-primary'),
|
|
205
|
+
'content-padding-left': 40px,
|
|
206
|
+
'item-spacing': 8px,
|
|
207
|
+
'item-height': 40px,
|
|
208
|
+
'item-text-color': getCssVar('text-color', 'primary'),
|
|
209
|
+
'item-hover-bg-color': rgba(176, 192, 197, 0.15),
|
|
210
|
+
'item-active-bg-color': #cde9f5,
|
|
211
|
+
'bar-width': 4px,
|
|
212
|
+
),
|
|
213
|
+
$menu
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
$advance-select: () !default;
|
|
217
|
+
$advance-select: map.merge(
|
|
218
|
+
(
|
|
219
|
+
'input-height': 40px,
|
|
220
|
+
'spacing-line-color': rgb(0 0 0 / 5%),
|
|
221
|
+
'spacing-line-size': 1px,
|
|
222
|
+
'reference-padding': 3px 6px,
|
|
223
|
+
'reference-border-radius': getCssVar('border-radius', 'base'),
|
|
224
|
+
'reference-text-color': getCssVar('text-color', 'primary'),
|
|
225
|
+
'reference-active-bg-color': #f2f4f6,
|
|
226
|
+
'label-margin-right': 6px,
|
|
227
|
+
'caret-margin-left': 3px,
|
|
228
|
+
),
|
|
229
|
+
$advance-select
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
$breadcrumb-item: () !default;
|
|
233
|
+
|
|
234
|
+
$panel-tabs: () !default;
|
|
235
|
+
$panel-tabs: map.merge(
|
|
236
|
+
(
|
|
237
|
+
'item-spacing': 8px,
|
|
238
|
+
),
|
|
239
|
+
$panel-tabs
|
|
240
|
+
);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.justify-between {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.align-center {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.flex-center {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
.flex-column {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text-center {
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.flex-end {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: flex-end;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.flex-1 {
|
|
32
|
+
flex: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.full-width {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
$fontSizes: 12 14 16 20 24 26 28 30;
|
|
40
|
+
$lineHeights: 20px 22px 24px 28px 32px 34px 36px 38px;
|
|
41
|
+
|
|
42
|
+
@each $e in $fontSizes {
|
|
43
|
+
$i: index($fontSizes, $e);
|
|
44
|
+
.font-size-#{$e} {
|
|
45
|
+
font-size: $e + px;
|
|
46
|
+
line-height: nth($lineHeights, $i);
|
|
47
|
+
}
|
|
48
|
+
}
|