鍒濆鎻愪氦锛氱墰鍙暟鎹鐞嗙郴缁?- 鍖呭惈鍚庣Spring Boot鍜屽墠绔疺ue3椤圭洰
This commit is contained in:
17
admin-system/node_modules/element-plus/es/hooks/use-deprecated/index.mjs
generated
vendored
Normal file
17
admin-system/node_modules/element-plus/es/hooks/use-deprecated/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { watch, unref } from 'vue';
|
||||
import { debugWarn } from '../../utils/error.mjs';
|
||||
|
||||
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
||||
watch(() => unref(condition), (val) => {
|
||||
if (val) {
|
||||
debugWarn(scope, `[${type}] ${from} is about to be deprecated in version ${version}, please use ${replacement} instead.
|
||||
For more detail, please visit: ${ref}
|
||||
`);
|
||||
}
|
||||
}, {
|
||||
immediate: true
|
||||
});
|
||||
};
|
||||
|
||||
export { useDeprecated };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Reference in New Issue
Block a user