cnhis-design-vue 3.1.42-beta.7 → 3.1.42-beta.71

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 (279) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/base-search/index.d.ts +2 -2
  4. package/es/components/base-search/src/index.vue.d.ts +2 -2
  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 +87 -46
  49. package/es/components/form-config/src/FormConfig.vue.d.ts +87 -46
  50. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  51. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +29 -15
  52. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +46 -25
  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 +19 -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 +29 -15
  60. package/es/components/form-render/index.js +1 -1
  61. package/es/components/form-render/src/FormRender.vue.d.ts +29 -15
  62. package/es/components/form-render/src/FormRender.vue.js +1 -1
  63. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +29 -15
  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/jsonCombination/index.js +1 -1
  69. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
  70. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  71. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  72. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  73. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +38 -2
  74. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  75. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
  76. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  77. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +36 -0
  78. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  79. package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
  80. package/es/components/form-render/src/components/renderer/select.js +1 -1
  81. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  82. package/es/components/form-render/src/hooks/index.js +1 -1
  83. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
  84. package/es/components/form-render/src/hooks/useBusinessBinding.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/useFormEvent.d.ts +1 -1
  91. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  92. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
  93. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  94. package/es/components/form-render/src/types/fieldItem.d.ts +11 -5
  95. package/es/components/form-render/src/types/index.d.ts +4 -3
  96. package/es/components/form-render/style/index.css +1 -1
  97. package/es/components/iho-table/index.d.ts +24 -5
  98. package/es/components/iho-table/src/IhoTable.vue.d.ts +24 -5
  99. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  100. package/es/components/iho-table/src/constants/index.d.ts +3 -2
  101. package/es/components/iho-table/src/constants/index.js +1 -1
  102. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
  103. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  104. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
  105. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  106. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
  107. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
  108. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
  109. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
  110. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  111. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
  112. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  113. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  114. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
  115. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
  116. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
  117. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
  118. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  119. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  120. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  121. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  122. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  123. package/es/components/iho-table/src/plugins/index.js +1 -1
  124. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  125. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  126. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  127. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  128. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
  129. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  130. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  131. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
  132. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  133. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -1
  134. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  135. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  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/varialbleHeightPlugin/index.js +1 -1
  140. package/es/components/iho-table/src/types/index.d.ts +27 -5
  141. package/es/components/iho-table/src/types/pluginType.d.ts +12 -22
  142. package/es/components/iho-table/src/utils/index.d.ts +8 -3
  143. package/es/components/iho-table/src/utils/index.js +1 -1
  144. package/es/components/iho-table/style/iconfont.ttf +0 -0
  145. package/es/components/iho-table/style/index.css +1 -1
  146. package/es/components/index.css +1 -1
  147. package/es/components/index.d.ts +1 -0
  148. package/es/components/index.js +1 -1
  149. package/es/components/info-header/index.d.ts +63 -34
  150. package/es/components/info-header/src/InfoHeader.vue.d.ts +63 -34
  151. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  152. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  153. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  154. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  155. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  156. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  157. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +32 -18
  158. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +30 -15
  159. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  160. package/es/components/info-header/style/index.css +1 -1
  161. package/es/components/keyboard/index.d.ts +1 -1
  162. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  163. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  164. package/es/components/keyboard/src/constants/index.js +1 -1
  165. package/es/components/keyboard/style/index.css +1 -1
  166. package/es/components/map/index.d.ts +2 -14
  167. package/es/components/map/src/Map.vue.d.ts +1 -14
  168. package/es/components/map/src/types/index.d.ts +19 -0
  169. package/es/components/map/src/types/index.js +1 -0
  170. package/es/components/recommend-search/index.d.ts +13 -128
  171. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
  172. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  173. package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
  174. package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
  175. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
  176. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  177. package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
  178. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  179. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
  180. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  181. package/es/components/recommend-search/src/constant/index.d.ts +3 -0
  182. package/es/components/recommend-search/src/constant/index.js +1 -1
  183. package/es/components/scale-view/index.d.ts +38 -224
  184. package/es/components/scale-view/index.js +1 -1
  185. package/es/components/scale-view/src/ScaleView.vue.d.ts +37 -224
  186. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  187. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
  188. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  189. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
  190. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  191. package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
  192. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  193. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
  194. package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
  195. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  196. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +8 -8
  197. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  198. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  199. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
  200. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  201. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
  202. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
  203. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  204. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
  205. package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
  206. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
  207. package/es/components/scale-view/src/hooks/use-event.js +1 -1
  208. package/es/components/scale-view/src/types/index.d.ts +7 -0
  209. package/es/components/scale-view/src/types/index.js +1 -0
  210. package/es/components/scale-view/style/index.css +1 -1
  211. package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
  212. package/es/components/search-cascader/index.d.ts +12 -1
  213. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
  214. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  215. package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
  216. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  217. package/es/components/search-cascader/src/constants/index.d.ts +1 -0
  218. package/es/components/search-cascader/src/constants/index.js +1 -1
  219. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  220. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  221. package/es/components/select-label/style/index.css +1 -1
  222. package/es/components/select-person/index.d.ts +58 -10
  223. package/es/components/select-person/src/SearchMultiple.vue.d.ts +125 -0
  224. package/es/components/select-person/src/SelectPerson.vue.d.ts +44 -8
  225. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  226. package/es/components/select-person/src/utils/index.js +1 -1
  227. package/es/components/select-person/style/index.css +1 -1
  228. package/es/components/shortcut-setter/index.d.ts +34 -18
  229. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +34 -18
  230. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  231. package/es/components/steps-wheel/src/constants/index.js +1 -1
  232. package/es/components/steps-wheel/style/index.css +1 -1
  233. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  234. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  235. package/es/components/table-filter/src/types/index.d.ts +11 -2
  236. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  237. package/es/components/vod-chunk-upload/index.d.ts +73 -3
  238. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
  239. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  240. package/es/env.d.ts +25 -24
  241. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  242. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  243. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  244. package/es/shared/{mixins → hooks}/index.js +1 -1
  245. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  246. package/es/shared/hooks/useAsyncQueue.js +1 -0
  247. package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
  248. package/es/shared/hooks/useDateTime.js +1 -0
  249. package/es/shared/package.json.js +1 -0
  250. package/es/shared/utils/anime.d.ts +1 -1
  251. package/es/shared/utils/anime.js +1 -1
  252. package/es/shared/utils/index.d.ts +3 -14
  253. package/es/shared/utils/index.js +1 -1
  254. package/es/shared/utils/vexutils.d.ts +2 -2
  255. package/es/shared/utils/vexutils.js +1 -1
  256. package/es/shared/utils/vexutilsExpand.d.ts +254 -0
  257. package/es/shared/utils/vexutilsExpand.js +1 -0
  258. package/package.json +2 -2
  259. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  260. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  261. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  262. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  263. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  264. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  265. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
  266. package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  267. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  268. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  269. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  270. package/es/shared/mixins/useDateTime.js +0 -1
  271. package/es/shared/utils/colorLog.d.ts +0 -31
  272. package/es/shared/utils/colorLog.js +0 -1
  273. package/es/shared/utils/tapable/index.d.ts +0 -139
  274. /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
  275. /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
  276. /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
  277. /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
  278. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  279. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -15,6 +15,7 @@ declare type IWordBookChild<T> = {
15
15
  declare type ITag = {
16
16
  key: IKey;
17
17
  name: string;
18
+ [key: string]: any;
18
19
  };
19
20
  declare const _default: import("vue").DefineComponent<{
20
21
  defaultList: {
@@ -53,8 +54,12 @@ declare const _default: import("vue").DefineComponent<{
53
54
  type: BooleanConstructor;
54
55
  default: boolean;
55
56
  };
57
+ treeSetting: {
58
+ type: PropType<ITreeOption>;
59
+ default: () => {};
60
+ };
56
61
  queryLoadChildData: {
57
- type: PropType<(node: TreeOption) => Promise<void>>;
62
+ type: PropType<(node: TreeOption) => Promise<AnyObject>>;
58
63
  default: undefined;
59
64
  };
60
65
  queryTreeSearch: {
@@ -99,8 +104,12 @@ declare const _default: import("vue").DefineComponent<{
99
104
  type: BooleanConstructor;
100
105
  default: boolean;
101
106
  };
107
+ treeSetting: {
108
+ type: PropType<ITreeOption>;
109
+ default: () => {};
110
+ };
102
111
  queryLoadChildData: {
103
- type: PropType<(node: TreeOption) => Promise<void>>;
112
+ type: PropType<(node: TreeOption) => Promise<AnyObject>>;
104
113
  default: undefined;
105
114
  };
106
115
  queryTreeSearch: {
@@ -109,8 +118,9 @@ declare const _default: import("vue").DefineComponent<{
109
118
  };
110
119
  }>> & {
111
120
  onCheck?: ((...args: any[]) => any) | undefined;
121
+ onCheckWithLevel?: ((...args: any[]) => any) | undefined;
112
122
  }>>;
113
- emit: (event: "check", ...args: any[]) => void;
123
+ emit: (event: "check" | "checkWithLevel", ...args: any[]) => void;
114
124
  keyword: import("vue").Ref<string>;
115
125
  checkedAll: import("vue").Ref<boolean>;
116
126
  checkedKeys: import("vue").Ref<IKey[]>;
@@ -127,21 +137,40 @@ declare const _default: import("vue").DefineComponent<{
127
137
  suffix?: (() => import("vue").VNodeChild) | undefined;
128
138
  }[]>;
129
139
  tagData: import("vue").Ref<{
140
+ [x: string]: any;
130
141
  key: IKey;
131
142
  name: string;
132
143
  }[]>;
133
- temp: ITreeOption[];
144
+ initTagData: import("vue").Ref<{
145
+ [x: string]: any;
146
+ key: IKey;
147
+ name: string;
148
+ }[]>;
149
+ isSearch: import("vue").Ref<boolean>;
150
+ temp: TreeOption[];
134
151
  allCheckedKeys: IKey[];
135
152
  isRemote: import("vue").ComputedRef<boolean>;
153
+ checkStrategyResult: import("vue").ComputedRef<any>;
136
154
  init: () => void;
155
+ getallCheckedKeysWithChild: (item: TreeOption) => void;
156
+ getallCheckedKeysWithParent: (item: TreeOption) => void;
157
+ queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
137
158
  setDisabled: (data: TreeOption) => void;
138
159
  renderLabel: ({ option }: {
139
160
  option: TreeOption;
140
161
  }) => JSX.Element;
141
162
  getLabelName: (option: TreeOption) => unknown;
163
+ transformData: (trees: TreeOption[]) => TreeOption[];
164
+ calculateRootItems: (trees: TreeOption[], items: TreeOption[]) => TreeOption[];
165
+ transformParentNodeName: (trees: TreeOption[], temp: any) => TreeOption[];
142
166
  setAllCheckedKeys: (tree: TreeOption[]) => void;
167
+ setAllCheckedKeysWithChild: (tree: TreeOption[]) => void;
168
+ setAllCheckedKeysWithParent: (tree: TreeOption[]) => void;
143
169
  onSearch: () => Promise<void>;
170
+ onClear: () => void;
144
171
  setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
172
+ setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
173
+ setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
145
174
  checkedAllChange: (checked: boolean) => void;
146
175
  uniq: (arr: ITag[]) => ITag[];
147
176
  setTagData: (tree: TreeOption[]) => void;
@@ -149,6 +178,7 @@ declare const _default: import("vue").DefineComponent<{
149
178
  setCheckedAll: () => void;
150
179
  clearAll: () => void;
151
180
  closeTag: (tag: ITag) => void;
181
+ notifyCheck: (keys: Array<IKey>) => void;
152
182
  NButton: any;
153
183
  NInput: any;
154
184
  NInputGroup: import("vue").DefineComponent<{
@@ -218,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
218
248
  readonly privateShow: boolean;
219
249
  }>;
220
250
  CloseCircleSharp: 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<{}>>, {}>;
221
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "check"[], "check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
251
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
222
252
  defaultList: {
223
253
  type: PropType<(IKey | ITag)[]>;
224
254
  default: () => never[];
@@ -255,8 +285,12 @@ declare const _default: import("vue").DefineComponent<{
255
285
  type: BooleanConstructor;
256
286
  default: boolean;
257
287
  };
288
+ treeSetting: {
289
+ type: PropType<ITreeOption>;
290
+ default: () => {};
291
+ };
258
292
  queryLoadChildData: {
259
- type: PropType<(node: TreeOption) => Promise<void>>;
293
+ type: PropType<(node: TreeOption) => Promise<AnyObject>>;
260
294
  default: undefined;
261
295
  };
262
296
  queryTreeSearch: {
@@ -265,9 +299,9 @@ declare const _default: import("vue").DefineComponent<{
265
299
  };
266
300
  }>> & {
267
301
  onCheck?: ((...args: any[]) => any) | undefined;
302
+ onCheckWithLevel?: ((...args: any[]) => any) | undefined;
268
303
  }, {
269
304
  data: ITreeOption[];
270
- multiple: boolean;
271
305
  defaultList: (IKey | ITag)[];
272
306
  searchPlaceholder: string;
273
307
  searchButtonText: string;
@@ -275,7 +309,9 @@ declare const _default: import("vue").DefineComponent<{
275
309
  wordbookChild: IWordBookChild<ITreeOption>;
276
310
  showCount: boolean;
277
311
  showClear: boolean;
278
- queryLoadChildData: (node: TreeOption) => Promise<void>;
312
+ multiple: boolean;
313
+ treeSetting: ITreeOption;
314
+ queryLoadChildData: (node: TreeOption) => Promise<AnyObject>;
279
315
  queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
280
316
  }>;
281
317
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,computed as t,watch as a,openBlock as n,createBlock as o,unref as u,withCtx as d,createVNode as c,withKeys as r,createTextVNode as i,toDisplayString as s,withDirectives as v,vShow as h,createCommentVNode as p,createElementBlock as f,createElementVNode as y,Fragment as k,renderList as b}from"vue";import{NGrid as g,NGi as m,NSpace as _,NInputGroup as w,NInput as x,NButton as C,NCheckbox as L,NTree as j,NIcon as q,NTooltip as B}from"naive-ui";import{CloseCircleSharp as P}from"@vicons/ionicons5";import{filterTree as S,getExpandedKeys as U}from"./utils/index.js";import{cloneDeep as D}from"lodash-es";const T={key:0},K={class:"c-select-person__scroll",style:{height:"342px"}};var $=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check"],setup(e,{emit:$}){const A=e,E=l(""),F=l(!1),I=l([]),O=l([]),N=l([]),R=l([]),z=D(A.data);let G=[];const H=t((()=>!!A.queryLoadChildData));function J(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function M({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||H.value&&!(null==e?void 0:e.isLeaf)){const l=A.wordbook.user_count_obj&&e[A.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return c("span",null,[`${e.title}${t}`])}return c(B,{trigger:"hover"},{default:()=>c("span",null,[e.title]),trigger:()=>c("span",null,[e.title])})}function Q(e){return e[A.wordbookChild.user_name_obj]||e[A.wordbook.parent_name_obj]||e.orgName||e.title||""}function V(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t];(null==(l=a.children)?void 0:l.length)&&V(a.children),a.disabled||a.children||G.push(a.key)}}async function W(){H.value?N.value=await A.queryTreeSearch(E.value):(N.value=S(z,E.value),G=[],V(N.value),le()),O.value=N.value.length&&E.value?U(N.value):[]}function X(e,l){for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&(!a.children||a.isLeaf)&&(l&&!I.value.includes(a.key)&&I.value.push(a.key),!l)){const e=I.value.findIndex((e=>e===a.key));I.value.splice(e,1)}a.children&&X(a.children,l)}}function Y(e){X(N.value,e)}function Z(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t];I.value.includes(a.key)&&R.value.push({key:a.key,name:a.title}),(null==(l=a.children)?void 0:l.length)&&Z(a.children)}}function ee(e){I.value=e}function le(){F.value=G.every((e=>R.value.findIndex((l=>l.key===e))>-1))}function te(){I.value=[]}return function e(l){var t,a;for(let n=0,o=l.length;n<o;n++){const o=l[n];o.title=Q(o),o.key||(o.key=o[A.wordbookChild.user_id_obj]||o[A.wordbook.parent_id_obj]||Date.now()),(null==(t=o.children)?void 0:t.length)?(e(o.children),J(o)):0===(null==(a=o.children)?void 0:a.length)&&Reflect.deleteProperty(o,"children"),o.disabled||o.children||G.push(o.key)}}(z),N.value=z,A.defaultList.length>0&&(H.value?(A.defaultList.forEach((e=>I.value.push(e.key))),R.value=D(A.defaultList)):(A.defaultList.forEach((e=>I.value.push(e))),Z(z))),a((()=>I),(e=>{R.value=[],e.value.length&&Z(H.value?N.value:z),le(),$("check",e.value)}),{deep:!0}),(l,t)=>(n(),o(u(g),{cols:2,class:"c-select-person"},{default:d((()=>[c(u(m),null,{default:d((()=>[c(u(_),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:d((()=>[c(u(w),{style:{"margin-bottom":"12px"}},{default:d((()=>[c(u(x),{clearable:"",value:E.value,"onUpdate:value":t[0]||(t[0]=e=>E.value=e),placeholder:e.searchPlaceholder,onKeyup:r(W,["enter"])},null,8,["value","placeholder","onKeyup"]),c(u(C),{type:"primary",onClick:W},{default:d((()=>[i(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple?v((n(),o(u(L),{key:0,checked:F.value,"onUpdate:checked":[t[1]||(t[1]=e=>F.value=e),Y]},{default:d((()=>[i(" 全选 ")])),_:1},8,["checked"])),[[h,u(G).length<1e3]]):p("v-if",!0),c(u(j),{"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":I.value,"expanded-keys":O.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>O.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":I.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>I.value=e),data:N.value,"check-strategy":"child","render-label":M,"onUpdate:checkedKeys":ee,onLoad:e.queryLoadChildData},null,8,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data","onLoad"])])),_:1})])),_:1}),c(u(m),null,{default:d((()=>[c(u(_),{vertical:"",style:{"padding-left":"12px"}},{default:d((()=>[c(u(_),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:d((()=>[e.showCount?(n(),f("span",T,"已选择:"+s(R.value.length),1)):p("v-if",!0),e.showClear?(n(),f("span",{key:1,class:"c-select-person__clear-btn",onClick:te},"清空")):p("v-if",!0)])),_:1}),y("div",K,[(n(!0),f(k,null,b(R.value,(e=>(n(),f("span",{class:"c-select-person__tag-item",key:e.key},[i(s(e.name)+" ",1),c(u(q),{class:"tag-close",component:u(P),onClick:l=>function(e){I.value=I.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{$ as default};
1
+ import{defineComponent as e,ref as l,computed as t,watch as n,openBlock as a,createBlock as u,unref as i,withCtx as r,createVNode as c,withKeys as o,createTextVNode as d,toDisplayString as s,withDirectives as h,vShow as v,createCommentVNode as p,mergeProps as f,createElementBlock as y,createElementVNode as k,Fragment as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as w,NInputGroup as C,NInput as x,NButton as S,NCheckbox as L,NTree as T,NIcon as j,NTooltip as N}from"naive-ui";import{CloseCircleSharp as $}from"@vicons/ionicons5";import{filterTree as I,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as q}from"lodash-es";const B={key:0},K={class:"c-select-person__scroll",style:{height:"342px"}};var P=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{emit:P}){const U=e,E=l(""),O=l(!1),A=l([]),F=l([]),R=l([]),W=l([]),M=l([]),z=l(!1),G=q(((H=U.data).forEach((e=>{var l;if(null==(l=e.children)?void 0:l.length){const l=te(e.children,[]);e.innerItemsNum=l.length}})),ne(H,"")));var H;let J=[];const Q=t((()=>!!U.queryLoadChildData));function V(e){e.disabled||e.children||!e.key||J.push(e.key)}function X(e){e.disabled||e.tempTitle||!e.key||J.push(e.key)}async function Y(e){if(U.queryLoadChildData){const l=await U.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function Z(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function ee({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||Q.value&&!(null==e?void 0:e.isLeaf)){const l=U.wordbook.user_count_obj&&e[U.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return c("span",null,[`${e.title}${t}`])}return c(N,{trigger:"hover"},{default:()=>c("span",null,[e.title]),trigger:()=>c("span",null,[e.title])})}function le(e){return e[U.wordbookChild.user_name_obj]||e[U.wordbook.parent_name_obj]||e.orgName||e.title||""}function te(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?te(e.children,l):l.push(e)})),l}function ne(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=le(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?ne(null==e?void 0:e.children,a):[]}})):[]}async function ae(){z.value=!!E.value.trim(),Q.value?R.value=await U.queryTreeSearch(E.value):R.value=I(G,E.value),F.value=R.value.length&&E.value?D(R.value):[]}function ue(){setTimeout((()=>{ae()}))}function ie(e,l){var t,n;switch(null!=(n=null==(t=null==U?void 0:U.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!A.value.includes(n.key)&&A.value.push(n.key),!l)){const e=A.value.findIndex((e=>e===n.key));A.value.splice(e,1)}n.children&&ie(n.children,l)}}(e,l);break;case"parent":!function(e,l){A.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!A.value.includes(n.key)&&A.value.push(n.key),!l)){const e=A.value.findIndex((e=>e===n.key));A.value.splice(e,1)}}}(e,l)}}function re(e){ie(R.value,e)}function ce(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=M.value.map((e=>e.key));A.value.includes(n.key)&&!a.includes(n.key)&&W.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum}),(null==(l=n.children)?void 0:l.length)&&ce(n.children)}}function oe(e){A.value=e}function de(){A.value=[]}return t((()=>{var e,l;return null!=(l=null==(e=null==U?void 0:U.treeSetting)?void 0:e.checkStrategy)?l:"child"})),function e(l,t){var n,a,u,i;for(let r=0,c=l.length;r<c;r++){const c=l[r];switch(c.title=le(c),c.parentNode=t,c.key||(c.key=c[U.wordbookChild.user_id_obj]||c[U.wordbook.parent_id_obj]||Date.now()),(null==(n=c.children)?void 0:n.length)?(e(c.children,c),Z(c)):0===(null==(a=c.children)?void 0:a.length)&&Reflect.deleteProperty(c,"children"),null!=(i=null==(u=null==U?void 0:U.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":V(c);break;case"parent":X(c)}}}(G,null),R.value=G,U.defaultList.length>0&&(Q.value?(U.defaultList.forEach((e=>A.value.push(e.key))),W.value=q(U.defaultList),M.value=q(U.defaultList)):(U.defaultList.forEach((e=>A.value.push(e))),ce(G))),n((()=>A),(e=>{W.value=M.value.filter((l=>e.value.includes(l.key))),e.value.length&&ce(Q.value?R.value:G),O.value=J.every((e=>W.value.findIndex((l=>l.key===e))>-1));const l=W.value.filter((l=>e.value.includes(l.key)));P("check",e.value),P("checkWithLevel",l)}),{deep:!0}),(l,t)=>(a(),u(i(b),{cols:2,class:"c-select-person"},{default:r((()=>[c(i(_),null,{default:r((()=>[c(i(w),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>[c(i(C),{style:{"margin-bottom":"12px"}},{default:r((()=>[c(i(x),{clearable:"",value:E.value,"onUpdate:value":t[0]||(t[0]=e=>E.value=e),placeholder:e.searchPlaceholder,onClear:ue,onKeyup:o(ae,["enter"])},null,8,["value","placeholder","onKeyup"]),c(i(S),{type:"primary",onClick:ae},{default:r((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!z.value?h((a(),u(i(L),{key:0,checked:O.value,"onUpdate:checked":[t[1]||(t[1]=e=>O.value=e),re]},{default:r((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[v,i(J).length<1e3]]):p("v-if",!0),p(' <SearchMultiple\r\n\t\t\t\t\tv-if="multiple && isSearch && checkStrategyResult === \'parent\'"\r\n\t\t\t\t\t:treeData="treeData"\r\n\t\t\t\t\t:checkedKeys="checkedKeys"\r\n\t\t\t\t\t@notifyCheck="notifyCheck"\r\n\t\t\t\t/> v-else '),c(i(T),f({"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":A.value,"expanded-keys":F.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>F.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":A.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>A.value=e),data:R.value,"check-strategy":"child","render-label":ee},e.treeSetting,{"onUpdate:checkedKeys":oe,onLoad:Y}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"])])),_:1})])),_:1}),c(i(_),null,{default:r((()=>[c(i(w),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[c(i(w),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>[e.showCount?(a(),y("span",B,"已选择:"+s(W.value.length),1)):p("v-if",!0),e.showClear?(a(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:de},"清空")):p("v-if",!0)])),_:1}),k("div",K,[(a(!0),y(m,null,g(W.value,(e=>(a(),y("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),c(i(j),{class:"tag-close",component:i($),onClick:l=>function(e){A.value=A.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{P as default};
@@ -1 +1 @@
1
- import{cloneDeep as i}from"lodash-es";function n(n,l){const c=i(n);return e(c,l),r(c)}function e(i,n){i.forEach((i=>{var r,c;if(i.visible=null==(r=i.title)?void 0:r.includes(n),null==(c=i.children)?void 0:c.length)if(e(i.children,n),i.visible)l(i.children);else{i.children.some((i=>i.visible))&&(i.visible=!0)}}))}function l(i){i.forEach((i=>{var n;i.visible=!0,(null==(n=i.children)?void 0:n.length)&&l(i.children)}))}function r(i){return i.filter((i=>{var n;return!!i.visible&&((null==(n=i.children)?void 0:n.length)&&(i.children=r(i.children)),!0)}))}function c(i){const n=[];return function i(e){for(let l=0,r=e.length;l<r;l++){const r=e[l];r.children&&(n.push(r.key),i(r.children))}}(i),n}export{n as filterTree,c as getExpandedKeys};
1
+ import{cloneDeep as n}from"lodash-es";function i(i,r){const c=n(i);return r.trim()?function(n,i){return e(n,[]).filter((n=>{var l;return null==(l=n.title)?void 0:l.includes(i.trim())}))}(c,r):(l(c,r),t(c))}function l(n,i){n.forEach((n=>{var e,t;if(n.visible=null==(e=n.title)?void 0:e.includes(i.trim()),null==(t=n.children)?void 0:t.length)if(l(n.children,i),n.visible)r(n.children);else{n.children.some((n=>n.visible))&&(n.visible=!0)}}))}function e(n,i){return n.forEach((n=>{var l;(null==(l=n.children)?void 0:l.length)?e(n.children,i):i.push(n)})),i}function r(n){n.forEach((n=>{var i;n.visible=!0,(null==(i=n.children)?void 0:i.length)&&r(n.children)}))}function t(n){return n.filter((n=>{var i;return!!n.visible&&((null==(i=n.children)?void 0:i.length)&&(n.children=t(n.children)),!0)}))}function c(n){const i=[];return function n(l){for(let e=0,r=l.length;e<r;e++){const r=l[e];r.children&&(i.push(r.key),n(r.children))}}(n),i}export{i as filterTree,c as getExpandedKeys};
@@ -1 +1 @@
1
- .c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}
1
+ .c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}.c-select-person .select-person__multiple-search{display:flex;flex-direction:column}.c-select-person .select-person__multiple-search .n-checkbox{height:30px;overflow:hidden}
@@ -38,7 +38,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
38
38
  fieldList: import("vue").Ref<{
39
39
  [x: string]: any;
40
40
  val_key: string;
41
- html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
41
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "TEXTAREA" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
42
42
  annotation?: boolean | undefined;
43
43
  val_key_unit?: string | undefined;
44
44
  is_edit?: import("..").FormCommonState | undefined;
@@ -57,6 +57,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
57
57
  vali_obj?: string | undefined;
58
58
  max_value?: string | number | undefined;
59
59
  min_value?: string | number | undefined;
60
+ min_date?: string | undefined;
61
+ max_date?: string | undefined;
60
62
  min_length?: string | number | undefined;
61
63
  max_length?: string | number | undefined;
62
64
  decimal_length?: string | number | undefined;
@@ -86,8 +88,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
86
88
  message?: string | undefined;
87
89
  } | undefined;
88
90
  option?: {
89
- text: string;
90
- value: any;
91
+ [x: string]: any;
91
92
  keyword?: string | undefined;
92
93
  disabled?: boolean | undefined;
93
94
  children?: any[] | undefined;
@@ -140,6 +141,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
140
141
  is_not_fold?: string | undefined;
141
142
  remark?: string | undefined;
142
143
  free_entry?: import("..").FormCommonState | undefined;
144
+ initialize_high?: number | undefined;
143
145
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
144
146
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
145
147
  lazyRequest?: boolean | undefined;
@@ -1851,6 +1853,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1851
1853
  linebarAutoHidden: {
1852
1854
  type: BooleanConstructor;
1853
1855
  };
1856
+ bordered: {
1857
+ type: BooleanConstructor;
1858
+ default: boolean;
1859
+ };
1854
1860
  }, {
1855
1861
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1856
1862
  fieldList: {
@@ -1979,12 +1985,17 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1979
1985
  linebarAutoHidden: {
1980
1986
  type: BooleanConstructor;
1981
1987
  };
1988
+ bordered: {
1989
+ type: BooleanConstructor;
1990
+ default: boolean;
1991
+ };
1982
1992
  }>> & {
1983
1993
  onFormChange?: ((...args: any[]) => any) | undefined;
1984
1994
  onScroll?: ((...args: any[]) => any) | undefined;
1985
1995
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1986
1996
  }>>;
1987
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1997
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1998
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
1988
1999
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1989
2000
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1990
2001
  formHeight: import("vue").ComputedRef<string>;
@@ -2133,39 +2144,39 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2133
2144
  exposeEvent: {
2134
2145
  validate(path?: string): Promise<void>;
2135
2146
  getFormValues(needCombineExtendKey?: boolean): any;
2136
- setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2147
+ setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2137
2148
  setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
2138
2149
  match: (pattern: import("@formily/path").Pattern) => boolean;
2139
2150
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2140
2151
  data: any;
2141
2152
  loading: boolean;
2142
2153
  required: boolean;
2143
- hidden: boolean;
2144
- visible: boolean;
2145
- content: any;
2146
- reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2147
- active: boolean;
2148
- disabled: boolean;
2149
- display: import("@formily/core").FieldDisplayTypes;
2150
2154
  value: string;
2151
2155
  readonly index: string | number;
2156
+ disabled: boolean;
2152
2157
  onFocus: (...args: any[]) => Promise<void>;
2153
2158
  onBlur: (...args: any[]) => Promise<void>;
2154
2159
  onInput: (...args: any[]) => Promise<void>;
2160
+ reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2161
+ title: string;
2162
+ editable: boolean;
2163
+ visible: boolean;
2155
2164
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2156
2165
  validator: import("@formily/core").FieldValidator;
2157
2166
  pattern: import("@formily/core").FieldPatternTypes;
2158
- title: string;
2159
2167
  form: import("@formily/core").Form<any>;
2168
+ content: any;
2160
2169
  componentProps: Record<string, any>;
2161
2170
  decoratorProps: Record<string, any>;
2171
+ display: import("@formily/core").FieldDisplayTypes;
2162
2172
  description: string;
2163
2173
  readOnly: boolean;
2164
- editable: boolean;
2174
+ hidden: boolean;
2165
2175
  component: import("@formily/core").FieldComponent<any, any>;
2166
2176
  decorator: import("@formily/core").FieldDecorator<any, any>;
2167
2177
  validating: boolean;
2168
2178
  submitting: boolean;
2179
+ active: boolean;
2169
2180
  visited: boolean;
2170
2181
  selfModified: boolean;
2171
2182
  modified: boolean;
@@ -2252,7 +2263,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2252
2263
  };
2253
2264
  readonly disabled: BooleanConstructor;
2254
2265
  readonly displayDirective: {
2255
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2266
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2256
2267
  readonly default: "if";
2257
2268
  };
2258
2269
  readonly closable: {
@@ -2277,7 +2288,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2277
2288
  };
2278
2289
  readonly disabled: BooleanConstructor;
2279
2290
  readonly displayDirective: {
2280
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2291
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2281
2292
  readonly default: "if";
2282
2293
  };
2283
2294
  readonly closable: {
@@ -2291,10 +2302,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2291
2302
  }>>, {
2292
2303
  readonly disabled: boolean;
2293
2304
  readonly closable: boolean | undefined;
2294
- readonly displayDirective: "show" | "if" | "show:lazy";
2305
+ readonly displayDirective: "if" | "show" | "show:lazy";
2295
2306
  }>;
2296
2307
  NTabs: any;
2297
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2308
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2298
2309
  fieldList: {
2299
2310
  type: import("vue").PropType<import("..").FieldItem[]>;
2300
2311
  };
@@ -2421,6 +2432,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2421
2432
  linebarAutoHidden: {
2422
2433
  type: BooleanConstructor;
2423
2434
  };
2435
+ bordered: {
2436
+ type: BooleanConstructor;
2437
+ default: boolean;
2438
+ };
2424
2439
  }>> & {
2425
2440
  onFormChange?: ((...args: any[]) => any) | undefined;
2426
2441
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2436,6 +2451,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2436
2451
  consumer: boolean;
2437
2452
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
2438
2453
  linebarAutoHidden: boolean;
2454
+ bordered: boolean;
2439
2455
  }>;
2440
2456
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2441
2457
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  fieldList: import("vue").Ref<{
41
41
  [x: string]: any;
42
42
  val_key: string;
43
- html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
43
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "TEXTAREA" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
44
44
  annotation?: boolean | undefined;
45
45
  val_key_unit?: string | undefined;
46
46
  is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
@@ -59,6 +59,8 @@ declare const _default: import("vue").DefineComponent<{
59
59
  vali_obj?: string | undefined;
60
60
  max_value?: string | number | undefined;
61
61
  min_value?: string | number | undefined;
62
+ min_date?: string | undefined;
63
+ max_date?: string | undefined;
62
64
  min_length?: string | number | undefined;
63
65
  max_length?: string | number | undefined;
64
66
  decimal_length?: string | number | undefined;
@@ -88,8 +90,7 @@ declare const _default: import("vue").DefineComponent<{
88
90
  message?: string | undefined;
89
91
  } | undefined;
90
92
  option?: {
91
- text: string;
92
- value: any;
93
+ [x: string]: any;
93
94
  keyword?: string | undefined;
94
95
  disabled?: boolean | undefined;
95
96
  children?: any[] | undefined;
@@ -142,6 +143,7 @@ declare const _default: import("vue").DefineComponent<{
142
143
  is_not_fold?: string | undefined;
143
144
  remark?: string | undefined;
144
145
  free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
146
+ initialize_high?: number | undefined;
145
147
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
146
148
  content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
147
149
  lazyRequest?: boolean | undefined;
@@ -1853,6 +1855,10 @@ declare const _default: import("vue").DefineComponent<{
1853
1855
  linebarAutoHidden: {
1854
1856
  type: BooleanConstructor;
1855
1857
  };
1858
+ bordered: {
1859
+ type: BooleanConstructor;
1860
+ default: boolean;
1861
+ };
1856
1862
  }, {
1857
1863
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1858
1864
  fieldList: {
@@ -1981,12 +1987,17 @@ declare const _default: import("vue").DefineComponent<{
1981
1987
  linebarAutoHidden: {
1982
1988
  type: BooleanConstructor;
1983
1989
  };
1990
+ bordered: {
1991
+ type: BooleanConstructor;
1992
+ default: boolean;
1993
+ };
1984
1994
  }>> & {
1985
1995
  onFormChange?: ((...args: any[]) => any) | undefined;
1986
1996
  onScroll?: ((...args: any[]) => any) | undefined;
1987
1997
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1988
1998
  }>>;
1989
- emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1999
+ emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
2000
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
1990
2001
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1991
2002
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1992
2003
  formHeight: import("vue").ComputedRef<string>;
@@ -2135,39 +2146,39 @@ declare const _default: import("vue").DefineComponent<{
2135
2146
  exposeEvent: {
2136
2147
  validate(path?: string): Promise<void>;
2137
2148
  getFormValues(needCombineExtendKey?: boolean): any;
2138
- setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2149
+ setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2139
2150
  setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
2140
2151
  match: (pattern: import("@formily/path").Pattern) => boolean;
2141
2152
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
2142
2153
  data: any;
2143
2154
  loading: boolean;
2144
2155
  required: boolean;
2145
- hidden: boolean;
2146
- visible: boolean;
2147
- content: any;
2148
- reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2149
- active: boolean;
2150
- disabled: boolean;
2151
- display: import("../../../../es/components/form-render").FieldDisplayTypes;
2152
2156
  value: string;
2153
2157
  readonly index: string | number;
2158
+ disabled: boolean;
2154
2159
  onFocus: (...args: any[]) => Promise<void>;
2155
2160
  onBlur: (...args: any[]) => Promise<void>;
2156
2161
  onInput: (...args: any[]) => Promise<void>;
2162
+ reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2163
+ title: string;
2164
+ editable: boolean;
2165
+ visible: boolean;
2157
2166
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2158
2167
  validator: import("../../../../es/components/form-render").FieldValidator;
2159
2168
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
2160
- title: string;
2161
2169
  form: import("../../../../es/components/form-render").Form<any>;
2170
+ content: any;
2162
2171
  componentProps: Record<string, any>;
2163
2172
  decoratorProps: Record<string, any>;
2173
+ display: import("../../../../es/components/form-render").FieldDisplayTypes;
2164
2174
  description: string;
2165
2175
  readOnly: boolean;
2166
- editable: boolean;
2176
+ hidden: boolean;
2167
2177
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
2168
2178
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
2169
2179
  validating: boolean;
2170
2180
  submitting: boolean;
2181
+ active: boolean;
2171
2182
  visited: boolean;
2172
2183
  selfModified: boolean;
2173
2184
  modified: boolean;
@@ -2254,7 +2265,7 @@ declare const _default: import("vue").DefineComponent<{
2254
2265
  };
2255
2266
  readonly disabled: BooleanConstructor;
2256
2267
  readonly displayDirective: {
2257
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2268
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2258
2269
  readonly default: "if";
2259
2270
  };
2260
2271
  readonly closable: {
@@ -2279,7 +2290,7 @@ declare const _default: import("vue").DefineComponent<{
2279
2290
  };
2280
2291
  readonly disabled: BooleanConstructor;
2281
2292
  readonly displayDirective: {
2282
- readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2293
+ readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2283
2294
  readonly default: "if";
2284
2295
  };
2285
2296
  readonly closable: {
@@ -2293,10 +2304,10 @@ declare const _default: import("vue").DefineComponent<{
2293
2304
  }>>, {
2294
2305
  readonly disabled: boolean;
2295
2306
  readonly closable: boolean | undefined;
2296
- readonly displayDirective: "show" | "if" | "show:lazy";
2307
+ readonly displayDirective: "if" | "show" | "show:lazy";
2297
2308
  }>;
2298
2309
  NTabs: any;
2299
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2310
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2300
2311
  fieldList: {
2301
2312
  type: import("vue").PropType<FieldItem[]>;
2302
2313
  };
@@ -2423,6 +2434,10 @@ declare const _default: import("vue").DefineComponent<{
2423
2434
  linebarAutoHidden: {
2424
2435
  type: BooleanConstructor;
2425
2436
  };
2437
+ bordered: {
2438
+ type: BooleanConstructor;
2439
+ default: boolean;
2440
+ };
2426
2441
  }>> & {
2427
2442
  onFormChange?: ((...args: any[]) => any) | undefined;
2428
2443
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -2438,6 +2453,7 @@ declare const _default: import("vue").DefineComponent<{
2438
2453
  consumer: boolean;
2439
2454
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
2440
2455
  linebarAutoHidden: boolean;
2456
+ bordered: boolean;
2441
2457
  }>;
2442
2458
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2443
2459
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -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}
@@ -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;