adtec-core-package 0.2.4 → 0.2.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.
Files changed (158) hide show
  1. package/.editorconfig +6 -6
  2. package/.prettierrc.json +7 -7
  3. package/.vscode/extensions.json +8 -8
  4. package/README.md +39 -39
  5. package/env.d.ts +1 -1
  6. package/eslint.config.js +56 -56
  7. package/index.html +13 -13
  8. package/package.json +56 -56
  9. package/src/App.vue +9 -9
  10. package/src/api/BasicApi.ts +17 -0
  11. package/src/api/SysDictCacheApi.ts +1 -3
  12. package/src/api/SysUserApi.ts +35 -0
  13. package/src/assets/base.css +86 -86
  14. package/src/assets/logo.svg +1 -1
  15. package/src/assets/main.css +35 -35
  16. package/src/assets/style/transition.scss +49 -49
  17. package/src/components/OperationAuth/operationAuth.vue +26 -26
  18. package/src/components/Search/ElIconSearch.vue +239 -239
  19. package/src/components/Search/ElSearch.vue +132 -132
  20. package/src/components/business/userSelect.vue +412 -0
  21. package/src/components/icon/ElIconBtn.vue +182 -182
  22. package/src/components/icon/ElIcons.vue +38 -38
  23. package/src/components/upload/ElUploads.vue +279 -279
  24. package/src/css/elementUI/affix.scss +7 -7
  25. package/src/css/elementUI/alert.scss +115 -115
  26. package/src/css/elementUI/anchor-link.scss +41 -41
  27. package/src/css/elementUI/anchor.scss +88 -88
  28. package/src/css/elementUI/aside.scss +8 -8
  29. package/src/css/elementUI/avatar.scss +55 -55
  30. package/src/css/elementUI/backtop.scss +29 -29
  31. package/src/css/elementUI/badge.scss +58 -58
  32. package/src/css/elementUI/base.scss +3 -3
  33. package/src/css/elementUI/breadcrumb.scss +62 -62
  34. package/src/css/elementUI/button-group.scss +80 -80
  35. package/src/css/elementUI/button.scss +304 -304
  36. package/src/css/elementUI/calendar.scss +80 -80
  37. package/src/css/elementUI/card.scss +45 -45
  38. package/src/css/elementUI/carousel-item.scss +58 -58
  39. package/src/css/elementUI/carousel.scss +188 -188
  40. package/src/css/elementUI/cascader-panel.scss +138 -138
  41. package/src/css/elementUI/cascader.scss +230 -230
  42. package/src/css/elementUI/check-tag.scss +60 -60
  43. package/src/css/elementUI/checkbox-button.scss +140 -140
  44. package/src/css/elementUI/checkbox-group.scss +7 -7
  45. package/src/css/elementUI/checkbox.scss +298 -298
  46. package/src/css/elementUI/col.scss +48 -48
  47. package/src/css/elementUI/collapse.scss +70 -70
  48. package/src/css/elementUI/color/index.scss +20 -20
  49. package/src/css/elementUI/color-picker.scss +392 -392
  50. package/src/css/elementUI/common/popup.scss +47 -47
  51. package/src/css/elementUI/common/transition.scss +122 -122
  52. package/src/css/elementUI/container.scss +14 -14
  53. package/src/css/elementUI/dark/css-vars.scss +39 -39
  54. package/src/css/elementUI/dark/var.scss +222 -222
  55. package/src/css/elementUI/date-picker/date-picker.scss +110 -110
  56. package/src/css/elementUI/date-picker/date-range-picker.scss +113 -113
  57. package/src/css/elementUI/date-picker/date-table.scss +158 -158
  58. package/src/css/elementUI/date-picker/month-table.scss +112 -112
  59. package/src/css/elementUI/date-picker/picker-panel.scss +131 -131
  60. package/src/css/elementUI/date-picker/time-picker.scss +90 -90
  61. package/src/css/elementUI/date-picker/time-range-picker.scss +33 -33
  62. package/src/css/elementUI/date-picker/time-spinner.scss +111 -111
  63. package/src/css/elementUI/date-picker/year-table.scss +108 -108
  64. package/src/css/elementUI/date-picker.scss +9 -9
  65. package/src/css/elementUI/descriptions-item.scss +73 -73
  66. package/src/css/elementUI/descriptions.scss +152 -152
  67. package/src/css/elementUI/dialog.scss +199 -199
  68. package/src/css/elementUI/display.scss +12 -12
  69. package/src/css/elementUI/divider.scss +48 -48
  70. package/src/css/elementUI/dropdown.scss +208 -208
  71. package/src/css/elementUI/empty.scss +49 -49
  72. package/src/css/elementUI/footer.scss +12 -12
  73. package/src/css/elementUI/form.scss +243 -243
  74. package/src/css/elementUI/header.scss +12 -12
  75. package/src/css/elementUI/icon.scss +45 -45
  76. package/src/css/elementUI/image-viewer.scss +139 -139
  77. package/src/css/elementUI/image.scss +49 -49
  78. package/src/css/elementUI/index.scss +110 -110
  79. package/src/css/elementUI/input-number.scss +178 -178
  80. package/src/css/elementUI/input.scss +478 -478
  81. package/src/css/elementUI/link.scss +90 -90
  82. package/src/css/elementUI/loading.scss +104 -104
  83. package/src/css/elementUI/main.scss +14 -14
  84. package/src/css/elementUI/mention.scss +88 -88
  85. package/src/css/elementUI/menu.scss +339 -339
  86. package/src/css/elementUI/message-box.scss +213 -213
  87. package/src/css/elementUI/message.scss +98 -98
  88. package/src/css/elementUI/mixins/_button.scss +165 -165
  89. package/src/css/elementUI/mixins/_col.scss +33 -33
  90. package/src/css/elementUI/mixins/_var.scss +67 -67
  91. package/src/css/elementUI/mixins/config.scss +5 -5
  92. package/src/css/elementUI/mixins/function.scss +88 -88
  93. package/src/css/elementUI/mixins/mixins.scss +237 -237
  94. package/src/css/elementUI/mixins/utils.scss +39 -39
  95. package/src/css/elementUI/notification.scss +104 -104
  96. package/src/css/elementUI/option-group.scss +33 -33
  97. package/src/css/elementUI/option.scss +71 -71
  98. package/src/css/elementUI/overlay.scss +17 -17
  99. package/src/css/elementUI/page-header.scss +60 -60
  100. package/src/css/elementUI/pagination.scss +238 -238
  101. package/src/css/elementUI/popconfirm.scss +16 -16
  102. package/src/css/elementUI/popover.scss +61 -61
  103. package/src/css/elementUI/popper.scss +106 -106
  104. package/src/css/elementUI/progress.scss +179 -179
  105. package/src/css/elementUI/radio-button.scss +169 -169
  106. package/src/css/elementUI/radio-group.scss +9 -9
  107. package/src/css/elementUI/radio.scss +215 -215
  108. package/src/css/elementUI/rate.scss +108 -108
  109. package/src/css/elementUI/reset.scss +98 -98
  110. package/src/css/elementUI/result.scss +57 -57
  111. package/src/css/elementUI/row.scss +35 -35
  112. package/src/css/elementUI/scrollbar.scss +97 -97
  113. package/src/css/elementUI/segmented.scss +183 -183
  114. package/src/css/elementUI/select-dropdown-v2.scss +1 -1
  115. package/src/css/elementUI/select-dropdown.scss +57 -57
  116. package/src/css/elementUI/select-v2.scss +4 -4
  117. package/src/css/elementUI/select.scss +253 -253
  118. package/src/css/elementUI/skeleton-item.scss +83 -83
  119. package/src/css/elementUI/skeleton.scss +44 -44
  120. package/src/css/elementUI/slider.scss +212 -212
  121. package/src/css/elementUI/space.scss +20 -20
  122. package/src/css/elementUI/spinner.scss +43 -43
  123. package/src/css/elementUI/statistic.scss +35 -35
  124. package/src/css/elementUI/step.scss +316 -316
  125. package/src/css/elementUI/steps.scss +21 -21
  126. package/src/css/elementUI/switch.scss +300 -300
  127. package/src/css/elementUI/table-column.scss +98 -98
  128. package/src/css/elementUI/table-v2.scss +236 -236
  129. package/src/css/elementUI/tag.scss +181 -181
  130. package/src/css/elementUI/text.scss +51 -51
  131. package/src/css/elementUI/time-picker.scss +5 -5
  132. package/src/css/elementUI/time-select.scss +37 -37
  133. package/src/css/elementUI/timeline-item.scss +84 -84
  134. package/src/css/elementUI/timeline.scss +46 -46
  135. package/src/css/elementUI/tooltip-v2.scss +95 -95
  136. package/src/css/elementUI/tour.scss +187 -187
  137. package/src/css/elementUI/transfer.scss +203 -203
  138. package/src/css/elementUI/tree-select.scss +41 -41
  139. package/src/css/elementUI/tree.scss +134 -134
  140. package/src/css/elementUI/upload.scss +654 -654
  141. package/src/css/elementUI/var.scss +87 -87
  142. package/src/css/elementUI/virtual-list.scss +40 -40
  143. package/src/hooks/useDictHooks.ts +77 -0
  144. package/src/interface/IMdmDept.ts +82 -0
  145. package/src/interface/IOrgDeptInfo.ts +12 -0
  146. package/src/interface/ISysUserInfo.ts +70 -0
  147. package/src/interface/dictMapType.ts +11 -0
  148. package/src/interface/enum/FlexEnum.ts +85 -85
  149. package/src/main.ts +14 -14
  150. package/src/mixin/globalMixin.ts +34 -31
  151. package/src/router/index.ts +23 -23
  152. package/src/utils/encrypt.ts +10 -10
  153. package/src/utils/request.ts +55 -55
  154. package/tsconfig.app.json +12 -12
  155. package/tsconfig.json +11 -11
  156. package/tsconfig.node.json +18 -18
  157. package/vite.config.ts +38 -38
  158. /package/src/components/autoToolTip/{index.vue → ElAutoToolTip.vue} +0 -0
