halo-pc 1.0.41 → 1.0.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/dist/{Article-BMW_FzdK.js → Article-CO5omGEb.js} +70 -65
  2. package/dist/{ArticleFooter-7iPkMQaX.js → ArticleFooter-f2w5Q80z.js} +27 -22
  3. package/dist/Autocomplete-BJZ-FkBk.js +54 -0
  4. package/dist/Autocomplete-DtUMtoTr.js +55 -0
  5. package/dist/{Autocomplete-C-El55Lz.js → Autocomplete-s1wxm1ZL.js} +1 -1
  6. package/dist/{CSharp-BQUrQwua.js → CSharp-D7LN_Xer.js} +1 -1
  7. package/dist/{Calender-CJXR7uhM.js → Calender-Cve4UFZ7.js} +1 -1
  8. package/dist/Callback-CajhaQSY.js +26 -0
  9. package/dist/{Cascader-DMQjalNv.js → Cascader-B9L3D7ek.js} +6 -6
  10. package/dist/{Cascader-CFc_8QSm.js → Cascader-z4hNNoFz.js} +25 -20
  11. package/dist/{Checkbox-pV01os-T.js → Checkbox-DDZ4Et-z.js} +1 -1
  12. package/dist/{Checkbox-aU8e779g.js → Checkbox-R_pDQeat.js} +22 -17
  13. package/dist/{Code-C4pIa8BE.js → Code-CxOIM8dT.js} +3 -3
  14. package/dist/{Code-kDBbVC1W.js → Code-DJND58kB.js} +1 -1
  15. package/dist/Code-DxTUEc09.js +4 -0
  16. package/dist/{Code-CCJx9RSm.js → Code-xcyLl_T6.js} +4 -4
  17. package/dist/{Code.vue_vue_type_style_index_0_lang-36NN7tgP.js → Code.vue_vue_type_style_index_0_lang-CKjmFQ7O.js} +8 -8
  18. package/dist/{Column-BebDf5Z9.js → Column-D4CmaUru.js} +8 -8
  19. package/dist/{Comment-BgfD9WtL.js → Comment-BKricznW.js} +1 -1
  20. package/dist/Compare-BRVaIOYg.js +43 -0
  21. package/dist/Compare-DjJB6ssM.js +63 -0
  22. package/dist/{Copy-DW4jSNQi.js → Copy-BfPi08Nq.js} +16 -11
  23. package/dist/{Custom-DIF-RYi3.js → Custom-B-MK7Hj_.js} +16 -16
  24. package/dist/{DataExport-CyQy2xjO.js → DataExport-BsqttQHh.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js → DataExport.vue_vue_type_script_setup_true_lang-Cbu2WtWL.js} +33 -28
  26. package/dist/{DataImport-BVF83UsQ.js → DataImport-CHosjBuv.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BgXAaEgI.js +178 -0
  28. package/dist/{Date-CqpFvbYZ.js → Date-CGLodwBM.js} +1 -1
  29. package/dist/Date-iAopVCBU.js +43 -0
  30. package/dist/{DateRange-B2afkdbT.js → DateRange-DRdCWV8s.js} +16 -11
  31. package/dist/DateTime-cnw6GOvx.js +44 -0
  32. package/dist/{DateTime-Zi3vtH77.js → DateTime-wpoZIfbD.js} +1 -1
  33. package/dist/{DateTimeRange-BFWM_U7H.js → DateTimeRange-BiwNzVNq.js} +16 -11
  34. package/dist/{Daterange-tXA0b0Ak.js → Daterange-YmemcwqX.js} +21 -16
  35. package/dist/{Decimal-DKQ38XS_.js → Decimal-DYakuVpJ.js} +1 -1
  36. package/dist/Delete-BxaIj8on.js +62 -0
  37. package/dist/{Detail-SWgERqKG.js → Detail-BPds90fA.js} +23 -18
  38. package/dist/{Dictionary-Xsj_Qorw.js → Dictionary-B5d8ELgD.js} +1 -1
  39. package/dist/{Email-DILPnLkb.js → Email-Jcf6IFJ4.js} +19 -14
  40. package/dist/File-D5Ncdp5z.js +164 -0
  41. package/dist/{Image-Yx3ZHHJK.js → Image-XNb88ECC.js} +1 -1
  42. package/dist/Index-BmDNOuj4.js +4 -0
  43. package/dist/{Index-CiQQmYeA.js → Index-CMTr2JlT.js} +1 -1
  44. package/dist/Index-CX2FoOaG.js +4 -0
  45. package/dist/Index-CmCulPVm.js +4 -0
  46. package/dist/Index-CtWWR38M.js +4 -0
  47. package/dist/{Index-BTa4YIN9.js → Index-DwNW8iAR.js} +64 -59
  48. package/dist/{Index-DeYqTT9Q.js → Index-FJf8H7LI.js} +1 -1
  49. package/dist/{Index-WVLyjyqt.js → Index-uzmNfTiO.js} +20 -15
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js → Index.vue_vue_type_script_setup_true_lang-CW7uiyi4.js} +11 -11
  51. package/dist/Index.vue_vue_type_script_setup_true_lang-CihCtAJl.js +72 -0
  52. package/dist/{Install-DW5uDsXF.js → Install-jEOlCqBN.js} +37 -32
  53. package/dist/Int-CLRLNGzn.js +47 -0
  54. package/dist/Int-CdmVksNF.js +44 -0
  55. package/dist/List-XZQc7ou2.js +77 -0
  56. package/dist/{Maintaince-DF3nu9Jd.js → Maintaince-CwHM_2h7.js} +4 -4
  57. package/dist/{Markdown-BC8l7O_U.js → Markdown-EKPACyKc.js} +1 -1
  58. package/dist/Month-BbCVP0fx.js +43 -0
  59. package/dist/{Month-DRa9o-WC.js → Month-BvSQNTxD.js} +1 -1
  60. package/dist/Month-DF8cKZh-.js +44 -0
  61. package/dist/Normal-piQf6VIS.js +266 -0
  62. package/dist/Paging-BGfWhXKY.js +100 -0
  63. package/dist/{PagingHeader-U-oJ1TQE.js → PagingHeader-9CSpxYtu.js} +28 -23
  64. package/dist/{PagingRow-BmokRXX3.js → PagingRow-DQpxGHxP.js} +17 -12
  65. package/dist/{Racebar-BvFHNGb8.js → Racebar-CP_XiwIb.js} +4 -4
  66. package/dist/{Radio-CjfXrTOE.js → Radio-DjNbz2n6.js} +1 -1
  67. package/dist/{Register-BG-3_Q2E.js → Register-DAlYZ8nR.js} +72 -67
  68. package/dist/{RichText-C88f59ao.js → RichText-gFuaVJGA.js} +6 -6
  69. package/dist/{SearchForm-C0zqD7UP.js → SearchForm-DPpg1psW.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js → SearchForm.vue_vue_type_style_index_0_lang-D3_Ibb_5.js} +36 -31
  71. package/dist/{SearchHeader-e2LOidgU.js → SearchHeader-CxyCc9sF.js} +1 -1
  72. package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js → SearchHeader.vue_vue_type_style_index_0_lang-B_G9U2qa.js} +1 -1
  73. package/dist/Select-BB7AjGkT.js +86 -0
  74. package/dist/Select-Bp5fwHHA.js +117 -0
  75. package/dist/{Select-CvP_zGxM.js → Select-BwSxOa2F.js} +1 -1
  76. package/dist/{Single-p-8OfzhQ.js → Single-B_DtAvmw.js} +105 -98
  77. package/dist/{Statistic-BIKfbZCI.js → Statistic-Cla_L5e9.js} +47 -42
  78. package/dist/{Stock-B7RP-SuF.js → Stock-Dd8ldY1C.js} +1 -1
  79. package/dist/{Stock-BhOP8J0c.js → Stock-ton2XQvX.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js → Stock.vue_vue_type_style_index_0_lang-D3q0V11y.js} +16 -11
  81. package/dist/{Switch-BcDhe4_E.js → Switch-DbuY-LaA.js} +1 -1
  82. package/dist/{Table-Cy7FarYr.js → Table-Dq1R3XQA.js} +126 -121
  83. package/dist/{Table-DK-TaejU.js → Table-oW89rsKS.js} +95 -90
  84. package/dist/Text-BrCh_N82.js +54 -0
  85. package/dist/{Text-YNB0It4-.js → Text-HTloZdDv.js} +15 -10
  86. package/dist/{Text-D89aQLxL.js → Text-P2-k5a9e.js} +1 -1
  87. package/dist/{Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js → Text.vue_vue_type_style_index_0_lang-Dsdvr6fn.js} +1 -1
  88. package/dist/TextLink-CPVlQ9-M.js +65 -0
  89. package/dist/{Textarea-86C9lCtg.js → Textarea-BaP35_pu.js} +1 -1
  90. package/dist/Time-D8DSb_IO.js +43 -0
  91. package/dist/{Timeline-O_jWjdxT.js → Timeline-CPatCG_r.js} +1 -1
  92. package/dist/{Tree-BfFRW-xZ.js → Tree-C2DhDNKo.js} +1 -1
  93. package/dist/Tree-ChZtj3fV.js +298 -0
  94. package/dist/TreeNode-D5zQHOaX.js +43 -0
  95. package/dist/Update-Cig11quH.js +70 -0
  96. package/dist/{UpdateChild-YzPMnj_r.js → UpdateChild-CVhd-nAy.js} +17 -12
  97. package/dist/Upload-DWFWNuWY.js +150 -0
  98. package/dist/{Upload-Dj5nSsug.js → Upload-UJ-nPZ5H.js} +18 -18
  99. package/dist/{Year-CcbzIuwy.js → Year-D1NAx7x8.js} +1 -1
  100. package/dist/Year-MzDQJESK.js +47 -0
  101. package/dist/{main-DxH9UW19.js → main-Bme5ZtDc.js} +6145 -5905
  102. package/dist/main.js +162 -164
  103. package/dist/style.css +1 -1
  104. package/esm/@types/CreatePcOptions.d.ts +1 -2
  105. package/esm/@types/index.d.ts +1 -2
  106. package/esm/coms/business/@types/DrawerProps.d.ts +1 -2
  107. package/esm/coms/business/@types/FormProps.d.ts +1 -2
  108. package/esm/coms/business/@types/index.d.ts +2 -3
  109. package/esm/coms/business/Condition.vue.d.ts +3 -3
  110. package/esm/coms/business/Drawer.vue.d.ts +2 -2
  111. package/esm/coms/business/Form.vue.d.ts +3 -2
  112. package/esm/coms/commons/@types/TableProps.d.ts +1 -2
  113. package/esm/coms/commons/@types/index.d.ts +1 -2
  114. package/esm/coms/commons/Captcha.vue.d.ts +1 -1
  115. package/esm/coms/commons/Debug.vue.d.ts +2 -1
  116. package/esm/coms/commons/Editable.vue.d.ts +2 -1
  117. package/esm/coms/commons/Loading.vue.d.ts +2 -1
  118. package/esm/coms/commons/Resizer.vue.d.ts +3 -2
  119. package/esm/coms/commons/Table.vue.d.ts +8 -3
  120. package/esm/coms/commons/TableColumn.vue.d.ts +2 -1
  121. package/esm/coms/controls/@types/ControlProps.d.ts +1 -2
  122. package/esm/coms/controls/@types/index.d.ts +1 -2
  123. package/esm/coms/controls/Autocomplete.vue.d.ts +4 -5
  124. package/esm/coms/controls/Cascader.vue.d.ts +4 -5
  125. package/esm/coms/controls/Checkbox.vue.d.ts +5 -6
  126. package/esm/coms/controls/Code.vue.d.ts +4 -5
  127. package/esm/coms/controls/Color.vue.d.ts +4 -5
  128. package/esm/coms/controls/Compare.vue.d.ts +5 -6
  129. package/esm/coms/controls/Date.vue.d.ts +4 -5
  130. package/esm/coms/controls/DateRange.vue.d.ts +4 -5
  131. package/esm/coms/controls/DateTime.vue.d.ts +4 -5
  132. package/esm/coms/controls/DateTimeRange.vue.d.ts +4 -5
  133. package/esm/coms/controls/Decimal.vue.d.ts +4 -5
  134. package/esm/coms/controls/Email.vue.d.ts +4 -5
  135. package/esm/coms/controls/Index.vue.d.ts +4 -5
  136. package/esm/coms/controls/Int.vue.d.ts +4 -5
  137. package/esm/coms/controls/Markdown.vue.d.ts +4 -5
  138. package/esm/coms/controls/Month.vue.d.ts +4 -5
  139. package/esm/coms/controls/Password.vue.d.ts +4 -5
  140. package/esm/coms/controls/Progress.vue.d.ts +4 -5
  141. package/esm/coms/controls/Radio.vue.d.ts +4 -5
  142. package/esm/coms/controls/Rate.vue.d.ts +4 -5
  143. package/esm/coms/controls/RichText.vue.d.ts +4 -4
  144. package/esm/coms/controls/Select.vue.d.ts +4 -5
  145. package/esm/coms/controls/Switch.vue.d.ts +5 -6
  146. package/esm/coms/controls/Text.vue.d.ts +4 -5
  147. package/esm/coms/controls/Textarea.vue.d.ts +4 -5
  148. package/esm/coms/controls/Time.vue.d.ts +4 -5
  149. package/esm/coms/controls/Upload.vue.d.ts +5 -6
  150. package/esm/coms/controls/Year.vue.d.ts +4 -5
  151. package/esm/coms/drivers/@types/CrudProps.d.ts +1 -2
  152. package/esm/coms/drivers/@types/DriverBaseProps.d.ts +1 -2
  153. package/esm/coms/drivers/@types/DriverEmit.d.ts +1 -2
  154. package/esm/coms/drivers/@types/DriverFormProps.d.ts +2 -3
  155. package/esm/coms/drivers/@types/DriverKindEmit.d.ts +2 -3
  156. package/esm/coms/drivers/@types/DriverProps.d.ts +3 -4
  157. package/esm/coms/drivers/@types/KindFormProps.d.ts +0 -1
  158. package/esm/coms/drivers/@types/KindProps.d.ts +2 -3
  159. package/esm/coms/drivers/@types/index.d.ts +5 -6
  160. package/esm/coms/drivers/Crud.vue.d.ts +6 -3
  161. package/esm/coms/drivers/Index.vue.d.ts +2 -1
  162. package/esm/coms/drivers/Kind.vue.d.ts +2 -1
  163. package/esm/coms/globals/@types/WindowEmit.d.ts +6 -7
  164. package/esm/coms/globals/@types/WindowOptions.d.ts +1 -2
  165. package/esm/coms/globals/@types/WindowProps.d.ts +2 -3
  166. package/esm/coms/globals/@types/index.d.ts +3 -4
  167. package/esm/coms/globals/HeaderTab.vue.d.ts +3 -2
  168. package/esm/coms/globals/HeaderTabs.vue.d.ts +4 -3
  169. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  170. package/esm/coms/globals/MissComponent.vue.d.ts +3 -2
  171. package/esm/coms/globals/SideTab.vue.d.ts +3 -2
  172. package/esm/coms/globals/SideTabs.vue.d.ts +2 -1
  173. package/esm/coms/globals/Window.vue.d.ts +43 -2
  174. package/esm/coms/headers/@types/ChangeProps.d.ts +1 -2
  175. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -2
  176. package/esm/coms/headers/@types/TipsProps.d.ts +1 -2
  177. package/esm/coms/headers/@types/index.d.ts +3 -4
  178. package/esm/coms/headers/Hamburger.vue.d.ts +1 -1
  179. package/esm/coms/headers/Index.vue.d.ts +3 -2
  180. package/esm/coms/headers/Logo.vue.d.ts +1 -1
  181. package/esm/coms/headers/Refresh.vue.d.ts +1 -1
  182. package/esm/coms/layouts/@types/ITaskBar.d.ts +1 -2
  183. package/esm/coms/layouts/@types/index.d.ts +1 -2
  184. package/esm/coms/layouts/Desktop.vue.d.ts +1 -1
  185. package/esm/coms/layouts/Index.vue.d.ts +6 -6
  186. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  187. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  188. package/esm/coms/lists/@types/ListProps.d.ts +1 -2
  189. package/esm/coms/lists/@types/index.d.ts +1 -2
  190. package/esm/coms/lists/Calender.vue.d.ts +1 -1
  191. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  192. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  193. package/esm/coms/lists/Stock.vue.d.ts +1 -1
  194. package/esm/coms/lists/Timeline.vue.d.ts +1 -1
  195. package/esm/coms/lists/Tree.vue.d.ts +1 -1
  196. package/esm/coms/pages/@types/ColumnPageProps.d.ts +2 -3
  197. package/esm/coms/pages/@types/CustomPageProps.d.ts +2 -3
  198. package/esm/coms/pages/@types/DeletePageProps.d.ts +2 -3
  199. package/esm/coms/pages/@types/ListPageProps.d.ts +2 -3
  200. package/esm/coms/pages/@types/PageEmit.d.ts +1 -2
  201. package/esm/coms/pages/@types/PageProps.d.ts +1 -2
  202. package/esm/coms/pages/@types/PagingPageProps.d.ts +2 -3
  203. package/esm/coms/pages/@types/SchemaProps.d.ts +3 -4
  204. package/esm/coms/pages/@types/SinglePageProps.d.ts +2 -3
  205. package/esm/coms/pages/@types/index.d.ts +9 -10
  206. package/esm/coms/pages/Column.vue.d.ts +1 -1
  207. package/esm/coms/pages/Delete.vue.d.ts +1 -1
  208. package/esm/coms/pages/Paging.vue.d.ts +1 -2
  209. package/esm/coms/pagings/@types/PagingProps.d.ts +1 -2
  210. package/esm/coms/pagings/@types/SearchFormProps.d.ts +1 -2
  211. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +1 -2
  212. package/esm/coms/pagings/@types/index.d.ts +3 -4
  213. package/esm/coms/pagings/Article.vue.d.ts +1 -1
  214. package/esm/coms/pagings/Code.vue.d.ts +1 -1
  215. package/esm/coms/pagings/File.vue.d.ts +1 -1
  216. package/esm/coms/pagings/Index.vue.d.ts +1 -2
  217. package/esm/coms/pagings/SearchHeader.vue.d.ts +1 -1
  218. package/esm/coms/pagings/Table.vue.d.ts +2 -3
  219. package/esm/coms/panels/@types/OperationProps.d.ts +1 -2
  220. package/esm/coms/panels/@types/index.d.ts +1 -2
  221. package/esm/coms/panels/Group.vue.d.ts +3 -2
  222. package/esm/coms/panels/Header.vue.d.ts +1 -1
  223. package/esm/coms/panels/Operation.vue.d.ts +3 -2
  224. package/esm/coms/panels/Panel.vue.d.ts +3 -2
  225. package/esm/coms/panels/Shrink.vue.d.ts +3 -2
  226. package/esm/coms/partials/@types/ArticleFooterEmit.d.ts +1 -2
  227. package/esm/coms/partials/@types/DetailEmit.d.ts +1 -2
  228. package/esm/coms/partials/@types/DetailProps.d.ts +1 -2
  229. package/esm/coms/partials/@types/PagingHeaderEmit.d.ts +2 -3
  230. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +1 -2
  231. package/esm/coms/partials/@types/PagingRowEmit.d.ts +1 -2
  232. package/esm/coms/partials/@types/PagingRowProps.d.ts +1 -2
  233. package/esm/coms/partials/@types/TreeNodeProps.d.ts +1 -2
  234. package/esm/coms/partials/@types/UpdateChildEmit.d.ts +1 -2
  235. package/esm/coms/partials/@types/UpdateChildProps.d.ts +1 -2
  236. package/esm/coms/partials/@types/UpdateEmit.d.ts +1 -2
  237. package/esm/coms/partials/@types/UpdateProps.d.ts +1 -2
  238. package/esm/coms/partials/@types/index.d.ts +12 -13
  239. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  240. package/esm/coms/partials/Detail.vue.d.ts +1 -1
  241. package/esm/coms/partials/PagingHeader.vue.d.ts +2 -2
  242. package/esm/coms/partials/PagingRow.vue.d.ts +2 -2
  243. package/esm/coms/partials/TreeNode.vue.d.ts +1 -1
  244. package/esm/coms/partials/Update.vue.d.ts +1 -1
  245. package/esm/coms/searches/@types/SearchProps.d.ts +1 -2
  246. package/esm/coms/searches/@types/index.d.ts +1 -2
  247. package/esm/coms/searches/Autocomplete.vue.d.ts +4 -5
  248. package/esm/coms/searches/Daterange.vue.d.ts +4 -5
  249. package/esm/coms/searches/Int.vue.d.ts +4 -5
  250. package/esm/coms/searches/Month.vue.d.ts +4 -5
  251. package/esm/coms/searches/Select.vue.d.ts +4 -5
  252. package/esm/coms/searches/Text.vue.d.ts +4 -2
  253. package/esm/coms/singles/@types/SingleProps.d.ts +1 -2
  254. package/esm/coms/singles/@types/index.d.ts +1 -2
  255. package/esm/coms/singles/Code.vue.d.ts +1 -1
  256. package/esm/coms/singles/Comment.vue.d.ts +1 -1
  257. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  258. package/esm/coms/singles/Statistic.vue.d.ts +1 -1
  259. package/esm/coms/singles/Stock.vue.d.ts +1 -1
  260. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  261. package/esm/coms/texts/Autocomplete.vue.d.ts +3 -4
  262. package/esm/coms/texts/CSharp.vue.d.ts +3 -4
  263. package/esm/coms/texts/Cascader.vue.d.ts +5 -6
  264. package/esm/coms/texts/Checkbox.vue.d.ts +3 -4
  265. package/esm/coms/texts/Code.vue.d.ts +3 -4
  266. package/esm/coms/texts/Color.vue.d.ts +3 -4
  267. package/esm/coms/texts/Compare.vue.d.ts +3 -4
  268. package/esm/coms/texts/Copy.vue.d.ts +6 -6
  269. package/esm/coms/texts/Date.vue.d.ts +3 -4
  270. package/esm/coms/texts/DateRange.vue.d.ts +3 -4
  271. package/esm/coms/texts/DateTime.vue.d.ts +3 -4
  272. package/esm/coms/texts/Decimal.vue.d.ts +3 -4
  273. package/esm/coms/texts/Dictionary.vue.d.ts +5 -6
  274. package/esm/coms/texts/Email.vue.d.ts +3 -4
  275. package/esm/coms/texts/Index.vue.d.ts +4 -5
  276. package/esm/coms/texts/Int.vue.d.ts +3 -4
  277. package/esm/coms/texts/Markdown.vue.d.ts +3 -4
  278. package/esm/coms/texts/Month.vue.d.ts +3 -4
  279. package/esm/coms/texts/Password.vue.d.ts +3 -4
  280. package/esm/coms/texts/Progress.vue.d.ts +3 -4
  281. package/esm/coms/texts/Radio.vue.d.ts +3 -4
  282. package/esm/coms/texts/Rate.vue.d.ts +4 -5
  283. package/esm/coms/texts/RichText.vue.d.ts +3 -4
  284. package/esm/coms/texts/Select.vue.d.ts +3 -4
  285. package/esm/coms/texts/Switch.vue.d.ts +3 -4
  286. package/esm/coms/texts/Text.vue.d.ts +3 -4
  287. package/esm/coms/texts/TextLink.vue.d.ts +2 -1
  288. package/esm/coms/texts/Textarea.vue.d.ts +3 -4
  289. package/esm/coms/texts/Upload.vue.d.ts +3 -4
  290. package/esm/coms/texts/Year.vue.d.ts +3 -4
  291. package/esm/drivers/index.d.ts +0 -1
  292. package/esm/drivers/messengers/PcMessenger.d.ts +1 -2
  293. package/esm/drivers/messengers/index.d.ts +1 -2
  294. package/esm/repos/UploadApi.d.ts +1 -2
  295. package/esm/repos/index.d.ts +1 -2
  296. package/esm/svcs/AppSvc.d.ts +1 -2
  297. package/esm/svcs/ComponentSvc.d.ts +1 -2
  298. package/esm/svcs/ControlSvc.d.ts +1 -2
  299. package/esm/svcs/LayoutSvc.d.ts +1 -2
  300. package/esm/svcs/ModuleSvc.d.ts +3 -4
  301. package/esm/svcs/PageSvc.d.ts +1 -2
  302. package/esm/svcs/RouterSvc.d.ts +1 -2
  303. package/esm/svcs/Svcs.d.ts +11 -0
  304. package/esm/svcs/UploadSvc.d.ts +1 -2
  305. package/esm/svcs/WindowSvc.d.ts +1 -2
  306. package/esm/svcs/index.d.ts +10 -9
  307. package/esm/views/helps/401.vue.d.ts +1 -1
  308. package/esm/views/helps/404.vue.d.ts +1 -1
  309. package/esm/views/helps/Install.vue.d.ts +1 -1
  310. package/esm/views/helps/Maintaince.vue.d.ts +1 -1
  311. package/esm/views/logins/Callback.vue.d.ts +1 -1
  312. package/esm/views/logins/Index.vue.d.ts +1 -1
  313. package/esm/views/logins/Register.vue.d.ts +1 -1
  314. package/esm/views/sso/Callback.vue.d.ts +2 -0
  315. package/esm/views/sso/Index.vue.d.ts +2 -0
  316. package/esm/views/sso/Register.vue.d.ts +2 -0
  317. package/package.json +10 -10
  318. package/dist/Autocomplete-B6Mwp9rT.js +0 -50
  319. package/dist/Autocomplete-PZTjEBIx.js +0 -49
  320. package/dist/Callback-CyDW9WU2.js +0 -21
  321. package/dist/Code-C0Kxulod.js +0 -4
  322. package/dist/Compare-BZucuvFP.js +0 -58
  323. package/dist/Compare-D-Byn_Gq.js +0 -38
  324. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js +0 -173
  325. package/dist/Date-g1XKWU4b.js +0 -38
  326. package/dist/DateTime-D_x_wBZR.js +0 -39
  327. package/dist/Delete-BOkBpAGN.js +0 -57
  328. package/dist/File-BDUTK7hV.js +0 -159
  329. package/dist/Index-BWukqxQl.js +0 -4
  330. package/dist/Index-BahY1OIJ.js +0 -4
  331. package/dist/Index-C9ffFYsl.js +0 -4
  332. package/dist/Index-DG7Hovsx.js +0 -4
  333. package/dist/Index.vue_vue_type_script_setup_true_lang-42C0EEto.js +0 -67
  334. package/dist/Int-BM4sbZvh.js +0 -42
  335. package/dist/Int-BrFE_Hmm.js +0 -39
  336. package/dist/List-DWjTqrJR.js +0 -72
  337. package/dist/Month-QG6OiiLU.js +0 -39
  338. package/dist/Month-Y0kLXgV7.js +0 -38
  339. package/dist/Normal-CSy3DFPH.js +0 -257
  340. package/dist/Paging-BYccIXmC.js +0 -95
  341. package/dist/Select-CfIvGDPS.js +0 -112
  342. package/dist/Select-Cz6MPDCC.js +0 -81
  343. package/dist/Text-B580p9od.js +0 -49
  344. package/dist/TextLink-CI-AIgdm.js +0 -60
  345. package/dist/Time-BgArfSc6.js +0 -38
  346. package/dist/Tree-DayADkaC.js +0 -293
  347. package/dist/TreeNode-BZp8w6M5.js +0 -38
  348. package/dist/Update-Bcdz87R4.js +0 -65
  349. package/dist/Upload-DU5VOqXj.js +0 -145
  350. package/dist/Year-B3E0kOiA.js +0 -42
