We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rubic 是一个轻量级的小程序运行时框架,它继承 Vue3 的设计思路,并提供了与 Vue 一致的编程模型(组合式 API + 响应式 API)。它专注于 javascript 逻辑部分,为小程序提供更好的逻辑复用以及更灵活的代码组织能力。
Rubic
官方文档 代码仓库
import { definePage, ref, computed } from 'Rubic' definePage({ setup(query, ctx) { const count = ref(0) const double = computed(() => count.value * 2) const increment = () => { count.value++ } return { count, double, increment, } }, })
<view bindtap="increment">{{count}} x2:{{double}}</view>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rubic
Rubic
是一个轻量级的小程序运行时框架,它继承 Vue3 的设计思路,并提供了与 Vue 一致的编程模型(组合式 API + 响应式 API)。它专注于 javascript 逻辑部分,为小程序提供更好的逻辑复用以及更灵活的代码组织能力。官方文档
代码仓库
特性
示例:
The text was updated successfully, but these errors were encountered: