Git Product home page Git Product logo

mp-cu's People

Contributors

bypanghu avatar izaizaia avatar qywk99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mp-cu's Issues

导航栏骨架无高度初值塌陷问题

导航栏骨架无高度初值塌陷问题指的是,打开某个有导航栏页面的一瞬间的有塌陷问题。(把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}}"/>

不同的页面能修改配置显示不同tabbar吗

不同的页面能修改配置显示不同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'

toast demo问题

你好👋,文档中 toast 组件demo 中的 Tips,第二第三个按钮点击提示为 [object Object]

<ui-swiper>问题

您好,<ui-swiper>如何增加跳转页面呢?目前我是在ui-swiper.js的toTap()函数中增加跳转代码wx.navigateTo({url: e.currentTarget.dataset.item.url }),直接改动组件显然是不合理的,请问该如何操作实现<ui-swiper>跳转页面呢?

ui-swiper 不显示图片

swiperList: [ { img: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big84000.jpg', url: '/pages/document/system/system', type: 'navigateTo' //直接跳转类型 }, { img: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big37006.jpg', url: '/pages/custom/home', type: 'switchTab' //直接跳转类型 }, ]

按照这个方式写代码,在微信小程序里面不能显示图片,不是网络问题,换成本地图片也是不现实,是我哪里没设置对吗?

导航栏

你好,我在使用导航栏的时候,在任何页面都会返回到home页面,如何解决呢。

$cuData赋值问题

$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

modal 模态框遮罩层无法覆盖input输入框

modal弹出层,下面有input输入框时,点击会被穿透,input的文字内容会显示在模态框之上,并且还会获取光标焦点到input框,查了下资料,说是input有原生界面,层级最高,无法通过view的z-index来覆盖原生界面层级

返回首页_toHome()问题

把单独页面添加编译模式时,因第一次加载的页面不是 config/ColurUI.js 声明的 congif.homePath 页面 。
导致返回 和返回首页都失效 , 返回的错误里看到当前页面的路径和目标跳转页面的路径一起加进去了 。

因为我的第一个页面为tabbar 所以改成switchtab
_toHome() {
wx.switchTab({
url: this.data.$cuStore.sys_home_page
});
},

微信图片_20221215172302

最后我把 config/ColurUI.js 里的 homePath 删掉了恢复正常。

修复config.theme内存被覆盖问题

问题复现步骤:
①在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地址。

c3a14d7

使用2.21.0以上版本号时,出现错误导致页面白屏。

微信从基础库 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行

ui-modal 中的_cancel方法有问题

_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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.