GithubHelp home page GithubHelp logo

Comments (5)

Megasu avatar Megasu commented on July 1, 2024 1

可以确定 detail 字段肯定是有的。

uni-app 源码参考 event wrapper

from uni-app-types.

ModyQyW avatar ModyQyW commented on July 1, 2024 1

detail 已经移除 ?: 啦!非常感谢🙏

from uni-app-types.

ModyQyW avatar ModyQyW commented on July 1, 2024

这个是因为不能确定 uni-app 编译后全平台都会有 detail 所以加上的。其它参数同理。

推荐以下两种写法

  • profile.value.brithday = ev.detail?.value ?? profile.value.brithday
  • profile.value.gender = ev.detail!.value

from uni-app-types.

ModyQyW avatar ModyQyW commented on July 1, 2024

或者说,能确定 uni-app 是完全对齐微信小程序的嘛?如果能确定的话,其实 event 下很多 ?: 都是可以去掉的。

from uni-app-types.

Megasu avatar Megasu commented on July 1, 2024

或者说,能确定 uni-app 是完全对齐微信小程序的嘛?如果能确定的话,其实 event 下很多 ?: 都是可以去掉的。

思考

暂时找到是否完全对齐的出处,但是uni-app肯定会参考微信小程序实现。

因为 uni-app 大部分组件和 API 都是基于着小程序标准的实现,当然 uni-app 做的更好,基于这套标准做了更棒的多端支持

image

h5端

image

微信小程序端

image

思考

这件事情改怎么确定,这个真的要请教 uni-app 的团队确认一下了。🤔

from uni-app-types.

Related Issues (11)

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.