cnhis-design-vue 3.1.22-beta.0 → 3.1.22-beta.10

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 (105) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +8 -0
  3. package/es/components/big-table/index2.js +0 -2
  4. package/es/components/big-table/src/BigTable.vue.d.ts +8 -0
  5. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +29 -36
  6. package/es/components/big-table/src/components/edit-form/edit-date.js +81 -10
  7. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -0
  8. package/es/components/big-table/src/hooks/useEdit2.js +2 -2
  9. package/es/components/big-table/style/index.css +1 -1
  10. package/es/components/fabric-chart/index.d.ts +1 -0
  11. package/es/components/fabric-chart/src/FabricChart.js +3 -2
  12. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -0
  13. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -0
  14. package/es/components/fabric-chart/src/hooks/useCenter2.js +15 -3
  15. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  16. package/es/components/fabric-chart/src/hooks/useLeft2.js +7 -5
  17. package/es/components/fabric-chart/src/interface.d.ts +2 -0
  18. package/es/components/field-set/index.d.ts +4 -3
  19. package/es/components/field-set/src/FieldSet.js +9 -4
  20. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -3
  21. package/es/components/form-render/src/components/renderer/cascader.js +10 -7
  22. package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
  23. package/es/components/form-render/src/components/renderer/combination.js +4 -1
  24. package/es/components/form-render/src/components/renderer/date.js +11 -4
  25. package/es/components/form-render/src/components/renderer/input.js +2 -2
  26. package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
  27. package/es/components/form-render/src/components/renderer/search.js +3 -3
  28. package/es/components/form-render/src/components/renderer/select.js +3 -3
  29. package/es/components/form-render/src/components/renderer/textarea.js +2 -2
  30. package/es/components/form-render/src/hooks/useCommonInjection2.js +6 -2
  31. package/es/components/form-render/src/utils/schema.d.ts +4 -1
  32. package/es/components/form-render/src/utils/schema.js +1 -1
  33. package/es/components/form-render/src/utils/schema2.js +9 -2
  34. package/es/components/grid/index2.js +0 -2
  35. package/es/components/iho-table/index.d.ts +4266 -337
  36. package/es/components/iho-table/index.js +1 -1
  37. package/es/components/iho-table/index2.js +9 -4
  38. package/es/components/iho-table/src/IhoTable.js +39 -13
  39. package/es/components/iho-table/src/IhoTable.vue.d.ts +4254 -326
  40. package/es/components/iho-table/src/components/IhoTableColumn.d.ts +2 -2
  41. package/es/components/iho-table/src/components/IhoTableColumn.js +25 -5
  42. package/es/components/iho-table/src/constants/index.d.ts +8 -1
  43. package/es/components/iho-table/src/constants/index.js +1 -1
  44. package/es/components/iho-table/src/constants/index2.js +79 -1
  45. package/es/components/iho-table/src/hooks/index.js +1 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -0
  47. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  48. package/es/components/iho-table/src/hooks/tapHooks/index2.js +71 -24
  49. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
  50. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
  52. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +62 -60
  53. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -1
  54. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks2.js +4 -1
  55. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  56. package/es/components/iho-table/src/hooks/useTablePlugin2.js +2 -3
  57. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +3 -2
  58. package/es/components/iho-table/src/plugins/index.d.ts +1 -0
  59. package/es/components/iho-table/src/plugins/index.js +8 -5
  60. package/es/components/iho-table/src/plugins/index2.js +8 -5
  61. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +10 -4
  62. package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
  63. package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
  64. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
  65. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
  66. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
  67. package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +49 -0
  68. package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
  70. package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
  71. package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
  72. package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
  73. package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
  74. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
  75. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
  76. package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
  80. package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
  81. package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
  82. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -0
  83. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -0
  84. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +72 -0
  85. package/es/components/iho-table/src/types/index.d.ts +31 -8
  86. package/es/components/iho-table/src/types/pluginType.d.ts +91 -64
  87. package/es/components/iho-table/src/utils/index.d.ts +3 -0
  88. package/es/components/iho-table/src/utils/index.js +1 -1
  89. package/es/components/iho-table/src/utils/index2.js +16 -1
  90. package/es/components/index.css +1 -1
  91. package/es/components/index.js +1 -1
  92. package/es/components/index2.js +1 -1
  93. package/package.json +4 -4
  94. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
  95. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  96. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  97. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  98. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  99. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  100. package/es/components/form-render/src/components/index.d.ts +0 -0
  101. package/es/components/form-render/src/components/index.js +0 -1
  102. package/es/shared/utils/loadVxe.d.ts +0 -2
  103. package/es/shared/utils/loadVxe.js +0 -1
  104. package/es/shared/utils/loadVxe2.js +0 -12
  105. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- .big-table-filter-wrap{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;flex-wrap:wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:0 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding-left:13px;padding-right:3px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{display:inline-flex;height:100%;line-height:unset;width:100%}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--tableImageHeight);width:var(--tableImageWidth)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom,.custom-big-table .domPropsInnerHTML-span .icon-dot-red{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue,.custom-big-table .domPropsInnerHTML-span .icon-dot-green{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray,.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu,.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit,.custom-big-table .domPropsInnerHTML-span .icon-dot-close{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design,.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-4px 0 4px 0 rgba(0,0,0,.12)}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}
1
+ .big-table-filter-wrap{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;flex-wrap:wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:0 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding-left:13px;padding-right:3px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{color:#35393c;height:100%;line-height:unset}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title .header-title-span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--tableImageHeight);width:var(--tableImageWidth)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom,.custom-big-table .domPropsInnerHTML-span .icon-dot-red{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue,.custom-big-table .domPropsInnerHTML-span .icon-dot-green{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray,.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu,.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit,.custom-big-table .domPropsInnerHTML-span .icon-dot-close{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-design,.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-4px 0 4px 0 rgba(0,0,0,.12)}.custom-big-table .v-binder-follower-container{z-index:4!important}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentColor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}.big-table__annotationWrapper .is-active{position:relative;top:3px}
@@ -82,6 +82,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
82
82
  }) => void;
83
83
  setPopup: (point: any) => void;
84
84
  getEqualXTypes: (pointX: number) => import("./src/interface").IPointType[];
85
+ isAddPoint: (x: number) => boolean;
85
86
  drawScaleValue: (yScaleValueList: any[]) => void;
86
87
  PopupTip: import("vue").DefineComponent<{
87
88
  show: {
@@ -240,6 +240,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
240
240
  xScalevalueHeight: xScalevalueHeight.value,
241
241
  topList: topList.value,
242
242
  breathingHeight: breathingHeight.value,
243
+ hospitalizationDate: props.data.hospitalizationDate,
243
244
  grid: props.data.grid,
244
245
  top: props.data.top,
245
246
  left: props.data.left,
@@ -280,8 +281,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
280
281
  }
281
282
  const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
282
283
  useTop(canvas, propItems);
283
- const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
284
- const { drawScaleValue } = useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes);
284
+ const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes, isAddPoint } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
285
+ const { drawScaleValue } = useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes, isAddPoint);
285
286
  useRight(canvas, propItems, drawScaleValue);
