Business background
using mpvue developer Mini Program
wants to make the code run on Mini Program and the web page at once
I don"t know what suitable ui component can be adapted to both ends
try
-
weui
this is for web pages.wxssdoes not support sibling nodes and other things, so you can"t use .
-
weui.wxss
although this works, many styles have been castrated and there are no documents. It is troublesome to check the source code of the official website while doing it, and to add styles yourself. -
mint-ui
this does not fit Mini Program,jscoredoes not support DOM -
zan-uimint-ui
because it is a custom Mini Program component, it cannot be used inmpvue, and cannot adapt to the web page -
jq-weui
is based onweui, so I didn"t dare to try. I don"t think so.
question
now, is there such a ui component, ah, if you can find it, you can vomit blood quickly.
solve
there is no perfect solution for now. Look forward to mintui of ele.me later on zanui for html compatibility mp-weui based on weui is relatively available at present. But it also uses a lot of Mini Program native components.. For more information: https://github.com/mpvue/awes. mp-weui
2018-12-11 update
- now there are many general ui frameworks..
- but there"s a better one.
hbuilderjust launcheduniapp. - spans not only Mini Program and web pages, but also Android and Apple
- provides not only unified ui components, but also unified api
