@esvndev/es-react-config-setting 1.0.48 → 1.0.50

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 CHANGED
@@ -18824,9 +18824,16 @@ const SettingApp = (props) => {
18824
18824
  };
18825
18825
  //Sự kiện giá trị thay đổi
18826
18826
  const _eventChange = (data) => {
18827
- console.log("new data", data);
18828
- if (eventChange)
18829
- eventChange([{ key: "x", value: "x", state: "update" }]);
18827
+ if (data.target) {
18828
+ if (data.target.type === 'checkbox') {
18829
+ console.log("new data", data.target.checked);
18830
+ }
18831
+ else {
18832
+ console.log("new data", data.target.value);
18833
+ }
18834
+ if (eventChange)
18835
+ eventChange([{ key: "x", value: "x", state: "update" }]);
18836
+ }
18830
18837
  };
18831
18838
  const DynamicIcon = ({ name, className }) => {
18832
18839
  const LucideIcon = Icon[name];
@@ -18873,7 +18880,6 @@ const SettingApp = (props) => {
18873
18880
  };
18874
18881
  //Hàm sử dụng tạo theo loại giá trị
18875
18882
  const _renderInput = (root, data) => {
18876
- console.log((new Date()).getTime(), 111);
18877
18883
  switch (data.type) {
18878
18884
  case "switch":
18879
18885
  case "checkbox":