mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 22:49:15 +08:00
fix(Icon): add info prop deprecation warning (#7347)
* fix(Icon): add info prop deprecation warning * chore: adjust
This commit is contained in:
parent
4b4203daec
commit
4efd8fb92f
@ -50,6 +50,12 @@ function Icon(
|
||||
const name = correctName(props.name);
|
||||
const imageIcon = isImage(name);
|
||||
|
||||
if (process.env.NODE_ENV !== 'production' && props.info) {
|
||||
console.warn(
|
||||
'[Vant] Icon: "info" prop is deprecated, use "badge" prop instead.'
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<props.tag
|
||||
class={[
|
||||
|
Loading…
x
Reference in New Issue
Block a user