@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.
|
@@ -43,11 +43,12 @@ class DropdownItem extends _baseComponent.default {
|
|
|
43
43
|
const {
|
|
44
44
|
showTick: contextShowTick
|
|
45
45
|
} = this.context;
|
|
46
|
+
const realShowTick = contextShowTick !== null && contextShowTick !== void 0 ? contextShowTick : showTick;
|
|
46
47
|
const itemclass = (0, _classnames.default)(className, {
|
|
47
48
|
[`${prefixCls}-item`]: true,
|
|
48
49
|
[`${prefixCls}-item-disabled`]: disabled,
|
|
49
50
|
[`${prefixCls}-item-hover`]: hover,
|
|
50
|
-
[`${prefixCls}-item-withTick`]:
|
|
51
|
+
[`${prefixCls}-item-withTick`]: realShowTick,
|
|
51
52
|
[`${prefixCls}-item-${type}`]: type,
|
|
52
53
|
[`${prefixCls}-item-active`]: active
|
|
53
54
|
});
|
|
@@ -62,11 +63,11 @@ class DropdownItem extends _baseComponent.default {
|
|
|
62
63
|
let tick = null;
|
|
63
64
|
|
|
64
65
|
switch (true) {
|
|
65
|
-
case
|
|
66
|
+
case realShowTick && active:
|
|
66
67
|
tick = /*#__PURE__*/_react.default.createElement(_semiIcons.IconTick, null);
|
|
67
68
|
break;
|
|
68
69
|
|
|
69
|
-
case
|
|
70
|
+
case realShowTick && !active:
|
|
70
71
|
tick = /*#__PURE__*/_react.default.createElement(_semiIcons.IconTick, {
|
|
71
72
|
style: {
|
|
72
73
|
color: 'transparent'
|
|
@@ -26,11 +26,12 @@ class DropdownItem extends BaseComponent {
|
|
|
26
26
|
const {
|
|
27
27
|
showTick: contextShowTick
|
|
28
28
|
} = this.context;
|
|
29
|
+
const realShowTick = contextShowTick !== null && contextShowTick !== void 0 ? contextShowTick : showTick;
|
|
29
30
|
const itemclass = cls(className, {
|
|
30
31
|
[`${prefixCls}-item`]: true,
|
|
31
32
|
[`${prefixCls}-item-disabled`]: disabled,
|
|
32
33
|
[`${prefixCls}-item-hover`]: hover,
|
|
33
|
-
[`${prefixCls}-item-withTick`]:
|
|
34
|
+
[`${prefixCls}-item-withTick`]: realShowTick,
|
|
34
35
|
[`${prefixCls}-item-${type}`]: type,
|
|
35
36
|
[`${prefixCls}-item-active`]: active
|
|
36
37
|
});
|
|
@@ -45,11 +46,11 @@ class DropdownItem extends BaseComponent {
|
|
|
45
46
|
let tick = null;
|
|
46
47
|
|
|
47
48
|
switch (true) {
|
|
48
|
-
case
|
|
49
|
+
case realShowTick && active:
|
|
49
50
|
tick = /*#__PURE__*/React.createElement(IconTick, null);
|
|
50
51
|
break;
|
|
51
52
|
|
|
52
|
-
case
|
|
53
|
+
case realShowTick && !active:
|
|
53
54
|
tick = /*#__PURE__*/React.createElement(IconTick, {
|
|
54
55
|
style: {
|
|
55
56
|
color: 'transparent'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"lib/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@douyinfe/semi-animation": "2.30.
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.30.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.30.
|
|
23
|
-
"@douyinfe/semi-icons": "2.30.
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.30.
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.30.
|
|
20
|
+
"@douyinfe/semi-animation": "2.30.1",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.30.1",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.30.1",
|
|
23
|
+
"@douyinfe/semi-icons": "2.30.1",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.30.1",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.30.1",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "653ba5577ec669cc8b9daf2f9bd29044843df197",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|