config.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <?php
  2. declare(strict_types=1);
  3. return json_decode(<<<'JSON'
  4. [
  5. {
  6. "type": "input",
  7. "field": "Ftpkmcfxgdv6abc",
  8. "title": "输入框",
  9. "info": "",
  10. "$required": false,
  11. "_fc_id": "id_Ftjlmcfxgdv6acc",
  12. "name": "ref_F5gtmcfxgdv6adc",
  13. "display": true,
  14. "hidden": false,
  15. "_fc_drag_tag": "input"
  16. },
  17. {
  18. "type": "input",
  19. "field": "Fr3tmcfxgng8aec",
  20. "title": "多行输入框",
  21. "info": "",
  22. "$required": false,
  23. "props": {
  24. "type": "textarea"
  25. },
  26. "_fc_id": "id_Fss5mcfxgng8afc",
  27. "name": "ref_F2lomcfxgng8agc",
  28. "display": true,
  29. "hidden": false,
  30. "_fc_drag_tag": "textarea"
  31. },
  32. {
  33. "type": "input",
  34. "field": "Fmkamcfxgowcahc",
  35. "title": "密码输入框",
  36. "info": "",
  37. "$required": false,
  38. "props": {
  39. "type": "password"
  40. },
  41. "_fc_id": "id_Fvstmcfxgowcaic",
  42. "name": "ref_Fo74mcfxgowcajc",
  43. "display": true,
  44. "hidden": false,
  45. "_fc_drag_tag": "password"
  46. },
  47. {
  48. "type": "inputNumber",
  49. "field": "Fu76mcfxgqyyakc",
  50. "title": "计数器",
  51. "info": "",
  52. "$required": false,
  53. "_fc_id": "id_F229mcfxgqyyalc",
  54. "name": "ref_Fl2smcfxgqyyamc",
  55. "display": true,
  56. "hidden": false,
  57. "_fc_drag_tag": "inputNumber"
  58. },
  59. {
  60. "type": "radio",
  61. "field": "Fj5smcfxgshnanc",
  62. "title": "单选框",
  63. "info": "",
  64. "effect": {
  65. "fetch": ""
  66. },
  67. "$required": false,
  68. "options": [
  69. {
  70. "label": "选项01",
  71. "value": "1"
  72. },
  73. {
  74. "label": "选项02",
  75. "value": "2"
  76. },
  77. {
  78. "label": "选项03",
  79. "value": "3"
  80. }
  81. ],
  82. "_fc_id": "id_Fnxemcfxgshnaoc",
  83. "name": "ref_Fqhqmcfxgshnapc",
  84. "display": true,
  85. "hidden": false,
  86. "_fc_drag_tag": "radio"
  87. },
  88. {
  89. "type": "checkbox",
  90. "field": "Fl8wmcfxgxzoaqc",
  91. "title": "多选框",
  92. "info": "",
  93. "effect": {
  94. "fetch": ""
  95. },
  96. "$required": false,
  97. "options": [
  98. {
  99. "label": "选项01",
  100. "value": "1"
  101. },
  102. {
  103. "label": "选项02",
  104. "value": "2"
  105. },
  106. {
  107. "label": "选项03",
  108. "value": "3"
  109. }
  110. ],
  111. "_fc_id": "id_Fy3hmcfxgxzoarc",
  112. "name": "ref_Fm0hmcfxgxzoasc",
  113. "display": true,
  114. "hidden": false,
  115. "_fc_drag_tag": "checkbox"
  116. },
  117. {
  118. "type": "select",
  119. "field": "Fosbmcfxh084atc",
  120. "title": "选择器",
  121. "info": "",
  122. "effect": {
  123. "fetch": ""
  124. },
  125. "$required": false,
  126. "options": [
  127. {
  128. "label": "选项01",
  129. "value": "1"
  130. },
  131. {
  132. "label": "选项02",
  133. "value": "2"
  134. },
  135. {
  136. "label": "选项03",
  137. "value": "3"
  138. }
  139. ],
  140. "_fc_id": "id_Fbftmcfxh084auc",
  141. "name": "ref_F13rmcfxh084avc",
  142. "display": true,
  143. "hidden": false,
  144. "_fc_drag_tag": "select"
  145. },
  146. {
  147. "type": "switch",
  148. "field": "F9ytmcfxh634awc",
  149. "title": "开关",
  150. "info": "",
  151. "$required": false,
  152. "props": {
  153. "activeValue": true,
  154. "inactiveValue": false
  155. },
  156. "_fc_id": "id_Fji6mcfxh634axc",
  157. "name": "ref_F8dvmcfxh634ayc",
  158. "display": true,
  159. "hidden": false,
  160. "_fc_drag_tag": "switch"
  161. },
  162. {
  163. "type": "rate",
  164. "field": "Fs6rmcfxh75eazc",
  165. "title": "评分",
  166. "info": "",
  167. "$required": false,
  168. "_fc_id": "id_Ffnpmcfxh75eb0c",
  169. "name": "ref_Fu1zmcfxh75eb1c",
  170. "display": true,
  171. "hidden": false,
  172. "_fc_drag_tag": "rate",
  173. "value": 0
  174. },
  175. {
  176. "type": "timePicker",
  177. "field": "Fhbumcfxh8tkb2c",
  178. "title": "时间",
  179. "info": "",
  180. "$required": false,
  181. "_fc_id": "id_Fmzpmcfxh8tkb3c",
  182. "name": "ref_Fbvhmcfxh8tkb4c",
  183. "display": true,
  184. "hidden": false,
  185. "_fc_drag_tag": "timePicker"
  186. },
  187. {
  188. "type": "timePicker",
  189. "field": "F4xrmcfxhfs4b5c",
  190. "title": "时间区间",
  191. "info": "",
  192. "$required": false,
  193. "props": {
  194. "isRange": true
  195. },
  196. "_fc_id": "id_Fxo8mcfxhfs4b6c",
  197. "name": "ref_Fpzzmcfxhfs4b7c",
  198. "display": true,
  199. "hidden": false,
  200. "_fc_drag_tag": "timeRange"
  201. },
  202. {
  203. "type": "slider",
  204. "field": "Fnphmcfxhhk0b8c",
  205. "title": "滑块",
  206. "info": "",
  207. "$required": false,
  208. "_fc_id": "id_Faoymcfxhhk0b9c",
  209. "name": "ref_Fpclmcfxhhk0bac",
  210. "display": true,
  211. "hidden": false,
  212. "_fc_drag_tag": "slider"
  213. },
  214. {
  215. "type": "datePicker",
  216. "field": "F98bmcfxhiy9bbc",
  217. "title": "日期",
  218. "info": "",
  219. "$required": false,
  220. "_fc_id": "id_Flofmcfxhiy9bcc",
  221. "name": "ref_Fid0mcfxhiy9bdc",
  222. "display": true,
  223. "hidden": false,
  224. "_fc_drag_tag": "datePicker"
  225. },
  226. {
  227. "type": "datePicker",
  228. "field": "Fcpkmcfxhl99bec",
  229. "title": "日期区间",
  230. "info": "",
  231. "$required": false,
  232. "props": {
  233. "type": "datetimerange"
  234. },
  235. "_fc_id": "id_Fmktmcfxhl99bfc",
  236. "name": "ref_Fdaumcfxhl99bgc",
  237. "display": true,
  238. "hidden": false,
  239. "_fc_drag_tag": "dateRange"
  240. },
  241. {
  242. "type": "colorPicker",
  243. "field": "Fkp8mcfxhna4bhc",
  244. "title": "颜色选择器",
  245. "info": "",
  246. "$required": false,
  247. "_fc_id": "id_Fsjkmcfxhna4bic",
  248. "name": "ref_F7p6mcfxhna4bjc",
  249. "display": true,
  250. "hidden": false,
  251. "_fc_drag_tag": "colorPicker"
  252. },
  253. {
  254. "type": "cascader",
  255. "field": "F7j3mcfxhpkbbkc",
  256. "title": "级联选择器",
  257. "info": "",
  258. "effect": {
  259. "fetch": ""
  260. },
  261. "$required": false,
  262. "props": {
  263. "options": [
  264. {
  265. "label": "选项201",
  266. "value": "1",
  267. "children": [
  268. {
  269. "label": "选项101",
  270. "value": "2",
  271. "children": [
  272. {
  273. "label": "选项01",
  274. "value": "3"
  275. },
  276. {
  277. "label": "选项02",
  278. "value": "4"
  279. },
  280. {
  281. "label": "选项03",
  282. "value": "5"
  283. }
  284. ]
  285. },
  286. {
  287. "label": "选项102",
  288. "value": "6",
  289. "children": [
  290. {
  291. "label": "选项01",
  292. "value": "7"
  293. },
  294. {
  295. "label": "选项02",
  296. "value": "8"
  297. },
  298. {
  299. "label": "选项03",
  300. "value": "9"
  301. }
  302. ]
  303. },
  304. {
  305. "label": "选项103",
  306. "value": "10",
  307. "children": [
  308. {
  309. "label": "选项01",
  310. "value": "11"
  311. },
  312. {
  313. "label": "选项02",
  314. "value": "12"
  315. },
  316. {
  317. "label": "选项03",
  318. "value": "13"
  319. }
  320. ]
  321. }
  322. ]
  323. },
  324. {
  325. "label": "选项202",
  326. "value": "14",
  327. "children": [
  328. {
  329. "label": "选项101",
  330. "value": "15",
  331. "children": [
  332. {
  333. "label": "选项01",
  334. "value": "16"
  335. },
  336. {
  337. "label": "选项02",
  338. "value": "17"
  339. },
  340. {
  341. "label": "选项03",
  342. "value": "18"
  343. }
  344. ]
  345. },
  346. {
  347. "label": "选项102",
  348. "value": "19",
  349. "children": [
  350. {
  351. "label": "选项01",
  352. "value": "20"
  353. },
  354. {
  355. "label": "选项02",
  356. "value": "21"
  357. },
  358. {
  359. "label": "选项03",
  360. "value": "22"
  361. }
  362. ]
  363. },
  364. {
  365. "label": "选项103",
  366. "value": "23",
  367. "children": [
  368. {
  369. "label": "选项01",
  370. "value": "24"
  371. },
  372. {
  373. "label": "选项02",
  374. "value": "25"
  375. },
  376. {
  377. "label": "选项03",
  378. "value": "26"
  379. }
  380. ]
  381. }
  382. ]
  383. },
  384. {
  385. "label": "选项203",
  386. "value": "27",
  387. "children": [
  388. {
  389. "label": "选项101",
  390. "value": "28",
  391. "children": [
  392. {
  393. "label": "选项01",
  394. "value": "29"
  395. },
  396. {
  397. "label": "选项02",
  398. "value": "30"
  399. },
  400. {
  401. "label": "选项03",
  402. "value": "31"
  403. }
  404. ]
  405. },
  406. {
  407. "label": "选项102",
  408. "value": "32",
  409. "children": [
  410. {
  411. "label": "选项01",
  412. "value": "33"
  413. },
  414. {
  415. "label": "选项02",
  416. "value": "34"
  417. },
  418. {
  419. "label": "选项03",
  420. "value": "35"
  421. }
  422. ]
  423. },
  424. {
  425. "label": "选项103",
  426. "value": "36",
  427. "children": [
  428. {
  429. "label": "选项01",
  430. "value": "37"
  431. },
  432. {
  433. "label": "选项02",
  434. "value": "38"
  435. },
  436. {
  437. "label": "选项03",
  438. "value": "39"
  439. }
  440. ]
  441. }
  442. ]
  443. }
  444. ]
  445. },
  446. "_fc_id": "id_F484mcfxhpkbblc",
  447. "name": "ref_Fmvgmcfxhpkbbmc",
  448. "display": true,
  449. "hidden": false,
  450. "_fc_drag_tag": "cascader"
  451. },
  452. {
  453. "type": "upload",
  454. "field": "F4lsmcfxhrphbnc",
  455. "title": "上传",
  456. "info": "",
  457. "$required": false,
  458. "props": {
  459. "action": "/",
  460. "onSuccess": "[[FORM-CREATE-PREFIX-function anonymous(res,file\n) {\nfile.url = res.data.url;\n}-FORM-CREATE-SUFFIX]]"
  461. },
  462. "_fc_id": "id_F1ngmcfxhrphboc",
  463. "name": "ref_Ftf3mcfxhrphbpc",
  464. "display": true,
  465. "hidden": false,
  466. "_fc_drag_tag": "upload"
  467. },
  468. {
  469. "type": "elTransfer",
  470. "field": "Fjcnmcfxhwzybqc",
  471. "title": "穿梭框",
  472. "info": "",
  473. "$required": false,
  474. "props": {
  475. "data": [
  476. {
  477. "label": "选项01",
  478. "key": "1"
  479. },
  480. {
  481. "label": "选项02",
  482. "key": "2"
  483. },
  484. {
  485. "label": "选项03",
  486. "key": "3"
  487. }
  488. ]
  489. },
  490. "_fc_id": "id_Flx7mcfxhwzybrc",
  491. "name": "ref_F2n4mcfxhwzybsc",
  492. "display": true,
  493. "hidden": false,
  494. "_fc_drag_tag": "elTransfer"
  495. },
  496. {
  497. "type": "tree",
  498. "field": "F51amcfxi2isbtc",
  499. "title": "树形控件",
  500. "info": "",
  501. "effect": {
  502. "fetch": ""
  503. },
  504. "$required": false,
  505. "props": {
  506. "props": {
  507. "label": "label"
  508. },
  509. "showCheckbox": true,
  510. "nodeKey": "id",
  511. "data": [
  512. {
  513. "label": "选项201",
  514. "id": "1",
  515. "children": [
  516. {
  517. "label": "选项101",
  518. "id": "2",
  519. "children": [
  520. {
  521. "label": "选项01",
  522. "id": "3"
  523. },
  524. {
  525. "label": "选项02",
  526. "id": "4"
  527. },
  528. {
  529. "label": "选项03",
  530. "id": "5"
  531. }
  532. ]
  533. },
  534. {
  535. "label": "选项102",
  536. "id": "6",
  537. "children": [
  538. {
  539. "label": "选项01",
  540. "id": "7"
  541. },
  542. {
  543. "label": "选项02",
  544. "id": "8"
  545. },
  546. {
  547. "label": "选项03",
  548. "id": "9"
  549. }
  550. ]
  551. },
  552. {
  553. "label": "选项103",
  554. "id": "10",
  555. "children": [
  556. {
  557. "label": "选项01",
  558. "id": "11"
  559. },
  560. {
  561. "label": "选项02",
  562. "id": "12"
  563. },
  564. {
  565. "label": "选项03",
  566. "id": "13"
  567. }
  568. ]
  569. }
  570. ]
  571. },
  572. {
  573. "label": "选项202",
  574. "id": "14",
  575. "children": [
  576. {
  577. "label": "选项101",
  578. "id": "15",
  579. "children": [
  580. {
  581. "label": "选项01",
  582. "id": "16"
  583. },
  584. {
  585. "label": "选项02",
  586. "id": "17"
  587. },
  588. {
  589. "label": "选项03",
  590. "id": "18"
  591. }
  592. ]
  593. },
  594. {
  595. "label": "选项102",
  596. "id": "19",
  597. "children": [
  598. {
  599. "label": "选项01",
  600. "id": "20"
  601. },
  602. {
  603. "label": "选项02",
  604. "id": "21"
  605. },
  606. {
  607. "label": "选项03",
  608. "id": "22"
  609. }
  610. ]
  611. },
  612. {
  613. "label": "选项103",
  614. "id": "23",
  615. "children": [
  616. {
  617. "label": "选项01",
  618. "id": "24"
  619. },
  620. {
  621. "label": "选项02",
  622. "id": "25"
  623. },
  624. {
  625. "label": "选项03",
  626. "id": "26"
  627. }
  628. ]
  629. }
  630. ]
  631. },
  632. {
  633. "label": "选项203",
  634. "id": "27",
  635. "children": [
  636. {
  637. "label": "选项101",
  638. "id": "28",
  639. "children": [
  640. {
  641. "label": "选项01",
  642. "id": "29"
  643. },
  644. {
  645. "label": "选项02",
  646. "id": "30"
  647. },
  648. {
  649. "label": "选项03",
  650. "id": "31"
  651. }
  652. ]
  653. },
  654. {
  655. "label": "选项102",
  656. "id": "32",
  657. "children": [
  658. {
  659. "label": "选项01",
  660. "id": "33"
  661. },
  662. {
  663. "label": "选项02",
  664. "id": "34"
  665. },
  666. {
  667. "label": "选项03",
  668. "id": "35"
  669. }
  670. ]
  671. },
  672. {
  673. "label": "选项103",
  674. "id": "36",
  675. "children": [
  676. {
  677. "label": "选项01",
  678. "id": "37"
  679. },
  680. {
  681. "label": "选项02",
  682. "id": "38"
  683. },
  684. {
  685. "label": "选项03",
  686. "id": "39"
  687. }
  688. ]
  689. }
  690. ]
  691. }
  692. ]
  693. },
  694. "_fc_id": "id_F24hmcfxi2itbuc",
  695. "name": "ref_F99imcfxi2itbvc",
  696. "display": true,
  697. "hidden": false,
  698. "_fc_drag_tag": "tree"
  699. },
  700. {
  701. "type": "elTreeSelect",
  702. "field": "Fi81mcfxi6hqbwc",
  703. "title": "树形选择",
  704. "info": "",
  705. "effect": {
  706. "fetch": ""
  707. },
  708. "$required": false,
  709. "props": {
  710. "nodeKey": "value",
  711. "showCheckbox": true,
  712. "data": [
  713. {
  714. "label": "选项201",
  715. "value": "1",
  716. "children": [
  717. {
  718. "label": "选项101",
  719. "value": "2",
  720. "children": [
  721. {
  722. "label": "选项01",
  723. "value": "3"
  724. },
  725. {
  726. "label": "选项02",
  727. "value": "4"
  728. },
  729. {
  730. "label": "选项03",
  731. "value": "5"
  732. }
  733. ]
  734. },
  735. {
  736. "label": "选项102",
  737. "value": "6",
  738. "children": [
  739. {
  740. "label": "选项01",
  741. "value": "7"
  742. },
  743. {
  744. "label": "选项02",
  745. "value": "8"
  746. },
  747. {
  748. "label": "选项03",
  749. "value": "9"
  750. }
  751. ]
  752. },
  753. {
  754. "label": "选项103",
  755. "value": "10",
  756. "children": [
  757. {
  758. "label": "选项01",
  759. "value": "11"
  760. },
  761. {
  762. "label": "选项02",
  763. "value": "12"
  764. },
  765. {
  766. "label": "选项03",
  767. "value": "13"
  768. }
  769. ]
  770. }
  771. ]
  772. },
  773. {
  774. "label": "选项202",
  775. "value": "14",
  776. "children": [
  777. {
  778. "label": "选项101",
  779. "value": "15",
  780. "children": [
  781. {
  782. "label": "选项01",
  783. "value": "16"
  784. },
  785. {
  786. "label": "选项02",
  787. "value": "17"
  788. },
  789. {
  790. "label": "选项03",
  791. "value": "18"
  792. }
  793. ]
  794. },
  795. {
  796. "label": "选项102",
  797. "value": "19",
  798. "children": [
  799. {
  800. "label": "选项01",
  801. "value": "20"
  802. },
  803. {
  804. "label": "选项02",
  805. "value": "21"
  806. },
  807. {
  808. "label": "选项03",
  809. "value": "22"
  810. }
  811. ]
  812. },
  813. {
  814. "label": "选项103",
  815. "value": "23",
  816. "children": [
  817. {
  818. "label": "选项01",
  819. "value": "24"
  820. },
  821. {
  822. "label": "选项02",
  823. "value": "25"
  824. },
  825. {
  826. "label": "选项03",
  827. "value": "26"
  828. }
  829. ]
  830. }
  831. ]
  832. },
  833. {
  834. "label": "选项203",
  835. "value": "27",
  836. "children": [
  837. {
  838. "label": "选项101",
  839. "value": "28",
  840. "children": [
  841. {
  842. "label": "选项01",
  843. "value": "29"
  844. },
  845. {
  846. "label": "选项02",
  847. "value": "30"
  848. },
  849. {
  850. "label": "选项03",
  851. "value": "31"
  852. }
  853. ]
  854. },
  855. {
  856. "label": "选项102",
  857. "value": "32",
  858. "children": [
  859. {
  860. "label": "选项01",
  861. "value": "33"
  862. },
  863. {
  864. "label": "选项02",
  865. "value": "34"
  866. },
  867. {
  868. "label": "选项03",
  869. "value": "35"
  870. }
  871. ]
  872. },
  873. {
  874. "label": "选项103",
  875. "value": "36",
  876. "children": [
  877. {
  878. "label": "选项01",
  879. "value": "37"
  880. },
  881. {
  882. "label": "选项02",
  883. "value": "38"
  884. },
  885. {
  886. "label": "选项03",
  887. "value": "39"
  888. }
  889. ]
  890. }
  891. ]
  892. }
  893. ]
  894. },
  895. "_fc_id": "id_Fw27mcfxi6hqbxc",
  896. "name": "ref_Fwobmcfxi6hqbyc",
  897. "display": true,
  898. "hidden": false,
  899. "_fc_drag_tag": "elTreeSelect"
  900. },
  901. {
  902. "type": "fcEditor",
  903. "field": "Fl51mcfxi9aubzc",
  904. "title": "富文本框",
  905. "info": "",
  906. "$required": false,
  907. "_fc_id": "id_Fakqmcfxi9auc0c",
  908. "name": "ref_Fg9mmcfxi9auc1c",
  909. "display": true,
  910. "hidden": false,
  911. "_fc_drag_tag": "fcEditor"
  912. }
  913. ]
  914. JSON,true);