@kdcloudjs/kdesign 1.5.0 → 1.5.3

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.
@@ -428,7 +428,7 @@
428
428
  .kd-select-item-option-disabled {
429
429
  color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
430
430
  cursor: not-allowed;
431
- background-color: var(--kd-c-select-item-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
431
+ background-color: var(--kd-c-select-item-color-background-disabled, #fff);
432
432
  }
433
433
  .kd-select-size-small {
434
434
  min-height: var(--kd-c-select-sizing-height-small, 24px);
@@ -472,7 +472,7 @@
472
472
  }
473
473
  .kd-select-single-disabled {
474
474
  background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
475
- color: var(--kd-c-select-color-text-disabled, #212121);
475
+ color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
476
476
  }
477
477
  .kd-select-single-disabled:hover {
478
478
  cursor: not-allowed;
@@ -484,13 +484,13 @@
484
484
  opacity: 1;
485
485
  }
486
486
  .kd-select-single-text {
487
- color: #666;
487
+ color: var(--kd-c-select-single-color-text, var(--kd-g-color-text-primary, #212121));
488
488
  overflow: hidden;
489
489
  white-space: nowrap;
490
490
  text-overflow: ellipsis;
491
491
  }
492
492
  .kd-select-single-disabled-text {
493
- color: var(--kd-c-select-color-text-disabled, #212121);
493
+ color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
494
494
  }
495
495
  .kd-select .kd-select-selection-item {
496
496
  display: -webkit-inline-box;
@@ -564,7 +564,7 @@
564
564
  .kd-select-multiple-disabled {
565
565
  cursor: not-allowed;
566
566
  background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
567
- color: var(--kd-c-select-color-text-disabled, #212121);
567
+ color: var(--kd-c-select-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
568
568
  }
569
569
  .kd-select-multiple-disabled .kd-select-suffix {
570
570
  color: var(--kd-c-select-arrow-icon-color-text-disabled, #b2b2b2);
@@ -234,7 +234,7 @@
234
234
  opacity: 1;
235
235
  }
236
236
  &-text {
237
- color: #666;
237
+ color: @select-single-color-text;
238
238
  .over();
239
239
  }
240
240
  &-disabled-text {
@@ -5,7 +5,7 @@
5
5
 
6
6
  // color
7
7
  @select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
8
- @select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
8
+ @select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', #fff);
9
9
  @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', #f5f5f5);
10
10
  @select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
11
11
  @select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
@@ -18,8 +18,9 @@
18
18
  @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', #0e5fd8);
19
19
  @select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);
20
20
  @select-color-background-disabled: var(~'@{select-custom-prefix}-color-background-disabled', #f5f5f5);
21
- @select-color-text-disabled: var(~'@{select-custom-prefix}-color-text-disabled', #212121);
21
+ @select-color-text-disabled: var(~'@{select-custom-prefix}-color-text-disabled', @color-disabled);
22
22
  @select-arrow-icon-color-text-disabled: var(~'@{select-custom-prefix}-arrow-icon-color-text-disabled', #b2b2b2);
23
+ @select-single-color-text: var(~'@{select-custom-prefix}-single-color-text', @color-text-primary);
23
24
 
24
25
  // font
25
26
  @select-list-font-size: var(~'@{select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小
@@ -87,7 +87,10 @@ function Table(props) {
87
87
  getTableProps = props.getTableProps,
88
88
  contextMenu = props.contextMenu,
89
89
  rangeSelection = props.rangeSelection,
90
- cssVariables = props.cssVariables;
90
+ cssVariables = props.cssVariables,
91
+ stickyScrollHeight = props.stickyScrollHeight,
92
+ scrollbarWidth = props.scrollbarWidth,
93
+ scrollLoad = props.scrollLoad;
91
94
 
92
95
  var _useContext = (0, _react.useContext)(_ConfigContext.default),
93
96
  getPrefixCls = _useContext.getPrefixCls,
@@ -166,7 +169,10 @@ function Table(props) {
166
169
  hasHeader: hasHeader,
167
170
  useOuterBorder: useOuterBorder,
168
171
  defaultColumnWidth: defaultColumnWidth,
169
- cssVariables: cssVariables
172
+ cssVariables: cssVariables,
173
+ stickyScrollHeight: stickyScrollHeight,
174
+ scrollbarWidth: scrollbarWidth,
175
+ scrollLoad: scrollLoad
170
176
  }));
171
177
  }
172
178
 
@@ -44,7 +44,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
44
44
  return t;
45
45
  };
46
46
 
47
- var DRAG_OFFSET = 0.4;
47
+ var DRAG_OFFSET = 0.3;
48
48
  /**
49
49
  * 打平所有数组,并添加pos位置信息,
50
50
  * 方便根据expandKeys等计算节点的expand,checkedKeys计算节点checked状态
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.5.0",
3
+ "version": "1.5.3",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [
@@ -76,7 +76,7 @@
76
76
  "@babel/runtime": "^7.10.4",
77
77
  "@babel/runtime-corejs3": "^7.11.2",
78
78
  "@babel/standalone": "^7.14.3",
79
- "@kdcloudjs/table": "^1.1.1",
79
+ "@kdcloudjs/table": "^1.1.2",
80
80
  "@popperjs/core": "^2.5.4",
81
81
  "async-validator": "^3.5.1",
82
82
  "axios": "^0.21.1",