@bit-sun/business-component 2.0.41-alpha.2 → 2.0.41-alpha.3
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/index.esm.js
CHANGED
|
@@ -4082,8 +4082,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4082
4082
|
|
|
4083
4083
|
if (!checkQuantityAccuracy(value, Number(unitAccuracy))) {
|
|
4084
4084
|
record[item.dataIndex] = precisionQuantity(value, Number(unitAccuracy));
|
|
4085
|
-
var newPopValue = popvalue.map(function (i) {
|
|
4086
|
-
if (
|
|
4085
|
+
var newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4086
|
+
if (innerIndex == index) {
|
|
4087
4087
|
i[item.dataIndex] = record[item.dataIndex];
|
|
4088
4088
|
}
|
|
4089
4089
|
|
|
@@ -4104,6 +4104,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4104
4104
|
}, precisionObj), {}, {
|
|
4105
4105
|
onChange: function onChange(value) {
|
|
4106
4106
|
record[item.dataIndex] = value;
|
|
4107
|
+
var newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4108
|
+
if (innerIndex == index) {
|
|
4109
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
return i;
|
|
4113
|
+
});
|
|
4114
|
+
setPopValue(newPopValue);
|
|
4107
4115
|
},
|
|
4108
4116
|
// onFocus={(e)=> {
|
|
4109
4117
|
// let dom1 = e.currentTarget;
|
package/dist/index.js
CHANGED
|
@@ -4096,8 +4096,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
4096
4096
|
|
|
4097
4097
|
if (!checkQuantityAccuracy(value, Number(unitAccuracy))) {
|
|
4098
4098
|
record[item.dataIndex] = precisionQuantity(value, Number(unitAccuracy));
|
|
4099
|
-
var newPopValue = popvalue.map(function (i) {
|
|
4100
|
-
if (
|
|
4099
|
+
var newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4100
|
+
if (innerIndex == index) {
|
|
4101
4101
|
i[item.dataIndex] = record[item.dataIndex];
|
|
4102
4102
|
}
|
|
4103
4103
|
|
|
@@ -4118,6 +4118,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
4118
4118
|
}, precisionObj), {}, {
|
|
4119
4119
|
onChange: function onChange(value) {
|
|
4120
4120
|
record[item.dataIndex] = value;
|
|
4121
|
+
var newPopValue = popvalue.map(function (i, innerIndex) {
|
|
4122
|
+
if (innerIndex == index) {
|
|
4123
|
+
i[item.dataIndex] = record[item.dataIndex];
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
return i;
|
|
4127
|
+
});
|
|
4128
|
+
setPopValue(newPopValue);
|
|
4121
4129
|
},
|
|
4122
4130
|
// onFocus={(e)=> {
|
|
4123
4131
|
// let dom1 = e.currentTarget;
|
package/package.json
CHANGED
|
@@ -726,8 +726,8 @@ const AddSelect = (props: any) => {
|
|
|
726
726
|
const { target: { value } } = e;
|
|
727
727
|
if(!checkQuantityAccuracy(value,Number(unitAccuracy))) {
|
|
728
728
|
record[item.dataIndex] = precisionQuantity(value,Number(unitAccuracy))
|
|
729
|
-
const newPopValue = popvalue.map((i: any) => {
|
|
730
|
-
if(
|
|
729
|
+
const newPopValue = popvalue.map((i: any, innerIndex: number) => {
|
|
730
|
+
if(innerIndex == index) {
|
|
731
731
|
i[item.dataIndex] = record[item.dataIndex]
|
|
732
732
|
}
|
|
733
733
|
return i
|
|
@@ -747,6 +747,13 @@ const AddSelect = (props: any) => {
|
|
|
747
747
|
{...precisionObj}
|
|
748
748
|
onChange={(value) => {
|
|
749
749
|
record[item.dataIndex] = value
|
|
750
|
+
const newPopValue = popvalue.map((i: any, innerIndex: number) => {
|
|
751
|
+
if(innerIndex == index) {
|
|
752
|
+
i[item.dataIndex] = record[item.dataIndex]
|
|
753
|
+
}
|
|
754
|
+
return i
|
|
755
|
+
})
|
|
756
|
+
setPopValue(newPopValue)
|
|
750
757
|
}}
|
|
751
758
|
// onFocus={(e)=> {
|
|
752
759
|
// let dom1 = e.currentTarget;
|