![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
vue插件
墨之鱼
每天一小步
展开
-
uniapp 横屏加载webview 样式错乱
原因是onLaunch锁定横屏的时候有一定延迟,这时候还没完全切换为横屏的时候就已经加载webview,所以webview 是按竖屏的时候加载样式。 onLaunch: function() { console.log('App Launch'); plus.screen.lockOrientation("landscape-primary"); // 锁定横屏 // 设置全屏 plus.navigator.setFullscreen(原创 2020-11-27 10:12:17 · 1200 阅读 · 0 评论 -
uniapp nvue web-view不显示 宽高设置不生效
1.nvue web-view需要手动设置宽高2.设置百分比丶px宽高无效,需要使用flex 1 才能铺满全屏<template> <view class="work_index"> <!-- @onPostMessage="htmlMessage" --> <!-- optionData.appLink --> <web-view class="webView_class" :webview-styles="webviewStyle原创 2020-08-19 09:28:04 · 6798 阅读 · 1 评论 -
uniapp 安卓模拟器mumu 端口配置
hbuilderX 运行→运行手机或模拟器→安卓模拟器端口设置mumu端口: 7555原创 2020-08-10 10:18:47 · 3543 阅读 · 0 评论 -
uniapp uview Property or method “click“ is not defined on the instance but referenced during render
// An highlighted block <u-tabbar :before-switch="beforeSwitch" v-model="current" :show="show" :bg-color="bgColor" :border-top="borderTop" :list="list" :mid-button="midButton" :inactive-color="inactiveColor" :activeColor="ac原创 2020-08-06 09:19:16 · 1302 阅读 · 0 评论 -
vue 非template模式 v-if 判断数组长度问题
必须在页面加载的时候设置表单校验规则,否则提交校验的时候无效// An highlighted block <div v-if="list.length<=5"> </div>这个时候页面会出现错乱// An highlighted block <div v-if="list&&list.length<6"> </div>改成这样子就不会报错了测试是 “=” 识别不了?还有其它解决方法请留言提供...原创 2020-07-31 17:18:21 · 1013 阅读 · 0 评论 -
uniapp TypeError: undefined is not an object (evaluating ‘modules[moduleId].call‘)
uniapp基座从2.78升级到2.83后,app报错并出现白屏排查下来发现是某个组件的文件夹名称有问题。。。。把有问题的文件夹名称修改(有问题的名字:personalCenter),然后就可以运行了。。。怀疑是文件夹名称跟项目里的东西冲突了???反正问题是解决了。。。...原创 2020-07-31 11:24:30 · 6691 阅读 · 3 评论 -
uniapp App平台 uView UI 表单校验规则失效
必须在页面加载的时候设置表单校验规则,否则提交校验的时候无效// An highlighted block onReady() { // 设置表单校验规则 否则表单校验无效 this.$refs.uForm.setRules(this.rules); },原创 2020-06-17 11:09:32 · 8194 阅读 · 8 评论 -
uniapp App平台 v3 模式暂不支持在 js
App平台 v3 模式暂不支持在 js把main.js 引入的css 放到app.vue头部原创 2020-06-15 16:47:05 · 6930 阅读 · 2 评论 -
vue-color 拾色器 非temple/render模式下使用
vue-color 拾色器 非temple/render模式下使用// An highlighted block<!DOCTYPE html><html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-原创 2020-05-28 09:15:26 · 339 阅读 · 0 评论