PickerDemo_en.svelte 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <!-- Picker Demo -->
  2. <script>
  3. import { Picker, Cell } from '../../../../packages/stdf';
  4. // In order to avoid the messy Demo page, the specific reference data is placed in the data.js file, and you can view the bottom of the page.
  5. import {
  6. someProvinceList,
  7. weekList,
  8. amOrPmList,
  9. timeList,
  10. cityList,
  11. linkageData,
  12. linkagDiffLabelKeyData,
  13. linkagCustomChildrenKeyData,
  14. } from './data_en';
  15. const datas = [{ data: someProvinceList }];
  16. const leftDatas = [{ data: someProvinceList, align: 'left' }];
  17. const showRow7Datas = [{ data: someProvinceList, showRow: 7 }];
  18. const init3Datas = [{ data: someProvinceList, initIndex: 3 }];
  19. const noAnimationDatas = [{ data: someProvinceList, useAnimation: false }];
  20. const customKeyDatas = [{ data: cityList, labelKey: 'cityName' }];
  21. const col3Datas = [{ data: weekList }, { data: amOrPmList }, { data: timeList }];
  22. const col3DiffAlignDatas = [
  23. { data: weekList, align: 'left' },
  24. { data: amOrPmList, align: 'center' },
  25. { data: timeList, align: 'right' },
  26. ];
  27. const col3DiffShowRowDatas = [{ data: weekList }, { data: amOrPmList, showRow: 3 }, { data: timeList, showRow: 7 }];
  28. const col3DiffFlexDatas = [
  29. { data: weekList, flex: 3 },
  30. { data: amOrPmList, flex: 1 },
  31. { data: timeList, flex: 2 },
  32. ];
  33. let visible1 = false;
  34. let visible2 = false;
  35. let visible3 = false;
  36. let visible4 = false;
  37. let visible5 = false;
  38. let visible6 = false;
  39. let visible7 = false;
  40. let visible8 = false;
  41. let visible9 = false;
  42. let visible10 = false;
  43. let visible11 = false;
  44. let visible12 = false;
  45. let visible13 = false;
  46. let visible14 = false;
  47. let visible15 = false;
  48. let visible16 = false;
  49. let visible17 = false;
  50. let visible18 = false;
  51. let visible19 = false;
  52. let visible20 = false;
  53. let visible21 = false;
  54. let visible22 = false;
  55. let currentDetail = 'please choose';
  56. const getCurrentDetailFunc = e => {
  57. currentDetail = e.detail.items[0].label;
  58. };
  59. let allItems = [];
  60. let allIndexs = [];
  61. const getAllDataFunc = e => {
  62. allItems = e.detail.items;
  63. allIndexs = e.detail.indexs;
  64. };
  65. </script>
  66. <div class="py-4">
  67. <Cell title="Basic usage" on:click={() => (visible1 = true)} />
  68. <Picker bind:visible={visible1} {datas} />
  69. <Cell title="Custom title" on:click={() => (visible2 = true)} />
  70. <Picker bind:visible={visible2} title="Please select province" {datas} />
  71. <Cell title="Visible line 7" on:click={() => (visible3 = true)} />
  72. <Picker bind:visible={visible3} datas={showRow7Datas} />
  73. <Cell title="Do not roll until the last selection item" on:click={() => (visible4 = true)} />
  74. <Picker bind:visible={visible4} {datas} autoScrollToLast={false} />
  75. <Cell
  76. title="The initial selection is always item 4"
  77. on:click={() => (visible5 = true)}
  78. subTitle="You need to disable automatic selection of the last selected item"
  79. />
  80. <Picker bind:visible={visible5} datas={init3Datas} autoScrollToLast={false} />
  81. <Cell title="Cancel animation when auto scrolling" on:click={() => (visible6 = true)} />
  82. <Picker bind:visible={visible6} datas={noAnimationDatas} />
  83. <Cell title="Customize the key value of the label" on:click={() => (visible7 = true)} />
  84. <Picker bind:visible={visible7} datas={customKeyDatas} title="Please select city" />
  85. <Cell title="The selected items are displayed on the right" detail={currentDetail} on:click={() => (visible8 = true)} />
  86. <Picker bind:visible={visible8} {datas} on:confirm={getCurrentDetailFunc} />
  87. <Cell title="Single column left justified" on:click={() => (visible20 = true)} />
  88. <Picker bind:visible={visible20} datas={leftDatas} />
  89. <Cell title="Multi-column selector" on:click={() => (visible9 = true)} />
  90. <Picker bind:visible={visible9} datas={col3Datas} />
  91. <Cell title="Number of visible rows for different columns" on:click={() => (visible10 = true)} />
  92. <Picker bind:visible={visible10} datas={col3DiffShowRowDatas} />
  93. <Cell title="flex ratio for different columns" on:click={() => (visible11 = true)} />
  94. <Picker bind:visible={visible11} datas={col3DiffFlexDatas} />
  95. <Cell title="Multiple columns with different alignments" on:click={() => (visible21 = true)} />
  96. <Picker bind:visible={visible21} datas={col3DiffAlignDatas} />
  97. <Cell title="Multilevel linkage" on:click={() => (visible12 = true)} />
  98. <Picker bind:visible={visible12} datas={linkageData} isLinkage />
  99. <Cell title="Multilevel linkage has different visible lines" on:click={() => (visible13 = true)} />
  100. <Picker bind:visible={visible13} datas={linkageData} linkageShowRows={[3, 5, 7]} isLinkage />
  101. <Cell title="Multistage linkage with different flex proportions" on:click={() => (visible14 = true)} />
  102. <Picker bind:visible={visible14} datas={linkageData} linkageFlexs={[1, 2, 3]} isLinkage />
  103. <Cell title="Multilevel linkage defines the key values of labels at each level" on:click={() => (visible15 = true)} />
  104. <Picker bind:visible={visible15} datas={linkagDiffLabelKeyData} linkageLabelKeys={['province', 'city', 'region']} isLinkage />
  105. <Cell title="Multilevel linkage You can customize key values for the upper and lower children" on:click={() => (visible16 = true)} />
  106. <Picker bind:visible={visible16} datas={linkagCustomChildrenKeyData} linkageChildrenKey="child" isLinkage />
  107. <Cell title="Linkage different alignment modes" on:click={() => (visible22 = true)} />
  108. <Picker bind:visible={visible22} datas={linkageData} linkageAligns={['right', 'center', 'left']} isLinkage />
  109. <Cell title="Multilevel linkage sets the initial selection for each column" on:click={() => (visible17 = true)} />
  110. <Picker bind:visible={visible17} datas={linkageData} linkageInitIndexs={[0, 1, 8]} isLinkage />
  111. <div class="px-4">
  112. {#if allItems.length}
  113. Currently selected:
  114. {#each allItems as item}
  115. <span class="mr-2 text-primary dark:text-dark">{item.label}</span>
  116. {/each}
  117. {:else}
  118. <div>Please select data</div>
  119. {/if}
  120. </div>
  121. <div class="px-4">
  122. {#if allIndexs.length}
  123. The index values of the current selected values in the column are:
  124. {#each allIndexs as index}
  125. <span class="mr-2 text-primary dark:text-dark">{index}</span>
  126. {/each}
  127. {:else}
  128. <div>Please select data</div>
  129. {/if}
  130. </div>
  131. <Cell title="Get selected data" on:click={() => (visible18 = true)} />
  132. <Picker bind:visible={visible18} datas={col3Datas} on:confirm={getAllDataFunc} />
  133. <Cell title="I want some rounded corners on the top" on:click={() => (visible19 = true)} />
  134. <Picker bind:visible={visible19} {datas} popup={{ radius: 'xl' }} />
  135. </div>
  136. <!-- data.js -->
  137. <!--
  138. const someProvinceList = [
  139. { label: 'Yunnan' },
  140. { label: 'Beijing' },
  141. { label: 'Guangdong' },
  142. { label: 'Chongqing' },
  143. { label: 'Sichuan' },
  144. { label: 'Hubei' },
  145. { label: 'Henan' },
  146. { label: 'Hunan' },
  147. { label: 'Shandong' },
  148. { label: 'Jiangsu' },
  149. { label: 'Zhejiang' },
  150. { label: 'Jiangxi' },
  151. { label: 'Anhui' },
  152. { label: 'Fujian' },
  153. ];
  154. const weekList = [
  155. { label: 'Monday' },
  156. { label: 'Tuesday' },
  157. { label: 'Wednesday' },
  158. { label: 'Thursday' },
  159. { label: 'Friday' },
  160. { label: 'Saturday' },
  161. { label: 'Sunday' },
  162. ];
  163. const amOrPmList = [{ label: 'AM' }, { label: 'PM' }];
  164. const timeList = [
  165. { label: '01:00' },
  166. { label: '02:00' },
  167. { label: '03:00' },
  168. { label: '04:00' },
  169. { label: '05:00' },
  170. { label: '06:00' },
  171. { label: '07:00' },
  172. { label: '08:00' },
  173. { label: '09:00' },
  174. { label: '10:00' },
  175. { label: '11:00' },
  176. { label: '12:00' },
  177. ];
  178. const cityList = [
  179. { cityName: 'kunming' },
  180. { cityName: 'qujing' },
  181. { cityName: 'yuxi' },
  182. { cityName: 'baoshan' },
  183. { cityName: 'zhaotong' },
  184. { cityName: 'lijiang' },
  185. { cityName: 'puer' },
  186. { cityName: 'lincang' },
  187. { cityName: 'chuxiong' },
  188. { cityName: 'honghe' },
  189. { cityName: 'wenshan' },
  190. ];
  191. const linkageData = [
  192. {
  193. label: 'Yunnan',
  194. children: [
  195. {
  196. label: 'Kunming',
  197. children: [
  198. { label: 'Panlong District' },
  199. { label: 'Wuhua District' },
  200. { label: 'Guandu District' },
  201. { label: 'Xishan District' },
  202. { label: 'Dongchuan District' },
  203. ],
  204. },
  205. {
  206. label: 'Qujing',
  207. children: [
  208. { label: 'Qilin District' },
  209. { label: 'Zhanyi District' },
  210. { label: 'Malong County' },
  211. { label: 'Luliang County' },
  212. { label: 'Shizong County' },
  213. { label: 'Luoping County' },
  214. ],
  215. },
  216. {
  217. label: 'Yuxi',
  218. children: [
  219. { label: 'Hongta District' },
  220. { label: 'Jiangchuan District' },
  221. { label: 'Chengjiang County' },
  222. { label: 'Tonghai County' },
  223. { label: 'Huaning County' },
  224. ],
  225. },
  226. {
  227. label: 'Baoshan',
  228. children: [
  229. { label: 'Longyang District' },
  230. { label: 'Shidian County' },
  231. { label: 'Longling County' },
  232. { label: 'Changning County' },
  233. { label: 'Tengchong City' },
  234. { label: 'Longling County' },
  235. ],
  236. },
  237. {
  238. label: 'Lijiang',
  239. children: [{ label: 'Gucheng District' }, { label: 'Yongsheng County' }, { label: 'Huaping County' }],
  240. },
  241. {
  242. label: "Pu'er",
  243. children: [
  244. { label: 'Simao District' },
  245. { label: "Ning'er Hani and Yi Autonomous County" },
  246. { label: 'Mojiang Hani Autonomous County' },
  247. { label: 'Jingdong Yi Autonomous County' },
  248. { label: 'Jinggu Dai and Yi Autonomous County' },
  249. ],
  250. },
  251. {
  252. label: 'Lincang',
  253. children: [
  254. { label: 'Linxia District' },
  255. { label: 'Fengqing County' },
  256. { label: 'Yun County' },
  257. { label: 'Yongde County' },
  258. { label: 'Zhenkang County' },
  259. ],
  260. },
  261. {
  262. label: 'Chuxiong',
  263. children: [
  264. { label: 'Chuxiong City' },
  265. { label: 'Shuangbai County' },
  266. { label: 'Mouding County' },
  267. { label: 'Nanhua County' },
  268. { label: "Yao'an County" },
  269. { label: 'Dayao County' },
  270. ],
  271. },
  272. {
  273. label: 'Honghe',
  274. children: [
  275. { label: 'Gejiu City' },
  276. { label: 'Kaiyuan City' },
  277. { label: 'Mengzi City' },
  278. { label: 'Mile City' },
  279. { label: 'Pingbian Miao Autonomous County' },
  280. ],
  281. },
  282. {
  283. label: 'Wenshan',
  284. children: [
  285. { label: 'Wenshan City' },
  286. { label: 'Yanshan County' },
  287. { label: 'Xichou County' },
  288. { label: 'Malipo County' },
  289. { label: 'Maguan County' },
  290. { label: 'Qiubei County' },
  291. { label: 'Guangnan County' },
  292. { label: 'Funing County' },
  293. ],
  294. },
  295. ],
  296. },
  297. {
  298. label: 'Guangdong',
  299. children: [
  300. {
  301. label: 'Guangzhou',
  302. children: [
  303. { label: 'Tianhe District' },
  304. { label: 'Haizhu District' },
  305. { label: 'Liwan District' },
  306. { label: 'Yuexiu District' },
  307. { label: 'Baiyun District' },
  308. { label: 'Huangpu District' },
  309. ],
  310. },
  311. {
  312. label: 'Shenzhen',
  313. children: [
  314. { label: 'Luohu District' },
  315. { label: 'Futian District' },
  316. { label: 'Nanshan District' },
  317. { label: "Bao'an District" },
  318. { label: 'Longgang District' },
  319. { label: 'Yantian District' },
  320. ],
  321. },
  322. {
  323. label: 'Zhuhai',
  324. children: [{ label: 'Xiangzhou District' }, { label: 'Doumen District' }, { label: 'Jinwan District' }],
  325. },
  326. {
  327. label: 'Shantou',
  328. children: [
  329. { label: 'Longhu District' },
  330. { label: 'Jinping District' },
  331. { label: 'Haojiang District' },
  332. { label: 'Chaoyang District' },
  333. { label: "Chao'an District" },
  334. { label: 'Chenghai District' },
  335. ],
  336. },
  337. {
  338. label: 'Foshan',
  339. children: [
  340. { label: 'Chancheng District' },
  341. { label: 'Nanhai District' },
  342. { label: 'Shunde District' },
  343. { label: 'Sanshui District' },
  344. { label: 'Gaoming District' },
  345. ],
  346. },
  347. ],
  348. },
  349. {
  350. label: 'Sichuan',
  351. children: [
  352. {
  353. label: 'Chengdu',
  354. children: [
  355. { label: 'Jinjiang District' },
  356. { label: 'Qingyang District' },
  357. { label: 'Jinniu District' },
  358. { label: 'Wuhou District' },
  359. { label: 'Chenghua District' },
  360. { label: 'Longquanyi District' },
  361. ],
  362. },
  363. {
  364. label: 'Mianyang',
  365. children: [
  366. { label: 'Fucheng District' },
  367. { label: 'Youxian District' },
  368. { label: 'Anzhou District' },
  369. { label: 'Santai County' },
  370. { label: 'Yanting County' },
  371. { label: 'Zitong County' },
  372. ],
  373. },
  374. {
  375. label: 'Zigong',
  376. children: [
  377. { label: 'Ziliujing District' },
  378. { label: 'Gongjing District' },
  379. { label: "Da'an District" },
  380. { label: 'Yantan District' },
  381. { label: 'Rong County' },
  382. { label: 'Fushun County' },
  383. ],
  384. },
  385. {
  386. label: 'Panzhihua',
  387. children: [
  388. { label: 'Dong District' },
  389. { label: 'Xi District' },
  390. { label: 'Renhe District' },
  391. { label: 'Miyi County' },
  392. { label: 'Yanbian County' },
  393. ],
  394. },
  395. ],
  396. },
  397. {
  398. label: 'Beijing',
  399. children: [
  400. {
  401. label: 'Beijing City',
  402. children: [
  403. { label: 'Dongcheng District' },
  404. { label: 'Xicheng District' },
  405. { label: 'Chaoyang District' },
  406. { label: 'Fengtai District' },
  407. { label: 'Shijingshan District' },
  408. { label: 'Haidian District' },
  409. ],
  410. },
  411. ],
  412. },
  413. {
  414. label: 'Zhejiang',
  415. children: [
  416. {
  417. label: 'Hangzhou',
  418. children: [
  419. { label: 'Shangcheng District' },
  420. { label: 'Xiacheng District' },
  421. { label: 'Jianggan District' },
  422. { label: 'Gongshu District' },
  423. { label: 'Xihu District' },
  424. { label: 'Binjiang District' },
  425. ],
  426. },
  427. {
  428. label: 'Ningbo',
  429. children: [
  430. { label: 'Haishu District' },
  431. { label: 'Jiangdong District' },
  432. { label: 'Jiangbei District' },
  433. { label: 'Beilun District' },
  434. { label: 'Zhenhai District' },
  435. { label: 'Yinzhou District' },
  436. ],
  437. },
  438. {
  439. label: 'Wenzhou',
  440. children: [
  441. { label: 'Lucheng District' },
  442. { label: 'Longwan District' },
  443. { label: 'Ouhai District' },
  444. { label: 'Dongtou District' },
  445. { label: 'Yongjia County' },
  446. { label: 'Pingyang County' },
  447. ],
  448. },
  449. {
  450. label: 'Jiaxing',
  451. children: [
  452. { label: 'Nanhu District' },
  453. { label: 'Xiuzhou District' },
  454. { label: 'Jiashan County' },
  455. { label: 'Haiyan County' },
  456. { label: 'Haining City' },
  457. { label: 'Pinghu City' },
  458. ],
  459. },
  460. {
  461. label: 'Huzhou',
  462. children: [
  463. { label: 'Wuxing District' },
  464. { label: 'Nanxun District' },
  465. { label: 'Deqing County' },
  466. { label: 'Changxing County' },
  467. { label: 'Anji County' },
  468. ],
  469. },
  470. ],
  471. },
  472. ];
  473. const linkagDiffLabelKeyData = [
  474. {
  475. province: 'Yunnan',
  476. children: [
  477. {
  478. city: 'Kunming',
  479. children: [
  480. { region: 'Panlong Qu' },
  481. { region: 'Wuhua Qu' },
  482. { region: 'Guandu Qu' },
  483. { region: 'Xishan Qu' },
  484. { region: 'Dongchuan Qu' },
  485. { region: 'Chenggong Qu' },
  486. { region: 'Jinning Qu' },
  487. ],
  488. },
  489. {
  490. city: 'Qujing',
  491. children: [
  492. { region: 'Qilin Qu' },
  493. { region: 'Zhanyi Qu' },
  494. { region: 'Malong Xian' },
  495. { region: 'Luliang Xian' },
  496. { region: 'Shizong Xian' },
  497. { region: 'Luoping Xian' },
  498. ],
  499. },
  500. {
  501. city: 'Yuxi',
  502. children: [
  503. { region: 'Hongta Qu' },
  504. { region: 'Jiangchuan Qu' },
  505. { region: 'Chengjiang Xian' },
  506. { region: 'Tonghai Xian' },
  507. { region: 'Huaning Xian' },
  508. { region: 'Yimen Xian' },
  509. ],
  510. },
  511. ],
  512. },
  513. {
  514. province: 'Guizhou',
  515. children: [
  516. {
  517. city: 'Guiyang',
  518. children: [
  519. { region: 'Nanming Qu' },
  520. { region: 'Yunyan Qu' },
  521. { region: 'Huaxi Qu' },
  522. { region: 'Wudang Qu' },
  523. { region: 'Baiyun Qu' },
  524. { region: 'Guanshanhu Qu' },
  525. ],
  526. },
  527. {
  528. city: 'Zunyi',
  529. children: [
  530. { region: 'Honghuagang Qu' },
  531. { region: 'Huichuan Qu' },
  532. { region: 'Bozhou Qu' },
  533. { region: 'Tongzi Xian' },
  534. { region: 'Suiyang Xian' },
  535. { region: 'Zhengan Xian' },
  536. ],
  537. },
  538. {
  539. city: 'Liupanshui',
  540. children: [
  541. { region: 'Zhongshan Qu' },
  542. { region: 'Liuzhi Special District' },
  543. { region: 'Shuicheng Xian' },
  544. { region: 'Pan Xian' },
  545. ],
  546. },
  547. ],
  548. },
  549. {
  550. province: 'Sichuan',
  551. children: [
  552. {
  553. city: 'Chengdu',
  554. children: [
  555. { region: 'Jinjiang Qu' },
  556. { region: 'Qingyang Qu' },
  557. { region: 'Jinniu Qu' },
  558. { region: 'Wuhou Qu' },
  559. { region: 'Chenghua Qu' },
  560. { region: 'Longquanyi Qu' },
  561. ],
  562. },
  563. {
  564. city: 'Mianyang',
  565. children: [
  566. { region: 'Fucheng Qu' },
  567. { region: 'Youxian Qu' },
  568. { region: 'Anzhou Qu' },
  569. { region: 'Santai Xian' },
  570. { region: 'Yanling Xian' },
  571. { region: 'Zitong Xian' },
  572. ],
  573. },
  574. {
  575. city: 'Panzhihua',
  576. children: [
  577. { region: 'Dongqu' },
  578. { region: 'Xiqu' },
  579. { region: 'Renhe Qu' },
  580. { region: 'Miyi Xian' },
  581. { region: 'Yanbian Xian' },
  582. ],
  583. },
  584. ],
  585. },
  586. {
  587. province: 'Beijing',
  588. children: [
  589. {
  590. city: 'Beijing',
  591. children: [
  592. { region: 'Dongcheng Qu' },
  593. { region: 'Xicheng Qu' },
  594. { region: 'Chaoyang Qu' },
  595. { region: 'Fengtai Qu' },
  596. { region: 'Shijingshan Qu' },
  597. { region: 'Haidian Qu' },
  598. ],
  599. },
  600. ],
  601. },
  602. ];
  603. const linkagCustomChildrenKeyData = [
  604. {
  605. label: 'YunNan',
  606. child: [
  607. {
  608. label: 'KunMing',
  609. child: [
  610. { label: 'PanLongQu' },
  611. { label: 'WuHuaQu' },
  612. { label: 'GuanDuQu' },
  613. { label: 'XiShanQu' },
  614. { label: 'DongChuanQu' },
  615. { label: 'ChengGongQu' },
  616. { label: 'JinNingQu' },
  617. ],
  618. },
  619. {
  620. label: 'QuJing',
  621. child: [
  622. { label: 'QiLinQu' },
  623. { label: 'ZhanYiQu' },
  624. { label: 'MaLongXian' },
  625. { label: 'LuLiangXian' },
  626. { label: 'ShiZongXian' },
  627. { label: 'LuoPingXian' },
  628. ],
  629. },
  630. {
  631. label: 'YuXi',
  632. child: [
  633. { label: 'HongTaQu' },
  634. { label: 'JiangChuanQu' },
  635. { label: 'ChengJiangXian' },
  636. { label: 'TongHaiXian' },
  637. { label: 'HuaNingXian' },
  638. { label: 'YiMenXian' },
  639. ],
  640. },
  641. ],
  642. },
  643. {
  644. label: 'GuiZhou',
  645. child: [
  646. {
  647. label: 'GuiYang',
  648. child: [
  649. { label: 'NanMingQu' },
  650. { label: 'YunYanQu' },
  651. { label: 'HuaXiQu' },
  652. { label: 'WuDangQu' },
  653. { label: 'BaiYunQu' },
  654. { label: 'GuanShanHuQu' },
  655. ],
  656. },
  657. {
  658. label: 'ZunYi',
  659. child: [
  660. { label: 'HongHuaGangQu' },
  661. { label: 'HuiChuanQu' },
  662. { label: 'BoZhouQu' },
  663. { label: 'TongZiXian' },
  664. { label: 'SuiYangXian' },
  665. { label: 'ZhengAnXian' },
  666. ],
  667. },
  668. {
  669. label: 'LiuPanShui',
  670. child: [{ label: 'ZhongShanQu' }, { label: 'LiuZhiTeQu' }, { label: 'ShuiChengXian' }, { label: 'PanXian' }],
  671. },
  672. ],
  673. },
  674. {
  675. label: 'SiChuan',
  676. child: [
  677. {
  678. label: 'ChengDu',
  679. child: [
  680. { label: 'JinJiangQu' },
  681. { label: 'QingYangQu' },
  682. { label: 'JinNiuQu' },
  683. { label: 'WuHouQu' },
  684. { label: 'ChengHuaQu' },
  685. { label: 'LongQuanYiQu' },
  686. ],
  687. },
  688. {
  689. label: 'MianYang',
  690. child: [
  691. { label: 'FuChengQu' },
  692. { label: 'YouXianQu' },
  693. { label: 'AnZhouQu' },
  694. { label: 'SanTaiXian' },
  695. { label: 'YanTingXian' },
  696. { label: 'ZiTongXian' },
  697. ],
  698. },
  699. {
  700. label: 'PanZhiHua',
  701. child: [{ label: 'DongQu' }, { label: 'XiQu' }, { label: 'RenHeQu' }, { label: 'MiYiXian' }, { label: 'YanBianXian' }],
  702. },
  703. ],
  704. },
  705. {
  706. label: 'BeiJing',
  707. child: [
  708. {
  709. label: 'BeiJing',
  710. child: [
  711. { label: 'DongChengQu' },
  712. { label: 'XiChengQu' },
  713. { label: 'ChaoYangQu' },
  714. { label: 'FengTaiQu' },
  715. { label: 'ShiJingShanQu' },
  716. { label: 'HaiDianQu' },
  717. ],
  718. },
  719. ],
  720. },
  721. {
  722. label: 'ZheJiang',
  723. child: [
  724. {
  725. label: 'HangZhou',
  726. child: [
  727. { label: 'XiHuQu' },
  728. { label: 'ShangChengQu' },
  729. { label: 'XiaChengQu' },
  730. { label: 'JiangGanQu' },
  731. { label: 'GongShuQu' },
  732. { label: 'BinJiangQu' },
  733. ],
  734. },
  735. {
  736. label: 'NingBo',
  737. child: [
  738. { label: 'HaiShuQu' },
  739. { label: 'JiangDongQu' },
  740. { label: 'JiangBeiQu' },
  741. { label: 'BeiLunQu' },
  742. { label: 'ZhenHaiQu' },
  743. { label: 'YinZhouQu' },
  744. ],
  745. },
  746. {
  747. label: 'WenZhou',
  748. child: [
  749. { label: 'LuChengQu' },
  750. { label: 'LongWanQu' },
  751. { label: 'OuHaiQu' },
  752. { label: 'DongTouQu' },
  753. { label: 'YongJiaXian' },
  754. { label: 'PingYangXian' },
  755. ],
  756. },
  757. ],
  758. },
  759. ];
  760. export { someProvinceList, weekList, amOrPmList, timeList, cityList, linkageData, linkagDiffLabelKeyData, linkagCustomChildrenKeyData };
  761. -->