json9.js 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. export default {
  2. "list": [
  3. {
  4. "type": "inline",
  5. "icon": "icon-inlineview",
  6. "options": {
  7. "customClass": "",
  8. "hidden": false,
  9. "spaceSize": 20,
  10. "remoteFunc": "func_54uqa4ep",
  11. "remoteOption": "option_54uqa4ep"
  12. },
  13. "list": [
  14. {
  15. "type": "input",
  16. "icon": "icon-input",
  17. "options": {
  18. "width": "",
  19. "defaultValue": "",
  20. "required": false,
  21. "requiredMessage": "",
  22. "dataType": "",
  23. "dataTypeCheck": false,
  24. "dataTypeMessage": "",
  25. "pattern": "",
  26. "patternCheck": false,
  27. "patternMessage": "",
  28. "validatorCheck": false,
  29. "validator": "",
  30. "placeholder": "",
  31. "customClass": "",
  32. "disabled": false,
  33. "labelWidth": 50,
  34. "isLabelWidth": true,
  35. "hidden": false,
  36. "dataBind": true,
  37. "showPassword": false,
  38. "clearable": false,
  39. "remoteFunc": "func_xwvwfao4",
  40. "remoteOption": "option_xwvwfao4",
  41. "subform": false
  42. },
  43. "events": {
  44. "onChange": "",
  45. "onFocus": "",
  46. "onBlur": ""
  47. },
  48. "name": "Name",
  49. "key": "xwvwfao4",
  50. "model": "name",
  51. "rules": []
  52. },
  53. {
  54. "type": "input",
  55. "icon": "icon-input",
  56. "options": {
  57. "width": "",
  58. "defaultValue": "",
  59. "required": false,
  60. "requiredMessage": "",
  61. "dataType": "",
  62. "dataTypeCheck": false,
  63. "dataTypeMessage": "",
  64. "pattern": "",
  65. "patternCheck": false,
  66. "patternMessage": "",
  67. "validatorCheck": false,
  68. "validator": "",
  69. "placeholder": "",
  70. "customClass": "",
  71. "disabled": false,
  72. "labelWidth": 80,
  73. "isLabelWidth": true,
  74. "hidden": false,
  75. "dataBind": true,
  76. "showPassword": false,
  77. "clearable": false,
  78. "remoteFunc": "func_xwvwfao4",
  79. "remoteOption": "option_xwvwfao4",
  80. "subform": false
  81. },
  82. "events": {
  83. "onChange": "",
  84. "onFocus": "",
  85. "onBlur": ""
  86. },
  87. "name": "Address",
  88. "key": "w1ma2t9o",
  89. "model": "address",
  90. "rules": []
  91. },
  92. {
  93. "type": "button",
  94. "icon": "icon-button",
  95. "options": {
  96. "customClass": "",
  97. "disabled": false,
  98. "labelWidth": 100,
  99. "isLabelWidth": false,
  100. "hideLabel": true,
  101. "hidden": false,
  102. "buttonSize": "default",
  103. "buttonType": "primary",
  104. "buttonPlain": false,
  105. "buttonRound": false,
  106. "buttonCircle": false,
  107. "buttonName": "查 询",
  108. "width": "",
  109. "remoteFunc": "func_kwrk2vfo",
  110. "remoteOption": "option_kwrk2vfo",
  111. "subform": false
  112. },
  113. "events": {
  114. "onClick": "9urxn55l"
  115. },
  116. "name": "Button",
  117. "key": "kwrk2vfo",
  118. "model": "button_kwrk2vfo",
  119. "rules": []
  120. }
  121. ],
  122. "name": "Inline",
  123. "key": "54uqa4ep",
  124. "model": "inline_54uqa4ep",
  125. "rules": []
  126. },
  127. {
  128. "type": "table",
  129. "icon": "icon-table",
  130. "options": {
  131. "defaultValue": [],
  132. "customClass": "",
  133. "labelWidth": 100,
  134. "isLabelWidth": false,
  135. "hidden": false,
  136. "dataBind": true,
  137. "disabled": false,
  138. "required": false,
  139. "validatorCheck": false,
  140. "validator": "",
  141. "paging": false,
  142. "pageSize": 5,
  143. "isAdd": false,
  144. "isDelete": false,
  145. "showControl": false,
  146. "remoteFunc": "func_9wmtwlft",
  147. "remoteOption": "option_9wmtwlft",
  148. "tableColumn": false,
  149. "hideLabel": true
  150. },
  151. "events": {
  152. "onChange": "",
  153. "onRowAdd": "",
  154. "onRowRemove": "",
  155. "onPageChange": ""
  156. },
  157. "tableColumns": [
  158. {
  159. "type": "text",
  160. "icon": "icon-wenzishezhi-",
  161. "options": {
  162. "defaultValue": "",
  163. "customClass": "",
  164. "labelWidth": 100,
  165. "isLabelWidth": false,
  166. "hidden": false,
  167. "dataBind": true,
  168. "required": false,
  169. "width": "100px",
  170. "remoteFunc": "func_gt3uhdyl",
  171. "remoteOption": "option_gt3uhdyl",
  172. "tableColumn": true,
  173. "fixedColumn": true,
  174. "fixedColumnPosition": "left"
  175. },
  176. "events": {
  177. "onChange": ""
  178. },
  179. "name": "ID",
  180. "novalid": {},
  181. "key": "gt3uhdyl",
  182. "model": "id",
  183. "rules": []
  184. },
  185. {
  186. "type": "text",
  187. "icon": "icon-wenzishezhi-",
  188. "options": {
  189. "defaultValue": "",
  190. "customClass": "",
  191. "labelWidth": 100,
  192. "isLabelWidth": false,
  193. "hidden": false,
  194. "dataBind": true,
  195. "required": false,
  196. "width": "200px",
  197. "remoteFunc": "func_gt3uhdyl",
  198. "remoteOption": "option_gt3uhdyl",
  199. "tableColumn": true
  200. },
  201. "events": {
  202. "onChange": ""
  203. },
  204. "name": "Name",
  205. "novalid": {},
  206. "key": "z970luym",
  207. "model": "name",
  208. "rules": []
  209. },
  210. {
  211. "type": "text",
  212. "icon": "icon-wenzishezhi-",
  213. "options": {
  214. "defaultValue": "",
  215. "customClass": "",
  216. "labelWidth": 100,
  217. "isLabelWidth": false,
  218. "hidden": false,
  219. "dataBind": true,
  220. "required": false,
  221. "width": "200px",
  222. "remoteFunc": "func_gt3uhdyl",
  223. "remoteOption": "option_gt3uhdyl",
  224. "tableColumn": true
  225. },
  226. "events": {
  227. "onChange": ""
  228. },
  229. "name": "State",
  230. "novalid": {},
  231. "key": "8mtpr4lb",
  232. "model": "state",
  233. "rules": []
  234. },
  235. {
  236. "type": "text",
  237. "icon": "icon-wenzishezhi-",
  238. "options": {
  239. "defaultValue": "",
  240. "customClass": "",
  241. "labelWidth": 100,
  242. "isLabelWidth": false,
  243. "hidden": false,
  244. "dataBind": true,
  245. "required": false,
  246. "width": "300px",
  247. "remoteFunc": "func_gt3uhdyl",
  248. "remoteOption": "option_gt3uhdyl",
  249. "tableColumn": true
  250. },
  251. "events": {
  252. "onChange": ""
  253. },
  254. "name": "City",
  255. "novalid": {},
  256. "key": "zjje0rnn",
  257. "model": "city",
  258. "rules": []
  259. },
  260. {
  261. "type": "text",
  262. "icon": "icon-wenzishezhi-",
  263. "options": {
  264. "defaultValue": "",
  265. "customClass": "",
  266. "labelWidth": 100,
  267. "isLabelWidth": false,
  268. "hidden": false,
  269. "dataBind": true,
  270. "required": false,
  271. "width": "400px",
  272. "remoteFunc": "func_gt3uhdyl",
  273. "remoteOption": "option_gt3uhdyl",
  274. "tableColumn": true
  275. },
  276. "events": {
  277. "onChange": ""
  278. },
  279. "name": "Address",
  280. "novalid": {},
  281. "key": "mgo2ow9v",
  282. "model": "address",
  283. "rules": []
  284. },
  285. {
  286. "type": "text",
  287. "icon": "icon-wenzishezhi-",
  288. "options": {
  289. "defaultValue": "",
  290. "customClass": "",
  291. "labelWidth": 100,
  292. "isLabelWidth": false,
  293. "hidden": false,
  294. "dataBind": true,
  295. "required": false,
  296. "width": "200px",
  297. "remoteFunc": "func_gt3uhdyl",
  298. "remoteOption": "option_gt3uhdyl",
  299. "tableColumn": true
  300. },
  301. "events": {
  302. "onChange": ""
  303. },
  304. "name": "Zip",
  305. "novalid": {},
  306. "key": "ad8miomh",
  307. "model": "zip",
  308. "rules": []
  309. },
  310. {
  311. "type": "component",
  312. "icon": "icon-component",
  313. "options": {
  314. "customClass": "",
  315. "labelWidth": 100,
  316. "isLabelWidth": false,
  317. "hidden": false,
  318. "dataBind": true,
  319. "template": "<div>\n <el-button type=\"text\" link @click=\"triggerEvent('edit')\">Edit</el-button>\n \n <el-button type=\"text\" link @click=\"triggerEvent('delete')\">Delete</el-button>\n</div>",
  320. "required": false,
  321. "pattern": "",
  322. "validator": "",
  323. "width": "150px",
  324. "remoteFunc": "func_4fyxuiz7",
  325. "remoteOption": "option_4fyxuiz7",
  326. "tableColumn": true,
  327. "fixedColumn": true,
  328. "fixedColumnPosition": "right"
  329. },
  330. "events": {
  331. "onChange": ""
  332. },
  333. "name": "Operations",
  334. "novalid": {},
  335. "key": "4fyxuiz7",
  336. "model": "component_4fyxuiz7",
  337. "rules": []
  338. }
  339. ],
  340. "name": "Sub-Form",
  341. "key": "9wmtwlft",
  342. "model": "list",
  343. "rules": []
  344. },
  345. {
  346. "type": "pagination",
  347. "icon": "icon-pagination",
  348. "options": {
  349. "defaultValue": 1,
  350. "customClass": "",
  351. "disabled": false,
  352. "labelWidth": 100,
  353. "isLabelWidth": false,
  354. "hideLabel": true,
  355. "hidden": false,
  356. "dataBind": true,
  357. "background": true,
  358. "pageSize": 10,
  359. "pagerCount": 7,
  360. "total": 0,
  361. "remoteFunc": "func_9totvb6b",
  362. "remoteOption": "option_9totvb6b",
  363. "tableColumn": false
  364. },
  365. "events": {
  366. "onChange": "3td35yzi"
  367. },
  368. "name": "Pagination",
  369. "key": "9totvb6b",
  370. "model": "currentPage",
  371. "rules": []
  372. }
  373. ],
  374. "config": {
  375. "labelWidth": 100,
  376. "labelPosition": "right",
  377. "size": "default",
  378. "customClass": "",
  379. "ui": "element",
  380. "layout": "horizontal",
  381. "width": "100%",
  382. "hideLabel": false,
  383. "hideErrorMessage": false,
  384. "eventScript": [
  385. {
  386. "key": "mounted",
  387. "name": "mounted",
  388. "func": ""
  389. },
  390. {
  391. "key": "refresh",
  392. "name": "refresh",
  393. "func": ""
  394. },
  395. {
  396. "key": "z9buqwp4",
  397. "name": "loadDataList",
  398. "func": "const {currentPage} = arguments[0]\n\n// 模拟数据\nlet listdata = Array.from({length: 10}).map((_, index) => {\n let row = (currentPage - 1) * 10 + index + 1\n \n return {\n id: row,\n name: 'Tom' + row,\n state: 'California' + row,\n city: 'Los Angeles',\n address: 'No. 189, Grove St, Los Angeles',\n zip: 'CA 90036'\n }\n})\n\n// 给列表赋值\nthis.setData({\n list: listdata\n})\n\n// 修改分页组件 total\nthis.setOptions(['currentPage'], {\n total: 100\n})"
  399. },
  400. {
  401. "key": "9urxn55l",
  402. "name": "onClick_9urxn55l",
  403. "func": "const currentPage = 1\n\nthis.setData({\n currentPage: 1\n})\n\nthis.triggerEvent('loadDataList', {\n currentPage\n})"
  404. },
  405. {
  406. "key": "3td35yzi",
  407. "name": "onChange_3td35yzi",
  408. "func": "const {value} = arguments[0]\n\nthis.triggerEvent('loadDataList', {\n currentPage: value\n})"
  409. },
  410. {
  411. "key": "trfw3pj8",
  412. "name": "edit",
  413. "func": "const {rowIndex} = arguments[0]\n\nconst list = this.getValue('list')\n\nthis.$message('您点击了编辑操作:ID='+list[rowIndex].id )"
  414. },
  415. {
  416. "key": "23slyh16",
  417. "name": "delete",
  418. "func": "const {rowIndex} = arguments[0]\n\nconst list = this.getValue('list')\n\nthis.$message.error('您点击了删除操作:ID='+list[rowIndex].id )"
  419. }
  420. ],
  421. "platform": "pad",
  422. "dataSource": []
  423. }
  424. }