cnhis-design-vue 3.2.5-release.1 → 3.2.5-release.3
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.
- package/es/components/biunique-chat/index.d.ts +13 -5
- package/es/components/biunique-chat/src/Index.vue.d.ts +13 -5
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +5 -3
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/biunique-chat/src/utils/emoji.d.ts +4 -2
- package/es/components/biunique-chat/src/utils/emoji.js +1 -1
- package/es/components/biunique-chat/src/utils/index.js +1 -1
- package/es/components/button-print/index.d.ts +11 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +11 -3
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +82 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +0 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +156 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +156 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +78 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +78 -2
- package/es/components/form-render/index.d.ts +78 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +78 -2
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +78 -2
- package/es/components/form-render/src/hooks/useAnchor.d.ts +1 -0
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +10 -7
- package/es/components/iho-table/index.d.ts +4 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +156 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +156 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +78 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +78 -2
- package/es/components/scale-view/index.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +8 -8
- package/es/components/shortcut-setter/index.d.ts +78 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +78 -2
- package/es/components/tooth-bitmap/index.d.ts +1 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +1 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/shared/assets/img/emoji/emoji.png.d.ts +4 -0
- package/es/shared/assets/img/emoji/emoji.png.js +1 -0
- package/es/shared/assets/img/tooth/tooth.png.d.ts +37 -0
- package/es/shared/assets/img/tooth/tooth.png.js +1 -0
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/index.d.ts +1 -0
- package/es/shared/hooks/selectHooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.d.ts +12 -0
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/shared/assets/img/emoji/666.gif.js +0 -1
- package/es/shared/assets/img/emoji/emotion_001.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_002.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_003.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_004.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_005.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_006.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_007.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_008.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_009.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_010.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_011.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_012.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_013.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_014.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_015.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_016.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_017.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_018.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_019.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_020.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_021.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_022.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_023.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_024.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_025.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_026.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_027.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_028.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_029.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_030.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_031.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_032.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_033.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_034.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_035.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_036.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_037.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_038.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_039.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_040.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_041.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_042.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_043.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_044.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_045.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_046.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_047.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_048.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_049.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_050.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_051.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_052.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_053.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_054.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_055.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_056.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_057.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_058.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_059.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_060.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_061.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_062.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_063.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_064.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_065.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_066.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_067.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_068.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_069.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_070.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_071.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_072.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_073.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_074.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_075.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_076.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_077.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_078.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_079.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_080.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_081.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_082.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_083.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_084.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_085.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_086.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_087.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_088.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_089.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_090.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_091.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_092.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_093.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_094.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_095.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_096.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_097.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_098.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_099.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_100.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_101.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_102.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_103.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_104.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_105.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_106.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_107.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_108.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_109.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_110.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_111.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_112.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_113.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_114.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_115.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_116.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_117.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_118.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_119.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_120.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_121.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_122.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_123.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_124.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_125.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_126.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_127.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_128.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_129.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_130.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_131.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_132.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_133.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_134.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_135.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_136.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_137.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_138.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_139.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_140.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_141.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_142.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_143.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_144.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_145.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_146.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_147.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_148.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_149.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_150.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_151.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_152.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_153.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_154.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_155.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_156.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_157.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_158.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_159.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_160.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_161.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_162.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_163.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_164.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_165.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_166.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_167.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-1.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-2.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-3.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-4.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-5.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-6.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-7.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-8.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-1.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-2.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-3.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-4.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-5.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-6.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-7.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-8.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-1.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-2.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-3.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-4.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-5.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-6.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-7.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-8.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-1.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-2.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-3.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-4.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-5.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-6.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-7.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-8.png.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import{format as u}from"date-fns";import{isOneLine as a,getType as c,isOverlapPoint as d,getFloorNumber as p,isValidValue as f,setOtherType as h,getTime as v,isEffectiveNode as g,getIndex as m,deleteProperty as y}from"../../utils/index.js";import{cloneDeep as x,flatten as b,last as j}from"lodash-es";import"../useEvent.js";import{useCommon as w}from"../useCommon.js";import"vue";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as k,PAIN_MENU as L,OVERLAP as S}from"../../constants/index.js";import{promiseTimeout as E}from"@vueuse/shared";function Y(Y,$,O,T,C,P,A,I,R,V){r(Y,$);const{getEqualXTypes:X,handleAddPrevent:D,getPointEventProps:H}=w(Y,O,$),{createShadowLines:z}=t(),{left:F,xScaleList:_,xCellWidth:W,yCellHeight:q,originX:G,endX:B,originY:J,endY:K,itemList:N,event:Q,vitalSignsOriginY:U,painOriginY:Z,hospitalizationDate:ee,config:te,canvasHeight:ie}=$,ne=new Set,oe=["xinmai","mai"],le=new Map,se=new Set,re=new Set,ue=new Set,ae=x(F.yScaleValue);function ce(){[...ue].forEach((e=>{null==e||e.bringToFront()}))}function de(t){var o;const l=ae.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(ne.size&&Y.value.remove(...ne),ne.clear(),le.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=le.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of le)t.push(e[1]),e[0]===oe[0]&&e[1].forEach((e=>{(le.get(oe[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),u=n[i],a=o[r],c=n[i-1],d=n[i+1],p=o[r-1],f=o[r+1];if(c&&p){if(c[0]!==p[0]){const e=Math.max(c[0],p[0]);l.push([c,p].find((t=>t[0]===e)))}}else c?l.push(c):p&&s.push(p);const h=Math.min(u[1],a[1]);l.push([u,a].find((e=>e[1]===h)));const v=Math.max(u[1],a[1]);s.push([u,a].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=j(t);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(d&&f){if(d[0]!==f[0]){const e=Math.min(d[0],f[0]);l.push([d,f].find((t=>t[0]===e))),g()}}else d?(l.push(d),g()):f?(s.push(f),g()):g()})),e}();o.length>0&&function(e){E(0).then((()=>{e.forEach((e=>{const t=[],i=[];Array.from(ue).forEach((n=>{var o,l;"pulse"===(null==(o=null==n?void 0:n.origin)?void 0:o.type)&&e.find((e=>Math.abs(n.left-e[0])<=1&&Math.abs(n.top-e[1])<=1))&&((null==(l=null==n?void 0:n.origin)?void 0:l.key)===oe[0]?t.push(n):i.push(n))})),[t,i].forEach((e=>{1!==(null==e?void 0:e.length)&&e.sort(((e,t)=>e.left-t.left)).forEach(((e,t)=>{t>0&&e.leftLine&&Y.value.remove(e.leftLine)}))}))}))}))}(o);const{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...z(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),ne.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...b(t)],{...r,originX:"center"});e.push(n),ne.add(n)}))}Y.value.add(...e)}ne.add(l),Y.value.add(l)}))}}function pe(){var e;const t=ae.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},S,F.overlap||{}),l=[];se.size&&[...se].forEach((e=>{[...re].forEach((t=>{if(t.origin&&d(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{Y.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ue.add(e)}))}))}function fe(e,t,r){var u;const{type:c,riseStyle:d={},noRiseStyle:v={},verifiedStyle:g={},reduceStyle:m={},pacemaker:y={},upArrowStyle:x={},limitValueStyle:b={},nonePainPointStyle:j={},belowMinValueStyle:w={},dataList:k=[],list:L=[]}=r,{type:S,textStyle:E,showConnectLine:$=!1}=j,P=[],I=[],V=[];let X=null;if(null==(u=e.list)||u.forEach(((u,j)=>{const D=a(c)?k.find((e=>e.key===u.key)):e,z=me(u,r),F=e.list[j+1],_=F?me(F,r):void 0,G=F?a(c)?k.find((e=>e.key===F.key)):e:{},{title:B=""}=D;if("脉搏"===B&&"脉搏"!==G.title||"脉搏"!==B&&"脉搏"===G.title||!z||!_||p(z[0],1)!==p(_[0],1))z&&X&&(z[0]=X),X=null;else{const e=z[0]-W/2;z[0]=e+W/4,_[0]=X=z[0]+W/2}const J={};J.value=function(e,t,i){if(!(null==e?void 0:e.length)||!te.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=U.originY+q?e[1]+q:e[1]-q,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return V.push(s),{obj:s,top:-q}}(z,u,D),function(e,t,r,u){var a,p;if(!["temperature","pain"].includes(c))return;if(!(null==e?void 0:e.length)&&("pain"===c||"temperature"===c&&!ge(t.time)))return;const{lineAttr:h={}}=r,{value:y}=u,x=T(t.time);let b,j,w,k,S;if(t.noRise&&v.show){const i=M(v,t)?C(c,L,35):(null==e?void 0:e[1])||0;if(v.text)w=l([x,M(v,t)?i:i+5],{value:v.text.split("").join("\n"),originY:"top",...v.style}),t.value||ue.add(w);else if(t.value){w=s([x,i,i+2*q],{...v.style})}w&&V.push(w)}if((null==e?void 0:e[1])&&(t.rise&&d.show&&d.text&&(k=l([x,e[1]-(y?q:0)-5],{value:d.text.split("").join("\n"),originY:"bottom",...d.style}),V.push(k)),t.verified&&(S=l([x,e[1]-(y?q:0)-5],{value:"v",originX:"center",originY:"bottom",...g}),V.push(S)),f(t.physicsReduce)||f(t.drugReduce))){const l=C(c,L,null!=(a=t.physicsReduce)?a:t.drugReduce),s=l<e[1]&&(null==te?void 0:te.hypothermyViewCustom)?x+W/2:x;b=i([...e,s,l],{...h,...m.line,...n}),j=o((null==(p=null==m?void 0:m.point)?void 0:p.type)||"circle",{left:s,top:l,...m.point,...n,originY:l===ie?"bottom":"center"}),b&&V.push(b),j&&V.push(j)}Object.assign(u,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:w,top:v.text?5:2*q,isFixed:M(v,t)},riseText:{obj:k,top:(y?-q:0)-5},verifiedText:{obj:S,top:(y?-q:0)-5},reducePoint:{obj:j,type:"reduce"}})}(z,u,D,J),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...L),r=Math.min(...L);let u,a,d;const{upArrowShow:p=!1,limitValueShow:f=!1}=i;if(p&&+t.value>180){let t=e[1]-2.5*q,i=[e[1]-q/2,t];t<U.originY&&(t=e[1]+2.5*q,i=[t,e[1]+q/2]),u=s([e[0],i[0],i[1]],x,"up"),V.push(u)}if(f){const i={value:t.value,originX:"center",originY:"center",...b};if(+t.value>o){const t=u?e[1]+q/2+u.height:e[1]+q;a=l([e[0],t],i),V.push(a)}+t.value<r&&(a=l([e[0],e[1]-q],i),V.push(a))}if(w.show&&+t.value<r){const t=e[1];if(w.text)d=l([e[0],e[1]+5],{value:w.text.split("").join("\n"),originY:"top",...w.style});else{const i=t+2*q;d=s([e[0],t,i],{...w.style})}V.push(d)}Object.assign(n,{upArrow:{obj:u},limitValue:{obj:a,top:-q},belowMinValue:{obj:d,top:w.text?5:2*q,moveHide:!0}})}(z,u,D,J),function(n,l,s,u,a,d){let p,f;const{pointAttr:v={},lineAttr:g={},title:m="",key:x,type:b="circle"}=a,j=e.list[u+1],w=he(c,e.list[u].value),k=l&&he(c,j.value);if(n&&l&&!s.breakpoint&&(!w&&!k||$)){f=i([...n,...l],{...g});const{obj:e}=(null==d?void 0:d.reducePoint)||{};if((null==e?void 0:e.top)<n[1]&&(null==te?void 0:te.hypothermyViewCustom)){const t=i([e.left,e.top,...l],{...g});V.unshift(t),Object.assign(d,{reduceRightLine:{obj:t,type:"reduce"}}),f.set("stroke","transparent")}}const L=s.pacemakerShow&&"pulse"==c?y.value:w&&"number"===S?0:b,M=I[u-1],T={origin:{data:s,title:m,key:x||"",unit:r.unit,type:c,_type:h(m,c),dataIndex:t,index:u},leftLine:M,rightLine:f,otherObj:d,...s.pacemakerShow&&"pulse"==c?y.style:v,lockMovementX:!0,...H(),...w?{selectable:!1,evented:!1,..."number"===S?E:{}}:{}};n&&(M?T.leftLine.set("x2",n[0]):T.leftLine=null,p=o(L,{left:n[0],top:w?n[1]-5:n[1],...T}));I.push(f),p&&(x===oe[1]?se.add(p):re.add(p),function(e){Q.hovered&&(e.on("mouseover",(()=>{ve(e,"hover")})),e.on("mouseout",(()=>{R.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?Z:U;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(Y.value.remove(i),delete e.otherObj.obj)))})),de(e)}(e),Q.hovered&&ve(e)})),e.on("mouseup",(t=>{if(R.show=!1,1===t.button){const{type:t}=e.origin,i=A(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};Y.value.discardActiveObject(),O("change",n),xe(n,"change")}}))}(p),P.push(p),ue.add(p))}(z,_,u,j,D,J)})),"pulse"===c){const{key:t}=e;let i=null;le.set(t,P.map(((e,t,n)=>{var o,l;const s=n[t+1];if(s&&p(e.left,1)===p(s.left,1)){const t=e.left-W/2;e.set("left",t+W/4),null==(o=e.rightLine)||o.set("x1",e.left),i=e.left+W/2,s.set("left",i)}else i&&(null==(l=e.leftLine)||l.set("x2",i),e.set("left",i)),i=null;return[e.left,e.top]})))}const D=I.filter((e=>e));Y.value.add(...D,...P,...V)}function he(e,t){return"pain"===e&&0==t}function ve(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;R.point={x:e.left,y:e.top};let s=`时间 ${((null==l?void 0:l.time)||P(e.left)).slice(-5)}`;R.list=[function(){const{drugReduce:r,physicsReduce:u}=l||{},a="hover"===t?l.value:A(o,e.top);if(f(r))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`药物降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;if(f(u))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`物理降${"pain"==o?"痛":"温"} ${a}—>${u}${n||""}`;return`${i} ${a}${n||""}`}(),s],R.show=!0}function ge(e){const[t]=_,i=j(_),n=t.start,o=i.end,l=v(e);return l>=n&&l<=o}function me(e,t){const i="pain"===t.type?Z:U;if(!g(e)||!ge(e.time))return;const n=T(e.time),o=C(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}function ye(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=v(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=v(`${P(e)}:00`);return ee&&l<v(ee)?(D("exceedMin"),!1):!(l>o)||(D("exceedMax"),!1)}function xe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ae.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=m(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;be()}function be(){var e;ue.size&&(null==(e=Y.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ue]))),le.clear(),ue.clear(),se.clear(),re.clear(),ae.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||fe(t,i,e)}))})),de(),ce(),pe()}return le.clear(),se.clear(),re.clear(),ae.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=C(e.type,e.list,e.positionLine.value),n=i([G,t,B,t],e.positionLine);Y.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||fe(t,i,e)}))})),de(),ce(),pe(),Y.value.on("mouse:up",(e=>{const{button:t,target:i,pointer:n={}}=e;if(3===t){if(!$.event.evented)return;const{x:e=0,y:t=0}=n;if(e>=G&&e<=B&&t>=J&&t<=K){V.point={x:e,y:t},V.show=!0;const{type:o}=(null==i?void 0:i.origin)||{};if(i&&["temperature","pain"].includes(o))"temperature"===o&&(V.list=[...k]),"pain"===o&&(V.list=[...L]),V.target=i;else{V.target=null,V.list=["新增节点"],N.forEach((i=>{if(!X([...ue],e,"_type").includes(i.bigType)){const e=["pain"].includes(i.bigType)?Z:U;t>=e.originY&&t<=e.endY&&V.list.push({renderItem:I?I(i):()=>i.title,origin:{title:i.title,unit:i.unit,type:c(i.bigType),dataIndex:i.dataIndex,key:i.key},pointer:n})}}));const i=ye(e);i&&1!==V.list.length||(V.show=!1,1===V.list.length&&i&&D("repeat"))}}}if(1===t){if(i)return;const{x:e=0,y:t=0}=n;e>=G&&e<=B&&t>0&&t<ie&&O("click:grid",{x:e,y:t,time:P(e)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=y(i,[...k,...L]);s[`${e.type}`]=e.value,s.changeTime=u(new Date,"yyyy-MM-dd HH:mm"),a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};O("change",r),xe(r,"change")}else{const t={data:{time:P(e.pointer.x),value:A(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};O("add",t),xe(t)}},setPopup:ve,isAddPoint:ye,updateData:xe,redrawPoints:be,gridPoints:ue}}function M(e,t){return"fixed"===e.position||!t.value&&0!==t.value}export{Y as useCenter};
|
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import{format as u}from"date-fns";import{isOneLine as a,getType as c,isOverlapPoint as d,getFloorNumber as p,isValidValue as f,setOtherType as h,getTime as v,isEffectiveNode as g,getIndex as m,deleteProperty as y}from"../../utils/index.js";import{cloneDeep as x,flatten as b,last as j}from"lodash-es";import"../useEvent.js";import{useCommon as w}from"../useCommon.js";import"vue";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as k,PAIN_MENU as L,OVERLAP as S}from"../../constants/index.js";import{promiseTimeout as E}from"@vueuse/shared";function Y(Y,$,O,T,C,P,A,I,R,V){r(Y,$);const{getEqualXTypes:X,handleAddPrevent:D,getPointEventProps:H}=w(Y,O,$),{createShadowLines:z}=t(),{left:F,xScaleList:_,xCellWidth:W,yCellHeight:q,originX:G,endX:B,originY:J,endY:K,itemList:N,event:Q,vitalSignsOriginY:U,painOriginY:Z,hospitalizationDate:ee,config:te,canvasHeight:ie}=$,ne=new Set,oe=["xinmai","mai"],le=new Map,se=new Set,re=new Set,ue=new Set,ae=x(F.yScaleValue);function ce(){[...ue].forEach((e=>{null==e||e.bringToFront()}))}function de(t){var o;const l=ae.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(ne.size&&Y.value.remove(...ne),ne.clear(),le.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=le.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of le)t.push(e[1]),e[0]===oe[0]&&e[1].forEach((e=>{(le.get(oe[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),u=n[i],a=o[r],c=n[i-1],d=n[i+1],p=o[r-1],f=o[r+1];if(c&&p){if(c[0]!==p[0]){const e=Math.max(c[0],p[0]);l.push([c,p].find((t=>t[0]===e)))}}else c?l.push(c):p&&s.push(p);const h=Math.min(u[1],a[1]);l.push([u,a].find((e=>e[1]===h)));const v=Math.max(u[1],a[1]);s.push([u,a].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=j(t);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(d&&f){if(d[0]!==f[0]){const e=Math.min(d[0],f[0]);l.push([d,f].find((t=>t[0]===e))),g()}}else d?(l.push(d),g()):f?(s.push(f),g()):g()})),e}();o.length>0&&function(e){E(0).then((()=>{e.forEach((e=>{const t=[],i=[];Array.from(ue).forEach((n=>{var o,l;"pulse"===(null==(o=null==n?void 0:n.origin)?void 0:o.type)&&e.find((e=>Math.abs(n.left-e[0])<=1&&Math.abs(n.top-e[1])<=1))&&((null==(l=null==n?void 0:n.origin)?void 0:l.key)===oe[0]?t.push(n):i.push(n))})),[t,i].forEach((e=>{1!==(null==e?void 0:e.length)&&e.sort(((e,t)=>e.left-t.left)).forEach(((e,t)=>{t>0&&e.leftLine&&Y.value.remove(e.leftLine)}))}))}))}))}(o);const{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...z(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),ne.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...b(t)],{...r,originX:"center"});e.push(n),ne.add(n)}))}Y.value.add(...e)}ne.add(l),Y.value.add(l)}))}}function pe(){var e;const t=ae.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},S,F.overlap||{}),l=[];se.size&&[...se].forEach((e=>{[...re].forEach((t=>{if(t.origin&&d(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),"humai"===e&&(r="circle"),l.push(o(r,{...i[e]||{},...s}))}}}))})),setTimeout((()=>{Y.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ue.add(e)}))}))}function fe(e,t,r){var u;const{type:c,riseStyle:d={},noRiseStyle:v={},verifiedStyle:g={},reduceStyle:m={},pacemaker:y={},upArrowStyle:x={},limitValueStyle:b={},nonePainPointStyle:j={},belowMinValueStyle:w={},dataList:k=[],list:L=[]}=r,{type:S,textStyle:E,showConnectLine:$=!1}=j,P=[],I=[],V=[];let X=null;if(null==(u=e.list)||u.forEach(((u,j)=>{const D=a(c)?k.find((e=>e.key===u.key)):e,z=me(u,r),F=e.list[j+1],_=F?me(F,r):void 0,G=F?a(c)?k.find((e=>e.key===F.key)):e:{},{title:B=""}=D;if("脉搏"===B&&"脉搏"!==G.title||"脉搏"!==B&&"脉搏"===G.title||!z||!_||p(z[0],1)!==p(_[0],1))z&&X&&(z[0]=X),X=null;else{const e=z[0]-W/2;z[0]=e+W/4,_[0]=X=z[0]+W/2}const J={};J.value=function(e,t,i){if(!(null==e?void 0:e.length)||!te.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=U.originY+q?e[1]+q:e[1]-q,s=l([e[0],o],{value:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return V.push(s),{obj:s,top:-q}}(z,u,D),function(e,t,r,u){var a,p;if(!["temperature","pain"].includes(c))return;if(!(null==e?void 0:e.length)&&("pain"===c||"temperature"===c&&!ge(t.time)))return;const{lineAttr:h={}}=r,{value:y}=u,x=T(t.time);let b,j,w,k,S;if(t.noRise&&v.show){const i=M(v,t)?C(c,L,35):(null==e?void 0:e[1])||0;if(v.text)w=l([x,M(v,t)?i:i+5],{value:v.text.split("").join("\n"),originY:"top",...v.style}),t.value||ue.add(w);else if(t.value){w=s([x,i,i+2*q],{...v.style})}w&&V.push(w)}if((null==e?void 0:e[1])&&(t.rise&&d.show&&d.text&&(k=l([x,e[1]-(y?q:0)-5],{value:d.text.split("").join("\n"),originY:"bottom",...d.style}),V.push(k)),t.verified&&(S=l([x,e[1]-(y?q:0)-5],{value:"v",originX:"center",originY:"bottom",...g}),V.push(S)),f(t.physicsReduce)||f(t.drugReduce))){const l=C(c,L,null!=(a=t.physicsReduce)?a:t.drugReduce),s=l<e[1]&&(null==te?void 0:te.hypothermyViewCustom)?x+W/2:x;b=i([...e,s,l],{...h,...m.line,...n}),j=o((null==(p=null==m?void 0:m.point)?void 0:p.type)||"circle",{left:s,top:l,...m.point,...n,originY:l===ie?"bottom":"center"}),b&&V.push(b),j&&V.push(j)}Object.assign(u,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:w,top:v.text?5:2*q,isFixed:M(v,t)},riseText:{obj:k,top:(y?-q:0)-5},verifiedText:{obj:S,top:(y?-q:0)-5},reducePoint:{obj:j,type:"reduce"}})}(z,u,D,J),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(c))return;const o=Math.max(...L),r=Math.min(...L);let u,a,d;const{upArrowShow:p=!1,limitValueShow:f=!1}=i;if(p&&+t.value>180){let t=e[1]-2.5*q,i=[e[1]-q/2,t];t<U.originY&&(t=e[1]+2.5*q,i=[t,e[1]+q/2]),u=s([e[0],i[0],i[1]],x,"up"),V.push(u)}if(f){const i={value:t.value,originX:"center",originY:"center",...b};if(+t.value>o){const t=u?e[1]+q/2+u.height:e[1]+q;a=l([e[0],t],i),V.push(a)}+t.value<r&&(a=l([e[0],e[1]-q],i),V.push(a))}if(w.show&&+t.value<r){const t=e[1];if(w.text)d=l([e[0],e[1]+5],{value:w.text.split("").join("\n"),originY:"top",...w.style});else{const i=t+2*q;d=s([e[0],t,i],{...w.style})}V.push(d)}Object.assign(n,{upArrow:{obj:u},limitValue:{obj:a,top:-q},belowMinValue:{obj:d,top:w.text?5:2*q,moveHide:!0}})}(z,u,D,J),function(n,l,s,u,a,d){let p,f;const{pointAttr:v={},lineAttr:g={},title:m="",key:x,type:b="circle"}=a,j=e.list[u+1],w=he(c,e.list[u].value),k=l&&he(c,j.value);if(n&&l&&!s.breakpoint&&(!w&&!k||$)){f=i([...n,...l],{...g});const{obj:e}=(null==d?void 0:d.reducePoint)||{};if((null==e?void 0:e.top)<n[1]&&(null==te?void 0:te.hypothermyViewCustom)){const t=i([e.left,e.top,...l],{...g});V.unshift(t),Object.assign(d,{reduceRightLine:{obj:t,type:"reduce"}}),f.set("stroke","transparent")}}const L=s.pacemakerShow&&"pulse"==c?y.value:w&&"number"===S?0:b,M=I[u-1],T={origin:{data:s,title:m,key:x||"",unit:r.unit,type:c,_type:h(m,c),dataIndex:t,index:u},leftLine:M,rightLine:f,otherObj:d,...s.pacemakerShow&&"pulse"==c?y.style:v,lockMovementX:!0,...H(),...w?{selectable:!1,evented:!1,..."number"===S?E:{}}:{}};n&&(M?T.leftLine.set("x2",n[0]):T.leftLine=null,p=o(L,{left:n[0],top:w?n[1]-5:n[1],...T}));I.push(f),p&&(x===oe[1]?se.add(p):re.add(p),function(e){Q.hovered&&(e.on("mouseover",(()=>{ve(e,"hover")})),e.on("mouseout",(()=>{R.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?Z:U;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(Y.value.remove(i),delete e.otherObj.obj)))})),de(e)}(e),Q.hovered&&ve(e)})),e.on("mouseup",(t=>{if(R.show=!1,1===t.button){const{type:t}=e.origin,i=A(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};Y.value.discardActiveObject(),O("change",n),xe(n,"change")}}))}(p),P.push(p),ue.add(p))}(z,_,u,j,D,J)})),"pulse"===c){const{key:t}=e;let i=null;le.set(t,P.map(((e,t,n)=>{var o,l;const s=n[t+1];if(s&&p(e.left,1)===p(s.left,1)){const t=e.left-W/2;e.set("left",t+W/4),null==(o=e.rightLine)||o.set("x1",e.left),i=e.left+W/2,s.set("left",i)}else i&&(null==(l=e.leftLine)||l.set("x2",i),e.set("left",i)),i=null;return[e.left,e.top]})))}const D=I.filter((e=>e));Y.value.add(...D,...P,...V)}function he(e,t){return"pain"===e&&0==t}function ve(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;R.point={x:e.left,y:e.top};let s=`时间 ${((null==l?void 0:l.time)||P(e.left)).slice(-5)}`;R.list=[function(){const{drugReduce:r,physicsReduce:u}=l||{},a="hover"===t?l.value:A(o,e.top);if(f(r))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`药物降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;if(f(u))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`物理降${"pain"==o?"痛":"温"} ${a}—>${u}${n||""}`;return`${i} ${a}${n||""}`}(),s],R.show=!0}function ge(e){const[t]=_,i=j(_),n=t.start,o=i.end,l=v(e);return l>=n&&l<=o}function me(e,t){const i="pain"===t.type?Z:U;if(!g(e)||!ge(e.time))return;const n=T(e.time),o=C(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}function ye(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=v(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=v(`${P(e)}:00`);return ee&&l<v(ee)?(D("exceedMin"),!1):!(l>o)||(D("exceedMax"),!1)}function xe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ae.find((e=>e.type===i));if("add"===t){const e=a(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=m(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;be()}function be(){var e;ue.size&&(null==(e=Y.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ue]))),le.clear(),ue.clear(),se.clear(),re.clear(),ae.forEach((e=>{e.dataList.forEach(((t,i)=>{a(e.type)&&!t.enable||fe(t,i,e)}))})),de(),ce(),pe()}return le.clear(),se.clear(),re.clear(),ae.forEach((e=>{!function(e){if("temperature"!==e.type||!e.positionLine)return;const t=C(e.type,e.list,e.positionLine.value),n=i([G,t,B,t],e.positionLine);Y.value.add(n)}(e),e.dataList.forEach(((t,i)=>{!t.show||a(e.type)&&!t.enable||fe(t,i,e)}))})),de(),ce(),pe(),Y.value.on("mouse:up",(e=>{const{button:t,target:i,pointer:n={}}=e;if(3===t){if(!$.event.evented)return;const{x:e=0,y:t=0}=n;if(e>=G&&e<=B&&t>=J&&t<=K){V.point={x:e,y:t},V.show=!0;const{type:o}=(null==i?void 0:i.origin)||{};if(i&&["temperature","pain"].includes(o))"temperature"===o&&(V.list=[...k]),"pain"===o&&(V.list=[...L]),V.target=i;else{V.target=null,V.list=["新增节点"],N.forEach((i=>{if(!X([...ue],e,"_type").includes(i.bigType)){const e=["pain"].includes(i.bigType)?Z:U;t>=e.originY&&t<=e.endY&&V.list.push({renderItem:I?I(i):()=>i.title,origin:{title:i.title,unit:i.unit,type:c(i.bigType),dataIndex:i.dataIndex,key:i.key},pointer:n})}}));const i=ye(e);i&&1!==V.list.length||(V.show=!1,1===V.list.length&&i&&D("repeat"))}}}if(1===t){if(i)return;const{x:e=0,y:t=0}=n;e>=G&&e<=B&&t>0&&t<ie&&O("click:grid",{x:e,y:t,time:P(e)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=y(i,[...k,...L]);s[`${e.type}`]=e.value,s.changeTime=u(new Date,"yyyy-MM-dd HH:mm"),a(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};O("change",r),xe(r,"change")}else{const t={data:{time:P(e.pointer.x),value:A(e.origin.type,e.pointer.y),...a(e.origin.type)?{key:e.origin.key}:{}},...e.origin};O("add",t),xe(t)}},setPopup:ve,isAddPoint:ye,updateData:xe,redrawPoints:be,gridPoints:ue}}function M(e,t){return e.fixed||!t.value&&0!==t.value}export{Y as useCenter};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
3
|
import { IPropItems } from '../../../../../components/fabric-chart/src/interface';
|
|
4
|
-
export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function): void;
|
|
4
|
+
export declare function useOther(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, computedY: Function): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as t}from"../useDraw.js";import"date-fns";import{last as i}from"lodash-es";import"../useEvent.js";import"vue";import"./useShadow.js";import"@vueuse/shared";import"naive-ui";import"@vueuse/core";function n(n,o,r,
|
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as t}from"../useDraw.js";import"date-fns";import{last as i}from"lodash-es";import"../useEvent.js";import"vue";import"./useShadow.js";import"@vueuse/shared";import"naive-ui";import"@vueuse/core";function n(n,o,l,r,s){const{left:u,other:h,vitalSignsOriginY:a,xCellWidth:f,yCellHeight:c,endX:g}=o;let v=0;function p(i,o,r){const s=[];String(i.value).split("").forEach(((n,o)=>{const l=new e.Text(n,{left:0,top:c*o,originX:"center",...t,objectCaching:!1,...i.style||{}});v=(c-(l.height||0))/2,s.push(l)}));const u=new e.Rect({left:0,top:0,width:f,height:c*s.length,fill:"transparent",originX:"center",...t}),{eventHighlight:a=!1}=h||{},g={originX:"center",left:o,top:r+v,baseTop:(i.baseTop||0)*c,trueLeft:o,trueHeight:s.length*c,objectCaching:!1,hoverCursor:"pointer",highlightObject:u,originData:i,selectable:!1,evented:a},p=new e.Group([u,...s],g);return function(e){const{highlightColor:t="#ffff00"}=h||{};e.on("mouseover",(()=>{e.highlightObject.set("fill",t),n.value.requestRenderAll()})),e.on("mouseout",(()=>{e.highlightObject.set("fill","transparent"),n.value.requestRenderAll()})),e.on("mousedown",(function(){l("eventClick",e.originData)}))}(p),n.value.add(p),p}!function(){var e,t;if(!(null==h?void 0:h.list))return!1;const n=[],o=[];h.list.forEach(((e,t)=>{const i=0===t?"vertical":e.align||"vertical",n=r(e.time,!0);if(n>g)return;const l=o.find((e=>e.left==n));if(l)l[i].push(e);else{const t={left:n,vertical:[],horizontal:[]};t[i].push(e),o.push(t)}}));const l=null==(t=null==(e=u.yScaleValue)?void 0:e.find((e=>"temperature"===e.type)))?void 0:t.list,v=(null==l?void 0:l.length)?s("temperature",l,35):0,d=e=>e.fixed&&v&&String(e.value).length;o.forEach((e=>{let t=a.originY,o=e.left;e.vertical.forEach(((l,r)=>{var s,u;if(d(l))return void n.push(p(l,o,v));const h=(l.baseTop||0)*c,g=(null==(s=i(n))?void 0:s.left)||0;0===r&&e.left<=g&&(o=g+f);if(n.filter((e=>e.trueLeft===o)).length){const e=String(l.value).length*c,r=(null==(u=i(n))?void 0:u.trueHeight)||0;t+=r,t+e+h>a.endY&&(t=a.originY,o+=f)}t+=h,String(l.value).length&&n.push(p(l,o,t))})),e.horizontal.forEach(((t,l)=>{var r;if(d(t))return void n.push(p(t,o,v));const s=a.originY+(t.baseTop||0)*c,u=(null==(r=i(n))?void 0:r.left)||0;e.left<=u&&(o=u+f),String(t.value).length&&n.push(p(t,o,s))}))}))}()}export{n as useOther};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as a,reactive as t,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as n}from"../useEvent.js";import{setOtherType as r,getFloorNumber as o}from"../../utils/index.js";import{flatten as v}from"lodash-es";import{format as s,addDays as d}from"date-fns";import"naive-ui";import"@vueuse/core";import{useTop as c}from"./useTop.js";import{useLeft as p}from"./useLeft.js";import{useRight as h}from"./useRight.js";import{useCenter as g}from"./useCenter.js";import{useBottom as m}from"./useBottom.js";import{useOther as f}from"./useOther.js";function y(y,S,b,w,
|
|
1
|
+
import{ref as e,computed as a,reactive as t,watch as l}from"vue";import{defaultBorderStyle as u}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{useCumputedPoint as i}from"../useCumputedPoint.js";import{useCanvasEvent as n}from"../useEvent.js";import{setOtherType as r,getFloorNumber as o}from"../../utils/index.js";import{flatten as v}from"lodash-es";import{format as s,addDays as d}from"date-fns";import"naive-ui";import"@vueuse/core";import{useTop as c}from"./useTop.js";import{useLeft as p}from"./useLeft.js";import{useRight as h}from"./useRight.js";import{useCenter as g}from"./useCenter.js";import{useBottom as m}from"./useBottom.js";import{useOther as f}from"./useOther.js";function y(y,S,Y,b,w,C){const x=15,D=e(),j=e(),V=e(),H=a((()=>{const{painSurplusCell:e=[0,0]}=S.data.grid||{};return~_.value?e:[0,0]})),X=a((()=>{var e,a;const t=(null==(a=null==(e=S.data.grid)?void 0:e.surplusCell)?void 0:a.slice())||[0,0,0,0];return 0===_.value?t[0]=t[0]+H.value[1]:_.value>0&&(t[2]=t[2]+H.value[0]),t})),L=a((()=>0===_.value?[H.value[0],X.value[1],X.value[2],X.value[3]]:_.value>0?[X.value[0],X.value[1],H.value[1],X.value[3]]:X.value)),I=a((()=>{const{top:e}=S.data;return e.date.show&&(e.date.height||x)||0})),M=a((()=>{var e;const{top:a}=S.data;return(null==(e=a.hospitalDays)?void 0:e.show)&&(a.hospitalDays.height||x)||0})),P=a((()=>{var e;const{top:a}=S.data;return(null==(e=a.operationDays)?void 0:e.show)&&(a.operationDays.height||x)||0})),N=a((()=>{var e,a,t;const{top:l}=S.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||x)||0)+((null==(a=l.xScalevalue)?void 0:a.show)&&null!=(t=l.dayHeight)?t:0)})),O=a((()=>{var e;const{bottom:a}=S.data;return(null==(e=null==a?void 0:a.breathing)?void 0:e.show)&&(a.breathing.height||30)||0})),W=a((()=>{const{grid:e}=S.data;return e.mainXCell*e.subXCell+X.value[1]+X.value[3]})),$=a((()=>{const{grid:e}=S.data,a=_.value>0?H.value[1]:H.value[0];return e.mainYCell*e.subYCell+X.value[0]+X.value[2]+a})),k=a((()=>{var e;const{width:a,right:t=null,top:l}=S.data;if(!t)return a;return a-(null!=(e=t.width)?e:0)})),G=a((()=>k.value-X.value[1]*T.value)),R=a((()=>{const{top:e,left:a}=S.data;return e.titleWidth+B.value})),q=a((()=>{const{bottom:e=null,height:a}=S.data;if(!e)return a;return a-(e.height||30)})),z=a((()=>{var e;const{top:a}=S.data,t=a.xScalevalue.show&&(null!=(e=a.dayHeight)?e:0)||0,l=a.xScalevalue.show&&(a.xScalevalue.height||x)||0;return I.value+t+l+M.value+P.value})),T=a((()=>(k.value-R.value)/W.value)),A=a((()=>(q.value-z.value)/$.value)),B=a((()=>{var e,a;const{left:t}=S.data;return(null==(e=t.icons)?void 0:e.show)&&((null==(a=t.icons)?void 0:a.width)||100)||0})),E=a((()=>{var e,a;const{top:t,grid:l}=S.data,u=(null==(a=null==(e=t.date.list)?void 0:e.slice)?void 0:a.call(e,0,l.mainXCell))||[],i=t.xScalevalue.times;let n=R.value-T.value;const r=t.date.startDate||s(new Date,"yyyy-MM-dd"),o=u.reduce(((e,a,t)=>0===t?e.concat(r):e.concat(s(d(new Date(r.replace(/-/g,"/")),t),"yyyy-MM-dd"))),[]).map((e=>i.map((a=>{n+=T.value;const t=Date.parse(`${e} ${a.start}`),l=Date.parse(`${e} ${a.end}`);return{start:t,end:l,left:n,center:n+T.value/2,scaleCell:(l-t)/T.value}}))));return v(o)})),F=a((()=>ne("breathe"))),J=a((()=>ne("pulse"))),K=a((()=>ne("temperature"))),Q=a((()=>ne("pain"))),U=a((()=>{var e;return(null==(e=S.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),Z=a((()=>{const{left:e}=S.data;return v(e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((a,t)=>({...a,bigType:r(a.title,e.type),unit:e.unit,dataIndex:t}))))))})),_=a((()=>{var e,a;const{left:t}=S.data,l=t.yScaleValue.findIndex((e=>"pain"===e.type));return l>-1&&(null==(a=null==(e=t.yScaleValue[l].dataList)?void 0:e[0])?void 0:a.show)?l:-1})),ee=a((()=>{const{grid:e}=S.data;return-1===_.value?0:A.value*e.subYCell})),ae=a((()=>{const{left:e}=S.data,a={originY:z.value+H.value[0]*A.value,endY:q.value-H.value[1]*A.value};return 0===_.value&&e.yScaleValue.length>1?a.endY=a.originY+ee.value:_.value===e.yScaleValue.length-1&&(a.originY=a.endY-ee.value),a})),te=a((()=>{const{left:e}=S.data,a={originY:z.value+X.value[0]*A.value,endY:q.value-X.value[2]*A.value};return 0===_.value&&e.yScaleValue.length>1?a.originY=ae.value.endY+X.value[0]*A.value:_.value===e.yScaleValue.length-1&&(a.endY=ae.value.originY-X.value[2]*A.value),a})),le=a((()=>{var e,a;const{top:t,grid:l}=S.data,u=[];for(const i in t)t[i].show&&u.push({...t[i],list:(null==(a=null==(e=t[i].list)?void 0:e.slice)?void 0:a.call(e,0,l.mainXCell))||[],key:i});return u.sort(((e,a)=>e.seq-a.seq))})),ue=a((()=>{var e;const{left:a,right:t}=S.data,l=a.yScaleValue.find((e=>"temperature"===e.type)),u=(null==t?void 0:t.yScaleValue)||{};if(null==(e=null==l?void 0:l.list)?void 0:e.length){const e=(null==u?void 0:u.showdetailedScale)?l.list.reduce((e=>{const a=e[e.length-1];return a?e.concat([a+1,a+2]):e.concat([92])}),[]):[],a=l.list.map((e=>o(1.8*e+32)));Object.assign(u,{list:a,detailedList:e,spaceGridNumber:l.spaceGridNumber})}return u})),ie=t({canvasWidth:S.data.width,canvasHeight:S.data.height,borderStyle:{...u,...S.data.borderStyle||{}},selectionStyle:S.data.selectionStyle||{},dateHeight:I.value,hospitalDaysHeight:M.value,operationDaysHeight:P.value,xScalevalueHeight:N.value,topList:le.value,breathingHeight:O.value,hospitalizationDate:S.data.hospitalizationDate,grid:S.data.grid,top:S.data.top,left:S.data.left,right:S.data.right,bottom:S.data.bottom,other:S.data.other,painIndex:_.value,painHeight:ee.value,painOriginY:ae.value,vitalSignsOriginY:te.value,gridXNumber:W.value,gridYNumber:$.value,iconsWidth:B.value,originX:R.value,originY:z.value,endX:k.value,endXLimit:G.value,endY:q.value,xCellWidth:T.value,yCellHeight:A.value,xScaleList:E.value,breatheYCell:F.value,pulseYCell:J.value,temperatureYCell:K.value,painYCell:Q.value,event:U.value,itemList:Z.value,getRightInfo:ue.value,config:S.data.config||{},surplusCell:X.value,painSurplusCell:H.value,mainSurplusCell:L.value});function ne(e){const{yScaleValue:a}=S.data.left,t=a.find((a=>a.type===e)),l=(null==t?void 0:t.list)||[];return l.length?A.value/((l[1]-l[0])/t.spaceGridNumber):0}const{computedX:re,computedY:oe,getXValue:ve,getYValue:se}=i(ie);return l((()=>y.value),(e=>{e&&function(){c(y,ie);const{setPopup:e,isAddPoint:a,updateData:t,redrawPoints:l,clickMenu:u,gridPoints:i}=g(y,ie,Y,re,oe,ve,se,S.addRenderItem,w,C);j.value=l,V.value=u;const{drawScaleValue:r}=p(y,ie,Y,e,w,re,oe,ve,se,a,t,i);h(y,ie,r),m(y,ie),f(y,ie,Y,re,oe);const{select:o}=n(y,ie,Y);D.value=o}()}),{immediate:!0}),{propItems:ie,redrawPoints:j,select:D,clickMenu:V}}export{y as useTemperatureChart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";import{drawLine as l,defaultStyle as s}from"./useDraw.js";function n(n,
|
|
1
|
+
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";import{drawLine as l,defaultStyle as s}from"./useDraw.js";function n(n,u){var i,o,r;const{gridYNumber:t,originY:d,grid:b,originX:a,endX:c,xCellWidth:C,yCellHeight:S,gridXNumber:X,endY:m,borderStyle:g,mainSurplusCell:p}=u,y=null!=(i=null!=p?p:u.surplusCell)?i:[0,0,0,0],f=[],h=[],j=new Set,v=(null==(o=b.mainLineStyle)?void 0:o.x)||{},x=(null==(r=b.mainLineStyle)?void 0:r.y)||{},L=b.subLineStyle||v,Y=b.subSecondLineStyle||{};for(let e=0;e<=t;e++){const s=d+~~(S*(t-e)),n={...g,...L},u=l([a,s,c,s],n);(e-y[2])%b.subYCell==0&&e<=t-y[0]?(u.set(v),j.add(u)):f.push(u)}for(let e=0;e<=X;e++){const s=a+~~(C*e),n={...g,...b.subXCell?L:x};b.subXCell&&e%b.subXCell==0?Object.assign(n,{...0!==e&&e!==X?x:g}):b.subSecondXCell&&e%b.subSecondXCell==0&&Object.assign(n,Y);const u=l([s,d,s,m],n);b.subXCell&&e%b.subXCell==0?j.add(u):h.push(u)}const w=new e.Group([...f,...h,...j],s);n.value.add(w),n.value.sendToBack(w)}export{n as useGrid};
|
|
@@ -475,9 +475,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
475
475
|
hide: boolean;
|
|
476
476
|
}>;
|
|
477
477
|
draggable: boolean;
|
|
478
|
-
isHighlightRow: boolean;
|
|
479
478
|
idx: number;
|
|
480
479
|
isHighlight: boolean;
|
|
480
|
+
isHighlightRow: boolean;
|
|
481
481
|
isFieldSet: boolean;
|
|
482
482
|
fieldDescribeMode: "column" | "tooltip";
|
|
483
483
|
}>;
|
|
@@ -496,9 +496,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
496
496
|
hide: boolean;
|
|
497
497
|
}>;
|
|
498
498
|
draggable: boolean;
|
|
499
|
-
isHighlightRow: boolean;
|
|
500
499
|
idx: number;
|
|
501
500
|
isHighlight: boolean;
|
|
501
|
+
isHighlightRow: boolean;
|
|
502
502
|
isFieldSet: boolean;
|
|
503
503
|
fieldDescribeMode: "column" | "tooltip";
|
|
504
504
|
}>;
|
|
@@ -613,9 +613,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
613
613
|
hide: boolean;
|
|
614
614
|
}>;
|
|
615
615
|
draggable: boolean;
|
|
616
|
-
isHighlightRow: boolean;
|
|
617
616
|
idx: number;
|
|
618
617
|
isHighlight: boolean;
|
|
618
|
+
isHighlightRow: boolean;
|
|
619
619
|
isFieldSet: boolean;
|
|
620
620
|
fieldDescribeMode: "column" | "tooltip";
|
|
621
621
|
}>;
|
|
@@ -317,9 +317,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
317
317
|
hide: boolean;
|
|
318
318
|
}>;
|
|
319
319
|
draggable: boolean;
|
|
320
|
-
isHighlightRow: boolean;
|
|
321
320
|
idx: number;
|
|
322
321
|
isHighlight: boolean;
|
|
322
|
+
isHighlightRow: boolean;
|
|
323
323
|
isFieldSet: boolean;
|
|
324
324
|
fieldDescribeMode: "column" | "tooltip";
|
|
325
325
|
}>;
|
|
@@ -599,6 +599,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
599
599
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
600
600
|
default: boolean;
|
|
601
601
|
};
|
|
602
|
+
incrementalRender: {
|
|
603
|
+
type: BooleanConstructor;
|
|
604
|
+
default: boolean;
|
|
605
|
+
};
|
|
602
606
|
}, {
|
|
603
607
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
604
608
|
fieldList: {
|
|
@@ -790,14 +794,19 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
790
794
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
791
795
|
default: boolean;
|
|
792
796
|
};
|
|
797
|
+
incrementalRender: {
|
|
798
|
+
type: BooleanConstructor;
|
|
799
|
+
default: boolean;
|
|
800
|
+
};
|
|
793
801
|
}>> & {
|
|
794
802
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
795
803
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
796
804
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
797
805
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
|
798
806
|
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
|
807
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
799
808
|
}>>;
|
|
800
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
|
809
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready", ...args: any[]) => void;
|
|
801
810
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
802
811
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
803
812
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -826,6 +835,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
826
835
|
anchorIdList: import("vue").Ref<{
|
|
827
836
|
name: string;
|
|
828
837
|
title: string;
|
|
838
|
+
index: number;
|
|
829
839
|
}[]>;
|
|
830
840
|
onScroll: (scrollEvent: Event) => void;
|
|
831
841
|
callLifeCycle: <T_2 extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
|
|
@@ -852,6 +862,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
852
862
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
853
863
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
854
864
|
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
865
|
+
emitFormChange: import("vue").Ref<boolean>;
|
|
866
|
+
isReady: boolean;
|
|
855
867
|
formModel: import("@formily/core").Form<{
|
|
856
868
|
[x: string]: any;
|
|
857
869
|
}>;
|
|
@@ -1024,6 +1036,63 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1024
1036
|
"x-compile-omitted"?: string[] | undefined;
|
|
1025
1037
|
}>>;
|
|
1026
1038
|
_fieldList: import("..").FieldItem[];
|
|
1039
|
+
incrementalRenderList: import("@formily/json-schema").Stringify<{
|
|
1040
|
+
[key: symbol]: any;
|
|
1041
|
+
[key: `x-${string}`]: any;
|
|
1042
|
+
[key: `x-${number}`]: any;
|
|
1043
|
+
version?: string | undefined;
|
|
1044
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
1045
|
+
title?: any;
|
|
1046
|
+
description?: any;
|
|
1047
|
+
default?: any;
|
|
1048
|
+
readOnly?: boolean | undefined;
|
|
1049
|
+
writeOnly?: boolean | undefined;
|
|
1050
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
1051
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
1052
|
+
const?: any;
|
|
1053
|
+
multipleOf?: number | undefined;
|
|
1054
|
+
maximum?: number | undefined;
|
|
1055
|
+
exclusiveMaximum?: number | undefined;
|
|
1056
|
+
minimum?: number | undefined;
|
|
1057
|
+
exclusiveMinimum?: number | undefined;
|
|
1058
|
+
maxLength?: number | undefined;
|
|
1059
|
+
minLength?: number | undefined;
|
|
1060
|
+
pattern?: string | RegExp | undefined;
|
|
1061
|
+
maxItems?: number | undefined;
|
|
1062
|
+
minItems?: number | undefined;
|
|
1063
|
+
uniqueItems?: boolean | undefined;
|
|
1064
|
+
maxProperties?: number | undefined;
|
|
1065
|
+
minProperties?: number | undefined;
|
|
1066
|
+
required?: string | boolean | string[] | undefined;
|
|
1067
|
+
format?: string | undefined;
|
|
1068
|
+
$ref?: string | undefined;
|
|
1069
|
+
$namespace?: string | undefined;
|
|
1070
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
1071
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
1072
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
1073
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
1074
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
1075
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
1076
|
+
"x-value"?: any;
|
|
1077
|
+
"x-index"?: number | undefined;
|
|
1078
|
+
"x-pattern"?: any;
|
|
1079
|
+
"x-display"?: any;
|
|
1080
|
+
"x-validator"?: any;
|
|
1081
|
+
"x-decorator"?: any;
|
|
1082
|
+
"x-decorator-props"?: any;
|
|
1083
|
+
"x-component"?: any;
|
|
1084
|
+
"x-component-props"?: any;
|
|
1085
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
1086
|
+
"x-content"?: any;
|
|
1087
|
+
"x-data"?: any;
|
|
1088
|
+
"x-visible"?: boolean | undefined;
|
|
1089
|
+
"x-hidden"?: boolean | undefined;
|
|
1090
|
+
"x-disabled"?: boolean | undefined;
|
|
1091
|
+
"x-editable"?: boolean | undefined;
|
|
1092
|
+
"x-read-only"?: boolean | undefined;
|
|
1093
|
+
"x-read-pretty"?: boolean | undefined;
|
|
1094
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
1095
|
+
}>[];
|
|
1027
1096
|
parsedSchema: import("vue").ComputedRef<import("@formily/json-schema").Stringify<{
|
|
1028
1097
|
[key: symbol]: any;
|
|
1029
1098
|
[key: `x-${string}`]: any;
|
|
@@ -1081,6 +1150,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1081
1150
|
"x-read-pretty"?: boolean | undefined;
|
|
1082
1151
|
"x-compile-omitted"?: string[] | undefined;
|
|
1083
1152
|
}>>;
|
|
1153
|
+
startIncrementalRender: () => void;
|
|
1084
1154
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
1085
1155
|
clearSpan: (uuid: string) => void;
|
|
1086
1156
|
exposeEvent: Omit<import("..").FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
|
@@ -1143,7 +1213,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1143
1213
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
1144
1214
|
}>;
|
|
1145
1215
|
NTabs: any;
|
|
1146
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1216
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1147
1217
|
fieldList: {
|
|
1148
1218
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
1149
1219
|
};
|
|
@@ -1333,12 +1403,17 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1333
1403
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
1334
1404
|
default: boolean;
|
|
1335
1405
|
};
|
|
1406
|
+
incrementalRender: {
|
|
1407
|
+
type: BooleanConstructor;
|
|
1408
|
+
default: boolean;
|
|
1409
|
+
};
|
|
1336
1410
|
}>> & {
|
|
1337
1411
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
1338
1412
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
1339
1413
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1340
1414
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
|
1341
1415
|
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
|
1416
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
1342
1417
|
}, {
|
|
1343
1418
|
anchor: boolean;
|
|
1344
1419
|
maxHeight: string | number;
|
|
@@ -1363,6 +1438,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1363
1438
|
linebarTextDirection: "horizontal" | "vertical";
|
|
1364
1439
|
autoWidth: number | boolean;
|
|
1365
1440
|
operationalFormInit: boolean;
|
|
1441
|
+
incrementalRender: boolean;
|
|
1366
1442
|
}>;
|
|
1367
1443
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
1368
1444
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -7165,6 +7241,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7165
7241
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
7166
7242
|
default: boolean;
|
|
7167
7243
|
};
|
|
7244
|
+
incrementalRender: {
|
|
7245
|
+
type: BooleanConstructor;
|
|
7246
|
+
default: boolean;
|
|
7247
|
+
};
|
|
7168
7248
|
}, {
|
|
7169
7249
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
7170
7250
|
fieldList: {
|
|
@@ -7356,14 +7436,19 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7356
7436
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
7357
7437
|
default: boolean;
|
|
7358
7438
|
};
|
|
7439
|
+
incrementalRender: {
|
|
7440
|
+
type: BooleanConstructor;
|
|
7441
|
+
default: boolean;
|
|
7442
|
+
};
|
|
7359
7443
|
}>> & {
|
|
7360
7444
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
7361
7445
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
7362
7446
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
7363
7447
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
|
7364
7448
|
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
|
7449
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
7365
7450
|
}>>;
|
|
7366
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
|
7451
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready", ...args: any[]) => void;
|
|
7367
7452
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
7368
7453
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
7369
7454
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -7392,6 +7477,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7392
7477
|
anchorIdList: import("vue").Ref<{
|
|
7393
7478
|
name: string;
|
|
7394
7479
|
title: string;
|
|
7480
|
+
index: number;
|
|
7395
7481
|
}[]>;
|
|
7396
7482
|
onScroll: (scrollEvent: Event) => void;
|
|
7397
7483
|
callLifeCycle: <T_2 extends "onSetup" | "beforeSetValue" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
|
|
@@ -7418,6 +7504,8 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7418
7504
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
7419
7505
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
7420
7506
|
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
7507
|
+
emitFormChange: import("vue").Ref<boolean>;
|
|
7508
|
+
isReady: boolean;
|
|
7421
7509
|
formModel: import("@formily/core").Form<{
|
|
7422
7510
|
[x: string]: any;
|
|
7423
7511
|
}>;
|
|
@@ -7590,6 +7678,63 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7590
7678
|
"x-compile-omitted"?: string[] | undefined;
|
|
7591
7679
|
}>>;
|
|
7592
7680
|
_fieldList: import("..").FieldItem[];
|
|
7681
|
+
incrementalRenderList: import("@formily/json-schema").Stringify<{
|
|
7682
|
+
[key: symbol]: any;
|
|
7683
|
+
[key: `x-${string}`]: any;
|
|
7684
|
+
[key: `x-${number}`]: any;
|
|
7685
|
+
version?: string | undefined;
|
|
7686
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
7687
|
+
title?: any;
|
|
7688
|
+
description?: any;
|
|
7689
|
+
default?: any;
|
|
7690
|
+
readOnly?: boolean | undefined;
|
|
7691
|
+
writeOnly?: boolean | undefined;
|
|
7692
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
7693
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
7694
|
+
const?: any;
|
|
7695
|
+
multipleOf?: number | undefined;
|
|
7696
|
+
maximum?: number | undefined;
|
|
7697
|
+
exclusiveMaximum?: number | undefined;
|
|
7698
|
+
minimum?: number | undefined;
|
|
7699
|
+
exclusiveMinimum?: number | undefined;
|
|
7700
|
+
maxLength?: number | undefined;
|
|
7701
|
+
minLength?: number | undefined;
|
|
7702
|
+
pattern?: string | RegExp | undefined;
|
|
7703
|
+
maxItems?: number | undefined;
|
|
7704
|
+
minItems?: number | undefined;
|
|
7705
|
+
uniqueItems?: boolean | undefined;
|
|
7706
|
+
maxProperties?: number | undefined;
|
|
7707
|
+
minProperties?: number | undefined;
|
|
7708
|
+
required?: string | boolean | string[] | undefined;
|
|
7709
|
+
format?: string | undefined;
|
|
7710
|
+
$ref?: string | undefined;
|
|
7711
|
+
$namespace?: string | undefined;
|
|
7712
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7713
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7714
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
7715
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
7716
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
7717
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
7718
|
+
"x-value"?: any;
|
|
7719
|
+
"x-index"?: number | undefined;
|
|
7720
|
+
"x-pattern"?: any;
|
|
7721
|
+
"x-display"?: any;
|
|
7722
|
+
"x-validator"?: any;
|
|
7723
|
+
"x-decorator"?: any;
|
|
7724
|
+
"x-decorator-props"?: any;
|
|
7725
|
+
"x-component"?: any;
|
|
7726
|
+
"x-component-props"?: any;
|
|
7727
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
7728
|
+
"x-content"?: any;
|
|
7729
|
+
"x-data"?: any;
|
|
7730
|
+
"x-visible"?: boolean | undefined;
|
|
7731
|
+
"x-hidden"?: boolean | undefined;
|
|
7732
|
+
"x-disabled"?: boolean | undefined;
|
|
7733
|
+
"x-editable"?: boolean | undefined;
|
|
7734
|
+
"x-read-only"?: boolean | undefined;
|
|
7735
|
+
"x-read-pretty"?: boolean | undefined;
|
|
7736
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
7737
|
+
}>[];
|
|
7593
7738
|
parsedSchema: import("vue").ComputedRef<import("@formily/json-schema").Stringify<{
|
|
7594
7739
|
[key: symbol]: any;
|
|
7595
7740
|
[key: `x-${string}`]: any;
|
|
@@ -7647,6 +7792,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7647
7792
|
"x-read-pretty"?: boolean | undefined;
|
|
7648
7793
|
"x-compile-omitted"?: string[] | undefined;
|
|
7649
7794
|
}>>;
|
|
7795
|
+
startIncrementalRender: () => void;
|
|
7650
7796
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
7651
7797
|
clearSpan: (uuid: string) => void;
|
|
7652
7798
|
exposeEvent: Omit<import("..").FormRenderExpose, "getFieldList" | "formModel" | "reload">;
|
|
@@ -7709,7 +7855,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7709
7855
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
7710
7856
|
}>;
|
|
7711
7857
|
NTabs: any;
|
|
7712
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7858
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange" | "ready", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7713
7859
|
fieldList: {
|
|
7714
7860
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
7715
7861
|
};
|
|
@@ -7899,12 +8045,17 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7899
8045
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
7900
8046
|
default: boolean;
|
|
7901
8047
|
};
|
|
8048
|
+
incrementalRender: {
|
|
8049
|
+
type: BooleanConstructor;
|
|
8050
|
+
default: boolean;
|
|
8051
|
+
};
|
|
7902
8052
|
}>> & {
|
|
7903
8053
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
7904
8054
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
7905
8055
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
7906
8056
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
|
7907
8057
|
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
|
8058
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
7908
8059
|
}, {
|
|
7909
8060
|
anchor: boolean;
|
|
7910
8061
|
maxHeight: string | number;
|
|
@@ -7929,6 +8080,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7929
8080
|
linebarTextDirection: "horizontal" | "vertical";
|
|
7930
8081
|
autoWidth: number | boolean;
|
|
7931
8082
|
operationalFormInit: boolean;
|
|
8083
|
+
incrementalRender: boolean;
|
|
7932
8084
|
}>;
|
|
7933
8085
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
7934
8086
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|