会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
忙着可爱呀~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
下一页
2023年11月17日
Vue-表单组件
摘要: 组件代码: <!-- * @Descripttion:表单组件--> <template> <div class='YxkForm'> <el-form :model="form" :ref="$attrs.formRef || 'ruleForm'" v-bind="formBind(formOb
阅读全文
posted @ 2023-11-17 16:23 忙着可爱呀~
阅读(40)
评论(0)
推荐(0)
2023年11月3日
Nuxt-监听浏览器返回
摘要: 区分普通页面/keep-alive缓存页面 1、普通页面 mounted: { this.setAddListener() }, destroyed() { window.removeEventListener('popstate', this.setBack, false) }, methods:
阅读全文
posted @ 2023-11-03 15:33 忙着可爱呀~
阅读(199)
评论(0)
推荐(0)
2023年10月10日
Nuxt font使用
摘要: 1、assets文件夹下新建 fonts 文件 2、assets 文件夹下新建 style文件夹,并在style下新建 fonts.scss 3、nuxt.config.js下引入 fonts.scss文件 4、页面内使用 p { font-family: Din; } 5、font变量使用方式如下
阅读全文
posted @ 2023-10-10 15:40 忙着可爱呀~
阅读(383)
评论(0)
推荐(0)
Nuxt vue-video-player视频插件使用
摘要: 1、安装 npm i vue-video-player 或者 npm i vue-video-player@5.0.2(非vue3) 2、在plugins下新建 vue-video-player.js plugins->vue-video-player.js import Vue from 'vue
阅读全文
posted @ 2023-10-10 09:42 忙着可爱呀~
阅读(1302)
评论(0)
推荐(0)
2023年9月16日
Nuxt 编译慢优化
摘要: 1、nuxt.config.js 文件内 注释 minimize: true ,上线前打开
阅读全文
posted @ 2023-09-16 10:07 忙着可爱呀~
阅读(111)
评论(0)
推荐(0)
2023年7月7日
Nuxt VueUse使用
摘要: 一、安装 npm i -D @vueuse/nuxt @vueuse/core VueUse中文文档:https://www.vueusejs.com/guide/ 二、nuxt.config.js 配置 buildModules: [ ......, '@vueuse/nuxt', ], buil
阅读全文
posted @ 2023-07-07 15:08 忙着可爱呀~
阅读(431)
评论(0)
推荐(0)
2023年4月17日
Nuxt fetch 使用
摘要: 1、fetch方法 用于在渲染页面前填充应用的状态树(store)数据, 与 asyncData 方法类似,不同的是它不会设置组件的数据。 类型:Function 如果页面组件设置了 fetch 方法,它会在组件每次加载前被调用(在服务端或切换至目标路由之前)。 2、作用 监听 query 变更、导
阅读全文
posted @ 2023-04-17 12:01 忙着可爱呀~
阅读(531)
评论(0)
推荐(0)
2023年2月16日
Nuxt middleware中间件
摘要: Nuxt执行顺序: 1、配置 nuxt.config.js (plugins) 2、中间件 middleware 3、匹配布局 layout(layout-created) 4、匹配页面 pages(page-created、mounted) 5、匹配布局 layout (layout-mounte
阅读全文
posted @ 2023-02-16 10:52 忙着可爱呀~
阅读(666)
评论(0)
推荐(0)
Nuxt IconFont图标库使用
摘要: 一、下载相应图标(以Symbol为例,其他两种差不多) 二、copy相关文件 三、Iconfont配置 1、将copy的文件放入 assets /fonts 文件夹下 2、nuxt.config.js下配置IconFont 四、使用 <svg class="icon" aria-hidden="tr
阅读全文
posted @ 2023-02-16 10:05 忙着可爱呀~
阅读(475)
评论(0)
推荐(0)
2023年1月31日
Nuxt Swiper使用
摘要: 注:以下以按需引入为例 网址: swiper: https://www.swiper.com.cn/api/parameters/17.html vue-awesome-swiper: https://github.com/surmon-china/vue-awesome-swiper/tree/v
阅读全文
posted @ 2023-01-31 17:18 忙着可爱呀~
阅读(448)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
下一页
公告