mint-ui swith

HTML部分

Switch

JS部分

data() {
    return {
      swithValue: false,
      swith: '加载上次'
}
methods: {
    swithChange(event) {
      if (event == true) {
        this.swith = '取消加载'
      } else if (event == false) {
        this.swith = '加载上次'
      }
      console.log(event)
    }
}

你可能感兴趣的:(mint-ui swith)