Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas_plus / store-assistant

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • store-assistant
  • node_modules
  • @vant
  • weapp
  • dist
  • mixins
  • basic.js
  • 张立顺's avatar
    improt vant · 5bbd3f62
    张立顺 committed Oct 12, 2022
    5bbd3f62
basic.js 292 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11
export const basic = Behavior({
    methods: {
        $emit(name, detail, options) {
            this.triggerEvent(name, detail, options);
        },
        set(data) {
            this.setData(data);
            return new Promise((resolve) => wx.nextTick(resolve));
        },
    },
});