ricequant common vue componenets
master: https://www.npmjs.com/package/@rqjs/rqcomponents
import UI from "@rqjs/rqcomponents";
import "@rqjs/rqcomponents/lib/theme/index.css";
import "@rqjs/rqcomponents/lib/theme/base";
import "@rqjs/rqcomponents/lib/theme/base.css";
rqcomponent only exports esm packages.
import RqHeader from "@rqjs/rqcomponents/lib/[rq-component-name]";
// Or import all components and deconstruction.
// import { RqHeader } from "@rqjs/rqcomponents";
import "@rqjs/rqcomponents/lib/theme/[rq-component-name].css";
import "@rqjs/rqcomponents/lib/theme/base";
import "@rqjs/rqcomponents/lib/theme/base.css";
import RqHeader from "@rqjs/rqcomponents/lib/[rq-component-name]";
Vue.use(RqHeader);
new Vue({
el: "#rq-header",
render: (h) => h(RqHeader),
});
import RqHeader from "@rqjs/rqcomponents/lib/[rq-component-name]";
new Vue({
el: "#rq-header",
components: { RqHeader },
render: (h) => h(RqHeader),
});
npm run start: preview components, need configure `nginx.sample.conf`,visit http://<host>/rqcomponents
npm run dev : generating publish files use watch mode
npm run build : generating publish files
npm run lint : audit code style
npm run clean : clear demo cache