Skip to content

behavior方式引用不能正常显示 #100

Open
@wangmin915

Description

@wangmin915

这种方式不支持
const computedBehavior = require('miniprogram-computed').behavior Page({ behavior:[computedBehavior], computed:{ sum(data){ return data.number1+data.number2; }, },

只能支持import { ComponentWithComputed } from 'miniprogram-computed'方式引用

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions