企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 地区联动 > 图片示例: ![](https://img.kancloud.cn/c8/c0/c8c0820bbfc1a3f0dbd03e1541a9aedd_1920x903.png) > 配置项 | key | 类型 | 是否必须 | 说明 | | --- | --- | --- | --- | | type | string | 是 | 固定值:`area` | | 通用配置... | | acc | string | 否 | 精度,可选值:province、city、district(默认),分别表示可选择:省份、省份/城市、省份/城市/区县 | | disabled | bool | 否 | 禁用,默认false | > 字段值 示例:北京 / 北京市 / 东城区`value=['province'=>'110000','city'=>'110100','district'=>'110101']` > 代码示例: ~~~ $builder=YF('general_example')->tab([ 'base'=>'基础']) ->field(function($tab){ $field=[ 'area_test'=>[ 'title'=>'地址', 'type'=>'area', 'verify'=>'require|area:district' ], ]; return $field; }) ~~~