fix(api): use bcrypt directly instead of passlib for compatibility

This commit is contained in:
bwstudio
2026-05-21 22:18:36 +08:00
parent 7f51d200f1
commit 4651781bc3
23511 changed files with 2587254 additions and 8 deletions
+40
View File
@@ -0,0 +1,40 @@
import { get, isEqual } from "lodash-unified";
import { ref, watch } from "vue";
//#region ../../packages/components/select-v2/src/useProps.ts
const defaultProps = {
label: "label",
value: "value",
disabled: "disabled",
options: "options"
};
function useProps(props) {
const aliasProps = ref({
...defaultProps,
...props.props
});
let cache = { ...props.props };
watch(() => props.props, (val) => {
if (!isEqual(val, cache)) {
aliasProps.value = {
...defaultProps,
...val
};
cache = { ...val };
}
}, { deep: true });
const getLabel = (option) => get(option, aliasProps.value.label);
const getValue = (option) => get(option, aliasProps.value.value);
const getDisabled = (option) => get(option, aliasProps.value.disabled);
const getOptions = (option) => get(option, aliasProps.value.options);
return {
aliasProps,
getLabel,
getValue,
getDisabled,
getOptions
};
}
//#endregion
export { defaultProps, useProps };
//# sourceMappingURL=useProps.mjs.map