@esvndev/es-react-config-setting 1.0.51 → 1.0.52
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.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18848,10 +18848,10 @@ const SettingApp = (props) => {
|
|
|
18848
18848
|
const handleFormClosed = () => {
|
|
18849
18849
|
};
|
|
18850
18850
|
//Sự kiện giá trị thay đổi
|
|
18851
|
-
const _eventChange = (
|
|
18851
|
+
const _eventChange = (obj, data) => {
|
|
18852
18852
|
if (data.target) {
|
|
18853
18853
|
var _value = "";
|
|
18854
|
-
if (
|
|
18854
|
+
if (obj.type === 'checkbox') {
|
|
18855
18855
|
_value = data.target.checked ? 'true' : 'false';
|
|
18856
18856
|
}
|
|
18857
18857
|
else {
|
|
@@ -18859,14 +18859,14 @@ const SettingApp = (props) => {
|
|
|
18859
18859
|
}
|
|
18860
18860
|
UpdateSettingConfig({
|
|
18861
18861
|
Items: [{
|
|
18862
|
-
Key: key,
|
|
18862
|
+
Key: obj.key,
|
|
18863
18863
|
Value: _value
|
|
18864
18864
|
}]
|
|
18865
18865
|
}, null, (rs) => {
|
|
18866
18866
|
console.log(rs);
|
|
18867
18867
|
});
|
|
18868
18868
|
if (eventChange)
|
|
18869
|
-
eventChange([{ key:
|
|
18869
|
+
eventChange([{ key: obj.key, value: _value, state: "update" }]);
|
|
18870
18870
|
}
|
|
18871
18871
|
};
|
|
18872
18872
|
const DynamicIcon = ({ name, className }) => {
|