@@ -0,0 +1,298 @@
1
+ import { defineComponent as be, toRefs as ke, ref as v, onMounted as xe, onUnmounted as ge, computed as B, watch as Ce, resolveComponent as I, openBlock as i, createBlock as g, unref as e, withCtx as m, createElementVNode as c, createElementBlock as h, createVNode as b, Fragment as _e, renderList as we, withDirectives as Ne, resolveDynamicComponent as Ke, createCommentVNode as C, createTextVNode as _, toDisplayString as k, vShow as Re, nextTick as A } from "vue";
2
+ import { D as w, c as Se, h as G, l as $e, k as De, n as Ie, I as f, a as H, U as N, R as Ue, M as Te } from "./main-Bme5ZtDc.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
+ import "./assets/underscore-B0BCaBxV.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/underscore.string-DVXD2SZo.js";
8
+ import "./assets/moment-h96o7c8I.js";
9
+ import "vue-router";
10
+ import "./assets/intro.js-Cg1adLK7.js";
11
+ const Ve = { class: "tree-left" }, qe = {
12
+ key: 2,
13
+ class: "ha-empty"
14
+ }, Le = {
15
+ key: 3,
16
+ class: "tree-add"
17
+ }, Je = /* @__PURE__ */ be({
18
+ __name: "Tree",
19
+ props: {
20
+ searchData: {},
21
+ route: {},
22
+ module: {},
23
+ schema: {},
24
+ table: {},
25
+ layout: {},
26
+ next: {},
27
+ set: {},
28
+ url: {},
29
+ win: {}
30
+ },
31
+ emits: ["refresh", "succeed", "search", "navigate"],
32
+ setup(J, { expose: Q, emit: W }) {
33
+ let x = W, X = J, { route: K, module: z, schema: Y, table: p, layout: o, next: y, set: Be, searchData: Z } = ke(X), R = v(), E = v(), U = v(), S = v(), M = v(), ee = v(), d = v({ type: null, name: null, url: null, visible: !1 }), $ = v(), T = null, r = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), O = () => {
34
+ if (!R.value)
35
+ return;
36
+ let t = R.value.$el.querySelector(".is-context");
37
+ t && t.classList.remove("is-context");
38
+ }, le = (t, l, a, n) => {
39
+ O(), n.vnode.el.classList.add("is-context"), r.value.currentNode = l, T.show(t);
40
+ }, D = (t) => {
41
+ let l = o.value.parentId, a = { [l]: null };
42
+ t == "sibling" ? a[l] = r.value.currentNode[l] : t == "child" && (a[l] = r.value.currentNode[o.value.id]);
43
+ let n = w.base64.encode(a), u;
44
+ t == "copy" ? u = `${y.value.copy.route}?id=${r.value.currentNode[o.value.id]}&` : u = `${y.value.insert.route}?`, u += `default=${n}`, d.value.url = u, d.value.visible = !0;
45
+ }, P = () => {
46
+ let t = r.value.currentNode[o.value.id], l = r.value.currentNode[o.value.text], a = f.t("common.confirm_delete", l);
47
+ w.messenger.confirm(f.t("common.tips"), a, { type: "warning" }).then(() => {
48
+ te(t);
49
+ });
50
+ }, te = (t) => {
51
+ let l = o.value.id, a = o.value.data, n = N.tree.getNextById(t, l, a, "Children");
52
+ w.http.post(y.value.delete.route, [t]).then(() => {
53
+ N.tree.removeById(t, l, a, "Children");
54
+ let u = null;
55
+ n && (u = n[l], r.value.currentKey = u, r.value.expandedKeys.push(u)), x("succeed", () => {
56
+ V(r.value.scrollTop);
57
+ });
58
+ });
59
+ }, re = (t) => {
60
+ r.value.scrollTop = t.scrollTop;
61
+ }, V = (t = null, l = null) => {
62
+ r.value.visible = !1, A(() => {
63
+ r.value.visible = !0, A(() => {
64
+ if (t == null) {
65
+ let a = R.value.$el.querySelector(".el-tree-node.is-current");
66
+ a && a.scrollIntoView({ block: "center", behavior: "smooth" });
67
+ } else
68
+ S.value.setScrollTop(t);
69
+ l && l();
70
+ });
71
+ });
72
+ }, oe = () => {
73
+ d.value.visible = !1, x("succeed", () => {
74
+ V(r.value.scrollTop);
75
+ });
76
+ }, ae = (t) => {
77
+ d.value.type = t.module.type, d.value.name = t.module.name;
78
+ }, ne = () => {
79
+ d.value.visible = !1;
80
+ }, ue = (t, l, a) => {
81
+ O();
82
+ let n = t[o.value.id];
83
+ if (N.array.pushIfNotExist(r.value.expandedKeys, n), n == r.value.currentKey)
84
+ U.value.refresh();
85
+ else {
86
+ r.value.currentKey = n, $.value = q();
87
+ let u = N.url.getUrl(K.value.fullPath, { id: n });
88
+ x("navigate", u);
89
+ }
90
+ }, se = (t, l, a) => {
91
+ N.array.remove(r.value.expandedKeys, t[o.value.id]);
92
+ }, de = (t, l, a, n) => {
93
+ let u = {
94
+ table: o.value.table,
95
+ id: t.data[o.value.id],
96
+ targetId: l.data[o.value.id],
97
+ position: a
98
+ };
99
+ w.http.post(o.value.operation.route, u).then((F) => {
100
+ });
101
+ }, ie = (t) => {
102
+ x("search", t);
103
+ }, ce = (t) => {
104
+ }, ve = (t, l) => t ? l[p.value.text].indexOf(t) !== -1 : !0, fe = () => {
105
+ x("refresh");
106
+ }, me = (t, l) => {
107
+ Ue.module.triggerKeyboard(U.value, t, l);
108
+ }, pe = () => {
109
+ S.value.update();
110
+ }, q = () => {
111
+ let t = y.value[o.value.page.toLowerCase()].route;
112
+ return r.value.currentKey && (t += "?id=" + r.value.currentKey), t;
113
+ }, ye = () => {
114
+ let t = K.value.query.id, l;
115
+ t == null ? l = o.value.updateKey : l = G.convert(t, j.value.type), l && (r.value.currentKey = l, r.value.expandedKeys = [l], $.value = q()), V(null, () => {
116
+ T = new Te(E.value, [S.value.$el, M.value]);
117
+ });
118
+ };
119
+ xe(() => {
120
+ ye();
121
+ }), ge(() => {
122
+ T.dispose();
123
+ }), B(() => {
124
+ let t = { [o.value.parentId]: K.value.query.id };
125
+ return w.base64.encode(t);
126
+ });
127
+ let he = B(() => {
128
+ let t = `/${p.value.name}/tree-node`;
129
+ return Se.getComponent(t, "partial", "tree-node");
130
+ }), j = B(() => p.value.fields.find((l) => l.name == o.value.id));
131
+ return Ce(() => K.value, (t, l) => {
132
+ r.value.currentKey = G.convert(t.query.id, j.value.type), $.value = q();
133
+ }), Q({ onRefresh: fe, onKeyboard: me, onResize: pe }), (t, l) => {
134
+ const a = I("el-scrollbar"), n = I("el-tree"), u = I("el-button"), F = I("el-drawer");
135
+ return i(), g(e($e), {
136
+ class: "tree",
137
+ width: e(r).width,
138
+ onResize: l[5] || (l[5] = (s) => e(r).width = s)
139
+ }, {
140
+ left: m(() => [
141
+ c("div", Ve, [
142
+ e(p).search.length ? (i(), h("div", {
143
+ key: 0,
144
+ ref_key: "searchRef",
145
+ ref: ee,
146
+ class: "tree-search"
147
+ }, [
148
+ b(a, null, {
149
+ default: m(() => [
150
+ (i(!0), h(_e, null, we(e(p).search, (s, L) => (i(), h("div", {
151
+ class: "search-field",
152
+ key: L
153
+ }, [
154
+ b(e(De), {
155
+ schema: e(Y),
156
+ table: e(p),
157
+ field: s,
158
+ "search-data": e(Z),
159
+ onChange: e(ce),
160
+ onSubmit: e(ie)
161
+ }, null, 8, ["schema", "table", "field", "search-data", "onChange", "onSubmit"])
162
+ ]))), 128))
163
+ ]),
164
+ _: 1
165
+ })
166
+ ], 512)) : (i(), g(e(Ie), {
167
+ key: 1,
168
+ title: e(f).module(e(z).type, e(z).name)
169
+ }, null, 8, ["title"])),
170
+ Ne(b(a, {
171
+ ref_key: "scrollbarRef",
172
+ ref: S,
173
+ class: "tree-content",
174
+ onScroll: e(re)
175
+ }, {
176
+ default: m(() => [
177
+ e(r).visible ? (i(), g(n, {
178
+ key: 0,
179
+ ref_key: "treeRef",
180
+ ref: R,
181
+ "highlight-current": "",
182
+ "show-checkbox": e(o).checkbox,
183
+ "expand-on-click-node": !1,
184
+ draggable: !!e(o).operation,
185
+ data: e(o).data,
186
+ "node-key": e(o).id,
187
+ "current-node-key": e(r).currentKey,
188
+ props: { children: "Children", label: e(o).text },
189
+ "filter-node-method": e(ve),
190
+ "default-expanded-keys": e(r).expandedKeys,
191
+ onNodeClick: e(ue),
192
+ onNodeContextmenu: e(le),
193
+ onNodeCollapse: e(se),
194
+ onNodeDrop: e(de)
195
+ }, {
196
+ default: m(({ node: s, data: L }) => [
197
+ (i(), g(Ke(e(he)), {
198
+ table: e(p),
199
+ layout: e(o),
200
+ row: L,
201
+ node: s
202
+ }, null, 8, ["table", "layout", "row", "node"]))
203
+ ]),
204
+ _: 1
205
+ }, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : C("", !0),
206
+ c("ul", {
207
+ ref_key: "menuRef",
208
+ ref: E,
209
+ class: "mouse-context"
210
+ }, [
211
+ c("li", {
212
+ onClick: l[0] || (l[0] = (s) => e(D)("child"))
213
+ }, [
214
+ l[6] || (l[6] = c("i", { class: "fa fa-plus" }, null, -1)),
215
+ _(k(e(f).t("tree.add_sub_item")), 1)
216
+ ]),
217
+ c("li", {
218
+ onClick: l[1] || (l[1] = (s) => e(D)("sibling"))
219
+ }, [
220
+ l[7] || (l[7] = c("i", { class: "fa fa-plus" }, null, -1)),
221
+ _(k(e(f).t("tree.add_same_grade")), 1)
222
+ ]),
223
+ c("li", {
224
+ onClick: l[2] || (l[2] = (s) => e(D)("copy"))
225
+ }, [
226
+ l[8] || (l[8] = c("i", { class: "fa fa-copy" }, null, -1)),
227
+ _(k(e(f).t("common.copy")), 1)
228
+ ]),
229
+ e(y).delete ? (i(), h("li", {
230
+ key: 0,
231
+ onClick: l[3] || (l[3] = //@ts-ignore
232
+ (...s) => e(P) && e(P)(...s))
233
+ }, [
234
+ l[9] || (l[9] = c("i", { class: "fa fa-trash" }, null, -1)),
235
+ _(k(e(f).t("common.delete")), 1)
236
+ ])) : C("", !0)
237
+ ], 512)
238
+ ]),
239
+ _: 1
240
+ }, 8, ["onScroll"]), [
241
+ [Re, e(o).data.length]
242
+ ]),
243
+ e(o).data.length ? C("", !0) : (i(), h("div", qe, k(e(f).t("common.no_data")), 1)),
244
+ !e(o).data.length && e(y).insert ? (i(), h("div", Le, [
245
+ b(u, {
246
+ type: "primary",
247
+ onClick: e(D)
248
+ }, {
249
+ icon: m(() => l[10] || (l[10] = [
250
+ c("i", { class: "fa fa-plus" }, null, -1)
251
+ ])),
252
+ default: m(() => [
253
+ _(" " + k(e(y).insert.title), 1)
254
+ ]),
255
+ _: 1
256
+ }, 8, ["onClick"])
257
+ ])) : C("", !0)
258
+ ])
259
+ ]),
260
+ default: m(() => [
261
+ c("div", {
262
+ ref_key: "detailRef",
263
+ ref: M,
264
+ class: "tree-detail"
265
+ }, [
266
+ e(r).currentKey ? (i(), g(e(H), {
267
+ key: 0,
268
+ ref_key: "singleRef",
269
+ ref: U,
270
+ url: e($)
271
+ }, null, 8, ["url"])) : C("", !0)
272
+ ], 512),
273
+ b(F, {
274
+ size: "60%",
275
+ "destroy-on-close": "",
276
+ title: e(f).module(e(d).type, e(d).name),
277
+ modelValue: e(d).visible,
278
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => e(d).visible = s)
279
+ }, {
280
+ default: m(() => [
281
+ b(e(H), {
282
+ url: e(d).url,
283
+ onLoaded: e(ae),
284
+ onSucceed: e(oe),
285
+ onClose: e(ne)
286
+ }, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
287
+ ]),
288
+ _: 1
289
+ }, 8, ["title", "modelValue"])
290
+ ]),
291
+ _: 1
292
+ }, 8, ["width"]);
293
+ };
294
+ }
295
+ });
296
+ export {
297
+ Je as default
298
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
2
+ import { I as g, U as y } from "./main-Bme5ZtDc.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
+ import "./assets/underscore-B0BCaBxV.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/underscore.string-DVXD2SZo.js";
8
+ import "./assets/moment-h96o7c8I.js";
9
+ const k = ["title"], v = { class: "number" }, V = {
10
+ key: 0,
11
+ class: "option-suffix"
12
+ }, B = {
13
+ key: 1,
14
+ class: "count"
15
+ }, L = /* @__PURE__ */ x({
16
+ __name: "TreeNode",
17
+ props: {
18
+ table: {},
19
+ layout: {},
20
+ row: {},
21
+ node: {}
22
+ },
23
+ setup(p) {
24
+ let u = p, { table: m, layout: r, row: t, node: c } = h(u), f = (o, l) => {
25
+ let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
26
+ return y.string.padLeft(n, 2, "0");
27
+ }, _ = C(() => m.value.fields.find((n) => n.name == r.value.text).control.i18N);
28
+ return (o, l) => {
29
+ var n;
30
+ return a(), s("div", {
31
+ title: e(t)[e(r).title]
32
+ }, [
33
+ N("span", v, i(e(f)(e(c), e(t))), 1),
34
+ b(" " + i((n = e(_)) != null && n.value ? e(g).t(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
35
+ e(r).suffix ? (a(), s("span", V, i(e(t)[e(r).suffix]), 1)) : d("", !0),
36
+ e(t).Children && e(t).Children.length > 0 ? (a(), s("span", B, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
37
+ ], 8, k);
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ L as default
43
+ };
@@ -0,0 +1,70 @@
1
+ import { defineComponent as b, toRefs as C, ref as x, resolveComponent as g, openBlock as v, createBlock as y, unref as t, withCtx as o, createVNode as m, createSlots as N, createTextVNode as a, toDisplayString as p, createElementVNode as c } from "vue";
2
+ import "./assets/liquidjs-BfOWWjtJ.js";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/underscore.string-DVXD2SZo.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import { p as V, I as u } from "./main-Bme5ZtDc.js";
9
+ import "element-plus";
10
+ import "vue-router";
11
+ import "./assets/intro.js-Cg1adLK7.js";
12
+ const q = /* @__PURE__ */ b({
13
+ __name: "Update",
14
+ props: {
15
+ table: {},
16
+ layout: {},
17
+ next: {},
18
+ set: {}
19
+ },
20
+ emits: ["submit", "close"],
21
+ setup(f, { expose: d, emit: _ }) {
22
+ let l = _;
23
+ C(f);
24
+ let n = x(!1), i = (r) => {
25
+ n.value = !0, l("submit", r, null, (e) => {
26
+ n.value = !1;
27
+ });
28
+ }, k = () => {
29
+ l("close");
30
+ };
31
+ return d({ submit: i }), (r, e) => {
32
+ const s = g("el-button");
33
+ return v(), y(t(V), { padding: 5 }, {
34
+ default: o(() => [
35
+ m(s, {
36
+ type: "primary",
37
+ loading: t(n),
38
+ onClick: t(i)
39
+ }, N({
40
+ default: o(() => [
41
+ a(" " + p(t(u).t("common.confirm")), 1)
42
+ ]),
43
+ _: 2
44
+ }, [
45
+ t(n) ? void 0 : {
46
+ name: "icon",
47
+ fn: o(() => [
48
+ e[0] || (e[0] = c("i", { class: "fa fa-check" }, null, -1))
49
+ ]),
50
+ key: "0"
51
+ }
52
+ ]), 1032, ["loading", "onClick"]),
53
+ m(s, { onClick: t(k) }, {
54
+ icon: o(() => e[1] || (e[1] = [
55
+ c("i", { class: "fa fa-chevron-left" }, null, -1)
56
+ ])),
57
+ default: o(() => [
58
+ a(" " + p(t(u).t("common.back")), 1)
59
+ ]),
60
+ _: 1
61
+ }, 8, ["onClick"])
62
+ ]),
63
+ _: 1
64
+ });
65
+ };
66
+ }
67
+ });
68
+ export {
69
+ q as default
70
+ };
@@ -1,7 +1,12 @@
1
- import { defineComponent as v, toRefs as x, resolveComponent as N, unref as e, openBlock as s, createElementBlock as V, Fragment as B, createBlock as m, withCtx as l, createElementVNode as r, createTextVNode as p, toDisplayString as o, createVNode as c, createCommentVNode as h } from "vue";
2
- import { t as d } from "./main-DxH9UW19.js";
1
+ import { defineComponent as v, toRefs as x, resolveComponent as N, unref as e, openBlock as m, createElementBlock as V, Fragment as B, createBlock as d, withCtx as l, createElementVNode as r, createTextVNode as p, toDisplayString as o, createVNode as c, createCommentVNode as h } from "vue";
2
+ import "./assets/liquidjs-BfOWWjtJ.js";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/underscore.string-DVXD2SZo.js";
3
7
  import "./assets/moment-h96o7c8I.js";
4
- const T = /* @__PURE__ */ v({
8
+ import { I as s } from "./main-Bme5ZtDc.js";
9
+ const z = /* @__PURE__ */ v({
5
10
  __name: "UpdateChild",
6
11
  props: {
7
12
  module: {},
@@ -20,10 +25,10 @@ const T = /* @__PURE__ */ v({
20
25
  }, _ = () => {
21
26
  i("remove");
22
27
  };
23
- return (w, t) => {
28
+ return (I, t) => {
24
29
  const a = N("el-button");
25
- return e(k).type != "Detail" ? (s(), V(B, { key: 0 }, [
26
- e(n).length == 0 ? (s(), m(a, {
30
+ return e(k).type != "Detail" ? (m(), V(B, { key: 0 }, [
31
+ e(n).length == 0 ? (m(), d(a, {
27
32
  key: 0,
28
33
  type: "primary",
29
34
  plain: "",
@@ -33,10 +38,10 @@ const T = /* @__PURE__ */ v({
33
38
  r("i", { class: "fa fa-plus" }, null, -1)
34
39
  ])),
35
40
  default: l(() => [
36
- p(" " + o(e(d)("update.add")), 1)
41
+ p(" " + o(e(s).t("update.add")), 1)
37
42
  ]),
38
43
  _: 1
39
- }, 8, ["onClick"])) : (s(), m(a, {
44
+ }, 8, ["onClick"])) : (m(), d(a, {
40
45
  key: 1,
41
46
  type: "primary",
42
47
  plain: "",
@@ -46,7 +51,7 @@ const T = /* @__PURE__ */ v({
46
51
  r("i", { class: "fa fa-share" }, null, -1)
47
52
  ])),
48
53
  default: l(() => [
49
- p(" " + o(e(d)("update.insert")), 1)
54
+ p(" " + o(e(s).t("update.insert")), 1)
50
55
  ]),
51
56
  _: 1
52
57
  }, 8, ["onClick"])),
@@ -60,7 +65,7 @@ const T = /* @__PURE__ */ v({
60
65
  r("i", { class: "fa fa-copy" }, null, -1)
61
66
  ])),
62
67
  default: l(() => [
63
- p(" " + o(e(d)("common.copy")) + "(" + o(e(n).length) + ") ", 1)
68
+ p(" " + o(e(s).t("common.copy")) + "(" + o(e(n).length) + ") ", 1)
64
69
  ]),
65
70
  _: 1
66
71
  }, 8, ["disabled", "onClick"]),
@@ -74,7 +79,7 @@ const T = /* @__PURE__ */ v({
74
79
  r("i", { class: "fa fa-trash" }, null, -1)
75
80
  ])),
76
81
  default: l(() => [
77
- p(" " + o(e(d)("common.delete")) + "(" + o(e(n).length) + ") ", 1)
82
+ p(" " + o(e(s).t("common.delete")) + "(" + o(e(n).length) + ") ", 1)
78
83
  ]),
79
84
  _: 1
80
85
  }, 8, ["disabled", "onClick"])
@@ -83,5 +88,5 @@ const T = /* @__PURE__ */ v({
83
88
  }
84
89
  });
85
90
  export {
86
- T as default
91
+ z as default
87
92
  };
@@ -0,0 +1,150 @@
1
+ import { defineComponent as Q, toRefs as X, ref as p, onMounted as Y, computed as k, watch as Z, resolveComponent as I, openBlock as R, createElementBlock as T, normalizeClass as ee, unref as a, createVNode as A, withCtx as U, createBlock as le, createTextVNode as te, toDisplayString as ae, isRef as oe, createElementVNode as re } from "vue";
2
+ import { I as ne, R as j, i as ie, D as g, U as u, h as B, S as F, u as C, j as ue } from "./main-Bme5ZtDc.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
+ import "./assets/underscore-B0BCaBxV.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/underscore.string-DVXD2SZo.js";
8
+ import "./assets/moment-h96o7c8I.js";
9
+ const se = {
10
+ key: 0,
11
+ class: "fa fa-upload"
12
+ }, de = ["src"], _e = /* @__PURE__ */ Q({
13
+ __name: "Upload",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: {}
21
+ },
22
+ emits: ["submit", "change", "update:modelValue"],
23
+ setup($, { emit: z }) {
24
+ let h = z, D = $, { table: d, field: n, row: y, set: pe, modelValue: E } = X(D), m = p(!1), P = p({}), c = p([]), S = p(), L = p(), f = !0, b = p({ action: "", data: null }), O = (e) => {
25
+ let l = ue.getUploadToken();
26
+ e.forEach((o) => {
27
+ let t = `${F.setting.upload.address}/api/objects/download?slug=${o[0]}&token=${l}`;
28
+ c.value.push({ name: o[1], url: t });
29
+ });
30
+ }, q = async (e) => {
31
+ f = !1;
32
+ let l = `/upload?table=${d.value.name}&field=${n.value.name}`;
33
+ b.value.action = j.setting.api.url + l;
34
+ let o = new ie();
35
+ o.path = l, o.method = "POST", await g.http.prepareAsync(o);
36
+ let t = o.getHeader("Authorization");
37
+ return P.value.Authorization = t, n.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (g.messenger.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
38
+ }, H = (e, l) => {
39
+ f = !1;
40
+ let t = [e.name.replace(j.setting.api.url, "")];
41
+ return g.http.post("/upload/delete", { files: t }).then(({ data: r }) => {
42
+ let i = l.indexOf(e), _ = u.array.removeIndex(s.value, i, ",");
43
+ if (h("update:modelValue", _), n.value.control.name) {
44
+ let v = d.value.fields.find((x) => x.name == n.value.control.name), V = B.getValue(r.value, i, d.value, v), w = u.array.removeIndex(V, i, ",");
45
+ B.setValue(w, r.value, d.value, i, v);
46
+ }
47
+ return Promise.resolve();
48
+ }).catch(() => Promise.reject());
49
+ }, M = (e) => {
50
+ m.value = !0, S.value = e.url;
51
+ }, W = (e, l, o) => {
52
+ }, G = (e, l) => {
53
+ g.http.handleResponseBody(e).then((o) => {
54
+ let { name: t, url: r } = o.data[0];
55
+ F.setting.upload.method == "box" || u.file.isImage(r) || (l.url = C.getFileIcon(r));
56
+ let _ = u.array.split(s.value, ",", r).join(",");
57
+ if (s.value = _, n.value.control.name) {
58
+ let v = d.value.fields.find((x) => x.name == n.value.control.name), V = y.value[v.value], w = u.array.split(V, ",", t);
59
+ y.value[v.value] = w.join(",");
60
+ }
61
+ }).catch(() => {
62
+ c.value = [];
63
+ }).finally(() => {
64
+ f = !0;
65
+ });
66
+ }, N = () => {
67
+ if (c.value = [], !s.value)
68
+ return;
69
+ let e = u.array.split(s.value, ","), l = [];
70
+ if (n.value.control.name) {
71
+ let t = d.value.fields.find((i) => i.name == n.value.control.name), r = y.value[t.name];
72
+ l = u.array.split(r, ",");
73
+ }
74
+ let o = u.array.combine(e, l);
75
+ if (F.setting.upload.method == "box")
76
+ O(o);
77
+ else {
78
+ let t = u.url.isWebUrl(s.value) ? s.value : j.setting.api.url + s.value, r = { name: t, url: null };
79
+ u.file.isImage(t) ? r.url = t : r.url = C.getFileIcon(t), c.value.push(r);
80
+ }
81
+ };
82
+ Y(() => {
83
+ N();
84
+ });
85
+ let s = k({
86
+ get() {
87
+ return E.value;
88
+ },
89
+ set(e) {
90
+ h("update:modelValue", e), h("change", e);
91
+ }
92
+ }), J = k(() => n.value.control.preview ? "picture-card" : null), K = k(() => K);
93
+ return Z(() => s.value, (e, l) => {
94
+ f && N();
95
+ }), (e, l) => {
96
+ const o = I("el-button"), t = I("el-upload"), r = I("el-dialog");
97
+ return R(), T("div", {
98
+ class: ee(a(n).control.preview ? "control-file-preview" : "control-file")
99
+ }, [
100
+ A(t, {
101
+ ref_key: "uploadRef",
102
+ ref: L,
103
+ "list-type": a(J),
104
+ action: a(b).action,
105
+ headers: a(P),
106
+ data: a(b).data,
107
+ "file-list": a(c),
108
+ "before-upload": a(q),
109
+ "before-remove": a(H),
110
+ "on-preview": a(M),
111
+ "on-success": a(G),
112
+ "on-progress": a(W),
113
+ disabled: a(n).readonly
114
+ }, {
115
+ default: U(() => [
116
+ a(n).control.preview ? (R(), T("i", se)) : (R(), le(o, {
117
+ key: 1,
118
+ icon: "el-icon-upload",
119
+ type: "primary"
120
+ }, {
121
+ default: U(() => [
122
+ te(ae(a(ne).t("common.click_upload")), 1)
123
+ ]),
124
+ _: 1
125
+ }))
126
+ ]),
127
+ _: 1
128
+ }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
129
+ A(r, {
130
+ draggable: "",
131
+ "append-to-body": "",
132
+ modelValue: a(m),
133
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => oe(m) ? m.value = i : m = i)
134
+ }, {
135
+ default: U(() => [
136
+ re("img", {
137
+ width: "100%",
138
+ src: a(S),
139
+ alt: ""
140
+ }, null, 8, de)
141
+ ]),
142
+ _: 1
143
+ }, 8, ["modelValue"])
144
+ ], 2);
145
+ };
146
+ }
147
+ });
148
+ export {
149
+ _e as default
150
+ };