@douyinfe/semi-ui 2.30.0 → 2.30.1
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/dist/umd/semi-ui.js
CHANGED
|
@@ -61014,11 +61014,12 @@ class dropdownItem_DropdownItem extends baseComponent_BaseComponent {
|
|
|
61014
61014
|
const {
|
|
61015
61015
|
showTick: contextShowTick
|
|
61016
61016
|
} = this.context;
|
|
61017
|
+
const realShowTick = contextShowTick !== null && contextShowTick !== void 0 ? contextShowTick : showTick;
|
|
61017
61018
|
const itemclass = classnames_default()(className, {
|
|
61018
61019
|
[`${dropdownItem_prefixCls}-item`]: true,
|
|
61019
61020
|
[`${dropdownItem_prefixCls}-item-disabled`]: disabled,
|
|
61020
61021
|
[`${dropdownItem_prefixCls}-item-hover`]: hover,
|
|
61021
|
-
[`${dropdownItem_prefixCls}-item-withTick`]:
|
|
61022
|
+
[`${dropdownItem_prefixCls}-item-withTick`]: realShowTick,
|
|
61022
61023
|
[`${dropdownItem_prefixCls}-item-${type}`]: type,
|
|
61023
61024
|
[`${dropdownItem_prefixCls}-item-active`]: active
|
|
61024
61025
|
});
|
|
@@ -61033,11 +61034,11 @@ class dropdownItem_DropdownItem extends baseComponent_BaseComponent {
|
|
|
61033
61034
|
let tick = null;
|
|
61034
61035
|
|
|
61035
61036
|
switch (true) {
|
|
61036
|
-
case
|
|
61037
|
+
case realShowTick && active:
|
|
61037
61038
|
tick = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconTick, null);
|
|
61038
61039
|
break;
|
|
61039
61040
|
|
|
61040
|
-
case
|
|
61041
|
+
case realShowTick && !active:
|
|
61041
61042
|
tick = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconTick, {
|
|
61042
61043
|
style: {
|
|
61043
61044
|
color: 'transparent'
|