kh-one-ui 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1393) hide show
  1. package/CHANGELOG.en-US.md +1731 -0
  2. package/CHANGELOG.es.md +1740 -0
  3. package/CHANGELOG.fr-FR.md +1731 -0
  4. package/CHANGELOG.zh-CN.md +1732 -0
  5. package/LICENSE +21 -0
  6. package/README.md +119 -0
  7. package/lib/alert.js +420 -0
  8. package/lib/aside.js +277 -0
  9. package/lib/autocomplete.js +952 -0
  10. package/lib/avatar.js +363 -0
  11. package/lib/backtop.js +404 -0
  12. package/lib/badge.js +334 -0
  13. package/lib/breadcrumb-item.js +322 -0
  14. package/lib/breadcrumb.js +293 -0
  15. package/lib/button-group.js +262 -0
  16. package/lib/button.js +357 -0
  17. package/lib/calendar.js +922 -0
  18. package/lib/card.js +297 -0
  19. package/lib/carousel-item.js +433 -0
  20. package/lib/carousel.js +698 -0
  21. package/lib/cascader-panel.js +1549 -0
  22. package/lib/cascader.js +1424 -0
  23. package/lib/checkbox-button.js +583 -0
  24. package/lib/checkbox-group.js +313 -0
  25. package/lib/checkbox.js +627 -0
  26. package/lib/col.js +177 -0
  27. package/lib/collapse-item.js +497 -0
  28. package/lib/collapse.js +329 -0
  29. package/lib/color-picker.js +1943 -0
  30. package/lib/container.js +288 -0
  31. package/lib/date-picker.js +6226 -0
  32. package/lib/dialog.js +600 -0
  33. package/lib/directives/mousewheel.js +26 -0
  34. package/lib/directives/repeat-click.js +30 -0
  35. package/lib/divider.js +313 -0
  36. package/lib/drawer.js +602 -0
  37. package/lib/dropdown-item.js +316 -0
  38. package/lib/dropdown-menu.js +349 -0
  39. package/lib/dropdown.js +623 -0
  40. package/lib/footer.js +277 -0
  41. package/lib/form-item.js +821 -0
  42. package/lib/form.js +470 -0
  43. package/lib/header.js +277 -0
  44. package/lib/icon.js +265 -0
  45. package/lib/image-viewer.js +710 -0
  46. package/lib/image.js +1082 -0
  47. package/lib/index.js +1 -0
  48. package/lib/infinite-scroll.js +301 -0
  49. package/lib/input-number.js +741 -0
  50. package/lib/input.js +974 -0
  51. package/lib/lib/encrypt/oneaes.js +101 -0
  52. package/lib/lib/encrypt/onesm2.js +92 -0
  53. package/lib/lib/encrypt/sm-crypto/index.js +7 -0
  54. package/lib/lib/encrypt/sm-crypto/sm2/asn1.js +282 -0
  55. package/lib/lib/encrypt/sm-crypto/sm2/ec.js +372 -0
  56. package/lib/lib/encrypt/sm-crypto/sm2/index.js +239 -0
  57. package/lib/lib/encrypt/sm-crypto/sm2/sm2.js +103 -0
  58. package/lib/lib/encrypt/sm-crypto/sm2/sm3.js +355 -0
  59. package/lib/lib/encrypt/sm-crypto/sm2/utils.js +181 -0
  60. package/lib/lib/encrypt/sm-crypto/sm3/index.js +250 -0
  61. package/lib/lib/encrypt/sm-crypto/sm4/index.js +286 -0
  62. package/lib/lib/onedate.js +104 -0
  63. package/lib/lib/oneencrypt.js +115 -0
  64. package/lib/lib/oneformrules.js +349 -0
  65. package/lib/lib/onenumber.js +119 -0
  66. package/lib/lib/onerequest.js +387 -0
  67. package/lib/lib/onerouter.js +190 -0
  68. package/lib/lib/onestorage.js +213 -0
  69. package/lib/lib/onetool.js +619 -0
  70. package/lib/lib/oneurl.js +299 -0
  71. package/lib/lib/onevalidate.js +136 -0
  72. package/lib/link.js +332 -0
  73. package/lib/loading.js +631 -0
  74. package/lib/locale/format.js +56 -0
  75. package/lib/locale/index.js +63 -0
  76. package/lib/locale/lang/af-ZA.js +123 -0
  77. package/lib/locale/lang/ar.js +122 -0
  78. package/lib/locale/lang/bg.js +123 -0
  79. package/lib/locale/lang/ca.js +122 -0
  80. package/lib/locale/lang/cs-CZ.js +125 -0
  81. package/lib/locale/lang/da.js +122 -0
  82. package/lib/locale/lang/de.js +124 -0
  83. package/lib/locale/lang/ee.js +123 -0
  84. package/lib/locale/lang/el.js +123 -0
  85. package/lib/locale/lang/en.js +123 -0
  86. package/lib/locale/lang/eo.js +123 -0
  87. package/lib/locale/lang/es.js +122 -0
  88. package/lib/locale/lang/eu.js +123 -0
  89. package/lib/locale/lang/fa.js +123 -0
  90. package/lib/locale/lang/fi.js +123 -0
  91. package/lib/locale/lang/fr.js +122 -0
  92. package/lib/locale/lang/he.js +123 -0
  93. package/lib/locale/lang/hr.js +123 -0
  94. package/lib/locale/lang/hu.js +122 -0
  95. package/lib/locale/lang/hy-AM.js +123 -0
  96. package/lib/locale/lang/id.js +123 -0
  97. package/lib/locale/lang/it.js +122 -0
  98. package/lib/locale/lang/ja.js +123 -0
  99. package/lib/locale/lang/kg.js +123 -0
  100. package/lib/locale/lang/km.js +123 -0
  101. package/lib/locale/lang/ko.js +123 -0
  102. package/lib/locale/lang/ku.js +123 -0
  103. package/lib/locale/lang/kz.js +123 -0
  104. package/lib/locale/lang/lt.js +123 -0
  105. package/lib/locale/lang/lv.js +123 -0
  106. package/lib/locale/lang/mn.js +123 -0
  107. package/lib/locale/lang/nb-NO.js +122 -0
  108. package/lib/locale/lang/nl.js +123 -0
  109. package/lib/locale/lang/pl.js +123 -0
  110. package/lib/locale/lang/pt-br.js +123 -0
  111. package/lib/locale/lang/pt.js +123 -0
  112. package/lib/locale/lang/ro.js +123 -0
  113. package/lib/locale/lang/ru-RU.js +123 -0
  114. package/lib/locale/lang/sk.js +125 -0
  115. package/lib/locale/lang/sl.js +123 -0
  116. package/lib/locale/lang/sr.js +123 -0
  117. package/lib/locale/lang/sv-SE.js +123 -0
  118. package/lib/locale/lang/ta.js +122 -0
  119. package/lib/locale/lang/th.js +123 -0
  120. package/lib/locale/lang/tk.js +123 -0
  121. package/lib/locale/lang/tr-TR.js +123 -0
  122. package/lib/locale/lang/ua.js +123 -0
  123. package/lib/locale/lang/ug-CN.js +123 -0
  124. package/lib/locale/lang/uz-UZ.js +123 -0
  125. package/lib/locale/lang/vi.js +123 -0
  126. package/lib/locale/lang/zh-CN.js +123 -0
  127. package/lib/locale/lang/zh-TW.js +123 -0
  128. package/lib/main.js +264 -0
  129. package/lib/menu-item-group.js +308 -0
  130. package/lib/menu-item.js +491 -0
  131. package/lib/menu.js +866 -0
  132. package/lib/message-box.js +1211 -0
  133. package/lib/message.js +533 -0
  134. package/lib/mixins/emitter.js +36 -0
  135. package/lib/mixins/focus.js +15 -0
  136. package/lib/mixins/locale.js +17 -0
  137. package/lib/mixins/migrating.js +69 -0
  138. package/lib/notification.js +615 -0
  139. package/lib/one-button.js +385 -0
  140. package/lib/one-cascader.js +5396 -0
  141. package/lib/one-dialog.js +549 -0
  142. package/lib/one-draggable.js +322 -0
  143. package/lib/one-form.js +16215 -0
  144. package/lib/one-icon-text.js +342 -0
  145. package/lib/one-icon.js +287 -0
  146. package/lib/one-input.js +916 -0
  147. package/lib/one-search-form.js +7482 -0
  148. package/lib/one-select-tree.js +601 -0
  149. package/lib/one-slide-verify.js +5043 -0
  150. package/lib/one-table.js +11881 -0
  151. package/lib/one-tree.js +371 -0
  152. package/lib/one-ueditor-wrap.js +505 -0
  153. package/lib/one-ui.common.js +68480 -0
  154. package/lib/one-video-player.js +1122 -0
  155. package/lib/one-wave-bg.js +1081 -0
  156. package/lib/option-group.js +344 -0
  157. package/lib/option.js +474 -0
  158. package/lib/page-header.js +319 -0
  159. package/lib/pagination.js +950 -0
  160. package/lib/popconfirm.js +443 -0
  161. package/lib/popover.js +617 -0
  162. package/lib/progress.js +578 -0
  163. package/lib/radio-button.js +461 -0
  164. package/lib/radio-group.js +389 -0
  165. package/lib/radio.js +495 -0
  166. package/lib/rate.js +670 -0
  167. package/lib/row.js +152 -0
  168. package/lib/scrollbar.js +423 -0
  169. package/lib/select.js +2168 -0
  170. package/lib/slider.js +1199 -0
  171. package/lib/spinner.js +301 -0
  172. package/lib/step.js +522 -0
  173. package/lib/steps.js +342 -0
  174. package/lib/submenu.js +701 -0
  175. package/lib/switch.js +552 -0
  176. package/lib/tab-pane.js +332 -0
  177. package/lib/table-column.js +931 -0
  178. package/lib/table.js +4881 -0
  179. package/lib/tabs.js +920 -0
  180. package/lib/tag.js +304 -0
  181. package/lib/theme-chalk/$(filter-out.css +0 -0
  182. package/lib/theme-chalk/alert.css +1 -0
  183. package/lib/theme-chalk/aside.css +1 -0
  184. package/lib/theme-chalk/autocomplete.css +1 -0
  185. package/lib/theme-chalk/avatar.css +1 -0
  186. package/lib/theme-chalk/backtop.css +1 -0
  187. package/lib/theme-chalk/badge.css +1 -0
  188. package/lib/theme-chalk/base.css +1 -0
  189. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  190. package/lib/theme-chalk/breadcrumb.css +1 -0
  191. package/lib/theme-chalk/button-group.css +0 -0
  192. package/lib/theme-chalk/button.css +1 -0
  193. package/lib/theme-chalk/calendar.css +1 -0
  194. package/lib/theme-chalk/card.css +1 -0
  195. package/lib/theme-chalk/carousel-item.css +1 -0
  196. package/lib/theme-chalk/carousel.css +1 -0
  197. package/lib/theme-chalk/cascader-panel.css +1 -0
  198. package/lib/theme-chalk/cascader.css +1 -0
  199. package/lib/theme-chalk/checkbox-button.css +0 -0
  200. package/lib/theme-chalk/checkbox-group.css +0 -0
  201. package/lib/theme-chalk/checkbox.css +1 -0
  202. package/lib/theme-chalk/col.css +1 -0
  203. package/lib/theme-chalk/collapse-item.css +0 -0
  204. package/lib/theme-chalk/collapse.css +1 -0
  205. package/lib/theme-chalk/color-picker.css +1 -0
  206. package/lib/theme-chalk/container.css +1 -0
  207. package/lib/theme-chalk/date-picker.css +1 -0
  208. package/lib/theme-chalk/dialog.css +1 -0
  209. package/lib/theme-chalk/display.css +1 -0
  210. package/lib/theme-chalk/divider.css +1 -0
  211. package/lib/theme-chalk/drawer.css +1 -0
  212. package/lib/theme-chalk/dropdown-item.css +0 -0
  213. package/lib/theme-chalk/dropdown-menu.css +0 -0
  214. package/lib/theme-chalk/dropdown.css +1 -0
  215. package/lib/theme-chalk/fonts/one-icons.ttf +0 -0
  216. package/lib/theme-chalk/fonts/one-icons.woff +0 -0
  217. package/lib/theme-chalk/footer.css +1 -0
  218. package/lib/theme-chalk/form-item.css +0 -0
  219. package/lib/theme-chalk/form.css +1 -0
  220. package/lib/theme-chalk/header.css +1 -0
  221. package/lib/theme-chalk/icon.css +1 -0
  222. package/lib/theme-chalk/image-viewer.css +0 -0
  223. package/lib/theme-chalk/image.css +1 -0
  224. package/lib/theme-chalk/index.css +1 -0
  225. package/lib/theme-chalk/infinite-scroll.css +0 -0
  226. package/lib/theme-chalk/infiniteScroll.css +0 -0
  227. package/lib/theme-chalk/input-number.css +1 -0
  228. package/lib/theme-chalk/input.css +1 -0
  229. package/lib/theme-chalk/link.css +1 -0
  230. package/lib/theme-chalk/loading.css +1 -0
  231. package/lib/theme-chalk/main.css +1 -0
  232. package/lib/theme-chalk/menu-item-group.css +0 -0
  233. package/lib/theme-chalk/menu-item.css +0 -0
  234. package/lib/theme-chalk/menu.css +1 -0
  235. package/lib/theme-chalk/message-box.css +1 -0
  236. package/lib/theme-chalk/message.css +1 -0
  237. package/lib/theme-chalk/notification.css +1 -0
  238. package/lib/theme-chalk/one-button.css +0 -0
  239. package/lib/theme-chalk/one-cascader.css +0 -0
  240. package/lib/theme-chalk/one-dialog.css +0 -0
  241. package/lib/theme-chalk/one-draggable.css +0 -0
  242. package/lib/theme-chalk/one-form-genarate-designer.css +0 -0
  243. package/lib/theme-chalk/one-form-genarate-parser.css +0 -0
  244. package/lib/theme-chalk/one-form.css +1 -0
  245. package/lib/theme-chalk/one-icon-text.css +1 -0
  246. package/lib/theme-chalk/one-icon.css +1 -0
  247. package/lib/theme-chalk/one-input.css +0 -0
  248. package/lib/theme-chalk/one-search-form.css +1 -0
  249. package/lib/theme-chalk/one-select-tree.css +1 -0
  250. package/lib/theme-chalk/one-slide-verify.css +1 -0
  251. package/lib/theme-chalk/one-table.css +1 -0
  252. package/lib/theme-chalk/one-tree.css +0 -0
  253. package/lib/theme-chalk/one-ueditor-wrap.css +0 -0
  254. package/lib/theme-chalk/one-video-player.css +0 -0
  255. package/lib/theme-chalk/one-wave-bg.css +0 -0
  256. package/lib/theme-chalk/option-group.css +1 -0
  257. package/lib/theme-chalk/option.css +1 -0
  258. package/lib/theme-chalk/page-header.css +1 -0
  259. package/lib/theme-chalk/pagination.css +1 -0
  260. package/lib/theme-chalk/popconfirm.css +1 -0
  261. package/lib/theme-chalk/popover.css +1 -0
  262. package/lib/theme-chalk/popper.css +1 -0
  263. package/lib/theme-chalk/progress.css +1 -0
  264. package/lib/theme-chalk/radio-button.css +1 -0
  265. package/lib/theme-chalk/radio-group.css +1 -0
  266. package/lib/theme-chalk/radio.css +1 -0
  267. package/lib/theme-chalk/rate.css +1 -0
  268. package/lib/theme-chalk/reset.css +1 -0
  269. package/lib/theme-chalk/row.css +1 -0
  270. package/lib/theme-chalk/scrollbar.css +1 -0
  271. package/lib/theme-chalk/select-dropdown.css +1 -0
  272. package/lib/theme-chalk/select.css +1 -0
  273. package/lib/theme-chalk/slider.css +1 -0
  274. package/lib/theme-chalk/spinner.css +1 -0
  275. package/lib/theme-chalk/step.css +1 -0
  276. package/lib/theme-chalk/steps.css +1 -0
  277. package/lib/theme-chalk/submenu.css +0 -0
  278. package/lib/theme-chalk/switch.css +1 -0
  279. package/lib/theme-chalk/tab-pane.css +0 -0
  280. package/lib/theme-chalk/table-column.css +1 -0
  281. package/lib/theme-chalk/table.css +1 -0
  282. package/lib/theme-chalk/tabs.css +1 -0
  283. package/lib/theme-chalk/tag.css +1 -0
  284. package/lib/theme-chalk/time-picker.css +1 -0
  285. package/lib/theme-chalk/time-select.css +1 -0
  286. package/lib/theme-chalk/timeline-item.css +1 -0
  287. package/lib/theme-chalk/timeline.css +1 -0
  288. package/lib/theme-chalk/tooltip.css +1 -0
  289. package/lib/theme-chalk/transfer.css +1 -0
  290. package/lib/theme-chalk/tree.css +1 -0
  291. package/lib/theme-chalk/upload.css +1 -0
  292. package/lib/time-picker.js +2923 -0
  293. package/lib/time-select.js +1732 -0
  294. package/lib/timeline-item.js +371 -0
  295. package/lib/timeline.js +275 -0
  296. package/lib/tooltip.js +424 -0
  297. package/lib/transfer.js +1102 -0
  298. package/lib/transitions/collapse-transition.js +91 -0
  299. package/lib/tree.js +2264 -0
  300. package/lib/umd/locale/af-ZA.js +139 -0
  301. package/lib/umd/locale/ar.js +138 -0
  302. package/lib/umd/locale/bg.js +139 -0
  303. package/lib/umd/locale/ca.js +138 -0
  304. package/lib/umd/locale/cs-CZ.js +141 -0
  305. package/lib/umd/locale/da.js +138 -0
  306. package/lib/umd/locale/de.js +140 -0
  307. package/lib/umd/locale/ee.js +139 -0
  308. package/lib/umd/locale/el.js +139 -0
  309. package/lib/umd/locale/en.js +139 -0
  310. package/lib/umd/locale/eo.js +139 -0
  311. package/lib/umd/locale/es.js +138 -0
  312. package/lib/umd/locale/eu.js +139 -0
  313. package/lib/umd/locale/fa.js +139 -0
  314. package/lib/umd/locale/fi.js +139 -0
  315. package/lib/umd/locale/fr.js +138 -0
  316. package/lib/umd/locale/he.js +139 -0
  317. package/lib/umd/locale/hr.js +139 -0
  318. package/lib/umd/locale/hu.js +138 -0
  319. package/lib/umd/locale/hy-AM.js +139 -0
  320. package/lib/umd/locale/id.js +139 -0
  321. package/lib/umd/locale/it.js +138 -0
  322. package/lib/umd/locale/ja.js +139 -0
  323. package/lib/umd/locale/kg.js +139 -0
  324. package/lib/umd/locale/km.js +139 -0
  325. package/lib/umd/locale/ko.js +139 -0
  326. package/lib/umd/locale/ku.js +139 -0
  327. package/lib/umd/locale/kz.js +139 -0
  328. package/lib/umd/locale/lt.js +139 -0
  329. package/lib/umd/locale/lv.js +139 -0
  330. package/lib/umd/locale/mn.js +139 -0
  331. package/lib/umd/locale/nb-NO.js +138 -0
  332. package/lib/umd/locale/nl.js +139 -0
  333. package/lib/umd/locale/pl.js +139 -0
  334. package/lib/umd/locale/pt-br.js +139 -0
  335. package/lib/umd/locale/pt.js +139 -0
  336. package/lib/umd/locale/ro.js +139 -0
  337. package/lib/umd/locale/ru-RU.js +139 -0
  338. package/lib/umd/locale/sk.js +141 -0
  339. package/lib/umd/locale/sl.js +139 -0
  340. package/lib/umd/locale/sr.js +139 -0
  341. package/lib/umd/locale/sv-SE.js +139 -0
  342. package/lib/umd/locale/ta.js +138 -0
  343. package/lib/umd/locale/th.js +139 -0
  344. package/lib/umd/locale/tk.js +139 -0
  345. package/lib/umd/locale/tr-TR.js +139 -0
  346. package/lib/umd/locale/ua.js +139 -0
  347. package/lib/umd/locale/ug-CN.js +139 -0
  348. package/lib/umd/locale/uz-UZ.js +139 -0
  349. package/lib/umd/locale/vi.js +139 -0
  350. package/lib/umd/locale/zh-CN.js +139 -0
  351. package/lib/umd/locale/zh-TW.js +139 -0
  352. package/lib/upload.js +6196 -0
  353. package/lib/utils/after-leave.js +35 -0
  354. package/lib/utils/aria-dialog.js +104 -0
  355. package/lib/utils/aria-utils.js +126 -0
  356. package/lib/utils/clickoutside.js +79 -0
  357. package/lib/utils/date-util.js +320 -0
  358. package/lib/utils/date.js +369 -0
  359. package/lib/utils/dom.js +234 -0
  360. package/lib/utils/menu/aria-menubar.js +24 -0
  361. package/lib/utils/menu/aria-menuitem.js +62 -0
  362. package/lib/utils/menu/aria-submenu.js +69 -0
  363. package/lib/utils/merge.js +21 -0
  364. package/lib/utils/popper.js +1261 -0
  365. package/lib/utils/popup/index.js +233 -0
  366. package/lib/utils/popup/popup-manager.js +205 -0
  367. package/lib/utils/resize-event.js +57 -0
  368. package/lib/utils/scroll-into-view.js +38 -0
  369. package/lib/utils/scrollbar-width.js +39 -0
  370. package/lib/utils/shared.js +12 -0
  371. package/lib/utils/types.js +30 -0
  372. package/lib/utils/util.js +268 -0
  373. package/lib/utils/vdom.js +13 -0
  374. package/lib/utils/vue-popper.js +202 -0
  375. package/package.json +173 -0
  376. package/packages/$(filter-out/index.js +0 -0
  377. package/packages/$(filter-out/src/main.vue +0 -0
  378. package/packages/alert/index.js +8 -0
  379. package/packages/alert/src/main.vue +94 -0
  380. package/packages/aside/index.js +8 -0
  381. package/packages/aside/src/main.vue +20 -0
  382. package/packages/autocomplete/index.js +8 -0
  383. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  384. package/packages/autocomplete/src/autocomplete.vue +285 -0
  385. package/packages/avatar/index.js +8 -0
  386. package/packages/avatar/src/main.vue +107 -0
  387. package/packages/backtop/index.js +8 -0
  388. package/packages/backtop/src/main.vue +110 -0
  389. package/packages/badge/index.js +8 -0
  390. package/packages/badge/src/main.vue +53 -0
  391. package/packages/breadcrumb/index.js +8 -0
  392. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  393. package/packages/breadcrumb/src/breadcrumb.vue +34 -0
  394. package/packages/breadcrumb-item/index.js +8 -0
  395. package/packages/button/index.js +8 -0
  396. package/packages/button/src/button-group.vue +10 -0
  397. package/packages/button/src/button.vue +78 -0
  398. package/packages/button-group/index.js +8 -0
  399. package/packages/calendar/index.js +8 -0
  400. package/packages/calendar/src/date-table.vue +182 -0
  401. package/packages/calendar/src/main.vue +283 -0
  402. package/packages/card/index.js +8 -0
  403. package/packages/card/src/main.vue +23 -0
  404. package/packages/carousel/index.js +8 -0
  405. package/packages/carousel/src/item.vue +137 -0
  406. package/packages/carousel/src/main.vue +304 -0
  407. package/packages/carousel-item/index.js +8 -0
  408. package/packages/cascader/index.js +8 -0
  409. package/packages/cascader/src/cascader.vue +650 -0
  410. package/packages/cascader-panel/index.js +8 -0
  411. package/packages/cascader-panel/src/cascader-menu.vue +138 -0
  412. package/packages/cascader-panel/src/cascader-node.vue +246 -0
  413. package/packages/cascader-panel/src/cascader-panel.vue +382 -0
  414. package/packages/cascader-panel/src/node.js +166 -0
  415. package/packages/cascader-panel/src/store.js +62 -0
  416. package/packages/checkbox/index.js +8 -0
  417. package/packages/checkbox/src/checkbox-button.vue +199 -0
  418. package/packages/checkbox/src/checkbox-group.vue +48 -0
  419. package/packages/checkbox/src/checkbox.vue +222 -0
  420. package/packages/checkbox-button/index.js +8 -0
  421. package/packages/checkbox-group/index.js +8 -0
  422. package/packages/col/index.js +9 -0
  423. package/packages/col/src/col.js +71 -0
  424. package/packages/collapse/index.js +9 -0
  425. package/packages/collapse/src/collapse-item.vue +114 -0
  426. package/packages/collapse/src/collapse.vue +73 -0
  427. package/packages/collapse-item/index.js +8 -0
  428. package/packages/color-picker/index.js +8 -0
  429. package/packages/color-picker/src/color.js +317 -0
  430. package/packages/color-picker/src/components/alpha-slider.vue +132 -0
  431. package/packages/color-picker/src/components/hue-slider.vue +123 -0
  432. package/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  433. package/packages/color-picker/src/components/predefine.vue +61 -0
  434. package/packages/color-picker/src/components/sv-panel.vue +100 -0
  435. package/packages/color-picker/src/draggable.js +36 -0
  436. package/packages/color-picker/src/main.vue +188 -0
  437. package/packages/container/index.js +8 -0
  438. package/packages/container/src/main.vue +33 -0
  439. package/packages/date-picker/index.js +8 -0
  440. package/packages/date-picker/src/basic/date-table.vue +441 -0
  441. package/packages/date-picker/src/basic/month-table.vue +254 -0
  442. package/packages/date-picker/src/basic/time-spinner.vue +304 -0
  443. package/packages/date-picker/src/basic/year-table.vue +101 -0
  444. package/packages/date-picker/src/panel/date-range.vue +679 -0
  445. package/packages/date-picker/src/panel/date.vue +597 -0
  446. package/packages/date-picker/src/panel/month-range.vue +288 -0
  447. package/packages/date-picker/src/panel/time-range.vue +248 -0
  448. package/packages/date-picker/src/panel/time-select.vue +178 -0
  449. package/packages/date-picker/src/panel/time.vue +186 -0
  450. package/packages/date-picker/src/picker/date-picker.js +43 -0
  451. package/packages/date-picker/src/picker/time-picker.js +39 -0
  452. package/packages/date-picker/src/picker/time-select.js +21 -0
  453. package/packages/date-picker/src/picker.vue +929 -0
  454. package/packages/dialog/index.js +8 -0
  455. package/packages/dialog/src/component.vue +213 -0
  456. package/packages/divider/index.js +8 -0
  457. package/packages/divider/src/main.vue +37 -0
  458. package/packages/drawer/index.js +8 -0
  459. package/packages/drawer/src/main.vue +198 -0
  460. package/packages/dropdown/index.js +8 -0
  461. package/packages/dropdown/src/dropdown-item.vue +37 -0
  462. package/packages/dropdown/src/dropdown-menu.vue +61 -0
  463. package/packages/dropdown/src/dropdown.vue +279 -0
  464. package/packages/dropdown-item/index.js +8 -0
  465. package/packages/dropdown-menu/index.js +8 -0
  466. package/packages/footer/index.js +8 -0
  467. package/packages/footer/src/main.vue +20 -0
  468. package/packages/form/index.js +8 -0
  469. package/packages/form/src/form-item.vue +319 -0
  470. package/packages/form/src/form.vue +186 -0
  471. package/packages/form/src/label-wrap.vue +78 -0
  472. package/packages/form-item/index.js +8 -0
  473. package/packages/header/index.js +8 -0
  474. package/packages/header/src/main.vue +20 -0
  475. package/packages/icon/index.js +8 -0
  476. package/packages/icon/src/icon.vue +13 -0
  477. package/packages/image/index.js +8 -0
  478. package/packages/image/src/image-viewer.vue +302 -0
  479. package/packages/image/src/main.vue +241 -0
  480. package/packages/image-viewer/index.js +8 -0
  481. package/packages/image-viewer/src/main.vue +302 -0
  482. package/packages/infinite-scroll/index.js +8 -0
  483. package/packages/infinite-scroll/src/main.js +150 -0
  484. package/packages/input/index.js +8 -0
  485. package/packages/input/src/calcTextareaHeight.js +104 -0
  486. package/packages/input/src/input.vue +420 -0
  487. package/packages/input-number/index.js +8 -0
  488. package/packages/input-number/src/input-number.vue +283 -0
  489. package/packages/link/index.js +8 -0
  490. package/packages/link/src/main.vue +53 -0
  491. package/packages/loading/index.js +11 -0
  492. package/packages/loading/src/directive.js +133 -0
  493. package/packages/loading/src/index.js +106 -0
  494. package/packages/loading/src/loading.vue +41 -0
  495. package/packages/main/index.js +8 -0
  496. package/packages/main/src/main.vue +12 -0
  497. package/packages/menu/index.js +8 -0
  498. package/packages/menu/src/menu-item-group.vue +45 -0
  499. package/packages/menu/src/menu-item.vue +112 -0
  500. package/packages/menu/src/menu-mixin.js +44 -0
  501. package/packages/menu/src/menu.vue +326 -0
  502. package/packages/menu/src/submenu.vue +349 -0
  503. package/packages/menu-item/index.js +8 -0
  504. package/packages/menu-item-group/index.js +8 -0
  505. package/packages/message/index.js +2 -0
  506. package/packages/message/src/main.js +87 -0
  507. package/packages/message/src/main.vue +117 -0
  508. package/packages/message-box/index.js +2 -0
  509. package/packages/message-box/src/main.js +227 -0
  510. package/packages/message-box/src/main.vue +340 -0
  511. package/packages/notification/index.js +2 -0
  512. package/packages/notification/src/main.js +94 -0
  513. package/packages/notification/src/main.vue +152 -0
  514. package/packages/one-button/index.js +8 -0
  515. package/packages/one-button/src/index.js +103 -0
  516. package/packages/one-button/src/index.vue +18 -0
  517. package/packages/one-cascader/index.js +8 -0
  518. package/packages/one-cascader/src/index.js +222 -0
  519. package/packages/one-cascader/src/index.vue +36 -0
  520. package/packages/one-dialog/index.js +8 -0
  521. package/packages/one-dialog/src/index.js +161 -0
  522. package/packages/one-dialog/src/index.vue +41 -0
  523. package/packages/one-draggable/index.js +8 -0
  524. package/packages/one-draggable/src/index.js +26 -0
  525. package/packages/one-draggable/src/index.vue +20 -0
  526. package/packages/one-form/index.js +8 -0
  527. package/packages/one-form/src/form-base64Img/index.js +154 -0
  528. package/packages/one-form/src/form-base64Img/index.vue +34 -0
  529. package/packages/one-form/src/form-cascader/index.js +121 -0
  530. package/packages/one-form/src/form-cascader/index.vue +27 -0
  531. package/packages/one-form/src/form-cascader-one/index.js +49 -0
  532. package/packages/one-form/src/form-cascader-one/index.vue +10 -0
  533. package/packages/one-form/src/form-checkbox/index.js +78 -0
  534. package/packages/one-form/src/form-checkbox/index.vue +19 -0
  535. package/packages/one-form/src/form-color/index.js +30 -0
  536. package/packages/one-form/src/form-color/index.vue +12 -0
  537. package/packages/one-form/src/form-date/index.js +92 -0
  538. package/packages/one-form/src/form-date/index.vue +64 -0
  539. package/packages/one-form/src/form-datetime/index.js +85 -0
  540. package/packages/one-form/src/form-datetime/index.vue +62 -0
  541. package/packages/one-form/src/form-file/index.js +132 -0
  542. package/packages/one-form/src/form-file/index.vue +28 -0
  543. package/packages/one-form/src/form-image/index.js +112 -0
  544. package/packages/one-form/src/form-image/index.vue +35 -0
  545. package/packages/one-form/src/form-input/index.js +85 -0
  546. package/packages/one-form/src/form-input/index.vue +41 -0
  547. package/packages/one-form/src/form-inputNumber/index.js +29 -0
  548. package/packages/one-form/src/form-inputNumber/index.vue +28 -0
  549. package/packages/one-form/src/form-inputSelect/index.js +78 -0
  550. package/packages/one-form/src/form-inputSelect/index.vue +59 -0
  551. package/packages/one-form/src/form-month/index.js +85 -0
  552. package/packages/one-form/src/form-month/index.vue +65 -0
  553. package/packages/one-form/src/form-password/index.js +30 -0
  554. package/packages/one-form/src/form-password/index.vue +24 -0
  555. package/packages/one-form/src/form-radio/index.js +44 -0
  556. package/packages/one-form/src/form-radio/index.vue +20 -0
  557. package/packages/one-form/src/form-rate/index.js +59 -0
  558. package/packages/one-form/src/form-rate/index.vue +19 -0
  559. package/packages/one-form/src/form-repeat-card/index.js +264 -0
  560. package/packages/one-form/src/form-repeat-card/index.vue +212 -0
  561. package/packages/one-form/src/form-select/index.js +154 -0
  562. package/packages/one-form/src/form-select/index.vue +26 -0
  563. package/packages/one-form/src/form-selectTree/index.js +92 -0
  564. package/packages/one-form/src/form-selectTree/index.vue +20 -0
  565. package/packages/one-form/src/form-switch/index.js +43 -0
  566. package/packages/one-form/src/form-switch/index.vue +22 -0
  567. package/packages/one-form/src/form-table/index.js +112 -0
  568. package/packages/one-form/src/form-table/index.vue +26 -0
  569. package/packages/one-form/src/form-textarea/index.js +32 -0
  570. package/packages/one-form/src/form-textarea/index.vue +25 -0
  571. package/packages/one-form/src/form-time/index.js +91 -0
  572. package/packages/one-form/src/form-time/index.vue +54 -0
  573. package/packages/one-form/src/form-tree/index.js +116 -0
  574. package/packages/one-form/src/form-tree/index.vue +14 -0
  575. package/packages/one-form/src/form-video/index.js +148 -0
  576. package/packages/one-form/src/form-video/index.vue +99 -0
  577. package/packages/one-form/src/form-vue-quill-editor/index.js +206 -0
  578. package/packages/one-form/src/form-vue-quill-editor/index.vue +19 -0
  579. package/packages/one-form/src/formItemFileMix.js +387 -0
  580. package/packages/one-form/src/formItemMix.js +376 -0
  581. package/packages/one-form/src/formMix.js +8 -0
  582. package/packages/one-form/src/index.css +8 -0
  583. package/packages/one-form/src/index.js +1226 -0
  584. package/packages/one-form/src/index.vue +240 -0
  585. package/packages/one-icon/index.js +8 -0
  586. package/packages/one-icon/src/index.css +7 -0
  587. package/packages/one-icon/src/index.vue +33 -0
  588. package/packages/one-icon-text/index.js +8 -0
  589. package/packages/one-icon-text/src/index.css +25 -0
  590. package/packages/one-icon-text/src/index.vue +71 -0
  591. package/packages/one-input/index.js +8 -0
  592. package/packages/one-input/src/calcTextareaHeight.js +104 -0
  593. package/packages/one-input/src/index.js +367 -0
  594. package/packages/one-input/src/index.vue +111 -0
  595. package/packages/one-search-form/index.js +8 -0
  596. package/packages/one-search-form/src/index - /345/211/257/346/234/254.vue" +225 -0
  597. package/packages/one-search-form/src/index.js +372 -0
  598. package/packages/one-search-form/src/index.vue +290 -0
  599. package/packages/one-select-tree/index.js +8 -0
  600. package/packages/one-select-tree/src/index.js +218 -0
  601. package/packages/one-select-tree/src/index.scss +35 -0
  602. package/packages/one-select-tree/src/index.vue +19 -0
  603. package/packages/one-slide-verify/index.js +8 -0
  604. package/packages/one-slide-verify/src/images.json +8 -0
  605. package/packages/one-slide-verify/src/index.css +143 -0
  606. package/packages/one-slide-verify/src/index.js +453 -0
  607. package/packages/one-slide-verify/src/index.vue +27 -0
  608. package/packages/one-table/index.js +8 -0
  609. package/packages/one-table/src/index.css +13 -0
  610. package/packages/one-table/src/index.js +1087 -0
  611. package/packages/one-table/src/index.vue +190 -0
  612. package/packages/one-table/src/table-edit/index.js +177 -0
  613. package/packages/one-table/src/table-edit/index.vue +211 -0
  614. package/packages/one-table/src/table-edit/table-column-checkbox/index.js +125 -0
  615. package/packages/one-table/src/table-edit/table-column-checkbox/index.vue +19 -0
  616. package/packages/one-table/src/table-edit/table-column-date/index.js +87 -0
  617. package/packages/one-table/src/table-edit/table-column-date/index.vue +58 -0
  618. package/packages/one-table/src/table-edit/table-column-datetime/index.js +87 -0
  619. package/packages/one-table/src/table-edit/table-column-datetime/index.vue +56 -0
  620. package/packages/one-table/src/table-edit/table-column-input/index.js +27 -0
  621. package/packages/one-table/src/table-edit/table-column-input/index.vue +37 -0
  622. package/packages/one-table/src/table-edit/table-column-inputNumber/index.js +27 -0
  623. package/packages/one-table/src/table-edit/table-column-inputNumber/index.vue +28 -0
  624. package/packages/one-table/src/table-edit/table-column-password/index.js +27 -0
  625. package/packages/one-table/src/table-edit/table-column-password/index.vue +22 -0
  626. package/packages/one-table/src/table-edit/table-column-radio/index.js +85 -0
  627. package/packages/one-table/src/table-edit/table-column-radio/index.vue +20 -0
  628. package/packages/one-table/src/table-edit/table-column-select/index.js +176 -0
  629. package/packages/one-table/src/table-edit/table-column-select/index.vue +34 -0
  630. package/packages/one-table/src/table-edit/table-column-selectTree/index.js +123 -0
  631. package/packages/one-table/src/table-edit/table-column-selectTree/index.vue +19 -0
  632. package/packages/one-table/src/table-edit/table-column-time/index.js +93 -0
  633. package/packages/one-table/src/table-edit/table-column-time/index.vue +39 -0
  634. package/packages/one-table/src/table-img/index.js +154 -0
  635. package/packages/one-table/src/table-img/index.vue +24 -0
  636. package/packages/one-table/src/table-img-id/index.js +154 -0
  637. package/packages/one-table/src/table-img-id/index.vue +26 -0
  638. package/packages/one-table/src/table-list/index.js +164 -0
  639. package/packages/one-table/src/table-list/index.vue +98 -0
  640. package/packages/one-table/src/table-opt/index.js +163 -0
  641. package/packages/one-table/src/table-opt/index.vue +35 -0
  642. package/packages/one-table/src/table-tree/index.js +154 -0
  643. package/packages/one-table/src/table-tree/index.vue +16 -0
  644. package/packages/one-tree/index.js +8 -0
  645. package/packages/one-tree/src/index.js +87 -0
  646. package/packages/one-tree/src/index.vue +15 -0
  647. package/packages/one-ueditor-wrap/.eslintrc.js +35 -0
  648. package/packages/one-ueditor-wrap/index.js +8 -0
  649. package/packages/one-ueditor-wrap/src/assets/images/demo.gif +0 -0
  650. package/packages/one-ueditor-wrap/src/assets/images/dist.png +0 -0
  651. package/packages/one-ueditor-wrap/src/assets/images/error1.png +0 -0
  652. package/packages/one-ueditor-wrap/src/assets/images/error2.png +0 -0
  653. package/packages/one-ueditor-wrap/src/assets/images/error3.png +0 -0
  654. package/packages/one-ueditor-wrap/src/assets/images/file.png +0 -0
  655. package/packages/one-ueditor-wrap/src/assets/images/ie.jpg +0 -0
  656. package/packages/one-ueditor-wrap/src/assets/images/ie.png +0 -0
  657. package/packages/one-ueditor-wrap/src/assets/images/reason.png +0 -0
  658. package/packages/one-ueditor-wrap/src/assets/images/source.png +0 -0
  659. package/packages/one-ueditor-wrap/src/dist/gbk-asp.zip +0 -0
  660. package/packages/one-ueditor-wrap/src/dist/gbk-jsp.zip +0 -0
  661. package/packages/one-ueditor-wrap/src/dist/gbk-net.zip +0 -0
  662. package/packages/one-ueditor-wrap/src/dist/gbk-php.zip +0 -0
  663. package/packages/one-ueditor-wrap/src/dist/utf8-asp.zip +0 -0
  664. package/packages/one-ueditor-wrap/src/dist/utf8-jsp.zip +0 -0
  665. package/packages/one-ueditor-wrap/src/dist/utf8-net.zip +0 -0
  666. package/packages/one-ueditor-wrap/src/dist/utf8-php.zip +0 -0
  667. package/packages/one-ueditor-wrap/src/index.vue +207 -0
  668. package/packages/one-ui-form/code-editor/index.vue +134 -0
  669. package/packages/one-ui-form/extension/extension-helper.js +22 -0
  670. package/packages/one-ui-form/extension/extension-loader.js +116 -0
  671. package/packages/one-ui-form/extension/samples/alert/alert-widget.vue +72 -0
  672. package/packages/one-ui-form/extension/samples/card/card-item.vue +100 -0
  673. package/packages/one-ui-form/extension/samples/card/card-widget.vue +132 -0
  674. package/packages/one-ui-form/extension/samples/extension-schema.js +36 -0
  675. package/packages/one-ui-form/extension/samples/extension-sfc-generator.js +50 -0
  676. package/packages/one-ui-form/form-designer/designer.js +948 -0
  677. package/packages/one-ui-form/form-designer/form-widget/container-widget/container-wrapper.vue +97 -0
  678. package/packages/one-ui-form/form-designer/form-widget/container-widget/containerMixin.js +95 -0
  679. package/packages/one-ui-form/form-designer/form-widget/container-widget/grid-col-widget.vue +314 -0
  680. package/packages/one-ui-form/form-designer/form-widget/container-widget/grid-widget.vue +80 -0
  681. package/packages/one-ui-form/form-designer/form-widget/container-widget/index.js +24 -0
  682. package/packages/one-ui-form/form-designer/form-widget/container-widget/tab-widget.vue +113 -0
  683. package/packages/one-ui-form/form-designer/form-widget/container-widget/table-cell-widget.vue +347 -0
  684. package/packages/one-ui-form/form-designer/form-widget/container-widget/table-widget.vue +106 -0
  685. package/packages/one-ui-form/form-designer/form-widget/field-widget/button-widget.vue +87 -0
  686. package/packages/one-ui-form/form-designer/form-widget/field-widget/cascader-widget.vue +116 -0
  687. package/packages/one-ui-form/form-designer/form-widget/field-widget/checkbox-widget.vue +105 -0
  688. package/packages/one-ui-form/form-designer/form-widget/field-widget/color-widget.vue +101 -0
  689. package/packages/one-ui-form/form-designer/form-widget/field-widget/date-range-widget.vue +104 -0
  690. package/packages/one-ui-form/form-designer/form-widget/field-widget/date-widget.vue +103 -0
  691. package/packages/one-ui-form/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
  692. package/packages/one-ui-form/form-designer/form-widget/field-widget/fieldMixin.js +586 -0
  693. package/packages/one-ui-form/form-designer/form-widget/field-widget/file-upload-widget.vue +301 -0
  694. package/packages/one-ui-form/form-designer/form-widget/field-widget/form-item-wrapper.vue +329 -0
  695. package/packages/one-ui-form/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
  696. package/packages/one-ui-form/form-designer/form-widget/field-widget/index.js +10 -0
  697. package/packages/one-ui-form/form-designer/form-widget/field-widget/input-widget.vue +112 -0
  698. package/packages/one-ui-form/form-designer/form-widget/field-widget/number-widget.vue +103 -0
  699. package/packages/one-ui-form/form-designer/form-widget/field-widget/picture-upload-widget.vue +249 -0
  700. package/packages/one-ui-form/form-designer/form-widget/field-widget/radio-widget.vue +105 -0
  701. package/packages/one-ui-form/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
  702. package/packages/one-ui-form/form-designer/form-widget/field-widget/rich-editor-widget.vue +122 -0
  703. package/packages/one-ui-form/form-designer/form-widget/field-widget/select-widget.vue +115 -0
  704. package/packages/one-ui-form/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
  705. package/packages/one-ui-form/form-designer/form-widget/field-widget/slot-widget.vue +102 -0
  706. package/packages/one-ui-form/form-designer/form-widget/field-widget/static-content-wrapper.vue +194 -0
  707. package/packages/one-ui-form/form-designer/form-widget/field-widget/static-text-widget.vue +83 -0
  708. package/packages/one-ui-form/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
  709. package/packages/one-ui-form/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
  710. package/packages/one-ui-form/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
  711. package/packages/one-ui-form/form-designer/form-widget/field-widget/time-widget.vue +103 -0
  712. package/packages/one-ui-form/form-designer/form-widget/index.vue +256 -0
  713. package/packages/one-ui-form/form-designer/index.vue +492 -0
  714. package/packages/one-ui-form/form-designer/refMixinDesign.js +31 -0
  715. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/color-editor.vue +22 -0
  716. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/customClass-editor.vue +39 -0
  717. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/defaultValue-editor.vue +19 -0
  718. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/event-editor.vue +41 -0
  719. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/grid-col-span-editor.vue +40 -0
  720. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/gutter-editor.vue +75 -0
  721. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/input-editor.vue +32 -0
  722. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/name-editor.vue +91 -0
  723. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/number-editor.vue +18 -0
  724. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/option-items-setting.vue +233 -0
  725. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/optionItems-editor.vue +22 -0
  726. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/propertyMixin.js +55 -0
  727. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/radio-editor.vue +27 -0
  728. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/select-editor.vue +27 -0
  729. package/packages/one-ui-form/form-designer/setting-panel/field-setting/editor/switch-editor.vue +17 -0
  730. package/packages/one-ui-form/form-designer/setting-panel/field-setting/index.js +13 -0
  731. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/basic-field-mixin.js +62 -0
  732. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/field-mixin.js +16 -0
  733. package/packages/one-ui-form/form-designer/setting-panel/field-setting/mixins/propertyMixin.js +59 -0
  734. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.js +206 -0
  735. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.scss +40 -0
  736. package/packages/one-ui-form/form-designer/setting-panel/form-setting/index.vue +147 -0
  737. package/packages/one-ui-form/form-designer/setting-panel/index.vue +448 -0
  738. package/packages/one-ui-form/form-designer/setting-panel/property-editor-factory.js +173 -0
  739. package/packages/one-ui-form/form-designer/setting-panel/propertyRegister.js +661 -0
  740. package/packages/one-ui-form/form-designer/toolbar-panel/index.vue +903 -0
  741. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/cascader.js +54 -0
  742. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/file-upload.js +42 -0
  743. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/picture-upload.js +42 -0
  744. package/packages/one-ui-form/form-designer/widget-panel/advancedFields/rich-editor.js +31 -0
  745. package/packages/one-ui-form/form-designer/widget-panel/basicFields/button.js +25 -0
  746. package/packages/one-ui-form/form-designer/widget-panel/basicFields/checkbox.js +47 -0
  747. package/packages/one-ui-form/form-designer/widget-panel/basicFields/color.js +32 -0
  748. package/packages/one-ui-form/form-designer/widget-panel/basicFields/date-range.js +41 -0
  749. package/packages/one-ui-form/form-designer/widget-panel/basicFields/date.js +40 -0
  750. package/packages/one-ui-form/form-designer/widget-panel/basicFields/divider.js +18 -0
  751. package/packages/one-ui-form/form-designer/widget-panel/basicFields/html-text.js +16 -0
  752. package/packages/one-ui-form/form-designer/widget-panel/basicFields/input.js +48 -0
  753. package/packages/one-ui-form/form-designer/widget-panel/basicFields/number.js +39 -0
  754. package/packages/one-ui-form/form-designer/widget-panel/basicFields/radio.js +47 -0
  755. package/packages/one-ui-form/form-designer/widget-panel/basicFields/rate.js +36 -0
  756. package/packages/one-ui-form/form-designer/widget-panel/basicFields/select.js +55 -0
  757. package/packages/one-ui-form/form-designer/widget-panel/basicFields/slider.js +37 -0
  758. package/packages/one-ui-form/form-designer/widget-panel/basicFields/slot.js +8 -0
  759. package/packages/one-ui-form/form-designer/widget-panel/basicFields/static-text.js +17 -0
  760. package/packages/one-ui-form/form-designer/widget-panel/basicFields/switch.js +31 -0
  761. package/packages/one-ui-form/form-designer/widget-panel/basicFields/textarea.js +40 -0
  762. package/packages/one-ui-form/form-designer/widget-panel/basicFields/time-range.js +39 -0
  763. package/packages/one-ui-form/form-designer/widget-panel/basicFields/time.js +38 -0
  764. package/packages/one-ui-form/form-designer/widget-panel/containers/grid-col.js +20 -0
  765. package/packages/one-ui-form/form-designer/widget-panel/containers/grid.js +13 -0
  766. package/packages/one-ui-form/form-designer/widget-panel/containers/tab-pane.js +15 -0
  767. package/packages/one-ui-form/form-designer/widget-panel/containers/tab.js +12 -0
  768. package/packages/one-ui-form/form-designer/widget-panel/containers/table-cell.js +16 -0
  769. package/packages/one-ui-form/form-designer/widget-panel/containers/table.js +11 -0
  770. package/packages/one-ui-form/form-designer/widget-panel/index.js +220 -0
  771. package/packages/one-ui-form/form-designer/widget-panel/index.scss +126 -0
  772. package/packages/one-ui-form/form-designer/widget-panel/index.vue +95 -0
  773. package/packages/one-ui-form/form-designer/widget-panel/templatesConfig.js +58 -0
  774. package/packages/one-ui-form/form-designer/widget-panel/widgetsConfig.js +36 -0
  775. package/packages/one-ui-form/form-render/container-item/container-item-wrapper.vue +27 -0
  776. package/packages/one-ui-form/form-render/container-item/containerItemMixin.js +184 -0
  777. package/packages/one-ui-form/form-render/container-item/grid-col-item.vue +126 -0
  778. package/packages/one-ui-form/form-render/container-item/grid-item.vue +55 -0
  779. package/packages/one-ui-form/form-render/container-item/index.js +24 -0
  780. package/packages/one-ui-form/form-render/container-item/sub-form-item.vue +412 -0
  781. package/packages/one-ui-form/form-render/container-item/tab-item.vue +99 -0
  782. package/packages/one-ui-form/form-render/container-item/table-cell-item.vue +71 -0
  783. package/packages/one-ui-form/form-render/container-item/table-item.vue +70 -0
  784. package/packages/one-ui-form/form-render/index.vue +665 -0
  785. package/packages/one-ui-form/form-render/refMixin.js +22 -0
  786. package/packages/one-ui-form/iconfont/iconfont.css +29 -0
  787. package/packages/one-ui-form/iconfont/iconfont.eot +0 -0
  788. package/packages/one-ui-form/iconfont/iconfont.js +1 -0
  789. package/packages/one-ui-form/iconfont/iconfont.json +37 -0
  790. package/packages/one-ui-form/iconfont/iconfont.svg +35 -0
  791. package/packages/one-ui-form/iconfont/iconfont.ttf +0 -0
  792. package/packages/one-ui-form/iconfont/iconfont.woff +0 -0
  793. package/packages/one-ui-form/iconfont/iconfont.woff2 +0 -0
  794. package/packages/one-ui-form/icons/alert.svg +1 -0
  795. package/packages/one-ui-form/icons/button.svg +1 -0
  796. package/packages/one-ui-form/icons/card.svg +1 -0
  797. package/packages/one-ui-form/icons/cascader-field.svg +1 -0
  798. package/packages/one-ui-form/icons/checkbox-field.svg +1 -0
  799. package/packages/one-ui-form/icons/color-field.svg +1 -0
  800. package/packages/one-ui-form/icons/custom-component.svg +1 -0
  801. package/packages/one-ui-form/icons/data-table.svg +1 -0
  802. package/packages/one-ui-form/icons/date-field.svg +1 -0
  803. package/packages/one-ui-form/icons/date-range-field.svg +1 -0
  804. package/packages/one-ui-form/icons/divider.svg +1 -0
  805. package/packages/one-ui-form/icons/document.svg +1 -0
  806. package/packages/one-ui-form/icons/drag.svg +1 -0
  807. package/packages/one-ui-form/icons/file-upload-field.svg +1 -0
  808. package/packages/one-ui-form/icons/github.svg +1 -0
  809. package/packages/one-ui-form/icons/grid.svg +1 -0
  810. package/packages/one-ui-form/icons/html-text.svg +1 -0
  811. package/packages/one-ui-form/icons/node-tree.svg +1 -0
  812. package/packages/one-ui-form/icons/number-field.svg +1 -0
  813. package/packages/one-ui-form/icons/picture-upload-field.svg +1 -0
  814. package/packages/one-ui-form/icons/radio-field.svg +1 -0
  815. package/packages/one-ui-form/icons/rate-field.svg +1 -0
  816. package/packages/one-ui-form/icons/redo.svg +1 -0
  817. package/packages/one-ui-form/icons/rich-editor-field.svg +1 -0
  818. package/packages/one-ui-form/icons/section.svg +1 -0
  819. package/packages/one-ui-form/icons/select-field.svg +1 -0
  820. package/packages/one-ui-form/icons/slider-field.svg +1 -0
  821. package/packages/one-ui-form/icons/slot-component.svg +1 -0
  822. package/packages/one-ui-form/icons/slot-field.svg +1 -0
  823. package/packages/one-ui-form/icons/static-text.svg +1 -0
  824. package/packages/one-ui-form/icons/sub-form.svg +1 -0
  825. package/packages/one-ui-form/icons/switch-field.svg +1 -0
  826. package/packages/one-ui-form/icons/tab.svg +1 -0
  827. package/packages/one-ui-form/icons/table.svg +1 -0
  828. package/packages/one-ui-form/icons/text-field.svg +1 -0
  829. package/packages/one-ui-form/icons/textarea-field.svg +1 -0
  830. package/packages/one-ui-form/icons/time-field.svg +1 -0
  831. package/packages/one-ui-form/icons/time-range-field.svg +1 -0
  832. package/packages/one-ui-form/icons/undo.svg +1 -0
  833. package/packages/one-ui-form/icons/vue-sfc.svg +1 -0
  834. package/packages/one-ui-form/index.js +64 -0
  835. package/packages/one-ui-form/lang/en-US.js +351 -0
  836. package/packages/one-ui-form/lang/en-US_extension.js +26 -0
  837. package/packages/one-ui-form/lang/en-US_render.js +38 -0
  838. package/packages/one-ui-form/lang/zh-CN.js +352 -0
  839. package/packages/one-ui-form/lang/zh-CN_extension.js +26 -0
  840. package/packages/one-ui-form/lang/zh-CN_render.js +38 -0
  841. package/packages/one-ui-form/styles/global.scss +108 -0
  842. package/packages/one-ui-form/styles/index.scss +15 -0
  843. package/packages/one-ui-form/utils/beautifierLoader.js +77 -0
  844. package/packages/one-ui-form/utils/code-generator.js +91 -0
  845. package/packages/one-ui-form/utils/config.js +19 -0
  846. package/packages/one-ui-form/utils/debug-console.js +7 -0
  847. package/packages/one-ui-form/utils/directive.js +74 -0
  848. package/packages/one-ui-form/utils/emitter.js +34 -0
  849. package/packages/one-ui-form/utils/format.js +214 -0
  850. package/packages/one-ui-form/utils/i18n.js +94 -0
  851. package/packages/one-ui-form/utils/sfc-generator.js +579 -0
  852. package/packages/one-ui-form/utils/smart-vue-i18n/index.js +56 -0
  853. package/packages/one-ui-form/utils/smart-vue-i18n/utils.js +49 -0
  854. package/packages/one-ui-form/utils/util.js +350 -0
  855. package/packages/one-ui-form/utils/validators.js +127 -0
  856. package/packages/one-ui-form/utils/vue2js-generator.js +144 -0
  857. package/packages/one-ui-form/utils/vue3js-generator.js +70 -0
  858. package/packages/one-ui-form/v-table/index.vue +106 -0
  859. package/packages/one-video-player/index.js +8 -0
  860. package/packages/one-video-player/src/index.js +146 -0
  861. package/packages/one-video-player/src/index.vue +29 -0
  862. package/packages/one-wave-bg/index.js +8 -0
  863. package/packages/one-wave-bg/src/index.js +181 -0
  864. package/packages/one-wave-bg/src/index.vue +18 -0
  865. package/packages/option/index.js +8 -0
  866. package/packages/option-group/index.js +8 -0
  867. package/packages/page-header/index.js +8 -0
  868. package/packages/page-header/src/main.vue +30 -0
  869. package/packages/pagination/index.js +8 -0
  870. package/packages/pagination/src/pager.vue +163 -0
  871. package/packages/pagination/src/pagination.js +386 -0
  872. package/packages/popconfirm/index.js +8 -0
  873. package/packages/popconfirm/src/main.vue +98 -0
  874. package/packages/popover/index.js +14 -0
  875. package/packages/popover/src/directive.js +20 -0
  876. package/packages/popover/src/main.vue +237 -0
  877. package/packages/progress/index.js +8 -0
  878. package/packages/progress/src/progress.vue +227 -0
  879. package/packages/radio/index.js +8 -0
  880. package/packages/radio/src/radio-button.vue +114 -0
  881. package/packages/radio/src/radio-group.vue +111 -0
  882. package/packages/radio/src/radio.vue +133 -0
  883. package/packages/radio-button/index.js +8 -0
  884. package/packages/radio-group/index.js +8 -0
  885. package/packages/rate/index.js +8 -0
  886. package/packages/rate/src/main.vue +348 -0
  887. package/packages/row/index.js +9 -0
  888. package/packages/row/src/row.js +47 -0
  889. package/packages/scrollbar/index.js +8 -0
  890. package/packages/scrollbar/src/bar.js +92 -0
  891. package/packages/scrollbar/src/main.js +130 -0
  892. package/packages/scrollbar/src/util.js +34 -0
  893. package/packages/select/index.js +8 -0
  894. package/packages/select/src/navigation-mixin.js +54 -0
  895. package/packages/select/src/option-group.vue +60 -0
  896. package/packages/select/src/option.vue +168 -0
  897. package/packages/select/src/select-dropdown.vue +74 -0
  898. package/packages/select/src/select.vue +892 -0
  899. package/packages/slider/index.js +8 -0
  900. package/packages/slider/src/button.vue +238 -0
  901. package/packages/slider/src/main.vue +427 -0
  902. package/packages/slider/src/marker.js +18 -0
  903. package/packages/spinner/index.js +8 -0
  904. package/packages/spinner/src/spinner.vue +27 -0
  905. package/packages/step/index.js +8 -0
  906. package/packages/steps/README.md +69 -0
  907. package/packages/steps/index.js +8 -0
  908. package/packages/steps/src/step.vue +184 -0
  909. package/packages/steps/src/steps.vue +68 -0
  910. package/packages/submenu/index.js +8 -0
  911. package/packages/switch/index.js +9 -0
  912. package/packages/switch/src/component.vue +172 -0
  913. package/packages/tab-pane/index.js +8 -0
  914. package/packages/table/index.js +8 -0
  915. package/packages/table/src/config.js +123 -0
  916. package/packages/table/src/dropdown.js +28 -0
  917. package/packages/table/src/filter-panel.vue +194 -0
  918. package/packages/table/src/layout-observer.js +68 -0
  919. package/packages/table/src/store/current.js +76 -0
  920. package/packages/table/src/store/expand.js +65 -0
  921. package/packages/table/src/store/helper.js +39 -0
  922. package/packages/table/src/store/index.js +146 -0
  923. package/packages/table/src/store/tree.js +205 -0
  924. package/packages/table/src/store/watcher.js +381 -0
  925. package/packages/table/src/table-body.js +483 -0
  926. package/packages/table/src/table-column.js +319 -0
  927. package/packages/table/src/table-footer.js +153 -0
  928. package/packages/table/src/table-header.js +509 -0
  929. package/packages/table/src/table-layout.js +249 -0
  930. package/packages/table/src/table.vue +694 -0
  931. package/packages/table/src/util.js +255 -0
  932. package/packages/table-column/index.js +8 -0
  933. package/packages/tabs/index.js +8 -0
  934. package/packages/tabs/src/tab-bar.vue +57 -0
  935. package/packages/tabs/src/tab-nav.vue +294 -0
  936. package/packages/tabs/src/tab-pane.vue +56 -0
  937. package/packages/tabs/src/tabs.vue +191 -0
  938. package/packages/tag/index.js +8 -0
  939. package/packages/tag/src/tag.vue +58 -0
  940. package/packages/theme-chalk/README.md +33 -0
  941. package/packages/theme-chalk/lib/$(filter-out.css +0 -0
  942. package/packages/theme-chalk/lib/alert.css +1 -0
  943. package/packages/theme-chalk/lib/aside.css +1 -0
  944. package/packages/theme-chalk/lib/autocomplete.css +1 -0
  945. package/packages/theme-chalk/lib/avatar.css +1 -0
  946. package/packages/theme-chalk/lib/backtop.css +1 -0
  947. package/packages/theme-chalk/lib/badge.css +1 -0
  948. package/packages/theme-chalk/lib/base.css +1 -0
  949. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  950. package/packages/theme-chalk/lib/breadcrumb.css +1 -0
  951. package/packages/theme-chalk/lib/button-group.css +0 -0
  952. package/packages/theme-chalk/lib/button.css +1 -0
  953. package/packages/theme-chalk/lib/calendar.css +1 -0
  954. package/packages/theme-chalk/lib/card.css +1 -0
  955. package/packages/theme-chalk/lib/carousel-item.css +1 -0
  956. package/packages/theme-chalk/lib/carousel.css +1 -0
  957. package/packages/theme-chalk/lib/cascader-panel.css +1 -0
  958. package/packages/theme-chalk/lib/cascader.css +1 -0
  959. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  960. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  961. package/packages/theme-chalk/lib/checkbox.css +1 -0
  962. package/packages/theme-chalk/lib/col.css +1 -0
  963. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  964. package/packages/theme-chalk/lib/collapse.css +1 -0
  965. package/packages/theme-chalk/lib/color-picker.css +1 -0
  966. package/packages/theme-chalk/lib/container.css +1 -0
  967. package/packages/theme-chalk/lib/date-picker.css +1 -0
  968. package/packages/theme-chalk/lib/dialog.css +1 -0
  969. package/packages/theme-chalk/lib/display.css +1 -0
  970. package/packages/theme-chalk/lib/divider.css +1 -0
  971. package/packages/theme-chalk/lib/drawer.css +1 -0
  972. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  973. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  974. package/packages/theme-chalk/lib/dropdown.css +1 -0
  975. package/packages/theme-chalk/lib/fonts/one-icons.ttf +0 -0
  976. package/packages/theme-chalk/lib/fonts/one-icons.woff +0 -0
  977. package/packages/theme-chalk/lib/footer.css +1 -0
  978. package/packages/theme-chalk/lib/form-item.css +0 -0
  979. package/packages/theme-chalk/lib/form.css +1 -0
  980. package/packages/theme-chalk/lib/header.css +1 -0
  981. package/packages/theme-chalk/lib/icon.css +1 -0
  982. package/packages/theme-chalk/lib/image-viewer.css +0 -0
  983. package/packages/theme-chalk/lib/image.css +1 -0
  984. package/packages/theme-chalk/lib/index.css +1 -0
  985. package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
  986. package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
  987. package/packages/theme-chalk/lib/input-number.css +1 -0
  988. package/packages/theme-chalk/lib/input.css +1 -0
  989. package/packages/theme-chalk/lib/link.css +1 -0
  990. package/packages/theme-chalk/lib/loading.css +1 -0
  991. package/packages/theme-chalk/lib/main.css +1 -0
  992. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  993. package/packages/theme-chalk/lib/menu-item.css +0 -0
  994. package/packages/theme-chalk/lib/menu.css +1 -0
  995. package/packages/theme-chalk/lib/message-box.css +1 -0
  996. package/packages/theme-chalk/lib/message.css +1 -0
  997. package/packages/theme-chalk/lib/notification.css +1 -0
  998. package/packages/theme-chalk/lib/one-button.css +0 -0
  999. package/packages/theme-chalk/lib/one-cascader.css +0 -0
  1000. package/packages/theme-chalk/lib/one-dialog.css +0 -0
  1001. package/packages/theme-chalk/lib/one-draggable.css +0 -0
  1002. package/packages/theme-chalk/lib/one-form-genarate-designer.css +0 -0
  1003. package/packages/theme-chalk/lib/one-form-genarate-parser.css +0 -0
  1004. package/packages/theme-chalk/lib/one-form.css +1 -0
  1005. package/packages/theme-chalk/lib/one-icon-text.css +1 -0
  1006. package/packages/theme-chalk/lib/one-icon.css +1 -0
  1007. package/packages/theme-chalk/lib/one-input.css +0 -0
  1008. package/packages/theme-chalk/lib/one-search-form.css +1 -0
  1009. package/packages/theme-chalk/lib/one-select-tree.css +1 -0
  1010. package/packages/theme-chalk/lib/one-slide-verify.css +1 -0
  1011. package/packages/theme-chalk/lib/one-table.css +1 -0
  1012. package/packages/theme-chalk/lib/one-tree.css +0 -0
  1013. package/packages/theme-chalk/lib/one-ueditor-wrap.css +0 -0
  1014. package/packages/theme-chalk/lib/one-video-player.css +0 -0
  1015. package/packages/theme-chalk/lib/one-wave-bg.css +0 -0
  1016. package/packages/theme-chalk/lib/option-group.css +1 -0
  1017. package/packages/theme-chalk/lib/option.css +1 -0
  1018. package/packages/theme-chalk/lib/page-header.css +1 -0
  1019. package/packages/theme-chalk/lib/pagination.css +1 -0
  1020. package/packages/theme-chalk/lib/popconfirm.css +1 -0
  1021. package/packages/theme-chalk/lib/popover.css +1 -0
  1022. package/packages/theme-chalk/lib/popper.css +1 -0
  1023. package/packages/theme-chalk/lib/progress.css +1 -0
  1024. package/packages/theme-chalk/lib/radio-button.css +1 -0
  1025. package/packages/theme-chalk/lib/radio-group.css +1 -0
  1026. package/packages/theme-chalk/lib/radio.css +1 -0
  1027. package/packages/theme-chalk/lib/rate.css +1 -0
  1028. package/packages/theme-chalk/lib/reset.css +1 -0
  1029. package/packages/theme-chalk/lib/row.css +1 -0
  1030. package/packages/theme-chalk/lib/scrollbar.css +1 -0
  1031. package/packages/theme-chalk/lib/select-dropdown.css +1 -0
  1032. package/packages/theme-chalk/lib/select.css +1 -0
  1033. package/packages/theme-chalk/lib/slider.css +1 -0
  1034. package/packages/theme-chalk/lib/spinner.css +1 -0
  1035. package/packages/theme-chalk/lib/step.css +1 -0
  1036. package/packages/theme-chalk/lib/steps.css +1 -0
  1037. package/packages/theme-chalk/lib/submenu.css +0 -0
  1038. package/packages/theme-chalk/lib/switch.css +1 -0
  1039. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  1040. package/packages/theme-chalk/lib/table-column.css +1 -0
  1041. package/packages/theme-chalk/lib/table.css +1 -0
  1042. package/packages/theme-chalk/lib/tabs.css +1 -0
  1043. package/packages/theme-chalk/lib/tag.css +1 -0
  1044. package/packages/theme-chalk/lib/time-picker.css +1 -0
  1045. package/packages/theme-chalk/lib/time-select.css +1 -0
  1046. package/packages/theme-chalk/lib/timeline-item.css +1 -0
  1047. package/packages/theme-chalk/lib/timeline.css +1 -0
  1048. package/packages/theme-chalk/lib/tooltip.css +1 -0
  1049. package/packages/theme-chalk/lib/transfer.css +1 -0
  1050. package/packages/theme-chalk/lib/tree.css +1 -0
  1051. package/packages/theme-chalk/lib/upload.css +1 -0
  1052. package/packages/theme-chalk/package.json +35 -0
  1053. package/packages/theme-chalk/src/$(filter-out.scss +0 -0
  1054. package/packages/theme-chalk/src/alert.scss +147 -0
  1055. package/packages/theme-chalk/src/aside.scss +7 -0
  1056. package/packages/theme-chalk/src/autocomplete.scss +80 -0
  1057. package/packages/theme-chalk/src/avatar.scss +51 -0
  1058. package/packages/theme-chalk/src/backtop.scss +22 -0
  1059. package/packages/theme-chalk/src/badge.scss +57 -0
  1060. package/packages/theme-chalk/src/base.scss +2 -0
  1061. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  1062. package/packages/theme-chalk/src/breadcrumb.scss +55 -0
  1063. package/packages/theme-chalk/src/button-group.scss +0 -0
  1064. package/packages/theme-chalk/src/button.scss +260 -0
  1065. package/packages/theme-chalk/src/calendar.scss +79 -0
  1066. package/packages/theme-chalk/src/card.scss +32 -0
  1067. package/packages/theme-chalk/src/carousel-item.scss +50 -0
  1068. package/packages/theme-chalk/src/carousel.scss +161 -0
  1069. package/packages/theme-chalk/src/cascader-panel.scss +120 -0
  1070. package/packages/theme-chalk/src/cascader.scss +182 -0
  1071. package/packages/theme-chalk/src/checkbox-button.scss +0 -0
  1072. package/packages/theme-chalk/src/checkbox-group.scss +0 -0
  1073. package/packages/theme-chalk/src/checkbox.scss +359 -0
  1074. package/packages/theme-chalk/src/col.scss +156 -0
  1075. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  1076. package/packages/theme-chalk/src/collapse.scss +63 -0
  1077. package/packages/theme-chalk/src/color-picker.scss +384 -0
  1078. package/packages/theme-chalk/src/common/popup.scss +42 -0
  1079. package/packages/theme-chalk/src/common/transition.scss +99 -0
  1080. package/packages/theme-chalk/src/common/var.scss +994 -0
  1081. package/packages/theme-chalk/src/container.scss +14 -0
  1082. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  1083. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  1084. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  1085. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -0
  1086. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  1087. package/packages/theme-chalk/src/date-picker/picker.scss +197 -0
  1088. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  1089. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  1090. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  1091. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -0
  1092. package/packages/theme-chalk/src/date-picker.scss +12 -0
  1093. package/packages/theme-chalk/src/dialog.scss +123 -0
  1094. package/packages/theme-chalk/src/display.scss +12 -0
  1095. package/packages/theme-chalk/src/divider.scss +47 -0
  1096. package/packages/theme-chalk/src/drawer.scss +217 -0
  1097. package/packages/theme-chalk/src/dropdown-item.scss +0 -0
  1098. package/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  1099. package/packages/theme-chalk/src/dropdown.scss +177 -0
  1100. package/packages/theme-chalk/src/fonts/one-icons.ttf +0 -0
  1101. package/packages/theme-chalk/src/fonts/one-icons.woff +0 -0
  1102. package/packages/theme-chalk/src/footer.scss +8 -0
  1103. package/packages/theme-chalk/src/form-item.scss +0 -0
  1104. package/packages/theme-chalk/src/form.scss +167 -0
  1105. package/packages/theme-chalk/src/header.scss +8 -0
  1106. package/packages/theme-chalk/src/icon.scss +1167 -0
  1107. package/packages/theme-chalk/src/image-viewer.scss +0 -0
  1108. package/packages/theme-chalk/src/image.scss +177 -0
  1109. package/packages/theme-chalk/src/index.scss +97 -0
  1110. package/packages/theme-chalk/src/infinite-scroll.scss +0 -0
  1111. package/packages/theme-chalk/src/infiniteScroll.scss +0 -0
  1112. package/packages/theme-chalk/src/input-number.scss +180 -0
  1113. package/packages/theme-chalk/src/input.scss +356 -0
  1114. package/packages/theme-chalk/src/link.scss +81 -0
  1115. package/packages/theme-chalk/src/loading.scss +96 -0
  1116. package/packages/theme-chalk/src/main.scss +12 -0
  1117. package/packages/theme-chalk/src/menu-item-group.scss +0 -0
  1118. package/packages/theme-chalk/src/menu-item.scss +0 -0
  1119. package/packages/theme-chalk/src/menu.scss +289 -0
  1120. package/packages/theme-chalk/src/message-box.scss +226 -0
  1121. package/packages/theme-chalk/src/message.scss +120 -0
  1122. package/packages/theme-chalk/src/mixins/_button.scss +81 -0
  1123. package/packages/theme-chalk/src/mixins/config.scss +4 -0
  1124. package/packages/theme-chalk/src/mixins/function.scss +44 -0
  1125. package/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  1126. package/packages/theme-chalk/src/mixins/utils.scss +39 -0
  1127. package/packages/theme-chalk/src/notification.scss +99 -0
  1128. package/packages/theme-chalk/src/one-button.scss +0 -0
  1129. package/packages/theme-chalk/src/one-cascader.scss +0 -0
  1130. package/packages/theme-chalk/src/one-dialog.scss +0 -0
  1131. package/packages/theme-chalk/src/one-draggable.scss +0 -0
  1132. package/packages/theme-chalk/src/one-form-genarate-designer.scss +0 -0
  1133. package/packages/theme-chalk/src/one-form-genarate-parser.scss +0 -0
  1134. package/packages/theme-chalk/src/one-form.scss +39 -0
  1135. package/packages/theme-chalk/src/one-icon-text.scss +24 -0
  1136. package/packages/theme-chalk/src/one-icon.scss +7 -0
  1137. package/packages/theme-chalk/src/one-input.scss +0 -0
  1138. package/packages/theme-chalk/src/one-search-form.scss +23 -0
  1139. package/packages/theme-chalk/src/one-select-tree.scss +43 -0
  1140. package/packages/theme-chalk/src/one-slide-verify.scss +145 -0
  1141. package/packages/theme-chalk/src/one-table.scss +27 -0
  1142. package/packages/theme-chalk/src/one-tree.scss +0 -0
  1143. package/packages/theme-chalk/src/one-ueditor-wrap.scss +0 -0
  1144. package/packages/theme-chalk/src/one-video-player.scss +0 -0
  1145. package/packages/theme-chalk/src/one-wave-bg.scss +0 -0
  1146. package/packages/theme-chalk/src/option-group.scss +42 -0
  1147. package/packages/theme-chalk/src/option.scss +36 -0
  1148. package/packages/theme-chalk/src/page-header.scss +41 -0
  1149. package/packages/theme-chalk/src/pagination.scss +295 -0
  1150. package/packages/theme-chalk/src/popconfirm.scss +16 -0
  1151. package/packages/theme-chalk/src/popover.scss +40 -0
  1152. package/packages/theme-chalk/src/popper.scss +101 -0
  1153. package/packages/theme-chalk/src/progress.scss +141 -0
  1154. package/packages/theme-chalk/src/radio-button.scss +113 -0
  1155. package/packages/theme-chalk/src/radio-group.scss +9 -0
  1156. package/packages/theme-chalk/src/radio.scss +199 -0
  1157. package/packages/theme-chalk/src/rate.scss +49 -0
  1158. package/packages/theme-chalk/src/reset.scss +79 -0
  1159. package/packages/theme-chalk/src/row.scss +39 -0
  1160. package/packages/theme-chalk/src/scrollbar.scss +72 -0
  1161. package/packages/theme-chalk/src/select-dropdown.scss +59 -0
  1162. package/packages/theme-chalk/src/select.scss +148 -0
  1163. package/packages/theme-chalk/src/slider.scss +250 -0
  1164. package/packages/theme-chalk/src/spinner.scss +44 -0
  1165. package/packages/theme-chalk/src/step.scss +317 -0
  1166. package/packages/theme-chalk/src/steps.scss +20 -0
  1167. package/packages/theme-chalk/src/submenu.scss +0 -0
  1168. package/packages/theme-chalk/src/switch.scss +116 -0
  1169. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  1170. package/packages/theme-chalk/src/table-column.scss +97 -0
  1171. package/packages/theme-chalk/src/table.scss +563 -0
  1172. package/packages/theme-chalk/src/tabs.scss +602 -0
  1173. package/packages/theme-chalk/src/tag.scss +163 -0
  1174. package/packages/theme-chalk/src/time-picker.scss +8 -0
  1175. package/packages/theme-chalk/src/time-select.scss +37 -0
  1176. package/packages/theme-chalk/src/timeline-item.scss +86 -0
  1177. package/packages/theme-chalk/src/timeline.scss +14 -0
  1178. package/packages/theme-chalk/src/tooltip.scss +141 -0
  1179. package/packages/theme-chalk/src/transfer.scss +227 -0
  1180. package/packages/theme-chalk/src/tree.scss +123 -0
  1181. package/packages/theme-chalk/src/upload.scss +603 -0
  1182. package/packages/time-picker/index.js +8 -0
  1183. package/packages/time-select/index.js +8 -0
  1184. package/packages/timeline/index.js +8 -0
  1185. package/packages/timeline/src/item.vue +73 -0
  1186. package/packages/timeline/src/main.vue +33 -0
  1187. package/packages/timeline-item/index.js +8 -0
  1188. package/packages/tooltip/index.js +8 -0
  1189. package/packages/tooltip/src/main.js +241 -0
  1190. package/packages/transfer/index.js +8 -0
  1191. package/packages/transfer/src/main.vue +231 -0
  1192. package/packages/transfer/src/transfer-panel.vue +251 -0
  1193. package/packages/tree/index.js +8 -0
  1194. package/packages/tree/src/model/node.js +485 -0
  1195. package/packages/tree/src/model/tree-store.js +340 -0
  1196. package/packages/tree/src/model/util.js +27 -0
  1197. package/packages/tree/src/tree-node.vue +279 -0
  1198. package/packages/tree/src/tree.vue +496 -0
  1199. package/packages/upload/index.js +8 -0
  1200. package/packages/upload/src/ajax.js +85 -0
  1201. package/packages/upload/src/index.vue +341 -0
  1202. package/packages/upload/src/upload-dragger.vue +70 -0
  1203. package/packages/upload/src/upload-list.vue +105 -0
  1204. package/packages/upload/src/upload.vue +242 -0
  1205. package/src/directives/mousewheel.js +18 -0
  1206. package/src/directives/repeat-click.js +24 -0
  1207. package/src/index.js +426 -0
  1208. package/src/lib/encrypt/oneaes.js +85 -0
  1209. package/src/lib/encrypt/onesm2.js +88 -0
  1210. package/src/lib/encrypt/sm-crypto/index.js +5 -0
  1211. package/src/lib/encrypt/sm-crypto/sm2/asn1.js +243 -0
  1212. package/src/lib/encrypt/sm-crypto/sm2/ec.js +318 -0
  1213. package/src/lib/encrypt/sm-crypto/sm2/index.js +213 -0
  1214. package/src/lib/encrypt/sm-crypto/sm2/sm2.js +93 -0
  1215. package/src/lib/encrypt/sm-crypto/sm2/sm3.js +344 -0
  1216. package/src/lib/encrypt/sm-crypto/sm2/utils.js +167 -0
  1217. package/src/lib/encrypt/sm-crypto/sm3/index.js +235 -0
  1218. package/src/lib/encrypt/sm-crypto/sm4/index.js +304 -0
  1219. package/src/lib/onedate.js +91 -0
  1220. package/src/lib/oneencrypt.js +98 -0
  1221. package/src/lib/oneformrules.js +331 -0
  1222. package/src/lib/onenumber.js +107 -0
  1223. package/src/lib/onerequest.js +381 -0
  1224. package/src/lib/onerouter.js +152 -0
  1225. package/src/lib/onestorage.js +182 -0
  1226. package/src/lib/onetool.js +575 -0
  1227. package/src/lib/oneurl.js +269 -0
  1228. package/src/lib/onevalidate.js +125 -0
  1229. package/src/locale/format.js +46 -0
  1230. package/src/locale/index.js +48 -0
  1231. package/src/locale/lang/af-ZA.js +120 -0
  1232. package/src/locale/lang/ar.js +119 -0
  1233. package/src/locale/lang/bg.js +120 -0
  1234. package/src/locale/lang/ca.js +119 -0
  1235. package/src/locale/lang/cs-CZ.js +122 -0
  1236. package/src/locale/lang/da.js +119 -0
  1237. package/src/locale/lang/de.js +121 -0
  1238. package/src/locale/lang/ee.js +120 -0
  1239. package/src/locale/lang/el.js +120 -0
  1240. package/src/locale/lang/en.js +120 -0
  1241. package/src/locale/lang/eo.js +120 -0
  1242. package/src/locale/lang/es.js +119 -0
  1243. package/src/locale/lang/eu.js +120 -0
  1244. package/src/locale/lang/fa.js +120 -0
  1245. package/src/locale/lang/fi.js +120 -0
  1246. package/src/locale/lang/fr.js +119 -0
  1247. package/src/locale/lang/he.js +120 -0
  1248. package/src/locale/lang/hr.js +120 -0
  1249. package/src/locale/lang/hu.js +119 -0
  1250. package/src/locale/lang/hy-AM.js +120 -0
  1251. package/src/locale/lang/id.js +120 -0
  1252. package/src/locale/lang/it.js +119 -0
  1253. package/src/locale/lang/ja.js +120 -0
  1254. package/src/locale/lang/kg.js +120 -0
  1255. package/src/locale/lang/km.js +120 -0
  1256. package/src/locale/lang/ko.js +120 -0
  1257. package/src/locale/lang/ku.js +120 -0
  1258. package/src/locale/lang/kz.js +120 -0
  1259. package/src/locale/lang/lt.js +120 -0
  1260. package/src/locale/lang/lv.js +120 -0
  1261. package/src/locale/lang/mn.js +120 -0
  1262. package/src/locale/lang/nb-NO.js +119 -0
  1263. package/src/locale/lang/nl.js +120 -0
  1264. package/src/locale/lang/pl.js +120 -0
  1265. package/src/locale/lang/pt-br.js +120 -0
  1266. package/src/locale/lang/pt.js +120 -0
  1267. package/src/locale/lang/ro.js +120 -0
  1268. package/src/locale/lang/ru-RU.js +120 -0
  1269. package/src/locale/lang/sk.js +122 -0
  1270. package/src/locale/lang/sl.js +120 -0
  1271. package/src/locale/lang/sr.js +120 -0
  1272. package/src/locale/lang/sv-SE.js +120 -0
  1273. package/src/locale/lang/ta.js +119 -0
  1274. package/src/locale/lang/th.js +120 -0
  1275. package/src/locale/lang/tk.js +120 -0
  1276. package/src/locale/lang/tr-TR.js +120 -0
  1277. package/src/locale/lang/ua.js +120 -0
  1278. package/src/locale/lang/ug-CN.js +120 -0
  1279. package/src/locale/lang/uz-UZ.js +120 -0
  1280. package/src/locale/lang/vi.js +120 -0
  1281. package/src/locale/lang/zh-CN.js +120 -0
  1282. package/src/locale/lang/zh-TW.js +120 -0
  1283. package/src/mixins/emitter.js +33 -0
  1284. package/src/mixins/focus.js +9 -0
  1285. package/src/mixins/locale.js +9 -0
  1286. package/src/mixins/migrating.js +54 -0
  1287. package/src/transitions/collapse-transition.js +77 -0
  1288. package/src/utils/after-leave.js +27 -0
  1289. package/src/utils/aria-dialog.js +90 -0
  1290. package/src/utils/aria-utils.js +122 -0
  1291. package/src/utils/clickoutside.js +76 -0
  1292. package/src/utils/date-util.js +292 -0
  1293. package/src/utils/date.js +368 -0
  1294. package/src/utils/dom.js +227 -0
  1295. package/src/utils/menu/aria-menubar.js +14 -0
  1296. package/src/utils/menu/aria-menuitem.js +49 -0
  1297. package/src/utils/menu/aria-submenu.js +59 -0
  1298. package/src/utils/merge.js +15 -0
  1299. package/src/utils/popper.js +1276 -0
  1300. package/src/utils/popup/index.js +218 -0
  1301. package/src/utils/popup/popup-manager.js +194 -0
  1302. package/src/utils/resize-event.js +35 -0
  1303. package/src/utils/scroll-into-view.js +27 -0
  1304. package/src/utils/scrollbar-width.js +29 -0
  1305. package/src/utils/shared.js +7 -0
  1306. package/src/utils/types.js +24 -0
  1307. package/src/utils/util.js +241 -0
  1308. package/src/utils/vdom.js +5 -0
  1309. package/src/utils/vue-popper.js +198 -0
  1310. package/types/$(filter-out.d.ts +0 -0
  1311. package/types/alert.d.ts +31 -0
  1312. package/types/aside.d.ts +7 -0
  1313. package/types/autocomplete.d.ts +78 -0
  1314. package/types/avatar.d.ts +20 -0
  1315. package/types/backtop.d.ts +16 -0
  1316. package/types/badge.d.ts +16 -0
  1317. package/types/breadcrumb-item.d.ts +10 -0
  1318. package/types/breadcrumb.d.ts +10 -0
  1319. package/types/button-group.d.ts +4 -0
  1320. package/types/button.d.ts +37 -0
  1321. package/types/calendar.d.ts +15 -0
  1322. package/types/card.d.ts +26 -0
  1323. package/types/carousel-item.d.ts +10 -0
  1324. package/types/carousel.d.ts +57 -0
  1325. package/types/cascader-panel.d.ts +72 -0
  1326. package/types/cascader.d.ts +65 -0
  1327. package/types/checkbox-button.d.ts +22 -0
  1328. package/types/checkbox-group.d.ts +22 -0
  1329. package/types/checkbox.d.ts +34 -0
  1330. package/types/col.d.ts +46 -0
  1331. package/types/collapse-item.d.ts +26 -0
  1332. package/types/collapse.d.ts +10 -0
  1333. package/types/color-picker.d.ts +21 -0
  1334. package/types/component.d.ts +13 -0
  1335. package/types/container.d.ts +7 -0
  1336. package/types/date-picker.d.ts +124 -0
  1337. package/types/dialog.d.ts +62 -0
  1338. package/types/divider.d.ts +12 -0
  1339. package/types/drawer.d.ts +63 -0
  1340. package/types/dropdown-item.d.ts +16 -0
  1341. package/types/dropdown-menu.d.ts +4 -0
  1342. package/types/dropdown.d.ts +35 -0
  1343. package/types/footer.d.ts +7 -0
  1344. package/types/form-item.d.ts +37 -0
  1345. package/types/form.d.ts +82 -0
  1346. package/types/header.d.ts +7 -0
  1347. package/types/icon.d.ts +7 -0
  1348. package/types/image.d.ts +41 -0
  1349. package/types/index.d.ts +4 -0
  1350. package/types/infinite-scroll.d.ts +6 -0
  1351. package/types/input-number.d.ts +47 -0
  1352. package/types/input.d.ts +107 -0
  1353. package/types/link.d.ts +25 -0
  1354. package/types/loading.d.ts +62 -0
  1355. package/types/main.d.ts +4 -0
  1356. package/types/menu-item-group.d.ts +7 -0
  1357. package/types/menu-item.d.ts +10 -0
  1358. package/types/menu.d.ts +46 -0
  1359. package/types/message-box.d.ts +176 -0
  1360. package/types/message.d.ts +90 -0
  1361. package/types/notification.d.ts +84 -0
  1362. package/types/one-ui.d.ts +0 -0
  1363. package/types/option-group.d.ts +10 -0
  1364. package/types/option.d.ts +13 -0
  1365. package/types/page-header.d.ts +10 -0
  1366. package/types/pagination.d.ts +43 -0
  1367. package/types/popconfirm.d.ts +29 -0
  1368. package/types/popover.d.ts +71 -0
  1369. package/types/progress.d.ts +37 -0
  1370. package/types/radio-button.d.ts +16 -0
  1371. package/types/radio-group.d.ts +18 -0
  1372. package/types/radio.d.ts +19 -0
  1373. package/types/rate.d.ts +64 -0
  1374. package/types/row.d.ts +25 -0
  1375. package/types/select.d.ts +90 -0
  1376. package/types/slider.d.ts +68 -0
  1377. package/types/step.d.ts +34 -0
  1378. package/types/steps.d.ts +28 -0
  1379. package/types/submenu.d.ts +22 -0
  1380. package/types/switch.d.ts +43 -0
  1381. package/types/tab-pane.d.ts +19 -0
  1382. package/types/table-column.d.ts +117 -0
  1383. package/types/table.d.ts +174 -0
  1384. package/types/tabs.d.ts +31 -0
  1385. package/types/tag.d.ts +28 -0
  1386. package/types/time-picker.d.ts +63 -0
  1387. package/types/time-select.d.ts +56 -0
  1388. package/types/timeline-item.d.ts +20 -0
  1389. package/types/timeline.d.ts +6 -0
  1390. package/types/tooltip.d.ts +52 -0
  1391. package/types/transfer.d.ts +73 -0
  1392. package/types/tree.d.ts +266 -0
  1393. package/types/upload.d.ts +124 -0
@@ -0,0 +1,1226 @@
1
+ import OneStorage from '../../../src/lib/onestorage.js';
2
+ import OneUrl from '../../../src/lib/oneurl.js';
3
+ import OneDate from '../../../src/lib/onedate.js';
4
+ import OneTool from '../../../src/lib/onetool.js';
5
+ import OneEncrypt from '../../../src/lib/oneencrypt.js';
6
+ import OneRequest from '../../../src/lib/onerequest.js';
7
+ import OneFormRules from '../../../src/lib/oneformrules.js';
8
+
9
+ import OneFormInput from './form-input/index.vue';
10
+ import OneFormPassword from './form-password/index.vue';
11
+ import OneFormTextarea from './form-textarea/index.vue';
12
+ import OneFormInputNumber from './form-inputNumber/index.vue';
13
+ import OneFormInputSelect from './form-inputSelect/index.vue';
14
+ import OneFormDate from './form-date/index.vue';
15
+ import OneFormMonth from './form-month/index.vue';
16
+ import OneFormTime from './form-time/index.vue';
17
+ import OneFormDatetime from './form-datetime/index.vue';
18
+ import OneFormRadio from './form-radio/index.vue';
19
+ import OneFormCheckbox from './form-checkbox/index.vue';
20
+ import OneFormSelect from './form-select/index.vue';
21
+ import OneFormTable from './form-table/index.vue';
22
+ import OneFormImage from './form-image/index.vue';
23
+ import OneFormBase64Image from './form-base64Img/index.vue';
24
+ import OneFormFile from './form-file/index.vue';
25
+ import OneFormSelectTree from './form-selectTree/index.vue';
26
+ import OneFormCascader from './form-cascader/index.vue';
27
+ import OneFormCascaderOne from './form-cascader-one/index.vue';
28
+ import OneFormVueQuillEditor from './form-vue-quill-editor/index.vue';
29
+ import OneFormTree from './form-tree/index.vue';
30
+ import OneFormRepeatCard from './form-repeat-card/index.vue';
31
+ import OneFormVideo from './form-video/index.vue';
32
+ import OneFormColor from './form-color/index.vue';
33
+ import OneFormRate from './form-rate/index.vue';
34
+ import OneFormSwitch from './form-switch/index.vue';
35
+
36
+ export default {
37
+ name: 'OneForm',
38
+ components: {
39
+ //文本框
40
+ OneFormInput,
41
+ //密码框
42
+ OneFormPassword,
43
+ //文本域
44
+ OneFormTextarea,
45
+ //计数器
46
+ OneFormInputNumber,
47
+ //文本+选择
48
+ OneFormInputSelect,
49
+ //日期
50
+ OneFormDate,
51
+ //时间
52
+ OneFormTime,
53
+ //日期时间
54
+ OneFormDatetime,
55
+ //单选
56
+ OneFormRadio,
57
+ //复选
58
+ OneFormCheckbox,
59
+ //下拉
60
+ OneFormSelect,
61
+ //表格
62
+ OneFormTable,
63
+ //图片
64
+ OneFormImage,
65
+ //base64图片
66
+ OneFormBase64Image,
67
+ //文件
68
+ OneFormFile,
69
+ //下拉树
70
+ OneFormSelectTree,
71
+ //级联
72
+ OneFormCascader,
73
+ //级联(铺开)
74
+ OneFormCascaderOne,
75
+ //VUE富文本
76
+ OneFormVueQuillEditor,
77
+ //属性结构
78
+ OneFormTree,
79
+ //重复卡片
80
+ OneFormRepeatCard,
81
+ //视频
82
+ OneFormVideo,
83
+ //颜色选择
84
+ OneFormColor,
85
+ //评分选择
86
+ OneFormRate,
87
+ //Switch开关
88
+ OneFormSwitch
89
+ },
90
+ data() {
91
+ return {
92
+ OneStorage: OneStorage,
93
+ OneUrl: OneUrl,
94
+ OneDate: OneDate,
95
+ OneTool: OneTool,
96
+ OneEncrypt: OneEncrypt,
97
+ OneRequest: OneRequest,
98
+ fileHeaders: {
99
+ token: OneStorage.getToken(),
100
+ version: '1.0.0'
101
+ },
102
+ //选中的文件, key为文件域的field
103
+ selectFiles: {},
104
+ distList: [],
105
+ self: this,
106
+ cardActiveId: null,
107
+ fieldActiveId: null
108
+ }
109
+ },
110
+ props: {
111
+ formName: {
112
+ type: String,
113
+ default: 'refOneForm'
114
+ },
115
+ //表单全局配置
116
+ globalConfig: {
117
+ type: Object,
118
+ default: () => ({}),
119
+ },
120
+ //字段配置
121
+ fieldConfig: {
122
+ type: Array,
123
+ default: () => ([]),
124
+ },
125
+ //动态数据配置
126
+ dynamicConfig: {
127
+ type: Object,
128
+ default: () => ({}),
129
+ },
130
+ //表单数据
131
+ model: {
132
+ type: Object,
133
+ default: () => ({}),
134
+ },
135
+ //不显示字段
136
+ noVisileField: {
137
+ type: Array,
138
+ default: () => ([]),
139
+ },
140
+ //通用函数, 参数为:type, item,...
141
+ customEvent: {
142
+ type: Function,
143
+ default: null
144
+ }
145
+ },
146
+ created() {},
147
+ mounted() {
148
+ //获取级联数据,级联数据需要从第一个开始获取以后的层级
149
+ for (let i in this.fieldConfig) {
150
+ let item = this.fieldConfig[i];
151
+
152
+ if (item.widget == 'cascader' && this.model[item.field] && Array.isArray(this.model[item.field])) {
153
+ for (let k = 1; k < this.model[item.field].length - 1; k++) {
154
+ let val = this.model[item.field].splice(0, k);
155
+ this.handleCascaderItemChange(item.field, val);
156
+ }
157
+ }
158
+ }
159
+ },
160
+ computed: {
161
+ //获取字段校验规则
162
+ getItemRules() {
163
+ return function(item) {
164
+ if (!item || !item.rules || item.rules.length <= 0) {
165
+ return [];
166
+ }
167
+ let rules = [];
168
+
169
+ item.rules.forEach(ruleItem => {
170
+ if (ruleItem.validatorName && (typeof ruleItem.validatorName == 'string')) {
171
+ ruleItem.validator = OneFormRules[ruleItem.validatorName];
172
+ }
173
+ switch (ruleItem.typeName) {
174
+ case 'required': //必填
175
+ ruleItem.message = ruleItem.message || '该项为必填项';
176
+ break;
177
+ case 'minMax': //字数限制
178
+ if (ruleItem.min && ruleItem.max) {
179
+ ruleItem.message = ruleItem.message || ('字符长度在' + ruleItem.min + '至' +
180
+ ruleItem.max + '之间!');
181
+ } else if (ruleItem.max) {
182
+ ruleItem.message = ruleItem.message || ('最多输入' + ruleItem.max + '个字符!');
183
+ } else if (ruleItem.min) {
184
+ ruleItem.message = ruleItem.message || ('至少输入' + ruleItem.min + '个字符!');
185
+ }
186
+ break;
187
+ case 'email': //邮箱校验
188
+ ruleItem.message = ruleItem.message || '格式错误';
189
+ break;
190
+ case 'number':
191
+ ruleItem.message = ruleItem.message || '请输入数字';
192
+ break;
193
+ case 'integer':
194
+ ruleItem.message = ruleItem.message || '请输入整数';
195
+ break;
196
+ case 'date':
197
+ ruleItem.message = ruleItem.message || '请输入日期';
198
+ break;
199
+ case 'url':
200
+ ruleItem.message = ruleItem.message || '格式错误';
201
+ break;
202
+ case 'idcard':
203
+ ruleItem.message = ruleItem.message || '格式错误';
204
+ break;
205
+ case 'mobile':
206
+ ruleItem.message = ruleItem.message || '格式错误';
207
+ break;
208
+ case 'isRange':
209
+ ruleItem.message = ruleItem.message || '请检查输入泛微';
210
+ break;
211
+ case 'sensitivewords': //敏感词校验
212
+ ruleItem.message = ruleItem.message || '包含敏感词';
213
+ break;
214
+ }
215
+ rules.push(ruleItem);
216
+ })
217
+
218
+ return rules;
219
+ }
220
+ },
221
+ //动态选项
222
+ getDynamicConfig() {
223
+ return function(name, defVal) {
224
+ return this.dynamicConfig[name] || defVal;
225
+ }
226
+ },
227
+ //获取卡片样式
228
+ cardStyle(cardItem) {
229
+ return function(cardItem) {
230
+ let hasWidth = false;
231
+ let hasFloat = false;
232
+ let hasMargin = false;
233
+
234
+ let outCss = [];
235
+
236
+ if (cardItem.style) {
237
+ //拆分样式
238
+ let cssArr = cardItem.style.split(';');
239
+
240
+ cssArr.forEach(item => {
241
+ if (item && item.trim()) {
242
+ item = item.trim().toLowerCase();
243
+ outCss.push(item);
244
+
245
+ if (item.indexOf('float') == 0) {
246
+ hasFloat = true;
247
+ } else if (item.indexOf('margin-bottom') == 0) {
248
+ hasMargin = true;
249
+ } else if (item.indexOf('width') == 0) {
250
+ hasWidth = true;
251
+ }
252
+ }
253
+
254
+ })
255
+
256
+ }
257
+ if (!hasFloat) {
258
+ outCss.push('float:left');
259
+ }
260
+ if (!hasMargin) {
261
+ outCss.push('margin-bottom: 10px');
262
+ }
263
+ if (!hasWidth) {
264
+ outCss.push('width:' + this.getCardWidth(cardItem.width));
265
+ }
266
+ let res = outCss.join(';');
267
+ res += ";";
268
+
269
+ return res;
270
+ }
271
+ },
272
+ //单元格样式
273
+ itemStyle() {
274
+ return function(item) {
275
+ let outCssArr = [];
276
+ let styleNameList = [];
277
+
278
+ if (item.style) {
279
+ let cssArr = item.style.split(';');
280
+
281
+ cssArr.forEach(item => {
282
+ if (item && item.trim()) {
283
+ let tmpArr = item.trim().toLowerCase().split(':');
284
+
285
+ if (tmpArr.length > 0) {
286
+ styleNameList.push(tmpArr[0].trim());
287
+ }
288
+ outCssArr.push(item);
289
+ }
290
+ })
291
+ }
292
+
293
+ if (styleNameList.indexOf('width') < 0) {
294
+ if (this.getConfigValue('inline', false)) {
295
+ let labelWidth = this.getValue(item, 'labelWidth', this.getConfigValue('labelWidth', 120));
296
+
297
+ if (item.contentWidth && item.contentWidth > 0) {
298
+ labelWidth += item.contentWidth;
299
+ } else {
300
+ labelWidth += 200;
301
+ }
302
+ let colNum = this.getConfigValue('colNum', null);
303
+
304
+ if (!colNum) {
305
+ let globalConfig = OneStorage.getOptsValue('FORM_GLOBAL_CONFIG') || {};
306
+ colNum = globalConfig.colNum || 2;
307
+ }
308
+ colNum = colNum <= 1 ? 1 : colNum;
309
+ let tmpWidth = 100 / colNum;
310
+ outCssArr.push('width: calc(' + tmpWidth + '% - 20px)')
311
+ outCssArr.push('min-width: ' + labelWidth + 'px');
312
+ } else {
313
+ outCssArr.push('width: calc(100% - 20px)')
314
+ }
315
+ }
316
+ if ((styleNameList.indexOf('margin-bottom') < 0 && styleNameList.indexOf('margin') < 0) && this
317
+ .fieldIsReadonly(
318
+ item)) {
319
+ outCssArr.push('margin-bottom: 0');
320
+ }
321
+ if ((styleNameList.indexOf('padding-right') < 0 && styleNameList.indexOf('margin') < 0) && this
322
+ .fieldIsReadonly(
323
+ item)) {
324
+ outCssArr.push('padding-right: 20px');
325
+ }
326
+ if (styleNameList.indexOf('display') < 0) {
327
+ outCssArr.push('display: inline-block');
328
+ }
329
+ if (styleNameList.indexOf('vertical-align') < 0) {
330
+ outCssArr.push('vertical-align: top');
331
+ }
332
+
333
+ return outCssArr.join(';');
334
+ }
335
+ },
336
+ //获取itemclass
337
+ itemClass(item) {
338
+ return function(item) {
339
+ let outClass = 'one-form-item--' + item.widget;
340
+
341
+ switch (item.widget) {
342
+ case 'input': //文本框
343
+ break;
344
+ case 'password': //密码框
345
+ break;
346
+ case 'inputNumber': //数字文本框
347
+ break;
348
+ case 'textarea': // 文本域
349
+ break;
350
+ case 'inputSelect': //输入选择组合框
351
+ break;
352
+ case 'image': // 图片上传
353
+ break;
354
+ case 'base64Img': // 图片,Base64编码
355
+ break;
356
+ case 'file': // 文件上传
357
+ break;
358
+ case 'date': // 日期选择
359
+ case 'time': // 时间选择
360
+ case 'datetime': // 日期时间选择
361
+ if (item.range) {
362
+ outClass += ' one-form-item--range';
363
+ }
364
+ break;
365
+ case 'radio': // 单选框
366
+ break;
367
+ case 'checkbox': // 复选框
368
+ break;
369
+ case 'select': // 下拉选择
370
+ break;
371
+ case 'selectTree': // 树形下拉选择
372
+ break;
373
+ case 'cascader': // 级联选择框
374
+ break;
375
+ case 'ueditor': // 富文本
376
+ break;
377
+ case 'tree': // 树形
378
+ break;
379
+ }
380
+ outClass += ' one-form-item' + (this.getConfigValue('inline', false) ? '--mini ' : ' ');
381
+ outClass += ' one-form-item' + (this.fieldIsReadonly(item) ? '--readonly ' : ' ');
382
+ outClass += ' ' + this.getValue(item, 'class', '');
383
+
384
+ return outClass;
385
+ }
386
+ },
387
+ //获取显示label
388
+ itemLabel(item) {
389
+ return function(item) {
390
+ if (this.fieldIsReadonly(item)) {
391
+ //只读
392
+ if (!item.displayName || item.displayName.trim() === '') {
393
+ return " ";
394
+ } else {
395
+ let readonlyLableAfter = this.getConfigValue('slitFlag', true) ? ":" : "";
396
+
397
+ if (this.globalConfig && this.globalConfig.readonlyLableAfter != undefined) {
398
+ readonlyLableAfter = this.globalConfig.readonlyLableAfter;
399
+ }
400
+
401
+ return item.displayName + readonlyLableAfter;
402
+ }
403
+ }
404
+
405
+ return item.displayName;
406
+ }
407
+ },
408
+ //内容样式
409
+ // contentStyle() {
410
+ // return function(item, isRange) {
411
+
412
+ // let outCssArr = [];
413
+ // let styleNameList = [];
414
+
415
+ // if (item.contenStyle) {
416
+ // //拆分
417
+ // let cssArr = item.contenStyle.split(';');
418
+
419
+ // cssArr.forEach(cssItem => {
420
+ // if (cssItem && cssItem.trim()) {
421
+ // let tmpArr = cssItem.trim().toLowerCase().split(':');
422
+
423
+ // if (tmpArr.length > 0) {
424
+ // styleNameList.push(tmpArr[0].trim());
425
+
426
+ // if (tmpArr[0].trim() == 'width') {
427
+ // outCssArr.push(cssItem);
428
+ // } else {
429
+ // outCssArr.push(cssItem);
430
+ // }
431
+ // }
432
+ // }
433
+ // })
434
+ // }
435
+
436
+ // if (styleNameList.indexOf('width') < 0) {
437
+ // if (isRange) {
438
+ // outCssArr.push('width: calc(50% - 12px)')
439
+ // } else {
440
+ // outCssArr.push('width: calc(100%)')
441
+ // }
442
+ // }
443
+ // if (styleNameList.indexOf('display') < 0) {
444
+ // outCssArr.push('display: inline-block')
445
+ // }
446
+ // if (styleNameList.indexOf('vertical-align') < 0) {
447
+ // outCssArr.push('vertical-align: top')
448
+ // }
449
+
450
+ // return outCssArr.join(';')
451
+ // }
452
+ // },
453
+ //获取item的宽度
454
+ // getItemWidth() {
455
+ // return function(item, isRange) {
456
+ // let labelWidth = this.getValue(item, 'labelWidth', this.getConfigValue('labelWidth', 120));
457
+
458
+ // if (isRange) {
459
+ // return 'calc(50% - 12px)'
460
+ // } else {
461
+ // return 'calc(100%)'
462
+ // }
463
+ // }
464
+ // },
465
+ },
466
+ methods: {
467
+ //设置选中
468
+ updateSelected(cardId, fieldId) {
469
+ this.cardActiveId = cardId;
470
+ this.fieldActiveId = fieldId;
471
+ },
472
+ //获取值
473
+ getValue(item, key, defVal) {
474
+
475
+ if (item == null || item == undefined) {
476
+ return defVal;
477
+ }
478
+
479
+ if (item[key] == null || item[key] === '' || item[key] === undefined) {
480
+ return defVal;
481
+ }
482
+
483
+ return item[key];
484
+ },
485
+ //获取全局配置
486
+ getConfigValue(key, defaultVal) {
487
+ return this.getValue(this.globalConfig, key, defaultVal);
488
+ },
489
+ // //文件上传地址
490
+ // getFormFileUploadUrl() {
491
+ // return OneUrl.getFileUploadUrl(this.getConfigValue('baseServerKey'));
492
+ // },
493
+ // //文件阅读地址
494
+ // getFormFileReadBaseUrl() {
495
+ // return OneUrl.getFileReadBaseUrl(this.getConfigValue('baseServerKey'))
496
+ // },
497
+ //卡片按钮点击事件
498
+ handleCardHeaderBtnClick(item) {
499
+ this.$emit('cardHeaderBtnClick', item);
500
+ },
501
+ //获取卡片宽度
502
+ getCardWidth(width) {
503
+
504
+ if (!width) {
505
+ return '100%';
506
+ }
507
+ if (isNaN(width)) {
508
+ return width;
509
+ }
510
+
511
+ return width + 'px';
512
+ },
513
+ //判断card是否显示
514
+ cardShow(cardId, show) {
515
+
516
+ if (cardId) {
517
+ let cardNoShowIdList = this.getConfigValue('cardNoShowIdList', []);
518
+
519
+ if (cardNoShowIdList && Array.isArray(cardNoShowIdList)) {
520
+ if (cardNoShowIdList.indexOf(cardId) >= 0) {
521
+ return false;
522
+ }
523
+ }
524
+ }
525
+
526
+ if (show == undefined) {
527
+ return true;
528
+ }
529
+
530
+ if (show == false) {
531
+ return false;
532
+ }
533
+
534
+ return true;
535
+ },
536
+ //判断是否不显示
537
+ fieldIsNoVisible(item) {
538
+
539
+ if (item.noVisile != undefined && item.noVisile != null) {
540
+ return item.noVisile;
541
+ }
542
+
543
+ let noVisileField = this.getConfigValue('noVisileField', []);
544
+
545
+ if (noVisileField && Array.isArray(noVisileField)) {
546
+ if (noVisileField.indexOf(item.field) >= 0) {
547
+ return true;
548
+ }
549
+ }
550
+
551
+ if (this.noVisileField && this.noVisileField.indexOf(item.field) >= 0) {
552
+ return true;
553
+ }
554
+
555
+ return false;
556
+ },
557
+ // //判断是否禁用
558
+ // fieldIsDisabled(item) {
559
+
560
+ // if (item.disabled != undefined && item.disabled != null) {
561
+ // return item.disabled;
562
+ // }
563
+
564
+ // let formDisabled = this.getConfigValue('disabled', false);
565
+
566
+ // if (formDisabled === true) {
567
+ // return true;
568
+ // }
569
+
570
+ // let disabledField = this.getConfigValue('disabledField', []);
571
+
572
+ // if (disabledField && Array.isArray(disabledField)) {
573
+ // if (disabledField.indexOf(item.field) >= 0) {
574
+ // return true;
575
+ // }
576
+ // }
577
+
578
+ // return false;
579
+ // },
580
+ //判断是否只读
581
+ fieldIsReadonly(item) {
582
+
583
+ if (item.readonly != undefined && item.readonly != null) {
584
+ return item.readonly;
585
+ }
586
+ let formReadonly = this.getConfigValue('readonly', false);
587
+
588
+ if (formReadonly === true) {
589
+ return true;
590
+ }
591
+
592
+ let globalReadonlyField = this.getConfigValue('readonlyField', []);
593
+
594
+ if (globalReadonlyField && Array.isArray(globalReadonlyField)) {
595
+ if (globalReadonlyField.indexOf(item.field) >= 0) {
596
+ return true;
597
+ }
598
+ }
599
+
600
+ return false;
601
+ },
602
+ /********************************************************************************/
603
+ //级联选择事件
604
+ handleCascaderItemChange(field, val) {
605
+ this.$emit('cascader', field, val)
606
+ },
607
+ /***********************************表格************************************/
608
+ // //表格按钮区域点击事件
609
+ // tableButtonAreaClick(item, id) {
610
+
611
+ // if (item && item.table && item.table.buttonAreaClick && typeof item.table.buttonAreaClick == 'function') {
612
+ // item.table.buttonAreaClick(item, id)
613
+ // }
614
+ // this.$emit('tableButtonAreaClick', item, id)
615
+
616
+ // if (this.customEvent && typeof this.customEvent == 'function') {
617
+ // return this.customEvent('tableButtonAreaClick', item, id)
618
+ // }
619
+ // },
620
+ // //表格格式化事件
621
+ // tableAreaConfigTableFormatter(item, row, column, cellValue, index) {
622
+
623
+ // if (item && item.table && item.table.tableAreaConfigTableFormatter && typeof item.table.tableAreaConfigTableFormatter ==
624
+ // 'function') {
625
+ // return item.table.tableAreaConfigTableFormatter(item, row, column, cellValue, index)
626
+ // }
627
+ // if (this.customEvent && typeof this.customEvent == 'function') {
628
+ // return this.customEvent('tableAreaConfigTableFormatter', item, row, column, cellValue, index)
629
+ // }
630
+
631
+ // return cellValue;
632
+ // },
633
+ // //表格操作栏点击事件
634
+ // tableAreaConfigOptClick(item, optId, row, index) {
635
+
636
+ // if (item && item.table && item.table.tableAreaConfigOptClick && typeof item.table.tableAreaConfigOptClick ==
637
+ // 'function') {
638
+ // item.table.tableAreaConfigOptClick(item, optId, row, index);
639
+ // }
640
+ // this.$emit('tableAreaConfigOptClick', item, optId, row, index)
641
+
642
+ // if (this.customEvent && typeof this.customEvent == 'function') {
643
+ // this.customEvent('tableAreaConfigOptClick', item, optId, row, index)
644
+ // }
645
+ // },
646
+ // //表格禁止事件(编辑框禁用)
647
+ // tableAreaConfigTableCellDisabled(item, row, column, cellValue, index) {
648
+
649
+ // if (item && item.table && item.table.tableAreaConfigTableCellDisabled && typeof item.table.tableAreaConfigTableCellDisabled ==
650
+ // 'function') {
651
+ // return item.table.tableAreaConfigTableCellDisabled(item, row, column, cellValue, index)
652
+ // }
653
+
654
+ // if (this.customEvent && typeof this.customEvent == 'function') {
655
+ // return this.customEvent('tableAreaConfigTableCellDisabled', item, row, column, cellValue, index)
656
+ // }
657
+
658
+ // return false;
659
+ // },
660
+ // //加载列表数据
661
+ // tableLoadPage(field) {
662
+ // let refs = this.$refs['oneTableComponents_' + field];
663
+
664
+ // if (Array.isArray(refs)) {
665
+ // if (refs.length > 0) {
666
+ // refs = refs[0];
667
+ // } else {
668
+ // refs = null;
669
+ // }
670
+ // } else if (!refs) {
671
+ // refs = null;
672
+ // }
673
+ // if (refs == null) {
674
+ // return null;
675
+ // }
676
+ // let table = refs.$refs.oneTableComponents;
677
+
678
+ // if (Array.isArray(table)) {
679
+ // table = table[0];
680
+ // } else if (!table) {
681
+ // table = null;
682
+ // }
683
+
684
+ // if (table == null) {
685
+ // return null;
686
+ // }
687
+ // table.loadPage();
688
+ // },
689
+ // //重置表格数据,不包含筛选数据,仅分页、排序、表格内容的数据
690
+ // tableResetTable(field) {
691
+ // let refs = this.$refs['oneTableComponents_' + field];
692
+
693
+ // if (Array.isArray(refs)) {
694
+ // if (refs.length > 0) {
695
+ // refs = refs[0];
696
+ // } else {
697
+ // refs = null;
698
+ // }
699
+ // } else if (!refs) {
700
+ // refs = null;
701
+ // }
702
+ // if (refs == null) {
703
+ // return null;
704
+ // }
705
+ // let table = refs.$refs.oneTableComponents;
706
+
707
+ // if (Array.isArray(table)) {
708
+ // table = table[0];
709
+ // } else if (!table) {
710
+ // table = null;
711
+ // }
712
+
713
+ // if (table == null) {
714
+ // return null;
715
+ // }
716
+ // table.resetTable();
717
+ // },
718
+ // //获取选中行的数据
719
+ // tableGetSelectData(field, minRowNum, maxRowNum) {
720
+
721
+ // let refs = this.$refs['oneTableComponents_' + field];
722
+
723
+ // if (Array.isArray(refs)) {
724
+ // if (refs.length > 0) {
725
+ // refs = refs[0];
726
+ // } else {
727
+ // refs = null;
728
+ // }
729
+ // } else if (!refs) {
730
+ // refs = null;
731
+ // }
732
+ // if (refs == null) {
733
+ // return null;
734
+ // }
735
+ // let table = refs.$refs.oneTableComponents;
736
+
737
+ // if (Array.isArray(table)) {
738
+ // table = table[0];
739
+ // } else if (!table) {
740
+ // table = null;
741
+ // }
742
+
743
+ // if (table == null) {
744
+ // return null;
745
+ // }
746
+
747
+ // return table.getSelectData(minRowNum, maxRowNum);
748
+ // },
749
+ // //获取选中行的主键值
750
+ // tableGetSelectId(field, minRowNum, maxRowNum) {
751
+ // let refs = this.$refs['oneTableComponents_' + field];
752
+
753
+ // if (Array.isArray(refs)) {
754
+ // if (refs.length > 0) {
755
+ // refs = refs[0];
756
+ // } else {
757
+ // refs = null;
758
+ // }
759
+ // } else if (!refs) {
760
+ // refs = null;
761
+ // }
762
+
763
+ // if (refs == null) {
764
+ // return null;
765
+ // }
766
+ // let table = refs.$refs.oneTableComponents;
767
+
768
+ // if (Array.isArray(table)) {
769
+ // table = table[0];
770
+ // } else if (!table) {
771
+ // table = null;
772
+ // }
773
+
774
+ // if (table == null) {
775
+ // return null;
776
+ // }
777
+ // return table.getSelectId(minRowNum, maxRowNum);
778
+ // },
779
+ // //设置排序字段和方式
780
+ // tableSetSort(field, sortField, sortOrder) {
781
+ // let refs = this.$refs['oneTableComponents_' + field];
782
+
783
+ // if (Array.isArray(refs)) {
784
+ // if (refs.length > 0) {
785
+ // refs = refs[0];
786
+ // } else {
787
+ // refs = null;
788
+ // }
789
+ // } else if (!refs) {
790
+ // refs = null;
791
+ // }
792
+ // if (refs == null) {
793
+ // return null;
794
+ // }
795
+ // let table = refs.$refs.oneTableComponents;
796
+
797
+ // if (Array.isArray(table)) {
798
+ // table = table[0];
799
+ // } else if (!table) {
800
+ // table = null;
801
+ // }
802
+
803
+ // if (table == null) {
804
+ // return null;
805
+ // }
806
+ // table.setSort(sortField, sortOrder);
807
+ // },
808
+ // //设置分页信息
809
+ // tableSetStartSize(field, start, size) {
810
+ // let refs = this.$refs['oneTableComponents_' + field];
811
+
812
+ // if (Array.isArray(refs)) {
813
+ // if (refs.length > 0) {
814
+ // refs = refs[0];
815
+ // } else {
816
+ // refs = null;
817
+ // }
818
+ // } else if (!refs) {
819
+ // refs = null;
820
+ // }
821
+ // if (refs == null) {
822
+ // return null;
823
+ // }
824
+ // let table = refs.$refs.oneTableComponents;
825
+
826
+ // if (Array.isArray(table)) {
827
+ // table = table[0];
828
+ // } else if (!table) {
829
+ // table = null;
830
+ // }
831
+
832
+ // if (table == null) {
833
+ // return null;
834
+ // }
835
+ // table.setStartSize(start, size);
836
+ // },
837
+ // //设置列表数据
838
+ // tableSetListData(field, list) {
839
+ // let refs = this.$refs['oneTableComponents_' + field];
840
+
841
+ // if (Array.isArray(refs)) {
842
+ // if (refs.length > 0) {
843
+ // refs = refs[0];
844
+ // } else {
845
+ // refs = null;
846
+ // }
847
+ // } else if (!refs) {
848
+ // refs = null;
849
+ // }
850
+ // if (refs == null) {
851
+ // return null;
852
+ // }
853
+ // let table = refs.$refs.oneTableComponents;
854
+
855
+ // if (Array.isArray(table)) {
856
+ // table = table[0];
857
+ // } else if (!table) {
858
+ // table = null;
859
+ // }
860
+
861
+ // if (table == null) {
862
+ // return null;
863
+ // }
864
+ // table.setListData(list);
865
+ // },
866
+ // //添加一行
867
+ // tableAddRow(field, row) {
868
+ // let refs = this.$refs['oneTableComponents_' + field];
869
+
870
+ // if (Array.isArray(refs)) {
871
+ // if (refs.length > 0) {
872
+ // refs = refs[0];
873
+ // } else {
874
+ // refs = null;
875
+ // }
876
+ // } else if (!refs) {
877
+ // refs = null;
878
+ // }
879
+ // if (refs == null) {
880
+ // return null;
881
+ // }
882
+ // let table = refs.$refs.oneTableComponents;
883
+
884
+ // if (Array.isArray(table)) {
885
+ // table = table[0];
886
+ // } else if (!table) {
887
+ // table = null;
888
+ // }
889
+
890
+ // if (table == null) {
891
+ // return null;
892
+ // }
893
+ // table.addRow(row);
894
+ // },
895
+ // //删除一行
896
+ // tableDeleteRow(field, row) {
897
+ // let refs = this.$refs['oneTableComponents_' + field];
898
+
899
+ // if (Array.isArray(refs)) {
900
+ // if (refs.length > 0) {
901
+ // refs = refs[0];
902
+ // } else {
903
+ // refs = null;
904
+ // }
905
+ // } else if (!refs) {
906
+ // refs = null;
907
+ // }
908
+ // if (refs == null) {
909
+ // return null;
910
+ // }
911
+ // let table = refs.$refs.oneTableComponents;
912
+
913
+ // if (Array.isArray(table)) {
914
+ // table = table[0];
915
+ // } else if (!table) {
916
+ // table = null;
917
+ // }
918
+
919
+ // if (table == null) {
920
+ // return null;
921
+ // }
922
+ // table.deleteRow(row);
923
+ // },
924
+ // //更新一行
925
+ // tableUpdateRow(field, row) {
926
+ // let refs = this.$refs['oneTableComponents_' + field];
927
+
928
+ // if (Array.isArray(refs)) {
929
+ // if (refs.length > 0) {
930
+ // refs = refs[0];
931
+ // } else {
932
+ // refs = null;
933
+ // }
934
+ // } else if (!refs) {
935
+ // refs = null;
936
+ // }
937
+ // if (refs == null) {
938
+ // return null;
939
+ // }
940
+ // let table = refs.$refs.oneTableComponents;
941
+
942
+ // if (Array.isArray(table)) {
943
+ // table = table[0];
944
+ // } else if (!table) {
945
+ // table = null;
946
+ // }
947
+
948
+ // if (table == null) {
949
+ // return null;
950
+ // }
951
+ // table.updateRow(row);
952
+ // },
953
+ // //获取列表数据
954
+ // tableGetAllRow(field) {
955
+ // let refs = this.$refs['oneTableComponents_' + field];
956
+
957
+ // if (Array.isArray(refs)) {
958
+ // if (refs.length > 0) {
959
+ // refs = refs[0];
960
+ // } else {
961
+ // refs = null;
962
+ // }
963
+ // } else if (!refs) {
964
+ // refs = null;
965
+ // }
966
+ // if (refs == null) {
967
+ // return null;
968
+ // }
969
+ // let table = refs.$refs.oneTableComponents;
970
+
971
+ // if (Array.isArray(table)) {
972
+ // table = table[0];
973
+ // } else if (!table) {
974
+ // table = null;
975
+ // }
976
+
977
+ // if (table == null) {
978
+ // return null;
979
+ // }
980
+ // return table.getAllRow();
981
+ // },
982
+ // //用于多选表格,清空用户的选择
983
+ // tableClearSelection(field) {
984
+ // let refs = this.$refs['oneTableComponents_' + field];
985
+
986
+ // if (Array.isArray(refs)) {
987
+ // if (refs.length > 0) {
988
+ // refs = refs[0];
989
+ // } else {
990
+ // refs = null;
991
+ // }
992
+ // } else if (!refs) {
993
+ // refs = null;
994
+ // }
995
+ // if (refs == null) {
996
+ // return null;
997
+ // }
998
+ // let table = refs.$refs.oneTableComponents;
999
+
1000
+ // if (Array.isArray(table)) {
1001
+ // table = table[0];
1002
+ // } else if (!table) {
1003
+ // table = null;
1004
+ // }
1005
+
1006
+ // if (table == null) {
1007
+ // return null;
1008
+ // }
1009
+ // table.clearSelection();
1010
+ // },
1011
+ // //用于多选表格,切换某一行的选中状态,如果使用了第二个参数,则是设置这一行选中与否(selected 为 true 则选中)
1012
+ // tableToggleRowSelection(field, row, selected) {
1013
+ // let refs = this.$refs['oneTableComponents_' + field];
1014
+
1015
+ // if (Array.isArray(refs)) {
1016
+ // if (refs.length > 0) {
1017
+ // refs = refs[0];
1018
+ // } else {
1019
+ // refs = null;
1020
+ // }
1021
+ // } else if (!refs) {
1022
+ // refs = null;
1023
+ // }
1024
+ // if (refs == null) {
1025
+ // return null;
1026
+ // }
1027
+ // let table = refs.$refs.oneTableComponents;
1028
+
1029
+ // if (Array.isArray(table)) {
1030
+ // table = table[0];
1031
+ // } else if (!table) {
1032
+ // table = null;
1033
+ // }
1034
+
1035
+ // if (table == null) {
1036
+ // return null;
1037
+ // }
1038
+ // table.toggleRowSelection(row, selected);
1039
+ // },
1040
+ // //用于多选表格,切换所有行的选中状态
1041
+ // tableToggleAllSelection(field) {
1042
+ // let refs = this.$refs['oneTableComponents_' + field];
1043
+
1044
+ // if (Array.isArray(refs)) {
1045
+ // if (refs.length > 0) {
1046
+ // refs = refs[0];
1047
+ // } else {
1048
+ // refs = null;
1049
+ // }
1050
+ // } else if (!refs) {
1051
+ // refs = null;
1052
+ // }
1053
+ // if (refs == null) {
1054
+ // return null;
1055
+ // }
1056
+ // let table = refs.$refs.oneTableComponents;
1057
+
1058
+ // if (Array.isArray(table)) {
1059
+ // table = table[0];
1060
+ // } else if (!table) {
1061
+ // table = null;
1062
+ // }
1063
+
1064
+ // if (table == null) {
1065
+ // return null;
1066
+ // }
1067
+ // table.toggleAllSelection();
1068
+ // },
1069
+ // //用于可展开表格,切换某一行的展开状态,如果使用了第二个参数,则是设置这一行展开与否(expanded 为 true 则展开)
1070
+ // tableToggleRowExpansion(field, row, expanded) {
1071
+ // let refs = this.$refs['oneTableComponents_' + field];
1072
+
1073
+ // if (Array.isArray(refs)) {
1074
+ // if (refs.length > 0) {
1075
+ // refs = refs[0];
1076
+ // } else {
1077
+ // refs = null;
1078
+ // }
1079
+ // } else if (!refs) {
1080
+ // refs = null;
1081
+ // }
1082
+ // if (refs == null) {
1083
+ // return null;
1084
+ // }
1085
+ // let table = refs.$refs.oneTableComponents;
1086
+
1087
+ // if (Array.isArray(table)) {
1088
+ // table = table[0];
1089
+ // } else if (!table) {
1090
+ // table = null;
1091
+ // }
1092
+
1093
+ // if (table == null) {
1094
+ // return null;
1095
+ // }
1096
+ // table.toggleRowExpansion(row, expanded);
1097
+ // },
1098
+
1099
+ /**
1100
+ * 事件
1101
+ */
1102
+ handleEvent(widget, type, item, event) {
1103
+ this.$emit('onEvent', widget, type, item, event);
1104
+ },
1105
+ //文本输入框点击事件
1106
+ inputClick(item) {
1107
+ if (item) {
1108
+ if (typeof item.click === 'function') {
1109
+ item.click(item.field);
1110
+ } else if (item.click) {
1111
+ this.handleEvent('input', 'click', item);
1112
+ }
1113
+ }
1114
+ },
1115
+ //文本框清空事件
1116
+ inputClear(item) {
1117
+ if (item) {
1118
+ if (typeof item.clear === 'function') {
1119
+ item.clear(item.field);
1120
+ } else if (item.clear) {
1121
+ this.handleEvent('input', 'clear', item);
1122
+ }
1123
+ }
1124
+ },
1125
+ //规则校验
1126
+ validate(callback) {
1127
+ this.$refs[this.formName].validate(callback);
1128
+ },
1129
+ //规则校验
1130
+ validateField(props, callback) {
1131
+ this.$refs[this.formName].validateField(props, callback);
1132
+ },
1133
+ //移除表单项的校验结果。传入待移除的表单项的 prop 属性或者 prop 组成的数组,如不传则移除整个表单的校验结果
1134
+ clearValidate(props) {
1135
+ if (props == undefined || !props) {
1136
+ this.$refs[this.formName].clearValidate();
1137
+ } else {
1138
+ this.$refs[this.formName].clearValidate(props);
1139
+ }
1140
+ },
1141
+ //对整个表单进行重置,将所有字段值重置为初始值并移除校验结果
1142
+ resetFields() {
1143
+ this.$refs[this.formName].resetFields();
1144
+ },
1145
+ //获取card样式
1146
+ getCardClass(item) {
1147
+
1148
+ if (!item) {
1149
+ return '';
1150
+ }
1151
+ let cardClass = this.getValue(item, 'cardClass', '');
1152
+
1153
+ if (this.getValue(item, 'cardBorder', 'show') == 'none') {
1154
+ cardClass += ' one-no-border ';
1155
+ }
1156
+
1157
+ return cardClass;
1158
+ },
1159
+ // 失去焦点事件
1160
+ vueQuillEditorOnEditorBlur(item, event) {
1161
+ this.handleEvent('vueQuillEditor', 'blur', item, event);
1162
+ },
1163
+ // 获得焦点事件
1164
+ vueQuillEditorOnEditorFocus(item, event) {
1165
+ this.handleEvent('vueQuillEditor', 'focus', item, event);
1166
+ },
1167
+ // 内容改变事件
1168
+ vueQuillEditorOnEditorChange(item, event) {
1169
+ this.handleEvent('vueQuillEditor', 'change', item, event);
1170
+ },
1171
+ //draggable add
1172
+ handleWidgetAdd(evt, type, fieldItem, fieldIndex) {
1173
+ this.$emit('draggable', 'add', evt, type, fieldItem, fieldIndex)
1174
+ },
1175
+ //draggable choose
1176
+ handleChoose(evt, type, fieldItem, fieldIndex) {
1177
+ return this.$emit('draggable', 'choose', evt, type, fieldItem, fieldIndex)
1178
+ },
1179
+ /**
1180
+ * 单元格数据变化
1181
+ * @param {Object} item
1182
+ */
1183
+ handleFieldChange(item, val) {
1184
+ this.$emit('field-change', item);
1185
+ },
1186
+ /**
1187
+ * 更新动态数据
1188
+ * @param {Object} name
1189
+ * @param {Object} value
1190
+ */
1191
+ handleUpdateDynamicConfig(name, value) {
1192
+ this.$set(this.dynamicConfig, name, value);
1193
+ },
1194
+ /**
1195
+ * 获取字段选项
1196
+ * @param {Object} field
1197
+ */
1198
+ getOptions(field) {
1199
+ let ref = this.$refs['refFormItem' + field];
1200
+
1201
+ if (ref) {
1202
+ ref = Array.isArray(ref) ? ref[0] : ref;
1203
+
1204
+ return ref.getOptions();
1205
+ }
1206
+
1207
+ return [];
1208
+ },
1209
+ /**
1210
+ * 获取选中名称
1211
+ * @param {Object} field
1212
+ */
1213
+ getSelectName(field) {
1214
+ let ref = this.$refs['refFormItem' + field];
1215
+
1216
+ if (ref) {
1217
+ ref = Array.isArray(ref) ? ref[0] : ref;
1218
+
1219
+ return ref.getSelectName();
1220
+ }
1221
+
1222
+ return [];
1223
+ },
1224
+
1225
+ },
1226
+ }