<template>
  <div>
    <m-checkbox-group v-model="checkboxGroup1">
      <m-checkbox-button v-for="city in cities" :label="city" :key="city">
        {{city}}
      </m-checkbox-button>
    </m-checkbox-group>
  </div>
  <div style="margin-top: 20px;">
    <m-checkbox-group v-model="checkboxGroup2">
      <m-checkbox-button v-for="city in cities" :label="city" :key="city" :disabled="city === '北京'">
        {{city}}
      </m-checkbox-button>
    </m-checkbox-group>
  </div>
</template>

<script setup>
import { ref } from 'vue-demi'
const checkboxGroup1 = ref(['上海'])
const checkboxGroup2 = ref(['上海'])

const cities = ['上海', '北京', '广州', '深圳']
</script>