ls-pro-common 3.1.36 → 3.1.37
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.
|
@@ -167,12 +167,13 @@ var AreaPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
167
167
|
className: "ls-area-cascaded-box"
|
|
168
168
|
}, title, /*#__PURE__*/React.createElement("div", {
|
|
169
169
|
className: "ls-area-cascaded-body"
|
|
170
|
-
}, showData.map(function (item) {
|
|
170
|
+
}, showData.map(function (item, index) {
|
|
171
171
|
return /*#__PURE__*/React.createElement("div", {
|
|
172
172
|
className: "ls-area-cascaded-span ".concat(actualData.find(function (o) {
|
|
173
173
|
return o === item.value;
|
|
174
174
|
}) ? ' ls-area-selected' : ''),
|
|
175
175
|
title: item.label,
|
|
176
|
+
key: item.value + index,
|
|
176
177
|
onClick: function onClick(e) {
|
|
177
178
|
var _areaRef$current;
|
|
178
179
|
switch ((item === null || item === void 0 ? void 0 : item.level) || '') {
|
|
@@ -167,12 +167,13 @@ var AreaPicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
167
167
|
className: "ls-area-cascaded-box"
|
|
168
168
|
}, title, /*#__PURE__*/React.createElement("div", {
|
|
169
169
|
className: "ls-area-cascaded-body"
|
|
170
|
-
}, showData.map(function (item) {
|
|
170
|
+
}, showData.map(function (item, index) {
|
|
171
171
|
return /*#__PURE__*/React.createElement("div", {
|
|
172
172
|
className: "ls-area-cascaded-span ".concat(actualData.find(function (o) {
|
|
173
173
|
return o === item.value;
|
|
174
174
|
}) ? ' ls-area-selected' : ''),
|
|
175
175
|
title: item.label,
|
|
176
|
+
key: item.value + index,
|
|
176
177
|
onClick: function onClick(e) {
|
|
177
178
|
var _areaRef$current;
|
|
178
179
|
switch ((item === null || item === void 0 ? void 0 : item.level) || '') {
|