286
287
  useBottom(canvas, propItems);
287
288
  useOther(canvas, propItems, cumputedX);
@@ -83,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
83
83
  }) => void;
84
84
  setPopup: (point: any) => void;
85
85
  getEqualXTypes: (pointX: number) => IPointType[];
86
+ isAddPoint: (x: number) => boolean;
86
87
  drawScaleValue: (yScaleValueList: any[]) => void;
87
88
  PopupTip: import("vue").DefineComponent<{
88
89
  show: {
@@ -26,4 +26,5 @@ export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropIt
26
26
  }) => void;
27
27
  setPopup: (point: any) => void;
28
28
  getEqualXTypes: (pointX: number) => IPointType[];
29
+ isAddPoint: (x: number) => boolean;
29
30
  };
@@ -33,7 +33,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
33
33
  itemList,
34
34
  event,
35
35
  vitalSignsOriginY,
36
- painOriginY
36
+ painOriginY,
37
+ hospitalizationDate
37
38
  } = propItems;
38
39
  const pointTipProps = reactive({
39
40
  show: false,
@@ -170,7 +171,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
170
171
  }
171
172
  }
172
173
  });
173
- if (pointMenuProps.list.length === 1) {
174
+ if (!isAddPoint(x) || pointMenuProps.list.length === 1) {
174
175
  pointMenuProps.show = false;
175
176
  console.log("\u5F53\u524D\u65F6\u95F4\u6BB5\u5185\u65E0\u53EF\u65B0\u589E\u8282\u70B9");
176
177
  }
@@ -530,6 +531,16 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
530
531
  return [x, y < objOriginY.originY ? objOriginY.originY : y > objOriginY.endY ? objOriginY.endY : y];
531
532
  }
532
533
  }
534
+ function isAddPoint(x) {
535
+ const d = new Date();
536
+ const month = `00${d.getMonth() + 1}`.slice(-2);
537
+ const day = `00${d.getDate()}`.slice(-2);
538
+ const todayTime = new Date(`${d.getFullYear()}-${month}-${day} 23:59:59`).getTime();
539
+ const pointTime = new Date(`${getXValue(x)}:00`).getTime();
540
+ if (hospitalizationDate && pointTime < new Date(hospitalizationDate).getTime() || pointTime > todayTime)
541
+ return false;
542
+ return true;
543
+ }
533
544
  function clickMenu({ item, target }) {
534
545
  if (!target) {
535
546
  emits("add", {
@@ -560,7 +571,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
560
571
  pointMenuProps,
561
572
  clickMenu,
562
573
  setPopup,
563
- getEqualXTypes
574
+ getEqualXTypes,
575
+ isAddPoint
564
576
  };
565
577
  }
566
578
 
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
- export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, getXValue: Function, getYValue: Function, getEqualXTypes: Function): {
4
+ export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, getXValue: Function, getYValue: Function, getEqualXTypes: Function, isAddPoint: Function): {
5
5
  drawScaleValue: (yScaleValueList: any[]) => void;
6
6
  };
@@ -2,7 +2,7 @@ import { onMounted, nextTick } from 'vue';
2
2
  import { fabric } from '../utils/index.js';
3
3
  import { defaultBorderStyle, defaultTextStyle, defaultStyle, defaultRectStyle, drawPoint, drawTextGroup } from './useDraw2.js';
4
4
 
5
- function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes) {
5
+ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes, isAddPoint) {
6
6
  const {
7
7
  originY,
8
8
  endY,
@@ -19,7 +19,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
19
19
  right,
20
20
  canvasWidth,
21
21
  canvasHeight,
22
- getRightInfo
22
+ getRightInfo,
23
+ hospitalizationDate
23
24
  } = propItems;
24
25
  const mainScaleWidth = 9;
25
26
  const subScaleWidth = 5;
@@ -233,7 +234,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
233
234
  });
234
235
  }
235
236
  function isLimit(point) {
236
- return point.left >= originX && point.left <= endX && point.top >= originY && point.top <= endY;
237
+ return point.left >= originX && point.left < endX && point.top >= originY && point.top <= endY;
237
238
  }
