cnhis-design-vue 3.1.42-beta.6 → 3.1.42-beta.60

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 (288) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/index.d.ts +2 -2
  3. package/es/components/base-search/src/index.vue.d.ts +2 -2
  4. package/es/components/base-search/src/index.vue.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/big-table/index.d.ts +3 -4
  7. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  8. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  9. package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
  10. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  11. package/es/components/big-table/src/hooks/useEvent.js +1 -1
  12. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  13. package/es/components/big-table/src/hooks/useNestTable.js +1 -1
  14. package/es/components/big-table/src/hooks/useTableParse.js +1 -1
  15. package/es/components/big-table/src/utils.d.ts +11 -1
  16. package/es/components/big-table/src/utils.js +1 -1
  17. package/es/components/big-table/style/index.css +1 -1
  18. package/es/components/bpmn-workflow/index.d.ts +12 -0
  19. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
  20. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  21. package/es/components/button-print/index.d.ts +32 -7
  22. package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -8
  23. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  24. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  25. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  26. package/es/components/button-print/src/utils/print.js +1 -1
  27. package/es/components/classification/index.d.ts +1 -1
  28. package/es/components/classification/src/index.vue.d.ts +2 -2
  29. package/es/components/classification/style/index.css +1 -1
  30. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  31. package/es/components/config-provider/src/interface.d.ts +4 -4
  32. package/es/components/date-picker/index.d.ts +4 -0
  33. package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
  34. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  35. package/es/components/fabric-chart/index.d.ts +2 -2
  36. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  37. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  38. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  39. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  43. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  44. package/es/components/field-set/index.d.ts +26 -81
  45. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  46. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  47. package/es/components/field-set/style/index.css +1 -1
  48. package/es/components/form-config/index.d.ts +75 -39
  49. package/es/components/form-config/src/FormConfig.vue.d.ts +75 -39
  50. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  51. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +28 -14
  52. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +39 -21
  53. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  54. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  55. package/es/components/form-config/src/constants/index.d.ts +12 -1
  56. package/es/components/form-config/src/constants/index.js +1 -1
  57. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  58. package/es/components/form-config/src/types/index.d.ts +1 -0
  59. package/es/components/form-render/index.d.ts +28 -14
  60. package/es/components/form-render/index.js +1 -1
  61. package/es/components/form-render/src/FormRender.vue.d.ts +28 -14
  62. package/es/components/form-render/src/FormRender.vue.js +1 -1
  63. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +28 -14
  64. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  65. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  66. package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
  67. package/es/components/form-render/src/components/renderer/date.js +1 -1
  68. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  69. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +84 -0
  70. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  71. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
  72. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  73. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  74. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  75. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +38 -2
  76. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  77. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
  78. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  79. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +27 -0
  80. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  81. package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
  82. package/es/components/form-render/src/components/renderer/select.js +1 -1
  83. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  84. package/es/components/form-render/src/hooks/index.js +1 -1
  85. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  86. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  87. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  88. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  89. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  90. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  91. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  92. package/es/components/form-render/src/types/fieldItem.d.ts +6 -4
  93. package/es/components/form-render/src/types/index.d.ts +3 -2
  94. package/es/components/form-render/style/index.css +1 -1
  95. package/es/components/iho-table/index.d.ts +24 -5
  96. package/es/components/iho-table/src/IhoTable.vue.d.ts +24 -5
  97. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  98. package/es/components/iho-table/src/constants/index.d.ts +3 -2
  99. package/es/components/iho-table/src/constants/index.js +1 -1
  100. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
  101. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  102. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
  103. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  104. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
  105. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
  106. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
  107. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
  108. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  109. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  110. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  111. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  112. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  113. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  114. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  115. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  116. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  117. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  118. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  119. package/es/components/iho-table/src/plugins/index.js +1 -1
  120. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  121. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  122. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  123. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  124. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  125. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
  126. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  127. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  128. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
  129. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  130. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  131. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -1
  132. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  133. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  134. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  135. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  136. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  137. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
  138. package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
  139. package/es/components/iho-table/src/plugins/{rendererPlugins/widgets/variableHeightRendererPlugin.d.ts → varialbleHeightPlugin/index.d.ts} +1 -1
  140. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  141. package/es/components/iho-table/src/types/index.d.ts +24 -5
  142. package/es/components/iho-table/src/types/pluginType.d.ts +10 -25
  143. package/es/components/iho-table/src/utils/index.d.ts +7 -3
  144. package/es/components/iho-table/src/utils/index.js +1 -1
  145. package/es/components/iho-table/style/iconfont.ttf +0 -0
  146. package/es/components/iho-table/style/index.css +1 -1
  147. package/es/components/index.css +1 -1
  148. package/es/components/index.d.ts +1 -0
  149. package/es/components/index.js +1 -1
  150. package/es/components/info-header/index.d.ts +61 -32
  151. package/es/components/info-header/src/InfoHeader.vue.d.ts +61 -32
  152. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  153. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  154. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  155. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  156. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  157. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  158. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -17
  159. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +29 -14
  160. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  161. package/es/components/info-header/style/index.css +1 -1
  162. package/es/components/keyboard/index.d.ts +1 -1
  163. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  164. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  165. package/es/components/keyboard/src/constants/index.js +1 -1
  166. package/es/components/keyboard/style/index.css +1 -1
  167. package/es/components/map/index.d.ts +2 -14
  168. package/es/components/map/src/Map.vue.d.ts +1 -14
  169. package/es/components/map/src/types/index.d.ts +19 -0
  170. package/es/components/map/src/types/index.js +1 -0
  171. package/es/components/recommend-search/index.d.ts +13 -128
  172. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
  173. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  174. package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
  175. package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
  176. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
  177. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  178. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  179. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  180. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
  181. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  182. package/es/components/recommend-search/src/constant/index.d.ts +3 -0
  183. package/es/components/recommend-search/src/constant/index.js +1 -1
  184. package/es/components/scale-view/index.d.ts +38 -224
  185. package/es/components/scale-view/index.js +1 -1
  186. package/es/components/scale-view/src/ScaleView.vue.d.ts +37 -224
  187. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  188. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
  189. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  190. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
  191. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  192. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  193. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  194. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  195. package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
  196. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  197. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  198. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  199. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  200. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +8 -8
  201. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  202. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  203. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  204. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  205. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  206. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
  207. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  208. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  209. package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
  210. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
  211. package/es/components/scale-view/src/hooks/use-event.js +1 -1
  212. package/es/components/scale-view/src/types/index.d.ts +7 -0
  213. package/es/components/scale-view/src/types/index.js +1 -0
  214. package/es/components/scale-view/style/index.css +1 -1
  215. package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
  216. package/es/components/search-cascader/index.d.ts +12 -1
  217. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
  218. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  219. package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
  220. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  221. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  222. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  223. package/es/components/search-cascader/src/constants/index.d.ts +1 -0
  224. package/es/components/search-cascader/src/constants/index.js +1 -1
  225. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  226. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  227. package/es/components/select-label/style/index.css +1 -1
  228. package/es/components/select-person/index.d.ts +43 -10
  229. package/es/components/select-person/src/SelectPerson.vue.d.ts +29 -8
  230. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  231. package/es/components/select-person/src/utils/index.js +1 -1
  232. package/es/components/shortcut-setter/index.d.ts +31 -16
  233. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -16
  234. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  235. package/es/components/steps-wheel/src/constants/index.js +1 -1
  236. package/es/components/steps-wheel/style/index.css +1 -1
  237. package/es/components/table-filter/index.d.ts +0 -1
  238. package/es/components/table-filter/index.js +1 -1
  239. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  240. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  241. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  242. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  243. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  244. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  245. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  246. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  247. package/es/components/table-filter/src/types/index.d.ts +11 -76
  248. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  249. package/es/components/vod-chunk-upload/index.d.ts +73 -3
  250. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
  251. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  252. package/es/env.d.ts +1 -0
  253. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  254. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  255. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  256. package/es/shared/{mixins → hooks}/index.js +1 -1
  257. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  258. package/es/shared/hooks/useAsyncQueue.js +1 -0
  259. package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
  260. package/es/shared/hooks/useDateTime.js +1 -0
  261. package/es/shared/utils/anime.d.ts +1 -1
  262. package/es/shared/utils/anime.js +1 -1
  263. package/es/shared/utils/index.d.ts +3 -14
  264. package/es/shared/utils/index.js +1 -1
  265. package/es/shared/utils/vexutils.d.ts +2 -2
  266. package/es/shared/utils/vexutils.js +1 -1
  267. package/es/shared/utils/vexutilsExpand.d.ts +254 -0
  268. package/es/shared/utils/vexutilsExpand.js +1 -0
  269. package/package.json +2 -2
  270. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  271. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/variableHeightRendererPlugin.js +0 -1
  272. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
  273. package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  274. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  275. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  276. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  277. package/es/components/table-filter/src/hooks/export.js +0 -1
  278. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  279. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  280. package/es/shared/mixins/useDateTime.js +0 -1
  281. package/es/shared/utils/colorLog.d.ts +0 -31
  282. package/es/shared/utils/colorLog.js +0 -1
  283. /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
  284. /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
  285. /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
  286. /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
  287. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  288. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as r,normalizeClass as a,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as h,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import{useTheme as S}from"../../../shared/mixins/useTheme.js";import"@vueuse/core";import{defaultCssVars as _}from"./constants/index.js";import b from"../../../_virtual/plugin-vue_export-helper.js";const k={class:"stepBox"},C=["title"],$=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),L=["title"],R=["title"],j=["title"],M={key:0,style:{height:"48px"}},N={key:1},D={key:1};var W=b(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,b=S(_,"StepsWheel"),W=t((()=>Math.ceil(P.value.length/B.stepInfo.cols))),A=t((()=>B.lastNodeRender)),{noDataMsg:E}=l(B),O=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==O?void 0:O.value)?void 0:e.length){let e=O.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),P=n([]),q=n([]),z=e=>{if(q.value.length){if(e.rowIndex===q.value.length)return!0;if(e.rowIndex<q.value.length)return q.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},G=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},H=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},J=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,K=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},Q=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},U=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},V=(e,t)=>{const{cols:l}=B.stepInfo;let n=K(P.value,l),s=n[n.length-1].filter((e=>e));return W.value%2==0?"circle"===t?A.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:A.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?A.value&&e==s[s.length-1].nodeIndex-1-l:A.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,r=0;for(let n=1;n<l;n++)o[p][r]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?r++:(s=!s,p++):n%t!=0?r--:(s=!s,p++);let a=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),a=[...a,...e]})),P.value=a,q.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:r(F),...r(b)})},[P.value.length?(o(),i("div",{key:0,class:a(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",k,[(o(!0),i(u,null,c(P.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:O,key:(null==l?void 0:l.stepId)||n,class:a(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:a(["stepTopBox",{finished:U(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[h(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,C)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(r(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)])),default:x((()=>[h(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[$]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((o(),i("div",{key:2,class:a(["line",{lineActive:J(l,n),finished:V(n)}])},null,2)),[[g,Q(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),G(l)||H(l)?(o(),i("div",{key:3,class:a({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:V(n,"circle"),lineCircleRight:H(l),lineCircleLeft:G(l),lineCirclePlacementRight:H(l)&&"right"===e.placement,lineCirclePlacementLeft:G(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:a(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[h(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:a(["stepLabel",{labelFinsh:U(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,L),[[g,l.label]]),d("div",{class:a({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[h(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:a({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},v(l.person),9,R),[[g,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,j),[[g,l.statusTime]])],2)]))],2)])),z(l)?(o(),i("div",M)):m("v-if",!0)],2)],64)):(o(),i("div",N,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",D,[y(r(T),{description:r(E)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{W as default};
1
+ import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as r,normalizeClass as a,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as h,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import{useTheme as S}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import{defaultCssVars as _}from"./constants/index.js";import k from"../../../_virtual/plugin-vue_export-helper.js";const b={class:"stepBox"},C=["title"],$=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),L=["title"],R=["title"],j=["title"],M={key:0,style:{height:"48px"}},N={key:1},D={key:1};var W=k(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,k=S(_,"StepsWheel"),W=t((()=>Math.ceil(P.value.length/B.stepInfo.cols))),A=t((()=>B.lastNodeRender)),{noDataMsg:E}=l(B),O=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==O?void 0:O.value)?void 0:e.length){let e=O.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),P=n([]),q=n([]),z=e=>{if(q.value.length){if(e.rowIndex===q.value.length)return!0;if(e.rowIndex<q.value.length)return q.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},G=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},H=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},J=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,K=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},Q=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},U=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},V=(e,t)=>{const{cols:l}=B.stepInfo;let n=K(P.value,l),s=n[n.length-1].filter((e=>e));return W.value%2==0?"circle"===t?A.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:A.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?A.value&&e==s[s.length-1].nodeIndex-1-l:A.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,r=0;for(let n=1;n<l;n++)o[p][r]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?r++:(s=!s,p++):n%t!=0?r--:(s=!s,p++);let a=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),a=[...a,...e]})),P.value=a,q.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:r(F),...r(k)})},[P.value.length?(o(),i("div",{key:0,class:a(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",b,[(o(!0),i(u,null,c(P.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:O,key:(null==l?void 0:l.stepId)||n,class:a(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:a(["stepTopBox",{finished:U(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[h(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,C)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(r(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)])),default:x((()=>[h(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[$]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((o(),i("div",{key:2,class:a(["line",{lineActive:J(l,n),finished:V(n)}])},null,2)),[[g,Q(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),G(l)||H(l)?(o(),i("div",{key:3,class:a({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:V(n,"circle"),lineCircleRight:H(l),lineCircleLeft:G(l),lineCirclePlacementRight:H(l)&&"right"===e.placement,lineCirclePlacementLeft:G(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:a(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[h(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:a(["stepLabel",{labelFinsh:U(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,L),[[g,l.label]]),d("div",{class:a({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[h(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:a({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},v(l.person),9,R),[[g,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,j),[[g,l.statusTime]])],2)]))],2)])),z(l)?(o(),i("div",M)):m("v-if",!0)],2)],64)):(o(),i("div",N,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",D,[y(r(T),{description:r(E)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{W as default};
@@ -1 +1 @@
1
- const c={"--c-color-primary":"#2563f4","--c-color-finish":"#5dc055"};export{c as defaultCssVars};
1
+ const c={"--c-primary-color":"#2563f4","--c-success-color":"#5dc055"};export{c as defaultCssVars};
@@ -1 +1 @@
1
- .step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border-top:1px solid var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border-top:1px solid var(--c-color-finish)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-color-finish)!important;border-color:var(--c-color-finish)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-color-finish)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-color-primary)}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:var(--c-color-primary);cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;overflow:hidden;padding:8px 0;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;display:inline-block;margin:0;max-width:90%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap;width:auto}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;max-width:90%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
1
+ .step-wheel-box{font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:100%;overflow:hidden;width:100%}.step-wheel-box .stepOut{display:flex;justify-content:center}.step-wheel-box .stepOut .stepBox{display:flex;flex-wrap:wrap;list-style:none;width:100%}.step-wheel-box .stepOut .stepItem{font-family:SimSun;font-size:16px;min-width:73px;position:relative;text-align:center;top:48px;width:15%}.step-wheel-box .stepOut .stepItem .lineCircleRight{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:0 dashed rgba(3,2,2,.4)!important;border-radius:0 25px 25px 0;border-right:1px dashed rgba(3,2,2,.4);border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:55%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementRight{width:100%}.step-wheel-box .stepOut .stepItem .lineCircleLeft{border-color:#fff;border-bottom:1px dashed rgba(3,2,2,.4);border-left:1px dashed rgba(3,2,2,.4);border-radius:25px 0 0 25px;border-right:0 dashed rgba(3,2,2,.4)!important;border-top:1px dashed rgba(3,2,2,.4);display:block;height:100%;left:15%;position:absolute;top:6px;width:30%}.step-wheel-box .stepOut .stepItem .lineCirclePlacementLeft{left:-55%;width:100%}.step-wheel-box .stepOut .stepItem .lineCircleActive{border-top:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .lineCircleFinished{border-top:1px solid var(--c-success-color)}.step-wheel-box .stepOut .stepItem .icon{background:#969696;border-radius:50%;height:13px;margin:0 auto;position:relative;width:13px;z-index:888}.step-wheel-box .stepOut .stepItem .active{background-color:var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .finished{background-color:var(--c-success-color)!important;border-color:var(--c-success-color)!important;color:#fff!important}.step-wheel-box .stepOut .stepItem .labelFinsh{color:var(--c-success-color)!important}.step-wheel-box .stepOut .stepItem .line{border-bottom:1px dashed rgba(3,2,2,.4);left:55%;position:absolute;top:6px;width:90%;z-index:111}.step-wheel-box .stepOut .stepItem .lineActive{border-bottom:1px solid var(--c-primary-color)}.step-wheel-box .stepOut .stepItem .stepTopBox{background:rgba(110,153,255,.11);border-radius:4px;color:var(--c-primary-color);cursor:pointer;height:40px;left:50%;line-height:40px;max-width:70%;min-width:73px;overflow:hidden;padding:0 5px;position:absolute;text-overflow:ellipsis;top:-48px;transform:translateX(-50%);white-space:nowrap}.step-wheel-box .stepOut .stepItem .stepTopBox_right{transform:translateX(-10%)}.step-wheel-box .stepOut .stepItem .stepTopBox_left{transform:translateX(-90%)}.step-wheel-box .stepOut .stepItem .stepBottomBox{align-items:center;cursor:pointer;display:flex;flex-direction:column;min-width:73px;overflow:hidden;padding:8px 0;width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox{align-items:center;display:flex;flex-direction:column;height:calc(100% - 27px);width:100%}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .stepBottomDefaultBox{align-items:center}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .stepBottomCustomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsEnd{align-items:flex-end;text-align:right}.step-wheel-box .stepOut .stepItem .stepBottomBox .alignItemsStart{align-items:flex-start;text-align:left}.step-wheel-box .stepOut .stepItem .stepBottomBox_right{align-items:flex-start;left:45%;position:relative}.step-wheel-box .stepOut .stepItem .stepBottomBox_left{align-items:flex-end;left:-45%;position:relative}.step-wheel-box .stepOut .stepItem .stepLabel{color:#212121;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.step-wheel-box .stepOut .stepItem .stepLabel_right{text-align:left}.step-wheel-box .stepOut .stepItem .stepLabel_left{text-align:right}.step-wheel-box .stepOut .stepItem .stepExtra{border:1px solid #cacaca;border-radius:4px;display:inline-block;margin:0;max-width:90%;overflow:hidden;padding:0 4px;text-overflow:ellipsis;white-space:nowrap;width:auto}.step-wheel-box .stepOut .stepItem .statusTime{color:rgba(0,0,0,.6);font-size:14px;font-weight:400;margin:0;max-width:90%}.placementRight{left:-1%;position:relative}.placementLeft{left:10%;position:relative}.nodeTipContent{margin:0;max-height:200px;max-width:400px;overflow:auto;padding:0;text-align:center}.nodeTipContent li{list-style:none;margin-bottom:5px}.nodeTipContent li p{margin:0}
@@ -1,2 +1 @@
1
1
  export * from './src/types';
2
- export * from './src/hooks/export';
@@ -1 +1 @@
1
- import"./src/hooks/useAdvanced.js";
1
+
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  }>> & {
99
99
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
- multiple: boolean;
102
101
  value: string | number | unknown[];
102
+ multiple: boolean;
103
103
  }>;
104
104
  export default _default;
@@ -178,8 +178,8 @@ export declare const WidgetCfgMaps: Map<string, {
178
178
  }>> & {
179
179
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
180
180
  }, {
181
- multiple: boolean;
182
181
  value: string | number | unknown[];
182
+ multiple: boolean;
183
183
  }>;
184
184
  props: {
185
185
  clearable?: undefined;
@@ -1 +1 @@
1
- import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l}from"./enums.js";import{NInputNumber as t,NInput as a,NDatePicker as o}from"naive-ui";import r from"./components/CheckboxGroup.vue.js";import p from"./components/Select.vue.js";import s from"moment";import{presetValToTimestamp as n}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:t,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&(console.log("点击keyup>>>>>",l),l())}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,options:[],filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{valueList:l,multiple:t,title:a}={}){const o={...e,placeholder:`请选择${a}`};return Array.isArray(l)&&(o.options=l.map((({value:e,label:l})=>({value:e,label:l})))),t&&(o.multiple=!0),o},setDefaultValue:m}],[e.DATE,{component:o,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:o,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:r,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:m}]]),i=(l,t)=>!l||t!==e.DATE&&t!==e.DATE_TIME?l:s(l).format("YYYY-MM-DD HH:mm:ss");export{u as WidgetCfgMaps,i as formatItemData};
1
+ import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l}from"./enums.js";import{NInputNumber as t,NInput as a,NDatePicker as r}from"naive-ui";import o from"./components/CheckboxGroup.vue.js";import p from"./components/Select.vue.js";import s from"moment";import{presetValToTimestamp as n}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:t,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,options:[],filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{valueList:l,multiple:t,title:a}={}){const r={...e,placeholder:`请选择${a}`};return Array.isArray(l)&&(r.options=l.map((({value:e,label:l})=>({value:e,label:l})))),t&&(r.multiple=!0),r},setDefaultValue:m}],[e.DATE,{component:r,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:r,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:o,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:m}]]),i=(l,t)=>!l||t!==e.DATE&&t!==e.DATE_TIME?l:s(l).format("YYYY-MM-DD HH:mm:ss");export{u as WidgetCfgMaps,i as formatItemData};
@@ -1 +1 @@
1
- import{ref as e}from"vue";import r from"./useRenderWidget.js";const{initRenderWidgetCfg:t,getRenderSearchConObj:n}=r();function o(){const r=e({});return{filterApiConfig:r,handleGetConfigApi:async function(e,t,n={},o){try{o&&(r.value=o);const i=r.value[t]||null;if("function"==typeof i){const r=await i(e,n);return Promise.resolve(r)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}},outQuickSearchFn:{handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{t(e)}))}}}}export{o as default};
1
+ import{ref as e}from"vue";import r from"./useRenderWidget.js";const{initRenderWidgetCfg:t}=r();function n(){const r=e({});return{filterApiConfig:r,handleGetConfigApi:async function(e,t,n={},o){try{o&&(r.value=o);const i=r.value[t]||null;if("function"==typeof i){const r=await i(e,n);return Promise.resolve(r)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}},outQuickSearchFn:{handlerInitSearchItem(e){Array.isArray(e)&&e.forEach((e=>{t(e)}))}}}}export{n as default};
@@ -1,13 +1,3 @@
1
- export declare const widgetTypeOptions: {
2
- label: string;
3
- value: string;
4
- }[];
5
- export declare const widgetCfgOptions: {
6
- [x: string]: {
7
- label: string;
8
- value: string;
9
- }[];
10
- };
11
1
  export declare const widgetValOptions: {
12
2
  [x: string]: {
13
3
  [x: string]: {
@@ -1 +1 @@
1
- import{WidgetTypeEnums as l,WidgetOptionEnums as e,DataTypeEnums as a,WidgetValEnums as T}from"../types/enums.js";const E=[{label:"数字框",value:l.INPUT_NUMBER},{label:"文本框",value:l.INPUT},{label:"下拉框",value:l.SELECT},{label:"日期框",value:l.DATE},{label:"日期时间框",value:l.DATE_TIME}],u={[l.SELECT]:[{label:"单选",value:e.RADIO},{label:"多选",value:e.MULTIPLE}],[l.DATE_TIME]:[{label:"全部",value:e.ALL},{label:"选择时间",value:e.SELECT_TIME},{label:"过去时间",value:e.PAST_TIME},{label:"未来时间",value:e.FUTURE_TIME}]},b={[a.API]:{[l.DATE]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}],[l.DATE_TIME]:[{label:"当前时间",value:T.NOW},{label:"今天初",value:T.TODAY_START},{label:"今天末",value:T.TODAY_END},{label:"昨天初",value:T.YESTERDAY_START},{label:"昨天末",value:T.YESTERDAY_END},{label:"明天初",value:T.TOMORROW_START},{label:"明天末",value:T.TOMORROW_END},{label:"本周初",value:T.WEEK_START},{label:"本周末",value:T.WEEK_END},{label:"本月初",value:T.MONTH_START},{label:"本月末",value:T.MONTH_END}]},[a.SQL]:{[l.DATE_TIME]:[{label:"今天",value:T.TODAY},{label:"明天",value:T.TOMORROW},{label:"昨天",value:T.YESTERDAY},{label:"本周",value:T.THIS_WEEK},{label:"下周",value:T.NEXT_WEEK},{label:"上周",value:T.LAST_WEEK},{label:"本月",value:T.THIS_MONTH},{label:"下月",value:T.NEXT_MONTH},{label:"上月",value:T.LAST_MONTH},{label:"本季度",value:T.THIS_QUARTER},{label:"下季度",value:T.NEXT_QUARTER},{label:"上季度",value:T.LAST_QUARTER},{label:"本年",value:T.THIS_YEAR},{label:"下年",value:T.NEXT_YEAR},{label:"上年",value:T.LAST_YEAR}]}};export{u as widgetCfgOptions,E as widgetTypeOptions,b as widgetValOptions};
1
+ import{DataTypeEnums as l,WidgetTypeEnums as e,WidgetValEnums as a}from"../types/enums.js";const T={[l.API]:{[e.DATE]:[{label:"今天",value:a.TODAY},{label:"明天",value:a.TOMORROW},{label:"昨天",value:a.YESTERDAY},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}],[e.DATE_TIME]:[{label:"当前时间",value:a.NOW},{label:"今天初",value:a.TODAY_START},{label:"今天末",value:a.TODAY_END},{label:"昨天初",value:a.YESTERDAY_START},{label:"昨天末",value:a.YESTERDAY_END},{label:"明天初",value:a.TOMORROW_START},{label:"明天末",value:a.TOMORROW_END},{label:"本周初",value:a.WEEK_START},{label:"本周末",value:a.WEEK_END},{label:"本月初",value:a.MONTH_START},{label:"本月末",value:a.MONTH_END}]}};export{T as widgetValOptions};
@@ -1,10 +1,3 @@
1
- export declare const generateDefOptionsInSql: (widgetType: string, mappingConfig?: {
2
- mappingMethod: null;
3
- mapping: never[];
4
- }, optionSetting?: null) => {
5
- label: string;
6
- value: string;
7
- }[];
8
1
  export declare const generateDefOptionsInApi: (widgetType: string, mappingConfig?: {
9
2
  mappingMethod: null;
10
3
  mapping: never[];
@@ -1 +1 @@
1
- import{WidgetTypeEnums as T,MappingMethodEnums as n,WidgetValEnums as E,DataTypeEnums as r,WidgetOptionEnums as t}from"../types/enums.js";import{widgetValOptions as i}from"./baseOptions.js";import{isNil as l}from"./transformData.js";const e=(e,p={mappingMethod:null,mapping:[]},o=null)=>{var u,_;if(l(e))return[];if(e===T.SELECT){const{mapping:T,mappingMethod:r}=p;if(T&&r)return r===n.DICT?[{label:"默认选中第一项",value:E.FIRST_VAL}]:T}let A=null!=(_=null==(u=i[r.SQL])?void 0:u[e])?_:[];if(o===t.FUTURE_TIME){const T=[E.TODAY,E.TOMORROW,E.THIS_WEEK,E.NEXT_WEEK,E.THIS_MONTH,E.NEXT_MONTH,E.THIS_QUARTER,E.NEXT_QUARTER,E.THIS_YEAR,E.NEXT_YEAR];A=A.filter((({value:n})=>T.includes(n)))}if(o===t.PAST_TIME){const T=[E.TODAY,E.YESTERDAY,E.THIS_WEEK,E.LAST_WEEK,E.THIS_MONTH,E.LAST_MONTH,E.THIS_QUARTER,E.LAST_QUARTER,E.THIS_YEAR,E.LAST_YEAR];A=A.filter((({value:n})=>T.includes(n)))}return A},p=(n,E={mappingMethod:null,mapping:[]})=>{var t,e;if(l(n))return[];if(n===T.SELECT){const{mapping:T}=E;return T}return null!=(e=null==(t=i[r.API])?void 0:t[n])?e:[]};export{p as generateDefOptionsInApi,e as generateDefOptionsInSql};
1
+ import{WidgetTypeEnums as r,DataTypeEnums as n}from"../types/enums.js";import{widgetValOptions as t}from"./baseOptions.js";import{isNil as o}from"./transformData.js";const p=(p,m={mappingMethod:null,mapping:[]})=>{var i,s;if(o(p))return[];if(p===r.SELECT){const{mapping:r}=m;return r}return null!=(s=null==(i=t[n.API])?void 0:i[p])?s:[]};export{p as generateDefOptionsInApi};
@@ -113,19 +113,6 @@ export declare type ISaveType = {
113
113
  setting: any;
114
114
  conditionList: string;
115
115
  };
116
- export declare type ILabelItemListType = {
117
- allowCreateByPersonal: number;
118
- color: string;
119
- isPublic: string;
120
- isSelect: boolean;
121
- labelId: string;
122
- labelName: string;
123
- parentColor: string;
124
- parentId: string;
125
- parentType: string;
126
- typeId: string;
127
- typeName: string;
128
- };
129
116
  export declare type IClassifyListType = {
130
117
  displayCategory: string;
131
118
  isDefault: boolean;
@@ -145,6 +132,15 @@ export declare type IClassifyListType = {
145
132
  createdByName?: string;
146
133
  from?: string;
147
134
  };
135
+ export declare type IClassifyItemType = {
136
+ name: string;
137
+ [key: string]: any;
138
+ };
139
+ export declare type IClassifyOutSaveType = {
140
+ id: string;
141
+ tableId: string;
142
+ [key: string]: string;
143
+ };
148
144
  export declare type ISearchConfigType = {
149
145
  con: string;
150
146
  field_key: string;
@@ -174,70 +170,9 @@ export declare type IConditionMapType = {
174
170
  countTabCondition?: string;
175
171
  settingId?: string;
176
172
  };
177
- export declare type IbtnType = {
178
- buttonType: string;
179
- color: string;
180
- icon: string;
181
- id: string;
182
- isShow: number;
183
- name: string;
184
- setting: string;
185
- settingList: string;
186
- settingObj: IsettingObjType[];
187
- showStyle: string;
188
- sid: string;
189
- tableId: string;
190
- toggle: string;
191
- type: string;
192
- alias?: string;
193
- buttonRemark?: string;
194
- buttonGroup?: any;
195
- canHandleUniline?: boolean;
196
- chooseTwoData?: string;
197
- createdTime?: string;
198
- dataSource?: string;
199
- isButtonGroup?: boolean;
200
- isHide?: boolean;
201
- isImportGuage?: boolean;
202
- iconSetting?: string;
203
- isShowFoldGroupBtn?: boolean;
204
- isVisible?: boolean;
205
- printType?: any;
206
- quoteSetting?: string;
207
- showStyleSetting?: string;
208
- strategy?: string;
209
- updatedTime?: string;
210
- __printConfig?: any;
211
- };
212
- export declare type IsettingObjType = {
213
- obj_id: string;
214
- trigger_type: string;
215
- isTips: string;
216
- trigger_id?: string;
217
- trigger_name?: string;
218
- params?: IparamsType[];
219
- editAllRow?: number;
220
- tipsMsg?: any;
221
- newTitle?: string;
222
- display?: string;
223
- importComponentId?: string;
224
- importComponentName?: string;
225
- prevStepSetting?: any;
226
- linkShowType?: string;
227
- conditionExpression?: string;
228
- conditionParams?: any;
229
- };
230
- export declare type IparamsType = Record<'p_name' | 'p_value', string>;
231
173
  export declare type IsettingsType = {
232
174
  hideQuickSearch: number;
233
175
  };
234
- export declare type IeditTableWrapperItem = {
235
- options?: IeditTableWrapperDetail;
236
- };
237
- export declare type IeditTableWrapperDetail = {
238
- isButtonFolding?: boolean;
239
- extendParams?: any;
240
- };
241
176
  export declare type ICheckboxType = Record<'label' | 'value', string>;
242
177
  export declare type IApiServerType = {
243
178
  name: string;
@@ -312,6 +247,6 @@ export declare type IFormStateType = {
312
247
  export declare type ISearchParamsType = {
313
248
  field_key: string;
314
249
  con: string;
315
- value: any;
316
- unit: string | null;
250
+ value: string[];
251
+ unit: 'custom' | null;
317
252
  };
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as r,ref as i,computed as s,openBlock as t,createBlock as m,unref as o,mergeProps as u,createSlots as a,renderList as f,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as _}from"../../../shared/mixins/useDateTime.js";import c from"../../../_virtual/plugin-vue_export-helper.js";var v=c(e({__name:"TimePicker",setup(e,{expose:c}){const v=r(),d=i(null),k=s((()=>v.format?v.format:"HH:mm:ss")),{focus:x,blur:h}=_(d,k);return c({$timePicker:d,focus:x,blur:h}),(e,r)=>(t(),m(o(n),u({ref_key:"timePickerRef",ref:d},e.$attrs),a({_:2},[f(e.$slots,((r,i)=>({name:i,fn:l((()=>[p(e.$slots,i)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{v as default};
1
+ import{defineComponent as e,useAttrs as r,ref as t,computed as o,openBlock as s,createBlock as i,unref as m,mergeProps as u,createSlots as f,renderList as a,withCtx as l,renderSlot as p}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import _ from"../../../_virtual/plugin-vue_export-helper.js";var k=_(e({__name:"TimePicker",setup(e,{expose:_}){const k=r(),v=t(null),d=o((()=>Reflect.get(k,"format")?k.format:"HH:mm:ss")),{focus:h,blur:x}=c(v,d,k);return _({$timePicker:v,focus:h,blur:x}),(e,r)=>(s(),i(m(n),u({ref_key:"timePickerRef",ref:v},e.$attrs),f({_:2},[a(e.$slots,((r,t)=>({name:t,fn:l((()=>[p(e.$slots,t)]))})))]),1040))}}),[["__file","TimePicker.vue"]]);export{k as default};
@@ -5,7 +5,6 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
5
5
  type: ObjectConstructor;
6
6
  default: () => {};
7
7
  };
8
- defList: (ArrayConstructor | StringConstructor)[];
9
8
  source: StringConstructor;
10
9
  limitNum: {
11
10
  default: number;
@@ -70,7 +69,6 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
70
69
  type: ObjectConstructor;
71
70
  default: () => {};
72
71
  };
73
- defList: (ArrayConstructor | StringConstructor)[];
74
72
  source: StringConstructor;
75
73
  limitNum: {
76
74
  default: number;
@@ -197,12 +195,84 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
197
195
  RemoveCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
198
196
  videoImg: string;
199
197
  success: string;
198
+ Draggable: import("vue").DefineComponent<{
199
+ list: {
200
+ type: ArrayConstructor;
201
+ required: boolean;
202
+ default: any;
203
+ };
204
+ modelValue: {
205
+ type: ArrayConstructor;
206
+ required: boolean;
207
+ default: any;
208
+ };
209
+ itemKey: {
210
+ type: (StringConstructor | FunctionConstructor)[];
211
+ required: boolean;
212
+ };
213
+ clone: {
214
+ type: FunctionConstructor;
215
+ default: (original: any) => any;
216
+ };
217
+ tag: {
218
+ type: StringConstructor;
219
+ default: string;
220
+ };
221
+ move: {
222
+ type: FunctionConstructor;
223
+ default: any;
224
+ };
225
+ componentData: {
226
+ type: ObjectConstructor;
227
+ required: boolean;
228
+ default: any;
229
+ };
230
+ }, unknown, {
231
+ error: boolean;
232
+ }, {
233
+ realList(): any;
234
+ getKey(): any;
235
+ }, {
236
+ getUnderlyingVm(domElement: any): any;
237
+ getUnderlyingPotencialDraggableComponent(htmElement: any): any;
238
+ emitChanges(evt: any): void;
239
+ alterList(onList: any): void;
240
+ spliceList(): void;
241
+ updatePosition(oldIndex: any, newIndex: any): void;
242
+ getRelatedContextFromMoveEvent({ to, related }: {
243
+ to: any;
244
+ related: any;
245
+ }): any;
246
+ getVmIndexFromDomIndex(domIndex: any): any;
247
+ onDragStart(evt: any): void;
248
+ onDragAdd(evt: any): void;
249
+ onDragRemove(evt: any): void;
250
+ onDragUpdate(evt: any): void;
251
+ computeFutureIndex(relatedContext: any, evt: any): any;
252
+ onDragMove(evt: any, originalEvent: any): any;
253
+ onDragEnd(): void;
254
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
255
+ move: Function;
256
+ tag: string;
257
+ clone: Function;
258
+ list: unknown[];
259
+ modelValue: unknown[];
260
+ componentData: Record<string, any>;
261
+ } & {
262
+ itemKey?: string | Function | undefined;
263
+ }>, {
264
+ move: Function;
265
+ tag: string;
266
+ clone: Function;
267
+ list: unknown[];
268
+ modelValue: unknown[];
269
+ componentData: Record<string, any>;
270
+ }>;
200
271
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
201
272
  formData: {
202
273
  type: ObjectConstructor;
203
274
  default: () => {};
204
275
  };
205
- defList: (ArrayConstructor | StringConstructor)[];
206
276
  source: StringConstructor;
207
277
  limitNum: {
208
278
  default: number;
@@ -3,7 +3,6 @@ declare const _default: import("vue").DefineComponent<{
3
3
  type: ObjectConstructor;
4
4
  default: () => {};
5
5
  };
6
- defList: (ArrayConstructor | StringConstructor)[];
7
6
  source: StringConstructor;
8
7
  limitNum: {
9
8
  default: number;
@@ -68,7 +67,6 @@ declare const _default: import("vue").DefineComponent<{
68
67
  type: ObjectConstructor;
69
68
  default: () => {};
70
69
  };
71
- defList: (ArrayConstructor | StringConstructor)[];
72
70
  source: StringConstructor;
73
71
  limitNum: {
74
72
  default: number;
@@ -195,12 +193,84 @@ declare const _default: import("vue").DefineComponent<{
195
193
  RemoveCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
196
194
  videoImg: string;
197
195
  success: string;
196
+ Draggable: import("vue").DefineComponent<{
197
+ list: {
198
+ type: ArrayConstructor;
199
+ required: boolean;
200
+ default: any;
201
+ };
202
+ modelValue: {
203
+ type: ArrayConstructor;
204
+ required: boolean;
205
+ default: any;
206
+ };
207
+ itemKey: {
208
+ type: (StringConstructor | FunctionConstructor)[];
209
+ required: boolean;
210
+ };
211
+ clone: {
212
+ type: FunctionConstructor;
213
+ default: (original: any) => any;
214
+ };
215
+ tag: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ move: {
220
+ type: FunctionConstructor;
221
+ default: any;
222
+ };
223
+ componentData: {
224
+ type: ObjectConstructor;
225
+ required: boolean;
226
+ default: any;
227
+ };
228
+ }, unknown, {
229
+ error: boolean;
230
+ }, {
231
+ realList(): any;
232
+ getKey(): any;
233
+ }, {
234
+ getUnderlyingVm(domElement: any): any;
235
+ getUnderlyingPotencialDraggableComponent(htmElement: any): any;
236
+ emitChanges(evt: any): void;
237
+ alterList(onList: any): void;
238
+ spliceList(): void;
239
+ updatePosition(oldIndex: any, newIndex: any): void;
240
+ getRelatedContextFromMoveEvent({ to, related }: {
241
+ to: any;
242
+ related: any;
243
+ }): any;
244
+ getVmIndexFromDomIndex(domIndex: any): any;
245
+ onDragStart(evt: any): void;
246
+ onDragAdd(evt: any): void;
247
+ onDragRemove(evt: any): void;
248
+ onDragUpdate(evt: any): void;
249
+ computeFutureIndex(relatedContext: any, evt: any): any;
250
+ onDragMove(evt: any, originalEvent: any): any;
251
+ onDragEnd(): void;
252
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
253
+ move: Function;
254
+ tag: string;
255
+ clone: Function;
256
+ list: unknown[];
257
+ modelValue: unknown[];
258
+ componentData: Record<string, any>;
259
+ } & {
260
+ itemKey?: string | Function | undefined;
261
+ }>, {
262
+ move: Function;
263
+ tag: string;
264
+ clone: Function;
265
+ list: unknown[];
266
+ modelValue: unknown[];
267
+ componentData: Record<string, any>;
268
+ }>;
198
269
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
199
270
  formData: {
200
271
  type: ObjectConstructor;
201
272
  default: () => {};
202
273
  };
203
- defList: (ArrayConstructor | StringConstructor)[];
204
274
  source: StringConstructor;
205
275
  limitNum: {
206
276
  default: number;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,computed as l,onMounted as i,resolveComponent as s,openBlock as t,createElementBlock as a,withDirectives as r,normalizeClass as n,unref as d,createElementVNode as u,Fragment as p,vShow as m,createCommentVNode as c,createVNode as v,withCtx as f,normalizeStyle as g,toDisplayString as h,createTextVNode as y,withModifiers as k,createBlock as b}from"vue";import C from"xe-utils";import"moment";import{getVodData as U}from"../hooks/vod-data.js";import{VodComputed as L}from"../hooks/vod-computed.js";import V from"../../../../shared/components/player-vod/video-modal.js";import _ from"../vod-upload-modal.js";import{NIcon as D,NButton as O}from"naive-ui";import{PlayCircleSharp as S,PlayCircleOutline as w,RemoveCircleSharp as x}from"@vicons/ionicons5";import j from"../../../../shared/assets/img/video_default_cover.png.js";import F from"../../../../shared/assets/img/video.png.js";import z from"../../../../shared/assets/img/success.png.js";import N from"../../../../_virtual/plugin-vue_export-helper.js";const A={class:"c-upload"},M={class:"chunk-btn-content"},J={class:"c-uploader-btn"},B=["src"],P=u("div",{class:"uploader-text"},[u("p",null,"点击上传"),u("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),E=["src"],T=u("div",{class:"uploader-text"},[u("p",null,"上传视频")],-1),R={class:"vod-wrap c-uploader-preview-wrap"},G={key:0,class:"vod-def-bg vod-uploading"},H={class:"vod-def-bg vod-done"},K=["src"],$=["src"],q={class:"c-icon-wrap"},I={class:"vod-def-bg vod-error"},Q=["src"],W={class:"tooltip-wrap error-wrap"},X=["onClick"];var Y=N(e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},defList:[Array,String],source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:N}){const Y=e,{VodState:Z}=U(),ee=o(Z),oe={},{isShowBtn:le,maskHeight:ie,showPercent:se,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=L(Y,ee,{mainForm:oe});console.log(le.value,"----isShowBtn---",Y.formData.title),l((()=>ue()));const ue=()=>{const{formData:e}=Y;let o=[];if(o="guage"===Y.source?Y.defFileList:null==oe?void 0:oe.handleSysParams(oe.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),C.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),ee.fileList=l,console.log(ee.fileList,"----list---list"),pe(l),l):[]},pe=e=>{if(!Array.isArray(e))return"";const{formData:o,source:l}=Y;let i=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let l=e.vodCoverUrl||o.vodCoverUrl;i.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:l,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(i,"---resList---",Y.formData.title);let s=JSON.stringify(i);"guage"!==l?oe.baseForm.setFieldsValue({[o.val_key]:s}):N("vodFileList",s,Y.formData)},me=(e,o)=>{let l,i;if(e.type&&(i=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!i){let e=l.split(".");i=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:i,src:l}]},ee.videoVisible=!0},ce=()=>{ee.videoVisible=!1},ve=()=>{re.value||(ee.chunkUploadVisible=!0)},fe=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),ee.fileList.push(...o),pe(ee.fileList)},ge=()=>{pe(ee.fileList)};return i((()=>{ue()})),(o,l)=>{const i=s("draggable");return t(),a("div",A,[e.isDetail||Y.isLock?c("v-if",!0):r((t(),a("div",{key:0,class:n(["c-chunk-uploader-btn",{"disable-upload":d(re)}]),onClick:ve},[u("div",M,[u("div",J,["guage"==Y.source?(t(),a(p,{key:0},[u("img",{src:d(F),class:"guage-img"},null,8,B),P],64)):(t(),a(p,{key:1},[u("img",{src:d(F),class:"guage-img"},null,8,E),T],64))])])],2)),[[m,d(le)]]),v(i,{modelValue:ee.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:d(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:f((({element:o,index:l})=>{return[u("div",R,[c(" 上传中 "),"uploading"===o.status?(t(),a("div",G,[c(" TODO: 封面图补充 "),u("div",{class:"uploading-mask",style:g({height:d(ie)(o)})},[u("span",null,h(d(se)(o.percent))+"%",1)],4)])):"done"===o.status?(t(),a(p,{key:1},[c(" 上传完成 "),u("div",H,[u("img",{src:(i=o,i.thumbUrl?i.thumbUrl:j),class:"vod-cover-img"},null,8,K),u("div",{class:n(["tooltip-wrap",{"is-new":o.isNew}])},[u("img",{src:d(z),class:"upload-img"},null,8,$),y(" 上传成功 ")],2),c(" 播放图标 "),u("div",q,[v(d(D),{component:d(S),class:"icon-play theme_filled",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),v(d(D),{component:d(w),class:"icon-play theme_outlined",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],64)):"error"===o.status?(t(),a(p,{key:2},[c(" 上传失败 "),u("div",I,[u("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,Q),u("div",W,[u("span",null,h(o.message?o.message:"上传失败,继续上传?"),1),v(d(O),{size:"small",onClick:k((e=>{}),["prevent","stop"])},{default:f((()=>[y("确定")])),_:2},1032,["onClick"])])])],64)):c("v-if",!0),!["done","error"].includes(o.status)||d(re)||e.isDetail?c("v-if",!0):(t(),a("div",{key:3,onClick:k((e=>{return o=l,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[v(d(D),{class:"pre-delete",component:d(x)},null,8,["component"])],8,X))])];var i})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(t(),b(d(V),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):c("v-if",!0),v(d(_),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:d(ne),maxLength:d(de),propsCategoryMap:d(te),defaultList:ee.fileList,getChunkUploadConfig:e.getChunkUploadConfig,onGetSumbitList:fe},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig"])])}}}),[["__file","vod-chunk-upload.vue"]]);export{Y as default};
1
+ import{defineComponent as e,reactive as o,computed as l,onMounted as s,openBlock as i,createElementBlock as t,withDirectives as a,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,vShow as p,createCommentVNode as m,createVNode as c,withCtx as v,normalizeStyle as f,toDisplayString as g,createTextVNode as h,withModifiers as k,createBlock as y}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as _,NButton as D}from"naive-ui";import{PlayCircleSharp as x,PlayCircleOutline as O,RemoveCircleSharp as w}from"@vicons/ionicons5";import S from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import F from"../../../../shared/assets/img/success.png.js";import z from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import N from"../../../../_virtual/plugin-vue_export-helper.js";const M={class:"c-upload"},A={class:"chunk-btn-content"},J={class:"c-uploader-btn"},B=["src"],E=d("div",{class:"uploader-text"},[d("p",null,"点击上传"),d("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),P=["src"],T=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),R={class:"vod-wrap c-uploader-preview-wrap"},G={key:0,class:"vod-def-bg vod-uploading"},H={class:"vod-def-bg vod-done"},K=["src"],$=["src"],q={class:"c-icon-wrap"},I={class:"vod-def-bg vod-error"},Q=["src"],W={class:"tooltip-wrap error-wrap"},X=["onClick"];var Y=N(e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:N}){const Y=e,{VodState:Z}=C(),ee=o(Z),oe={},{isShowBtn:le,maskHeight:se,showPercent:ie,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=U(Y,ee,{mainForm:oe});console.log(le.value,"----isShowBtn---",Y.formData.title),l((()=>ue()));const ue=()=>{const{formData:e}=Y;let o=[];if(o="guage"===Y.source?Y.defFileList:null==oe?void 0:oe.handleSysParams(oe.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let l=[];return Array.isArray(o)&&(l=[...o]),b.isJSON(o)&&(l=JSON.parse(o)),Array.isArray(l)?(l.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),ee.fileList=l,console.log(ee.fileList,"----list---list"),pe(l),l):[]},pe=e=>{if(!Array.isArray(e))return"";const{formData:o,source:l}=Y;let s=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let l=e.vodCoverUrl||o.vodCoverUrl;s.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:l,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(s,"---resList---",Y.formData.title);let i=JSON.stringify(s);"guage"!==l?oe.baseForm.setFieldsValue({[o.val_key]:i}):N("vodFileList",i,Y.formData)},me=(e,o)=>{let l,s;if(e.type&&(s=e.type),e.url||e.videoUrl){if(l=e.url||e.videoUrl,!s){let e=l.split(".");s=`video/${e[e.length-1]}`}}else l=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:s,src:l}]},ee.videoVisible=!0},ce=()=>{ee.videoVisible=!1},ve=()=>{re.value||(ee.chunkUploadVisible=!0)},fe=e=>{let o=[];e.forEach((e=>{let l=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:l,status:"done",uid:(-Math.random()).toString()})})),ee.fileList.push(...o),pe(ee.fileList)},ge=()=>{pe(ee.fileList)};return s((()=>{ue()})),(o,l)=>(i(),t("div",M,[e.isDetail||Y.isLock?m("v-if",!0):a((i(),t("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(re)}]),onClick:ve},[d("div",A,[d("div",J,["guage"==Y.source?(i(),t(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,B),E],64)):(i(),t(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,P),T],64))])])],2)),[[p,n(le)]]),c(n(z),{modelValue:ee.fileList,"onUpdate:modelValue":l[0]||(l[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:n(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:v((({element:o,index:l})=>{return[d("div",R,[m(" 上传中 "),"uploading"===o.status?(i(),t("div",G,[m(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:f({height:n(se)(o)})},[d("span",null,g(n(ie)(o.percent))+"%",1)],4)])):"done"===o.status?(i(),t(u,{key:1},[m(" 上传完成 "),d("div",H,[d("img",{src:(s=o,s.thumbUrl?s.thumbUrl:S),class:"vod-cover-img"},null,8,K),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(F),class:"upload-img"},null,8,$),h(" 上传成功 ")],2),m(" 播放图标 "),d("div",q,[c(n(_),{component:n(x),class:"icon-play theme_filled",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),c(n(_),{component:n(O),class:"icon-play theme_outlined",onClick:k((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(i(),t(u,{key:2},[m(" 上传失败 "),d("div",I,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,Q),d("div",W,[d("span",null,g(o.message?o.message:"上传失败,继续上传?"),1),c(n(D),{size:"small",onClick:k((e=>{}),["prevent","stop"])},{default:v((()=>[h("确定")])),_:2},1032,["onClick"])])])],2112)):m("v-if",!0),!["done","error"].includes(o.status)||n(re)||e.isDetail?m("v-if",!0):(i(),t("div",{key:3,onClick:k((e=>{return o=l,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[c(n(_),{class:"pre-delete",component:n(w)},null,8,["component"])],8,X))])];var s})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(i(),y(n(L),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):m("v-if",!0),c(n(V),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":l[1]||(l[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:n(ne),maxLength:n(de),propsCategoryMap:n(te),defaultList:ee.fileList,getChunkUploadConfig:e.getChunkUploadConfig,onGetSumbitList:fe},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig"])]))}}),[["__file","vod-chunk-upload.vue"]]);export{Y as default};
package/es/env.d.ts CHANGED
@@ -22,3 +22,4 @@ declare module '*.vue' {
22
22
  }
23
23
 
24
24
  declare module '*.js';
25
+
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  isAlias?: boolean | undefined;
42
42
  };
43
43
  isDisabledTooltip: import("vue").Ref<boolean>;
44
- curContent: import("vue").ComputedRef<string>;
44
+ curContent: import("vue").ComputedRef<string | number>;
45
45
  $refName: any;
46
46
  onMouseOver: (str: any) => void;
47
47
  onMouseOut: () => void;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as l,openBlock as o,createElementBlock as i,createVNode as a,unref as r,withCtx as n,createElementVNode as s,normalizeClass as u,renderSlot as f,toDisplayString as p,createTextVNode as m}from"vue";import{NTooltip as c}from"naive-ui";import v from"xe-utils";import"moment";import d from"../../../_virtual/plugin-vue_export-helper.js";const _={class:"text-over-tooltip-components"};var x=d(e({__name:"TextOverTooltip",props:{content:null,className:null,refName:null,effect:{default:"dark"},placement:{default:"top"},tooltipTitle:{default:""},isAlias:{type:Boolean}},setup(e){const d=e;let x=t(!1);const N=l((()=>{let e=d.tooltipTitle||d.content||"";return v.isNumber(e)?e.toString():e})),T=t(null),h=()=>{x.value=!1};return(t,l)=>(o(),i("div",_,[a(r(c),{effect:e.effect,show:r(x),placement:e.placement},{trigger:n((()=>[s("div",{class:u(["ellipsis",e.className]),onMouseover:l[0]||(l[0]=t=>(e=>{if(d.isAlias)return void(x.value=!0);let t=T.value.parentNode.offsetWidth,l=T.value.offsetWidth;x.value=l>t})(e.refName)),onMouseout:h},[s("i",{ref:e=>{e&&(T.value=e)}},[f(t.$slots,"default"),s("i",null,p(e.content),1)],512)],34)])),default:n((()=>[m(" "+p(r(N)),1)])),_:3},8,["effect","show","placement"])]))}}),[["__file","TextOverTooltip.vue"]]);export{x as default};
1
+ import{defineComponent as e,ref as t,computed as l,openBlock as o,createElementBlock as i,createVNode as a,unref as r,withCtx as s,createElementVNode as u,normalizeClass as n,renderSlot as p,toDisplayString as f,createTextVNode as m}from"vue";import{NTooltip as v}from"naive-ui";import"xe-utils";import"moment";import c from"../../utils/vexutilsExpand.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const x={class:"text-over-tooltip-components"};var _=d(e({__name:"TextOverTooltip",props:{content:null,className:null,refName:null,effect:{default:"dark"},placement:{default:"top"},tooltipTitle:{default:""},isAlias:{type:Boolean}},setup(e){const d=e;let _=t(!1);const N=l((()=>{let e=d.tooltipTitle||d.content||"";return c.isNumber(e)?e.toString():e})),T=t(null),h=()=>{_.value=!1};return(t,l)=>(o(),i("div",x,[a(r(v),{effect:e.effect,show:r(_),placement:e.placement},{trigger:s((()=>[u("div",{class:n(["ellipsis",e.className]),onMouseover:l[0]||(l[0]=t=>(e=>{if(d.isAlias)return void(_.value=!0);let t=T.value.parentNode.offsetWidth,l=T.value.offsetWidth;_.value=l>t})(e.refName)),onMouseout:h},[u("i",{ref:e=>{e&&(T.value=e)}},[p(t.$slots,"default"),u("i",null,f(e.content),1)],512)],34)])),default:s((()=>[m(" "+f(r(N)),1)])),_:3},8,["effect","show","placement"])]))}}),[["__file","TextOverTooltip.vue"]]);export{_ as default};
@@ -1,2 +1,3 @@
1
1
  export * from './useTheme';
2
2
  export * from './useDateTime';
3
+ export * from './useAsyncQueue';
@@ -1 +1 @@
1
- export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";
1
+ export{useTheme}from"./useTheme.js";export{useDateTime}from"./useDateTime.js";export{AsyncQueue}from"./useAsyncQueue.js";
@@ -1,11 +1,3 @@
1
- import { AnyObject, UndefinedAble } from '../../../../../es/shared/types';
2
- import { ComputedRef } from 'vue';
3
- import { FormAsyncQueueItem } from '../types';
4
- import { RequestInstance } from '../../../../../es/components/form-render';
5
- declare type ProcessorOption = Partial<{
6
- afterRequest(key: string, payload?: unknown): AnyObject[];
7
- beforeRequest(key: string, params?: unknown): UndefinedAble<AnyObject> | void;
8
- }>;
9
1
  interface EntryCallback {
10
2
  (err?: any, result?: any): void;
11
3
  }
@@ -38,10 +30,4 @@ export declare class AsyncQueue<T = any, K = any, R = any> {
38
30
  private _startProcess;
39
31
  private _handlerResult;
40
32
  }
41
- export declare function useAsyncQueue(requestInstance: ComputedRef<UndefinedAble<RequestInstance>>): {
42
- create: (parallelism?: number, option?: ProcessorOption) => AsyncQueue<FormAsyncQueueItem, any, {
43
- label: string;
44
- value: unknown;
45
- }[]>;
46
- };
47
33
  export {};
@@ -0,0 +1 @@
1
+ import{cloneDeep as s}from"lodash-es";class e{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class t{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class i{constructor({name:s,processor:e,getKey:i,parallelism:r}){this._queued=new t,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=i,this.parallelism=r||100}add(t,i){if(this._stopped)return i(new Error("Queue was stopped"));const r=this.getKey(t);if(this._entries.has(r)){const e=this._entries.get(r);return void(1===e.state?setTimeout((()=>{i&&i(s(e.error),s(e.result))})):e.callbacks?e.callbacks.push(i):e.callbacks=[i])}const c=new e(t,r,i);this._entries.set(r,c),this._queued.enqueue(c),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,i)=>{s&&t(s),e(i)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(e,t,i){const r=e.callback;e.state=1,e.callback=void 0,e.result=s(i),e.error=s(t),this._activeTasks--,r&&r(t,i),e.callbacks&&e.callbacks.forEach((s=>s(t,i))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}export{i as AsyncQueue};
@@ -1,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { Ref, ComputedRef } from 'vue';
2
2
  import { AnyObject } from '../../../es/shared/types';
3
- export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, formatRef: Ref<string>): {
3
+ export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, formatRef: ComputedRef<string | [string, string]>, attrs: AnyObject): {
4
4
  focus: () => any;
5
5
  blur: () => any;
6
6
  };
@@ -0,0 +1 @@
1
+ import{computed as e,unref as t}from"vue";import{useDebounceFn as n,useEventListener as l}from"@vueuse/core";import{isValid as i}from"date-fns";function o(o,s,u){const r=n((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),c=e((()=>{var e;return null==(e=o.value)?void 0:e.$el})),a=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;u[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=u[n])}(e,t))),e}));function d(e,n,l){const i=e.value;if(!i)return;const o=e.selectionEnd||0,u=i.length;let r=0,c=0,a=0,d="",f=0;for(;r<u;){const e=i[r++];if(/\d/.test(e)&&(d+=e),r===o){a=d.length;const e=i.slice(r).match(/^\d+/);f=e?e[0].length:0}}const v=t(s),g=Array.isArray(v)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?v[1]:v[0]:v;let m="",p=0,h=0;for(r=0;r<g.length&&(l||!(c>=d.length));){const e=g[r++];if(/[yMdHms]/.test(e)?m+=d[c++]||"0":m+=e,n&&c===a){a=-1,p=m.length,h=p;let e=g.slice(r).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(m+=d.slice(c,c+f),c+=f),r+=e[0].length):(e=g.slice(r).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(p+=e[1].length,h=p+e[2].length))}}const b=m!==i;if(b){e.value=m;const t=new InputEvent("input");e.dispatchEvent(t)}return n&&(p=p||m.length+1,h=h||m.length+1,e.setSelectionRange(p,h)),b}return l(c,"input",(function(e){const t=e.target;if(!t.value||!Reflect.get(t,"_f_"))return;Reflect.set(t,"_f_",0),d(t,!0)&&(e.preventDefault(),e.stopPropagation())}),!0),l(c,"keydown",(function(e){const{key:t,target:n}=e;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t){d(n,!1,!0);const e=null==n?void 0:n.value,t=Reflect.get(u,"type")||"";e&&!t.includes("range")&&i(new Date(e))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=a.value;if(null==n?void 0:n(e.getTime()))return;const s=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,u=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,r=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==s?void 0:s(e.getHours()))return;if(null==u?void 0:u(e.getMinutes()))return;if(null==r?void 0:r(e.getMinutes()))return;return!0}(new Date(e))&&(n.value="",n.dispatchEvent(new InputEvent("input")))}}),!0),l(c,"click",r,!0),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};