@kdcloudjs/kdesign 1.6.18 → 1.6.19

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.
@@ -133,7 +133,7 @@ var InternalSelect = function InternalSelect(props, ref) {
133
133
 
134
134
  useEffect(function () {
135
135
  if (isMultiple) {
136
- multipleRef.current.selectedVal = initValue || [];
136
+ multipleRef.current.selectedVal = Array.isArray(initValue) ? _toConsumableArray(initValue) : initValue || [];
137
137
 
138
138
  if (Array.isArray(initValue)) {
139
139
  if (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) {
@@ -171,7 +171,7 @@ var InternalSelect = function InternalSelect(props, ref) {
171
171
 
172
172
  (0, _react.useEffect)(function () {
173
173
  if (isMultiple) {
174
- multipleRef.current.selectedVal = initValue || [];
174
+ multipleRef.current.selectedVal = Array.isArray(initValue) ? (0, _toConsumableArray2.default)(initValue) : initValue || [];
175
175
 
176
176
  if (Array.isArray(initValue)) {
177
177
  if (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [