cnhis-design-vue 3.1.42-release.0 → 3.1.42-release.2

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 (254) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/annotation-edit/src/type.d.ts +3 -0
  4. package/es/components/annotation-edit/style/index.css +1 -1
  5. package/es/components/base-search/index.d.ts +271 -0
  6. package/es/components/base-search/index.js +1 -0
  7. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -113
  8. package/es/components/base-search/src/index.vue.js +1 -0
  9. package/es/components/base-search/style/iconfont.ttf +0 -0
  10. package/es/components/base-search/style/index.css +1 -0
  11. package/es/components/big-table/style/index.css +1 -1
  12. package/es/components/button-print/index.d.ts +3 -2
  13. package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -2
  14. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  15. package/es/components/button-print/src/api.d.ts +3 -0
  16. package/es/components/button-print/src/api.js +1 -0
  17. package/es/components/button-print/src/utils/print.js +1 -1
  18. package/es/components/classification/index.d.ts +995 -0
  19. package/es/components/classification/index.js +1 -0
  20. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
  21. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  22. package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
  23. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  24. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
  25. package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
  26. package/es/components/classification/src/const/index.d.ts +2 -0
  27. package/es/components/classification/src/const/index.js +1 -0
  28. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
  29. package/es/components/classification/src/index.vue.js +1 -0
  30. package/es/components/classification/style/iconfont.ttf +0 -0
  31. package/es/components/classification/style/index.css +1 -0
  32. package/es/components/config-provider/index.d.ts +14 -0
  33. package/es/components/config-provider/index.js +1 -0
  34. package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
  35. package/es/components/config-provider/src/ConfigProvider.js +1 -0
  36. package/es/components/config-provider/src/interface.d.ts +19 -0
  37. package/es/components/config-provider/src/interface.js +1 -0
  38. package/es/components/config-provider/src/utils/index.d.ts +2 -0
  39. package/es/components/config-provider/src/utils/index.js +1 -0
  40. package/es/components/date-picker/index.d.ts +12 -0
  41. package/es/components/date-picker/index.js +1 -0
  42. package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -0
  43. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  44. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  47. package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
  48. package/es/components/field-set/index.d.ts +82 -13
  49. package/es/components/field-set/src/FieldSet.vue.d.ts +78 -27
  50. package/es/components/field-set/src/types/index.d.ts +18 -0
  51. package/es/components/field-set/src/types/index.js +1 -0
  52. package/es/components/form-config/index.d.ts +36 -27
  53. package/es/components/form-config/src/FormConfig.vue.d.ts +36 -27
  54. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  55. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +11 -11
  56. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -14
  57. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
  58. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  59. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
  60. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  61. package/es/components/form-config/style/index.css +1 -1
  62. package/es/components/form-render/index.d.ts +11 -11
  63. package/es/components/form-render/index.js +1 -1
  64. package/es/components/form-render/src/FormRender.vue.d.ts +11 -11
  65. package/es/components/form-render/src/FormRender.vue.js +1 -1
  66. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +11 -11
  67. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  68. package/es/components/form-render/src/components/renderer/date.js +1 -1
  69. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  70. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  71. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  72. package/es/components/form-render/src/components/renderer/select.js +1 -1
  73. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  74. package/es/components/form-render/src/hooks/index.js +1 -1
  75. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  76. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  77. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  78. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  79. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  80. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
  81. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  82. package/es/components/form-render/src/types/index.d.ts +2 -1
  83. package/es/components/form-render/style/index.css +1 -1
  84. package/es/components/iho-table/index.d.ts +1526 -0
  85. package/es/components/iho-table/src/IhoTable.vue.d.ts +1526 -0
  86. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  87. package/es/components/iho-table/src/constants/index.d.ts +6 -5
  88. package/es/components/iho-table/src/constants/index.js +1 -1
  89. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  90. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  91. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  92. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  93. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  94. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  95. package/es/components/iho-table/src/plugins/index.js +1 -1
  96. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -7
  98. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  99. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  100. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  101. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  102. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  103. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +12 -1
  104. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  106. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  107. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  108. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  109. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  110. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  111. package/es/components/iho-table/src/types/index.d.ts +2 -0
  112. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  113. package/es/components/iho-table/src/utils/index.d.ts +2 -0
  114. package/es/components/iho-table/src/utils/index.js +1 -1
  115. package/es/components/iho-table/style/index.css +1 -1
  116. package/es/components/index.css +1 -1
  117. package/es/components/index.d.ts +9 -2
  118. package/es/components/index.js +1 -1
  119. package/es/components/info-header/index.d.ts +3800 -157
  120. package/es/components/info-header/src/InfoHeader.vue.d.ts +3801 -157
  121. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  122. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
  123. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
  124. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
  125. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
  126. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  127. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
  128. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  129. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  130. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  131. package/es/components/info-header/src/constants/index.d.ts +4 -0
  132. package/es/components/info-header/src/constants/index.js +1 -0
  133. package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
  134. package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
  135. package/es/components/info-header/src/types/index.d.ts +17 -3
  136. package/es/components/info-header/style/index.css +1 -1
  137. package/es/components/keyboard/index.d.ts +3 -1
  138. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -1
  139. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  140. package/es/components/keyboard/src/constants/index.d.ts +2 -0
  141. package/es/components/keyboard/src/constants/index.js +1 -0
  142. package/es/components/keyboard/style/index.css +1 -1
  143. package/es/components/quick-search/index.d.ts +713 -0
  144. package/es/components/quick-search/index.js +1 -0
  145. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
  146. package/es/components/quick-search/src/index.vue.js +1 -0
  147. package/es/components/quick-search/style/index.css +1 -0
  148. package/es/components/recommend-search/index.d.ts +2 -2
  149. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  150. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  151. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  152. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
  153. package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
  154. package/es/components/search-cascader/index.d.ts +2 -2
  155. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  156. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  157. package/es/components/select-label/index.d.ts +70 -169
  158. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
  159. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  160. package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
  161. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  162. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  163. package/es/components/select-label/style/iconfont.ttf +0 -0
  164. package/es/components/select-label/style/index.css +1 -1
  165. package/es/components/shortcut-setter/index.d.ts +12 -12
  166. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  167. package/es/components/steps-wheel/index.d.ts +1 -0
  168. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
  169. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  170. package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
  171. package/es/components/steps-wheel/src/constants/index.js +1 -0
  172. package/es/components/steps-wheel/style/index.css +1 -1
  173. package/es/components/table-filter/index.d.ts +0 -2386
  174. package/es/components/table-filter/index.js +1 -1
  175. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  176. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  177. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
  178. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  179. package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
  180. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  181. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  182. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  183. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  184. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
  185. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  186. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  187. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  188. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  189. package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
  190. package/es/components/table-filter/src/tool/baseOptions.js +1 -0
  191. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  192. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  193. package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
  194. package/es/components/table-filter/src/tool/transformData.js +1 -1
  195. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  196. package/es/components/table-filter/src/types/enums.js +1 -1
  197. package/es/components/table-filter/src/types/index.d.ts +13 -243
  198. package/es/components/time-picker/index.d.ts +12 -0
  199. package/es/components/time-picker/index.js +1 -0
  200. package/es/components/time-picker/src/TimePicker.vue.d.ts +12 -0
  201. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  202. package/es/env.d.ts +24 -24
  203. package/es/shared/hooks/index.d.ts +3 -0
  204. package/es/shared/hooks/index.js +1 -0
  205. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  206. package/es/shared/hooks/useAsyncQueue.js +1 -0
  207. package/es/shared/hooks/useDateTime.d.ts +6 -0
  208. package/es/shared/hooks/useDateTime.js +1 -0
  209. package/es/shared/hooks/useTheme.d.ts +3 -0
  210. package/es/shared/hooks/useTheme.js +1 -0
  211. package/es/shared/utils/index.d.ts +1 -0
  212. package/es/shared/utils/index.js +1 -1
  213. package/package.json +2 -2
  214. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  215. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  216. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  217. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  218. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  219. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  220. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
  221. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
  222. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  223. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  224. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  225. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  226. package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
  227. package/es/components/table-filter/src/const/index.d.ts +0 -5
  228. package/es/components/table-filter/src/const/index.js +0 -1
  229. package/es/components/table-filter/src/directive/resize.d.ts +0 -4
  230. package/es/components/table-filter/src/directive/resize.js +0 -1
  231. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  232. package/es/components/table-filter/src/hooks/export.js +0 -1
  233. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  234. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  235. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  236. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  237. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  238. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  239. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  240. package/es/components/table-filter/src/tool/options.d.ts +0 -18
  241. package/es/components/table-filter/src/tool/options.js +0 -1
  242. package/es/components/table-filter/src/tool/resizeSensor.d.ts +0 -16
  243. package/es/components/table-filter/src/tool/resizeSensor.js +0 -1
  244. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  245. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  246. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  247. package/es/components/table-filter/src/tool/utils.js +0 -1
  248. package/es/components/table-filter/style/index.css +0 -1
  249. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  250. package/es/shared/utils/colorLog.d.ts +0 -31
  251. package/es/shared/utils/colorLog.js +0 -1
  252. package/es/shared/utils/tapable/index.d.ts +0 -139
  253. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  254. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
