npm install mp-weui -S
import 'mp-weui/lib/style.css'; // 需在App.vue中全局引入css文件
由于mpvue限制(component暂不支持全局注册、复杂slot)暂时只能使用下面的方式局部注册组件:
import Radio from 'mp-weui/packages/radio'
export default {
components: {
mpRadio
}
}
- Button(小程序原生组件)
- List(待优化)
- Input
- Checklist
- Radio
- Switch
- Field(待优化)
- Slider
- Uploader
- Article
- Badge
- Flex
- Footer
- Gallery(小程序原生组件)
- Grid(待优化)
- Icons(小程序原生组件)
- Loadmore
- Panel
- Preview
- Progress
- Actionsheet
- Dialog
- Msg
- Picker
- Toast
- Navbar
- Tabbar
- Searchbar(待优化)