cy-element-ui 1.0.67 → 1.0.68

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 (106) hide show
  1. package/lib/theme-chalk/alert.css +1 -0
  2. package/lib/theme-chalk/aside.css +1 -0
  3. package/lib/theme-chalk/autocomplete.css +1 -0
  4. package/lib/theme-chalk/avatar.css +1 -0
  5. package/lib/theme-chalk/backtop.css +1 -0
  6. package/lib/theme-chalk/badge.css +1 -0
  7. package/lib/theme-chalk/base.css +1 -1
  8. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  9. package/lib/theme-chalk/breadcrumb.css +1 -0
  10. package/lib/theme-chalk/button-group.css +0 -0
  11. package/lib/theme-chalk/button.css +1 -0
  12. package/lib/theme-chalk/calendar.css +1 -0
  13. package/lib/theme-chalk/card.css +1 -0
  14. package/lib/theme-chalk/carousel-item.css +1 -0
  15. package/lib/theme-chalk/carousel.css +1 -0
  16. package/lib/theme-chalk/cascader-panel.css +1 -0
  17. package/lib/theme-chalk/cascader.css +1 -0
  18. package/lib/theme-chalk/checkbox-button.css +0 -0
  19. package/lib/theme-chalk/checkbox-group.css +0 -0
  20. package/lib/theme-chalk/checkbox.css +1 -0
  21. package/lib/theme-chalk/col.css +1 -0
  22. package/lib/theme-chalk/collapse-item.css +0 -0
  23. package/lib/theme-chalk/collapse.css +1 -0
  24. package/lib/theme-chalk/color-picker.css +1 -0
  25. package/lib/theme-chalk/container.css +1 -0
  26. package/lib/theme-chalk/date-picker.css +1 -0
  27. package/lib/theme-chalk/descriptions-item.css +1 -0
  28. package/lib/theme-chalk/descriptions.css +1 -0
  29. package/lib/theme-chalk/dialog.css +1 -0
  30. package/lib/theme-chalk/display.css +1 -0
  31. package/lib/theme-chalk/divider.css +1 -0
  32. package/lib/theme-chalk/drawer.css +1 -0
  33. package/lib/theme-chalk/dropdown-item.css +0 -0
  34. package/lib/theme-chalk/dropdown-menu.css +0 -0
  35. package/lib/theme-chalk/dropdown.css +1 -0
  36. package/lib/theme-chalk/element.css +1 -1
  37. package/lib/theme-chalk/empty.css +1 -0
  38. package/lib/theme-chalk/fileUpload.css +1 -1
  39. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  40. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  41. package/lib/theme-chalk/footer.css +1 -0
  42. package/lib/theme-chalk/form-item.css +0 -0
  43. package/lib/theme-chalk/form.css +1 -0
  44. package/lib/theme-chalk/header.css +1 -0
  45. package/lib/theme-chalk/icon.css +1 -0
  46. package/lib/theme-chalk/image.css +1 -0
  47. package/lib/theme-chalk/index.css +1 -1
  48. package/lib/theme-chalk/infinite-scroll.css +0 -0
  49. package/lib/theme-chalk/infiniteScroll.css +0 -0
  50. package/lib/theme-chalk/input-number.css +1 -0
  51. package/lib/theme-chalk/input.css +1 -0
  52. package/lib/theme-chalk/link.css +1 -0
  53. package/lib/theme-chalk/loading.css +1 -0
  54. package/lib/theme-chalk/main.css +1 -0
  55. package/lib/theme-chalk/menu-item-group.css +0 -0
  56. package/lib/theme-chalk/menu-item.css +0 -0
  57. package/lib/theme-chalk/menu.css +1 -0
  58. package/lib/theme-chalk/message-box.css +1 -0
  59. package/lib/theme-chalk/message.css +1 -0
  60. package/lib/theme-chalk/notification.css +1 -0
  61. package/lib/theme-chalk/option-group.css +1 -0
  62. package/lib/theme-chalk/option.css +1 -0
  63. package/lib/theme-chalk/page-header.css +1 -0
  64. package/lib/theme-chalk/pagination.css +1 -0
  65. package/lib/theme-chalk/popconfirm.css +1 -0
  66. package/lib/theme-chalk/popover.css +1 -0
  67. package/lib/theme-chalk/popper.css +1 -0
  68. package/lib/theme-chalk/progress.css +1 -0
  69. package/lib/theme-chalk/radio-button.css +1 -0
  70. package/lib/theme-chalk/radio-group.css +1 -0
  71. package/lib/theme-chalk/radio.css +1 -0
  72. package/lib/theme-chalk/rate.css +1 -0
  73. package/lib/theme-chalk/reset.css +1 -0
  74. package/lib/theme-chalk/result.css +1 -0
  75. package/lib/theme-chalk/row.css +1 -0
  76. package/lib/theme-chalk/scrollbar.css +1 -0
  77. package/lib/theme-chalk/select-dropdown.css +1 -0
  78. package/lib/theme-chalk/select.css +1 -0
  79. package/lib/theme-chalk/selectDisplayInput.css +1 -1
  80. package/lib/theme-chalk/skeleton-item.css +1 -0
  81. package/lib/theme-chalk/skeleton.css +1 -0
  82. package/lib/theme-chalk/slider.css +1 -0
  83. package/lib/theme-chalk/spinner.css +1 -0
  84. package/lib/theme-chalk/statistic.css +1 -0
  85. package/lib/theme-chalk/step.css +1 -0
  86. package/lib/theme-chalk/steps.css +1 -0
  87. package/lib/theme-chalk/subTitle.css +1 -1
  88. package/lib/theme-chalk/submenu.css +0 -0
  89. package/lib/theme-chalk/switch.css +1 -0
  90. package/lib/theme-chalk/tab-pane.css +0 -0
  91. package/lib/theme-chalk/tabDialog.css +1 -1
  92. package/lib/theme-chalk/table-column.css +1 -0
  93. package/lib/theme-chalk/table.css +1 -0
  94. package/lib/theme-chalk/tabs.css +1 -0
  95. package/lib/theme-chalk/tag.css +1 -0
  96. package/lib/theme-chalk/time-picker.css +1 -0
  97. package/lib/theme-chalk/time-select.css +1 -0
  98. package/lib/theme-chalk/timeline-item.css +1 -0
  99. package/lib/theme-chalk/timeline.css +1 -0
  100. package/lib/theme-chalk/tooltip.css +1 -0
  101. package/lib/theme-chalk/transfer.css +1 -0
  102. package/lib/theme-chalk/tree.css +1 -0
  103. package/lib/theme-chalk/treeSelect.css +1 -1
  104. package/lib/theme-chalk/upload.css +1 -0
  105. package/package.json +160 -160
  106. package/packages/theme-chalk/src/mixins/mixins.scss +210 -190
