Coder Social home page Coder Social logo

Comments (6)

ijry avatar ijry commented on May 25, 2024

原来2.0是从uni.$u.props获取的,移植到vue3后,发现uni-app的SDK全局挂载uni.$u挂载存在奇怪的环境兼容问题,导致无法实现该功能目前。

from uview-plus.

zzl0109 avatar zzl0109 commented on May 25, 2024

原来2.0是从uni.$u.props获取的,移植到vue3后,发现uni-app的SDK全局挂载uni.$u挂载存在奇怪的环境兼容问题,导致目前无法实现该功能。

但是我试了改为uni.$u.props上取没发现问题,也许是我验证的case比较少吧,到时遇到问题解决问题就好啦

from uview-plus.

ijry avatar ijry commented on May 25, 2024

你试试打包APP

from uview-plus.

zzl0109 avatar zzl0109 commented on May 25, 2024

你试试打包APP

确实有问题,app打包后,会把props的代码提升在uview install前面

from uview-plus.

zzl0109 avatar zzl0109 commented on May 25, 2024

你试试打包APP

作者有时间精力研究怎么修复这个问题吗

from uview-plus.

zzl0109 avatar zzl0109 commented on May 25, 2024

@ijry 找到了一个解决方案,可以把取默认值的方式改为函数返回,目前我在运行的时候是没报错的
image
and 还需要将组件props定义中把函数式默认值改一下
image

from uview-plus.

Related Issues (20)

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.