blog's People
Forkers
cosmosdawnblog's Issues
Vue Examples Code Review
Article List
Weex 接入 Vue 常见错误集合
-
__weex_require_module__ is undefined
: 包中的 jsfm 不支持 Vue 2.x。 -
The "data" option should be a function that returns a per-instance value in component definitions.
:data
属性应该是个函数,而不是一个对象。 -
点击事件无效:要用 @click.native
-
append="tree" 好像没有加到节点上,加到了节点的
attr
里边 -
functional 组件不能自动 merge style
mounted 中改数据未触发 UI 更新
代码在 http://dotwe.org/050728893bc0e9635bb25c78ba4459ff ,如果要在 vue 中运行,将 ready
改为 mounted
。
weex 版 jsfm 中一切正常,在 vue 版本中,iOS 和 web 上能正常显示下边一行小字,Android 中只有标题,没有小字。
log 中显示:
ios 执行了 callAddElement 之后,发了 updateFinish ,然后发了 updateAttr
android 执行了 callAddElement 之后,发了 updateFinish ,然后没有发 updateAttr
暂时结论 node 上没有 docId
linkParent 的行为 ios 和 android 是一样的
暂时结论 Android 上未调用 setTextContent
和 patchVnode
和 updateChildren
暂时结论 Android 上未触发 beforeUpdate
安卓上也有 __ob__
这种属性
没有调用 flushSchedulerQueue
Weex JS Framework 目录结构调整
目的
html5
这个文件夹名字不合理,万一以后有了HTML6
呢?legacy
名称容易导致误会。- 代码依赖关系有些乱,存在耦合。
- 分拆子模块,打包到 npm。
任务
legacy
内部目录调整,减少依赖。- 使用
process.env
。 - 使报错信息更详细更人性化。
- 整理打包脚本,输出多个 npm 包。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.