示例仅供参考,请以真机为主

SelectRegion 下拉城市选择

参数

参数说明类型可选值默认值
modelValue / v-model绑定值array
api城市数据 json 文件链接stringhttps://cool-uni.oss-cn-shanghai.aliyuncs.com/comm/city-pca.json
options城市数据array
disabled是否禁用boolean
border是否带边框booleantrue
labelKeykey 标识booleanname
valueKeyvalue 标识booleancode
separator分隔符string"-"

事件

事件名称说明回调参数
change绑定值变化时触发的事件value

示例

<template>
	<cl-select-region v-model="city"></cl-select-region>
</template>

<script lang="ts" setup>
	import { ref } from "vue";
	const city = ref([]);
</script>
Last Updated: