Skip to main content

CurateClick

rubic.vercel.app favicon

Rubic

Rubic 是一个轻量级的小程序运行时框架,继承 Vue3 的设计思路,提供 Composition API 和响应式能力,专注于提升小程序开发的逻辑复用和代码组织能力。

Check out Rubic on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

Rubic 是一个轻量级的小程序运行时框架,它继承 Vue3 的设计思路,并提供了与 Vue 一致的编程模型,包括组合式与响应式 API 。它专注于 javascript 逻辑部分,为小程序提供更好的逻辑复用以及更灵活的代码组织能力。文档:https://rubic.vercel.app/源码:https://github.com/JasKang/rubic特性:- 响应性:基于 @vue/reactivity 的响应式能力。- 组合式:与 vue3 一致的 Composition API 来描述组件逻辑。- 类型化:灵活的 API 和完整的 TypeScript 类型。- 轻量级:仅 30KB 的体积,无编译依赖,现有小程序可轻松接入。下面是一个最基本的组件示例:tsimport { definePage, ref, computed, onLoad } from 'rubic'definePage({ setup(query, ctx) { const count = ref(0) const double = computed(() => count.value * 2) const increment = () => { count.value++ } onLoad(()=>{ console.log('onLoad') }) return { count, double, increment, } },})``````vue-html<view bindtap="increment">{{count}} x2:{{double}}</view>

Latest Weekly Picks

promptbuilder.cc favicon
Weekly Pick

Generate, optimize, test, and manage AI prompts in one place. Turn an idea into a ready-to-use prompt in seconds.

Prompt Builder
freqz.net favicon
Weekly Pick

Your Personal K-Style Vibe Photo Studio

Freqz
webleadr.com favicon
Weekly Pick

Find and contact web design leads and businesses without websites, like local dentists, effortlessly from any location in just a few clicks.

Webleadr

the art of having something to say

pretty-scale.com favicon
Weekly Pick

How Pretty Are You? Let AI Decide.

Pretty Scale
c2story.com favicon
Weekly Pick

Create Illustrated Stories with AI

C2story

Impromptu Speech Topics & Timer

Seedance 2.0: Multimodal AI video creator. Precisely direct characters and cameras to create production-ready, multi-shot cinematic stories in one click.