iking-web-ui-pro 0.2.52 → 0.2.53

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 (197) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +3 -3
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKHorizontalStepBar/ik.index.es.js +93 -93
  5. package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
  6. package/dist/IKPreviewFile/ik.index.es.js +2098 -2017
  7. package/dist/IKPreviewFile/ik.index.umd.js +49 -49
  8. package/dist/IKPreviewFile/style.css +1 -1
  9. package/dist/IKSearch/ik.index.es.js +1035 -1035
  10. package/dist/IKSearch/ik.index.umd.js +2 -2
  11. package/dist/IKVerticalStepBar/ik.index.es.js +3 -3
  12. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  13. package/dist/IKVerticalStepBar/style.css +1 -1
  14. package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +853 -853
  15. package/dist/IkApprovalProcess/ik.index.umd.js +1 -0
  16. package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
  17. package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +2794 -2713
  18. package/dist/IkApprovalProcessDetail/ik.index.umd.js +226 -0
  19. package/dist/IkApprovalProcessDetail/style.css +1 -0
  20. package/dist/IkBaseDialog/ik.index.es.js +4 -4
  21. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  22. package/dist/IkBaseDialog/style.css +1 -1
  23. package/dist/IkBottomOperate/ik.index.es.js +60 -60
  24. package/dist/IkBottomOperate/ik.index.umd.js +1 -1
  25. package/dist/IkBottomOperate/style.css +1 -1
  26. package/dist/IkBtnContent/style.css +1 -1
  27. package/dist/IkBtnSetting/ik.index.es.js +111 -111
  28. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  29. package/dist/IkBtnSetting/style.css +1 -1
  30. package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +2372 -2355
  31. package/dist/IkCalendar/ik.index.umd.js +1 -0
  32. package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
  33. package/dist/IkCollapseCard/ik.index.es.js +4 -4
  34. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  35. package/dist/IkCollapseCard/style.css +1 -1
  36. package/dist/IkDescription/ik.index.es.js +2016 -1935
  37. package/dist/IkDescription/ik.index.umd.js +49 -49
  38. package/dist/IkDescription/style.css +1 -1
  39. package/dist/IkDetailPreviewFiles/ik.index.es.js +2317 -2236
  40. package/dist/IkDetailPreviewFiles/ik.index.umd.js +50 -50
  41. package/dist/IkDetailPreviewFiles/style.css +1 -1
  42. package/dist/IkFileIcon/ik.index.es.js +394 -394
  43. package/dist/IkFileIcon/ik.index.umd.js +1 -1
  44. package/dist/IkFullCalendar/ik.index.es.js +601 -584
  45. package/dist/IkFullCalendar/ik.index.umd.js +1 -1
  46. package/dist/IkIconPicker/ik.index.es.js +3 -3
  47. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  48. package/dist/IkIconPicker/style.css +1 -1
  49. package/dist/IkMonacoEditor/ik.index.es.js +30 -30
  50. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  51. package/dist/IkMonacoEditor/style.css +1 -1
  52. package/dist/IkPageFull/ik.index.es.js +1467 -1467
  53. package/dist/IkPageFull/ik.index.umd.js +3 -3
  54. package/dist/IkPageFull/style.css +1 -1
  55. package/dist/IkPickerUser/ik.index.es.js +839 -839
  56. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  57. package/dist/IkPlayer/ik.index.es.js +1062 -981
  58. package/dist/IkPlayer/ik.index.umd.js +52 -52
  59. package/dist/IkPreviewFileDialog/ik.index.es.js +791 -710
  60. package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
  61. package/dist/IkPreviewFileDialog/style.css +1 -1
  62. package/dist/IkRadioGroup/ik.index.es.js +5 -5
  63. package/dist/IkRadioGroup/ik.index.umd.js +1 -1
  64. package/dist/IkRadioGroup/style.css +1 -1
  65. package/dist/IkSchedule/ik.index.es.js +1553 -1536
  66. package/dist/IkSchedule/ik.index.umd.js +1 -1
  67. package/dist/IkSchedule/style.css +1 -1
  68. package/dist/IkSideText/ik.index.es.js +29 -29
  69. package/dist/IkSideText/ik.index.umd.js +1 -1
  70. package/dist/IkSideText/style.css +1 -1
  71. package/dist/IkSvgIcon/ik.index.es.js +9 -9
  72. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  73. package/dist/IkSvgIcon/style.css +1 -1
  74. package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
  75. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  76. package/dist/IkTinymce/ik.index.es.js +26332 -26791
  77. package/dist/IkTinymce/ik.index.umd.js +61 -61
  78. package/dist/IkUploadFile/ik.index.es.js +1341 -1260
  79. package/dist/IkUploadFile/ik.index.umd.js +50 -50
  80. package/dist/IkUploadFile/style.css +1 -1
  81. package/dist/IkUploadImage/ik.index.es.js +278 -278
  82. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  83. package/dist/IkUploadImage/style.css +1 -1
  84. package/dist/index.es.js +37603 -37964
  85. package/dist/index.umd.js +133 -133
  86. package/dist/src/components/IKExpandCollapse/index.d.ts +5 -5
  87. package/dist/src/components/IKExpandCollapse/src/IKExpandCollapse.vue.d.ts +5 -5
  88. package/dist/src/components/IKHorizontalStepBar/index.d.ts +30 -90
  89. package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
  90. package/dist/src/components/IKPreviewFile/index.d.ts +13 -101
  91. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +7 -7
  92. package/dist/src/components/IKSearch/index.d.ts +24 -84
  93. package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +10 -10
  94. package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +5 -5
  95. package/dist/src/components/IKSearchHead/index.d.ts +5 -5
  96. package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +5 -5
  97. package/dist/src/components/IKVerticalStepBar/index.d.ts +5 -5
  98. package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +5 -5
  99. package/dist/src/components/IkApprovalProcess/index.d.ts +7 -7
  100. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +7 -7
  101. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
  102. package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +5 -5
  103. package/dist/src/components/IkAutoCard/index.d.ts +6 -12
  104. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
  105. package/dist/src/components/IkBaseDialog/index.d.ts +6 -35
  106. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
  107. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
  108. package/dist/src/components/IkBottomOperate/index.d.ts +15 -43
  109. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
  110. package/dist/src/components/IkBtnContent/index.d.ts +7 -5
  111. package/dist/src/components/IkBtnContent/src/index.d.ts +7 -5
  112. package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
  113. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
  114. package/dist/src/components/IkCalendar/index.d.ts +5 -5
  115. package/dist/src/components/IkCalendar/src/IKCalendar.vue.d.ts +5 -5
  116. package/dist/src/components/IkCollapseCard/index.d.ts +6 -12
  117. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
  118. package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
  119. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
  120. package/dist/src/components/IkDescription/index.d.ts +6 -39
  121. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
  122. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
  123. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
  124. package/dist/src/components/IkDragList/index.d.ts +13 -130
  125. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
  126. package/dist/src/components/IkEmpty/index.d.ts +6 -19
  127. package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
  128. package/dist/src/components/IkFileIcon/index.d.ts +4 -4
  129. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
  130. package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
  131. package/dist/src/components/IkIconPicker/index.d.ts +4 -4
  132. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
  133. package/dist/src/components/IkMonacoEditor/index.d.ts +167 -10
  134. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +167 -10
  135. package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
  136. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
  137. package/dist/src/components/IkPageFull/index.d.ts +54 -143
  138. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +369 -5
  139. package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
  140. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
  141. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
  142. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
  143. package/dist/src/components/IkPageFull/src/index.vue.d.ts +20 -14
  144. package/dist/src/components/IkPageTabs/index.d.ts +13 -38
  145. package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
  146. package/dist/src/components/IkPickerUser/index.d.ts +10 -10
  147. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
  148. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +6 -6
  149. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +6 -6
  150. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +6 -6
  151. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +10 -10
  152. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
  153. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
  154. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
  155. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
  156. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
  157. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
  158. package/dist/src/components/IkPlayer/index.d.ts +10 -26
  159. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
  160. package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
  161. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
  162. package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
  163. package/dist/src/components/IkPrintView/index.d.ts +5 -5
  164. package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
  165. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
  166. package/dist/src/components/IkSchedule/index.d.ts +17 -48
  167. package/dist/src/components/IkSelectTag/index.d.ts +10 -25
  168. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
  169. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
  170. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
  171. package/dist/src/components/IkSideText/index.d.ts +4 -4
  172. package/dist/src/components/IkStatu/index.d.ts +5 -5
  173. package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
  174. package/dist/src/components/IkStatuOver/index.d.ts +5 -5
  175. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
  176. package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
  177. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
  178. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
  179. package/dist/src/components/IkTinymce/index.d.ts +5 -5
  180. package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
  181. package/dist/src/components/IkTooltip/index.d.ts +6 -19
  182. package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
  183. package/dist/src/components/IkTree/IkTree.vue.d.ts +807 -127
  184. package/dist/src/components/IkTree/index.d.ts +2630 -611
  185. package/dist/src/components/IkUploadFile/index.d.ts +14 -135
  186. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
  187. package/dist/src/components/IkUploadImage/index.d.ts +10 -79
  188. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
  189. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
  190. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
  191. package/dist/src/components/Provider/index.d.ts +6 -27
  192. package/dist/style.css +1 -1
  193. package/package.json +1 -1
  194. package/dist/IKApprovalProcess/ik.index.umd.js +0 -1
  195. package/dist/IKApprovalProcessDetail/ik.index.umd.js +0 -226
  196. package/dist/IKApprovalProcessDetail/style.css +0 -1
  197. package/dist/IKCalendar/ik.index.umd.js +0 -1