@@ -1,165 +1,165 @@
1
- @use '../mixins/var' as *;
2
- @use '../mixins/function' as *;
3
- @use '../common/var' as *;
4
-
5
- @mixin button-plain($type) {
6
- $button-color-types: (
7
- '': (
8
- 'text-color': (
9
- 'color',
10
- $type,
11
- ),
12
- 'bg-color': (
13
- 'color',
14
- $type,
15
- 'light-9',
16
- ),
17
- 'border-color': (
18
- 'color',
19
- $type,
20
- 'light-5',
21
- ),
22
- ),
23
- 'hover': (
24
- 'text-color': (
25
- 'color',
26
- 'white',
27
- ),
28
- 'bg-color': (
29
- 'color',
30
- $type,
31
- ),
32
- 'border-color': (
33
- 'color',
34
- $type,
35
- ),
36
- ),
37
- 'active': (
38
- 'text-color': (
39
- 'color',
40
- 'white',
41
- ),
42
- ),
43
- );
44
-
45
- @each $type, $typeMap in $button-color-types {
46
- @each $typeColor, $list in $typeMap {
47
- @include css-var-from-global(('button', $type, $typeColor), $list);
48
- }
49
- }
50
-
51
- &.is-disabled {
52
- &,
53
- &:hover,
54
- &:focus,
55
- &:active {
56
- color: getCssVar('color', $type, 'light-5');
57
- background-color: getCssVar('color', $type, 'light-9');
58
- border-color: getCssVar('color', $type, 'light-8');
59
- }
60
- }
61
- }
62
-
63
- @mixin button-variant($type) {
64
- $button-color-types: (
65
- '': (
66
- 'text-color': (
67
- 'color',
68
- 'white',
69
- ),
70
- 'bg-color': (
71
- 'color',
72
- $type,
73
- ),
74
- 'border-color': (
75
- 'color',
76
- $type,
77
- ),
78
- 'outline-color': (
79
- 'color',
80
- $type,
81
- 'light-5',
82
- ),
83
- 'active-color': (
84
- 'color',
85
- $type,
86
- 'dark-2',
87
- ),
88
- ),
89
- 'hover': (
90
- 'text-color': (
91
- 'color',
92
- 'white',
93
- ),
94
- 'link-text-color': (
95
- 'color',
96
- $type,
97
- 'light-5',
98
- ),
99
- 'bg-color': (
100
- 'color',
101
- $type,
102
- 'light-3',
103
- ),
104
- 'border-color': (
105
- 'color',
106
- $type,
107
- 'light-3',
108
- ),
109
- ),
110
- 'active': (
111
- 'bg-color': (
112
- 'color',
113
- $type,
114
- 'dark-2',
115
- ),
116
- 'border-color': (
117
- 'color',
118
- $type,
119
- 'dark-2',
120
- ),
121
- ),
122
- 'disabled': (
123
- 'text-color': (
124
- 'color',
125
- 'white',
126
- ),
127
- 'bg-color': (
128
- 'color',
129
- $type,
130
- 'light-5',
131
- ),
132
- 'border-color': (
133
- 'color',
134
- $type,
135
- 'light-5',
136
- ),
137
- ),
138
- );
139
-
140
- @each $type, $typeMap in $button-color-types {
141
- @each $typeColor, $list in $typeMap {
142
- @include css-var-from-global(('button', $type, $typeColor), $list);
143
- }
144
- }
145
-
146
- &.is-plain,
147
- &.is-text,
148
- &.is-link {
149
- @include button-plain($type);
150
- }
151
- }
152
-
153
- @mixin button-size(
154
- $padding-vertical,
155
- $padding-horizontal,
156
- $font-size,
157
- $border-radius
158
- ) {
159
- padding: $padding-vertical $padding-horizontal;
160
- font-size: $font-size;
161
- border-radius: $border-radius;
162
- &.is-round {
163
- padding: $padding-vertical $padding-horizontal;
164
- }
165
- }
1
+ @use '../mixins/var' as *;
2
+ @use '../mixins/function' as *;
3
+ @use '../common/var' as *;
4
+
5
+ @mixin button-plain($type) {
6
+ $button-color-types: (
7
+ '': (
8
+ 'text-color': (
9
+ 'color',
10
+ $type,
11
+ ),
12
+ 'bg-color': (
13
+ 'color',
14
+ $type,
15
+ 'light-9',
16
+ ),
17
+ 'border-color': (
18
+ 'color',
19
+ $type,
20
+ 'light-5',
21
+ ),
22
+ ),
23
+ 'hover': (
24
+ 'text-color': (
25
+ 'color',
26
+ 'white',
27
+ ),
28
+ 'bg-color': (
29
+ 'color',
30
+ $type,
31
+ ),
32
+ 'border-color': (
33
+ 'color',
34
+ $type,
35
+ ),
36
+ ),
37
+ 'active': (
38
+ 'text-color': (
39
+ 'color',
40
+ 'white',
41
+ ),
42
+ ),
43
+ );
44
+
45
+ @each $type, $typeMap in $button-color-types {
46
+ @each $typeColor, $list in $typeMap {
47
+ @include css-var-from-global(('button', $type, $typeColor), $list);
48
+ }
49
+ }
50
+
51
+ &.is-disabled {
52
+ &,
53
+ &:hover,
54
+ &:focus,
55
+ &:active {
56
+ color: getCssVar('color', $type, 'light-5');
57
+ background-color: getCssVar('color', $type, 'light-9');
58
+ border-color: getCssVar('color', $type, 'light-8');
59
+ }
60
+ }
61
+ }
62
+
63
+ @mixin button-variant($type) {
64
+ $button-color-types: (
65
+ '': (
66
+ 'text-color': (
67
+ 'color',
68
+ 'white',
69
+ ),
70
+ 'bg-color': (
71
+ 'color',
72
+ $type,
73
+ ),
74
+ 'border-color': (
75
+ 'color',
76
+ $type,
77
+ ),
78
+ 'outline-color': (
79
+ 'color',
80
+ $type,
81
+ 'light-5',
82
+ ),
83
+ 'active-color': (
84
+ 'color',
85
+ $type,
86
+ 'dark-2',
87
+ ),
88
+ ),
89
+ 'hover': (
90
+ 'text-color': (
91
+ 'color',
92
+ 'white',
93
+ ),
94
+ 'link-text-color': (
95
+ 'color',
96
+ $type,
97
+ 'light-5',
98
+ ),
99
+ 'bg-color': (
100
+ 'color',
101
+ $type,
102
+ 'light-3',
103
+ ),
104
+ 'border-color': (
105
+ 'color',
106
+ $type,
107
+ 'light-3',
108
+ ),
109
+ ),
110
+ 'active': (
111
+ 'bg-color': (
112
+ 'color',
113
+ $type,
114
+ 'dark-2',
115
+ ),
116
+ 'border-color': (
117
+ 'color',
118
+ $type,
119
+ 'dark-2',
120
+ ),
121
+ ),
122
+ 'disabled': (
123
+ 'text-color': (
124
+ 'color',
125
+ 'white',
126
+ ),
127
+ 'bg-color': (
128
+ 'color',
129
+ $type,
130
+ 'light-5',
131
+ ),
132
+ 'border-color': (
133
+ 'color',
134
+ $type,
135
+ 'light-5',
136
+ ),
137
+ ),
138
+ );
139
+
140
+ @each $type, $typeMap in $button-color-types {
141
+ @each $typeColor, $list in $typeMap {
142
+ @include css-var-from-global(('button', $type, $typeColor), $list);
143
+ }
144
+ }
145
+
146
+ &.is-plain,
147
+ &.is-text,
148
+ &.is-link {
149
+ @include button-plain($type);
150
+ }
151
+ }
152
+
153
+ @mixin button-size(
154
+ $padding-vertical,
155
+ $padding-horizontal,
156
+ $font-size,
157
+ $border-radius
158
+ ) {
159
+ padding: $padding-vertical $padding-horizontal;
160
+ font-size: $font-size;
161
+ border-radius: $border-radius;
162
+ &.is-round {
163
+ padding: $padding-vertical $padding-horizontal;
164
+ }
165
+ }
@@ -1,33 +1,33 @@
1
- @use 'sass:math';
2
-
3
- @use '../common/var' as *;
4
- @use './mixins' as *;
5
-
6
- @mixin col-size($size) {
7
- @include res($size) {
8
- @for $i from 0 through 24 {
9
- .#{$namespace}-col-#{$size}-#{$i} {
10
- display: if($i == 0, none, block);
11
- max-width: (math.div(1, 24) * $i * 100) * 1%;
12
- flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
13
- @include when(guttered) {
14
- display: if($i == 0, none, block);
15
- }
16
- }
17
-
18
- .#{$namespace}-col-#{$size}-offset-#{$i} {
19
- margin-left: (math.div(1, 24) * $i * 100) * 1%;
20
- }
21
-
22
- .#{$namespace}-col-#{$size}-pull-#{$i} {
23
- position: relative;
24
- right: (math.div(1, 24) * $i * 100) * 1%;
25
- }
26
-
27
- .#{$namespace}-col-#{$size}-push-#{$i} {
28
- position: relative;
29
- left: (math.div(1, 24) * $i * 100) * 1%;
30
- }
31
- }
32
- }
33
- }
1
+ @use 'sass:math';
2
+
3
+ @use '../common/var' as *;
4
+ @use './mixins' as *;
5
+
6
+ @mixin col-size($size) {
7
+ @include res($size) {
8
+ @for $i from 0 through 24 {
9
+ .#{$namespace}-col-#{$size}-#{$i} {
10
+ display: if($i == 0, none, block);
11
+ max-width: (math.div(1, 24) * $i * 100) * 1%;
12
+ flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
13
+ @include when(guttered) {
14
+ display: if($i == 0, none, block);
15
+ }
16
+ }
17
+
18
+ .#{$namespace}-col-#{$size}-offset-#{$i} {
19
+ margin-left: (math.div(1, 24) * $i * 100) * 1%;
20
+ }
21
+
22
+ .#{$namespace}-col-#{$size}-pull-#{$i} {
23
+ position: relative;
24
+ right: (math.div(1, 24) * $i * 100) * 1%;
25
+ }
26
+
27
+ .#{$namespace}-col-#{$size}-push-#{$i} {
28
+ position: relative;
29
+ left: (math.div(1, 24) * $i * 100) * 1%;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -1,67 +1,67 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
-
4
- @use 'config';
5
- @use 'function' as *;
6
- @use '../common/var' as *;
7
-
8
- // set css var value, because we need translate value to string
9
- // for example:
10
- // @include set-css-var-value(('color', 'primary'), red);
11
- // --el-color-primary: red;
12
- @mixin set-css-var-value($name, $value) {
13
- #{joinVarName($name)}: #{$value};
14
- }
15
-
16
- // @include set-css-var-type('color', 'primary', $map);
17
- // --el-color-primary: #{map.get($map, 'primary')};
18
- @mixin set-css-var-type($name, $type, $variables) {
19
- #{getCssVarName($name, $type)}: #{map.get($variables, $type)};
20
- }
21
-
22
- @mixin set-css-color-type($colors, $type) {
23
- @include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
24
-
25
- @each $i in (3, 5, 7, 8, 9) {
26
- @include set-css-var-value(
27
- ('color', $type, 'light', $i),
28
- map.get($colors, $type, 'light-#{$i}')
29
- );
30
- }
31
-
32
- @include set-css-var-value(
33
- ('color', $type, 'dark-2'),
34
- map.get($colors, $type, 'dark-2')
35
- );
36
- }
37
-
38
- // set all css var for component by map
39
- @mixin set-component-css-var($name, $variables) {
40
- @each $attribute, $value in $variables {
41
- @if $attribute == 'default' {
42
- #{getCssVarName($name)}: #{$value};
43
- } @else {
44
- #{getCssVarName($name, $attribute)}: #{$value};
45
- }
46
- }
47
- }
48
-
49
- @mixin set-css-color-rgb($type) {
50
- $color: map.get($colors, $type, 'base');
51
- @include set-css-var-value(
52
- ('color', $type, 'rgb'),
53
- #{color.channel($color, 'red'),
54
- color.channel($color, 'green'),
55
- color.channel($color, 'blue')}
56
- );
57
- }
58
-
59
- // generate css var from existing css var
60
- // for example:
61
- // @include css-var-from-global(('button', 'text-color'), ('color', $type))
62
- // --el-button-text-color: var(--el-color-#{$type});
63
- @mixin css-var-from-global($var, $gVar) {
64
- $varName: joinVarName($var);
65
- $gVarName: joinVarName($gVar);
66
- #{$varName}: var(#{$gVarName});
67
- }
1
+ @use 'sass:map';
2
+ @use 'sass:color';
3
+
4
+ @use 'config';
5
+ @use 'function' as *;
6
+ @use '../common/var' as *;
7
+
8
+ // set css var value, because we need translate value to string
9
+ // for example:
10
+ // @include set-css-var-value(('color', 'primary'), red);
11
+ // --el-color-primary: red;
12
+ @mixin set-css-var-value($name, $value) {
13
+ #{joinVarName($name)}: #{$value};
14
+ }
15
+
16
+ // @include set-css-var-type('color', 'primary', $map);
17
+ // --el-color-primary: #{map.get($map, 'primary')};
18
+ @mixin set-css-var-type($name, $type, $variables) {
19
+ #{getCssVarName($name, $type)}: #{map.get($variables, $type)};
20
+ }
21
+
22
+ @mixin set-css-color-type($colors, $type) {
23
+ @include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
24
+
25
+ @each $i in (3, 5, 7, 8, 9) {
26
+ @include set-css-var-value(
27
+ ('color', $type, 'light', $i),
28
+ map.get($colors, $type, 'light-#{$i}')
29
+ );
30
+ }
31
+
32
+ @include set-css-var-value(
33
+ ('color', $type, 'dark-2'),
34
+ map.get($colors, $type, 'dark-2')
35
+ );
36
+ }
37
+
38
+ // set all css var for component by map
39
+ @mixin set-component-css-var($name, $variables) {
40
+ @each $attribute, $value in $variables {
41
+ @if $attribute == 'default' {
42
+ #{getCssVarName($name)}: #{$value};
43
+ } @else {
44
+ #{getCssVarName($name, $attribute)}: #{$value};
45
+ }
46
+ }
47
+ }
48
+
49
+ @mixin set-css-color-rgb($type) {
50
+ $color: map.get($colors, $type, 'base');
51
+ @include set-css-var-value(
52
+ ('color', $type, 'rgb'),
53
+ #{color.channel($color, 'red'),
54
+ color.channel($color, 'green'),
55
+ color.channel($color, 'blue')}
56
+ );
57
+ }
58
+
59
+ // generate css var from existing css var
60
+ // for example:
61
+ // @include css-var-from-global(('button', 'text-color'), ('color', $type))
62
+ // --el-button-text-color: var(--el-color-#{$type});
63
+ @mixin css-var-from-global($var, $gVar) {
64
+ $varName: joinVarName($var);
65
+ $gVarName: joinVarName($gVar);
66
+ #{$varName}: var(#{$gVarName});
67
+ }
@@ -1,5 +1,5 @@
1
- $namespace: 'el' !default;
2
- $common-separator: '-' !default;
3
- $element-separator: '__' !default;
4
- $modifier-separator: '--' !default;
5
- $state-prefix: 'is-' !default;
1
+ $namespace: 'el' !default;
2
+ $common-separator: '-' !default;
3
+ $element-separator: '__' !default;
4
+ $modifier-separator: '--' !default;
5
+ $state-prefix: 'is-' !default;