摘要: <script setup> import { onBeforeUnmount, onMounted } from 'vue'; // 设置页面背景颜色 onMounted(() => { document .querySelector("body") .setAttribute("style", 阅读全文
posted @ 2023-09-27 08:39 deajax 阅读(788) 评论(0) 推荐(1)
摘要: # cli 创建项目mpx create mpx-project# 切换到新的 mpx-project 中cd mpx-project把 @mpxjs/webpack-plugin 版本改为 2.8.32 # 安装包yarn 执行: yarn add -D tailwindcss weapp-tai 阅读全文
posted @ 2023-07-20 10:08 deajax 阅读(241) 评论(0) 推荐(0)
摘要: 第一次尝试成功,可以使用部分基础类属性 1、新建一个项目目录,再在目录里新建小程序项目。 2、整个项目使用vscode打开,npm init 初始化npm。 3、安装tailwind、postcss autoprefixer npm install -D tailwindcss@latest pos 阅读全文
posted @ 2023-07-11 16:21 deajax 阅读(1913) 评论(0) 推荐(0)
摘要: 修改文件 tailwind.config.js module.exports = { ... ... corePlugins: { preflight: false } } 阅读全文
posted @ 2023-06-28 13:30 deajax 阅读(190) 评论(0) 推荐(0)
摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"> 阅读全文
posted @ 2023-06-07 19:48 deajax 阅读(42) 评论(0) 推荐(0)
摘要: 原文: Hey! The Intellisense extension does need a config file to work today. I would suggest creating one in your project root to enable the extension. 阅读全文
posted @ 2023-05-29 20:33 deajax 阅读(1575) 评论(0) 推荐(0)
摘要: 明明设置了border-radius,也设置了overflow:hidden,预览也没事,就是真机不行。 其实就是父级设置圆角属性失效,父元素使用border-radius和overflow:hidden做成圆形,子元素如果使用了transform属性,则父元素的overflow:hidden会失效 阅读全文
posted @ 2023-02-15 11:21 deajax 阅读(1725) 评论(0) 推荐(0)
摘要: vue.config.js : npm install style-resources-loader module.exports = { //站点标题 chainWebpack: (config) => { config.plugin("html").tap((args) => { args[0] 阅读全文
posted @ 2022-07-05 09:29 deajax 阅读(356) 评论(0) 推荐(0)
摘要: <script> import { onBeforeMount, onBeforeUnmount } from "vue"; export default { setup() { onBeforeMount(() => { document.body.setAttribute("style", "b 阅读全文
posted @ 2022-07-05 09:27 deajax 阅读(815) 评论(0) 推荐(0)
摘要: runtimeCompiler Type: boolean Default: false 是否使用包含运行时编译器的 Vue 构建版本。设置为 true 后你就可以在 Vue 组件中使用 template 选项了,但是这会让你的应用额外增加 10kb 左右。 vue.config.js module 阅读全文
posted @ 2021-11-24 09:10 deajax 阅读(99) 评论(0) 推荐(0)