使用小程序内置控件 wx-switch?

发布于 8 年前作者 qiangfu14928 次浏览最后编辑 8 年前来自 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 回复
fpeng
fpeng1 楼6 年前

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