@@ -0,0 +1 @@
1
+ @font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:0;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{color:#212121;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
@@ -0,0 +1,14 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/interface';
3
+ declare const ConfigProvider: SFCWithInstall<import("vue").DefineComponent<{
4
+ themeOverrides: {
5
+ type: import("vue").PropType<import("./src/interface").CGlobalThemeOverrides | null>;
6
+ };
7
+ }, {
8
+ renderVN: () => JSX.Element[];
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ themeOverrides: {
11
+ type: import("vue").PropType<import("./src/interface").CGlobalThemeOverrides | null>;
12
+ };
13
+ }>> & {}, {}>>;
14
+ export default ConfigProvider;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import i from"./src/ConfigProvider.js";const s=i;s.install=function(i){o(i,s,r+"ConfigProvider")};export{s as default};
@@ -0,0 +1,14 @@
1
+ import { PropType } from 'vue';
2
+ import { CGlobalThemeOverrides } from './interface';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ themeOverrides: {
5
+ type: PropType<CGlobalThemeOverrides | null>;
6
+ };
7
+ }, {
8
+ renderVN: () => JSX.Element[];
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ themeOverrides: {
11
+ type: PropType<CGlobalThemeOverrides | null>;
12
+ };
13
+ }>> & {}, {}>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
@@ -0,0 +1,19 @@
1
+ import { GlobalThemeOverrides } from 'naive-ui';
2
+ interface IhoTableStyle {
3
+ borderColor: string;
4
+ }
5
+ interface KeyboardStyle {
6
+ primaryColorHover: string;
7
+ primaryColorPressed: string;
8
+ }
9
+ interface StepsWheelStyle {
10
+ primaryColor: string;
11
+ successColor: string;
12
+ }
13
+ export declare type CComponentThemeOverrides = Partial<{
14
+ IhoTable: IhoTableStyle;
15
+ Keyboard: KeyboardStyle;
16
+ StepsWheel: StepsWheelStyle;
17
+ }>;
18
+ export declare type CGlobalThemeOverrides = GlobalThemeOverrides & CComponentThemeOverrides;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CGlobalThemeOverrides } from '../interface';
2
+ export declare function addPrefix(obj: CGlobalThemeOverrides | null | undefined, filterKeys: string[], prefix?: string): CGlobalThemeOverrides;
@@ -0,0 +1 @@
1
+ function e(e,t,c="--c"){const n={};return e?(Object.entries(e).forEach((([e,r])=>{t.length&&!t.includes(e)||(n[e]={},Object.entries(r).forEach((([t,r])=>{const o=t.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));r&&(n[e][`${c}-${o}`]=r)})))})),n):n}export{e as addPrefix};
@@ -0,0 +1,12 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
10
+ NDatePicker: any;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
12
+ export default DatePicker;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as e}from"../../shared/utils/index.js";import t from"./src/DatePicker.vue.js";const a=t;a.install=function(t){e(t,a,r+"DatePicker")};export{a as default};
@@ -0,0 +1,12 @@
1
+ import { AnyObject } from '../../../../es/shared/types';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ attrs: {
4
+ [x: string]: unknown;
5
+ };
6
+ datePickerRef: import("vue").Ref<AnyObject | null>;
7
+ formatRef: import("vue").ComputedRef<string>;
8
+ focus: () => any;
9
+ blur: () => any;
10
+ NDatePicker: any;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
12
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as r,ref as t,computed as o,openBlock as s,createBlock as a,unref as i,mergeProps as m,createSlots as u,renderList as y,withCtx as f,renderSlot as n}from"vue";import{NDatePicker as d}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as l}from"../../../shared/hooks/useDateTime.js";import p from"../../../_virtual/plugin-vue_export-helper.js";var c=p(e({__name:"DatePicker",setup(e,{expose:p}){const c=r(),_=t(null),h=o((()=>{if(c.format)return c.format;const e=c.type||"";return["datetime","datetimerange"].includes(e)?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),{focus:k,blur:v}=l(_,h);return p({$datePicker:_,focus:k,blur:v}),(e,r)=>(s(),a(i(d),m({ref_key:"datePickerRef",ref:_},e.$attrs),u({_:2},[y(e.$slots,((r,t)=>({name:t,fn:f((()=>[n(e.$slots,t)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{c as default};
@@ -1 +1 @@
1
- import{useBirthProcessCumputedPoint as t}from"./useCumputedPoint.js";import e from"./useGrid.js";import{drawLine as n,drawArrow as o,drawText as i,defaultTextStyle as r,drawPoint as l,defaultStyle as s,defaultRectStyle as a}from"./useDraw.js";import{fabric as u}from"../utils/index.js";import{getIndex as c,isEffectiveNode as f}from"../utils/utils.js";import{cloneDeep as p}from"lodash-es";import{format as d}from"date-fns";function h(h,g,m,v,y,k){const{cumputedX:w,cumputedY:x,getXValue:b,getYValue:T}=t(g),{getEqualXTypes:j,repeatTip:C}=k,{xAxis:E,grid:P,originX:S,originY:G,xCellWidth:L,endY:Y,startTime:A,leftAddAreaWidth:I,leftScales:M,rightScales:X,yCellHeight:D,endX:H,scaleValues:O,canvasWidth:V,borderStyle:W,rightAddAreaWidth:$,event:R,originYCervix:q,other:z}=g,B=p(O),F=new Set;function J(){B.forEach(((t,e)=>{var s;const a=[],u=[],c=[];null==(s=t.data)||s.forEach(((s,f)=>{!function(s,f,p){let d,y;const{pointAttr:k={},lineAttr:w={},title:x="",key:j,type:C="circle",childbirth:E={}}=t,P=t.data[p+1],S=U(P,t);if(s&&S&&!f.breakpoint)y=n([...s,...S],{...w});else if(s&&!S&&!f.breakpoint){const e=U(P,t);y=e?n([...s,...e],{...w}):null}let G,Y;if(f.childbirth){const t=s[1]+D;G=o([s[0],s[1],t],E.style||{}),c.push(G),E.text&&(Y=i([s[0]+L/2,t-D/2],{value:String(E.text),...r,originX:"left",originY:"center",...E.style||{}}),c.push(Y))}const A=u[p-1],I={origin:{data:f,title:x,key:j||"",dataIndex:e,index:p},leftLine:A,rightLine:y,arrowGroup:G,arrowGroupText:Y,...k,...g.event};A?d=l(C,{left:A.get("x2"),top:A.get("y2"),...I}):s&&(I.leftLine=null,d=l(C,{left:s[0],top:s[1],...I}));u.push(y),d&&(!function(t){R.hovered&&(t.on("mouseover",(()=>{Q(t)})),t.on("mouseout",(()=>{v.show=!1})));t.on("moving",(()=>{N(t),function(t){var e,n,o,i;null==(e=t.leftLine)||e.setCoords().set({x2:t.left,y2:t.top}),null==(n=t.rightLine)||n.setCoords().set({x1:t.left,y1:t.top}),null==(o=t.arrowGroup)||o.setCoords().set({left:t.left,top:t.top}),null==(i=t.arrowGroupText)||i.setCoords().set({left:t.left+L/2,top:t.top+D/2})}(t),R.hovered&&Q(t)})),t.on("mouseup",(e=>{if(v.show=!1,1===e.button){const{key:e}=t.origin,n={...t.origin,data:{...t.origin.data,time:b(t.left),value:T(e,t.top)}};h.value.discardActiveObject(),m("change",n),K(n,"change")}}))}(d),a.push(d),F.add(d))}(U(s,t),s,f)})),Promise.all(a).then((t=>{const e=u.filter((t=>t));let n=null;t=t.filter((t=>(t&&n&&(n.nextPoint=t,t.prevPoint=n),n=t||n,t))),Promise.all(c).then((n=>{h.value.add(...e,...t,...n),t.forEach((t=>{null==t||t.bringToFront()}))}))}))}))}function K(t,e="add"){const{dataIndex:n,data:o,index:i,key:r}=t,l=B.find((t=>t.key===r));switch(e){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=o;break;default:{const t=c(o.time,l.data);l.data.splice(t,0,o);break}}var s;F.size&&(null==(s=h.value)||s.remove(...function(t){const e=[];return t.forEach((t=>{t&&e.push(t),(null==t?void 0:t.leftLine)&&e.push(null==t?void 0:t.leftLine),(null==t?void 0:t.rightLine)&&e.push(null==t?void 0:t.rightLine),(null==t?void 0:t.arrowGroup)&&e.push(null==t?void 0:t.arrowGroup),(null==t?void 0:t.arrowGroupText)&&e.push(null==t?void 0:t.arrowGroupText)})),e}([...F]))),F.clear(),J()}function N(t){const e=t.prevPoint?t.prevPoint.left:S,n=t.nextPoint?t.nextPoint.left:H;t.setCoords(),["cervix","fetalPresentation"].includes(t.origin.key)&&t.top<q&&t.set("top",q),t.top<G&&t.set("top",G),t.top>Y&&t.set("top",Y),t.left<e&&t.set("left",e),t.left>n&&t.set("left",n)}function Q(t){const{title:e,key:n}=t.origin;v.point={x:t.left,y:t.top},v.list=[`${e} ${T(n,t.top)}`,`时间 ${b(t.left).slice(-5)}`],v.show=!0}function U(t,e){if(f(t)&&function(t){const e=A+864e5,n=new Date(t).getTime();return n>=A&&n<=e}(t.time)){const n=w(t.time),o=x(e.key,e.range,t.value);return[n,o<G?G:o>Y?Y:o]}}function Z(t,e){return t+1>e[1]?e[0]:t+1}return e(h,g,!0),function(){const t=new u.Rect({...W,width:V-I-$,height:Y,left:I,top:0,fill:"transparent"});h.value.add(t)}(),function(){let t=I;[...M,...X].forEach(((e,n)=>{const{range:o,spaceValue:l,width:c,title:f,titleStyle:p,layout:d}=e,g=[];"right"===d&&(t=H);const m=t+c/2,v=function(t,e){const n=[],[o,i]=t;for(let t=o;e>0?t<=i:t>=i;t+=e)n.push(t);return n}(o,l);v.forEach(((t,e)=>{const n=0===e?Y-8:Y-e*D;g.push(i([m,n],{value:String(t),...r}))}));const y=new u.Rect({...a,width:c,height:Y,left:m,top:Y/2}),k=G>0?i([m,G-D/2],{value:String(f),...r,...p}):null,w=new u.Group([...g,y,...k?[k]:[]],{objectCaching:!1,...s});h.value.add(w),t+=c}))}(),function(){const{show:t,startTime:e,range:n=[0,23],position:o="top",style:l}=E.time,{show:a,range:c=[0,23],style:f}=E.processTime;if(t||a){const p=[],d=[],g=[],m=[],v=S+L/2;for(let s=0;s<P.mainXCell;s++){if(t){const t=0===s?+e.slice(11,13):Z(p.at(-1),n);p.push(t);const a="top"==o?G-15:Y+15;g.push(i([v+s*L,a],{value:String(t),...r,...l||{}}))}if(a){const t=0===s?c[0]:d.at(-1)+1;d.push(t);const e="top"==o?Y+15:G-15;m.push(i([v+s*L,e],{value:String(t),...r,...f||{}}))}}const y=new u.Group([...g,...m],{objectCaching:!1,...s});h.value.add(y),h.value.sendToBack(y)}}(),function(){const t=Object.values(z),e=[],o={},i=B.find((t=>"cervix"===t.key)),r=i.data.find((t=>3==+t.value));function l(t,e){const{key:n,range:o}=i||{},r=x(n,o,10),l=[0,e],s=[-e/t,0],a=[(Y-r-e)/t,Y-r],u=[H-S,t*(H-S)+e];let c=[],f=[];function p([n,o]){return Math.abs(o-t*n-e)<=1}function d([t,e]){const[n,o]=[...h([t,e])];return n>=S&&n<=H&&o>=r&&o<=Y}function h([t,e]){return[S+t,Y-e]}return p(l)&&d(l)&&(c=h(l)),p(s)&&d(s)&&(c=h(s)),p(a)&&d(a)&&(f=h(a)),p(u)&&d(u)&&(f=h(u)),[...c,...f]}t.forEach((t=>{if(!t.show)return;const{key:s}=t;switch(s){case"fetalPresentation":{const{range:o}=B.find((t=>t.key===s)),i=x(s,o,0);e.push(n([S,i,H,i],{...t}));break}case"alert":if(r){const{key:s,range:a}=i||{},u=216e5,c={time:d(new Date(new Date(r.time).getTime()+u),"yyyy-MM-dd HH:mm"),value:10},[f,p]=[w(r.time)-S,Y-x(s,a,r.value)],[h,g]=[w(c.time)-S,Y-x(s,a,c.value)],m=(g-p)/(h-f),v=p-f*m,y=l(m,v);y.length>0&&(e.push(n(y,{...t})),Object.assign(o,{k:m,b:v}))}break;case"handling":if(r){const{k:i,b:s}=o,a=144e5,u=l(i,s-(w(d(new Date(new Date(r.time).getTime()+a),"yyyy-MM-dd HH:mm"))-w(r.time))*i);u.length>0&&e.push(n(u,{...t}))}}})),h.value.add(...e)}(),J(),function(){function t(t,e){const n=B.findIndex((e=>e.key===t.key));return{renderItem:()=>t.title,origin:{title:t.title,unit:t.unit,dataIndex:n,key:t.key},pointer:e}}g.event.evented&&h.value.on("mouse:up",(e=>{if(3===e.button){const{x:n=0,y:o=0}=e.pointer||{};n>=S&&n<=H&&o>=G&&o<=Y&&(y.point={x:n,y:o},y.show=!0,e.target?(y.target=e.target,y.list=["删除节点"],h.value.forEachObject((t=>{t.origin&&t.left===e.target.left&&t.top===e.target.top&&y.list.push({renderItem:()=>t.origin.title,origin:{...t.origin},mode:"remove",pointer:e.pointer})}))):(y.target=null,y.list=["新增节点"],B.forEach((i=>{if(!j(n,"key",L).includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&o<q)return;y.list.push(t(i,e.pointer))}})),1===y.list.length&&(y.show=!1,C(),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const t=V-$/2;function e(t,e){if(!t.length)return;let o=G;const i=[];t.forEach((t=>{const n=t.title.split("").join("\n"),s=O.findIndex((e=>e.key===t.key)),a=new u.Text(String(n),{...r,...t.titleStyle||{},originY:"top",left:e,top:o,lineHeight:1}),c=l(t.type,{left:e,top:o+a.height+3,...t.pointAttr,originY:"top",origin:{title:t.title,unit:t.unit,type:t.type,dataIndex:s,key:t.key,isMenu:!0},originLeft:e,originTop:o+a.height+3,...g.event});o+=a.height+c.height+15,function(t){function e(t){const{left:e,top:n}=t;return e>=S&&e<=H&&n>=G&&n<=Y}t.on("moving",(()=>{t.set("originY","center"),e(t)?(N(t),Q(t)):v.show=!1})),t.on("mouseup:before",(n=>{if(v.show=!1,0===n.e.button&&e(t))if(j(t.left,"key",L).includes(t.origin.key))C();else{const e={data:{time:b(t.left),value:T(t.origin.key,t.top)},...t.origin};m("add",e),K(e)}!function(t){t.setCoords().set({originY:"top",left:t.originLeft,top:t.originTop})}(t)}))}(c),i.push(a,c)})),n(i),h.value.add(...i)}function n(t){const e=t.at(-1),n=(Y-G)/2,o=(e.height+e.top-G)/2;t.forEach((t=>{const e=t.top+n-o;t.set({top:e,originTop:e})}))}e(M,I/2),e(X,t)}(),{clickMenu:function({item:t,target:e}){const n={...t.origin};"remove"===t.mode?(m("remove",n),K(n,"remove")):(Object.assign(n,{data:{time:b(t.pointer.x),value:T(t.origin.key,t.pointer.y)}}),m("add",n),K(n))}}}export{h as useBirthProcess};
1
+ import{useBirthProcessCumputedPoint as t}from"./useCumputedPoint.js";import e from"./useGrid.js";import{drawLine as n,drawArrow as o,drawText as i,defaultTextStyle as r,drawPoint as l,defaultStyle as s,defaultRectStyle as a}from"./useDraw.js";import{fabric as u}from"../utils/index.js";import{getIndex as c,isEffectiveNode as f}from"../utils/utils.js";import{cloneDeep as d}from"lodash-es";import{format as p}from"date-fns";function h(h,g,v,m,y,k){const{cumputedX:w,cumputedY:x,getXValue:b,getYValue:T}=t(g),{getEqualXTypes:S,repeatTip:j}=k,{xAxis:C,grid:E,originX:P,originY:Y,xCellWidth:G,endY:L,startTime:M,leftAddAreaWidth:A,leftScales:X,rightScales:H,yCellHeight:I,endX:D,scaleValues:O,canvasWidth:V,borderStyle:W,rightAddAreaWidth:R,event:$,originYCervix:B,other:F,canvasHeight:q}=g,z=d(O),N=new Set;function J(){z.filter((t=>t.show)).forEach(((t,e)=>{var s;const a=[],u=[],c=[];null==(s=t.data)||s.forEach(((s,f)=>{!function(s,f,d){let p,y;const{pointAttr:k={},lineAttr:w={},title:x="",key:S,type:j="circle",childbirthStyle:C={}}=t,E=t.data[d+1],P=Z(E,t);if(s&&P&&!f.breakpoint)y=n([...s,...P],{...w});else if(s&&!P&&!f.breakpoint){const e=Z(E,t);y=e?n([...s,...e],{...w}):null}let Y,L;if(f.childbirth){const t=s[1]+I;Y=o([s[0],s[1],t],C),c.push(Y),L=i([s[0]+G/2,t-I/2],{value:String(f.childbirth),...r,originX:"left",originY:"center",...C}),c.push(L)}const M=u[d-1],A={origin:{data:f,title:x,key:S||"",dataIndex:e,index:d},leftLine:M,rightLine:y,arrowGroup:Y,arrowGroupText:L,...k,...g.event.hovered?g.event.evented?{selectable:!0}:{selectable:!0,lockMovementX:!0,lockMovementY:!0}:g.event};M?p=l(j,{left:M.get("x2"),top:M.get("y2"),...A}):s&&(A.leftLine=null,p=l(j,{left:s[0],top:s[1],...A}));u.push(y),p&&(!function(t){$.hovered&&(t.on("mouseover",(()=>{U(t)})),t.on("mouseout",(()=>{m.show=!1})));if(t.lockMovementX&&t.lockMovementY)return;t.on("moving",(()=>{Q(t),function(t){var e,n,o,i;null==(e=t.leftLine)||e.setCoords().set({x2:t.left,y2:t.top}),null==(n=t.rightLine)||n.setCoords().set({x1:t.left,y1:t.top}),null==(o=t.arrowGroup)||o.setCoords().set({left:t.left,top:t.top}),null==(i=t.arrowGroupText)||i.setCoords().set({left:t.left+G/2,top:t.top+I/2})}(t),$.hovered&&U(t)})),t.on("mouseup",(e=>{if(m.show=!1,1===e.button){const{key:e}=t.origin,n={...t.origin,data:{...t.origin.data,time:b(t.left),value:T(e,t.top)}};h.value.discardActiveObject(),v("change",n),K(n,"change")}}))}(p),a.push(p),N.add(p))}(Z(s,t),s,f)})),Promise.all(a).then((t=>{const e=u.filter((t=>t));let n=null;t=t.filter((t=>(t&&n&&(n.nextPoint=t,t.prevPoint=n),n=t||n,t))),Promise.all(c).then((n=>{h.value.add(...e,...t,...n),t.forEach((t=>{null==t||t.bringToFront()}))}))}))}))}function K(t,e="add"){const{dataIndex:n,data:o,index:i,key:r}=t,l=z.find((t=>t.key===r));switch(e){case"remove":l.data.splice(i,1);break;case"change":l.data[i]=o;break;default:{const t=c(o.time,l.data);l.data.splice(t,0,o);break}}var s;N.size&&(null==(s=h.value)||s.remove(...function(t){const e=[];return t.forEach((t=>{t&&e.push(t),(null==t?void 0:t.leftLine)&&e.push(null==t?void 0:t.leftLine),(null==t?void 0:t.rightLine)&&e.push(null==t?void 0:t.rightLine),(null==t?void 0:t.arrowGroup)&&e.push(null==t?void 0:t.arrowGroup),(null==t?void 0:t.arrowGroupText)&&e.push(null==t?void 0:t.arrowGroupText)})),e}([...N]))),N.clear(),J()}function Q(t){const e=t.prevPoint?t.prevPoint.left:P,n=t.nextPoint?t.nextPoint.left:D;t.setCoords(),["cervix","fetalPresentation"].includes(t.origin.key)&&t.top<B&&t.set("top",B),t.top<Y&&t.set("top",Y),t.top>L&&t.set("top",L),t.left<e&&t.set("left",e),t.left>n&&t.set("left",n)}function U(t){const{title:e,key:n}=t.origin;m.point={x:t.left,y:t.top},m.list=[`${e} ${T(n,t.top)}`,`时间 ${b(t.left).slice(-5)}`],m.show=!0}function Z(t,e){if(f(t)&&function(t){const e=M+864e5,n=new Date(t).getTime();return n>=M&&n<=e}(t.time)){const n=w(t.time),o=x(e.key,e.range,t.value);return[n,o<Y?Y:o>L?L:o]}}function _(t,e){return t+1>e[1]?e[0]:t+1}return e(h,g,!0),function(){const t=new u.Rect({...W,width:V-A-R-1,height:L-1,left:A,top:0,fill:"transparent"});h.value.add(t)}(),function(){function t(t,e="left"){let n="left"===e?A:D;t.forEach(((t,e)=>{const{range:o,spaceValue:l,width:c,title:f,titleStyle:d,key:p,scaleNumberStyle:g={}}=t,v=[],m=n+c/2,y=function(t,e){const n=[],[o,i]=t;for(let t=o;e>0?t<=i:t>=i;t+=e)n.push(t);return n}(o,l);y.forEach(((t,e)=>{const n=0===e?L-8:e!==y.length-1||Y||B&&"FHR"!==p?L-e*I:Y+8;v.push(i([m,n],{value:String(t),...r,...g}))}));const k=new u.Rect({...a,width:c,height:L,left:m,top:L/2}),w=i([m,Y>0?Y-I/2:I/2],{value:String(f),...r,...d}),x=new u.Group([...v,k,...w?[w]:[]],{objectCaching:!1,...s});h.value.add(x),x.sendToBack(),n+=c}))}t(X),t(H,"right")}(),function(){const{show:t,startTime:e,range:n=[0,23],position:o="top",style:l}=C.time,{show:a,range:c=[0,23],position:f,style:d}=C.processTime;if(t||a){const p=[],g=[],v=[],m=[],y=P+G/2,k=I/2;for(let s=0;s<E.mainXCell;s++){if(t){const t=0===s?+e.slice(11,13):_(p.at(-1),n);p.push(t);const a="top"===o?Y-k:L+k;v.push(i([y+s*G,a],{value:String(t),...r,...l||{}}))}if(a){const t=0===s?c[0]:g.at(-1)+1;g.push(t);const e="top"===f?k:q-k;m.push(i([y+s*G,e],{value:String(t),...r,...d||{}}))}}const w=new u.Group([...v,...m],{objectCaching:!1,...s});h.value.add(w),h.value.sendToBack(w)}}(),function(){var t;const e=Object.values(F),o=[],i={},r=z.find((t=>"cervix"===t.key&&t.show)),l=null==(t=null==r?void 0:r.data)?void 0:t.find((t=>3==+t.value));function s(t,e){const{key:n,range:o}=r||{},i=x(n,o,10),l=[0,e],s=[-e/t,0],a=[(L-i-e)/t,L-i],u=[D-P,t*(D-P)+e];let c=[],f=[];function d([n,o]){return Math.abs(o-t*n-e)<=1}function p([t,e]){const[n,o]=[...h([t,e])];return n>=P&&n<=D&&o>=i&&o<=L}function h([t,e]){return[P+t,L-e]}return d(l)&&p(l)&&(c=h(l)),d(s)&&p(s)&&(c=h(s)),d(a)&&p(a)&&(f=h(a)),d(u)&&p(u)&&(f=h(u)),[...c,...f]}e.forEach((t=>{if(!t.show)return;const{key:e}=t;switch(e){case"fetalPresentation":{const{range:i,show:r}=z.find((t=>t.key===e));if(r){const r=x(e,i,0);o.push(n([P,r,D,r],{...t}))}break}case"alert":if(l){const{key:e,range:a}=r||{},u=216e5,c={time:p(new Date(new Date(l.time).getTime()+u),"yyyy-MM-dd HH:mm"),value:10},[f,d]=[w(l.time)-P,L-x(e,a,l.value)],[h,g]=[w(c.time)-P,L-x(e,a,c.value)],v=(g-d)/(h-f),m=d-f*v,y=s(v,m);y.length>0&&(o.push(n(y,{...t})),Object.assign(i,{k:v,b:m}))}break;case"handling":if(l){const{k:e,b:r}=i,a=144e5,u=s(e,r-(w(p(new Date(new Date(l.time).getTime()+a),"yyyy-MM-dd HH:mm"))-w(l.time))*e);u.length>0&&o.push(n(u,{...t}))}}})),h.value.add(...o)}(),J(),function(){function t(t,e){const n=z.findIndex((e=>e.key===t.key));return{renderItem:()=>t.title,origin:{title:t.title,unit:t.unit,dataIndex:n,key:t.key},pointer:e}}g.event.evented&&h.value.on("mouse:up",(e=>{if(3===e.button){const{x:n=0,y:o=0}=e.pointer||{};n>=P&&n<=D&&o>=Y&&o<=L&&(y.point={x:n,y:o},y.show=!0,e.target?(y.target=e.target,y.list=["删除节点"],h.value.forEachObject((t=>{t.origin&&t.left===e.target.left&&t.top===e.target.top&&y.list.push({renderItem:()=>t.origin.title,origin:{...t.origin},mode:"remove",pointer:e.pointer})}))):(y.target=null,y.list=["新增节点"],z.filter((t=>t.show)).forEach((i=>{if(!S(n,"key",G).includes(i.key)){if(["cervix","fetalPresentation"].includes(i.key)&&o<B)return;y.list.push(t(i,e.pointer))}})),1===y.list.length&&(y.show=!1,j(),console.log("当前时间段内无可新增节点"))))}}))}(),function(){const t=V-R/2;function e(t,e){if(!t.length)return;let o=Y;const i=[];t.forEach((t=>{const n=t.title.split("").join("\n"),s=O.findIndex((e=>e.key===t.key)),a=new u.Text(String(n),{...r,...t.titleStyle||{},originY:"top",left:e,top:o,lineHeight:1}),c=l(t.type,{left:e,top:o+a.height+3,...t.pointAttr,originY:"top",origin:{title:t.title,unit:t.unit,type:t.type,dataIndex:s,key:t.key,isMenu:!0},originLeft:e,originTop:o+a.height+3,...g.event});o+=a.height+c.height+15,function(t){function e(t){const{left:e,top:n}=t;return e>=P&&e<=D&&n>=Y&&n<=L}t.on("moving",(()=>{t.set("originY","center"),e(t)?(Q(t),U(t)):m.show=!1})),t.on("mouseup:before",(n=>{if(m.show=!1,0===n.e.button&&e(t))if(S(t.left,"key",G).includes(t.origin.key))j();else{const e={data:{time:b(t.left),value:T(t.origin.key,t.top)},...t.origin};v("add",e),K(e)}!function(t){t.setCoords().set({originY:"top",left:t.originLeft,top:t.originTop})}(t)}))}(c),i.push(a,c)})),n(i),h.value.add(...i)}function n(t){const e=t.at(-1),n=(L-Y)/2,o=(e.height+e.top-Y)/2;t.forEach((t=>{const e=t.top+n-o;t.set({top:e,originTop:e})}))}e(X,A/2),e(H,t)}(),{clickMenu:function({item:t,target:e}){const n={...t.origin};"remove"===t.mode?(v("remove",n),K(n,"remove")):(Object.assign(n,{data:{time:b(t.pointer.x),value:T(t.origin.key,t.pointer.y)}}),v("add",n),K(n))}}}export{h as useBirthProcess};
@@ -1 +1 @@
1
- import{ref as e,reactive as a,computed as l,onMounted as t,nextTick as u}from"vue";import{defaultBorderStyle as r}from"./useDraw.js";import"date-fns";import"../utils/index.js";import"lodash-es";import"./useShadow.js";import{useEvent as i,useCanvasEvent as s}from"./useEvent.js";import{useBirthProcess as n}from"./useBirthProcess.js";import{useCommon as d}from"./useCommon.js";function o(o,v,c,h){const m=e(),p=e(),g=e(),f=a({show:!1,point:{x:0,y:0},list:[]}),x=a({show:!1,point:{x:0,y:0},list:[],target:null}),y=l((()=>v.data.scaleValues.filter((e=>"left"===e.layout)))),V=l((()=>v.data.scaleValues.filter((e=>"right"===e.layout)))),w=l((()=>{var e;return(null==(e=V.value)?void 0:e.length)?30:0})),C=l((()=>{var e;return 30+(null==(e=y.value)?void 0:e.reduce(((e,a)=>e+=a.width),0))})),A=l((()=>{var e;const{width:a}=v.data,l=null==(e=V.value)?void 0:e.reduce(((e,a)=>e+=a.width),0);return a-w.value-l})),Y=l((()=>v.data.grid.mainXCell)),j=l((()=>v.data.grid.mainYCell)),S=l((()=>(A.value-C.value)/Y.value)),b=l((()=>{const{xAxis:e,height:a}=v.data,l=Object.values(e).reduce(((e,a)=>(a.show&&e++,e)),0);return a/(j.value+l)})),k=l((()=>b.value)),P=l((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"cervix"===e.key)),[,l]=(null==a?void 0:a.range)||[0,10],t=(null==a?void 0:a.spaceValue)||1;return X.value-l*t*b.value})),X=l((()=>{const{height:e}=v.data;return e-b.value})),H=l((()=>new Date(v.data.xAxis.time.startTime).getTime())),T=l((()=>36e5/S.value)),W=l((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"cervix"===e.key));return((null==a?void 0:a.spaceValue)||1)/b.value})),M=l((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"FHR"===e.key));return((null==a?void 0:a.spaceValue)||10)/b.value})),D=l((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"fetalPresentation"===e.key));return((null==a?void 0:a.spaceValue)||1)/b.value})),F=l((()=>{var e;return(null==(e=v.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),N=a({canvasWidth:v.data.width,canvasHeight:v.data.height,borderStyle:{...r,...v.data.borderStyle},selectionStyle:v.data.selectionStyle||{},grid:v.data.grid,other:v.data.other,originX:C.value,endX:A.value,originY:k.value,endY:X.value,xCellWidth:S.value,yCellHeight:b.value,gridXNumber:Y.value,gridYNumber:j.value,xAxis:v.data.xAxis,leftScales:y.value,rightScales:V.value,leftAddAreaWidth:30,rightAddAreaWidth:w.value,startTime:H.value,timeXCell:T.value,cervixYCell:W.value,FHRYCell:M.value,fetalPresentationYCell:D.value,scaleValues:v.data.scaleValues,event:F.value,originYCervix:P.value}),R=d(o);return t((()=>{u((()=>{const{clickMenu:e}=n(o,N,c,f,x,R);g.value=e,i(h.value);const{select:a}=s(o,N,c);m.value=a}))})),{propItems:N,redrawPoints:p,select:m,pointTipProps:f,pointMenuProps:x,clickMenu:g}}export{o as default};
1
+ import{ref as e,reactive as a,computed as t,onMounted as l,nextTick as u}from"vue";import{defaultBorderStyle as r}from"./useDraw.js";import"date-fns";import"../utils/index.js";import"lodash-es";import"./useShadow.js";import{useEvent as i,useCanvasEvent as s}from"./useEvent.js";import{useBirthProcess as o}from"./useBirthProcess.js";import{useCommon as n}from"./useCommon.js";function d(d,v,c,h){const m=e(),p=e(),f=e(),g=a({show:!1,point:{x:0,y:0},list:[]}),x=a({show:!1,point:{x:0,y:0},list:[],target:null}),w=t((()=>v.data.scaleValues.filter((e=>"left"===e.layout&&e.show)))),y=t((()=>v.data.scaleValues.filter((e=>"right"===e.layout&&e.show)))),V=t((()=>{var e;return(null==(e=y.value)?void 0:e.length)?30:0})),A=t((()=>{var e;return 30+(null==(e=w.value)?void 0:e.reduce(((e,a)=>e+=a.width),0))})),C=t((()=>{var e;const{width:a}=v.data,t=null==(e=y.value)?void 0:e.reduce(((e,a)=>e+=a.width),0);return a-V.value-t})),b=t((()=>v.data.grid.mainXCell)),j=t((()=>{const e=v.data.grid.mainYCell||14;return v.data.scaleValues.find((e=>e.show&&"FHR"===e.key))||14!==e?e:10})),k=t((()=>(C.value-A.value)/b.value)),Y=t((()=>{const{xAxis:e,height:a}=v.data,t=Object.values(e).reduce(((e,a)=>(a.show&&e++,e)),0);return a/(j.value+t)})),S=t((()=>{const{xAxis:e}=v.data,a=Object.values(e).reduce(((e,a)=>(a.show&&"top"===a.position&&e++,e)),0);return Y.value*a})),H=t((()=>{var e;const{scaleValues:a}=v.data;if(!(null==(e=a.find((e=>"FHR"===e.key)))?void 0:e.show)&&!S.value)return S.value;const t=a.find((e=>"cervix"===e.key)),[,l]=(null==t?void 0:t.range)||[0,10],u=(null==t?void 0:t.spaceValue)||1;return P.value-l*u*Y.value})),P=t((()=>{const{xAxis:e,height:a}=v.data,t=Object.values(e).reduce(((e,a)=>(a.show&&"bottom"===a.position&&e++,e)),0);return a-Y.value*t})),X=t((()=>new Date(v.data.xAxis.time.startTime).getTime())),F=t((()=>36e5/k.value)),R=t((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"cervix"===e.key));return((null==a?void 0:a.spaceValue)||1)/Y.value})),T=t((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"FHR"===e.key));return((null==a?void 0:a.spaceValue)||10)/Y.value})),W=t((()=>{const{scaleValues:e}=v.data,a=e.find((e=>"fetalPresentation"===e.key));return((null==a?void 0:a.spaceValue)||1)/Y.value})),M=t((()=>{var e;return(null==(e=v.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),O=a({canvasWidth:v.data.width,canvasHeight:v.data.height,borderStyle:{...r,...v.data.borderStyle},selectionStyle:v.data.selectionStyle||{},grid:v.data.grid,other:v.data.other,originX:A.value,endX:C.value,originY:S.value,endY:P.value,xCellWidth:k.value,yCellHeight:Y.value,gridXNumber:b.value,gridYNumber:j.value,xAxis:v.data.xAxis,leftScales:w.value,rightScales:y.value,leftAddAreaWidth:30,rightAddAreaWidth:V.value,startTime:X.value,timeXCell:F.value,cervixYCell:R.value,FHRYCell:T.value,fetalPresentationYCell:W.value,scaleValues:v.data.scaleValues,event:M.value,originYCervix:H.value}),D=n(d);return l((()=>{u((()=>{const{clickMenu:e}=o(d,O,c,g,x,D);f.value=e,i(h.value);const{select:a}=s(d,O,c);m.value=a}))})),{propItems:O,redrawPoints:p,select:m,pointTipProps:g,pointMenuProps:x,clickMenu:f}}export{d as default};
@@ -1 +1 @@
1
- import{fabric as t}from"../utils/index.js";import{defaultBorderStyle as e,defaultTextStyle as i,defaultStyle as n,defaultRectStyle as o,drawPoint as l,drawTextGroup as r}from"./useDraw.js";import{getType as s,isOneLine as h}from"../utils/utils.js";function u(u,a,g,c,p,f,d,y,w,v,S,m){var b,Y;const{getEqualXTypes:x,repeatTip:X}=m,{originY:N,endY:T,originX:L,endX:M,xCellWidth:V,yCellHeight:C,left:j,vitalSignsOriginY:k,painOriginY:E,painHeight:G,iconsWidth:H,itemList:I,painIndex:O,right:R,canvasWidth:W,canvasHeight:A,getRightInfo:_}=a;function B(e,n,o,l){const{position:r}=n;return new t.Text(String(e),{...i,originX:"left"==r?"right":"right"==r?"left":"center",left:o,top:l,...n.style})}function J(t="center",e,i){let n=e+i/2,o=[n-4.5,n+4.5],l=[n-2.5,n+2.5],r=n;return"right"===t&&(n=e,o=[n,n+9],l=[n,n+5],r=o[1]),"left"===t&&(n=e+i,o=[n-9,n],l=[n-5,n],r=o[0]),{lineXMain:o,lineXSub:l,textLeft:r}}function $(l){var s;if(!(null==l?void 0:l.length))return;const{layout:h}=l[0];let a=H,g=L;"right"===h&&(a=M,g=M+(null!=(s=null==R?void 0:R.width)?s:0));const c=[],p=G&&"right"!==h?l.length-1:l.length,f=(g-a)/p,d=f+(g-a)%p;l.forEach(((l,s)=>{var h,g;if("pain"===l.type)return void function(n){const l=r({width:L-H,height:G,...o},{value:`${n.title}`,...i,...n.style||{}},{left:H,top:E.originY}),s=[];if(n.showScale||n.showNumber){const{lineXMain:i,textLeft:o}=J(n.position,H,L-H),l=n.list.length;n.list.forEach(((r,h)=>{let u=E.endY-h*C*n.spaceGridNumber;0===h&&(u=T-5);const a=0===h||h===l-1;if(!n.showNumber||a&&!n.showMaxMinNumber||s.push(B(r,n,o,u)),n.showScale&&0!==h){const[o,l]=i,r=new t.Line([o,u,l,u],{...e,...n.style});s.push(r)}}))}u.value.add(l,...s),l.sendToBack()}(l);const p=[];function y(i){const n=new t.Line(i,{...e,...l.style});p.push(n)}const w=0===s?d:f,v=0===s?a:d+a+(s-1)*f,S=s>0?new t.Line([v,k.originY,v,k.endY],{...e}):null;S&&p.push(S);const m=v+w/2,b=l.spaceGridNumber||5;if(l.showScale||l.showNumber){const t=b*C/5,e=l.position||"center",{lineXMain:i,lineXSub:n,textLeft:o}=J(l.position,v,w),r=null==(h=l.list)?void 0:h.length;null==(g=null==l?void 0:l.list)||g.forEach(((s,h)=>{const u=k.endY-h*C*b,a=0===h||h===r-1;if(l.showNumber&&(!a||l.showMaxMinNumber)){const t=0==h?u-5:u,e=B(s,l,o,t),i=k.originY+e.height/2;t<i&&e.set({top:i}),p.push(e)}if(l.showScale&&h!==r-1)for(let o=0;o<5;o++)if(o>0||!l.showNumber||"center"!==e){const e=0==o?i[0]:n[0],l=0==o?i[1]:n[1],s=u-o*t;s>k.originY&&(y([e,s,l,s]),h==r-2&&4==o&&y([i[0],s-t,i[1],s-t]))}}))}let Y=l.title||"";l.unit&&(Y+="\n"+l.unit),Y&&p.push(new t.Text(String(Y),{...i,left:m,top:k.originY+C*b/2,textAlign:"center",...l.style}));const x=new t.Group(p,{...n,objectCaching:!1});c.push(x)})),c.push(new t.Rect({...o,width:"right"===h?g-a-1:g-a,height:"right"===h?T-N-1:T-N,left:a,top:N,originX:"left",originY:"top"}));const y=c.length>0?new t.Group([...c],{...n,objectCaching:!1}):null;y&&u.value.add(y),y&&y.sendToBack()}function q(t){return t.left>=L&&t.left<M&&t.top>=N&&t.top<=T}H&&function(){const e=JSON.parse(JSON.stringify(I));let i=T;const o=H-j.icons.marginRight;e.reverse().forEach((e=>{i-=10;let r=e.title.replace(/(.{2})/g,"$1\n");r.endsWith("\n")&&(r=r.slice(0,r.length-1));const f=new t.Text(String(r),{...n,objectCaching:!1,...e.titleStyle||{},originX:"right",originY:"bottom",left:o-(e.pointAttr.width||10)-5,top:i,lineHeight:1,fontSize:12}),d=l(e.type,{left:o,top:i-(f.height||30)/2-1,...e.pointAttr,originY:"center",originX:"right",origin:{title:e.title,unit:e.unit,type:s(e.bigType),_type:e.bigType,dataIndex:e.dataIndex,key:e.key,isMenu:!0},originLeft:o,originTop:i-(f.height||30)/2-1,...a.event});var m;i-=f.height||30,(m=d).on("moving",(()=>{m.set("originX","center"),function(t){if(t.left>=L&&t.left<=M){t.setCoords();const e="pain"===t.origin.type?E:k;t.top<e.originY&&t.set("top",e.originY),t.top>e.endY&&t.set("top",e.endY)}}(m),q(m)?c(m):p.show=!1})),m.on("mouseup:before",(t=>{if(p.show=!1,0===t.e.button&&q(m)){const t=x(m.left,"_type",V).includes(m.origin._type),e=v(m.left);if(!e||t)t&&e&&X();else{const t={data:{time:y(m.left),value:w(m.origin.type,m.top),...h(m.origin.type)?{key:m.origin.key}:{}},...m.origin};g("add",t),S(t)}}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(m)})),u.value.add(f,d)}))}();const z=j.yScaleValue.filter((t=>"left"===t.layout&&"pain"!==t.type&&t.show));if((null==R?void 0:R.width)&&"left"===(null==(b=null==R?void 0:R.yScaleValue)?void 0:b.layout)&&(null==(Y=null==R?void 0:R.yScaleValue)?void 0:Y.show)&&z.push(_),O>0&&j.yScaleValue[O].show){const t=j.yScaleValue[O];0===O&&j.yScaleValue.length>1&&z.unshift(t),O==j.yScaleValue.length-1&&z.push(t)}return $(z),u.value.add(new t.Rect({left:H,top:0,width:W-H-1,height:A-1,fill:"transparent",...e})),{drawScaleValue:$}}export{u as useLeft};
1
+ import{fabric as t}from"../utils/index.js";import{defaultBorderStyle as e,defaultTextStyle as i,defaultStyle as n,drawPoint as o,drawTextGroup as l,defaultRectStyle as r}from"./useDraw.js";import{getType as s,isOneLine as u}from"../utils/utils.js";function h(h,a,c,g,p,f,d,y,w,v,S,b){var m,Y;const{getEqualXTypes:x,repeatTip:X}=b,{originY:T,endY:N,originX:L,endX:M,xCellWidth:V,yCellHeight:C,left:j,vitalSignsOriginY:k,painOriginY:E,painHeight:I,iconsWidth:G,itemList:H,painIndex:O,right:W,canvasWidth:A,canvasHeight:R,getRightInfo:_}=a;function B(e,n,o,l){const{position:r}=n;return new t.Text(String(e),{...i,originX:"left"==r?"right":"right"==r?"left":"center",left:o,top:l,...n.style})}function J(t="center",e,i){let n=e+i/2,o=[n-4.5,n+4.5],l=[n-2.5,n+2.5],r=n;return"right"===t&&(n=e,o=[n,n+9],l=[n,n+5],r=o[1]),"left"===t&&(n=e+i,o=[n-9,n],l=[n-5,n],r=o[0]),{lineXMain:o,lineXSub:l,textLeft:r}}function $(o){var s;if(!(null==o?void 0:o.length))return;const{layout:u}=o[0];let a=G,c=L;"right"===u&&(a=M,c=M+(null!=(s=null==W?void 0:W.width)?s:0));const g=[],p=I&&"right"!==u?o.length-1:o.length,f=(c-a)/p,d=f+(c-a)%p;o.forEach(((o,s)=>{var c,p;if("pain"===o.type)return void function(n){const o=l({width:L-G,height:I,...r},{value:`${n.title}`,...i,...n.style||{}},{left:G,top:E.originY}),s=[];if(n.showScale||n.showNumber){const{lineXMain:i,textLeft:o}=J(n.position,G,L-G),l=n.list.length;n.list.forEach(((r,u)=>{let h=E.endY-u*C*n.spaceGridNumber;0===u&&(h=N-5);const a=0===u||u===l-1;if(!n.showNumber||a&&!n.showMaxMinNumber||s.push(B(r,n,o,h)),n.showScale&&0!==u){const[o,l]=i,r=new t.Line([o,h,l,h],{...e,...n.style});s.push(r)}}))}h.value.add(o,...s),o.sendToBack()}(o);const y=[];function w(i){const n=new t.Line(i,{...e,...o.style});y.push(n)}const v=0===s?d:f,S=0===s?a:d+a+(s-1)*f,b="right"===u?0:k.originY,m="right"===u?R:k.endY,Y=s>0?new t.Line([S,b,S,m],{...e}):null;Y&&y.push(Y);const x=S+v/2,X=o.spaceGridNumber||5;if(o.showScale||o.showNumber){const t=X*C/5,e=o.position||"center",{lineXMain:i,lineXSub:n,textLeft:l}=J(o.position,S,v),r=null==(c=o.list)?void 0:c.length;null==(p=null==o?void 0:o.list)||p.forEach(((s,u)=>{const h=k.endY-u*C*X,a=0===u||u===r-1;if(o.showNumber&&(!a||o.showMaxMinNumber)){const t=0==u?h-5:h,e=B(s,o,l,t),i=k.originY+e.height/2;t<i&&e.set({top:i}),y.push(e)}if(o.showScale&&u!==r-1)for(let l=0;l<5;l++)if(l>0||!o.showNumber||"center"!==e){const e=0==l?i[0]:n[0],o=0==l?i[1]:n[1],s=h-l*t;s>k.originY&&(w([e,s,o,s]),u==r-2&&4==l&&w([i[0],s-t,i[1],s-t]))}}))}let T=o.title||"";o.unit&&(T+="\n"+o.unit),T&&y.push(new t.Text(String(T),{...i,left:x,top:k.originY+C*X/2,textAlign:"center",...o.style}));const M=new t.Group(y,{...n,objectCaching:!1});g.push(M)}));const y=g.length>0?new t.Group([...g],{...n,objectCaching:!1}):null;y&&h.value.add(y),y&&y.sendToBack()}function q(t){return t.left>=L&&t.left<M&&t.top>=T&&t.top<=N}G&&function(){const e=JSON.parse(JSON.stringify(H));let i=N;const l=G-j.icons.marginRight;e.reverse().forEach((e=>{i-=10;let r=e.title.replace(/(.{2})/g,"$1\n");r.endsWith("\n")&&(r=r.slice(0,r.length-1));const f=new t.Text(String(r),{...n,objectCaching:!1,...e.titleStyle||{},originX:"right",originY:"bottom",left:l-(e.pointAttr.width||10)-5,top:i,lineHeight:1,fontSize:12}),d=o(e.type,{left:l,top:i-(f.height||30)/2-1,...e.pointAttr,originY:"center",originX:"right",origin:{title:e.title,unit:e.unit,type:s(e.bigType),_type:e.bigType,dataIndex:e.dataIndex,key:e.key,isMenu:!0},originLeft:l,originTop:i-(f.height||30)/2-1,...a.event});var b;i-=f.height||30,(b=d).on("moving",(()=>{b.set("originX","center"),function(t){if(t.left>=L&&t.left<=M){t.setCoords();const e="pain"===t.origin.type?E:k;t.top<e.originY&&t.set("top",e.originY),t.top>e.endY&&t.set("top",e.endY)}}(b),q(b)?g(b):p.show=!1})),b.on("mouseup:before",(t=>{if(p.show=!1,0===t.e.button&&q(b)){const t=x(b.left,"_type",V).includes(b.origin._type),e=v(b.left);if(!e||t)t&&e&&X();else{const t={data:{time:y(b.left),value:w(b.origin.type,b.top),...u(b.origin.type)?{key:b.origin.key}:{}},...b.origin};c("add",t),S(t)}}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(b)})),h.value.add(f,d)}))}();const z=j.yScaleValue.filter((t=>"left"===t.layout&&"pain"!==t.type&&t.show));if((null==W?void 0:W.width)&&"left"===(null==(m=null==W?void 0:W.yScaleValue)?void 0:m.layout)&&(null==(Y=null==W?void 0:W.yScaleValue)?void 0:Y.show)&&z.push(_),O>0&&j.yScaleValue[O].show){const t=j.yScaleValue[O];0===O&&j.yScaleValue.length>1&&z.unshift(t),O==j.yScaleValue.length-1&&z.push(t)}const D=z.findIndex((t=>"pulse"===t.type&&t.show&&t.doubleShow)),F=z[D];return D>-1&&z.splice(D,0,{...F,title:(null==F?void 0:F.doubleTitle)||(null==F?void 0:F.title)}),$(z),h.value.add(new t.Rect({left:G,top:0,width:A-G-1,height:R-1,fill:"transparent",...e})),{drawScaleValue:$}}export{h as useLeft};
@@ -1 +1 @@
1
- import{fabric as l}from"../utils/index.js";import{defaultBorderStyle as i}from"./useDraw.js";function e(e,n,o){var t,u;const{left:a,right:d,getRightInfo:r,canvasWidth:h,endY:s,endX:f,originY:v}=n,c=a.yScaleValue.filter((l=>"right"===l.layout&&l.show));if((null==d?void 0:d.width)&&"right"===(null==(t=null==d?void 0:d.yScaleValue)?void 0:t.layout)&&(null==(u=null==d?void 0:d.yScaleValue)?void 0:u.show)&&c.push(r),(null==d?void 0:d.width)||c.length>0){const n=new l.Line([h-1,0,h-1,s],i),o=new l.Line([f+1,v,h-1,v],{...i,stroke:"#fff"});e.value.add(n,o)}o(c)}export{e as useRight};
1
+ import{fabric as l}from"../utils/index.js";import{defaultBorderStyle as i}from"./useDraw.js";function e(e,o,t){var n,u;const{left:d,right:s,getRightInfo:a,canvasWidth:h,endY:r,endX:f,originY:v}=o,c=d.yScaleValue.filter((l=>"right"===l.layout&&l.show));(null==s?void 0:s.width)&&"right"===(null==(n=null==s?void 0:s.yScaleValue)?void 0:n.layout)&&(null==(u=null==s?void 0:s.yScaleValue)?void 0:u.show)&&c.push(a);const w=c.findIndex((l=>"pulse"===l.type&&l.show&&l.doubleShow)),g=c[w];if(w>-1&&c.splice(w,0,{...g,title:(null==g?void 0:g.doubleTitle)||(null==g?void 0:g.title)}),(null==s?void 0:s.width)||c.length>0){const o=new l.Line([h-1,0,h-1,r],i),t=new l.Line([f+1,v,h-1,v],{...i,stroke:"#fff"});e.value.add(o,t)}t(c)}export{e as useRight};
@@ -1,7 +1,25 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/types';
2
3
  declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
3
4
  fields: {
4
- type: import("vue").PropType<any[]>;
5
+ type: import("vue").PropType<Partial<{
6
+ [key: string]: any;
7
+ id: string;
8
+ name: string;
9
+ show: boolean;
10
+ sort: boolean;
11
+ sortDirection: "NONE" | "ASC" | "DESC";
12
+ title: string;
13
+ alias: string;
14
+ fixedShow: boolean;
15
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
16
+ columnWidth: number | null;
17
+ editable: boolean;
18
+ editableDisable: boolean;
19
+ required: boolean;
20
+ requiredDisable: boolean;
21
+ hide: boolean;
22
+ }>[]>;
5
23
  default: () => never[];
6
24
  };
7
25
  footerFlag: {
@@ -27,7 +45,24 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
27
45
  settingView: any;
28
46
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
29
47
  fields: {
30
- type: import("vue").PropType<any[]>;
48
+ type: import("vue").PropType<Partial<{
49
+ [key: string]: any;
50
+ id: string;
51
+ name: string;
52
+ show: boolean;
53
+ sort: boolean;
54
+ sortDirection: "NONE" | "ASC" | "DESC";
55
+ title: string;
56
+ alias: string;
57
+ fixedShow: boolean;
58
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
59
+ columnWidth: number | null;
60
+ editable: boolean;
61
+ editableDisable: boolean;
62
+ required: boolean;
63
+ requiredDisable: boolean;
64
+ hide: boolean;
65
+ }>[]>;
31
66
  default: () => never[];
32
67
  };
33
68
  footerFlag: {
@@ -54,7 +89,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
54
89
  clickItem: {
55
90
  [key: string]: any;
56
91
  };
57
- fields: {
92
+ fields: Partial<{
58
93
  [key: string]: any;
59
94
  id: string;
60
95
  name: string;
@@ -71,11 +106,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
71
106
  required: boolean;
72
107
  requiredDisable: boolean;
73
108
  hide: boolean;
74
- }[];
109
+ }>[];
75
110
  widthShow: string;
76
111
  widthLarge: string;
77
112
  };
78
- leftStyle: (ele: {
113
+ leftStyle: (ele: Partial<{
79
114
  [key: string]: any;
80
115
  id: string;
81
116
  name: string;
@@ -92,7 +127,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
92
127
  required: boolean;
93
128
  requiredDisable: boolean;
94
129
  hide: boolean;
95
- }) => {
130
+ }>) => {
96
131
  background: string | undefined;
97
132
  };
98
133
  showCheckBox: (key: string) => boolean;
@@ -103,7 +138,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
103
138
  reset: () => void;
104
139
  calculateCheck: (key: string) => boolean;
105
140
  handleAllCheck: (e: boolean, key: string) => void;
106
- handleFieldClick: (item: {
141
+ handleFieldClick: (item: Partial<{
107
142
  [key: string]: any;
108
143
  id: string;
109
144
  name: string;
@@ -120,8 +155,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
120
155
  required: boolean;
121
156
  requiredDisable: boolean;
122
157
  hide: boolean;
123
- }) => void;
124
- isDisable: (item: {
158
+ }>) => void;
159
+ isDisable: (item: Partial<{
125
160
  [key: string]: any;
126
161
  id: string;
127
162
  name: string;
@@ -138,7 +173,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
138
173
  required: boolean;
139
174
  requiredDisable: boolean;
140
175
  hide: boolean;
141
- }, key: string) => any;
176
+ }>, key: string) => any;
142
177
  setWidth: () => void;
143
178
  NButton: any;
144
179
  NCheckbox: any;
@@ -148,7 +183,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
148
183
  NSpin: any;
149
184
  NTooltip: any;
150
185
  NPopconfirm: any;
151
- draggable: import("vue").DefineComponent<{
186
+ Draggable: import("vue").DefineComponent<{
152
187
  list: {
153
188
  type: ArrayConstructor;
154
189
  required: boolean;
@@ -223,7 +258,24 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
223
258
  }>;
224
259
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
225
260
  fields: {
226
- type: import("vue").PropType<any[]>;
261
+ type: import("vue").PropType<Partial<{
262
+ [key: string]: any;
263
+ id: string;
264
+ name: string;
265
+ show: boolean;
266
+ sort: boolean;
267
+ sortDirection: "NONE" | "ASC" | "DESC";
268
+ title: string;
269
+ alias: string;
270
+ fixedShow: boolean;
271
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
272
+ columnWidth: number | null;
273
+ editable: boolean;
274
+ editableDisable: boolean;
275
+ required: boolean;
276
+ requiredDisable: boolean;
277
+ hide: boolean;
278
+ }>[]>;
227
279
  default: () => never[];
228
280
  };
229
281
  footerFlag: {
@@ -244,7 +296,24 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
244
296
  onOnClose?: ((...args: any[]) => any) | undefined;
245
297
  }, {
246
298
  type: string;
247
- fields: any[];
299
+ fields: Partial<{
300
+ [key: string]: any;
301
+ id: string;
302
+ name: string;
303
+ show: boolean;
304
+ sort: boolean;
305
+ sortDirection: "NONE" | "ASC" | "DESC";
306
+ title: string;
307
+ alias: string;
308
+ fixedShow: boolean;
309
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
310
+ columnWidth: number | null;
311
+ editable: boolean;
312
+ editableDisable: boolean;
313
+ required: boolean;
314
+ requiredDisable: boolean;
315
+ hide: boolean;
316
+ }>[];
248
317
  footerFlag: boolean;
249
318
  isEdit: boolean;
250
319
  }>>;
@@ -1,35 +1,35 @@
1
1
  import { PropType } from 'vue';
2
- declare type Ifields = {
3
- id: string;
4
- name: string;
5
- show: boolean;
6
- sort: boolean;
7
- sortDirection: 'NONE' | 'ASC' | 'DESC';
8
- title: string;
9
- alias: string;
10
- fixedShow: boolean;
11
- fixedWay: 'NONE' | 'LEFT' | 'RIGHT';
12
- columnWidth: number | null;
13
- editable: boolean;
14
- editableDisable: boolean;
15
- required: boolean;
16
- requiredDisable: boolean;
17
- hide: boolean;
18
- [key: string]: any;
19
- };
2
+ import { FieldSetItem } from '../../../../es/components/field-set/src/types';
20
3
  declare type Istate = {
21
4
  spinning: boolean;
22
5
  isCustomSearch: boolean;
23
6
  clickItem: {
24
7
  [key: string]: any;
25
8
  };
26
- fields: Ifields[];
9
+ fields: FieldSetItem[];
27
10
  widthShow: string;
28
11
  widthLarge: string;
29
12
  };
30
13
  declare const _default: import("vue").DefineComponent<{
31
14
  fields: {
32
- type: PropType<any[]>;
15
+ type: PropType<Partial<{
16
+ [key: string]: any;
17
+ id: string;
18
+ name: string;
19
+ show: boolean;
20
+ sort: boolean;
21
+ sortDirection: "NONE" | "ASC" | "DESC";
22
+ title: string;
23
+ alias: string;
24
+ fixedShow: boolean;
25
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
26
+ columnWidth: number | null;
27
+ editable: boolean;
28
+ editableDisable: boolean;
29
+ required: boolean;
30
+ requiredDisable: boolean;
31
+ hide: boolean;
32
+ }>[]>;
33
33
  default: () => never[];
34
34
  };
35
35
  footerFlag: {
@@ -55,7 +55,24 @@ declare const _default: import("vue").DefineComponent<{
55
55
  settingView: any;
56
56
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
57
57
  fields: {
58
- type: PropType<any[]>;
58
+ type: PropType<Partial<{
59
+ [key: string]: any;
60
+ id: string;
61
+ name: string;
62
+ show: boolean;
63
+ sort: boolean;
64
+ sortDirection: "NONE" | "ASC" | "DESC";
65
+ title: string;
66
+ alias: string;
67
+ fixedShow: boolean;
68
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
69
+ columnWidth: number | null;
70
+ editable: boolean;
71
+ editableDisable: boolean;
72
+ required: boolean;
73
+ requiredDisable: boolean;
74
+ hide: boolean;
75
+ }>[]>;
59
76
  default: () => never[];
60
77
  };
61
78
  footerFlag: {
@@ -77,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
77
94
  }>>;
78
95
  initFields: () => any[];
79
96
  state: Istate;
80
- leftStyle: (ele: Ifields) => {
97
+ leftStyle: (ele: FieldSetItem) => {
81
98
  background: string | undefined;
82
99
  };
83
100
  showCheckBox: (key: string) => boolean;
@@ -88,8 +105,8 @@ declare const _default: import("vue").DefineComponent<{
88
105
  reset: () => void;
89
106
  calculateCheck: (key: string) => boolean;
90
107
  handleAllCheck: (e: boolean, key: string) => void;
91
- handleFieldClick: (item: Ifields) => void;
92
- isDisable: (item: Ifields, key: string) => any;
108
+ handleFieldClick: (item: FieldSetItem) => void;
109
+ isDisable: (item: FieldSetItem, key: string) => any;
93
110
  setWidth: () => void;
94
111
  NButton: any;
95
112
  NCheckbox: any;
@@ -99,7 +116,7 @@ declare const _default: import("vue").DefineComponent<{
99
116
  NSpin: any;
100
117
  NTooltip: any;
101
118
  NPopconfirm: any;
102
- draggable: import("vue").DefineComponent<{
119
+ Draggable: import("vue").DefineComponent<{
103
120
  list: {
104
121
  type: ArrayConstructor;
105
122
  required: boolean;
@@ -174,7 +191,24 @@ declare const _default: import("vue").DefineComponent<{
174
191
  }>;
175
192
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
176
193
  fields: {
177
- type: PropType<any[]>;
194
+ type: PropType<Partial<{
195
+ [key: string]: any;
196
+ id: string;
197
+ name: string;
198
+ show: boolean;
199
+ sort: boolean;
200
+ sortDirection: "NONE" | "ASC" | "DESC";
201
+ title: string;
202
+ alias: string;
203
+ fixedShow: boolean;
204
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
205
+ columnWidth: number | null;
206
+ editable: boolean;
207
+ editableDisable: boolean;
208
+ required: boolean;
209
+ requiredDisable: boolean;
210
+ hide: boolean;
211
+ }>[]>;
178
212
  default: () => never[];
179
213
  };
180
214
  footerFlag: {
@@ -195,7 +229,24 @@ declare const _default: import("vue").DefineComponent<{
195
229
  onOnClose?: ((...args: any[]) => any) | undefined;
196
230
  }, {
197
231
  type: string;
198
- fields: any[];
232
+ fields: Partial<{
233
+ [key: string]: any;
234
+ id: string;
235
+ name: string;
236
+ show: boolean;
237
+ sort: boolean;
238
+ sortDirection: "NONE" | "ASC" | "DESC";
239
+ title: string;
240
+ alias: string;
241
+ fixedShow: boolean;
242
+ fixedWay: "NONE" | "LEFT" | "RIGHT";
243
+ columnWidth: number | null;
244
+ editable: boolean;
245
+ editableDisable: boolean;
246
+ required: boolean;
247
+ requiredDisable: boolean;
248
+ hide: boolean;
249
+ }>[];
199
250
  footerFlag: boolean;
200
251
  isEdit: boolean;
201
252
  }>;
@@ -0,0 +1,18 @@
1
+ export declare type FieldSetItem = Partial<{
2
+ id: string;
3
+ name: string;
4
+ show: boolean;
5
+ sort: boolean;
6
+ sortDirection: 'NONE' | 'ASC' | 'DESC';
7
+ title: string;
8
+ alias: string;
9
+ fixedShow: boolean;
10
+ fixedWay: 'NONE' | 'LEFT' | 'RIGHT';
11
+ columnWidth: number | null;
12
+ editable: boolean;
13
+ editableDisable: boolean;
14
+ required: boolean;
15
+ requiredDisable: boolean;
16
+ hide: boolean;
17
+ [key: string]: any;
18
+ }>;