@maxax/ui 1.1.52 → 1.1.54
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/theme-chalk/base/col.scss +55 -0
- package/dist/theme-chalk/base/config.scss +5 -0
- package/dist/theme-chalk/base/function.scss +53 -0
- package/dist/theme-chalk/base/transition.scss +29 -0
- package/dist/theme-chalk/base/utils.scss +179 -0
- package/dist/theme-chalk/base/var-dark.scss +33 -0
- package/dist/theme-chalk/base/var-light.scss +33 -0
- package/dist/theme-chalk/base/var.scss +139 -0
- package/dist/theme-chalk/color/index.scss +16 -0
- package/dist/theme-chalk/components/appCommon.scss +52 -0
- package/dist/theme-chalk/components/basicActionFooter.scss +24 -0
- package/dist/theme-chalk/components/basicArrow.scss +11 -0
- package/dist/theme-chalk/components/basicButton.scss +8 -0
- package/dist/theme-chalk/components/basicButtonExportMax.scss +27 -0
- package/dist/theme-chalk/components/basicButtonGroup.scss +19 -0
- package/dist/theme-chalk/components/basicButtonImportMax.scss +118 -0
- package/dist/theme-chalk/components/basicCard.scss +8 -0
- package/dist/theme-chalk/components/basicCascader.scss +8 -0
- package/dist/theme-chalk/components/basicCheckbox.scss +197 -0
- package/dist/theme-chalk/components/basicCheckboxGroup.scss +22 -0
- package/dist/theme-chalk/components/basicCol.scss +18 -0
- package/dist/theme-chalk/components/basicCountTo.scss +8 -0
- package/dist/theme-chalk/components/basicDatePicker.scss +8 -0
- package/dist/theme-chalk/components/basicDragVerify.scss +75 -0
- package/dist/theme-chalk/components/basicDrawer.scss +12 -0
- package/dist/theme-chalk/components/basicDrawerFooter.scss +13 -0
- package/dist/theme-chalk/components/basicEditBatch.scss +62 -0
- package/dist/theme-chalk/components/basicFontIcon.scss +8 -0
- package/dist/theme-chalk/components/basicForm.scss +61 -0
- package/dist/theme-chalk/components/basicGradientTitle.scss +49 -0
- package/dist/theme-chalk/components/basicHelp.scss +16 -0
- package/dist/theme-chalk/components/basicHidden.scss +8 -0
- package/dist/theme-chalk/components/basicIconOnline.scss +8 -0
- package/dist/theme-chalk/components/basicIconPicker.scss +60 -0
- package/dist/theme-chalk/components/basicJsonViewer.scss +255 -0
- package/dist/theme-chalk/components/basicListPage.scss +42 -0
- package/dist/theme-chalk/components/basicLoading.scss +106 -0
- package/dist/theme-chalk/components/basicMasterTrigger.scss +13 -0
- package/dist/theme-chalk/components/basicMessage.scss +8 -0
- package/dist/theme-chalk/components/basicMessageBox.scss +183 -0
- package/dist/theme-chalk/components/basicModal.scss +16 -0
- package/dist/theme-chalk/components/basicMonaco.scss +8 -0
- package/dist/theme-chalk/components/basicNotification.scss +103 -0
- package/dist/theme-chalk/components/basicOverlay.scss +21 -0
- package/dist/theme-chalk/components/basicPage.scss +60 -0
- package/dist/theme-chalk/components/basicPanel.scss +36 -0
- package/dist/theme-chalk/components/basicPanelPage.scss +11 -0
- package/dist/theme-chalk/components/basicRadio.scss +66 -0
- package/dist/theme-chalk/components/basicRadioGroup.scss +14 -0
- package/dist/theme-chalk/components/basicRegion.scss +112 -0
- package/dist/theme-chalk/components/basicRegionSelect.scss +74 -0
- package/dist/theme-chalk/components/basicRow.scss +33 -0
- package/dist/theme-chalk/components/basicScrollText.scss +32 -0
- package/dist/theme-chalk/components/basicSelect.scss +8 -0
- package/dist/theme-chalk/components/basicSubPanel.scss +48 -0
- package/dist/theme-chalk/components/basicSvgIcon.scss +18 -0
- package/dist/theme-chalk/components/basicTable.scss +101 -0
- package/dist/theme-chalk/components/basicTag.scss +24 -0
- package/dist/theme-chalk/components/basicText.scss +45 -0
- package/dist/theme-chalk/components/basicTitle.scss +42 -0
- package/dist/theme-chalk/components/basicTree.scss +16 -0
- package/dist/theme-chalk/components/basicTriggerButton.scss +8 -0
- package/dist/theme-chalk/components/basicUpload.scss +65 -0
- package/dist/theme-chalk/components/basicUploadCore.scss +8 -0
- package/dist/theme-chalk/components/basicUploadDragger.scss +38 -0
- package/dist/theme-chalk/components/basicUploadList.scss +19 -0
- package/dist/theme-chalk/components/basicUploadListItem.scss +240 -0
- package/dist/theme-chalk/components/basicViewBar.scss +88 -0
- package/dist/theme-chalk/components/common.scss +63 -0
- package/dist/theme-chalk/components/components.scss +56 -0
- package/dist/theme-chalk/components/tree.scss +115 -0
- package/dist/theme-chalk/components/treeDrop.scss +138 -0
- package/dist/theme-chalk/components/treeNode.scss +209 -0
- package/dist/theme-chalk/components/treeSearch.scss +128 -0
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/index.scss +2 -0
- package/dist/theme-chalk/light.css +1 -1
- package/dist/theme-chalk/theme/dark.scss +14 -0
- package/dist/theme-chalk/theme/light.scss +26 -0
- package/dist/theme-chalk/vxe-table/table/base.scss +87 -0
- package/dist/theme-chalk/vxe-table/table/dark.scss +48 -0
- package/dist/theme-chalk/vxe-table/table/index.scss +3 -0
- package/dist/theme-chalk/vxe-table/table/light.scss +42 -0
- package/dist/theme-chalk/vxe-table/ui/base.scss +200 -0
- package/dist/theme-chalk/vxe-table/ui/dark.scss +117 -0
- package/dist/theme-chalk/vxe-table/ui/index.scss +3 -0
- package/dist/theme-chalk/vxe-table/ui/light.scss +114 -0
- package/dist/theme-chalk/vxe-table/vxe-table.scss +7 -0
- package/package.json +3 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use './utils.scss' as *;
|
|
3
|
+
@use './config.scss' as *;
|
|
4
|
+
|
|
5
|
+
@mixin col-base($i) {
|
|
6
|
+
@if $i == 0 {
|
|
7
|
+
display: none;
|
|
8
|
+
} @else {
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
max-width: (math.div(1, 24) * $i * 100) * 1%;
|
|
12
|
+
flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin col-size-base($size, $i) {
|
|
16
|
+
@if $size == '' {
|
|
17
|
+
$pre: '' !global;
|
|
18
|
+
} @else {
|
|
19
|
+
$pre: $size + '-' !global;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$namespace}-col--#{$pre}#{$i} {
|
|
23
|
+
@include col-base($i);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$namespace}-col--#{$pre}order-#{$i} {
|
|
27
|
+
order: $i;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$namespace}-col--#{$pre}offset-#{$i} {
|
|
31
|
+
margin-inline-start: (math.div(1, 24) * $i * 100) * 1%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.#{$namespace}-col--#{$pre}push-#{$i} {
|
|
35
|
+
inset-inline-start: (math.div(1, 24) * $i * 100) * 1%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.#{$namespace}-col--#{$pre}pull-#{$i} {
|
|
39
|
+
inset-inline-end: (math.div(1, 24) * $i * 100) * 1%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin col-size($size) {
|
|
44
|
+
@for $i from 0 through 24 {
|
|
45
|
+
@include col-size-base($size, $i);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin col-size-responsive($size) {
|
|
50
|
+
@if $size != '' {
|
|
51
|
+
@include res($size) {
|
|
52
|
+
@include col-size($size);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use 'config';
|
|
2
|
+
|
|
3
|
+
// joinVarName(('button', 'text-color')) => '--imax-button-text-color'
|
|
4
|
+
@function joinVarName($list) {
|
|
5
|
+
$name: config.$modifier-separator + config.$namespace;
|
|
6
|
+
|
|
7
|
+
@each $item in $list {
|
|
8
|
+
@if $item != '' {
|
|
9
|
+
$name: $name + config.$common-separator + $item;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@return $name;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// getCssVarName('button', 'text-color') => '--imax-button-text-color'
|
|
17
|
+
@function getCssVarName($args...) {
|
|
18
|
+
@return joinVarName($args);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// getCssVar('button', 'text-color') => var(--imax-button-text-color)
|
|
22
|
+
@function getCssVar($args...) {
|
|
23
|
+
@return var(#{joinVarName($args)});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// getCssVarWithDefault(('button', 'text-color'), red) => var(--imax-button-text-color, red)
|
|
27
|
+
@function getCssVarWithDefault($args, $default) {
|
|
28
|
+
@return var(#{joinVarName($args)}, #{$default});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// bem('block', 'element', 'modifier') => 'imax-block__element--modifier'
|
|
32
|
+
@function bem($block, $element: '', $modifier: '') {
|
|
33
|
+
$name: config.$namespace + config.$common-separator + $block;
|
|
34
|
+
|
|
35
|
+
@if $element != '' {
|
|
36
|
+
$name: $name + config.$element-separator + $element;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@if $modifier != '' {
|
|
40
|
+
$name: $name + config.$modifier-separator + $modifier;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@return $name;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// dark
|
|
47
|
+
@mixin dark($block) {
|
|
48
|
+
html.dark {
|
|
49
|
+
@include b($block) {
|
|
50
|
+
@content;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'config' as *;
|
|
2
|
+
|
|
3
|
+
.fade-in-linear-enter-active,
|
|
4
|
+
.fade-in-linear-leave-active {
|
|
5
|
+
transition: opacity 0.3s linear;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.fade-in-linear-enter-from,
|
|
9
|
+
.fade-in-linear-leave-to {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{$namespace}-fade-in-linear-enter-active,
|
|
14
|
+
.#{$namespace}-fade-in-linear-leave-active {
|
|
15
|
+
transition: opacity 0.3s linear;
|
|
16
|
+
}
|
|
17
|
+
.#{$namespace}-fade-in-linear-enter-from,
|
|
18
|
+
.#{$namespace}-fade-in-linear-leave-to {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$namespace}-fade-in-enter-active,
|
|
23
|
+
.#{$namespace}-fade-in-leave-active {
|
|
24
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
|
25
|
+
}
|
|
26
|
+
.#{$namespace}-fade-in-enter-from,
|
|
27
|
+
.#{$namespace}-fade-in-leave-active {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:color';
|
|
4
|
+
@use 'var' as *;
|
|
5
|
+
@use 'function' as *;
|
|
6
|
+
@use 'config' as *;
|
|
7
|
+
|
|
8
|
+
$B: null;
|
|
9
|
+
$E: null;
|
|
10
|
+
|
|
11
|
+
@mixin b($block) {
|
|
12
|
+
$B: $namespace + $common-separator + $block !global;
|
|
13
|
+
.#{$B} {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin e($element) {
|
|
19
|
+
$E: $element !global;
|
|
20
|
+
$selector: &;
|
|
21
|
+
$currentSelector: '';
|
|
22
|
+
@each $unit in $element {
|
|
23
|
+
$currentSelector: #{$currentSelector + '.' + $B + $element-separator + $unit + ','};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@if hitAllSpecialNestRule($selector) {
|
|
27
|
+
@at-root {
|
|
28
|
+
#{$selector} {
|
|
29
|
+
#{$currentSelector} {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} @else {
|
|
35
|
+
@at-root {
|
|
36
|
+
#{$currentSelector} {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin m($modifier) {
|
|
44
|
+
$selector: &;
|
|
45
|
+
$currentSelector: '';
|
|
46
|
+
@each $unit in $modifier {
|
|
47
|
+
$currentSelector: #{$currentSelector + $selector + $modifier-separator + $unit + ','};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@at-root {
|
|
51
|
+
#{$currentSelector} {
|
|
52
|
+
@content;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin is($name...) {
|
|
58
|
+
$selector: &;
|
|
59
|
+
$stateSelector: '';
|
|
60
|
+
|
|
61
|
+
@each $state in $name {
|
|
62
|
+
$stateSelector: $stateSelector + '.#{$state-prefix}#{$state}';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@at-root {
|
|
66
|
+
#{$selector}#{$stateSelector} {
|
|
67
|
+
@content;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin set-css-var-value($name, $value) {
|
|
73
|
+
#{joinVarName($name)}: #{$value};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin set-css-var-type($name, $type, $variables) {
|
|
77
|
+
#{getCssVarName($name, $type)}: #{map.get($variables, $type)};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin set-css-color-rgb($type) {
|
|
81
|
+
$color: map.get($colors, $type, 'base');
|
|
82
|
+
@include set-css-var-value(('color', $type, 'rgb'), #{color.channel($color, 'red'), color.channel($color, 'green'), color.channel($color, 'blue')});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin set-component-css-var($name, $variables) {
|
|
86
|
+
@each $attribute, $value in $variables {
|
|
87
|
+
@if $attribute == 'default' {
|
|
88
|
+
#{getCssVarName($name)}: #{$value};
|
|
89
|
+
} @else {
|
|
90
|
+
#{getCssVarName($name, $attribute)}: #{$value};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@mixin set-css-color-type($colors, $type) {
|
|
96
|
+
@include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
|
|
97
|
+
|
|
98
|
+
@each $i in (3, 5, 7, 8, 9) {
|
|
99
|
+
@include set-css-var-value(('color', $type, 'light', $i), map.get($colors, $type, 'light-#{$i}'));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin ellipsis {
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@mixin clearfix {
|
|
110
|
+
&::after {
|
|
111
|
+
content: '';
|
|
112
|
+
display: table;
|
|
113
|
+
clear: both;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin inline-flex-center {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@mixin flex-center {
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@mixin flex-space-between {
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: space-between;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Break-points
|
|
136
|
+
@mixin res($key, $map: $breakpoints) {
|
|
137
|
+
// loop breakpoint Map, return if present
|
|
138
|
+
@if map.has-key($map, $key) {
|
|
139
|
+
@media only screen and #{string.unquote(map.get($map, $key))} {
|
|
140
|
+
@content;
|
|
141
|
+
}
|
|
142
|
+
} @else {
|
|
143
|
+
@warn "Undefined points: `#{$map}`";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Scrollbar
|
|
148
|
+
@mixin scroll-bar {
|
|
149
|
+
$scrollbar-thumb-background: getCssVar('text-color', 'disabled');
|
|
150
|
+
$scrollbar-track-background: getCssVar('fill-color', 'blank');
|
|
151
|
+
|
|
152
|
+
&::-webkit-scrollbar {
|
|
153
|
+
z-index: 11;
|
|
154
|
+
width: 6px;
|
|
155
|
+
|
|
156
|
+
&:horizontal {
|
|
157
|
+
height: 6px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&-thumb {
|
|
161
|
+
border-radius: 5px;
|
|
162
|
+
width: 6px;
|
|
163
|
+
background: $scrollbar-thumb-background;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&-corner {
|
|
167
|
+
background: $scrollbar-track-background;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&-track {
|
|
171
|
+
background: $scrollbar-track-background;
|
|
172
|
+
|
|
173
|
+
&-piece {
|
|
174
|
+
background: $scrollbar-track-background;
|
|
175
|
+
width: 6px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$disabled: (
|
|
2
|
+
bg: rgba(255, 255, 255, 0.06),
|
|
3
|
+
text: rgba(255, 255, 255, 0.38),
|
|
4
|
+
border: rgba(255, 255, 255, 0.24)
|
|
5
|
+
) !default;
|
|
6
|
+
|
|
7
|
+
$text-color: (
|
|
8
|
+
base: rgba(255, 255, 255, 0.82)
|
|
9
|
+
) !default;
|
|
10
|
+
|
|
11
|
+
$border-color: (
|
|
12
|
+
base: rgba(255, 255, 255, 0.24)
|
|
13
|
+
) !default;
|
|
14
|
+
|
|
15
|
+
$fill-color: (
|
|
16
|
+
base: rgb(24, 24, 28)
|
|
17
|
+
) !default;
|
|
18
|
+
|
|
19
|
+
$bg-color: (
|
|
20
|
+
base: rgb(24, 24, 28)
|
|
21
|
+
) !default;
|
|
22
|
+
|
|
23
|
+
$box-shadow: (
|
|
24
|
+
base: (
|
|
25
|
+
0 1px 2px -2px rgba(0, 0, 0, 0.24),
|
|
26
|
+
0 3px 6px 0 rgba(0, 0, 0, 0.18),
|
|
27
|
+
0 5px 12px 4px rgba(0, 0, 0, 0.12)
|
|
28
|
+
)
|
|
29
|
+
) !default;
|
|
30
|
+
|
|
31
|
+
$placeholder-color: (
|
|
32
|
+
base: rgba(255, 255, 255, 0.38)
|
|
33
|
+
) !default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$disabled: (
|
|
2
|
+
bg: rgb(242, 242, 242),
|
|
3
|
+
text: rgba(117, 117, 117, 1),
|
|
4
|
+
border: rgb(224, 224, 230)
|
|
5
|
+
) !default;
|
|
6
|
+
|
|
7
|
+
$text-color: (
|
|
8
|
+
base: rgb(51, 54, 57)
|
|
9
|
+
) !default;
|
|
10
|
+
|
|
11
|
+
$border-color: (
|
|
12
|
+
base: rgb(224, 224, 230)
|
|
13
|
+
) !default;
|
|
14
|
+
|
|
15
|
+
$fill-color: (
|
|
16
|
+
base: #fff
|
|
17
|
+
) !default;
|
|
18
|
+
|
|
19
|
+
$bg-color: (
|
|
20
|
+
base: #fff
|
|
21
|
+
) !default;
|
|
22
|
+
|
|
23
|
+
$box-shadow: (
|
|
24
|
+
base: (
|
|
25
|
+
0 1px 2px -2px rgba(0, 0, 0, 0.08),
|
|
26
|
+
0 3px 6px 0 rgba(0, 0, 0, 0.06),
|
|
27
|
+
0 5px 12px 4px rgba(0, 0, 0, 0.04)
|
|
28
|
+
)
|
|
29
|
+
) !default;
|
|
30
|
+
|
|
31
|
+
$placeholder-color: (
|
|
32
|
+
base: rgba(194, 194, 194, 1)
|
|
33
|
+
) !default;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use 'function';
|
|
5
|
+
|
|
6
|
+
// types
|
|
7
|
+
$types: primary, success, warning, danger, error, info;
|
|
8
|
+
|
|
9
|
+
// size
|
|
10
|
+
$sizes: tiny, small, medium, large;
|
|
11
|
+
|
|
12
|
+
$breakpoints: (
|
|
13
|
+
'xs': '(max-width: 479px)',
|
|
14
|
+
'sm': '(min-width: 576px)',
|
|
15
|
+
'md': '(min-width: 768px)',
|
|
16
|
+
'lg': '(min-width: 992px)',
|
|
17
|
+
'xl': '(min-width: 1200px)',
|
|
18
|
+
'xxl': '(min-width: 1600px)',
|
|
19
|
+
'xxxl': '(min-width: 2000px)'
|
|
20
|
+
) !default;
|
|
21
|
+
|
|
22
|
+
// Color
|
|
23
|
+
$colors: (
|
|
24
|
+
'white': (
|
|
25
|
+
base: #ffffff
|
|
26
|
+
),
|
|
27
|
+
'black': (
|
|
28
|
+
base: #000000
|
|
29
|
+
),
|
|
30
|
+
'primary': (
|
|
31
|
+
base: #409eff
|
|
32
|
+
),
|
|
33
|
+
'success': (
|
|
34
|
+
base: #67c23a
|
|
35
|
+
),
|
|
36
|
+
'warning': (
|
|
37
|
+
base: #e6a23c
|
|
38
|
+
),
|
|
39
|
+
'danger': (
|
|
40
|
+
base: #f56c6c
|
|
41
|
+
),
|
|
42
|
+
'error': (
|
|
43
|
+
base: #f56c6c
|
|
44
|
+
),
|
|
45
|
+
'info': (
|
|
46
|
+
base: #909399
|
|
47
|
+
)
|
|
48
|
+
) !default;
|
|
49
|
+
|
|
50
|
+
// Color
|
|
51
|
+
$color-white: map.get($colors, 'white', 'base') !default;
|
|
52
|
+
$color-black: map.get($colors, 'black', 'base') !default;
|
|
53
|
+
$color-primary: map.get($colors, 'primary', 'base') !default;
|
|
54
|
+
$color-success: map.get($colors, 'success', 'base') !default;
|
|
55
|
+
$color-warning: map.get($colors, 'warning', 'base') !default;
|
|
56
|
+
$color-danger: map.get($colors, 'danger', 'base') !default;
|
|
57
|
+
$color-error: map.get($colors, 'error', 'base') !default;
|
|
58
|
+
$color-info: map.get($colors, 'info', 'base') !default;
|
|
59
|
+
|
|
60
|
+
// 设置颜色混合等级
|
|
61
|
+
@mixin set-color-mix-level($type, $number, $mode: 'light', $mix-color: $color-white) {
|
|
62
|
+
$colors: map.deep-merge(
|
|
63
|
+
(
|
|
64
|
+
$type: (
|
|
65
|
+
'#{$mode}-#{$number}': color.mix($mix-color, map.get($colors, $type, 'base'), math.percentage(math.div($number, 10)))
|
|
66
|
+
)
|
|
67
|
+
),
|
|
68
|
+
$colors
|
|
69
|
+
) !global;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// $colors.primary.light-i
|
|
73
|
+
@each $type in $types {
|
|
74
|
+
@for $i from 1 through 9 {
|
|
75
|
+
@include set-color-mix-level($type, $i, 'light', $color-white);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// $colors.primary.dark-i
|
|
80
|
+
@each $type in $types {
|
|
81
|
+
@for $i from 1 through 9 {
|
|
82
|
+
@include set-color-mix-level($type, $i, 'dark', $color-black);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
$border-radius: (
|
|
87
|
+
'tiny': 2px,
|
|
88
|
+
'small': 4px,
|
|
89
|
+
'medium': 8px,
|
|
90
|
+
'large': 16px
|
|
91
|
+
) !default;
|
|
92
|
+
|
|
93
|
+
$font-size: (
|
|
94
|
+
'tiny': 12px,
|
|
95
|
+
'small': 14px,
|
|
96
|
+
'medium': 16px,
|
|
97
|
+
'large': 20px
|
|
98
|
+
) !default;
|
|
99
|
+
|
|
100
|
+
$font-family: (
|
|
101
|
+
'base': 'Helvetica Neue, Helvetica, PingFang SC, Arial, sans-serif'
|
|
102
|
+
) !default;
|
|
103
|
+
|
|
104
|
+
$row-aligns: (
|
|
105
|
+
'top': flex-start,
|
|
106
|
+
'middle': center,
|
|
107
|
+
'bottom': flex-end,
|
|
108
|
+
'stretch': stretch
|
|
109
|
+
) !default;
|
|
110
|
+
|
|
111
|
+
$row-justify: (
|
|
112
|
+
'start': flex-start,
|
|
113
|
+
'end': flex-end,
|
|
114
|
+
'center': center,
|
|
115
|
+
'space-around': space-around,
|
|
116
|
+
'space-between': space-between,
|
|
117
|
+
'space-evenly': space-evenly
|
|
118
|
+
) !default;
|
|
119
|
+
|
|
120
|
+
$col-sizes: ('', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl') !default;
|
|
121
|
+
|
|
122
|
+
$messagebox: (
|
|
123
|
+
'width': 420px,
|
|
124
|
+
'close-size': 16px,
|
|
125
|
+
'border-radius': 4px,
|
|
126
|
+
'error-font-size': 12px,
|
|
127
|
+
'padding-primary': 12px
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
$notification: (
|
|
131
|
+
'width': 330px,
|
|
132
|
+
'padding': 16px 26px 16px 16px,
|
|
133
|
+
'radius': 3px,
|
|
134
|
+
'icon-size': 24px,
|
|
135
|
+
'close-font-size': 16px,
|
|
136
|
+
'group-margin-left': 13px,
|
|
137
|
+
'group-margin-right': 8px,
|
|
138
|
+
'title-font-size': 16px
|
|
139
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
4
|
+
@function rgb2hex($color) {
|
|
5
|
+
@return string.unquote('#' + #{string.slice(color.ie-hex-str($color), 4)});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// rgba color above solid color
|
|
9
|
+
@function mix-overlay-color($upper, $lower) {
|
|
10
|
+
$opacity: color.alpha($upper);
|
|
11
|
+
|
|
12
|
+
$red: color.channel($upper, 'red') * $opacity + color.channel($lower, 'red') * (1 - $opacity);
|
|
13
|
+
$green: color.channel($upper, 'green') * $opacity + color.channel($lower, 'green') * (1 - $opacity);
|
|
14
|
+
$blue: color.channel($upper, 'blue') * $opacity + color.channel($lower, 'blue') * (1 - $opacity);
|
|
15
|
+
@return rgb2hex(rgb($red, $green, $blue));
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use '../base/config' as *;
|
|
2
|
+
@use '../base/var' as *;
|
|
3
|
+
@use '../base/utils' as *;
|
|
4
|
+
@use '../base/function' as *;
|
|
5
|
+
|
|
6
|
+
@include b('icon-tooltip') {
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include b('button-icon') {
|
|
11
|
+
height: 36px;
|
|
12
|
+
font-size: 1.125rem; /* 18px */
|
|
13
|
+
line-height: 1;
|
|
14
|
+
|
|
15
|
+
@include e('icon') {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include b('better-scroll') {
|
|
24
|
+
height: 100%;
|
|
25
|
+
text-align: left;
|
|
26
|
+
|
|
27
|
+
@include e('content') {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
|
|
30
|
+
&.is-h-full {
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include b('reload-button') {
|
|
37
|
+
animation: imax-animation-spin 1s linear infinite;
|
|
38
|
+
animation-duration: 750ms;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include b('basic-button-drop') {
|
|
42
|
+
|
|
43
|
+
@include e('trigger-button') {
|
|
44
|
+
padding-right: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include e('trigger-arrow') {
|
|
48
|
+
border-right: 1px solid rgb(var(--border-color));
|
|
49
|
+
width: 34px;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '../base/config' as *;
|
|
2
|
+
@use '../base/var' as *;
|
|
3
|
+
@use '../base/utils' as *;
|
|
4
|
+
@use '../base/function' as *;
|
|
5
|
+
|
|
6
|
+
@include b('basic-action-footer') {
|
|
7
|
+
--basic-action-footer-name: 'basic-action-footer';
|
|
8
|
+
--basic-action-footer-gap: 8px;
|
|
9
|
+
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
|
|
15
|
+
@include e('left-buttons') {
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: var(--basic-action-footer-gap);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include e('right-buttons') {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: var(--basic-action-footer-gap);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@use '../base/config' as *;
|
|
2
|
+
@use '../base/var' as *;
|
|
3
|
+
@use '../base/utils' as *;
|
|
4
|
+
@use '../base/function' as *;
|
|
5
|
+
|
|
6
|
+
@include b('basic-arrow') {
|
|
7
|
+
transform: rotate(0deg);
|
|
8
|
+
transform-origin: center center;
|
|
9
|
+
transition: all 0.3s ease 0.1s;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../base/config' as *;
|
|
2
|
+
@use '../base/var' as *;
|
|
3
|
+
@use '../base/utils' as *;
|
|
4
|
+
@use '../base/function' as *;
|
|
5
|
+
|
|
6
|
+
@include b('basic-button-export-max') {
|
|
7
|
+
--basic-button-export-max-name: 'basic-button-export-max';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include b('basic-button-em-modal') {
|
|
11
|
+
@include e('content') {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
padding: 32px 48px;
|
|
17
|
+
background-color: getCssVar('fill-color-base');
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
|
|
20
|
+
p {
|
|
21
|
+
margin: 16px 0 0;
|
|
22
|
+
text-align: center;
|
|
23
|
+
color: getCssVar('text-color', 'secondary');
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '../base/config' as *;
|
|
2
|
+
@use '../base/var' as *;
|
|
3
|
+
@use '../base/utils' as *;
|
|
4
|
+
@use '../base/function' as *;
|
|
5
|
+
|
|
6
|
+
@include b('basic-button-group') {
|
|
7
|
+
--basic-button-group-name: 'basic-button-group';
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include b('basic-button-group-item') {
|
|
15
|
+
@include e('content') {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
19
|
+
}
|