Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / mini-program / ydauto-business-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
  • ydauto-business-assistant
  • integration
  • components
  • Modal
  • index.js
  • 张立顺's avatar
    初始化 · 7e48dc93
    张立顺 committed Mar 12, 2025
    7e48dc93 Browse Files
index.js 455 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info: Object,
    show: Boolean
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    cancel() {
      this.sumbit = false
      this.setData({
        show: false
      })
    },
    confirm() {
      if (this.sumbit) return
      this.sumbit = true
      this.cancel()
      this.triggerEvent('sumbit')
    },
  }
})