@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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18797,9 +18797,16 @@ const SettingApp = (props) => {
|
|
|
18797
18797
|
};
|
|
18798
18798
|
//Sự kiện giá trị thay đổi
|
|
18799
18799
|
const _eventChange = (data) => {
|
|
18800
|
-
|
|
18801
|
-
|
|
18802
|
-
|
|
18800
|
+
if (data.target) {
|
|
18801
|
+
if (data.target.type === 'checkbox') {
|
|
18802
|
+
console.log("new data", data.target.checked);
|
|
18803
|
+
}
|
|
18804
|
+
else {
|
|
18805
|
+
console.log("new data", data.target.value);
|
|
18806
|
+
}
|
|
18807
|
+
if (eventChange)
|
|
18808
|
+
eventChange([{ key: "x", value: "x", state: "update" }]);
|
|
18809
|
+
}
|
|
18803
18810
|
};
|
|
18804
18811
|
const DynamicIcon = ({ name, className }) => {
|
|
18805
18812
|
const LucideIcon = Icon[name];
|
|
@@ -18846,7 +18853,6 @@ const SettingApp = (props) => {
|
|
|
18846
18853
|
};
|
|
18847
18854
|
//Hàm sử dụng tạo theo loại giá trị
|
|
18848
18855
|
const _renderInput = (root, data) => {
|
|
18849
|
-
console.log((new Date()).getTime(), 111);
|
|
18850
18856
|
switch (data.type) {
|
|
18851
18857
|
case "switch":
|
|
18852
18858
|
case "checkbox":
|