ztxkui 3.6.16 → 3.7.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.
package/dist/Demo.js
CHANGED
|
@@ -626,7 +626,16 @@ function EnhanceSelect(_a) {
|
|
|
626
626
|
}
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
|
|
629
|
+
// 因为将数据类型转成了字符串,可能导致value的数据类型跟原数据数据类型不一致
|
|
630
|
+
// 这里将value赋值成原数据中的数据
|
|
631
|
+
var __value = value;
|
|
632
|
+
if (Array.isArray(__value)) {
|
|
633
|
+
__value = currentData.map(function (item) { return item[key_1]; });
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
__value = currentData[key_1];
|
|
637
|
+
}
|
|
638
|
+
onChange && onChange(__value, option, currentData);
|
|
630
639
|
}
|
|
631
640
|
else {
|
|
632
641
|
onChange && onChange(value, option);
|