eoss 0.1.0-alpha.4 → 0.1.0-alpha.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 (103) hide show
  1. package/lib/account-login.js +3591 -3410
  2. package/lib/autocomplete.js +3585 -3380
  3. package/lib/button-group.js +7675 -7493
  4. package/lib/button.js +3582 -3377
  5. package/lib/ca-login.js +3580 -3375
  6. package/lib/calendar.js +7683 -7501
  7. package/lib/carousel.js +3 -3
  8. package/lib/cascader-panel.js +3612 -3407
  9. package/lib/cascader.js +3612 -3407
  10. package/lib/checkbox-group.js +3563 -3381
  11. package/lib/checkbox.js +70 -70
  12. package/lib/collapse-item.js +3580 -3375
  13. package/lib/color-picker.js +3581 -3376
  14. package/lib/data-table.js +19151 -18970
  15. package/lib/date-picker.js +3579 -3374
  16. package/lib/dialog.js +3582 -3377
  17. package/lib/dropdown.js +7832 -7650
  18. package/lib/email-login.js +3593 -3411
  19. package/lib/eoss.common.js +521 -326
  20. package/lib/flow-group.js +3576 -3366
  21. package/lib/flow.js +4385 -4203
  22. package/lib/form-item.js +3583 -3377
  23. package/lib/form.js +10064 -9883
  24. package/lib/icon.js +3580 -3375
  25. package/lib/image.js +3580 -3375
  26. package/lib/index.js +1 -1
  27. package/lib/index.js.LICENSE.txt +1 -1
  28. package/lib/input-number.js +2563 -2358
  29. package/lib/input.js +3582 -3377
  30. package/lib/loading.js +3582 -3377
  31. package/lib/login.js +5237 -5053
  32. package/lib/main.js +3581 -3402
  33. package/lib/menu-item-group.js +3582 -3377
  34. package/lib/menu-item.js +3582 -3377
  35. package/lib/menu.js +3582 -3377
  36. package/lib/message-box.js +3582 -3377
  37. package/lib/message.js +3582 -3377
  38. package/lib/notification.js +3582 -3377
  39. package/lib/option.js +3601 -3396
  40. package/lib/pagination.js +9907 -9726
  41. package/lib/phone-login.js +3593 -3411
  42. package/lib/popconfirm.js +4794 -4589
  43. package/lib/popover.js +3585 -3380
  44. package/lib/qrcode-login.js +3593 -3411
  45. package/lib/radio-group.js +4389 -4207
  46. package/lib/radio.js +24 -24
  47. package/lib/rate.js +3582 -3377
  48. package/lib/scrollbar.js +3582 -3377
  49. package/lib/select.js +3596 -3415
  50. package/lib/selector-panel.js +3629 -3446
  51. package/lib/selector.js +3597 -3414
  52. package/lib/slider.js +2566 -2361
  53. package/lib/step.js +3580 -3375
  54. package/lib/steps.js +3582 -3377
  55. package/lib/submenu.js +3582 -3377
  56. package/lib/switch.js +3582 -3377
  57. package/lib/table-column.js +3770 -3564
  58. package/lib/table.js +4844 -4662
  59. package/lib/tabs.js +3580 -3375
  60. package/lib/time-picker.js +3581 -3376
  61. package/lib/time-select.js +3581 -3376
  62. package/lib/tips.js +4378 -4196
  63. package/lib/tooltip.js +3582 -3377
  64. package/lib/transfer.js +3563 -3381
  65. package/lib/tree-group.js +3568 -3363
  66. package/lib/tree.js +4652 -4447
  67. package/lib/upload.js +3595 -3413
  68. package/lib/utils/ajax.js +25 -51
  69. package/lib/utils/util.js +330 -132
  70. package/lib/wujie.js +3571 -3363
  71. package/package.json +1 -1
  72. package/packages/autocomplete/src/autocomplete.vue +1 -1
  73. package/packages/carousel/src/item.vue +1 -1
  74. package/packages/carousel/src/main.vue +1 -1
  75. package/packages/checkbox/src/checkbox-group.vue +1 -1
  76. package/packages/checkbox/src/checkbox.vue +29 -29
  77. package/packages/flow-group/src/main.vue +2 -2
  78. package/packages/form/src/form.vue +3 -5
  79. package/packages/input/src/input.vue +2 -2
  80. package/packages/input-number/src/input-number.vue +2 -2
  81. package/packages/login/src/login.vue +4 -4
  82. package/packages/popover/src/main.vue +1 -1
  83. package/packages/radio/src/radio-group.vue +1 -1
  84. package/packages/radio/src/radio.vue +1 -1
  85. package/packages/select/src/select.vue +1 -1
  86. package/packages/slider/src/slider.vue +2 -4
  87. package/packages/table/src/layout-observer.js +5 -5
  88. package/packages/table/src/table-body.js +11 -11
  89. package/packages/table/src/table-column.js +1 -1
  90. package/packages/theme-chalk/package.json +6 -6
  91. package/packages/theme-chalk/src/button.scss +29 -8
  92. package/packages/theme-chalk/src/common/color/colorPalette.scss +5 -5
  93. package/packages/theme-chalk/src/common/var.scss +1 -1
  94. package/packages/theme-chalk/src/dropdown.scss +7 -2
  95. package/packages/theme-chalk/src/link.scss +3 -2
  96. package/packages/theme-chalk/src/mixins/_button.scss +28 -15
  97. package/packages/theme-chalk/src/mixins/color.scss +21 -18
  98. package/packages/theme-chalk/src/mixins/function.scss +108 -44
  99. package/packages/theme-chalk/src/tag.scss +49 -20
  100. package/packages/upload/src/index.vue +2 -2
  101. package/src/index.js +2 -2
  102. package/src/utils/ajax.js +0 -14
  103. package/src/utils/util.js +274 -94
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.6",
4
4
  "description": "eoss内部组件库",
