<template><div>
{{ value }}
</div><c-checkboxv-model="value":options="options"/></template><scriptlang="ts"setup>import{ ref }from'vue'const value =ref([])constoptions=async()=>{// 模拟网络请求awaitnewPromise<any[]>(resolve=>setTimeout(resolve,2000))return[{label:'北京',value:'beijing'},{label:'上海',value:'shanghai'},{label:'广州',value:'guangzhou'},]}</script>
<template><div>
{{ value }}
</div><t-radio-groupv-model="type":options="['福建', '广东']"/><c-checkboxv-model="value":options="options"/></template><scriptlang="ts"setup>import{ ref }from'vue'const value =ref([])const type =ref('福建')constoptions=async()=>{return type.value ==='福建'?awaitnewPromise<any[]>(resolve=>{setTimeout(()=>resolve(['福州','厦门','龙岩','三明']),2500)}):awaitnewPromise<any[]>(resolve=>{setTimeout(()=>resolve(['广州','深圳','珠海']),2500)})}</script>