Home > sic-util > city_options
city_options() function
城市选择器 组件内使用 options={cityOptions} 引入省市区
Signature:
typescript
city_options: (level?: string) => ({
label: string;
value: string;
children?: undefined;
} | {
label: string;
value: string;
children: {
label: string;
value: string;
}[];
})[]
Parameters
Parameter | Type | Description |
---|---|---|
level | string | (Optional) |
({ label: string; value: string; children?: undefined; } | { label: string; value: string; children: { label: string; value: string; }[]; })[]