5
5
  "main": "lib/eoss.common.js",
6
6
  "files": [
@@ -207,7 +207,7 @@ export default {
207
207
  this.highlightedIndex = this.highlightFirstItem ? 0 : -1;
208
208
  } else {
209
209
  console.error(
210
- '[Element Error][Autocomplete]autocomplete suggestions must be an array'
210
+ '[Error][Autocomplete]autocomplete suggestions must be an array'
211
211
  );
212
212
  }
213
213
  },
@@ -93,7 +93,7 @@ export default {
93
93
  if (parentType === 'card') {
94
94
  if (parentDirection === 'vertical') {
95
95
  console.warn(
96
- '[Element Warn][Carousel]vertical direction is not supported in card mode'
96
+ '[Warn][Carousel]vertical direction is not supported in card mode'
97
97
  );
98
98
  }
99
99
  this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
@@ -252,7 +252,7 @@ export default {
252
252
  }
253
253
  index = Number(index);
254
254
  if (isNaN(index) || index !== Math.floor(index)) {
255
- console.warn('[Element Warn][Carousel]index must be an integer.');
255
+ console.warn('[Warn][Carousel]index must be an integer.');
256
256
  return;
257
257
  }
258
258
  let length = this.items.length;
@@ -131,7 +131,7 @@ export default {
131
131
  return (this.esFormItem || {}).esFormItemSize;
132
132
  },
133
133
  checkboxGroupSize() {
134
- return this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
134
+ return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
135
135
  }
136
136
  },
137
137
 
@@ -51,10 +51,7 @@
51
51
  />
52
52
  </span>
53
53
  <template v-if="$slots.default || label">
54
- <es-tooltip
55
- v-if="showTooltip"
56
- v-bind="getTooltipProps()"
57
- >
54
+ <es-tooltip v-if="showTooltip" v-bind="getTooltipProps()">
58
55
  <span class="es-checkbox__label">
59
56
  <slot>
60
57
  {{
@@ -299,7 +296,7 @@ export default {
299
296
 
300
297
  checkboxSize() {
301
298
  const temCheckboxSize =
302
- this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
299
+ this.size || this._esFormItemSize || (this.$EOSS || {}).size;
303
300
  return this.isGroup
304
301
  ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize
305
302
  : temCheckboxSize;
@@ -320,31 +317,34 @@ export default {
320
317
  },
321
318
 
322
319
  methods: {
323
- // 获取缓存的tooltip props对象
324
- getTooltipProps() {
325
- if (!this.showTooltip) {
326
- return null;
327
- }
328
-
329
- const newProps = {
330
- effect: this.effect,
331
- content: this.tooltip,
332
- placement: this.placement,
333
- ...this.tooltipConfig
320
+ // 获取缓存的tooltip props对象
321
+ getTooltipProps() {
322
+ if (!this.showTooltip) {
323
+ return null;
324
+ }
325
+
326
+ const newProps = {
327
+ effect: this.effect,
328
+ content: this.tooltip,
329
+ placement: this.placement,
330
+ ...this.tooltipConfig
331
+ };
332
+
333
+ const newPropsKey = JSON.stringify(newProps);
334
+
335
+ // 如果缓存不存在或props发生变化,更新缓存
336
+ if (
337
+ !this._tooltipPropsCache ||
338
+ this._tooltipPropsCache.key !== newPropsKey
339
+ ) {
340
+ this._tooltipPropsCache = {
341
+ key: newPropsKey,
342
+ props: newProps
334
343
  };
335
-
336
- const newPropsKey = JSON.stringify(newProps);
337
-
338
- // 如果缓存不存在或props发生变化,更新缓存
339
- if (!this._tooltipPropsCache || this._tooltipPropsCache.key !== newPropsKey) {
340
- this._tooltipPropsCache = {
341
- key: newPropsKey,
342
- props: newProps
343
- };
344
- }
345
-
346
- return this._tooltipPropsCache.props;
347
- },
344
+ }
345
+
346
+ return this._tooltipPropsCache.props;
347
+ },
348
348
  addToStore() {
349
349
  if (
350
350
  {}.toString.call(this.label) === '[object Object]' &&
@@ -604,12 +604,12 @@ export default {
604
604
  };
605
605
  }
606
606
  }
607
- let param = extend(
607
+ let params = extend(
608
608
  {},
609
609
  { id: this.businessId, appId: this.taskExamineAppId },
610
610
  res.param || {}
611
611
  );
612
- return urlJoinParams({ url, param });
612
+ return urlJoinParams({ url, params });
613
613
  },
614
614
  handleBefore(active, old) {
615
615
  return new Promise((resolve, reject) => {
@@ -727,7 +727,7 @@ export default {
727
727
  // 优化模型检查和错误提示
728
728
  if (!this.model) {
729
729
  console.warn(
730
- '[Element Warn][Form]model is required for resetFields to work.'
730
+ '[Warn][Form]model is required for resetFields to work.'
731
731
  );
732
732
  return;
733
733
  }
@@ -763,9 +763,7 @@ export default {
763
763
  validate(callback) {
764
764
  // 优化模型检查
765
765
  if (!this.model && !this.value) {
766
- console.warn(
767
- '[Element Warn][Form]model is required for validate to work!'
768
- );
766
+ console.warn('[Warn][Form]model is required for validate to work!');
769
767
  return Promise.resolve ? Promise.resolve() : undefined;
770
768
  }
771
769
 
@@ -827,7 +825,7 @@ export default {
827
825
  const fields = this.fields.filter((field) => propMap.has(field.prop));
828
826
 
829
827
  if (!fields.length) {
830
- console.warn('[Element Warn]please pass correct props!');
828
+ console.warn('[Warn]please pass correct props!');
831
829
  return;
832
830
  }
833
831
 
@@ -242,7 +242,7 @@ export default {
242
242
  validator() {
243
243
  process.env.NODE_ENV !== 'production' &&
244
244
  console.warn(
245
- "[Element Warn][Input]'auto-complete' property will be deprecated in next major version. please use 'autocomplete' instead."
245
+ "[Warn][Input]'auto-complete' property will be deprecated in next major version. please use 'autocomplete' instead."
246
246
  );
247
247
  return true;
248
248
  }
@@ -305,7 +305,7 @@ export default {
305
305
  return merge({}, this.textareaCalcStyle, { resize: this.resize });
306
306
  },
307
307
  inputSize() {
308
- return this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
308
+ return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
309
309
  },
310
310
  inputDisabled() {
311
311
  return this.disabled || (this.esForm || {}).disabled;
@@ -162,7 +162,7 @@ export default {
162
162
  if (precision !== undefined) {
163
163
  if (stepPrecision > precision) {
164
164
  console.warn(
165
- '[Element Warn][InputNumber]precision should not be less than the decimal places of step'
165
+ '[Warn][InputNumber]precision should not be less than the decimal places of step'
166
166
  );
167
167
  }
168
168
  return precision;
@@ -177,7 +177,7 @@ export default {
177
177
  return (this.esFormItem || {}).esFormItemSize;
178
178
  },
179
179
  inputNumberSize() {
180
- return this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
180
+ return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
181
181
  },
182
182
  inputNumberDisabled() {
183
183
  return this.disabled || !!(this.esForm || {}).disabled;
@@ -521,10 +521,10 @@ export default {
521
521
  () => {
522
522
  this.operationCheckCode = results.checkCode;
523
523
  if (this.changePasswordUrl || this.forgetUrl) {
524
- const url = urlJoinParams(
525
- this.changePasswordUrl || this.forgetUrl,
526
- { checkCode: results.checkCode }
527
- );
524
+ const url = urlJoinParams({
525
+ url: this.changePasswordUrl || this.forgetUrl,
526
+ params: { checkCode: results.checkCode }
527
+ });
528
528
  window.open(url);
529
529
  } else {
530
530
  this.showResetPassword = true;
@@ -140,7 +140,7 @@ export default {
140
140
  } else if (this.trigger === 'focus') {
141
141
  if (this.tabindex < 0) {
142
142
  console.warn(
143
- '[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key'
143
+ '[Warn][Popover]a negative taindex means that the element cannot be focused by tab key'
144
144
  );
145
145
  }
146
146
  if (reference.querySelector('input, textarea')) {
@@ -115,7 +115,7 @@ export default {
115
115
  return (this.esFormItem || {}).esFormItemSize;
116
116
  },
117
117
  radioGroupSize() {
118
- return this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
118
+ return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
119
119
  }
120
120
  },
121
121
  watch: {
@@ -231,7 +231,7 @@ export default {
231
231
  },
232
232
  radioSize() {
233
233
  const temRadioSize =
234
- this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
234
+ this.size || this._esFormItemSize || (this.$EOSS || {}).size;
235
235
  return this.isGroup
236
236
  ? this._radioGroup.radioGroupSize || temRadioSize
237
237
  : temRadioSize;
@@ -520,7 +520,7 @@ export default {
520
520
  },
521
521
 
522
522
  selectSize() {
523
- return this.size || this._esFormItemSize || (this.$ELEMENT || {}).size;
523
+ return this.size || this._esFormItemSize || (this.$EOSS || {}).size;
524
524
  },
525
525
 
526
526
  selectDisabled() {
@@ -228,9 +228,7 @@ export default {
228
228
  },
229
229
  setValues() {
230
230
  if (this.min > this.max) {
231
- console.error(
232
- '[Element Error][Slider]min should not be greater than max.'
233
- );
231
+ console.error('[Error][Slider]min should not be greater than max.');
234
232
  return;
235
233
  }
236
234
  const val = this.value;
@@ -333,7 +331,7 @@ export default {
333
331
  if (!this.showStops || this.min > this.max) return [];
334
332
  if (this.step === 0) {
335
333
  process.env.NODE_ENV !== 'production' &&
336
- console.warn('[Element Warn][Slider]step should not be 0.');
334
+ console.warn('[Warn][Slider]step should not be 0.');
337
335
  return [];
338
336
  }
339
337
  const stopCount = (this.max - this.min) / this.step;
@@ -13,7 +13,7 @@ export default {
13
13
  try {
14
14
  this.tableLayout.addObserver(this);
15
15
  } catch (error) {
16
- console.error('[Element Error] Failed to add observer to table layout:', error);
16
+ console.error('[Error] Failed to add observer to table layout:', error);
17
17
  }
18
18
  },
19
19
 
@@ -24,7 +24,7 @@ export default {
24
24
  try {
25
25
  this.tableLayout.removeObserver(this);
26
26
  } catch (error) {
27
- console.error('[Element Error] Failed to remove observer from table layout:', error);
27
+ console.error('[Error] Failed to remove observer from table layout:', error);
28
28
  }
29
29
  },
30
30
 
@@ -82,7 +82,7 @@ export default {
82
82
  this.onColumnsChange(this.tableLayout);
83
83
  this.onScrollableChange(this.tableLayout);
84
84
  } catch (error) {
85
- console.error('[Element Error] Failed to initialize layout:', error);
85
+ console.error('[Error] Failed to initialize layout:', error);
86
86
  }
87
87
  },
88
88
 
@@ -110,7 +110,7 @@ export default {
110
110
  // 更新每列的宽度
111
111
  this._updateColumnWidths(cols, columnsMap);
112
112
  } catch (error) {
113
- console.error('[Element Error] Failed to handle columns change:', error);
113
+ console.error('[Error] Failed to handle columns change:', error);
114
114
  }
115
115
  },
116
116
 
@@ -131,7 +131,7 @@ export default {
131
131
  // 更新gutter表头单元格样式
132
132
  this._updateGutterHeaderCells(layout);
133
133
  } catch (error) {
134
- console.error('[Element Error] Failed to handle scrollable change:', error);
134
+ console.error('[Error] Failed to handle scrollable change:', error);
135
135
  }
136
136
  },
137
137
 
@@ -164,7 +164,7 @@ export default {
164
164
  filter: '.drag-sort-disabled'
165
165
  });
166
166
  } catch (error) {
167
- console.error('[Element Error] Failed to initialize sortable:', error);
167
+ console.error('[Error] Failed to initialize sortable:', error);
168
168
  }
169
169
  });
170
170
  },
@@ -239,7 +239,7 @@ export default {
239
239
  colspan = result.colspan;
240
240
  }
241
241
  } catch (error) {
242
- console.error('[Element Error] spanMethod execution failed:', error);
242
+ console.error('[Error] spanMethod execution failed:', error);
243
243
  }
244
244
  }
245
245
 
@@ -262,7 +262,7 @@ export default {
262
262
  rowIndex
263
263
  });
264
264
  } catch (error) {
265
- console.error('[Element Error] rowStyle function execution failed:', error);
265
+ console.error('[Error] rowStyle function execution failed:', error);
266
266
  return null;
267
267
  }
268
268
  }
@@ -324,7 +324,7 @@ export default {
324
324
  classes.push(customClass);
325
325
  }
326
326
  } catch (error) {
327
- console.error('[Element Error] rowClassName function execution failed:', error);
327
+ console.error('[Error] rowClassName function execution failed:', error);
328
328
  }
329
329
  }
330
330
 
@@ -356,7 +356,7 @@ export default {
356
356
  column
357
357
  });
358
358
  } catch (error) {
359
- console.error('[Element Error] cellStyle function execution failed:', error);
359
+ console.error('[Error] cellStyle function execution failed:', error);
360
360
  return null;
361
361
  }
362
362
  }
@@ -395,7 +395,7 @@ export default {
395
395
  classes.push(customClass);
396
396
  }
397
397
  } catch (error) {
398
- console.error('[Element Error] cellClassName function execution failed:', error);
398
+ console.error('[Error] cellClassName function execution failed:', error);
399
399
  }
400
400
  }
401
401
 
@@ -504,7 +504,7 @@ export default {
504
504
  this.activateTooltip(tooltip);
505
505
  }
506
506
  } catch (error) {
507
- console.error('[Element Error] Tooltip display handling failed:', error);
507
+ console.error('[Error] Tooltip display handling failed:', error);
508
508
  }
509
509
  },
510
510
 
@@ -592,7 +592,7 @@ export default {
592
592
  // 触发行事件
593
593
  table.$emit(`row-${name}`, row, column || null, event);
594
594
  } catch (error) {
595
- console.error(`[Element Error] Failed to handle ${name} event:`, error);
595
+ console.error(`[Error] Failed to handle ${name} event:`, error);
596
596
  }
597
597
  },
598
598
 
@@ -691,7 +691,7 @@ export default {
691
691
  const tr = this.rowRender(row, $index);
692
692
 
693
693
  if (!renderExpanded) {
694
- console.error('[Element Error]renderExpanded is required.');
694
+ console.error('[Error]renderExpanded is required.');
695
695
  return tr;
696
696
  }
697
697
 
@@ -743,7 +743,7 @@ export default {
743
743
 
744
744
  return tmp;
745
745
  } catch (error) {
746
- console.error('[Element Error] Failed to render tree rows:', error);
746
+ console.error('[Error] Failed to render tree rows:', error);
747
747
  return [this.rowRender(row, $index)];
748
748
  }
749
749
  },
@@ -847,7 +847,7 @@ export default {
847
847
  this.newData = data;
848
848
  this.table.updateDragSort(data, evt);
849
849
  } catch (error) {
850
- console.error('[Element Error] Failed to handle drag sort update:', error);
850
+ console.error('[Error] Failed to handle drag sort update:', error);
851
851
  }
852
852
  },
853
853
 
@@ -212,7 +212,7 @@ export default {
212
212
  _setHeaderRender(column) {
213
213
  // renderHeader 属性不推荐使用
214
214
  if (this.renderHeader) {
215
- console.warn('[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
215
+ console.warn('[Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
216
216
  } else if (column.type !== 'selection') {
217
217
  column.renderHeader = (h, scope) => {
218
218
  const renderHeader = this.$scopedSlots.header;
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "element-theme-chalk",
2
+ "name": "eoss-theme-chalk",
3
3
  "version": "2.14.1",
4
- "description": "Element component chalk theme.",
4
+ "description": "Eoss component chalk theme.",
5
5
  "main": "lib/index.css",
6
6
  "style": "lib/index.css",
7
7
  "files": [
@@ -13,18 +13,18 @@
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/ElementUI/theme-chalk.git"
16
+ "url": "git+https://github.com/EossUI/theme-chalk.git"
17
17
  },
18
18
  "keywords": [
19
- "element",
19
+ "eoss",
20
20
  "theme"
21
21
  ],
22
22
  "author": "yi.shyang@ele.me",
23
23
  "license": "MIT",
24
24
  "bugs": {
25
- "url": "https://github.com/ElementUI/theme-chalk/issues"
25
+ "url": "https://github.com/EossUI/theme-chalk/issues"
26
26
  },
27
- "homepage": "https://github.com/ElementUI/theme-chalk#readme",
27
+ "homepage": "https://github.com/EossUI/theme-chalk#readme",
28
28
  "devDependencies": {
29
29
  "gulp": "^3.9.1",
30
30
  "gulp-cssmin": "^0.1.7",
@@ -2,6 +2,7 @@
2
2
  @use 'mixins/_button' as *;
3
3
  @use 'mixins/mixins' as *;
4
4
  @use 'mixins/utils' as *;
5
+ @use 'mixins/function' as func;
5
6
 
6
7
  // 包装组件命名和基础样式
7
8
  @include b(button) {
@@ -49,8 +50,12 @@
49
50
  }
50
51
 
51
52
  &:active {
52
- color: mix($color-black, $color-primary, $button-active-shade-percent);
53
- border-color: mix(
53
+ color: func.custom-mix(
54
+ $color-black,
55
+ $color-primary,
56
+ $button-active-shade-percent
57
+ );
58
+ border-color: func.custom-mix(
54
59
  $color-black,
55
60
  $color-primary,
56
61
  $button-active-shade-percent
@@ -77,19 +82,27 @@
77
82
 
78
83
  &:active {
79
84
  background: $color-white;
80
- border-color: mix(
85
+ border-color: func.custom-mix(
86
+ $color-black,
87
+ $color-primary,
88
+ $button-active-shade-percent
89
+ );
90
+ color: func.custom-mix(
81
91
  $color-black,
82
92
  $color-primary,
83
93
  $button-active-shade-percent
84
94
  );
85
- color: mix($color-black, $color-primary, $button-active-shade-percent);
86
95
  outline: none;
87
96
  }
88
97
  }
89
98
 
90
99
  @include when(active) {
91
- color: mix($color-black, $color-primary, $button-active-shade-percent);
92
- border-color: mix(
100
+ color: func.custom-mix(
101
+ $color-black,
102
+ $color-primary,
103
+ $button-active-shade-percent
104
+ );
105
+ border-color: func.custom-mix(
93
106
  $color-black,
94
107
  $color-primary,
95
108
  $button-active-shade-percent
@@ -240,12 +253,20 @@
240
253
 
241
254
  &:hover,
242
255
  &:focus {
243
- color: mix($color-white, $color-primary, $button-hover-tint-percent);
256
+ color: func.custom-mix(
257
+ $color-white,
258
+ $color-primary,
259
+ $button-hover-tint-percent
260
+ );
244
261
  border-color: transparent;
245
262
  background-color: transparent;
246
263
  }
247
264
  &:active {
248
- color: mix($color-black, $color-primary, $button-active-shade-percent);
265
+ color: func.custom-mix(
266
+ $color-black,
267
+ $color-primary,
268
+ $button-active-shade-percent
269
+ );
249
270
  border-color: transparent;
250
271
  background-color: transparent;
251
272
  }
@@ -17,16 +17,16 @@ $darkColorCount: 4;
17
17
  // 根据颜色和对应的色板位置,计算出对应的色板颜色
18
18
  @function colorPalette($color, $index) {
19
19
  $isLight: if($index <= 6, true, false);
20
- $hsv: rgbToHsv($color);
20
+ $hsv: tinyColor.rgbToHsv($color);
21
21
  //这里将i转换成以主色为中心,两侧的i值逐渐增大
22
22
  $i: if(
23
23
  $isLight,
24
24
  $lightColorCount + 1 - $index,
25
25
  $index - $lightColorCount - 1
26
26
  );
27
- @return hsvTorgb(
28
- getHue(list.nth($hsv, 1), $i, $isLight),
29
- getSaturation(list.nth($hsv, 2), $i, $isLight),
30
- getValue(list.nth($hsv, 3), $i, $isLight)
27
+ @return tinyColor.hsvTorgb(
28
+ bezierEasing.getHue(list.nth($hsv, 1), $i, $isLight),
29
+ bezierEasing.getSaturation(list.nth($hsv, 2), $i, $isLight),
30
+ bezierEasing.getValue(list.nth($hsv, 3), $i, $isLight)
31
31
  );
32
32
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:list';
2
2
  @use '../mixins/color.scss' as *;
3
3
 
4
- /* Element Chalk Variables */
4
+ /* Eoss Chalk Variables */
5
5
 
6
6
  /* Transition
7
7
  -------------------------- */
@@ -1,4 +1,5 @@
1
1
  @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as func;
2
3
  @use 'common/var' as *;
3
4
  @use 'button';
4
5
  @use './popper';
@@ -31,11 +32,15 @@
31
32
  top: $gap;
32
33
  bottom: $gap;
33
34
  left: 0;
34
- background: mix(white, transparent, 50%);
35
+ background: func.custom-mix(white, transparent, 50%);
35
36
  }
36
37
 
37
38
  &.es-button--default::before {
38
- background: mix($button-default-border-color, transparent, 50%);
39
+ background: func.custom-mix(
40
+ $button-default-border-color,
41
+ transparent,
42
+ 50%
43
+ );
39
44
  }
40
45
 
41
46
  &:hover {
@@ -1,4 +1,5 @@
1
1
  @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as func;
2
3
  @use 'common/var' as *;
3
4
 
4
5
  $typeMap: (
@@ -65,7 +66,7 @@ $typeMap: (
65
66
  color: if(
66
67
  $type==primary,
67
68
  $color-primary-light-2,
68
- mix($primaryColor, $color-white, 80%)
69
+ func.custom-mix($primaryColor, $color-white, 80%)
69
70
  );
70
71
  }
71
72
  &:after {
@@ -75,7 +76,7 @@ $typeMap: (
75
76
  color: if(
76
77
  $type==primary,
77
78
  $color-primary-light-3,
78
- mix($primaryColor, $color-white, 50%)
79
+ func.custom-mix($primaryColor, $color-white, 50%)
79
80
  );
80
81
  }
81
82
  @include when(underline) {