color-ui / mp-cu Goto Github PK
View Code? Open in Web Editor NEWMP-CU, colorui3.x 微信小程序原生版
Home Page: https://mp-cu-doc-vercel.vercel.app/
License: MIT License
MP-CU, colorui3.x 微信小程序原生版
Home Page: https://mp-cu-doc-vercel.vercel.app/
License: MIT License
问题复现步骤:
①在config/ColorUI.js配置config.theme为light,此时主题为light
②通过ui-change-theme把主题切换为dark,此时主题为dark
③刷新一下页面,storage的sys_theme被覆盖为light,$cuConfig.theme为dark
④再次刷新一下页面,storage的sys_theme为light,$cuConfig.theme为light
不怎么会提交bug,这是直接在原文件修改提交的。
不知道这样方式提交正不正确,以下为修改的commit地址。
导航栏骨架无高度初值塌陷问题指的是,打开某个有导航栏页面的一瞬间的有塌陷问题。(把isLoading关掉,看起来比较明显)
这是我的一种解决思路。(成功)
在ui-fixed组件中content.height
修改为 (content.height || sys_navBar)
,可以解决导航栏无高度初值塌陷问题。
这种方法可能治标不治本,一些没有传入content.height的也被赋为导航栏高度初值,但后面也会根据重新计算实际高度,重新渲染。
<view class="skeleton" style="{{'height: '+(content.height||sys_navBar)+'px'}} {{width?'width:' + width + 'px;':''}}" id="skeleton-{{_uid}}" wx:if="{{sticky?fixed:placeholder&&fixed}}"/>
$cuData全局数据在B页面修改了数据,当返回A页面的时候修改的数据丢失了。
应该如何正确的使用$cuData呢?
B页面部分代码
that.data.$cuData.userInfo = reUserInfo.response; // 返回用户信息并赋值到$cuData
console.log(that.data.$cuData.userInfo) // 这里输出是有值的
A页面部分代码
console.log(that.data.$cuData.userInfo) // 这里输出userInfo为null
加油
在文档中没有看到说明,看ui-tab中没有相关属性,是当前不知道badge功能是吗
催更,催更
太可惜了
你好👋,文档中 toast 组件demo 中的 Tips,第二第三个按钮点击提示为 [object Object]
_cancel() {
this.hide();
if (typeof this.successBack == 'function') this.successBack({
'cancel': true,
'confirm': false
})
this.triggerEvent("success", {
'cancel': true,
'confirm': false
});
},
这里的triggerEvent不应该调用success方法,建议改为fail或者其他合适的命名。
_confirm方法中triggerEvent才应该调用success
微信从基础库 2.21.2 开始,对获取手机号的接口进行了安全升级,为了使用此功能升级了2.21.3,然后发现报错。
错误提示:WAServiceMainContext.js:2 TypeError: Cannot read property 'push' of undefined
错误位置:"/mp-cu/colorUI/components/ui-swiper/ui-swiper“ 64行
modal弹出层,下面有input输入框时,点击会被穿透,input的文字内容会显示在模态框之上,并且还会获取光标焦点到input框,查了下资料,说是input有原生界面,层级最高,无法通过view的z-index来覆盖原生界面层级
你好,我在使用导航栏的时候,在任何页面都会返回到home页面,如何解决呢。
按照这个方式写代码,在微信小程序里面不能显示图片,不是网络问题,换成本地图片也是不现实,是我哪里没设置对吗?
小程序demo中,点击button的父级 view 也会触发事件
loading框中loading图片没有居中
不同的页面能修改配置显示不同tabbar吗
//框架核心配置
import ColorUI from '../mp-cu/main'
export const colorUI = new ColorUI({
config: {
theme: 'auto',
main: 'blue',
text: 1,
footer: true,
share: true,
shareTitle: 'MP CU( ColorUI3.x 原生小程序版)',
homePath: '/pages/home/home',
tabBar: [{
title: '文档',
icon: '/static/tab_icon/document.png',
curIcon: '/static/tab_icon/document_cur.png',
url: '/pages/home/home',
type: 'tab'
},
{
title: '模板',
icon: '/static/tab_icon/tpl.png',
curIcon: '/static/tab_icon/tpl_cur.png',
url: '/pages/template/home',
type: 'tab'
组件:ui-img
调试基础库:2.19.6
问题描述:使用 catchtap="_preview" 导致小程序崩溃,我个人项目尝试解决嵌套点击事件冒泡时出现了这个问题。
$tips 有时候从一个页面到另一个页面关不掉
您好,<ui-swiper>
如何增加跳转页面呢?目前我是在ui-swiper.js的toTap()
函数中增加跳转代码wx.navigateTo({url: e.currentTarget.dataset.item.url })
,直接改动组件显然是不合理的,请问该如何操作实现<ui-swiper>
跳转页面呢?
mp-cu/main.js这里还是3.2.8
我希望在接口请求完成后再关闭loading,但是控制台首次输出状态为auto,所以导致800ms后关闭了loading
我认为,生命周期被MP-CU注入时,覆盖掉了。
behaviors的官方介绍地址如下:
https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/behaviors.html
能否考虑像2.x一样,提供独立的样式,这样就可以在 taro 或者或者其它框架下使用了(uniapp版本和mp版本样式也能够统一)。
永远支持~加油!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.