@@ -1,190 +1,210 @@
1
- @import "function";
2
- @import "../common/var";
3
-
4
- /* Break-points
5
- -------------------------- */
6
- @mixin res($key, $map: $--breakpoints) {
7
- // 循环断点Map,如果存在则返回
8
- @if map-has-key($map, $key) {
9
- @media only screen and #{inspect(map-get($map, $key))} {
10
- @content;
11
- }
12
- } @else {
13
- @warn "Undefeined points: `#{$map}`";
14
- }
15
- }
16
-
17
- /* Scrollbar
18
- -------------------------- */
19
- @mixin scroll-bar {
20
- $--scrollbar-thumb-background: #b4bccc;
21
- $--scrollbar-track-background: #fff;
22
-
23
- &::-webkit-scrollbar {
24
- z-index: 11;
25
- width: 6px;
26
-
27
- &:horizontal {
28
- height: 6px;
29
- }
30
-
31
- &-thumb {
32
- border-radius: 5px;
33
- width: 6px;
34
- background: $--scrollbar-thumb-background;
35
- }
36
-
37
- &-corner {
38
- background: $--scrollbar-track-background;
39
- }
40
-
41
- &-track {
42
- background: $--scrollbar-track-background;
43
-
44
- &-piece {
45
- background: $--scrollbar-track-background;
46
- width: 6px;
47
- }
48
- }
49
- }
50
- }
51
-
52
- /* Placeholder
53
- -------------------------- */
54
- @mixin placeholder {
55
- &::-webkit-input-placeholder {
56
- @content
57
- }
58
-
59
- &::-moz-placeholder {
60
- @content
61
- }
62
-
63
- &:-ms-input-placeholder {
64
- @content
65
- }
66
- }
67
-
68
- /* BEM
69
- -------------------------- */
70
- @mixin b($block) {
71
- $B: $namespace+'-'+$block !global;
72
-
73
- .#{$B} {
74
- @content;
75
- }
76
- }
77
-
78
- @mixin e($element) {
79
- $E: $element !global;
80
- $selector: &;
81
- $currentSelector: "";
82
- @each $unit in $element {
83
- $currentSelector: #{$currentSelector + "." + $B + $element-separator + $unit + ","};
84
- }
85
-
86
- @if hitAllSpecialNestRule($selector) {
87
- @at-root {
88
- #{$selector} {
89
- #{$currentSelector} {
90
- @content;
91
- }
92
- }
93
- }
94
- } @else {
95
- @at-root {
96
- #{$currentSelector} {
97
- @content;
98
- }
99
- }
100
- }
101
- }
102
-
103
- @mixin m($modifier) {
104
- $selector: &;
105
- $currentSelector: "";
106
- @each $unit in $modifier {
107
- $currentSelector: #{$currentSelector + & + $modifier-separator + $unit + ","};
108
- }
109
-
110
- @at-root {
111
- #{$currentSelector} {
112
- @content;
113
- }
114
- }
115
- }
116
-
117
- @mixin configurable-m($modifier, $E-flag: false) {
118
- $selector: &;
119
- $interpolation: '';
120
-
121
- @if $E-flag {
122
- $interpolation: $element-separator + $E-flag;
123
- }
124
-
125
- @at-root {
126
- #{$selector} {
127
- .#{$B+$interpolation+$modifier-separator+$modifier} {
128
- @content;
129
- }
130
- }
131
- }
132
- }
133
-
134
- @mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
135
- $modifierCombo: '';
136
-
137
- @if $modifier {
138
- $modifierCombo: $modifier-separator + $modifier;
139
- }
140
-
141
- @at-root {
142
- #{&}#{$specSelector}.#{$block+$element-separator+$element+$modifierCombo} {
143
- @content
144
- }
145
- }
146
- }
147
-
148
- @mixin meb($modifier: false, $element: $E, $block: $B) {
149
- $selector: &;
150
- $modifierCombo: '';
151
-
152
- @if $modifier {
153
- $modifierCombo: $modifier-separator + $modifier;
154
- }
155
-
156
- @at-root {
157
- #{$selector} {
158
- .#{$block+$element-separator+$element+$modifierCombo} {
159
- @content
160
- }
161
- }
162
- }
163
- }
164
-
165
- @mixin when($state) {
166
- @at-root {
167
- &.#{$state-prefix + $state} {
168
- @content;
169
- }
170
- }
171
- }
172
-
173
- @mixin extend-rule($name) {
174
- @extend #{'%shared-'+$name};
175
- }
176
-
177
- @mixin share-rule($name) {
178
- $rule-name: '%shared-'+$name;
179
-
180
- @at-root #{$rule-name} {
181
- @content
182
- }
183
- }
184
-
185
- @mixin pseudo($pseudo) {
186
- @at-root #{&}#{':#{$pseudo}'} {
187
- @content
188
- }
189
- }
190
-
1
+ @import "function";
2
+ @import "../common/var";
3
+
4
+ /* Break-points
5
+ -------------------------- */
6
+ @mixin res($key, $map: $--breakpoints) {
7
+ // 循环断点Map,如果存在则返回
8
+ @if map-has-key($map, $key) {
9
+ $bp: map-get($map, $key);
10
+
11
+ // 检查是否是字符串(预编译的媒体查询)
12
+ @if type-of($bp) == string {
13
+ @media only screen and #{$bp} {
14
+ @content;
15
+ }
16
+ } @else {
17
+ // 处理 map 类型的断点
18
+ $min: map-get($bp, min-width);
19
+ $max: map-get($bp, max-width);
20
+
21
+ $conditions: ();
22
+ @if $min {
23
+ $conditions: append($conditions, "(min-width: #{$min})");
24
+ }
25
+ @if $max {
26
+ $conditions: append($conditions, "(max-width: #{$max})");
27
+ }
28
+
29
+ @media only screen and #{if(length($conditions) > 1, join($conditions, " and "), nth($conditions, 1))} {
30
+ @content;
31
+ }
32
+ }
33
+ } @else {
34
+ @warn "Undefeined points: `#{$map}`";
35
+ }
36
+ }
37
+
38
+ /* Scrollbar
39
+ -------------------------- */
40
+ @mixin scroll-bar {
41
+ $--scrollbar-thumb-background: #b4bccc;
42
+ $--scrollbar-track-background: #fff;
43
+
44
+ &::-webkit-scrollbar {
45
+ z-index: 11;
46
+ width: 6px;
47
+
48
+ &:horizontal {
49
+ height: 6px;
50
+ }
51
+
52
+ &-thumb {
53
+ border-radius: 5px;
54
+ width: 6px;
55
+ background: $--scrollbar-thumb-background;
56
+ }
57
+
58
+ &-corner {
59
+ background: $--scrollbar-track-background;
60
+ }
61
+
62
+ &-track {
63
+ background: $--scrollbar-track-background;
64
+
65
+ &-piece {
66
+ background: $--scrollbar-track-background;
67
+ width: 6px;
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ /* Placeholder
74
+ -------------------------- */
75
+ @mixin placeholder {
76
+ &::-webkit-input-placeholder {
77
+ @content
78
+ }
79
+
80
+ &::-moz-placeholder {
81
+ @content
82
+ }
83
+
84
+ &:-ms-input-placeholder {
85
+ @content
86
+ }
87
+ }
88
+
89
+ /* BEM
90
+ -------------------------- */
91
+ @mixin b($block) {
92
+ $B: $namespace+'-'+$block !global;
93
+
94
+ .#{$B} {
95
+ @content;
96
+ }
97
+ }
98
+
99
+ @mixin e($element) {
100
+ $E: $element !global;
101
+ $selector: &;
102
+ $currentSelector: "";
103
+ @each $unit in $element {
104
+ $currentSelector: #{$currentSelector + "." + $B + $element-separator + $unit + ","};
105
+ }
106
+
107
+ @if hitAllSpecialNestRule($selector) {
108
+ @at-root {
109
+ #{$selector} {
110
+ #{$currentSelector} {
111
+ @content;
112
+ }
113
+ }
114
+ }
115
+ } @else {
116
+ @at-root {
117
+ #{$currentSelector} {
118
+ @content;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ @mixin m($modifier) {
125
+ $selector: &;
126
+ $currentSelector: "";
127
+ @each $unit in $modifier {
128
+ $currentSelector: #{$currentSelector + & + $modifier-separator + $unit + ","};
129
+ }
130
+
131
+ @at-root {
132
+ #{$currentSelector} {
133
+ @content;
134
+ }
135
+ }
136
+ }
137
+
138
+ @mixin configurable-m($modifier, $E-flag: false) {
139
+ $selector: &;
140
+ $interpolation: '';
141
+
142
+ @if $E-flag {
143
+ $interpolation: $element-separator + $E-flag;
144
+ }
145
+
146
+ @at-root {
147
+ #{$selector} {
148
+ .#{$B+$interpolation+$modifier-separator+$modifier} {
149
+ @content;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ @mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
156
+ $modifierCombo: '';
157
+
158
+ @if $modifier {
159
+ $modifierCombo: $modifier-separator + $modifier;
160
+ }
161
+
162
+ @at-root {
163
+ #{&}#{$specSelector}.#{$block+$element-separator+$element+$modifierCombo} {
164
+ @content
165
+ }
166
+ }
167
+ }
168
+
169
+ @mixin meb($modifier: false, $element: $E, $block: $B) {
170
+ $selector: &;
171
+ $modifierCombo: '';
172
+
173
+ @if $modifier {
174
+ $modifierCombo: $modifier-separator + $modifier;
175
+ }
176
+
177
+ @at-root {
178
+ #{$selector} {
179
+ .#{$block+$element-separator+$element+$modifierCombo} {
180
+ @content
181
+ }
182
+ }
183
+ }
184
+ }
185
+
186
+ @mixin when($state) {
187
+ @at-root {
188
+ &.#{$state-prefix + $state} {
189
+ @content;
190
+ }
191
+ }
192
+ }
193
+
194
+ @mixin extend-rule($name) {
195
+ @extend #{'%shared-'+$name};
196
+ }
197
+
198
+ @mixin share-rule($name) {
199
+ $rule-name: '%shared-'+$name;
200
+
201
+ @at-root #{$rule-name} {
202
+ @content
203
+ }
204
+ }
205
+
206
+ @mixin pseudo($pseudo) {
207
+ @at-root #{&}#{':#{$pseudo}'} {
208
+ @content
209
+ }
210
+ }