All Projects → b5156 → wxapp-computed

b5156 / wxapp-computed

Licence: other
在微信小程序中使计算值(computed)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wxapp-computed

mobx-wxapp
在小程序中使用mobx
Stars: ✭ 54 (+170%)
Mutual labels:  weapp, wxapp, miniprogram
weapp.request
为微信小程序提供的网络请求组件,是 wx.request 的扩展,基于 Promise API,添加缓存控制
Stars: ✭ 29 (+45%)
Mutual labels:  weapp, wxapp, miniprogram
Wux Weapp
🐶 一套组件化、可复用、易扩展的微信小程序 UI 组件库
Stars: ✭ 4,706 (+23430%)
Mutual labels:  weapp, wxapp, miniprogram
miniprogram-picker
微信小程序自定义组件Picker。本组件对微信小程序原生Picker组件进行了二次封装,开发者只需要提供固定数据结构的sourceData,再进行一些必要配置,本组件就可以自动帮助开发者处理联动逻辑。
Stars: ✭ 30 (+50%)
Mutual labels:  weapp, miniprogram
Wxapp Webpack Plugin
📦 微信小程序 webpack 插件
Stars: ✭ 185 (+825%)
Mutual labels:  weapp, wxapp
Wxa Plugin Canvas
小程序海报组件-生成朋友圈分享海报并生成图片
Stars: ✭ 2,692 (+13360%)
Mutual labels:  weapp, wxapp
We Cropper
微信小程序图片裁剪工具
Stars: ✭ 1,972 (+9760%)
Mutual labels:  weapp, wxapp
quickstart-miniprogram
🎉微信小程序webpack模板
Stars: ✭ 32 (+60%)
Mutual labels:  wxapp, miniprogram
Wechat web devtools
微信开发者工具(微信小程序)linux完美支持
Stars: ✭ 2,664 (+13220%)
Mutual labels:  weapp, wxapp
weapp-template
🚀一个简单实用的微信小程序基础配置模板
Stars: ✭ 112 (+460%)
Mutual labels:  weapp, miniprogram
mpapi
🐤 小程序API兼容插件,一次编写,多端运行。支持:微信小程序、支付宝小程序、百度智能小程序、字节跳动小程序
Stars: ✭ 40 (+100%)
Mutual labels:  weapp, miniprogram
wxml-vscode
👾Vscode plugin -- wechat applets formatting and highlighting components (highly customized)
Stars: ✭ 31 (+55%)
Mutual labels:  weapp, miniprogram
Leshare Shop Weapp
基于微信小程序的电商平台,采用原生框架开发
Stars: ✭ 183 (+815%)
Mutual labels:  weapp, wxapp
Dva Wxapp
微信小程序的dva集成
Stars: ✭ 183 (+815%)
Mutual labels:  weapp, wxapp
Weapp
🐧 微信小程序组件和功能封装,基于微信Component自定义组件开发
Stars: ✭ 235 (+1075%)
Mutual labels:  weapp, wxapp
Omi
Front End Cross-Frameworks Framework - 前端跨框架跨平台框架
Stars: ✭ 12,153 (+60665%)
Mutual labels:  weapp, miniprogram
jgb
小程序渐进式编译框架
Stars: ✭ 21 (+5%)
Mutual labels:  weapp, miniprogram
Wx Book
仿追书神器的小说阅读器小程序
Stars: ✭ 122 (+510%)
Mutual labels:  weapp, wxapp
Cax
HTML5 Canvas 2D Rendering Engine - 小程序、小游戏以及 Web 通用 Canvas 渲染引擎
Stars: ✭ 1,864 (+9220%)
Mutual labels:  weapp, miniprogram
weapp-OpenRadio
A base music weapp named OpenRadio for wechat. Can use on weapp getting started.
Stars: ✭ 14 (-30%)
Mutual labels:  weapp, wxapp

wxapp-computed

在小程序中使计算值(computed),易用、轻量、无依赖、无侵入。

Installation

npm install wxapp-computed

Example

import computed from 'wxapp-computed'

Page(
  computed({
    data: {
      name: 'Messi',
      get uppercaseName() {
        return this.name.toUpperCase()
      },
      get reversedName() {
        return this.uppercaseName.split('').reverse().join('')
      }
    },
    onLoad() {
      // this.setData({ name: 'Ronaldo' })
    }
    // ...
  })
)
<view>
  {{name}} / {{uppercaseName}} / {{reversedName}}
  // 将显示为: Messi / MESSI / ISSEM
</view>

API

computed(page:Object)

传入 page 页面对象.

License

ISC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].