componentsConfig.js 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322
  1. export const basicComponents = [
  2. {
  3. type: 'input',
  4. icon: 'icon-input',
  5. options: {
  6. width: '',
  7. defaultValue: '',
  8. required: false,
  9. requiredMessage: '',
  10. dataType: '',
  11. dataTypeCheck: false,
  12. dataTypeMessage: '',
  13. pattern: '',
  14. patternCheck: false,
  15. patternMessage: '',
  16. validatorCheck: false,
  17. validator: '',
  18. placeholder: '',
  19. customClass: '',
  20. disabled: false,
  21. labelWidth: 100,
  22. isLabelWidth: false,
  23. hidden: false,
  24. dataBind: true,
  25. showPassword: false,
  26. clearable: false,
  27. maxlength: '',
  28. showWordLimit: false,
  29. customProps: {},
  30. tip: '',
  31. extendProps: {}
  32. },
  33. events: {
  34. onMounted: '',
  35. onChange: '',
  36. onFocus: '',
  37. onBlur: '',
  38. }
  39. },
  40. {
  41. type: 'textarea',
  42. icon: 'icon-diy-com-textarea',
  43. options: {
  44. width: '',
  45. defaultValue: '',
  46. required: false,
  47. requiredMessage: '',
  48. disabled: false,
  49. pattern: '',
  50. patternMessage: '',
  51. validatorCheck: false,
  52. validator: '',
  53. placeholder: '',
  54. customClass: '',
  55. labelWidth: 100,
  56. isLabelWidth: false,
  57. hidden: false,
  58. dataBind: true,
  59. clearable: false,
  60. maxlength: '',
  61. showWordLimit: false,
  62. rows: 2,
  63. autosize: false,
  64. customProps: {},
  65. tip: '',
  66. extendProps: {}
  67. },
  68. events: {
  69. onMounted: '',
  70. onChange: '',
  71. onFocus: '',
  72. onBlur: ''
  73. }
  74. },
  75. {
  76. type: 'number',
  77. icon: 'icon-number',
  78. options: {
  79. width: '',
  80. required: false,
  81. requiredMessage: '',
  82. validatorCheck: false,
  83. validator: '',
  84. defaultValue: 0,
  85. min: 0,
  86. max: 9,
  87. step: 1,
  88. disabled: false,
  89. controls: true,
  90. controlsPosition: '',
  91. customClass: '',
  92. labelWidth: 100,
  93. isLabelWidth: false,
  94. hidden: false,
  95. dataBind: true,
  96. precision: 0,
  97. customProps: {},
  98. tip: '',
  99. extendProps: {}
  100. },
  101. events: {
  102. onMounted: '',
  103. onChange: '',
  104. onFocus: '',
  105. onBlur: ''
  106. }
  107. },
  108. {
  109. type: 'radio',
  110. icon: 'icon-radio-active',
  111. options: {
  112. inline: false,
  113. defaultValue: '',
  114. showLabel: false,
  115. options: [
  116. {
  117. value: 'Option 1',
  118. label: 'Option 1'
  119. },
  120. {
  121. value: 'Option 2',
  122. label: 'Option 2'
  123. },
  124. {
  125. value: 'Option 3',
  126. label: 'Option 3'
  127. }
  128. ],
  129. required: false,
  130. requiredMessage: '',
  131. validatorCheck: false,
  132. validator: '',
  133. width: '',
  134. remote: false,
  135. remoteType: 'datasource',
  136. remoteOption: '',
  137. remoteOptions: [],
  138. props: {
  139. value: 'value',
  140. label: 'label'
  141. },
  142. remoteFunc: '',
  143. customClass: '',
  144. labelWidth: 100,
  145. isLabelWidth: false,
  146. hidden: false,
  147. dataBind: true,
  148. disabled: false,
  149. customProps: {},
  150. tip: '',
  151. extendProps: {}
  152. },
  153. events: {
  154. onMounted: '',
  155. onChange: ''
  156. }
  157. },
  158. {
  159. type: 'checkbox',
  160. icon: 'icon-check-box',
  161. options: {
  162. inline: false,
  163. defaultValue: [],
  164. showLabel: false,
  165. options: [
  166. {
  167. value: 'Option 1'
  168. },
  169. {
  170. value: 'Option 2'
  171. },
  172. {
  173. value: 'Option 3'
  174. }
  175. ],
  176. required: false,
  177. requiredMessage: '',
  178. validatorCheck: false,
  179. validator: '',
  180. width: '',
  181. remote: false,
  182. remoteType: 'datasource',
  183. remoteOption: '',
  184. remoteOptions: [],
  185. props: {
  186. value: 'value',
  187. label: 'label'
  188. },
  189. remoteFunc: '',
  190. customClass: '',
  191. labelWidth: 100,
  192. isLabelWidth: false,
  193. hidden: false,
  194. dataBind: true,
  195. disabled: false,
  196. customProps: {},
  197. tip: '',
  198. extendProps: {}
  199. },
  200. events: {
  201. onMounted: '',
  202. onChange: ''
  203. }
  204. },
  205. {
  206. type: 'select',
  207. icon: 'icon-select',
  208. options: {
  209. defaultValue: '',
  210. multiple: false,
  211. disabled: false,
  212. clearable: false,
  213. placeholder: '',
  214. required: false,
  215. requiredMessage: '',
  216. validatorCheck: false,
  217. validator: '',
  218. showLabel: false,
  219. width: '',
  220. options: [
  221. {
  222. value: 'Option 1'
  223. },
  224. {
  225. value: 'Option 2'
  226. },{
  227. value: 'Option 3'
  228. }
  229. ],
  230. remote: false,
  231. remoteType: 'datasource',
  232. remoteOption: '',
  233. filterable: false,
  234. remoteOptions: [],
  235. props: {
  236. value: 'value',
  237. label: 'label'
  238. },
  239. remoteFunc: '',
  240. customClass: '',
  241. labelWidth: 100,
  242. isLabelWidth: false,
  243. hidden: false,
  244. dataBind: true,
  245. customProps: {},
  246. tip: '',
  247. extendProps: {}
  248. },
  249. events: {
  250. onMounted: '',
  251. onChange: '',
  252. onFocus: '',
  253. onBlur: ''
  254. }
  255. },
  256. {
  257. type: 'time',
  258. icon: 'icon-time',
  259. options: {
  260. defaultValue: '',
  261. readonly: false,
  262. disabled: false,
  263. editable: false,
  264. clearable: true,
  265. placeholder: '',
  266. startPlaceholder: '',
  267. endPlaceholder: '',
  268. isRange: false,
  269. arrowControl: false,
  270. format: 'HH:mm:ss',
  271. required: false,
  272. requiredMessage: '',
  273. validatorCheck: false,
  274. validator: '',
  275. width: '',
  276. customClass: '',
  277. labelWidth: 100,
  278. isLabelWidth: false,
  279. hidden: false,
  280. dataBind: true,
  281. customProps: {},
  282. tip: '',
  283. extendProps: {}
  284. },
  285. events: {
  286. onMounted: '',
  287. onChange: '',
  288. onFocus: '',
  289. onBlur: ''
  290. }
  291. },
  292. {
  293. type: 'date',
  294. icon: 'icon-date',
  295. options: {
  296. defaultValue: '',
  297. readonly: false,
  298. disabled: false,
  299. editable: false,
  300. clearable: true,
  301. placeholder: '',
  302. startPlaceholder: '',
  303. endPlaceholder: '',
  304. type: 'date',
  305. format: 'YYYY-MM-DD',
  306. timestamp: false,
  307. required: false,
  308. requiredMessage: '',
  309. validatorCheck: false,
  310. validator: '',
  311. width: '',
  312. customClass: '',
  313. labelWidth: 100,
  314. isLabelWidth: false,
  315. hidden: false,
  316. dataBind: true,
  317. customProps: {},
  318. tip: '',
  319. extendProps: {}
  320. },
  321. events: {
  322. onMounted: '',
  323. onChange: '',
  324. onFocus: '',
  325. onBlur: ''
  326. }
  327. },
  328. {
  329. type: 'rate',
  330. icon: 'icon-pingfen1',
  331. options: {
  332. defaultValue: null,
  333. max: 5,
  334. disabled: false,
  335. allowHalf: false,
  336. required: false,
  337. requiredMessage: '',
  338. validatorCheck: false,
  339. validator: '',
  340. customClass: '',
  341. labelWidth: 100,
  342. isLabelWidth: false,
  343. hidden: false,
  344. dataBind: true,
  345. showScore: false,
  346. width: '',
  347. customProps: {},
  348. tip: '',
  349. extendProps: {}
  350. },
  351. events: {
  352. onMounted: '',
  353. onChange: ''
  354. }
  355. },
  356. {
  357. type: 'color',
  358. icon: 'icon-color',
  359. options: {
  360. defaultValue: '',
  361. disabled: false,
  362. showAlpha: false,
  363. required: false,
  364. requiredMessage: '',
  365. validatorCheck: false,
  366. validator: '',
  367. customClass: '',
  368. labelWidth: 100,
  369. isLabelWidth: false,
  370. hidden: false,
  371. dataBind: true,
  372. width: '',
  373. customProps: {},
  374. tip: '',
  375. extendProps: {}
  376. },
  377. events: {
  378. onMounted: '',
  379. onChange: ''
  380. }
  381. },
  382. {
  383. type: 'switch',
  384. icon: 'icon-switch',
  385. options: {
  386. defaultValue: false,
  387. required: false,
  388. requiredMessage: '',
  389. validatorCheck: false,
  390. validator: '',
  391. disabled: false,
  392. customClass: '',
  393. labelWidth: 100,
  394. isLabelWidth: false,
  395. hidden: false,
  396. dataBind: true,
  397. width: '',
  398. customProps: {},
  399. tip: '',
  400. extendProps: {}
  401. },
  402. events: {
  403. onMounted: '',
  404. onChange: ''
  405. }
  406. },
  407. {
  408. type: 'slider',
  409. icon: 'icon-slider',
  410. options: {
  411. defaultValue: 0,
  412. disabled: false,
  413. required: false,
  414. requiredMessage: '',
  415. validatorCheck: false,
  416. validator: '',
  417. min: 0,
  418. max: 100,
  419. step: 1,
  420. showInput: false,
  421. range: false,
  422. width: '',
  423. customClass: '',
  424. labelWidth: 100,
  425. isLabelWidth: false,
  426. hidden: false,
  427. dataBind: true,
  428. customProps: {},
  429. tip: '',
  430. extendProps: {}
  431. },
  432. events: {
  433. onMounted: '',
  434. onChange: ''
  435. }
  436. },
  437. {
  438. type: 'text',
  439. icon: 'icon-wenzishezhi-',
  440. options: {
  441. defaultValue: 'This is a text',
  442. customClass: '',
  443. labelWidth: 100,
  444. isLabelWidth: false,
  445. hidden: false,
  446. dataBind: true,
  447. required: false,
  448. validatorCheck: false,
  449. validator: '',
  450. width: '',
  451. tip: ''
  452. },
  453. events: {
  454. onMounted: '',
  455. onChange: ''
  456. }
  457. },
  458. {
  459. type: 'html',
  460. icon: 'icon-html',
  461. options: {
  462. defaultValue: '<b style="color: red;">\n\tThis is a HTML5\n</b>',
  463. labelWidth: 100,
  464. isLabelWidth: false,
  465. hidden: false,
  466. dataBind: true,
  467. required: false,
  468. validatorCheck: false,
  469. validator: '',
  470. width: '',
  471. tip: ''
  472. },
  473. events: {
  474. onMounted: '',
  475. onChange: ''
  476. }
  477. },
  478. {
  479. type: 'button',
  480. icon: 'icon-button',
  481. options: {
  482. customClass: '',
  483. disabled: false,
  484. labelWidth: 100,
  485. isLabelWidth: false,
  486. hideLabel: true,
  487. hidden: false,
  488. buttonSize: 'default',
  489. buttonType: '',
  490. buttonPlain: false,
  491. buttonRound: false,
  492. buttonCircle: false,
  493. buttonName: 'Button',
  494. width: '',
  495. customProps: {},
  496. tip: '',
  497. extendProps: {}
  498. },
  499. events: {
  500. onMounted: '',
  501. onClick: ''
  502. }
  503. },
  504. {
  505. type: 'link',
  506. icon: 'icon-lianjie',
  507. options: {
  508. customClass: '',
  509. disabled: false,
  510. labelWidth: 100,
  511. isLabelWidth: false,
  512. hideLabel: false,
  513. hidden: false,
  514. linkType: 'default',
  515. linkName: 'Link',
  516. underline: true,
  517. blank: true,
  518. href: '',
  519. customProps: {},
  520. tip: '',
  521. extendProps: {}
  522. },
  523. events: {
  524. onMounted: '',
  525. onClick: ''
  526. }
  527. },
  528. {
  529. type: 'cascader',
  530. icon: 'icon-jilianxuanze',
  531. options: {
  532. defaultValue: [],
  533. width: '',
  534. placeholder: '',
  535. disabled: false,
  536. clearable: false,
  537. options: [
  538. {
  539. value: 'Option 1',
  540. label: 'Option 1',
  541. children: [
  542. {value: 'Option 1 - children', label: 'Option 1 - children'}
  543. ]
  544. },
  545. {
  546. value: 'Option 2',
  547. label: 'Option 2',
  548. children: [
  549. {value: 'Option 2 - children', label: 'Option 2 - children'}
  550. ]
  551. },{
  552. value: 'Option 3',
  553. label: 'Option 3'
  554. }
  555. ],
  556. remote: false,
  557. remoteType: 'datasource',
  558. remoteOption: '',
  559. remoteOptions: [],
  560. props: {
  561. value: 'value',
  562. label: 'label',
  563. children: 'children'
  564. },
  565. remoteFunc: '',
  566. customClass: '',
  567. labelWidth: 100,
  568. isLabelWidth: false,
  569. hidden: false,
  570. dataBind: true,
  571. required: false,
  572. validatorCheck: false,
  573. validator: '',
  574. multiple: false,
  575. filterable: false,
  576. checkStrictly: false,
  577. customProps: {},
  578. tip: '',
  579. extendProps: {}
  580. },
  581. events: {
  582. onMounted: '',
  583. onChange: '',
  584. onFocus: '',
  585. onBlur: ''
  586. }
  587. },
  588. {
  589. type: 'treeselect',
  590. icon: 'icon-shuxuanzeqi',
  591. options: {
  592. defaultValue: [],
  593. width: '',
  594. placeholder: '',
  595. disabled: false,
  596. clearable: false,
  597. options: [
  598. {
  599. value: 'Option 1',
  600. label: 'Option 1',
  601. children: [
  602. {value: 'Option 1 - children', label: 'Option 1 - children'}
  603. ]
  604. },
  605. {
  606. value: 'Option 2',
  607. label: 'Option 2',
  608. children: [
  609. {value: 'Option 2 - children', label: 'Option 2 - children'}
  610. ]
  611. },{
  612. value: 'Option 3',
  613. label: 'Option 3'
  614. }
  615. ],
  616. remote: false,
  617. remoteType: 'datasource',
  618. remoteOption: '',
  619. remoteOptions: [],
  620. props: {
  621. value: 'value',
  622. label: 'label',
  623. children: 'children'
  624. },
  625. remoteFunc: '',
  626. customClass: '',
  627. labelWidth: 100,
  628. isLabelWidth: false,
  629. hidden: false,
  630. dataBind: true,
  631. required: false,
  632. validatorCheck: false,
  633. validator: '',
  634. multiple: false,
  635. filterable: false,
  636. checkStrictly: false,
  637. customProps: {},
  638. tip: '',
  639. extendProps: {}
  640. },
  641. events: {
  642. onMounted: '',
  643. onChange: '',
  644. onFocus: '',
  645. onBlur: ''
  646. }
  647. },
  648. {
  649. type: 'steps',
  650. icon: 'icon-m-buzhou',
  651. options: {
  652. defaultValue: 0,
  653. customClass: '',
  654. labelWidth: 100,
  655. isLabelWidth: false,
  656. hideLabel: true,
  657. hidden: false,
  658. dataBind: true,
  659. steps: [
  660. {
  661. title: 'Step 1'
  662. },
  663. {
  664. title: 'Step 2'
  665. },
  666. {
  667. title: 'Step 3'
  668. }
  669. ],
  670. props: {
  671. title: 'title',
  672. description: 'description'
  673. },
  674. remote: false,
  675. width: '',
  676. direction: 'horizontal',
  677. processStatus: 'process',
  678. finishStatus: 'finish',
  679. alignCenter: false,
  680. simple: false,
  681. remoteType: 'datasource',
  682. customProps: {},
  683. tip: '',
  684. extendProps: {}
  685. },
  686. events: {
  687. onMounted: '',
  688. onChange: ''
  689. }
  690. },
  691. {
  692. type: 'transfer',
  693. icon: 'icon-m-chuansuokuang',
  694. options: {
  695. defaultValue: [],
  696. customClass: '',
  697. labelWidth: 100,
  698. isLabelWidth: false,
  699. hideLabel: false,
  700. hidden: false,
  701. dataBind: true,
  702. data: [
  703. {key: '1', label: 'Option 1'},
  704. {key: '2', label: 'Option 2'},
  705. {key: '3', label: 'Option 3'},
  706. ],
  707. props: {
  708. key: 'key',
  709. label: 'label',
  710. disabled: 'disabled'
  711. },
  712. filterable: false,
  713. required: false,
  714. validatorCheck: false,
  715. validator: '',
  716. width: '',
  717. remote: false,
  718. titles: ['Source', 'Target'],
  719. disabled: false,
  720. remoteType: 'datasource',
  721. customProps: {},
  722. tip: '',
  723. extendProps: {}
  724. },
  725. events: {
  726. onMounted: '',
  727. onChange: ''
  728. }
  729. },
  730. {
  731. type: 'pagination',
  732. icon: 'icon-pagination',
  733. options: {
  734. defaultValue: 1,
  735. customClass: '',
  736. disabled: false,
  737. labelWidth: 100,
  738. isLabelWidth: false,
  739. hideLabel: true,
  740. hidden: false,
  741. dataBind: true,
  742. background: true,
  743. pageSize: 10,
  744. pagerCount: 5,
  745. total: 100,
  746. customProps: {},
  747. extendProps: {}
  748. },
  749. events: {
  750. onMounted: '',
  751. onChange: ''
  752. }
  753. }
  754. ]
  755. export const advanceComponents = [
  756. {
  757. type: 'blank',
  758. icon: 'icon-zidingyishuju',
  759. options: {
  760. defaultType: 'String',
  761. customClass: '',
  762. width: '',
  763. labelWidth: 100,
  764. isLabelWidth: false,
  765. hidden: false,
  766. dataBind: true,
  767. required: false,
  768. pattern: '',
  769. validator: '',
  770. tip: ''
  771. },
  772. events: {
  773. onMounted: '',
  774. onChange: ''
  775. }
  776. },
  777. {
  778. type: 'component',
  779. icon: 'icon-component',
  780. options: {
  781. customClass: '',
  782. labelWidth: 100,
  783. isLabelWidth: false,
  784. hidden: false,
  785. dataBind: true,
  786. template: '<div>自定义内容</div>',
  787. required: false,
  788. pattern: '',
  789. validator: '',
  790. width: '',
  791. tip: ''
  792. },
  793. events: {
  794. onMounted: '',
  795. onChange: ''
  796. }
  797. },
  798. {
  799. type: 'fileupload',
  800. icon: 'icon-wenjianshangchuan',
  801. options: {
  802. defaultValue: [],
  803. width: '',
  804. tokenFunc: 'funcGetToken',
  805. token: '',
  806. tokenType: 'datasource',
  807. domain: '',
  808. disabled: false,
  809. tip: '',
  810. action: '',
  811. customClass: '',
  812. limit: 9,
  813. multiple: false,
  814. isQiniu: false,
  815. labelWidth: 100,
  816. isLabelWidth: false,
  817. hidden: false,
  818. dataBind: true,
  819. headers: [],
  820. required: false,
  821. validatorCheck: false,
  822. validator: '',
  823. withCredentials: false
  824. },
  825. events: {
  826. onMounted: '',
  827. onChange: '',
  828. onSelect: '',
  829. onUploadSuccess: '',
  830. onUploadError: '',
  831. onRemove: ''
  832. }
  833. },
  834. {
  835. type: 'imgupload',
  836. icon: 'icon-tupian',
  837. options: {
  838. defaultValue: [],
  839. size: {
  840. width: 100,
  841. height: 100,
  842. },
  843. width: '',
  844. tokenFunc: 'funcGetToken',
  845. token: '',
  846. tokenType: 'datasource',
  847. domain: '',
  848. disabled: false,
  849. readonly: false,
  850. limit: 8,
  851. multiple: false,
  852. isQiniu: false,
  853. isDelete: true,
  854. min: 0,
  855. isEdit: true,
  856. action: '',
  857. customClass: '',
  858. labelWidth: 100,
  859. isLabelWidth: false,
  860. hidden: false,
  861. dataBind: true,
  862. headers: [],
  863. required: false,
  864. validatorCheck: false,
  865. validator: '',
  866. withCredentials: false,
  867. tip: ''
  868. },
  869. events: {
  870. onMounted: '',
  871. onChange: '',
  872. onSelect: '',
  873. onUploadSuccess: '',
  874. onUploadError: '',
  875. onRemove: ''
  876. }
  877. },
  878. {
  879. type: 'editor',
  880. icon: 'icon-fuwenbenkuang',
  881. options: {
  882. defaultValue: '',
  883. width: '',
  884. customClass: '',
  885. labelWidth: 100,
  886. isLabelWidth: false,
  887. hidden: false,
  888. dataBind: true,
  889. customToolbar: [
  890. [ 'bold', 'italic', 'underline', 'strike',
  891. { 'color': [] },
  892. { 'background': [] },
  893. { 'align': [] },
  894. { 'list': 'ordered'},
  895. { 'list': 'bullet' },
  896. { 'indent': '-1'},
  897. { 'indent': '+1' }
  898. ],
  899. [{ 'font': [] },{ 'header': [1, 2, 3, 4, 5, 6, false] }],
  900. [{ 'script': 'sub'}, { 'script': 'super' }],
  901. ['link', 'image','blockquote', 'code-block'],
  902. [{ 'direction': 'rtl' }],
  903. ['clean']
  904. ],
  905. disabled: false,
  906. required: false,
  907. validatorCheck: false,
  908. validator: '',
  909. tip: ''
  910. },
  911. events: {
  912. onMounted: '',
  913. onChange: ''
  914. }
  915. },
  916. {
  917. type: 'list',
  918. icon: 'icon-shujubiaoge',
  919. options: {
  920. defaultValue: [
  921. {
  922. date: '2016-05-03',
  923. name: 'Tom',
  924. state: 'California',
  925. city: 'Los Angeles',
  926. address: 'No. 189, Grove St, Los Angeles',
  927. zip: 'CA 90036',
  928. tag: 'Home',
  929. },
  930. {
  931. date: '2016-05-02',
  932. name: 'Tom',
  933. state: 'California',
  934. city: 'Los Angeles',
  935. address: 'No. 189, Grove St, Los Angeles',
  936. zip: 'CA 90036',
  937. tag: 'Office',
  938. },
  939. {
  940. date: '2016-05-04',
  941. name: 'Tom',
  942. state: 'California',
  943. city: 'Los Angeles',
  944. address: 'No. 189, Grove St, Los Angeles',
  945. zip: 'CA 90036',
  946. tag: 'Home',
  947. },
  948. {
  949. date: '2016-05-01',
  950. name: 'Tom',
  951. state: 'California',
  952. city: 'Los Angeles',
  953. address: 'No. 189, Grove St, Los Angeles',
  954. zip: 'CA 90036',
  955. tag: 'Office',
  956. },
  957. ],
  958. width: '',
  959. maxHeight: '',
  960. stripe: false,
  961. border: false,
  962. customClass: '',
  963. labelWidth: 100,
  964. isLabelWidth: false,
  965. hideLabel: true,
  966. hidden: false,
  967. dataBind: true,
  968. columns: [
  969. {
  970. "label": "Date",
  971. "prop": "date",
  972. "width": "",
  973. "sortable": false,
  974. "fixed": false,
  975. "align": "left",
  976. "headderAlign": "left",
  977. "fixedOption": "left",
  978. "defaultSlot": false,
  979. "defaultSlotTemplate": "",
  980. "headerSlot": false,
  981. "headerSlotTemplate": "",
  982. "key": "69vku4oh"
  983. },
  984. {
  985. "label": "Name",
  986. "prop": "name",
  987. "width": "",
  988. "sortable": false,
  989. "fixed": false,
  990. "align": "left",
  991. "headderAlign": "left",
  992. "fixedOption": "left",
  993. "defaultSlot": false,
  994. "defaultSlotTemplate": "",
  995. "headerSlot": false,
  996. "headerSlotTemplate": "",
  997. "key": "8zm66bqm"
  998. },
  999. {
  1000. "label": "Address",
  1001. "prop": "address",
  1002. "width": "",
  1003. "sortable": false,
  1004. "fixed": false,
  1005. "align": "left",
  1006. "headderAlign": "left",
  1007. "fixedOption": "left",
  1008. "defaultSlot": false,
  1009. "defaultSlotTemplate": "",
  1010. "headerSlot": false,
  1011. "headerSlotTemplate": "",
  1012. "key": "ariv7pud"
  1013. }
  1014. ],
  1015. highlight: false,
  1016. selection: false,
  1017. showOperation: false,
  1018. operations: {
  1019. width: 200,
  1020. buttons: [
  1021. // {
  1022. // name: 'Edit',
  1023. // type: 'primary', // primary, default, text, link
  1024. // event: ''
  1025. // }
  1026. ]
  1027. },
  1028. pagination: {
  1029. paging: false,
  1030. pageSize: 10,
  1031. currentPage: 1,
  1032. pagerCount: 7,
  1033. pageSizes: '10, 20, 50, 100',
  1034. background: false,
  1035. small: false,
  1036. props: {
  1037. list: 'records',
  1038. total: 'total',
  1039. size: 'pageSize',
  1040. current: 'currentPage'
  1041. }
  1042. },
  1043. tip: ''
  1044. },
  1045. events: {
  1046. onMounted: '',
  1047. onChange: '',
  1048. onPageChange: '',
  1049. onCurrentRow: '',
  1050. onSelectionChange: ''
  1051. }
  1052. }
  1053. ]
  1054. export const layoutComponents = [
  1055. {
  1056. type: 'grid',
  1057. icon: 'icon-RectangleCopy',
  1058. columns: [
  1059. {
  1060. type: 'col',
  1061. options: {
  1062. span: 12,
  1063. offset: 0,
  1064. push: 0,
  1065. pull: 0,
  1066. xs: 24,
  1067. sm: 12,
  1068. md: 12,
  1069. lg: 12,
  1070. xl: 12,
  1071. customClass: ''
  1072. },
  1073. list: []
  1074. },
  1075. ],
  1076. options: {
  1077. gutter: 0,
  1078. justify: 'start',
  1079. align: 'top',
  1080. customClass: '',
  1081. hidden: false,
  1082. flex: true,
  1083. responsive: true
  1084. }
  1085. },
  1086. {
  1087. type: 'report',
  1088. icon: 'icon-table1',
  1089. options: {
  1090. customClass: '',
  1091. hidden: false,
  1092. borderWidth: 1,
  1093. borderColor: '#999',
  1094. width: '100%'
  1095. },
  1096. headerRow: [
  1097. {
  1098. type: 'th',
  1099. options: {
  1100. width: ''
  1101. }
  1102. }
  1103. ],
  1104. rows: [
  1105. {
  1106. columns: [
  1107. {
  1108. type: 'td',
  1109. options: {
  1110. customClass: '',
  1111. colspan: 1,
  1112. rowspan: 1,
  1113. align: 'left',
  1114. valign: 'top',
  1115. width: '',
  1116. height: ''
  1117. },
  1118. list: []
  1119. }
  1120. ]
  1121. }
  1122. ]
  1123. },
  1124. {
  1125. type: 'tabs',
  1126. icon: 'icon-tabs',
  1127. tabs: [
  1128. {
  1129. label: 'Tab 1',
  1130. name: 'tab_1',
  1131. list: []
  1132. }
  1133. ],
  1134. options: {
  1135. type: '',
  1136. tabPosition: 'top',
  1137. customClass: '',
  1138. hidden: false,
  1139. }
  1140. },
  1141. {
  1142. type: 'collapse',
  1143. icon: 'icon-zhediemianban',
  1144. tabs: [
  1145. {
  1146. title: 'Collapse 1',
  1147. name: 'collapse_1',
  1148. list: []
  1149. }
  1150. ],
  1151. options: {
  1152. type: '',
  1153. accordion: false,
  1154. customClass: '',
  1155. hidden: false,
  1156. }
  1157. },
  1158. {
  1159. type: 'inline',
  1160. icon: 'icon-inlineview',
  1161. options: {
  1162. customClass: '',
  1163. hidden: false,
  1164. spaceSize: 10
  1165. },
  1166. list: []
  1167. },
  1168. {
  1169. type: 'card',
  1170. icon: 'icon-kapian',
  1171. list: [],
  1172. options: {
  1173. title: 'Card name',
  1174. showHeader: true,
  1175. bordered: true,
  1176. customClass: '',
  1177. shadow: 'always',
  1178. width: '',
  1179. padding: '10px',
  1180. hidden: false
  1181. }
  1182. },
  1183. {
  1184. type: 'divider',
  1185. icon: 'icon-fengexian',
  1186. options: {
  1187. hidden: false,
  1188. contentPosition: 'left',
  1189. customProps: {}
  1190. }
  1191. },
  1192. {
  1193. type: 'alert',
  1194. icon: 'icon-jinggaotishi',
  1195. options: {
  1196. hidden: false,
  1197. title: 'Info alert',
  1198. type: 'info',
  1199. description: '',
  1200. closable: true,
  1201. center: false,
  1202. showIcon: false,
  1203. effect: 'light',
  1204. width: '',
  1205. customProps: {}
  1206. }
  1207. }
  1208. ]
  1209. export const collectionComponents = [
  1210. {
  1211. type: 'table',
  1212. icon: 'icon-kebianjibiaoge',
  1213. options: {
  1214. defaultValue: [],
  1215. customClass: '',
  1216. labelWidth: 100,
  1217. isLabelWidth: false,
  1218. hidden: false,
  1219. dataBind: true,
  1220. disabled: false,
  1221. required: false,
  1222. validatorCheck: false,
  1223. validator: '',
  1224. paging: false,
  1225. pageSize: 5,
  1226. isAdd: true,
  1227. isDelete: true,
  1228. showControl: true,
  1229. virtualTable: true,
  1230. tip: ''
  1231. },
  1232. events: {
  1233. onMounted: '',
  1234. onChange: '',
  1235. onRowAdd: '',
  1236. onRowRemove: '',
  1237. onPageChange: ''
  1238. },
  1239. tableColumns: []
  1240. },
  1241. {
  1242. type: 'subform',
  1243. icon: 'icon-a-ziyuan25',
  1244. options: {
  1245. defaultValue: [],
  1246. customClass: '',
  1247. labelWidth: 100,
  1248. isLabelWidth: false,
  1249. hidden: false,
  1250. dataBind: true,
  1251. disabled: false,
  1252. required: false,
  1253. validatorCheck: false,
  1254. validator: '',
  1255. paging: false,
  1256. pageSize: 5,
  1257. showControl: true,
  1258. isAdd: true,
  1259. isDelete: true,
  1260. tip: ''
  1261. },
  1262. events: {
  1263. onMounted: '',
  1264. onChange: '',
  1265. onRowAdd: '',
  1266. onRowRemove: '',
  1267. onPageChange: ''
  1268. },
  1269. list: []
  1270. },
  1271. {
  1272. type: 'dialog',
  1273. icon: 'icon-Dialog',
  1274. options: {
  1275. defaultValue: {},
  1276. visible: false,
  1277. customClass: '',
  1278. title: 'Dialog Title',
  1279. width: '',
  1280. top: '15vh',
  1281. center: false,
  1282. cancelText: 'Cancel',
  1283. showClose: true,
  1284. okText: 'Confirm',
  1285. showCancel: true,
  1286. showOk: true,
  1287. confirmLoading: false,
  1288. dataBind: true,
  1289. },
  1290. list: [],
  1291. events: {
  1292. onOpen: '',
  1293. onClose: '',
  1294. onCancel: '',
  1295. onConfirm: ''
  1296. }
  1297. },
  1298. {
  1299. type: 'group',
  1300. icon: 'icon-fenzu',
  1301. options: {
  1302. defaultValue: {},
  1303. customClass: '',
  1304. labelWidth: 100,
  1305. isLabelWidth: false,
  1306. hidden: false,
  1307. dataBind: true,
  1308. width: '',
  1309. validatorCheck: false,
  1310. validator: '',
  1311. tip: ''
  1312. },
  1313. list: [],
  1314. events: {
  1315. onMounted: '',
  1316. }
  1317. }
  1318. ]