@cniot/android-pda-components 2.0.0-beta.14 → 2.0.0-beta.16
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/README.md +6 -0
- package/doc/all-v2-components/index.jsx +32 -3
- package/es/index.cjs.js +6 -6
- package/es/index.es.js +10 -5
- package/package.json +1 -1
package/es/index.es.js
CHANGED
|
@@ -6022,7 +6022,7 @@ class Filed extends JSONWatch {
|
|
|
6022
6022
|
this.validateStatusMap = {};
|
|
6023
6023
|
this.validatorMap = {};
|
|
6024
6024
|
}
|
|
6025
|
-
getProps(key, { validator, formatValue, handleValueInChange } = {}) {
|
|
6025
|
+
getProps(key, { validator, formatValue, handleValueInChange, onChange } = {}) {
|
|
6026
6026
|
const realValidator = typeof validator !== "function" && validator !== "required" ? null : (val) => {
|
|
6027
6027
|
if (validator === "required") {
|
|
6028
6028
|
validator = (val2) => {
|
|
@@ -6044,6 +6044,7 @@ class Filed extends JSONWatch {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
realValidator == null ? void 0 : realValidator(value2);
|
|
6046
6046
|
this.set(key, value2);
|
|
6047
|
+
onChange == null ? void 0 : onChange(value2);
|
|
6047
6048
|
}
|
|
6048
6049
|
};
|
|
6049
6050
|
}
|
|
@@ -6059,7 +6060,7 @@ class Filed extends JSONWatch {
|
|
|
6059
6060
|
([key, _validatorMessage]) => _validatorMessage
|
|
6060
6061
|
);
|
|
6061
6062
|
errorMessages.length > 0 && this.emit("$updated");
|
|
6062
|
-
return errorMessages.length === 0 ? Promise.resolve() : Promise.reject(Object.fromEntries(errorMessages));
|
|
6063
|
+
return errorMessages.length === 0 ? Promise.resolve(this.getValues()) : Promise.reject(Object.fromEntries(errorMessages), this.getValues());
|
|
6063
6064
|
}
|
|
6064
6065
|
getValue(key) {
|
|
6065
6066
|
return this.get(key);
|
|
@@ -18999,7 +19000,9 @@ function Confirm(props) {
|
|
|
18999
19000
|
message,
|
|
19000
19001
|
okText = i18n.get("\u786E\u8BA4"),
|
|
19001
19002
|
cancelText = i18n.get("\u53D6\u6D88"),
|
|
19002
|
-
okButtonType = "primary"
|
|
19003
|
+
okButtonType = "primary",
|
|
19004
|
+
okHotkey,
|
|
19005
|
+
cancelHotkey
|
|
19003
19006
|
} = data;
|
|
19004
19007
|
React__default.useEffect(() => {
|
|
19005
19008
|
const handler = Dialog.show({
|
|
@@ -19016,14 +19019,16 @@ function Confirm(props) {
|
|
|
19016
19019
|
onClick: () => {
|
|
19017
19020
|
onNext(false);
|
|
19018
19021
|
handler.close();
|
|
19019
|
-
}
|
|
19022
|
+
},
|
|
19023
|
+
hotkey: cancelHotkey
|
|
19020
19024
|
}, cancelText), /* @__PURE__ */ React__default.createElement(ButtonV2, {
|
|
19021
19025
|
fullWidth: true,
|
|
19022
19026
|
type: okButtonType,
|
|
19023
19027
|
onClick: () => {
|
|
19024
19028
|
onNext(true);
|
|
19025
19029
|
handler.close();
|
|
19026
|
-
}
|
|
19030
|
+
},
|
|
19031
|
+
hotkey: okHotkey
|
|
19027
19032
|
}, okText)))
|
|
19028
19033
|
});
|
|
19029
19034
|
return () => {
|