使用小程序内置控件 wx-switch?
发布于 6 年前 作者 qiangfu 14758 次浏览 来自 官方Issues

新建了一个vue的kbone. 在页面里使用<wx-switch> 。

运行后

[Vue warn]: Unknown custom element: <wx-switch> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

要 import 那个包进来?

1 回复

缺少依赖,记得npm装完的时候加–save,或者用yarn add  kbone-ui

回到顶部