diff --git a/src/switch-cell/index.tsx b/src/switch-cell/index.tsx index 21d3173b0..5d287be71 100644 --- a/src/switch-cell/index.tsx +++ b/src/switch-cell/index.tsx @@ -30,6 +30,12 @@ function SwitchCell( slots: DefaultSlots, ctx: RenderContext ) { + if (process.env.NODE_ENV !== 'production') { + console.warn( + '[Vant] "SwitchCell" component is deprecated, see: https://youzan.github.io/vant/#/zh-CN/switch-cell.' + ); + } + return (