acud 1.0.2 → 1.0.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.
- package/CHANGELOG.md +3 -2
- package/dist/acud.css +85 -31
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +19712 -31343
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +8 -86
- package/dist/acud.min.js.map +1 -1
- package/es/button/style/index.css +3 -0
- package/es/button/style/mixin.less +1 -0
- package/es/card/style/index.css +1 -0
- package/es/config-provider/renderEmpty.js +8 -0
- package/es/dialog-box/style/index.css +1 -0
- package/es/empty/style/index.css +1 -1
- package/es/empty/style/index.less +1 -1
- package/es/form/style/index.css +2 -1
- package/es/input-number/style/index.css +7 -0
- package/es/menu/MenuHead.js +2 -1
- package/es/menu/style/index.css +29 -22
- package/es/menu/style/index.less +27 -19
- package/es/menu/style/sider.less +1 -0
- package/es/modal/style/index.css +1 -0
- package/es/pagination/style/index.css +5 -0
- package/es/popover/style/index.css +1 -0
- package/es/rate/style/index.css +1 -0
- package/es/select/src/OptionList.d.ts +1 -0
- package/es/select/src/OptionList.js +17 -8
- package/es/select/src/generate.d.ts +1 -0
- package/es/select/src/generate.js +4 -2
- package/es/select/style/index.css +20 -6
- package/es/select/style/index.less +16 -9
- package/es/select/style/multiple.less +4 -1
- package/es/slider/style/index.css +1 -0
- package/es/style/themes/default/components/menu.less +4 -4
- package/es/switch/style/index.css +1 -0
- package/es/table/hooks/useFilter/FilterDropdown.js +4 -6
- package/es/tabs/style/index.css +1 -0
- package/es/tag/style/index.css +1 -0
- package/es/timeline/style/index.css +2 -0
- package/es/tree/style/index.css +3 -0
- package/es/tree/tree.d.ts +1 -4
- package/es/tree-select/style/index.css +3 -0
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/mixin.less +1 -0
- package/lib/card/style/index.css +1 -0
- package/lib/config-provider/renderEmpty.js +9 -0
- package/lib/dialog-box/style/index.css +1 -0
- package/lib/empty/style/index.css +1 -1
- package/lib/empty/style/index.less +1 -1
- package/lib/form/style/index.css +2 -1
- package/lib/input-number/style/index.css +7 -0
- package/lib/menu/MenuHead.js +2 -1
- package/lib/menu/style/index.css +29 -22
- package/lib/menu/style/index.less +27 -19
- package/lib/menu/style/sider.less +1 -0
- package/lib/modal/style/index.css +1 -0
- package/lib/pagination/style/index.css +5 -0
- package/lib/popover/style/index.css +1 -0
- package/lib/rate/style/index.css +1 -0
- package/lib/select/src/OptionList.d.ts +1 -0
- package/lib/select/src/OptionList.js +17 -8
- package/lib/select/src/generate.d.ts +1 -0
- package/lib/select/src/generate.js +4 -2
- package/lib/select/style/index.css +20 -6
- package/lib/select/style/index.less +16 -9
- package/lib/select/style/multiple.less +4 -1
- package/lib/slider/style/index.css +1 -0
- package/lib/style/themes/default/components/menu.less +4 -4
- package/lib/switch/style/index.css +1 -0
- package/lib/table/hooks/useFilter/FilterDropdown.js +4 -6
- package/lib/tabs/style/index.css +1 -0
- package/lib/tag/style/index.css +1 -0
- package/lib/timeline/style/index.css +2 -0
- package/lib/tree/style/index.css +3 -0
- package/lib/tree/tree.d.ts +1 -4
- package/lib/tree-select/style/index.css +3 -0
- package/package.json +2 -3
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
-webkit-user-select: none;
|
|
69
69
|
-moz-user-select: none;
|
|
70
|
+
-ms-user-select: none;
|
|
70
71
|
user-select: none;
|
|
71
72
|
box-sizing: border-box;
|
|
72
73
|
font-weight: 400;
|
|
@@ -250,6 +251,7 @@
|
|
|
250
251
|
cursor: pointer;
|
|
251
252
|
-webkit-user-select: none;
|
|
252
253
|
-moz-user-select: none;
|
|
254
|
+
-ms-user-select: none;
|
|
253
255
|
user-select: none;
|
|
254
256
|
}
|
|
255
257
|
.acud-pagination-prev.acud-pagination-disabled button,
|
|
@@ -635,6 +637,7 @@
|
|
|
635
637
|
}
|
|
636
638
|
.acud-pagination-options-quick-jumper button-has-icon > .acudicon {
|
|
637
639
|
height: 16px;
|
|
640
|
+
font-size: 16px;
|
|
638
641
|
}
|
|
639
642
|
.acud-pagination-options-quick-jumper button-lg {
|
|
640
643
|
height: 40px;
|
|
@@ -655,6 +658,7 @@
|
|
|
655
658
|
}
|
|
656
659
|
.acud-pagination-options-quick-jumper button-lg-has-icon > .acudicon {
|
|
657
660
|
height: 16px;
|
|
661
|
+
font-size: 16px;
|
|
658
662
|
}
|
|
659
663
|
.acud-pagination-options-quick-jumper button-sm {
|
|
660
664
|
height: 24px;
|
|
@@ -675,6 +679,7 @@
|
|
|
675
679
|
}
|
|
676
680
|
.acud-pagination-options-quick-jumper button-sm-has-icon > .acudicon {
|
|
677
681
|
height: 16px;
|
|
682
|
+
font-size: 16px;
|
|
678
683
|
}
|
|
679
684
|
.acud-pagination-options-quick-jumper button,
|
|
680
685
|
.acud-pagination-options-quick-jumper button:active,
|
package/lib/rate/style/index.css
CHANGED
|
@@ -20,6 +20,7 @@ export interface OptionListProps<OptionsType extends object[]> {
|
|
|
20
20
|
virtual?: boolean;
|
|
21
21
|
keepExpand?: boolean;
|
|
22
22
|
defaultExpandGroupKey?: string[] | string | number[] | number | boolean;
|
|
23
|
+
showTitle?: boolean;
|
|
23
24
|
renderEmpty?: (componentName?: string, des?: string | undefined) => React.ReactNode;
|
|
24
25
|
onSelect: (value: RawValueType, option: {
|
|
25
26
|
selected: boolean;
|
|
@@ -91,6 +91,8 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
91
91
|
keepExpand = _ref$keepExpand === void 0 ? false : _ref$keepExpand,
|
|
92
92
|
_ref$defaultExpandGro = _ref.defaultExpandGroupKey,
|
|
93
93
|
defaultExpandGroupKey = _ref$defaultExpandGro === void 0 ? false : _ref$defaultExpandGro,
|
|
94
|
+
_ref$showTitle = _ref.showTitle,
|
|
95
|
+
showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
|
|
94
96
|
renderEmpty = _ref.renderEmpty,
|
|
95
97
|
onSelect = _ref.onSelect,
|
|
96
98
|
onToggleOpen = _ref.onToggleOpen,
|
|
@@ -452,10 +454,14 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
452
454
|
var mergedLabel = childrenAsData ? children : label; // const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
453
455
|
|
|
454
456
|
var content = mergedLabel || value;
|
|
455
|
-
var optionTitle
|
|
457
|
+
var optionTitle;
|
|
456
458
|
|
|
457
|
-
if (
|
|
458
|
-
optionTitle =
|
|
459
|
+
if (showTitle) {
|
|
460
|
+
optionTitle = typeof content === 'string' || typeof content === 'number' ? content.toString() : undefined;
|
|
461
|
+
|
|
462
|
+
if (title !== undefined) {
|
|
463
|
+
optionTitle = title;
|
|
464
|
+
}
|
|
459
465
|
}
|
|
460
466
|
|
|
461
467
|
var fContent = (typeof content === 'string' || typeof content === 'number') && searchValue ? formatContent(content, searchValue, prefixCls) : content;
|
|
@@ -499,6 +505,11 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
499
505
|
}, mergedNotFound);
|
|
500
506
|
}
|
|
501
507
|
|
|
508
|
+
var disabledVirtual = React.useMemo(function () {
|
|
509
|
+
return !virtual || (mode === 'multiple' || mode !== 'multiple' && !keepExpand) && memoFlattenOptions.some(function (option) {
|
|
510
|
+
return option.group;
|
|
511
|
+
});
|
|
512
|
+
}, [virtual, mode, keepExpand, memoFlattenOptions]);
|
|
502
513
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
503
514
|
role: "listbox",
|
|
504
515
|
id: "".concat(id, "_list"),
|
|
@@ -508,7 +519,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
508
519
|
overflow: 'hidden'
|
|
509
520
|
}
|
|
510
521
|
}, renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), multiple && /*#__PURE__*/React.createElement("div", {
|
|
511
|
-
className: (0, _classnames["default"])("".concat(itemPrefixCls, "-checkall")
|
|
522
|
+
className: (0, _classnames["default"])("".concat(itemPrefixCls, "-checkall")),
|
|
512
523
|
onClick: handleCheckAll
|
|
513
524
|
}, /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
514
525
|
indeterminate: indeterminate,
|
|
@@ -524,7 +535,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
524
535
|
fullHeight: false,
|
|
525
536
|
onMouseDown: onListMouseDown,
|
|
526
537
|
onScroll: onScroll,
|
|
527
|
-
virtual:
|
|
538
|
+
virtual: !disabledVirtual,
|
|
528
539
|
onMouseEnter: onMouseEnter
|
|
529
540
|
}, function (_ref3, itemIndex) {
|
|
530
541
|
var group = _ref3.group,
|
|
@@ -535,10 +546,8 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
535
546
|
key = data.key; // Group
|
|
536
547
|
|
|
537
548
|
if (group) {
|
|
538
|
-
var _classNames3;
|
|
539
|
-
|
|
540
549
|
return /*#__PURE__*/React.createElement("div", {
|
|
541
|
-
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group"), (
|
|
550
|
+
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group"), (0, _defineProperty2["default"])({}, "".concat(itemPrefixCls, "-group-keep-expand"), isKeepExpand)),
|
|
542
551
|
onClick: function onClick() {
|
|
543
552
|
return handleCheckGroup(key);
|
|
544
553
|
}
|
|
@@ -47,6 +47,7 @@ export interface SelectProps<OptionsType extends object[], ValueType> extends Re
|
|
|
47
47
|
allowClear?: boolean;
|
|
48
48
|
clearIcon?: React.ReactNode;
|
|
49
49
|
showArrow?: boolean;
|
|
50
|
+
showTitle?: boolean;
|
|
50
51
|
inputIcon?: RenderNode;
|
|
51
52
|
removeIcon?: React.ReactNode;
|
|
52
53
|
menuItemSelectedIcon?: RenderNode;
|
|
@@ -149,6 +149,7 @@ function generateSelector(config) {
|
|
|
149
149
|
dropdownAlign = props.dropdownAlign,
|
|
150
150
|
_props$showAction = props.showAction,
|
|
151
151
|
showAction = _props$showAction === void 0 ? [] : _props$showAction,
|
|
152
|
+
showTitle = props.showTitle,
|
|
152
153
|
direction = props.direction,
|
|
153
154
|
tokenSeparators = props.tokenSeparators,
|
|
154
155
|
groupSelectorRender = props.groupSelectorRender,
|
|
@@ -169,7 +170,7 @@ function generateSelector(config) {
|
|
|
169
170
|
onClear = props.onClear,
|
|
170
171
|
_props$internalProps = props.internalProps,
|
|
171
172
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
172
|
-
restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "groupSelectorRender", "tagRender", "renderEmpty", "keepExpand", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
|
|
173
|
+
restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "showTitle", "direction", "tokenSeparators", "groupSelectorRender", "tagRender", "renderEmpty", "keepExpand", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
|
|
173
174
|
|
|
174
175
|
var useInternalProps = internalProps.mark === _generator.INTERNAL_PROPS_MARK;
|
|
175
176
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -826,7 +827,8 @@ function generateSelector(config) {
|
|
|
826
827
|
virtual: virtual !== false && dropdownMatchSelectWidth !== false,
|
|
827
828
|
onMouseEnter: onPopupMouseEnter,
|
|
828
829
|
triggerChange: triggerChange,
|
|
829
|
-
setInnerOpen: setInnerOpen
|
|
830
|
+
setInnerOpen: setInnerOpen,
|
|
831
|
+
showTitle: showTitle
|
|
830
832
|
}); // ============================= Clear ==============================
|
|
831
833
|
|
|
832
834
|
var clearNode;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
-webkit-user-select: none;
|
|
40
40
|
-moz-user-select: none;
|
|
41
|
+
-ms-user-select: none;
|
|
41
42
|
user-select: none;
|
|
42
43
|
color: #151B26;
|
|
43
44
|
}
|
|
@@ -190,6 +191,7 @@
|
|
|
190
191
|
transition: font-size 0.3s, line-height 0.3s, height 0.3s;
|
|
191
192
|
-webkit-user-select: none;
|
|
192
193
|
-moz-user-select: none;
|
|
194
|
+
-ms-user-select: none;
|
|
193
195
|
user-select: none;
|
|
194
196
|
-webkit-margin-end: 5px;
|
|
195
197
|
margin-inline-end: 5px;
|
|
@@ -346,7 +348,7 @@
|
|
|
346
348
|
line-height: 22px;
|
|
347
349
|
cursor: pointer;
|
|
348
350
|
}
|
|
349
|
-
.acud-select-dropdown-multiple .acud-select-item-checkall
|
|
351
|
+
.acud-select-dropdown-multiple .acud-select-item-checkall:hover {
|
|
350
352
|
background-color: #E6F0FF;
|
|
351
353
|
}
|
|
352
354
|
.acud-select-dropdown-multiple .acud-select-item-option-content {
|
|
@@ -355,6 +357,9 @@
|
|
|
355
357
|
.acud-select-dropdown-multiple .acud-select-item-option-grouped {
|
|
356
358
|
padding-left: 48px;
|
|
357
359
|
}
|
|
360
|
+
.acud-select-dropdown-multiple .acud-select-item-group {
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
}
|
|
358
363
|
/* Reset search input style */
|
|
359
364
|
.acud-select {
|
|
360
365
|
margin: 0;
|
|
@@ -649,7 +654,7 @@
|
|
|
649
654
|
.acud-select-item-group {
|
|
650
655
|
color: #151B26;
|
|
651
656
|
font-size: 12px;
|
|
652
|
-
cursor:
|
|
657
|
+
cursor: default;
|
|
653
658
|
}
|
|
654
659
|
.acud-select-item-group:hover {
|
|
655
660
|
color: #151B26;
|
|
@@ -667,6 +672,7 @@
|
|
|
667
672
|
.acud-select-item-group-arrow {
|
|
668
673
|
margin-right: 8px;
|
|
669
674
|
display: flex;
|
|
675
|
+
cursor: pointer;
|
|
670
676
|
}
|
|
671
677
|
.acud-select-item-group-arrow .acudicon {
|
|
672
678
|
display: flex;
|
|
@@ -676,9 +682,14 @@
|
|
|
676
682
|
margin-right: 8px;
|
|
677
683
|
}
|
|
678
684
|
.acud-select-item-group-keep-expand {
|
|
685
|
+
cursor: default;
|
|
679
686
|
color: #B8BABF;
|
|
680
687
|
}
|
|
681
|
-
.acud-select-item-group-
|
|
688
|
+
.acud-select-item-group-keep-expand:hover {
|
|
689
|
+
color: #B8BABF;
|
|
690
|
+
background-color: #E6F0FF;
|
|
691
|
+
}
|
|
692
|
+
.acud-select-item-group:hover {
|
|
682
693
|
background-color: #E6F0FF;
|
|
683
694
|
}
|
|
684
695
|
.acud-select-item-option {
|
|
@@ -693,9 +704,6 @@
|
|
|
693
704
|
.acud-select-item-option-state {
|
|
694
705
|
flex: none;
|
|
695
706
|
}
|
|
696
|
-
.acud-select-item-option-active:not(.acud-select-item-option-disabled) {
|
|
697
|
-
background-color: #E6F0FF;
|
|
698
|
-
}
|
|
699
707
|
.acud-select-item-option-selected:not(.acud-select-item-option-disabled) {
|
|
700
708
|
color: #2468F2;
|
|
701
709
|
background-color: #FFFFFF;
|
|
@@ -704,6 +712,9 @@
|
|
|
704
712
|
.acud-select-item-option-selected:not(.acud-select-item-option-disabled) .acud-select-item-option-state {
|
|
705
713
|
color: #151B26;
|
|
706
714
|
}
|
|
715
|
+
.acud-select-item-option-active:not(.acud-select-item-option-disabled) {
|
|
716
|
+
background-color: #E6F0FF;
|
|
717
|
+
}
|
|
707
718
|
.acud-select-item-option-disabled {
|
|
708
719
|
color: #B8BABF;
|
|
709
720
|
cursor: not-allowed;
|
|
@@ -725,3 +736,6 @@
|
|
|
725
736
|
.acud-select-search-highlight {
|
|
726
737
|
color: #2468F2;
|
|
727
738
|
}
|
|
739
|
+
.acud-select-dropdown-multiple .acud-select-item-option-selected:not(.acud-select-item-option-disabled) {
|
|
740
|
+
color: inherit;
|
|
741
|
+
}
|
|
@@ -275,10 +275,11 @@
|
|
|
275
275
|
&-group {
|
|
276
276
|
.basic-tp-config(@select-item-group-tp);
|
|
277
277
|
font-size: @T2;
|
|
278
|
-
cursor:
|
|
278
|
+
cursor: default;
|
|
279
279
|
&-arrow {
|
|
280
280
|
margin-right: 2 * @P;
|
|
281
281
|
display: flex;
|
|
282
|
+
cursor: pointer;
|
|
282
283
|
.@{acud-prefix}icon {
|
|
283
284
|
display: flex;
|
|
284
285
|
color: @G5;
|
|
@@ -288,9 +289,14 @@
|
|
|
288
289
|
margin-right: 2 * @P;
|
|
289
290
|
}
|
|
290
291
|
&-keep-expand {
|
|
292
|
+
cursor: default;
|
|
291
293
|
color: @G6;
|
|
294
|
+
&:hover {
|
|
295
|
+
color: @G6;
|
|
296
|
+
background-color: @B1;
|
|
297
|
+
}
|
|
292
298
|
}
|
|
293
|
-
|
|
299
|
+
&:hover {
|
|
294
300
|
background-color: ~'@{@{select-dropdown-default-p}-hover-background-color}';
|
|
295
301
|
}
|
|
296
302
|
}
|
|
@@ -310,14 +316,7 @@
|
|
|
310
316
|
flex: none;
|
|
311
317
|
}
|
|
312
318
|
|
|
313
|
-
&-active:not(&-disabled) {
|
|
314
|
-
background-color: ~'@{@{select-dropdown-default-p}-hover-background-color}';
|
|
315
|
-
}
|
|
316
|
-
|
|
317
319
|
&-selected:not(&-disabled) {
|
|
318
|
-
// color: @select-item-selected-color;
|
|
319
|
-
// font-weight: @select-item-selected-font-weight;
|
|
320
|
-
// background-color: @select-item-selected-bg;
|
|
321
320
|
color: ~'@{@{select-dropdown-default-tp}-click-color}';
|
|
322
321
|
background-color: ~'@{@{select-dropdown-default-p}-default-background-color}';
|
|
323
322
|
border-color: ~'@{@{select-dropdown-default-p}-click-border-color}';
|
|
@@ -327,6 +326,10 @@
|
|
|
327
326
|
}
|
|
328
327
|
}
|
|
329
328
|
|
|
329
|
+
&-active:not(&-disabled) {
|
|
330
|
+
background-color: ~'@{@{select-dropdown-default-p}-hover-background-color}';
|
|
331
|
+
}
|
|
332
|
+
|
|
330
333
|
&-disabled {
|
|
331
334
|
color: ~'@{@{select-dropdown-default-tp}-disabled-color}';
|
|
332
335
|
cursor: not-allowed;
|
|
@@ -359,3 +362,7 @@
|
|
|
359
362
|
color: ~'@{@{select-dropdown-default-tp}-click-color}';;
|
|
360
363
|
}
|
|
361
364
|
}
|
|
365
|
+
|
|
366
|
+
.@{select-prefix-cls}-dropdown-multiple .@{select-prefix-cls}-item-option-selected:not(.acud-select-item-option-disabled) {
|
|
367
|
+
color: inherit;
|
|
368
|
+
}
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
display: flex;
|
|
252
252
|
line-height: 5.5 * @P;
|
|
253
253
|
cursor: pointer;
|
|
254
|
-
|
|
254
|
+
&:hover {
|
|
255
255
|
background-color: ~'@{@{select-dropdown-default-p}-hover-background-color}';
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -262,4 +262,7 @@
|
|
|
262
262
|
.@{select-prefix-cls}-item-option-grouped {
|
|
263
263
|
padding-left: 12 * @P;
|
|
264
264
|
}
|
|
265
|
+
.@{select-prefix-cls}-item-group {
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
}
|
|
265
268
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@menu-item-active-color: @B6;
|
|
34
34
|
|
|
35
35
|
// horizontal
|
|
36
|
-
@menu-horizontal-line-height:
|
|
36
|
+
@menu-horizontal-line-height: 14 * @P;
|
|
37
37
|
@menu-horizontal-item-margin: 0 4 * @P;
|
|
38
38
|
|
|
39
39
|
// horizontal - with icon
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
@menu-horizontal-withicon-margin-right: 6 * @P;
|
|
43
43
|
|
|
44
44
|
// horizontal - global
|
|
45
|
-
@headermenu-height:
|
|
45
|
+
@headermenu-height: 14 * @P;
|
|
46
46
|
@headermenu-background: @G11;
|
|
47
47
|
@headermenu-zindex: @zindex-range-3;
|
|
48
|
-
@headermenu-logo-height:
|
|
48
|
+
@headermenu-logo-height: 14 * @P;
|
|
49
49
|
@headermenu-logo-margin-right: 4 * @P;
|
|
50
50
|
@headermenu-iconlist-height: 4 * @P;
|
|
51
51
|
@headermenu-iconlist-margin-right: 6 * @P;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@headermenu-iconlist-tp: tp29;
|
|
54
54
|
@headermenu-title-margin-left: 2 * @P;
|
|
55
55
|
@headermenu-title-color: @G5;
|
|
56
|
-
@headermenu-title-line-height:
|
|
56
|
+
@headermenu-title-line-height: 14 * @P;
|
|
57
57
|
@headermenu-item-margin: 0 3 * @P;
|
|
58
58
|
|
|
59
59
|
// inline
|
|
@@ -53,9 +53,8 @@ function searchValueMatched(searchValue, text) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return false;
|
|
56
|
-
}
|
|
56
|
+
} // let preKeys: React.Key[];
|
|
57
57
|
|
|
58
|
-
var preKeys;
|
|
59
58
|
|
|
60
59
|
function FilterDropdown(props) {
|
|
61
60
|
var _a;
|
|
@@ -92,8 +91,7 @@ function FilterDropdown(props) {
|
|
|
92
91
|
|
|
93
92
|
var mergedVisible = typeof filterDropdownVisible === 'boolean' ? filterDropdownVisible : visible; // ===================== Select Keys =====================
|
|
94
93
|
|
|
95
|
-
var propFilteredKeys = filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys;
|
|
96
|
-
preKeys = propFilteredKeys;
|
|
94
|
+
var propFilteredKeys = filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys; // preKeys = propFilteredKeys;
|
|
97
95
|
|
|
98
96
|
var _useSyncState = (0, _useSyncState3["default"])(propFilteredKeys || []),
|
|
99
97
|
_useSyncState2 = (0, _slicedToArray2["default"])(_useSyncState, 2),
|
|
@@ -182,8 +180,8 @@ function FilterDropdown(props) {
|
|
|
182
180
|
|
|
183
181
|
var onReset = function onReset() {
|
|
184
182
|
setSearchValue('');
|
|
185
|
-
setFilteredKeysSync(
|
|
186
|
-
|
|
183
|
+
setFilteredKeysSync([]); // internalTriggerFilter([]);
|
|
184
|
+
// triggerVisible(false);
|
|
187
185
|
};
|
|
188
186
|
|
|
189
187
|
var doFilter = function doFilter() {
|
package/lib/tabs/style/index.css
CHANGED
package/lib/tag/style/index.css
CHANGED
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
cursor: pointer;
|
|
167
167
|
-webkit-user-select: none;
|
|
168
168
|
-moz-user-select: none;
|
|
169
|
+
-ms-user-select: none;
|
|
169
170
|
user-select: none;
|
|
170
171
|
}
|
|
171
172
|
.common-content-link {
|
|
@@ -582,6 +583,7 @@
|
|
|
582
583
|
cursor: pointer;
|
|
583
584
|
-webkit-user-select: none;
|
|
584
585
|
-moz-user-select: none;
|
|
586
|
+
-ms-user-select: none;
|
|
585
587
|
user-select: none;
|
|
586
588
|
}
|
|
587
589
|
.acud-timeline-item-content-link {
|
package/lib/tree/style/index.css
CHANGED
|
@@ -277,6 +277,7 @@
|
|
|
277
277
|
white-space: nowrap;
|
|
278
278
|
-webkit-user-select: none;
|
|
279
279
|
-moz-user-select: none;
|
|
280
|
+
-ms-user-select: none;
|
|
280
281
|
user-select: none;
|
|
281
282
|
}
|
|
282
283
|
.acud-tree-indent-unit {
|
|
@@ -294,6 +295,7 @@
|
|
|
294
295
|
cursor: pointer;
|
|
295
296
|
-webkit-user-select: none;
|
|
296
297
|
-moz-user-select: none;
|
|
298
|
+
-ms-user-select: none;
|
|
297
299
|
user-select: none;
|
|
298
300
|
}
|
|
299
301
|
.acud-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -435,6 +437,7 @@
|
|
|
435
437
|
line-height: 24px;
|
|
436
438
|
-webkit-user-select: none;
|
|
437
439
|
-moz-user-select: none;
|
|
440
|
+
-ms-user-select: none;
|
|
438
441
|
user-select: none;
|
|
439
442
|
}
|
|
440
443
|
.acud-tree-node-content-wrapper .acud-tree-drop-indicator {
|
package/lib/tree/tree.d.ts
CHANGED
|
@@ -4,10 +4,7 @@ import type { EventDataNode as RcEventDataNode, DataNode as RcDataNode, Key } fr
|
|
|
4
4
|
export interface DataNode extends RcDataNode {
|
|
5
5
|
isEditable?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare type EventDataNode = RcEventDataNode<
|
|
8
|
-
children?: any;
|
|
9
|
-
}>;
|
|
10
|
-
export { EventDataNode };
|
|
7
|
+
export declare type EventDataNode = RcEventDataNode<DataNode>;
|
|
11
8
|
export interface TreeProps extends Partial<RcTreeProps> {
|
|
12
9
|
treeData?: DataNode[];
|
|
13
10
|
className?: string;
|
|
@@ -292,6 +292,7 @@
|
|
|
292
292
|
white-space: nowrap;
|
|
293
293
|
-webkit-user-select: none;
|
|
294
294
|
-moz-user-select: none;
|
|
295
|
+
-ms-user-select: none;
|
|
295
296
|
user-select: none;
|
|
296
297
|
}
|
|
297
298
|
.acud-select-tree-indent-unit {
|
|
@@ -309,6 +310,7 @@
|
|
|
309
310
|
cursor: pointer;
|
|
310
311
|
-webkit-user-select: none;
|
|
311
312
|
-moz-user-select: none;
|
|
313
|
+
-ms-user-select: none;
|
|
312
314
|
user-select: none;
|
|
313
315
|
}
|
|
314
316
|
.acud-select-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -450,6 +452,7 @@
|
|
|
450
452
|
line-height: 24px;
|
|
451
453
|
-webkit-user-select: none;
|
|
452
454
|
-moz-user-select: none;
|
|
455
|
+
-ms-user-select: none;
|
|
453
456
|
user-select: none;
|
|
454
457
|
}
|
|
455
458
|
.acud-select-tree-node-content-wrapper .acud-tree-drop-indicator {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "acud",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "acg react 组件库",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"lint:style": "stylelint 'components/**/*.less' --syntax less",
|
|
22
22
|
"lint-fix:script": "npm run lint:script -- --fix",
|
|
23
23
|
"lint-fix:style": "npm run lint:style -- --fix",
|
|
24
|
-
"prepare": "curl -s http://icode.baidu.com/tools/hooks/commit-msg > .husky/commit-msg && echo '\nsh \".husky/commit-msg.sh\"' >> .husky/commit-msg && chmod u+x .husky/commit-msg && husky install",
|
|
25
24
|
"prepublishOnly": "npm run build",
|
|
26
25
|
"pub": "node ./scripts/publish.js"
|
|
27
26
|
},
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
"rc-tabs": "^11.9.1",
|
|
48
47
|
"rc-textarea": "^0.3.4",
|
|
49
48
|
"rc-tooltip": "^5.1.1",
|
|
50
|
-
"rc-tree": "^5.
|
|
49
|
+
"rc-tree": "^5.6.5",
|
|
51
50
|
"rc-tree-select": "^5.4.0",
|
|
52
51
|
"rc-trigger": "^5.2.10",
|
|
53
52
|
"rc-util": "5.19.2",
|