ns-base-module 2.0.10 → 2.0.11
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.
|
@@ -790,11 +790,11 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
|
|
|
790
790
|
}
|
|
791
791
|
if (item.is_default === "Y") {
|
|
792
792
|
hasDefault = true;
|
|
793
|
-
|
|
793
|
+
updateValue(item.value);
|
|
794
794
|
setCurItem(item);
|
|
795
795
|
}
|
|
796
796
|
if (item.is_default_public === "Y" && !hasDefault) {
|
|
797
|
-
|
|
797
|
+
updateValue(item.value);
|
|
798
798
|
setCurItem(item);
|
|
799
799
|
}
|
|
800
800
|
});
|
|
@@ -898,8 +898,13 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
|
|
|
898
898
|
return _ref7.apply(this, arguments);
|
|
899
899
|
};
|
|
900
900
|
}();
|
|
901
|
+
var updateValue = function updateValue(_value) {
|
|
902
|
+
var _props$onChange;
|
|
903
|
+
setValue(_value);
|
|
904
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, _value);
|
|
905
|
+
};
|
|
901
906
|
var onChange = function onChange(e) {
|
|
902
|
-
|
|
907
|
+
updateValue(e.target.value);
|
|
903
908
|
var arr = [].concat(_toConsumableArray(templateUser), _toConsumableArray(template));
|
|
904
909
|
arr.forEach(function (item) {
|
|
905
910
|
if (item.value === e.target.value) {
|
|
@@ -991,7 +996,7 @@ var ColumnsToolbar = function ColumnsToolbar(_ref4) {
|
|
|
991
996
|
|
|
992
997
|
// 取消选择 恢复默认
|
|
993
998
|
var cancelSelect = function cancelSelect() {
|
|
994
|
-
|
|
999
|
+
updateValue("");
|
|
995
1000
|
setCurItem({});
|
|
996
1001
|
restColumns("cancel");
|
|
997
1002
|
};
|