238
239
  function moveLimit(point) {
239
240
  if (point.left >= originX && point.left <= endX) {
@@ -249,6 +250,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
249
250
  }
250
251
  function setPointEvent(point) {
251
252
  point.on("moving", () => {
253
+ point.set("originX", "center");
252
254
  moveLimit(point);
253
255
  if (isLimit(point)) {
254
256
  setPopup(point);
@@ -260,7 +262,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
260
262
  pointTipProps.show = false;
261
263
  if (event.e.button === 0) {
262
264
  if (isLimit(point)) {
263
- if (!getEqualXTypes(point.left).includes(point.origin.type)) {
265
+ if (!getEqualXTypes(point.left).includes(point.origin.type) && isAddPoint(point.left)) {
264
266
  emits("add", {
265
267
  data: {
266
268
  time: getXValue(point.left),
@@ -279,7 +281,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
279
281
  }
280
282
  function setRestore() {
281
283
  point.setCoords();
282
- point.set({ left: point.originLeft, top: point.originTop });
284
+ point.set({ originX: "right", left: point.originLeft, top: point.originTop });
283
285
  }
284
286
  });
285
287
  }
@@ -34,6 +34,7 @@ export interface IPropItems {
34
34
  xScalevalueHeight: number;
35
35
  topList: IDate[];
36
36
  breathingHeight: number;
37
+ hospitalizationDate?: string;
37
38
  grid: IGrid;
38
39
  top: ITop;
39
40
  left: ILeft;
@@ -106,6 +107,7 @@ export interface IData {
106
107
  height: number;
107
108
  borderStyle?: fabric.ILineOptions;
108
109
  selectionStyle?: any;
110
+ hospitalizationDate: string;
109
111
  grid: IGrid;
110
112
  other?: IOther;
111
113
  top: ITop;
@@ -19,7 +19,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
19
19
  }, {
20
20
  fieldsMapping: Record<string, string>;
21
21
  selectOptions: Record<string, string>[];
22
- emit: (event: "onSave" | "onClose", ...args: any[]) => void;
22
+ emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
23
23
  settingView: any;
24
24
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
25
25
  fields: {
@@ -39,11 +39,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
39
39
  default: boolean;
40
40
  };
41
41
  }>> & {
42
+ onReset?: ((...args: any[]) => any) | undefined;
42
43
  onOnSave?: ((...args: any[]) => any) | undefined;
43
44
  onOnClose?: ((...args: any[]) => any) | undefined;
44
45
  }>>;
45
46
  initFields: () => any[];
46
- realityFields: import("vue").ComputedRef<any[]>;
47
47
  state: {
48
48
  spinning: boolean;
49
49
  isCustomSearch: boolean;
@@ -212,7 +212,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
212
212
  modelValue: unknown[];
213
213
  componentData: Record<string, any>;
214
214
  }>;
215
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
215
+ }, 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<{
216
216
  fields: {
217
217
  type: import("vue").PropType<any[]>;
218
218
  default: () => never[];
@@ -230,6 +230,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
230
230
  default: boolean;
231
231
  };
232
232
  }>> & {
233
+ onReset?: ((...args: any[]) => any) | undefined;
233
234
  onOnSave?: ((...args: any[]) => any) | undefined;
234
235
  onOnClose?: ((...args: any[]) => any) | undefined;
235
236
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, onMounted, openBlock, createElementBlock, normalizeStyle, createVNode, unref, withCtx, createElementVNode, normalizeClass, createCommentVNode, createBlock, toDisplayString, withDirectives, vShow, renderSlot, createTextVNode } from 'vue';
1
+ import { defineComponent, ref, reactive, watch, onMounted, openBlock, createElementBlock, normalizeStyle, createVNode, unref, withCtx, createElementVNode, normalizeClass, createCommentVNode, createBlock, toDisplayString, withDirectives, vShow, renderSlot, createTextVNode } from 'vue';
2
2
  import { NSpin, NCheckbox, NTooltip, NSelect, NInput, NInputNumber, NButton } from 'naive-ui';
3
3
  import Draggable from 'vuedraggable';
4
4
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
78
  default: false
79
79
  }
80
80
  },
81
- emits: ["onSave", "onClose"],
81
+ emits: ["onSave", "onClose", "reset"],
82
82
  setup(__props, { expose, emit }) {
83
83
  const props = __props;
84
84
  const fieldsMapping = {
@@ -126,12 +126,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
126
126
  });
127
127
  return result;
128
128
  }
129
- const realityFields = computed(initFields);
130
129
  const state = reactive({
131
130
  spinning: false,
132
131
  isCustomSearch: true,
133
132
  clickItem: {},
134
- fields: realityFields.value,
133
+ fields: [],
135
134
  widthShow: "10%",
136
135
  widthLarge: "20%"
137
136
  });
@@ -181,6 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
180
  };
182
181
  function reset() {
183
182
  state.fields = initFields();
183
+ emit("reset");
184
184
  }
185
185
  const calculateCheck = (key) => {
186
186
  if (!state.fields.length)
@@ -213,6 +213,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
213
213
  state.widthLarge = "15%";
214
214
  }
215
215
  }
216
+ watch(() => props.fields, (value) => {
217
+ if ((value == null ? void 0 : value.length) > 0) {
218
+ state.fields = initFields();
219
+ }
220
+ }, { immediate: true, deep: true });
216
221
  onMounted(() => {
217
222
  hideTab();
218
223
  setWidth();
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
46
46
  }, {
47
47
  fieldsMapping: Record<string, string>;
48
48
  selectOptions: Record<string, string>[];
49
- emit: (event: "onSave" | "onClose", ...args: any[]) => void;
49
+ emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
50
50
  settingView: any;
51
51
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
52
52
  fields: {
@@ -66,11 +66,11 @@ declare const _default: import("vue").DefineComponent<{
66
66
  default: boolean;
67
67
  };
68
68
  }>> & {
69
+ onReset?: ((...args: any[]) => any) | undefined;
69
70
  onOnSave?: ((...args: any[]) => any) | undefined;
70
71
  onOnClose?: ((...args: any[]) => any) | undefined;
71
72
  }>>;
72
73
  initFields: () => any[];
73
- realityFields: import("vue").ComputedRef<any[]>;
74
74
  state: Istate;
75
75
  leftStyle: (ele: Ifields) => {
76
76
  background: string | undefined;
@@ -166,7 +166,7 @@ declare const _default: import("vue").DefineComponent<{
166
166
  modelValue: unknown[];
167
167
  componentData: Record<string, any>;
168
168
  }>;
169
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose")[], "onSave" | "onClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
169
+ }, 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<{
170
170
  fields: {
171
171
  type: PropType<any[]>;
172
172
  default: () => never[];
@@ -184,6 +184,7 @@ declare const _default: import("vue").DefineComponent<{
184
184
  default: boolean;
185
185
  };
186
186
  }>> & {
187
+ onReset?: ((...args: any[]) => any) | undefined;
187
188
  onOnSave?: ((...args: any[]) => any) | undefined;
188
189
  onOnClose?: ((...args: any[]) => any) | undefined;
189
190
  }, {
@@ -38,7 +38,7 @@ import './complex.js';
38
38
  import './simpleComponent.js';
39
39
  import './search.js';
40
40
  import { NCascader } from 'naive-ui';
41
- import { assignUpdateValue, assignValueBindKey, traverseDependKey } from '../../utils/schema2.js';
41
+ import { assignUpdateValue, traverseDependKey } from '../../utils/schema2.js';
42
42
 
43
43
  const script = defineComponent({
44
44
  name: "FormCascader",
@@ -146,7 +146,7 @@ const script = defineComponent({
146
146
  function notNeedToFetchData(props2, option2) {
147
147
  return !configFor(props2) || !option2 && remoteOptions.value || deepFor(option2) >= deepFor(props2) - 1;
148
148
  }
149
- function createRequestParams(deep, config, key, option2) {
149
+ function createRequestParams(deep, config, key2, option2) {
150
150
  const params = {
151
151
  lvlnr: deep + 1 + ""
152
152
  };
@@ -158,7 +158,7 @@ const script = defineComponent({
158
158
  return {
159
159
  params,
160
160
  ...config,
161
- key
161
+ key: key2
162
162
  };
163
163
  }
164
164
  function getOptionChain(option2) {
@@ -189,7 +189,8 @@ const script = defineComponent({
189
189
  }
190
190
  const {
191
191
  injectValueValidate,
192
- injectValueWatchFromEmpty
192
+ injectValueWatchFromEmpty,
193
+ injectValueBindKey
193
194
  } = useCommonInjection();
194
195
  injectValueWatchFromEmpty(() => props.value, fetchData);
195
196
  injectValueValidate(() => props.value);
@@ -207,7 +208,7 @@ const script = defineComponent({
207
208
  const parsedOptions = computed(() => {
208
209
  return remoteOptions.value || props.options || [];
209
210
  });
210
- function focusDecorator(onFocus) {
211
+ function visitedDecorator(onFocus) {
211
212
  return (...args) => {
212
213
  if (isField(field.value)) {
213
214
  field.value.visited = true;
@@ -216,8 +217,10 @@ const script = defineComponent({
216
217
  };
217
218
  }
218
219
  const remote = computed(() => !props.filterable);
220
+ const key = injectValueBindKey(valueRef);
219
221
  return () => {
220
222
  return createVNode(NCascader, {
223
+ "key": key.value,
221
224
  "remote": remote.value,
222
225
  "filterable": props.filterable,
223
226
  "checkStrategy": "child",
@@ -229,13 +232,13 @@ const script = defineComponent({
229
232
  "valueField": valueKey.value,
230
233
  "options": parsedOptions.value,
231
234
  "onLoad": fetchData,
232
- "onFocus": focusDecorator(props.onFocus)
235
+ "onFocus": visitedDecorator(props.onFocus)
233
236
  }, slots);
234
237
  };
235
238
  }
236
239
  });
237
240
  const SEARCH_CASCADE = connect(script, mapProps({
238
241
  dataSource: "options"
239
- }, assignUpdateValue, assignValueBindKey));
242
+ }, assignUpdateValue));
240
243
 
241
244
  export { SEARCH_CASCADE };
@@ -11,6 +11,9 @@ export declare const COMBINATION: import("vue").DefineComponent<{
11
11
  maxGroupNum: {
12
12
  type: NumberConstructor;
13
13
  };
14
+ disabled: {
15
+ type: BooleanConstructor;
16
+ };
14
17
  getProperties: {
15
18
  type: PropType<() => FieldItem[]>;
16
19
  default: () => never[];
@@ -29,6 +32,9 @@ export declare const COMBINATION: import("vue").DefineComponent<{
29
32
  maxGroupNum: {
30
33
  type: NumberConstructor;
31
34
  };
35
+ disabled: {
36
+ type: BooleanConstructor;
37
+ };
32
38
  getProperties: {
33
39
  type: PropType<() => FieldItem[]>;
34
40
  default: () => never[];
@@ -39,6 +45,7 @@ export declare const COMBINATION: import("vue").DefineComponent<{
39
45
  }>> & {
40
46
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
41
47
  }, {
48
+ disabled: boolean;
42
49
  title: string;
43
50
  getProperties: () => FieldItem[];
44
51
  }>;
@@ -22,6 +22,9 @@ const script = defineComponent({
22
22
  maxGroupNum: {
23
23
  type: Number
24
24
  },
25
+ disabled: {
26
+ type: Boolean
27
+ },
25
28
  getProperties: {
26
29
  type: Function,
27
30
  default: () => []
@@ -70,7 +73,7 @@ const script = defineComponent({
70
73
  "onClick": addGroup,
71
74
  "type": "info",
72
75
  "text": true,
73
- "disabled": currentGroupNum.value >= maxGroupNum.value
76
+ "disabled": currentGroupNum.value >= maxGroupNum.value || props.disabled
74
77
  }, {
75
78
  icon: () => createVNode(NIcon, {
76
79
  "component": AddCircleOutline
@@ -6,7 +6,7 @@ import { format } from 'date-fns';
6
6
  import { NDatePicker } from 'naive-ui';
7
7
  import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
8
8
  import '../../utils/index.js';
9
- import { assignUpdateValue, assignValueBindKey } from '../../utils/schema2.js';
9
+ import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
10
10
 
11
11
  const script = defineComponent({
12
12
  props: {
@@ -26,7 +26,11 @@ const script = defineComponent({
26
26
  setup(props, {
27
27
  emit
28
28
  }) {
29
- useCommonInjection().injectValueValidate(() => props.value);
29
+ const {
30
+ injectValueValidate,
31
+ injectValueBindKey
32
+ } = useCommonInjection();
33
+ injectValueValidate(() => props.value);
30
34
  function minCurrentDate() {
31
35
  var _a;
32
36
  return ((_a = props.validate) == null ? void 0 : _a.min_date) === "currTime";
@@ -115,12 +119,15 @@ const script = defineComponent({
115
119
  get: () => formatDate(props.value),
116
120
  set: (value) => emit("update:value", value)
117
121
  });
118
- return () => createVNode(NDatePicker, mergeProps(validateConfig.value, formatConfig.value, {
122
+ const key = injectValueBindKey(valueRef);
123
+ return () => createVNode(NDatePicker, mergeProps({
124
+ "key": key.value
125
+ }, validateConfig.value, formatConfig.value, {
119
126
  "formatted-value": valueRef.value,
120
127
  "onUpdate:formatted-value": ($event) => valueRef.value = $event
121
128
  }), null);
122
129
  }
123
130
  });
124
- const DATE = connect(script, mapProps(assignUpdateValue, assignValueBindKey));
131
+ const DATE = connect(script, mapProps(assignUpdateValue, assignClearBindVisited));
125
132
 
126
133
  export { DATE };
@@ -3,7 +3,7 @@ import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
3
3
  import { createInputSlot } from '../../utils/index.js';
4
4
  import { connect, mapProps } from '@formily/vue';
5
5
  import { NInput } from 'naive-ui';
6
- import { assignUpdateValue } from '../../utils/schema2.js';
6
+ import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
7
7
 
8
8
  const script = defineComponent({
9
9
  name: "FormInput",
@@ -41,6 +41,6 @@ const INPUT = connect(script, mapProps((props, field) => {
41
41
  const _props = assignUpdateValue(props, field);
42
42
  _props.allowInput = (value) => !value.startsWith(" ") && !value.endsWith(" ");
43
43
  return _props;
44
- }));
44
+ }, assignClearBindVisited));
45
45
 
46
46
  export { INPUT };
@@ -4,7 +4,7 @@ import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
4
4
  import { createInputSlot, parseNumberFromMaybeString } from '../../utils/index.js';
5
5
  import { connect, mapProps } from '@formily/vue';
6
6
  import { NInputNumber } from 'naive-ui';
7
- import { assignUpdateValue } from '../../utils/schema2.js';
7
+ import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
8
8
 
9
9
  const script = defineComponent({
10
10
  props: {
@@ -50,6 +50,6 @@ const script = defineComponent({
50
50
  };
51
51
  }
52
52
  });
53
- const INPUT_NUMBER = connect(script, mapProps(assignUpdateValue));
53
+ const INPUT_NUMBER = connect(script, mapProps(assignUpdateValue, assignClearBindVisited));
54
54
 
55
55
  export { INPUT_NUMBER };
@@ -39,7 +39,7 @@ import './slider.js';
39
39
  import './complex.js';
40
40
  import './simpleComponent.js';
41
41
  import { NSelect } from 'naive-ui';
42
- import { focusDecorator, assignUpdateValue } from '../../utils/schema2.js';
42
+ import { visitedDecorator, assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
43
43
 
44
44
  const script = defineComponent({
45
45
  name: "FormSearch",
@@ -157,10 +157,10 @@ const script = defineComponent({
157
157
  "options": parsedOptions.value,
158
158
  "onSearch": fetchData,
159
159
  "onUpdate:show": (show) => show && fetchData(),
160
- "onFocus": focusDecorator(field, props.onFocus)
160
+ "onFocus": visitedDecorator(field, props.onFocus)
161
161
  }, slots);
162
162
  }
163
163
  });
164
- const SEARCH = connect(script, mapProps(assignUpdateValue));
164
+ const SEARCH = connect(script, mapProps(assignUpdateValue, assignClearBindVisited));
165
165
 
166
166
  export { SEARCH };
@@ -38,7 +38,7 @@ import './complex.js';
38
38
  import './simpleComponent.js';
39
39
  import './search.js';
40
40
  import { NSelect } from 'naive-ui';
41
- import { traverseDependKey, focusDecorator, assignUpdateValue } from '../../utils/schema2.js';
41
+ import { traverseDependKey, visitedDecorator, assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
42
42
 
43
43
  const script = defineComponent({
44
44
  name: "FormSelect",
@@ -174,12 +174,12 @@ const script = defineComponent({
174
174
  "options": parsedOptions.value,
175
175
  "onSearch": fetchData,
176
176
  "onUpdate:show": (show) => show && fetchData(),
177
- "onFocus": focusDecorator(field, props.onFocus)
177
+ "onFocus": visitedDecorator(field, props.onFocus)
178
178
  }, slots);
179
179
  }
180
180
  });
181
181
  const SELECT = connect(script, mapProps({
182
182
  dataSource: "options"
183
- }, assignUpdateValue));
183
+ }, assignUpdateValue, assignClearBindVisited));
184
184
 
185
185
  export { SELECT };
@@ -3,7 +3,7 @@ import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
3
3
  import '../../utils/index.js';
4
4
  import { connect, mapProps } from '@formily/vue';
5
5
  import { NInput } from 'naive-ui';
6
- import { assignUpdateValue } from '../../utils/schema2.js';
6
+ import { assignUpdateValue, assignClearBindVisited } from '../../utils/schema2.js';
7
7
 
8
8
  const script = defineComponent({
9
9
  name: "FormTextarea",
@@ -31,6 +31,6 @@ const script = defineComponent({
31
31
  };
32
32
  }
33
33
  });
34
- const TEXTAREA = connect(script, mapProps(assignUpdateValue));
34
+ const TEXTAREA = connect(script, mapProps(assignUpdateValue, assignClearBindVisited));
35
35
 
36
36
  export { TEXTAREA };
@@ -7,9 +7,13 @@ function useCommonInjection() {
7
7
  function injectValueValidate(traverser) {
8
8
  const { field } = useFormField();
9
9
  watch(traverser, () => {
10
- var _a, _b;
10
+ var _a, _b, _c;
11
11
  try {
12
- isField(field.value) && field.value.visited && ((_b = (_a = field.value).validate) == null ? void 0 : _b.call(_a));
12
+ if (!isField(field.value))
13
+ return;
14
+ if (!field.value.visited && !((_a = field.value.selfErrors) == null ? void 0 : _a.length))
15
+ return;
16
+ (_c = (_b = field.value).validate) == null ? void 0 : _c.call(_b);
13
17
  } catch (e) {
14
18
  }
15
19
  });