@douyinfe/semi-ui 2.17.0-beta.1 → 2.17.0

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.
@@ -123,7 +123,10 @@ class Checkbox extends _baseComponent.default {
123
123
  }
124
124
 
125
125
  isInGroup() {
126
- return Boolean(this.context && this.context.checkboxGroup);
126
+ // Why do we need to determine whether there is a value in props?
127
+ // If there is no value in the props of the checkbox in the context of the checkboxGroup,
128
+ // it will be considered not to belong to the checkboxGroup。
129
+ return Boolean(this.context && this.context.checkboxGroup && 'value' in this.props);
127
130
  }
128
131
 
129
132
  focus() {
@@ -98,7 +98,10 @@ class Checkbox extends BaseComponent {
98
98
  }
99
99
 
100
100
  isInGroup() {
101
- return Boolean(this.context && this.context.checkboxGroup);
101
+ // Why do we need to determine whether there is a value in props?
102
+ // If there is no value in the props of the checkbox in the context of the checkboxGroup,
103
+ // it will be considered not to belong to the checkboxGroup。
104
+ return Boolean(this.context && this.context.checkboxGroup && 'value' in this.props);
102
105
  }
103
106
 
104
107
  focus() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.17.0-beta.1",
3
+ "version": "2.17.0",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -15,11 +15,11 @@
15
15
  "dependencies": {
16
16
  "@babel/runtime-corejs3": "^7.15.4",
17
17
  "@douyinfe/semi-animation": "2.12.0",
18
- "@douyinfe/semi-animation-react": "2.17.0-beta.1",
19
- "@douyinfe/semi-foundation": "2.17.0-beta.1",
20
- "@douyinfe/semi-icons": "2.17.0-beta.1",
18
+ "@douyinfe/semi-animation-react": "2.17.0",
19
+ "@douyinfe/semi-foundation": "2.17.0",
20
+ "@douyinfe/semi-icons": "2.17.0",
21
21
  "@douyinfe/semi-illustrations": "2.15.0",
22
- "@douyinfe/semi-theme-default": "2.17.0-beta.1",
22
+ "@douyinfe/semi-theme-default": "2.17.0",
23
23
  "async-validator": "^3.5.0",
24
24
  "classnames": "^2.2.6",
25
25
  "copy-text-to-clipboard": "^2.1.1",
@@ -66,13 +66,13 @@
66
66
  ],
67
67
  "author": "",
68
68
  "license": "MIT",
69
- "gitHead": "f2829772791684497142f4bf6839063b9ef4427f",
69
+ "gitHead": "802e57ecc50de44c7ad4b2322bdd864eb9727cc3",
70
70
  "devDependencies": {
71
71
  "@babel/plugin-proposal-decorators": "^7.15.8",
72
72
  "@babel/plugin-transform-runtime": "^7.15.8",
73
73
  "@babel/preset-env": "^7.15.8",
74
74
  "@babel/preset-react": "^7.14.5",
75
- "@douyinfe/semi-scss-compile": "2.17.0-beta.1",
75
+ "@douyinfe/semi-scss-compile": "2.17.0",
76
76
  "@storybook/addon-knobs": "^6.3.1",
77
77
  "@types/lodash": "^4.14.176",
78
78
  "@types/react": ">=16.0.0",