@@ -1,4 +1,4 @@
1
- (function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro","axios"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P.index={},P.vue,P["element-plus"],P["iking-utils-pro"],P.axios))})(this,function(P,e,u,S,ye){"use strict";const ie=(l,p)=>{if(l.install=t=>{for(const o of[l,...Object.values(p??{})])t.component(o.name,o)},p)for(const[t,o]of Object.entries(p))l[t]=o;return l};/*! Element Plus Icons Vue v2.3.1 */var ke=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),xe=ke,_e=e.defineComponent({name:"Bottom",__name:"bottom",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Be=_e,Ve=e.defineComponent({name:"Delete",__name:"delete",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Ce=Ve,Oe=e.defineComponent({name:"Refresh",__name:"refresh",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),we=Oe,Ee=e.defineComponent({name:"Search",__name:"search",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ne=Ee,be=e.defineComponent({name:"Top",__name:"top",setup(l){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Le=be,j=(l=>(l.input="input",l.area="area",l.number="number",l.select="select",l.date="date",l.datetime="datetime",l.checkbox="checkbox",l.radio="radio",l.treeselect="treeselect",l.choosePerson="choosePerson",l))(j||{}),G=(l=>(l.year="year",l.month="month",l.date="date",l.dates="dates",l.datetime="datetime",l.week="week",l.datetimerange="datetimerange",l.daterange="daterange",l.monthrange="monthrange",l))(G||{}),de=(l=>(l.center="center",l.left="left",l.right="right",l))(de||{});const Pe={class:"ik-head-left"},Se={class:"ik-head-right"},Te=e.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(l,{emit:p}){const t=p;return(o,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ik-head",l.rowData.length===0?"pack-up":"ik-unfold"])},[e.createElementVNode("div",Pe,e.toDisplayString(`已选${l.rowData.length}条数据`),1),e.createElementVNode("div",Se,[e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"查询",icon:e.unref(Ce),onClick:x[0]||(x[0]=m=>t("delete",l.rowData))},null,8,["icon"]),e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"导入",icon:e.unref(Le),onClick:x[1]||(x[1]=m=>t("import",l.rowData))},null,8,["icon"]),e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"导出",icon:e.unref(Be),onClick:x[2]||(x[2]=m=>t("export",l.rowData))},null,8,["icon"])])],2))}}),oo="",ao="",M=(l,p)=>{const t=l.__vccOpts||l;for(const[o,x]of p)t[o]=x;return t},De=M(Te,[["__scopeId","data-v-d79d14fc"]]),Ue=(l,p)=>p?p.startsWith("http")?p:`${l||location.origin}${p}`:"",pe=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],Ie=l=>{const p=e.inject("loadUrl"),t=e.computed(()=>l.loadUrl||l.fileUrl||(p==null?void 0:p.value)),o=e.inject("uploadUrl"),x=e.computed(()=>l.action||l.uploadUrl||(o==null?void 0:o.value)),m=e.inject("token"),V=e.computed(()=>l.token||(m==null?void 0:m.value)),_=e.inject("onlyofficeConfig"),E=e.computed(()=>l.onlyofficeConfig||(_==null?void 0:_.value)),w=e.inject("userInfo"),B=e.computed(()=>l.userInfo||(w==null?void 0:w.value)),N=[...pe,...pe.map(f=>f.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:x,cToken:V,cOnlyofficeConfig:E,cUserInfo:B,cOnlyofficePreviewType:N}},Me={},Re={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},$e=[e.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),e.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function je(l,p){return e.openBlock(),e.createElementBlock("svg",Re,$e)}const He=M(Me,[["render",je]]),Fe={},We={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},Ge=[e.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),e.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function ze(l,p){return e.openBlock(),e.createElementBlock("svg",We,Ge)}const Ye=M(Fe,[["render",ze]]),Ke={},Qe={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},Xe=[e.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),e.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function qe(l,p){return e.openBlock(),e.createElementBlock("svg",Qe,Xe)}const Ze=M(Ke,[["render",qe]]),Je={},ve={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},et=[e.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),e.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function tt(l,p){return e.openBlock(),e.createElementBlock("svg",ve,et)}const lt=M(Je,[["render",tt]]),ot={},at={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},nt=[e.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),e.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function rt(l,p){return e.openBlock(),e.createElementBlock("svg",at,nt)}const st=M(ot,[["render",rt]]),ct={class:"avatar"},it={key:3,class:"user_box"},dt={key:1,class:"avatar_name"},pt=e.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(l){const p=l,{cLoadUrl:t}=Ie(p),o=x=>Ue(t.value,x);return(x,m)=>{const V=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",ct,[p.fixTypeOpt.group===l.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(st,{key:0})):p.fixTypeOpt.role===l.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(Ze,{key:1})):p.fixTypeOpt.post===l.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(lt,{key:2})):p.fixTypeOpt.user===l.element[p.fixPropOpt.type]?(e.openBlock(),e.createElementBlock("div",it,[l.element[l.fixPropOpt.avatar]?(e.openBlock(),e.createBlock(V,{key:0,shape:"square",src:o(l.fixPropOpt.avatar?l.element[l.fixPropOpt.avatar]:"")},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",dt,e.toDisplayString(l.element[l.fixPropOpt.name].slice(-2)),1))])):e.createCommentVNode("v-if",!0)])}}}),go="",T=M(pt,[["__scopeId","data-v-8031ce9b"]]),ee="data:image/webp;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2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",te={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},le=l=>(e.pushScopeId("data-v-8c34a55d"),l=l(),e.popScopeId(),l),ft={class:"left-pick-list"},ht={key:1,class:"post-view-list"},mt={class:"checkText"},ut={class:"iconBox"},At={class:"name_number"},gt={class:"title"},yt={key:0,class:"userCount"},kt={key:1,class:"checkText"},xt=le(()=>e.createElementVNode("div",{class:"side"},null,-1)),_t={class:"iconBox"},Bt={class:"name_number"},Vt={class:"title"},Ct={key:0,class:"userCount"},Ot=["onClick"],wt={class:"checkText"},Et={class:"iconBox"},Nt={class:"name_number"},bt={class:"title"},Lt={key:0,class:"userCount"},Pt={key:1,class:"checkText"},St=le(()=>e.createElementVNode("div",{class:"side"},null,-1)),Tt={class:"iconBox"},Dt={class:"name_number"},Ut={class:"title"},It={key:0,class:"userCount"},Mt=["onClick"],Rt={key:2,class:"empty"},$t=le(()=>e.createElementVNode("img",{src:ee,alt:""},null,-1)),jt=e.defineComponent({__name:"GroupList",props:te,emits:["change","check","handChild"],setup(l,{emit:p}){var f,r;const t=l,o=e.computed(()=>{var c,s;return((c=t.handList)==null?void 0:c.length)===((s=t.list)==null?void 0:s.length)}),x=e.computed(()=>{var a,h,y,A;const c=(a=t.handList)==null?void 0:a.length,s=(h=t.list)==null?void 0:h.length;return t.multiple?m.value=t.handList.map(i=>i[t.fixPropOpt.id]):V.value=(A=(y=t.handList)==null?void 0:y[0])==null?void 0:A[t.fixPropOpt.id],c>0&&c<s}),m=e.ref(t.handList.map(c=>c[t.fixPropOpt.id])),V=e.ref((r=(f=t.handList)==null?void 0:f[0])==null?void 0:r[t.fixPropOpt.id]),_=p,E=c=>{const s=c?t.list.map(a=>{if(t.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())&&a.available!==!1)return a[t.fixPropOpt.id]}):[];_("change",s,c?t.list:[])},w=c=>{_("change",c,t.list)},B=c=>{_("change",c,t.list)},N=(c,s)=>{s||_("handChild",c)};return(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",ft,[c.multiple&&c.list&&c.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=a=>o.value=a),indeterminate:x.value,onChange:E},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),c.list&&c.list.length?(e.openBlock(),e.createElementBlock("ul",ht,[c.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:m.value,"onUpdate:modelValue":s[1]||(s[1]=a=>m.value=a),onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.list,a=>{var h;return e.openBlock(),e.createElementBlock("li",{key:a[t.fixPropOpt.id]},[c.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())&&a.available!==!1?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:a[t.fixPropOpt.id],disabled:a.available===!1},{default:e.withCtx(()=>[e.createElementVNode("div",mt,[e.createElementVNode("div",ut,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",At,[e.createElementVNode("div",gt,e.toDisplayString(a[t.fixPropOpt.name]),1),a[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",yt," ("+e.toDisplayString(a.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(e.openBlock(),e.createElementBlock("div",kt,[xt,e.createElementVNode("div",_t,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Bt,[e.createElementVNode("div",Vt,e.toDisplayString(a[t.fixPropOpt.name]),1),a[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Ct," ("+e.toDisplayString(a.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),a[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(h=m.value)==null?void 0:h.find(y=>y===a[t.fixPropOpt.id])}]),onClick:y=>{var A;return N(a,(A=m.value)==null?void 0:A.find(i=>i===a[t.fixPropOpt.id]))}}," 下级",10,Ot)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:V.value,"onUpdate:modelValue":s[2]||(s[2]=a=>V.value=a),onChange:B},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.list,a=>{var h;return e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[t.fixPropOpt.id]},[c.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())&&a.available!==!1?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",wt,[e.createElementVNode("div",Et,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Nt,[e.createElementVNode("div",bt,e.toDisplayString(a[t.fixPropOpt.name]),1),a[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Lt," ("+e.toDisplayString((a==null?void 0:a.userCount)||0)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Pt,[St,e.createElementVNode("div",Tt,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Dt,[e.createElementVNode("div",Ut,e.toDisplayString(a[t.fixPropOpt.name]),1),a[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",It," ("+e.toDisplayString(a.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),a[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(h=m.value)==null?void 0:h.find(y=>y===a[t.fixPropOpt.id])}]),onClick:y=>{var A;return N(a,(A=m.value)==null?void 0:A.find(i=>i===a[t.fixPropOpt.id]))}}," 下级",10,Mt)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Rt,[$t,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),yo="",Ht=M(jt,[["__scopeId","data-v-8c34a55d"]]),oe=l=>(e.pushScopeId("data-v-e03f0d36"),l=l(),e.popScopeId(),l),Ft={class:"left-pick-list"},Wt={key:1,class:"post-view-list"},Gt={class:"iconBox"},zt={key:1,class:"checkText"},Yt=oe(()=>e.createElementVNode("div",{class:"side"},null,-1)),Kt={class:"iconBox"},Qt={class:"title"},Xt={class:"ik-picker-single"},qt={class:"iconBox"},Zt={key:1,class:"checkText"},Jt=oe(()=>e.createElementVNode("div",{class:"side"},null,-1)),vt={class:"iconBox"},el={class:"title"},tl={key:2,class:"empty"},ll=oe(()=>e.createElementVNode("img",{src:ee,alt:""},null,-1)),ol=e.defineComponent({__name:"PostList",props:te,emits:["change","check"],setup(l,{emit:p}){var N,f;const t=l,o=e.computed(()=>{var r,c;return((r=t.handList)==null?void 0:r.length)===((c=t.list)==null?void 0:c.length)}),x=e.computed(()=>{var s,a,h,y;const r=(s=t.handList)==null?void 0:s.length,c=(a=t.list)==null?void 0:a.length;return t.multiple?m.value=t.handList.map(A=>A[t.fixPropOpt.id]):V.value=(y=(h=t.handList)==null?void 0:h[0])==null?void 0:y[t.fixPropOpt.id],r>0&&r<c}),m=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),V=e.ref((f=(N=t.handList)==null?void 0:N[0])==null?void 0:f[t.fixPropOpt.id]),_=p,E=r=>{const c=r?t.list.map(s=>s[t.fixPropOpt.id]):[];_("change",c,r?t.list:[])},w=r=>{_("change",r,t.list)},B=r=>{_("change",r,t.list)};return(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Ft,[r.multiple&&r.chooseType.includes("post")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=s=>o.value=s),indeterminate:x.value,onChange:E},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",Wt,[r.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:m.value,"onUpdate:modelValue":c[1]||(c[1]=s=>m.value=s),onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,s=>(e.openBlock(),e.createElementBlock("li",{key:s[t.fixPropOpt.id]},[r.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:s[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Gt,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(s[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",zt,[Yt,e.createElementVNode("div",Kt,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Qt,e.toDisplayString(s[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:V.value,"onUpdate:modelValue":c[2]||(c[2]=s=>V.value=s),onChange:B},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,s=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:s[t.fixPropOpt.id]},[r.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:s[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Xt,[e.createElementVNode("div",qt,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(s[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Zt,[Jt,e.createElementVNode("div",vt,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",el,e.toDisplayString(s[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",tl,[ll,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),ko="",al=M(ol,[["__scopeId","data-v-e03f0d36"]]),ae=l=>(e.pushScopeId("data-v-be3b3e45"),l=l(),e.popScopeId(),l),nl={class:"left-pick-list"},rl={key:1,class:"role-view-list"},sl={class:"iconBox"},cl=["title"],il={key:1,class:"checkText"},dl=ae(()=>e.createElementVNode("div",{class:"side"},null,-1)),pl={class:"iconBox"},fl=["title"],hl={class:"ik-picker-single"},ml={class:"iconBox"},ul=["title"],Al={key:1,class:"checkText"},gl=ae(()=>e.createElementVNode("div",{class:"side"},null,-1)),yl={class:"iconBox"},kl=["title"],xl={key:2,class:"empty"},_l=ae(()=>e.createElementVNode("img",{src:ee,alt:""},null,-1)),Bl=e.defineComponent({__name:"RoleList",props:te,emits:["change","check"],setup(l,{emit:p}){var N,f;const t=l,o=e.computed(()=>{var r,c;return((r=t.handList)==null?void 0:r.length)===((c=t.list)==null?void 0:c.length)}),x=e.computed(()=>{var s,a,h,y;const r=(s=t.handList)==null?void 0:s.length,c=(a=t.list)==null?void 0:a.length;return t.multiple?m.value=t.handList.map(A=>A[t.fixPropOpt.id]):V.value=(y=(h=t.handList)==null?void 0:h[0])==null?void 0:y[t.fixPropOpt.id],r>0&&r<c}),m=e.ref(t.handList.map(r=>r[t.fixPropOpt.id])),V=e.ref((f=(N=t.handList)==null?void 0:N[0])==null?void 0:f[t.fixPropOpt.id]),_=p,E=r=>{const c=r?t.list.map(s=>s[t.fixPropOpt.id]):[];_("change",c,r?t.list:[])},w=r=>{_("change",r,t.list)},B=r=>{_("change",r,t.list)};return(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",nl,[r.multiple&&r.chooseType.includes("role")&&r.list&&r.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=s=>o.value=s),indeterminate:x.value,onChange:E},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),r.list&&r.list.length?(e.openBlock(),e.createElementBlock("ul",rl,[r.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:m.value,"onUpdate:modelValue":c[1]||(c[1]=s=>m.value=s),onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,s=>(e.openBlock(),e.createElementBlock("li",{key:s[r.fixPropOpt.id]},[r.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:s[r.fixPropOpt.id],value:s[r.fixPropOpt.id],disabled:s.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",sl,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:s[r.fixPropOpt.name]},e.toDisplayString(s[r.fixPropOpt.name]),9,cl)]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",il,[dl,e.createElementVNode("div",pl,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:s[r.fixPropOpt.name]},e.toDisplayString(s[r.fixPropOpt.name]),9,fl)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,indeterminate:x.value,modelValue:V.value,"onUpdate:modelValue":c[2]||(c[2]=s=>V.value=s),onChange:B},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,s=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:s[r.fixPropOpt.id]},[r.chooseType.includes(s[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:s[r.fixPropOpt.id],value:s[r.fixPropOpt.id],disabled:s.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",hl,[e.createElementVNode("div",ml,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:s[r.fixPropOpt.name]},e.toDisplayString(s[r.fixPropOpt.name]),9,ul)])]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",Al,[gl,e.createElementVNode("div",yl,[e.createVNode(T,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:s,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:s[r.fixPropOpt.name]},e.toDisplayString(s[r.fixPropOpt.name]),9,kl)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",xl,[_l,e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),xo="",Vl=M(Bl,[["__scopeId","data-v-be3b3e45"]]);var q=(l=>(l.group="group",l.role="role",l.post="post",l))(q||{});const Cl={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:l=>{if(l===void 0)return!0;if(Array.isArray(l)){if(!(l!=null&&l.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},fe=l=>{const p=window.location.search;return new URLSearchParams(p).get(l)},Ol=l=>{const p=S.ikStore.local.getItem("x_domain");p&&(l["X-DOMAIN"]=p)},wl=l=>{var t;const p=fe("domain");if(p){l["X-DOMAIN"]=p;const o=fe("code");p==="APPLICATION"&&(l["X-APP"]=o)}else Ol(l);(t=S.ikStore.local.getItem("tenant"))==null||t.code},El=(l,p)=>{const t=e.ref([]),o=async(m,V)=>{var R,L,I;const{url:_,methods:E,headers:w,param:B}=l.value||{},N={rootDepartmentId:((R=S.ikStore.local.getItem("now_shop"))==null?void 0:R.storeId)||"",parentDepartmentId:m||"",name:V||"",rootDepartmentOnly:p.rootDepartmentOnly,dataScopeOnly:p.dataScopeOnly,...B||{}},f={method:E,url:_,headers:{"Content-Type":"application/json;charset=UTF-8",...w},data:JSON.stringify(N)};wl(f.headers);const r=await ye(f),{success:c,data:s}=r.data;if(!c)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:a,roles:h,posts:y,users:A,rootOrganization:i,rootDepartment:O}=s,b=i||O;return t.value.length===0&&(t.value[0]=p.org?{...p.org,id:p.elementId,elementType:(I=(L=p.org)==null?void 0:L.elementType)==null?void 0:I.toLocaleUpperCase()}:{...b,id:b.elementId}),{groupList:S._.cloneDeep(a),roleList:S._.cloneDeep(h),postList:S._.cloneDeep(y),userList:S._.cloneDeep(A),rootOrganization:i,rootDepartment:O}};return{handData:o,handSetChild:(m,V)=>{o(m==null?void 0:m.elementId,V)},bannerList:t}},Nl={shadow:"hover",class:"sel-list"},bl={key:0},Ll=e.createElementVNode("div",{class:"split-div"},null,-1),Pl={class:"choose-list"},Sl={class:"choose-item"},Tl=e.createElementVNode("div",null,"已选",-1),Dl={class:"choose-box"},Ul={class:"list-group-item"},Il={class:"item_info"},Ml={class:"avatar_box"},Rl={class:"dialog-footer"},$l=e.defineComponent({__name:"picker",props:Cl,emits:["handChild","update:show","update:modelValue","ok","search"],setup(l,{expose:p,emit:t}){e.useCssVars(n=>({"775d0d08":Ae.value}));const o=l,x=e.ref(""),m=e.ref(""),V=e.ref([]),_=e.ref([]),E=e.ref([]),w=e.ref([]),B=e.ref(!1),N=e.computed(()=>I.value.includes("user")?_.value.concat(V.value):_.value);e.watch(()=>o.api,()=>{o.show&&R("")});const f=e.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...o.propOption})),r=e.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...o.typeOption})),c=e.ref([]),s=El(e.toRef(o,"api"),o),a=s.handData,h=s.bannerList;o.immediate&&a(m.value,x.value);const y=n=>(n.forEach(d=>{var g,k;d.disabled=((k=(g=o.modelValue)==null?void 0:g.find(C=>C[f.value.id]===d[f.value.id]))==null?void 0:k.disabled)||!1}),n),A=async()=>{var n,d,g,k,C,F,ce,ge;B.value=!0;try{if((n=o.groupList)!=null&&n.length||(d=o.userList)!=null&&d.length||(g=o.roleList)!=null&&g.length||(k=o.postList)!=null&&k.length){V.value=(C=o.userList)==null?void 0:C.filter(W=>W[f.value.name].includes(x.value)),_.value=(F=o.groupList)==null?void 0:F.filter(W=>W[f.value.name].includes(x.value)),E.value=(ce=o.roleList)==null?void 0:ce.filter(W=>W[f.value.name].includes(x.value)),w.value=(ge=o.postList)==null?void 0:ge.filter(W=>W[f.value.name].includes(x.value)),D(),B.value=!1;return}const U=await a(m.value,x.value);try{V.value=y((U==null?void 0:U.userList)||[]),_.value=y((U==null?void 0:U.groupList)||[]),E.value=y((U==null?void 0:U.roleList)||[]),w.value=y((U==null?void 0:U.postList)||[])}catch(W){B.value=!1,console.info("error: ",W)}D(),B.value=!1}catch{B.value=!1}},i=e.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),O=e.reactive({indeterminate:!1,checkAll:0}),b=n=>i.group.has(n)||i.user.has(n)||i.role.has(n)||i.post.has(n),R=S.ikEvent.debounce(A,300),L=e.computed(()=>{const n=Array.from(i.group.values()),d=Array.from(i.role.values()),g=Array.from(i.user.values()),k=Array.from(i.post.values());return c.value=[...d,...k,...g,...n],{list:[...d,...g,...k,...n],role:{list:d,len:d.length},user:{list:g,len:g.length},post:{list:k,len:k.length},groups:{list:n,len:n.length}}}),I=e.computed(()=>{const n=o.chooseType.map(g=>g.toLocaleLowerCase());let d=[...n];return n.includes("dep")&&(d=[...d,"dept"]),n.includes("dep_user")&&(d=[...d,"user"]),d}),$=e.ref([]),Z=n=>{$.value=n,$.value.forEach(d=>{d.readonly=d==null?void 0:d.disabled})},z=t,Y=e.ref(!1),D=(n=!1)=>{var g;const d=(g=o==null?void 0:o.userList)!=null&&g.length?S._.cloneDeep([...o==null?void 0:o.userList,...o==null?void 0:o.groupList]):[..._.value,...V.value];return!n&&Z(d),d};e.watch(()=>o.show,async n=>{var d;if(Y.value=n,n){m.value=((d=o.org)==null?void 0:d.elementId)||o.orgPid,!o.userList.length&&!o.groupList.length&&!o.roleList.length&&!o.postList.length?await A():(V.value=o.userList,_.value=o.groupList,E.value=o.roleList,w.value=o.postList),i.trans=[],O.checkAll=0,O.indeterminate=!1;const g=D(!0);for(const C of g)b(C[f.value.id])&&i.trans.push(C[f.value.id]);const k=g.length===i.trans.length;O.indeterminate=!!(g.length&&!k),O.checkAll=Number(g.length&&k),e.nextTick(()=>{var C;(C=o.modelValue)!=null&&C.length?o.modelValue.forEach(F=>{K(F),o.multiple?i.trans.push(F[f.value.id]):i.single=F[f.value.id]}):X()})}else X()}),e.watchEffect(()=>{let n;n=$.value.length;const d=i.trans.length;O.indeterminate=i.trans.length?d!==n:!1,O.checkAll=+(n!==0&&d===n)}),e.watch(()=>o.modelValue,n=>{n!=null&&n.length?n.forEach(d=>{K(d),o.multiple?i.trans.push(d[f.value.id]):i.single=d[f.value.id]}):X()});const H=n=>{var d;if(n){if(i.single="",n[f.value.id]){const g=(d=i.trans)==null?void 0:d.findIndex(k=>k===n[f.value.id]);g!==-1&&i.trans.splice(g,1)}switch(n[f.value.type]){case r.value.user:return i.user.delete(n[f.value.id]);case r.value.role:return i.role.delete(n[f.value.id]);case r.value.post:return i.post.delete(n[f.value.id]);case r.value.group:return i.group.delete(n[f.value.id]);default:return}}},J=n=>{H(n)},K=n=>{if(!b(n[f.value.id])){const d={...n};switch(n[f.value.type]){case r.value.user:return i.user.set(n[f.value.id],d);case r.value.role:return i.role.set(n[f.value.id],d);case r.value.post:return i.post.set(n[f.value.id],d);case r.value.group:return i.group.set(n[f.value.id],d);default:return}}},zl=n=>[r.value.group].includes(n[f.value.type])?n==null?void 0:n.hasOwnProperty("disabled"):!1;e.watch(()=>i.trans,n=>{if(!n.length)$.value.forEach(d=>{d.disabled=!1});else{const d=$.value.filter(k=>!n.includes(k[f.value.id]));for(const k of d)k.disabled=!1,o.multiple&&H(k);const g=$.value.filter(k=>n.includes(k[f.value.id]));for(const k of g)k.disabled=zl(k),K(k)}},{deep:!0}),e.watch(()=>i.single,n=>{var d;if(n){const g=(d=$.value)==null?void 0:d.find(k=>k[f.value.id]===n);g&&(i.user.clear(),i.role.clear(),i.post.clear(),i.group.clear(),i.trans=[],e.nextTick(()=>{K(g)}))}});const Yl=n=>{m.value=n==null?void 0:n.elementId,A(),h.value.push(n)},me=e.computed(()=>h.value.length),Kl=(n,d)=>{!d&&!o.topLink||d!==me.value-1&&(m.value=n==null?void 0:n.elementId,A(),h.value.splice(d+1))},Ql=e.computed(()=>o.chooseType.includes("role")&&o.chooseType.length===1),Xl=e.computed(()=>o.chooseType.includes("post")&&o.chooseType.length===1),v=e.ref(o.tabs[0]),Q=e.ref(o.tabs[0]);e.watchEffect(()=>(Q.value=Ql.value?o.tabs[1]:Xl.value?o.tabs[2]:v.value,Q.value));const X=()=>{i.user.clear(),i.role.clear(),i.post.clear(),i.group.clear(),i.trans=[],re.value=[],se.value=[],v.value=o.tabs[0],Q.value=o.tabs[0],x.value="",m.value=o.orgPid,h.value.splice(1,h.value.length),i.single="",c.value=[]},ql=()=>{var n;z("ok",S._.cloneDeep({...L.value,sort:c.value})),z("update:modelValue",S._.cloneDeep(((n=L.value)==null?void 0:n.list)||[])),z("update:show",!1),X()},ue=()=>{z("update:show",!1),X()};p({handClear:X,handRomeve:J,handDelete:H});const Zl=e.computed(()=>{const n=I.value;return!!((n.includes("post")||n.includes("role"))&&n.length>1)}),Jl=e.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(n=>o.tabs.includes(n.name))),Ae=e.computed(()=>`${typeof o.height=="string"?Number.parseInt(o.height):o.height}px`),ne=()=>{o.multiple||(i.post.clear(),i.role.clear(),i.user.clear(),i.group.clear(),i.single="")},vl=e.computed(()=>L.value.groups.list.concat(L.value.user.list)),eo=(n,d)=>{o.multiple||(i.single="");const g=o.multiple?n:[n];if(!g.length){i.group.clear(),i.user.clear();return}ne(),d.forEach(k=>{g!=null&&g.includes(k[f.value.id])?K(k):H(k)})},re=e.ref([]),to=(n,d)=>{o.multiple||(i.single="");const g=o.multiple?n:[n];if(!g.length){i.role.clear();return}ne(),d.forEach(k=>{g!=null&&g.includes(k[f.value.id])?K(k):H(k)})};e.watch(()=>L.value.role.len,n=>{re.value=S._.cloneDeep(L.value.role.list)});const se=e.ref([]),lo=(n,d)=>{o.multiple||(i.single="");const g=o.multiple?n:[n];if(!g.length){i.post.clear();return}ne(),d.forEach(k=>{g!=null&&g.includes(k[f.value.id])?K(k):H(k)})};return e.watch(()=>L.value.post.len,n=>{se.value=S._.cloneDeep(L.value.post.list)}),e.watch(()=>x.value,n=>{R("")}),(n,d)=>{const g=e.resolveComponent("el-tab-pane"),k=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(e.unref(u.ElDialog),{modelValue:Y.value,"onUpdate:modelValue":d[2]||(d[2]=C=>Y.value=C),title:n.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof n.width=="string"?n.width:`${n.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:ue},{footer:e.withCtx(()=>[e.createElementVNode("span",Rl,[e.createVNode(e.unref(u.ElButton),{onClick:e.withModifiers(ue,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(e.unref(u.ElButton),{type:"primary",onClick:e.withModifiers(ql,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"dep-use-picker",style:e.normalizeStyle({height:Ae.value})},[e.createElementVNode("div",Nl,[e.createElementVNode("div",null,[e.createVNode(e.unref(u.ElInput),{modelValue:x.value,"onUpdate:modelValue":d[0]||(d[0]=C=>x.value=C),clearable:"",placeholder:n.placeholder,"suffix-icon":He},null,8,["modelValue","placeholder"]),Zl.value?(e.openBlock(),e.createBlock(k,{key:0,modelValue:v.value,"onUpdate:modelValue":d[1]||(d[1]=C=>v.value=C),class:"ik-picker-tab"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Jl.value,C=>(e.openBlock(),e.createBlock(g,{label:C.label,name:C.name,key:C.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 过滤 "),Q.value===e.unref(q).group?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[me.value?(e.openBlock(),e.createElementBlock("div",bl,[e.createCommentVNode(" 面包屑 全选 "),e.createVNode(e.unref(u.ElBreadcrumb),{separator:">",class:e.normalizeClass(["banner",{"top-unlink":!n.topLink}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(C,F)=>(e.openBlock(),e.createBlock(e.unref(u.ElBreadcrumbItem),{key:C[f.value.id],onClick:e.withModifiers(ce=>Kl(C,F),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C[f.value.name]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["class"])])):e.createCommentVNode("v-if",!0)],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 左侧列表 "),e.createCommentVNode(" 组织架构 "),Q.value===e.unref(q).group?e.withDirectives((e.openBlock(),e.createBlock(Ht,{key:1,fixPropOpt:f.value,fixTypeOpt:r.value,list:N.value,max:n.max,multiple:n.multiple,"hand-list":vl.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,children:o.children,"choose-type":I.value,onHandChild:Yl,onChange:eo},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[e.unref(u.vLoading),B.value]]):Q.value===e.unref(q).role?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 角色 "),e.withDirectives(e.createVNode(Vl,{fixPropOpt:f.value,fixTypeOpt:r.value,list:E.value,max:n.max,multiple:n.multiple,"hand-list":re.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,"choose-type":I.value,onChange:to},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(u.vLoading),B.value]])],64)):Q.value===e.unref(q).post?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" 岗位 "),e.withDirectives(e.createVNode(al,{fixPropOpt:f.value,fixTypeOpt:r.value,list:w.value,max:n.max,multiple:n.multiple,"hand-list":se.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,"choose-type":I.value,onChange:lo},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(u.vLoading),B.value]])],64)):e.createCommentVNode("v-if",!0)]),Ll,e.createCommentVNode(" 已选列表 "),e.createElementVNode("div",Pl,[e.createElementVNode("div",Sl,[Tl,e.createVNode(e.unref(u.ElButton),{type:"primary",link:"",onClick:e.withModifiers(X,["stop"])},{default:e.withCtx(()=>[e.createTextVNode("清空")]),_:1})]),e.createElementVNode("ul",Dl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,C=>(e.openBlock(),e.createElementBlock("li",Ul,[e.createElementVNode("div",Il,[e.createCommentVNode(" icon前缀 "),e.createElementVNode("div",Ml,[e.createVNode(T,{fixTypeOpt:r.value,fixPropOpt:f.value,element:C,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("span",null,e.toDisplayString(C[f.value.name]),1)]),e.withDirectives(e.createVNode(Ye,{class:"close",onClick:e.withModifiers(F=>J(C),["stop"])},null,8,["onClick"]),[[e.vShow,!(C!=null&&C.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),_o="",jl=ie($l);function Hl(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!e.isVNode(l)}const Fl=e.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(l,{emit:p,expose:t}){const o=e.ref(l.list),{list:x}=l,m=()=>{p("handleChange",o)},V=({key:a,placeholder:h,maxlength:y,minlength:A,disabled:i})=>e.createVNode(u.ElInput,{modelValue:o.value[a],"onUpdate:modelValue":O=>o.value[a]=O,clearable:!0,maxlength:y,minlength:A,disabled:i,onChange:()=>m(),placeholder:h||"全部"},null),_=({key:a,placeholder:h,max:y,min:A,disabled:i,precision:O,step:b=1})=>e.createVNode(u.ElInputNumber,{modelValue:o.value[a],"onUpdate:modelValue":R=>o.value[a]=R,clearable:!0,max:y,min:A,disabled:i,precision:O,step:b,onChange:()=>m(),placeholder:h||"全部"},null),E=({key:a,placeholder:h,disabled:y,options:A,multiple:i=!1,filterable:O=!0})=>e.createVNode(u.ElSelect,{modelValue:o.value[a],"onUpdate:modelValue":b=>o.value[a]=b,clearable:!0,disabled:y,multiple:i,filterable:O,onChange:()=>m(),placeholder:h||"全部"},{default:()=>[A==null?void 0:A.map(b=>e.createVNode(u.ElOption,{key:b.value,label:b.label,value:b.value},null))]}),w=({key:a,disabled:h,options:y})=>e.createVNode(u.ElRadioGroup,{modelValue:o.value[a],"onUpdate:modelValue":A=>o.value[a]=A,disabled:h,onChange:()=>m()},{default:()=>[y==null?void 0:y.map(A=>e.createVNode(u.ElRadio,{key:A.value,label:A.label,value:A.value},null))]}),B=({key:a,disabled:h,options:y,min:A,max:i})=>e.createVNode(u.ElCheckboxGroup,{modelValue:o.value[a],"onUpdate:modelValue":O=>o.value[a]=O,disabled:h,max:i,min:A,onChange:()=>m()},{default:()=>[y==null?void 0:y.map(O=>e.createVNode(u.ElCheckbox,{key:O.value,label:O.label,value:O.value},null))]}),N=({key:a,disabled:h,editable:y=!0,startPlaceholder:A="开始日期",endplaceholder:i="结束日期",dateType:O=G.date,format:b,placeholder:R="请选择日期",popperclass:L,rangeSeparator:I="-",defaultValue:$,defaultTime:Z,valueFormat:z,disabledDate:Y=()=>!1})=>{let D=b;if(!D)switch(O){case G.date:case G.dates:D="YYYY-MM-DD";break;case G.year:D="YYYY";break;case G.month:D="YYYY-MM";break;case G.week:D="YYYY-MM-DD";break;default:D="YYYY-MM-DD"}return e.createVNode(u.ElDatePicker,{modelValue:o.value[a],"onUpdate:modelValue":H=>o.value[a]=H,onChange:()=>m(),placeholder:R,disabled:h,type:O,editable:y,startPlaceholder:A,endPlaceholder:i,rangeSeparator:I,format:D,popperClass:L,defaultValue:$,defaultTime:Z,valueFormat:z,disabledDate:Y},null)},f=({key:a,options:h,multiple:y=!1,filterable:A=!0,nodeKey:i="id",props:O,highlightCurrent:b=!0,defaultExpandAll:R=!1,expandOnClickNode:L=!1,placeholder:I="全部",checkOnClickNode:$=!1,showCheckbox:Z=!1,checkStrictly:z=!0,defaultCheckedKeys:Y=[],currentNodeKey:D="",accordion:H=!1})=>e.createVNode(u.ElTreeSelect,{modelValue:o.value[a],"onUpdate:modelValue":J=>o.value[a]=J,data:h,onChange:()=>m(),clearable:!0,multiple:y,props:O,placeholder:I,filterable:A,nodeKey:i,highlightCurrent:b,defaultExpandAll:R,expandOnClickNode:L,checkOnClickNode:$,showCheckbox:Z,checkStrictly:z,defaultCheckedKeys:Y,currentNodeKey:D,accordion:H},null),r=({key:a,placeholder:h,typeOption:y,_list:A,data:i,handSetChild:O})=>e.createVNode(jl,{typeOption:y,list:A,key:a,props:l,data:i,handSetChild:O,placeholder:h},null),c=a=>{switch(a.type){case"":case void 0:case j.input:return V(a);case j.number:return _(a);case j.select:return E(a);case j.checkbox:return B(a);case j.radio:return w(a);case j.date:return N(a);case j.treeselect:return f(a);case j.choosePerson:return r(a);default:return e.createVNode(e.Fragment,null,null)}},s=e.computed(()=>{const a=[];return x.forEach((h,y)=>{let A;if(!h)return[];a.push(e.createVNode(u.ElFormItem,{label:h.label,prop:h.key},Hl(A=c(h))?A:{default:()=>[A]}))}),a});return()=>e.createVNode(e.Fragment,null,[s.value])}}),Wl={class:"ik-pack"},Gl=e.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(l,{emit:p}){const t=l,o=p,x={},m={},V=e.ref([]),_=e.ref({...m}),E=e.ref(null),w=e.ref(!1);e.watch(V,(r,c)=>{const s=c.filter(a=>!r.includes(a));if(s.length){let a=!1;s.forEach(h=>{_.value[h]!==void 0&&(a=!0),_.value[h]=void 0}),a&&o("search",_.value)}}),t.list.forEach((r,c)=>{m[r.key]=m[r.value],c<t.num&&(x[r.key]=x[r.value],V.value.push(r.key))});const B=e.computed(()=>V.value.map(r=>t.list.find(c=>c.key===r)));e.computed(()=>{const{minSpan:r}=t;return B.value.length<4?r>8||r>6?r:6:r});const N=()=>{var r;try{(r=E.value)==null||r.resetFields(),o("refresh"),o("search",_.value)}catch{}},f=()=>{w.value=!w.value};return(r,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(De,{rowData:t.rowData,onDelete:c[0]||(c[0]=s=>o("delete",l.rowData)),onImport:c[1]||(c[1]=s=>o("import",l.rowData)),onExport:c[2]||(c[2]=s=>o("export",l.rowData))},null,8,["rowData"]),e.createVNode(e.unref(u.ElCard),{class:e.normalizeClass(["gl-search-card",w.value?"pack-up-search":"ik-unfold-search"]),shadow:l.shadow},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(u.ElForm),{ref_key:"_formRef",ref:E,inline:l.inline,model:_.value,"status-icon":l.statusIcon,"label-width":`${l.labelWidth}px`,class:"in-label",onKeydown:c[5]||(c[5]=e.withKeys(e.withModifiers(s=>o("search",_.value),["prevent"]),["enter"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(s,a)=>(e.openBlock(),e.createBlock(e.unref(u.ElCol),{key:a,class:e.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(s.col||1)*(a===B.value.length-1?2:1)}`,`el-col-md-${8*(s.col||1)*(a===B.value.length-1?2:1)}`,`el-col-lg-${6*(s.col||1)*(a===B.value.length-1?2:1)}`,`el-col-xl-${4*(s.col||1)*(a===B.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(s.col||1)*(a===B.value.length-1?2:1)}`,`el-col-sl-${5*(s.col||1)*(a===B.value.length-1?2:1)}`,`${a===B.value.length-1?"last-col":""}`].join(" "))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["last-with-btn",a===B.value.length-1?"last-form":""])},[s!=null&&s.slot?e.renderSlot(r.$slots,s==null?void 0:s.slot,{key:0},void 0,!0):e.createCommentVNode("v-if",!0),s!=null&&s.slot?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(Fl),{key:1,onHandleChange:c[3]||(c[3]=h=>o("search",_.value)),list:[l.list[a]]},null,8,["list"])),a+1===B.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.showSearch?(e.openBlock(),e.createBlock(e.unref(u.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:e.unref(Ne),onClick:c[4]||(c[4]=h=>o("search",_.value))},null,8,["icon"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(u.ElButton),{icon:e.unref(we),class:"icon-more el-icon ml",title:"重置",onClick:N},null,8,["icon"]),e.createCommentVNode(` <el-popover\r
1
+ (function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro","axios"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P.index={},P.vue,P["element-plus"],P["iking-utils-pro"],P.axios))})(this,function(P,e,u,T,ue){"use strict";const re=(o,p)=>{if(o.install=t=>{for(const l of[o,...Object.values(p??{})])t.component(l.name,l)},p)for(const[t,l]of Object.entries(p))o[t]=l;return o};/*! Element Plus Icons Vue v2.3.1 */var Ae=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),ge=Ae,ye=e.defineComponent({name:"Bottom",__name:"bottom",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),ke=ye,xe=e.defineComponent({name:"Delete",__name:"delete",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Be=xe,Ve=e.defineComponent({name:"Refresh",__name:"refresh",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Ce=Ve,Oe=e.defineComponent({name:"Search",__name:"search",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),we=Oe,Ee=e.defineComponent({name:"Top",__name:"top",setup(o){return(p,t)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),_e=Ee,H=(o=>(o.input="input",o.area="area",o.number="number",o.select="select",o.date="date",o.datetime="datetime",o.checkbox="checkbox",o.radio="radio",o.treeselect="treeselect",o.choosePerson="choosePerson",o))(H||{}),z=(o=>(o.year="year",o.month="month",o.date="date",o.dates="dates",o.datetime="datetime",o.week="week",o.datetimerange="datetimerange",o.daterange="daterange",o.monthrange="monthrange",o))(z||{}),se=(o=>(o.center="center",o.left="left",o.right="right",o))(se||{});const Ne={class:"ik-head-left"},be={class:"ik-head-right"},Le=e.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(o,{emit:p}){const t=p;return(l,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ik-head",o.rowData.length===0?"pack-up":"ik-unfold"])},[e.createElementVNode("div",Ne,e.toDisplayString(`已选${o.rowData.length}条数据`),1),e.createElementVNode("div",be,[e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"查询",icon:e.unref(Be),onClick:x[0]||(x[0]=h=>t("delete",o.rowData))},null,8,["icon"]),e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"导入",icon:e.unref(_e),onClick:x[1]||(x[1]=h=>t("import",o.rowData))},null,8,["icon"]),e.createVNode(e.unref(u.ElButton),{class:"ik-head-icon",title:"导出",icon:e.unref(ke),onClick:x[2]||(x[2]=h=>t("export",o.rowData))},null,8,["icon"])])],2))}}),Rl="",jl="",M=(o,p)=>{const t=o.__vccOpts||o;for(const[l,x]of p)t[l]=x;return t},Pe=M(Le,[["__scopeId","data-v-d79d14fc"]]),Te=(o,p)=>p?p.startsWith("http")?p:`${o||location.origin}${p}`:"",ce=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],Se=o=>{const p=e.inject("loadUrl"),t=e.computed(()=>o.loadUrl||o.fileUrl||(p==null?void 0:p.value)),l=e.inject("uploadUrl"),x=e.computed(()=>o.action||o.uploadUrl||(l==null?void 0:l.value)),h=e.inject("token"),C=e.computed(()=>o.token||(h==null?void 0:h.value)),B=e.inject("onlyofficeConfig"),_=e.computed(()=>o.onlyofficeConfig||(B==null?void 0:B.value)),E=e.inject("userInfo"),V=e.computed(()=>o.userInfo||(E==null?void 0:E.value)),N=[...ce,...ce.map(f=>f.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:x,cToken:C,cOnlyofficeConfig:_,cUserInfo:V,cOnlyofficePreviewType:N}},De={},Ue={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"};function Ie(o,p){return e.openBlock(),e.createElementBlock("svg",Ue,p[0]||(p[0]=[e.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),e.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)]))}const Me=M(De,[["render",Ie]]),Re={},je={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"};function He(o,p){return e.openBlock(),e.createElementBlock("svg",je,p[0]||(p[0]=[e.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-icon-deep-color)","p-id":"8421"},null,-1),e.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)]))}const Fe=M(Re,[["render",He]]),We={},Ge={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"};function ze(o,p){return e.openBlock(),e.createElementBlock("svg",Ge,p[0]||(p[0]=[e.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"7125"},null,-1),e.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)]))}const Ye=M(We,[["render",ze]]),Ke={},Qe={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"};function Xe(o,p){return e.openBlock(),e.createElementBlock("svg",Qe,p[0]||(p[0]=[e.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),e.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6991"},null,-1)]))}const qe=M(Ke,[["render",Xe]]),Ze={},$e={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"};function Je(o,p){return e.openBlock(),e.createElementBlock("svg",$e,p[0]||(p[0]=[e.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-icon-shallow-color-hover)","p-id":"6855"},null,-1),e.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)]))}const ve=M(Ze,[["render",Je]]),et={class:"avatar"},tt={key:3,class:"user_box"},lt={key:1,class:"avatar_name"},ot=e.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(o){const p=o,{cLoadUrl:t}=Se(p),l=x=>Te(t.value,x);return(x,h)=>{const C=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",et,[p.fixTypeOpt.group===o.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(ve,{key:0})):p.fixTypeOpt.role===o.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(Ye,{key:1})):p.fixTypeOpt.post===o.element[p.fixPropOpt.type]?(e.openBlock(),e.createBlock(qe,{key:2})):p.fixTypeOpt.user===o.element[p.fixPropOpt.type]?(e.openBlock(),e.createElementBlock("div",tt,[o.element[o.fixPropOpt.avatar]?(e.openBlock(),e.createBlock(C,{key:0,shape:"square",src:l(o.fixPropOpt.avatar?o.element[o.fixPropOpt.avatar]:"")},null,8,["src"])):(e.openBlock(),e.createElementBlock("div",lt,e.toDisplayString(o.element[o.fixPropOpt.name].slice(-2)),1))])):e.createCommentVNode("v-if",!0)])}}}),Fl="",S=M(ot,[["__scopeId","data-v-8031ce9b"]]),ee="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2C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[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]}},at={class:"left-pick-list"},nt={key:1,class:"post-view-list"},rt={class:"checkText"},st={class:"iconBox"},ct={class:"name_number"},it={class:"title"},dt={key:0,class:"userCount"},pt={key:1,class:"checkText"},ft={class:"iconBox"},mt={class:"name_number"},ht={class:"title"},ut={key:0,class:"userCount"},At=["onClick"],gt={class:"checkText"},yt={class:"iconBox"},kt={class:"name_number"},xt={class:"title"},Bt={key:0,class:"userCount"},Vt={key:1,class:"checkText"},Ct={class:"iconBox"},Ot={class:"name_number"},wt={class:"title"},Et={key:0,class:"userCount"},_t=["onClick"],Nt={key:2,class:"empty"},bt=e.defineComponent({__name:"GroupList",props:te,emits:["change","check","handChild"],setup(o,{emit:p}){var f,s;const t=o,l=e.computed(()=>{var c,a;return((c=t.handList)==null?void 0:c.length)===((a=t.list)==null?void 0:a.length)}),x=e.computed(()=>{var n,m,y,A;const c=(n=t.handList)==null?void 0:n.length,a=(m=t.list)==null?void 0:m.length;return t.multiple?h.value=t.handList.map(d=>d[t.fixPropOpt.id]):C.value=(A=(y=t.handList)==null?void 0:y[0])==null?void 0:A[t.fixPropOpt.id],c>0&&c<a}),h=e.ref(t.handList.map(c=>c[t.fixPropOpt.id])),C=e.ref((s=(f=t.handList)==null?void 0:f[0])==null?void 0:s[t.fixPropOpt.id]),B=p,_=c=>{const a=c?t.list.map(n=>{if(t.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1)return n[t.fixPropOpt.id]}):[];B("change",a,c?t.list:[])},E=c=>{B("change",c,t.list)},V=c=>{B("change",c,t.list)},N=(c,a)=>{a||B("handChild",c)};return(c,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",at,[c.multiple&&c.list&&c.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=n=>l.value=n),indeterminate:x.value,onChange:_},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),c.list&&c.list.length?(e.openBlock(),e.createElementBlock("ul",nt,[c.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:h.value,"onUpdate:modelValue":a[1]||(a[1]=n=>h.value=n),onChange:E},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.list,n=>{var m;return e.openBlock(),e.createElementBlock("li",{key:n[t.fixPropOpt.id]},[c.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:n[t.fixPropOpt.id],disabled:n.available===!1},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[e.createElementVNode("div",st,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",ct,[e.createElementVNode("div",it,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",dt," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label","disabled"])):(e.openBlock(),e.createElementBlock("div",pt,[a[4]||(a[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",ft,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",mt,[e.createElementVNode("div",ht,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",ut," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),n[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(m=h.value)==null?void 0:m.find(y=>y===n[t.fixPropOpt.id])}]),onClick:y=>{var A;return N(n,(A=h.value)==null?void 0:A.find(d=>d===n[t.fixPropOpt.id]))}}," 下级",10,At)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:C.value,"onUpdate:modelValue":a[2]||(a[2]=n=>C.value=n),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.list,n=>{var m;return e.openBlock(),e.createElementBlock("li",{class:"w-full",key:n[t.fixPropOpt.id]},[c.chooseType.includes(n[t.fixPropOpt.type].toLowerCase())&&n.available!==!1?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:n[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",gt,[e.createElementVNode("div",yt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",kt,[e.createElementVNode("div",xt,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Bt," ("+e.toDisplayString((n==null?void 0:n.userCount)||0)+") ",1)):e.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Vt,[a[5]||(a[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Ct,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:n,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ot,[e.createElementVNode("div",wt,e.toDisplayString(n[t.fixPropOpt.name]),1),n[t.fixPropOpt.type]===t.fixTypeOpt.group?(e.openBlock(),e.createElementBlock("div",Et," ("+e.toDisplayString(n.userCount)+") ",1)):e.createCommentVNode("v-if",!0)])])),n[t.fixPropOpt.type]===t.fixTypeOpt.group&&t.children?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(["nextLevel",{"is-disabled":(m=h.value)==null?void 0:m.find(y=>y===n[t.fixPropOpt.id])}]),onClick:y=>{var A;return N(n,(A=h.value)==null?void 0:A.find(d=>d===n[t.fixPropOpt.id]))}}," 下级",10,_t)):e.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Nt,[a[6]||(a[6]=e.createElementVNode("img",{src:ee,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),Wl="",Lt=M(bt,[["__scopeId","data-v-8c34a55d"]]),Pt={class:"left-pick-list"},Tt={key:1,class:"post-view-list"},St={class:"iconBox"},Dt={key:1,class:"checkText"},Ut={class:"iconBox"},It={class:"title"},Mt={class:"ik-picker-single"},Rt={class:"iconBox"},jt={key:1,class:"checkText"},Ht={class:"iconBox"},Ft={class:"title"},Wt={key:2,class:"empty"},Gt=e.defineComponent({__name:"PostList",props:te,emits:["change","check"],setup(o,{emit:p}){var N,f;const t=o,l=e.computed(()=>{var s,c;return((s=t.handList)==null?void 0:s.length)===((c=t.list)==null?void 0:c.length)}),x=e.computed(()=>{var a,n,m,y;const s=(a=t.handList)==null?void 0:a.length,c=(n=t.list)==null?void 0:n.length;return t.multiple?h.value=t.handList.map(A=>A[t.fixPropOpt.id]):C.value=(y=(m=t.handList)==null?void 0:m[0])==null?void 0:y[t.fixPropOpt.id],s>0&&s<c}),h=e.ref(t.handList.map(s=>s[t.fixPropOpt.id])),C=e.ref((f=(N=t.handList)==null?void 0:N[0])==null?void 0:f[t.fixPropOpt.id]),B=p,_=s=>{const c=s?t.list.map(a=>a[t.fixPropOpt.id]):[];B("change",c,s?t.list:[])},E=s=>{B("change",s,t.list)},V=s=>{B("change",s,t.list)};return(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Pt,[s.multiple&&s.chooseType.includes("post")&&s.list&&s.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=a=>l.value=a),indeterminate:x.value,onChange:_},{default:e.withCtx(()=>c[3]||(c[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),s.list&&s.list.length?(e.openBlock(),e.createElementBlock("ul",Tt,[s.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:h.value,"onUpdate:modelValue":c[1]||(c[1]=a=>h.value=a),onChange:E},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[t.fixPropOpt.id]},[s.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",St,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",Dt,[c[4]||(c[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Ut,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",It,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,isIndeterminate:x.value,modelValue:C.value,"onUpdate:modelValue":c[2]||(c[2]=a=>C.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[t.fixPropOpt.id]},[s.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:a[t.fixPropOpt.id]},{default:e.withCtx(()=>[e.createElementVNode("div",Mt,[e.createElementVNode("div",Rt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",null,e.toDisplayString(a[t.fixPropOpt.name]),1)])]),_:2},1032,["label"])):(e.openBlock(),e.createElementBlock("div",jt,[c[5]||(c[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Ht,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",Ft,e.toDisplayString(a[t.fixPropOpt.name]),1)]))]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",Wt,[c[6]||(c[6]=e.createElementVNode("img",{src:ee,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),Gl="",zt=M(Gt,[["__scopeId","data-v-e03f0d36"]]),Yt={class:"left-pick-list"},Kt={key:1,class:"role-view-list"},Qt={class:"iconBox"},Xt=["title"],qt={key:1,class:"checkText"},Zt={class:"iconBox"},$t=["title"],Jt={class:"ik-picker-single"},vt={class:"iconBox"},el=["title"],tl={key:1,class:"checkText"},ll={class:"iconBox"},ol=["title"],al={key:2,class:"empty"},nl=e.defineComponent({__name:"RoleList",props:te,emits:["change","check"],setup(o,{emit:p}){var N,f;const t=o,l=e.computed(()=>{var s,c;return((s=t.handList)==null?void 0:s.length)===((c=t.list)==null?void 0:c.length)}),x=e.computed(()=>{var a,n,m,y;const s=(a=t.handList)==null?void 0:a.length,c=(n=t.list)==null?void 0:n.length;return t.multiple?h.value=t.handList.map(A=>A[t.fixPropOpt.id]):C.value=(y=(m=t.handList)==null?void 0:m[0])==null?void 0:y[t.fixPropOpt.id],s>0&&s<c}),h=e.ref(t.handList.map(s=>s[t.fixPropOpt.id])),C=e.ref((f=(N=t.handList)==null?void 0:N[0])==null?void 0:f[t.fixPropOpt.id]),B=p,_=s=>{const c=s?t.list.map(a=>a[t.fixPropOpt.id]):[];B("change",c,s?t.list:[])},E=s=>{B("change",s,t.list)},V=s=>{B("change",s,t.list)};return(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" 遍历list多选 "),e.createElementVNode("div",Yt,[s.multiple&&s.chooseType.includes("role")&&s.list&&s.list.length?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=a=>l.value=a),indeterminate:x.value,onChange:_},{default:e.withCtx(()=>c[3]||(c[3]=[e.createTextVNode("全选")])),_:1},8,["modelValue","indeterminate"])):e.createCommentVNode("v-if",!0),s.list&&s.list.length?(e.openBlock(),e.createElementBlock("ul",Kt,[s.multiple?(e.openBlock(),e.createBlock(e.unref(u.ElCheckboxGroup),{key:0,modelValue:h.value,"onUpdate:modelValue":c[1]||(c[1]=a=>h.value=a),onChange:E},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,a=>(e.openBlock(),e.createElementBlock("li",{key:a[s.fixPropOpt.id]},[s.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElCheckbox),{key:0,label:a[s.fixPropOpt.id],value:a[s.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Qt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[s.fixPropOpt.name]},e.toDisplayString(a[s.fixPropOpt.name]),9,Xt)]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",qt,[c[4]||(c[4]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",Zt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[s.fixPropOpt.name]},e.toDisplayString(a[s.fixPropOpt.name]),9,$t)]))]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(u.ElRadioGroup),{key:1,indeterminate:x.value,modelValue:C.value,"onUpdate:modelValue":c[2]||(c[2]=a=>C.value=a),onChange:V},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,a=>(e.openBlock(),e.createElementBlock("li",{class:"w-full",key:a[s.fixPropOpt.id]},[s.chooseType.includes(a[t.fixPropOpt.type].toLowerCase())?(e.openBlock(),e.createBlock(e.unref(u.ElRadio),{key:0,label:a[s.fixPropOpt.id],value:a[s.fixPropOpt.id],disabled:a.disabled},{default:e.withCtx(()=>[e.createElementVNode("div",Jt,[e.createElementVNode("div",vt,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("p",{title:a[s.fixPropOpt.name]},e.toDisplayString(a[s.fixPropOpt.name]),9,el)])]),_:2},1032,["label","value","disabled"])):(e.openBlock(),e.createElementBlock("div",tl,[c[5]||(c[5]=e.createElementVNode("div",{class:"side"},null,-1)),e.createElementVNode("div",ll,[e.createVNode(S,{fixTypeOpt:t.fixTypeOpt,fixPropOpt:t.fixPropOpt,element:a,imageBaseUrl:t.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("div",{class:"title",title:a[s.fixPropOpt.name]},e.toDisplayString(a[s.fixPropOpt.name]),9,ol)]))]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(e.openBlock(),e.createElementBlock("div",al,[c[6]||(c[6]=e.createElementVNode("img",{src:ee,alt:""},null,-1)),e.createElementVNode("div",null,e.toDisplayString(t.emptyText),1)]))])],2112))}}),zl="",rl=M(nl,[["__scopeId","data-v-be3b3e45"]]);var Z=(o=>(o.group="group",o.role="role",o.post="post",o))(Z||{});const sl={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:o=>{if(o===void 0)return!0;if(Array.isArray(o)){if(!(o!=null&&o.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"},dataScopeOnly:{type:Boolean,default:!1},rootDepartmentOnly:{type:Boolean,default:!1}},ie=o=>{const p=window.location.search;return new URLSearchParams(p).get(o)},cl=o=>{const p=T.ikStore.local.getItem("x_domain");p&&(o["X-DOMAIN"]=p)},il=o=>{var t;const p=ie("domain");if(p){o["X-DOMAIN"]=p;const l=ie("code");p==="APPLICATION"&&(o["X-APP"]=l)}else cl(o);(t=T.ikStore.local.getItem("tenant"))==null||t.code},dl=(o,p)=>{const t=e.ref([]),l=async(h,C)=>{var R,L,I;const{url:B,methods:_,headers:E,param:V}=o.value||{},N={rootDepartmentId:((R=T.ikStore.local.getItem("now_shop"))==null?void 0:R.storeId)||"",parentDepartmentId:h||"",name:C||"",rootDepartmentOnly:p.rootDepartmentOnly,dataScopeOnly:p.dataScopeOnly,...V||{}},f={method:_,url:B,headers:{"Content-Type":"application/json;charset=UTF-8",...E},data:JSON.stringify(N)};il(f.headers);const s=await ue(f),{success:c,data:a}=s.data;if(!c)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:n,roles:m,posts:y,users:A,rootOrganization:d,rootDepartment:w}=a,b=d||w;return t.value.length===0&&(t.value[0]=p.org?{...p.org,id:p.elementId,elementType:(I=(L=p.org)==null?void 0:L.elementType)==null?void 0:I.toLocaleUpperCase()}:{...b,id:b.elementId}),{groupList:T._.cloneDeep(n),roleList:T._.cloneDeep(m),postList:T._.cloneDeep(y),userList:T._.cloneDeep(A),rootOrganization:d,rootDepartment:w}};return{handData:l,handSetChild:(h,C)=>{l(h==null?void 0:h.elementId,C)},bannerList:t}},pl={shadow:"hover",class:"sel-list"},fl={key:0},ml={class:"choose-list"},hl={class:"choose-item"},ul={class:"choose-box"},Al={class:"list-group-item"},gl={class:"item_info"},yl={class:"avatar_box"},kl={class:"dialog-footer"},xl=e.defineComponent({__name:"picker",props:sl,emits:["handChild","update:show","update:modelValue","ok","search"],setup(o,{expose:p,emit:t}){e.useCssVars(r=>({"775d0d08":me.value}));const l=o,x=e.ref(""),h=e.ref(""),C=e.ref([]),B=e.ref([]),_=e.ref([]),E=e.ref([]),V=e.ref(!1),N=e.computed(()=>I.value.includes("user")?B.value.concat(C.value):B.value);e.watch(()=>l.api,()=>{l.show&&R("")});const f=e.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),s=e.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...l.typeOption})),c=e.ref([]),a=dl(e.toRef(l,"api"),l),n=a.handData,m=a.bannerList;l.immediate&&n(h.value,x.value);const y=r=>(r.forEach(i=>{var g,k;i.disabled=((k=(g=l.modelValue)==null?void 0:g.find(O=>O[f.value.id]===i[f.value.id]))==null?void 0:k.disabled)||!1}),r),A=async()=>{var r,i,g,k,O,W,ne,he;V.value=!0;try{if((r=l.groupList)!=null&&r.length||(i=l.userList)!=null&&i.length||(g=l.roleList)!=null&&g.length||(k=l.postList)!=null&&k.length){C.value=(O=l.userList)==null?void 0:O.filter(G=>G[f.value.name].includes(x.value)),B.value=(W=l.groupList)==null?void 0:W.filter(G=>G[f.value.name].includes(x.value)),_.value=(ne=l.roleList)==null?void 0:ne.filter(G=>G[f.value.name].includes(x.value)),E.value=(he=l.postList)==null?void 0:he.filter(G=>G[f.value.name].includes(x.value)),D(),V.value=!1;return}const U=await n(h.value,x.value);try{C.value=y((U==null?void 0:U.userList)||[]),B.value=y((U==null?void 0:U.groupList)||[]),_.value=y((U==null?void 0:U.roleList)||[]),E.value=y((U==null?void 0:U.postList)||[])}catch(G){V.value=!1,console.info("error: ",G)}D(),V.value=!1}catch{V.value=!1}},d=e.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),w=e.reactive({indeterminate:!1,checkAll:0}),b=r=>d.group.has(r)||d.user.has(r)||d.role.has(r)||d.post.has(r),R=T.ikEvent.debounce(A,300),L=e.computed(()=>{const r=Array.from(d.group.values()),i=Array.from(d.role.values()),g=Array.from(d.user.values()),k=Array.from(d.post.values());return c.value=[...i,...k,...g,...r],{list:[...i,...g,...k,...r],role:{list:i,len:i.length},user:{list:g,len:g.length},post:{list:k,len:k.length},groups:{list:r,len:r.length}}}),I=e.computed(()=>{const r=l.chooseType.map(g=>g.toLocaleLowerCase());let i=[...r];return r.includes("dep")&&(i=[...i,"dept"]),r.includes("dep_user")&&(i=[...i,"user"]),i}),j=e.ref([]),$=r=>{j.value=r,j.value.forEach(i=>{i.readonly=i==null?void 0:i.disabled})},Y=t,K=e.ref(!1),D=(r=!1)=>{var g;const i=(g=l==null?void 0:l.userList)!=null&&g.length?T._.cloneDeep([...l==null?void 0:l.userList,...l==null?void 0:l.groupList]):[...B.value,...C.value];return!r&&$(i),i};e.watch(()=>l.show,async r=>{var i;if(K.value=r,r){h.value=((i=l.org)==null?void 0:i.elementId)||l.orgPid,!l.userList.length&&!l.groupList.length&&!l.roleList.length&&!l.postList.length?await A():(C.value=l.userList,B.value=l.groupList,_.value=l.roleList,E.value=l.postList),d.trans=[],w.checkAll=0,w.indeterminate=!1;const g=D(!0);for(const O of g)b(O[f.value.id])&&d.trans.push(O[f.value.id]);const k=g.length===d.trans.length;w.indeterminate=!!(g.length&&!k),w.checkAll=Number(g.length&&k),e.nextTick(()=>{var O;(O=l.modelValue)!=null&&O.length?l.modelValue.forEach(W=>{Q(W),l.multiple?d.trans.push(W[f.value.id]):d.single=W[f.value.id]}):q()})}else q()}),e.watchEffect(()=>{let r;r=j.value.length;const i=d.trans.length;w.indeterminate=d.trans.length?i!==r:!1,w.checkAll=+(r!==0&&i===r)}),e.watch(()=>l.modelValue,r=>{r!=null&&r.length?r.forEach(i=>{Q(i),l.multiple?d.trans.push(i[f.value.id]):d.single=i[f.value.id]}):q()});const F=r=>{var i;if(r){if(d.single="",r[f.value.id]){const g=(i=d.trans)==null?void 0:i.findIndex(k=>k===r[f.value.id]);g!==-1&&d.trans.splice(g,1)}switch(r[f.value.type]){case s.value.user:return d.user.delete(r[f.value.id]);case s.value.role:return d.role.delete(r[f.value.id]);case s.value.post:return d.post.delete(r[f.value.id]);case s.value.group:return d.group.delete(r[f.value.id]);default:return}}},J=r=>{F(r)},Q=r=>{if(!b(r[f.value.id])){const i={...r};switch(r[f.value.type]){case s.value.user:return d.user.set(r[f.value.id],i);case s.value.role:return d.role.set(r[f.value.id],i);case s.value.post:return d.post.set(r[f.value.id],i);case s.value.group:return d.group.set(r[f.value.id],i);default:return}}},El=r=>[s.value.group].includes(r[f.value.type])?r==null?void 0:r.hasOwnProperty("disabled"):!1;e.watch(()=>d.trans,r=>{if(!r.length)j.value.forEach(i=>{i.disabled=!1});else{const i=j.value.filter(k=>!r.includes(k[f.value.id]));for(const k of i)k.disabled=!1,l.multiple&&F(k);const g=j.value.filter(k=>r.includes(k[f.value.id]));for(const k of g)k.disabled=El(k),Q(k)}},{deep:!0}),e.watch(()=>d.single,r=>{var i;if(r){const g=(i=j.value)==null?void 0:i.find(k=>k[f.value.id]===r);g&&(d.user.clear(),d.role.clear(),d.post.clear(),d.group.clear(),d.trans=[],e.nextTick(()=>{Q(g)}))}});const _l=r=>{h.value=r==null?void 0:r.elementId,A(),m.value.push(r)},pe=e.computed(()=>m.value.length),Nl=(r,i)=>{!i&&!l.topLink||i!==pe.value-1&&(h.value=r==null?void 0:r.elementId,A(),m.value.splice(i+1))},bl=e.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),Ll=e.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),v=e.ref(l.tabs[0]),X=e.ref(l.tabs[0]);e.watchEffect(()=>(X.value=bl.value?l.tabs[1]:Ll.value?l.tabs[2]:v.value,X.value));const q=()=>{d.user.clear(),d.role.clear(),d.post.clear(),d.group.clear(),d.trans=[],oe.value=[],ae.value=[],v.value=l.tabs[0],X.value=l.tabs[0],x.value="",h.value=l.orgPid,m.value.splice(1,m.value.length),d.single="",c.value=[]},Pl=()=>{var r;Y("ok",T._.cloneDeep({...L.value,sort:c.value})),Y("update:modelValue",T._.cloneDeep(((r=L.value)==null?void 0:r.list)||[])),Y("update:show",!1),q()},fe=()=>{Y("update:show",!1),q()};p({handClear:q,handRomeve:J,handDelete:F});const Tl=e.computed(()=>{const r=I.value;return!!((r.includes("post")||r.includes("role"))&&r.length>1)}),Sl=e.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(r=>l.tabs.includes(r.name))),me=e.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),le=()=>{l.multiple||(d.post.clear(),d.role.clear(),d.user.clear(),d.group.clear(),d.single="")},Dl=e.computed(()=>L.value.groups.list.concat(L.value.user.list)),Ul=(r,i)=>{l.multiple||(d.single="");const g=l.multiple?r:[r];if(!g.length){d.group.clear(),d.user.clear();return}le(),i.forEach(k=>{g!=null&&g.includes(k[f.value.id])?Q(k):F(k)})},oe=e.ref([]),Il=(r,i)=>{l.multiple||(d.single="");const g=l.multiple?r:[r];if(!g.length){d.role.clear();return}le(),i.forEach(k=>{g!=null&&g.includes(k[f.value.id])?Q(k):F(k)})};e.watch(()=>L.value.role.len,r=>{oe.value=T._.cloneDeep(L.value.role.list)});const ae=e.ref([]),Ml=(r,i)=>{l.multiple||(d.single="");const g=l.multiple?r:[r];if(!g.length){d.post.clear();return}le(),i.forEach(k=>{g!=null&&g.includes(k[f.value.id])?Q(k):F(k)})};return e.watch(()=>L.value.post.len,r=>{ae.value=T._.cloneDeep(L.value.post.list)}),e.watch(()=>x.value,r=>{R("")}),(r,i)=>{const g=e.resolveComponent("el-tab-pane"),k=e.resolveComponent("el-tabs");return e.openBlock(),e.createBlock(e.unref(u.ElDialog),{modelValue:K.value,"onUpdate:modelValue":i[2]||(i[2]=O=>K.value=O),title:r.title,"destroy-on-close":"","append-to-body":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof r.width=="string"?r.width:`${r.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:fe},{footer:e.withCtx(()=>[e.createElementVNode("span",kl,[e.createVNode(e.unref(u.ElButton),{onClick:e.withModifiers(fe,["stop"])},{default:e.withCtx(()=>i[6]||(i[6]=[e.createTextVNode("取消")])),_:1}),e.createVNode(e.unref(u.ElButton),{type:"primary",onClick:e.withModifiers(Pl,["stop"])},{default:e.withCtx(()=>i[7]||(i[7]=[e.createTextVNode(" 确定 ")])),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"dep-use-picker",style:e.normalizeStyle({height:me.value})},[e.createElementVNode("div",pl,[e.createElementVNode("div",null,[e.createVNode(e.unref(u.ElInput),{modelValue:x.value,"onUpdate:modelValue":i[0]||(i[0]=O=>x.value=O),clearable:"",placeholder:r.placeholder,"suffix-icon":Me},null,8,["modelValue","placeholder"]),Tl.value?(e.openBlock(),e.createBlock(k,{key:0,modelValue:v.value,"onUpdate:modelValue":i[1]||(i[1]=O=>v.value=O),class:"ik-picker-tab"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Sl.value,O=>(e.openBlock(),e.createBlock(g,{label:O.label,name:O.name,key:O.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 过滤 "),X.value===e.unref(Z).group?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[pe.value?(e.openBlock(),e.createElementBlock("div",fl,[e.createCommentVNode(" 面包屑 全选 "),e.createVNode(e.unref(u.ElBreadcrumb),{separator:">",class:e.normalizeClass(["banner",{"top-unlink":!r.topLink}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(O,W)=>(e.openBlock(),e.createBlock(e.unref(u.ElBreadcrumbItem),{key:O[f.value.id],onClick:e.withModifiers(ne=>Nl(O,W),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O[f.value.name]),1)]),_:2},1032,["onClick"]))),128))]),_:1},8,["class"])])):e.createCommentVNode("v-if",!0)],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 左侧列表 "),e.createCommentVNode(" 组织架构 "),X.value===e.unref(Z).group?e.withDirectives((e.openBlock(),e.createBlock(Lt,{key:1,fixPropOpt:f.value,fixTypeOpt:s.value,list:N.value,max:r.max,multiple:r.multiple,"hand-list":Dl.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,children:l.children,"choose-type":I.value,onHandChild:_l,onChange:Ul},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children","choose-type"])),[[e.unref(u.vLoading),V.value]]):X.value===e.unref(Z).role?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" 角色 "),e.withDirectives(e.createVNode(rl,{fixPropOpt:f.value,fixTypeOpt:s.value,list:_.value,max:r.max,multiple:r.multiple,"hand-list":oe.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":I.value,onChange:Il},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(u.vLoading),V.value]])],64)):X.value===e.unref(Z).post?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" 岗位 "),e.withDirectives(e.createVNode(zt,{fixPropOpt:f.value,fixTypeOpt:s.value,list:E.value,max:r.max,multiple:r.multiple,"hand-list":ae.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,"choose-type":I.value,onChange:Ml},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","choose-type"]),[[e.unref(u.vLoading),V.value]])],64)):e.createCommentVNode("v-if",!0)]),i[5]||(i[5]=e.createElementVNode("div",{class:"split-div"},null,-1)),e.createCommentVNode(" 已选列表 "),e.createElementVNode("div",ml,[e.createElementVNode("div",hl,[i[4]||(i[4]=e.createElementVNode("div",null,"已选",-1)),e.createVNode(e.unref(u.ElButton),{type:"primary",link:"",onClick:e.withModifiers(q,["stop"])},{default:e.withCtx(()=>i[3]||(i[3]=[e.createTextVNode("清空")])),_:1})]),e.createElementVNode("ul",ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,O=>(e.openBlock(),e.createElementBlock("li",Al,[e.createElementVNode("div",gl,[e.createCommentVNode(" icon前缀 "),e.createElementVNode("div",yl,[e.createVNode(S,{fixTypeOpt:s.value,fixPropOpt:f.value,element:O,imageBaseUrl:l.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),e.createElementVNode("span",null,e.toDisplayString(O[f.value.name]),1)]),e.withDirectives(e.createVNode(Fe,{class:"close",onClick:e.withModifiers(W=>J(O),["stop"])},null,8,["onClick"]),[[e.vShow,!(O!=null&&O.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),Yl="",Bl=re(xl);function Vl(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!e.isVNode(o)}const Cl=e.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(o,{emit:p,expose:t}){const l=e.ref(o.list),{list:x}=o,h=()=>{p("handleChange",l)},C=({key:n,placeholder:m,maxlength:y,minlength:A,disabled:d})=>e.createVNode(u.ElInput,{modelValue:l.value[n],"onUpdate:modelValue":w=>l.value[n]=w,clearable:!0,maxlength:y,minlength:A,disabled:d,onChange:()=>h(),placeholder:m||"全部"},null),B=({key:n,placeholder:m,max:y,min:A,disabled:d,precision:w,step:b=1})=>e.createVNode(u.ElInputNumber,{modelValue:l.value[n],"onUpdate:modelValue":R=>l.value[n]=R,clearable:!0,max:y,min:A,disabled:d,precision:w,step:b,onChange:()=>h(),placeholder:m||"全部"},null),_=({key:n,placeholder:m,disabled:y,options:A,multiple:d=!1,filterable:w=!0})=>e.createVNode(u.ElSelect,{modelValue:l.value[n],"onUpdate:modelValue":b=>l.value[n]=b,clearable:!0,disabled:y,multiple:d,filterable:w,onChange:()=>h(),placeholder:m||"全部"},{default:()=>[A==null?void 0:A.map(b=>e.createVNode(u.ElOption,{key:b.value,label:b.label,value:b.value},null))]}),E=({key:n,disabled:m,options:y})=>e.createVNode(u.ElRadioGroup,{modelValue:l.value[n],"onUpdate:modelValue":A=>l.value[n]=A,disabled:m,onChange:()=>h()},{default:()=>[y==null?void 0:y.map(A=>e.createVNode(u.ElRadio,{key:A.value,label:A.label,value:A.value},null))]}),V=({key:n,disabled:m,options:y,min:A,max:d})=>e.createVNode(u.ElCheckboxGroup,{modelValue:l.value[n],"onUpdate:modelValue":w=>l.value[n]=w,disabled:m,max:d,min:A,onChange:()=>h()},{default:()=>[y==null?void 0:y.map(w=>e.createVNode(u.ElCheckbox,{key:w.value,label:w.label,value:w.value},null))]}),N=({key:n,disabled:m,editable:y=!0,startPlaceholder:A="开始日期",endplaceholder:d="结束日期",dateType:w=z.date,format:b,placeholder:R="请选择日期",popperclass:L,rangeSeparator:I="-",defaultValue:j,defaultTime:$,valueFormat:Y,disabledDate:K=()=>!1})=>{let D=b;if(!D)switch(w){case z.date:case z.dates:D="YYYY-MM-DD";break;case z.year:D="YYYY";break;case z.month:D="YYYY-MM";break;case z.week:D="YYYY-MM-DD";break;default:D="YYYY-MM-DD"}return e.createVNode(u.ElDatePicker,{modelValue:l.value[n],"onUpdate:modelValue":F=>l.value[n]=F,onChange:()=>h(),placeholder:R,disabled:m,type:w,editable:y,startPlaceholder:A,endPlaceholder:d,rangeSeparator:I,format:D,popperClass:L,defaultValue:j,defaultTime:$,valueFormat:Y,disabledDate:K},null)},f=({key:n,options:m,multiple:y=!1,filterable:A=!0,nodeKey:d="id",props:w,highlightCurrent:b=!0,defaultExpandAll:R=!1,expandOnClickNode:L=!1,placeholder:I="全部",checkOnClickNode:j=!1,showCheckbox:$=!1,checkStrictly:Y=!0,defaultCheckedKeys:K=[],currentNodeKey:D="",accordion:F=!1})=>e.createVNode(u.ElTreeSelect,{modelValue:l.value[n],"onUpdate:modelValue":J=>l.value[n]=J,data:m,onChange:()=>h(),clearable:!0,multiple:y,props:w,placeholder:I,filterable:A,nodeKey:d,highlightCurrent:b,defaultExpandAll:R,expandOnClickNode:L,checkOnClickNode:j,showCheckbox:$,checkStrictly:Y,defaultCheckedKeys:K,currentNodeKey:D,accordion:F},null),s=({key:n,placeholder:m,typeOption:y,_list:A,data:d,handSetChild:w})=>e.createVNode(Bl,{typeOption:y,list:A,key:n,props:o,data:d,handSetChild:w,placeholder:m},null),c=n=>{switch(n.type){case"":case void 0:case H.input:return C(n);case H.number:return B(n);case H.select:return _(n);case H.checkbox:return V(n);case H.radio:return E(n);case H.date:return N(n);case H.treeselect:return f(n);case H.choosePerson:return s(n);default:return e.createVNode(e.Fragment,null,null)}},a=e.computed(()=>{const n=[];return x.forEach((m,y)=>{let A;if(!m)return[];n.push(e.createVNode(u.ElFormItem,{label:m.label,prop:m.key},Vl(A=c(m))?A:{default:()=>[A]}))}),n});return()=>e.createVNode(e.Fragment,null,[a.value])}}),Ol={class:"ik-pack"},wl=e.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(o,{emit:p}){const t=o,l=p,x={},h={},C=e.ref([]),B=e.ref({...h}),_=e.ref(null),E=e.ref(!1);e.watch(C,(s,c)=>{const a=c.filter(n=>!s.includes(n));if(a.length){let n=!1;a.forEach(m=>{B.value[m]!==void 0&&(n=!0),B.value[m]=void 0}),n&&l("search",B.value)}}),t.list.forEach((s,c)=>{h[s.key]=h[s.value],c<t.num&&(x[s.key]=x[s.value],C.value.push(s.key))});const V=e.computed(()=>C.value.map(s=>t.list.find(c=>c.key===s)));e.computed(()=>{const{minSpan:s}=t;return V.value.length<4?s>8||s>6?s:6:s});const N=()=>{var s;try{(s=_.value)==null||s.resetFields(),l("refresh"),l("search",B.value)}catch{}},f=()=>{E.value=!E.value};return(s,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(Pe,{rowData:t.rowData,onDelete:c[0]||(c[0]=a=>l("delete",o.rowData)),onImport:c[1]||(c[1]=a=>l("import",o.rowData)),onExport:c[2]||(c[2]=a=>l("export",o.rowData))},null,8,["rowData"]),e.createVNode(e.unref(u.ElCard),{class:e.normalizeClass(["gl-search-card",E.value?"pack-up-search":"ik-unfold-search"]),shadow:o.shadow},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(u.ElForm),{ref_key:"_formRef",ref:_,inline:o.inline,model:B.value,"status-icon":o.statusIcon,"label-width":`${o.labelWidth}px`,class:"in-label",onKeydown:c[5]||(c[5]=e.withKeys(e.withModifiers(a=>l("search",B.value),["prevent"]),["enter"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(u.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(a,n)=>(e.openBlock(),e.createBlock(e.unref(u.ElCol),{key:n,class:e.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(a.col||1)*(n===V.value.length-1?2:1)}`,`el-col-md-${8*(a.col||1)*(n===V.value.length-1?2:1)}`,`el-col-lg-${6*(a.col||1)*(n===V.value.length-1?2:1)}`,`el-col-xl-${4*(a.col||1)*(n===V.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(a.col||1)*(n===V.value.length-1?2:1)}`,`el-col-sl-${5*(a.col||1)*(n===V.value.length-1?2:1)}`,`${n===V.value.length-1?"last-col":""}`].join(" "))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["last-with-btn",n===V.value.length-1?"last-form":""])},[a!=null&&a.slot?e.renderSlot(s.$slots,a==null?void 0:a.slot,{key:0},void 0,!0):e.createCommentVNode("v-if",!0),a!=null&&a.slot?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(Cl),{key:1,onHandleChange:c[3]||(c[3]=m=>l("search",B.value)),list:[o.list[n]]},null,8,["list"])),n+1===V.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[o.showSearch?(e.openBlock(),e.createBlock(e.unref(u.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:e.unref(we),onClick:c[4]||(c[4]=m=>l("search",B.value))},null,8,["icon"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(u.ElButton),{icon:e.unref(Ce),class:"icon-more el-icon ml",title:"重置",onClick:N},null,8,["icon"]),e.createCommentVNode(` <el-popover\r
2
2
  placement="right"\r
3
3
  popper-class="gl-search-form-popper"\r
4
4
  width="100"\r
@@ -23,4 +23,4 @@
23
23
  </el-checkbox>\r
24
24
  </el-checkbox-group>\r
25
25
  </template>\r
26
- </el-popover> `)],64)):e.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[l.title?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("h2",null,e.toDisplayString(l.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),e.createElementVNode("div",Wl,[e.createElementVNode("div",{class:"ik-pack-up",onClick:f},[e.createVNode(e.unref(u.ElIcon),{size:"16"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(xe),null,null,512),[[e.vShow,!w.value]])]),_:1})])])]))}}),Bo="",Vo="",he=ie(M(Gl,[["__scopeId","data-v-403809ec"]]));P.EAlign=de,P.EDateType=G,P.EType=j,P.IKSearch=he,P.default=he,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ </el-popover> `)],64)):e.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[o.title?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("h2",null,e.toDisplayString(o.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),e.createElementVNode("div",Ol,[e.createElementVNode("div",{class:"ik-pack-up",onClick:f},[e.createVNode(e.unref(u.ElIcon),{size:"16"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(ge),null,null,512),[[e.vShow,!E.value]])]),_:1})])])]))}}),Kl="",Ql="",de=re(M(wl,[["__scopeId","data-v-403809ec"]]));P.EAlign=se,P.EDateType=z,P.EType=H,P.IKSearch=de,P.default=de,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -76,8 +76,8 @@ const E = (o, d) => {
76
76
  ...l.length && { transform: l.join(" ") },
77
77
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
78
78
  ...e.value.color && i.value !== "iksig" ? {
79
- "--ik-color-icon-dark": e.value.color,
80
- "--ik-color-icon-light": e.value.colorLight || q.setOpacity(e.value.color, e.value.opacity)
79
+ "--ik-icon-deep-color": e.value.color,
80
+ "--ik-icon-shallow-color": e.value.colorLight || q.setOpacity(e.value.color, e.value.opacity)
81
81
  } : {}
82
82
  };
83
83
  return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
@@ -216,7 +216,7 @@ const E = (o, d) => {
216
216
  };
217
217
  }
218
218
  });
219
- const M = /* @__PURE__ */ K(J, [["__scopeId", "data-v-52806adf"]]), O = E(M), P = { class: "content" }, Q = { class: "top" }, R = ["onClick"], U = ["id"], Z = ["onClick"], ee = /* @__PURE__ */ T({
219
+ const M = /* @__PURE__ */ K(J, [["__scopeId", "data-v-e29a45f8"]]), O = E(M), P = { class: "content" }, Q = { class: "top" }, R = ["onClick"], U = ["id"], Z = ["onClick"], ee = /* @__PURE__ */ T({
220
220
  __name: "IKVerticalStepBar",
221
221
  props: {
222
222
  // 当前激活的下标
@@ -1,9 +1,9 @@
1
- (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.index={},p.vue,p["iking-utils-pro"]))})(this,function(p,e,z){"use strict";const g=(s,d)=>{if(s.install=t=>{for(const a of[s,...Object.values(d??{})])t.component(a.name,a)},d)for(const[t,a]of Object.entries(d))s[t]=a;return s},v=(s,d)=>{const t=s.__vccOpts||s;for(const[a,i]of d)t[a]=i;return t},x={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},S={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},E=["xlink:href"],$=["src"],I={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},N=["xlink:href"],V=["src"],j=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(s){const d=s,t=e.computed(()=>d),a=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const u={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&a.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||z.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(u.width=u.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),u});return(n,u)=>{const k=e.resolveComponent("el-tooltip"),y=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",x,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",S,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,E)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,$)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(k,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",I,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,N)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,V)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(y,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",B=g(v(j,[["__scopeId","data-v-52806adf"]])),T={class:"content"},F={class:"top"},O=["onClick"],q=["id"],D=["onClick"],K=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:d}){const t=s,a=d,i=e.computed(()=>Number(t.active.indexOf("-")>0?t.active.split("-")[0]:t.active)),n=e.computed(()=>t.active.indexOf("-")>0?Number(t.active.split("-")[1]):0),u=c=>{let o="",l=c+1;return l<i.value?o="before-bg":l===i.value?o="active-bg":l>i.value&&(o="after-bg"),`${o} index`},k=c=>{let o="",l=c+1;return l<i.value?o="before-text":l===i.value?o="active-text":l>i.value&&(o="after-text"),`${o} text`},y=c=>{let o="",l=c+1;return l<i.value?o="before-style":l<t.list.length&&(o="after-style"),`${o} bottom`},L=(c,o)=>{let l="",r=c+1,m=o+1;return r<i.value?l="before-text":r===i.value?m<n.value?l="before-text":m===n.value?l="active-text":m>n.value&&(l="after-text"):r>i.value&&(l="after-text"),`${l} child-text`},b=(c,o)=>{t.needClick&&(c[t.propsField.children]||(a("update:active",o+""),a("click",c)))},C=(c,o)=>{c.show=!c.show;let l=document.getElementById(`children${o}`);c.show?l.style.display="none":l.style.display="block"};return(c,o)=>(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var m,w;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",F,[e.createElementVNode("div",{class:e.normalizeClass(u(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(k(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:f=>b(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
1
+ (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.index={},p.vue,p["iking-utils-pro"]))})(this,function(p,e,z){"use strict";const g=(s,d)=>{if(s.install=t=>{for(const a of[s,...Object.values(d??{})])t.component(a.name,a)},d)for(const[t,a]of Object.entries(d))s[t]=a;return s},v=(s,d)=>{const t=s.__vccOpts||s;for(const[a,i]of d)t[a]=i;return t},x={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},S={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},E=["xlink:href"],$=["src"],I={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},N=["xlink:href"],V=["src"],j=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(s){const d=s,t=e.computed(()=>d),a=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const u={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&a.value!=="iksig"?{"--ik-icon-deep-color":t.value.color,"--ik-icon-shallow-color":t.value.colorLight||z.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(u.width=u.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),u});return(n,u)=>{const k=e.resolveComponent("el-tooltip"),y=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",x,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",S,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,E)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,$)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(k,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",I,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,N)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,V)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(y,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",B=g(v(j,[["__scopeId","data-v-e29a45f8"]])),T={class:"content"},F={class:"top"},O=["onClick"],q=["id"],D=["onClick"],K=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:d}){const t=s,a=d,i=e.computed(()=>Number(t.active.indexOf("-")>0?t.active.split("-")[0]:t.active)),n=e.computed(()=>t.active.indexOf("-")>0?Number(t.active.split("-")[1]):0),u=c=>{let o="",l=c+1;return l<i.value?o="before-bg":l===i.value?o="active-bg":l>i.value&&(o="after-bg"),`${o} index`},k=c=>{let o="",l=c+1;return l<i.value?o="before-text":l===i.value?o="active-text":l>i.value&&(o="after-text"),`${o} text`},y=c=>{let o="",l=c+1;return l<i.value?o="before-style":l<t.list.length&&(o="after-style"),`${o} bottom`},L=(c,o)=>{let l="",r=c+1,m=o+1;return r<i.value?l="before-text":r===i.value?m<n.value?l="before-text":m===n.value?l="active-text":m>n.value&&(l="after-text"):r>i.value&&(l="after-text"),`${l} child-text`},b=(c,o)=>{t.needClick&&(c[t.propsField.children]||(a("update:active",o+""),a("click",c)))},w=(c,o)=>{c.show=!c.show;let l=document.getElementById(`children${o}`);c.show?l.style.display="none":l.style.display="block"};return(c,o)=>(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var m,C;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",F,[e.createElementVNode("div",{class:e.normalizeClass(u(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(k(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:f=>b(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
2
2
  v-if="item[propsField.children]?.length && !item.show"\r
3
3
  class="ikapprove icon-a-putongjiantouzhankai"\r
4
4
  @click="changeShow(item, index)"\r
5
- ></i> `),(m=l[s.propsField.children])!=null&&m.length&&!l.show?(e.openBlock(),e.createBlock(e.unref(B),{key:0,class:"ikapprove",onClick:f=>C(l,r),name:"iksvg_zhankai"},null,8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(` <i\r
5
+ ></i> `),(m=l[s.propsField.children])!=null&&m.length&&!l.show?(e.openBlock(),e.createBlock(e.unref(B),{key:0,class:"ikapprove",onClick:f=>w(l,r),name:"iksvg_zhankai"},null,8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(` <i\r
6
6
  v-if="item[propsField.children]?.length && item.show"\r
7
7
  @click="changeShow(item, index)"\r
8
8
  class="ikapprove icon-a-putongjiantoushouqi"\r
9
- ></i> `),(w=l[s.propsField.children])!=null&&w.length&&l.show?(e.openBlock(),e.createBlock(e.unref(B),{key:1,class:"ikapprove",onClick:f=>C(l,r),name:"iksvg_shouqi"},null,8,["onClick"])):e.createCommentVNode("v-if",!0)],14,O)]),e.createElementVNode("ul",{class:e.normalizeClass(y(r))},[e.createElementVNode("div",{id:`children${r}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l[s.propsField.children],(f,h)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(L(r,h)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),key:h,onClick:A=>b(f,r+1+"-"+(h+1))},e.toDisplayString(f.name),15,D))),128))],8,q)],2)])}),128))]))}}),X="",_=g(v(K,[["__scopeId","data-v-240cff4f"]]));p.IKVerticalStepBar=_,p.default=_,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
9
+ ></i> `),(C=l[s.propsField.children])!=null&&C.length&&l.show?(e.openBlock(),e.createBlock(e.unref(B),{key:1,class:"ikapprove",onClick:f=>w(l,r),name:"iksvg_shouqi"},null,8,["onClick"])):e.createCommentVNode("v-if",!0)],14,O)]),e.createElementVNode("ul",{class:e.normalizeClass(y(r))},[e.createElementVNode("div",{id:`children${r}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l[s.propsField.children],(f,h)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(L(r,h)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),key:h,onClick:A=>b(f,r+1+"-"+(h+1))},e.toDisplayString(f.name),15,D))),128))],8,q)],2)])}),128))]))}}),X="",_=g(v(K,[["__scopeId","data-v-240cff4f"]]));p.IKVerticalStepBar=_,p.default=_,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}
1
+ .row-title[data-v-e29a45f8]{display:flex}.ik-svg-icon.ik-icon-span[data-v-e29a45f8]:not(:first-child){margin-left:var(--ik-margin-s-12)}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}