摘要: 基于1280尺寸。 支持scss。 支持px2rem。 开发,打包,上线。 很好用。 有了Vue,各种插件都可以使用,路由也可以使用。 最后一打包,什么都ok。 阅读全文
posted @ 2021-04-30 17:16 TBHacker 阅读(55) 评论(0) 推荐(0) 编辑
摘要: gsettings set com.canonical.Unity.Launcher launcher-position Bottom 阅读全文
posted @ 2021-04-30 13:52 TBHacker 阅读(108) 评论(0) 推荐(0) 编辑
摘要: // vue.config.js const px2rem = require("postcss-plugin-px2rem"); module.exports = { chainWebpack: config => { config .plugin('html') .tap(args => { a 阅读全文
posted @ 2021-04-30 10:27 TBHacker 阅读(14083) 评论(0) 推荐(1) 编辑
摘要: 1、安装 npm install postcss-plugin-px2rem --save-dev 2、引入配置 // vue.config.js const px2rem = require("postcss-plugin-px2rem"); module.exports = { css: { l 阅读全文
posted @ 2021-04-30 10:15 TBHacker 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 父视图,通过属性传入参数 <template> <div class="home"> <Index name="Zhang" age="18"/> </div> </template> <script> import Index from '@/components/Index.vue' expor 阅读全文
posted @ 2021-04-30 09:57 TBHacker 阅读(49) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: ' 阅读全文
posted @ 2021-04-30 09:53 TBHacker 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: sudo cnpm install -g vue-cli 这样脚手架创建项目更加的快。 vue create demo 阅读全文
posted @ 2021-04-30 09:28 TBHacker 阅读(355) 评论(0) 推荐(0) 编辑