Skip to content

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

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions