amis-rpc-design/node_modules/rc-util/es/deprecated.js

5 lines
301 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export default function deprecated(props, instead, component) {
if (typeof window !== 'undefined' && window.console && window.console.error) {
window.console.error("Warning: ".concat(props, " is deprecated at [ ").concat(component, " ], ") + "use [ ".concat(instead, " ] instead of it."));
}
}