1.只能使用text标签<text class="iconfont" style="color: #fff;font-size: 28rpx;"> </text> 2.App.vue设置,引入iconfont onLaunch() {//#ifdef APP-PLUSthis.addIconFont();//#endif}, /** 添加icon解决(真机)nvue引用不生效问题*/addIconFont() { const dom= weex.requireModule('dom'); dom.ad...
现在,使用nvue版本的聊天页,建议uniapp原生的顶部导航栏,渲染速度快,不会出现白屏。具体配置在pages.json中。 { "path": "pages/xxx/xxx", "style": { "titleNView": { "autoBackButton":false, "buttons": [ { "float":"left", "fontSize": "46rpx", // iconfont自定义按钮写法 "fontSrc": "/s...
虽然nvue也可以多端编译,输出H5和小程序,但nvue的css写法受限,所以如果你不开发App,那么不需要使用nvue。 区别 官方文档引址 组件 视图容器 官方文档参考 视图容器(view) 视图容器,类似于html中的div,用来包裹各种元素内容。 如果使用nvue,需要注意不能用该组件包裹文字,否则文字样式将不生效。 如果使用<div>标签,...
// 因 nvue 暂不支持 class 查询 var queryTabSize = uni.createSelectorQuery().in(this); queryTabSize.select('#tab0').boundingClientRect(); queryTabSize.select('#tab1').boundingClientRect(); queryTabSize.select('#tab2').boundingClientRect(); queryTabSize.select('#tab3').boundingClient...
color: #aaa;font-size: 15px;等样式仅在<text></text>中生效 color、font-size等属性不支持从父节点继承,必须使用class或者内联声明 text标签中内联 margin、padding 样式失效,需使用class声明 3. page 页面 Weex不支持page选择器,也没有page样式,page.json中设置backgroundColor也无效 只能弯道超车设置整体页面...
lang="scss" scoped></style> // child.nvue <template> <view class="child"> <slot></slot> </view> </template> <script> export default { } </script> <style lang="scss" scoped> .child { font-size: 36rpx; color: #f00; padding: 20rpx; background-color: rgba(0,0,0,0.2); }...
<!-- 使用touchend 解决 ios 13 不触发按钮事件的问题--> <view v-for="(item,index) in options" :data-button="btn" :key="index" :style="{ backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD', fontSize: item.style && item.style.fontSi...
statusBarFontColor:"#000000", //状态栏背景颜色 statusBarBackground: null, // 字体 font: 'hxicon', // 字体大小 fontSize: '18px', // 文字颜色,可以数组和string,为数组则是滑动变色 ["#000000","#ff9900"] color: "#333333", //背景颜色;参数一:透明度;参数...
现在nvue 版本的聊天页,使用 uniapp 原生导航栏,渲染速度快,不会出现白屏,具体配置在 pages.json 中。 { "path": "pages/xxx/xxx", "style": { "titleNView": { "autoBackButton":false, "buttons": [ { "float":"left", "fontSize": "46rpx", ...