roles.vue 478 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view>
  3. <!-- <view class="roles">
  4. <van-checkbox-group value="{{ result }}" bind:change="onChange">
  5. <van-checkbox name="a">教师</van-checkbox>
  6. <van-checkbox name="b">家长</van-checkbox>
  7. </van-checkbox-group>
  8. </view> -->
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. result: ["a"],
  16. }
  17. },
  18. methods: {
  19. onChangeCheckbox(event) {
  20. this.result = event.detail
  21. },
  22. }
  23. }
  24. </script>
  25. <style>
  26. </style>