上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: module.exports = { baseUrl: "./", //1.默认为 "/":部署在一个域名的根路径上 ; 2. "./":所有的资源都会被链接为相对路径,这样打出来的包可以被部署在任意路径 outputDir: "dist", //默认为 "dist",指打包后的资源放置的路径,放在 阅读全文
posted @ 2020-06-18 09:29 huihuihero 阅读(3940) 评论(0) 推荐(0) 编辑
摘要: ###安装及引入 1、npm install moment 或者 yarn add moment 2、在main.js里引入并挂载到全局 import moment from 'moment' Vue.prototype.$moment = moment moment.locale('zh-cn') 阅读全文
posted @ 2020-06-11 14:53 huihuihero 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: 在安卓端,中文的行高和英文的行高不同。这导致了一些文字渲染出来后看起来不是很友好。 解决办法: 在开发app时,有需要的话,在有文字的地方设置统一的line-height 阅读全文
posted @ 2020-06-09 16:19 huihuihero 阅读(463) 评论(0) 推荐(0) 编辑
摘要: ####介绍 插槽(Slot),在各种vue的ui插件中,经常见到的多个组件标签相互嵌套(如下)就是以此为基础的。 <el-col > <el-checkbox > </el-col> 而我们也经常会用到这种场景,例如封装一个边框样式的组件,组件中的内容,可以通过这种方式制作,或者将子组件提取到父组 阅读全文
posted @ 2020-06-08 17:30 huihuihero 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: 横向滚动不生效:不生效是因为少了以下两行代码,添加上即可 <scroll-view class="scroll-view-content" scroll-x="true"> <view v-for="(item,index) in videoInfo" :key="index" class="eve 阅读全文
posted @ 2020-06-01 14:46 huihuihero 阅读(3964) 评论(0) 推荐(0) 编辑
摘要: ###设置背景 1、设置背景色: <template> <view class="container"> //最外层 <view class="bg-set"></view> //此标签为最外层view标签的第一个子标签 <view class="content"></view> </view> < 阅读全文
posted @ 2020-06-01 13:25 huihuihero 阅读(36453) 评论(0) 推荐(4) 编辑
摘要: uniapp语法:rich-text 1、rich-text是uni-app的内置组件,提供了高性能的富文本渲染模式。 2、API参考https://uniapp.dcloud.io/component/rich-text 3、rich-text的优势是全端支持、高性能。有个缺陷是只能整体设点击事件 阅读全文
posted @ 2020-05-28 10:35 huihuihero 阅读(30829) 评论(0) 推荐(4) 编辑
摘要: <view id="iamnode">我是节点<view> mounted() { //获取节点信息,最好在mounted之后获取以确保获取到 let theNode=uni.createSelectorQuery().select("#iamnode") theNode.boundingClien 阅读全文
posted @ 2020-05-26 16:48 huihuihero 阅读(24102) 评论(0) 推荐(0) 编辑
摘要: 场景:用户点外卖要改地址,订单页-->地址选择页-->更改地址-->返回订单页-->地址改变了 【 订单页:】 onUnload(){ uni.$off('selectAddress') //在此生命周期里销毁地址改变事件的监听 } methods:{ changeAddress(){ //点击切换 阅读全文
posted @ 2020-05-26 16:27 huihuihero 阅读(10309) 评论(0) 推荐(0) 编辑
摘要: // 事件映射表,左侧为 WEB 事件,右侧为 ``uni-app`` 对应事件 { touchstart: 'touchstart', //手指触摸动作开始 touchmove: 'touchmove', //手指触摸后移动 touchcancel: 'touchcancel', //手指触摸动作 阅读全文
posted @ 2020-05-25 11:02 huihuihero 阅读(633) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页