cnhis-design-vue 3.1.14 → 3.1.15-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.
- package/es/packages/annotation-edit/src/AnnotationEdit.js +2 -1
- package/es/packages/big-table/index.d.ts +8 -11
- package/es/packages/big-table/src/BigTable.vue.d.ts +24 -19
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -3
- package/es/packages/big-table/src/bigTableProps.js +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-date.js +13 -4
- package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +18 -9
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
- package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +51 -36
- package/es/packages/big-table/src/hooks/useEdit.d.ts +3 -1
- package/es/packages/big-table/src/hooks/useFormat.js +8 -1
- package/es/packages/big-table/style/index.css +38 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +8 -8
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +4 -3
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/index.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +3 -3
- package/es/packages/button-print/src/utils/print.d.ts +1 -1
- package/es/packages/button-print/src/utils/print.js +1 -1
- package/es/packages/fabric-chart/index.d.ts +1 -0
- package/es/packages/fabric-chart/src/FabricChart.js +17 -17
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +12 -10
- package/es/packages/fabric-chart/src/hooks/useCenter.js +35 -73
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
- package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +5 -4
- package/es/packages/field-set/index.d.ts +4365 -0
- package/es/packages/field-set/src/FieldSet.js +53 -54
- package/es/packages/field-set/src/FieldSet.vue.d.ts +4365 -0
- package/es/packages/field-set/style/index.css +0 -9
- package/es/packages/form-config/index.d.ts +12111 -0
- package/es/packages/form-config/index.js +10 -0
- package/es/packages/form-config/src/FormConfig.js +113 -0
- package/es/packages/form-config/src/FormConfig.vue.d.ts +12113 -0
- package/es/packages/form-config/src/components/FormConfigCreator.js +97 -0
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +5094 -0
- package/es/packages/form-config/src/components/FormConfigEdit.js +81 -0
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +3591 -0
- package/es/packages/form-config/src/constants/index.d.ts +28 -0
- package/es/packages/form-config/src/constants/index.js +28 -0
- package/es/packages/form-config/src/hooks/index.d.ts +2 -0
- package/es/packages/form-config/src/hooks/index.js +2 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +6 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.js +103 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +5 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +117 -0
- package/es/packages/form-config/src/hooks/useSortable.d.ts +11 -0
- package/es/packages/form-config/src/hooks/useSortable.js +31 -0
- package/es/packages/form-config/src/types/index.d.ts +18 -0
- package/es/packages/form-config/src/types/index.js +1 -0
- package/es/packages/form-config/style/index.css +108 -0
- package/es/packages/form-render/index.d.ts +24 -3
- package/es/packages/form-render/src/FormRender.js +25 -6
- package/es/packages/form-render/src/FormRender.vue.d.ts +24 -3
- package/es/packages/form-render/src/components/renderer/cascader.js +7 -7
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +5 -0
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +32 -0
- package/es/packages/form-render/src/components/renderer/{combination.d.ts → combination/index.d.ts} +7 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +157 -0
- package/es/packages/form-render/src/components/renderer/complex.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/complex.js +2 -5
- package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
- package/es/packages/form-render/src/components/renderer/date.js +63 -56
- package/es/packages/form-render/src/components/renderer/formItem.js +3 -3
- package/es/packages/form-render/src/components/renderer/index.js +1 -1
- package/es/packages/form-render/src/components/renderer/radio.js +4 -1
- package/es/packages/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/packages/form-render/src/components/renderer/select.js +28 -17
- package/es/packages/form-render/src/constants/index.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useAnchor.d.ts +7 -6
- package/es/packages/form-render/src/hooks/useAnchor.js +1 -2
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +6 -1
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +12 -7
- package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
- package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +9 -7
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/packages/form-render/src/hooks/useFormContext.js +21 -3
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
- package/es/packages/form-render/src/types/fieldItem.d.ts +33 -4
- package/es/packages/form-render/src/types/index.d.ts +30 -2
- package/es/packages/form-render/src/utils/index.d.ts +8 -5
- package/es/packages/form-render/src/utils/index.js +64 -13
- package/es/packages/form-render/style/index.css +11 -10
- package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/packages/index.css +158 -21
- package/es/packages/index.d.ts +3 -1
- package/es/packages/index.js +4 -1
- package/es/packages/info-header/index.d.ts +1 -3
- package/es/packages/info-header/src/HiddenContent.js +1 -1
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +1 -3
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +1 -3
- package/es/packages/info-header/style/index.css +1 -1
- package/es/packages/shortcut-provider/index.d.ts +2 -11
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
- package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
- package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
- package/es/packages/shortcut-provider/src/utils/index.js +15 -5
- package/es/packages/shortcut-setter/index.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +8 -6
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +8 -6
- package/es/src/utils/state.d.ts +29 -0
- package/es/src/utils/state.js +44 -0
- package/package.json +10 -1
- package/es/_virtual/_commonjsHelpers.js +0 -7
- package/es/_virtual/css.escape.js +0 -3
- package/es/_virtual/inherits.js +0 -3
- package/es/_virtual/inherits_browser.js +0 -3
- package/es/node_modules/@formily/path/esm/contexts.js +0 -22
- package/es/node_modules/@formily/path/esm/destructor.js +0 -124
- package/es/node_modules/@formily/path/esm/index.js +0 -579
- package/es/node_modules/@formily/path/esm/matcher.js +0 -199
- package/es/node_modules/@formily/path/esm/parser.js +0 -402
- package/es/node_modules/@formily/path/esm/shared.js +0 -73
- package/es/node_modules/@formily/path/esm/tokenizer.js +0 -287
- package/es/node_modules/@formily/path/esm/tokens.js +0 -240
- package/es/node_modules/@formily/path/esm/types.js +0 -17
- package/es/node_modules/css.escape/css.escape.js +0 -110
- package/es/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -6
- package/es/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -18
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -38
- package/es/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -7
- package/es/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -23
- package/es/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -21
- package/es/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -15
- package/es/node_modules/date-fns/esm/compareAsc/index.js +0 -52
- package/es/node_modules/date-fns/esm/constants/index.js +0 -40
- package/es/node_modules/date-fns/esm/differenceInCalendarDays/index.js +0 -49
- package/es/node_modules/date-fns/esm/differenceInCalendarMonths/index.js +0 -35
- package/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +0 -33
- package/es/node_modules/date-fns/esm/differenceInDays/index.js +0 -86
- package/es/node_modules/date-fns/esm/differenceInMonths/index.js +0 -59
- package/es/node_modules/date-fns/esm/differenceInYears/index.js +0 -43
- package/es/node_modules/date-fns/esm/endOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/endOfMonth/index.js +0 -32
- package/es/node_modules/date-fns/esm/isLastDayOfMonth/index.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/Parser.js +0 -32
- package/es/node_modules/date-fns/esm/parse/_lib/Setter.js +0 -37
- package/es/node_modules/date-fns/esm/parse/_lib/constants.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +0 -56
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +0 -53
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -29
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -42
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -50
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +0 -99
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +0 -33
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +0 -61
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +0 -66
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -109
- package/es/node_modules/date-fns/esm/parse/_lib/utils.js +0 -133
- package/es/node_modules/date-fns/esm/startOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/toDate/index.js +0 -55
- package/es/node_modules/diagram-js/lib/command/CommandInterceptor.js +0 -139
- package/es/node_modules/diagram-js/lib/draw/BaseRenderer.js +0 -88
- package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js +0 -591
- package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.js +0 -88
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js +0 -120
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.js +0 -8
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js +0 -227
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js +0 -24
- package/es/node_modules/diagram-js/lib/util/ClickTrap.js +0 -23
- package/es/node_modules/diagram-js/lib/util/Cursor.js +0 -20
- package/es/node_modules/diagram-js/lib/util/Event.js +0 -22
- package/es/node_modules/diagram-js/lib/util/Math.js +0 -9
- package/es/node_modules/diagram-js/lib/util/Mouse.js +0 -30
- package/es/node_modules/diagram-js/lib/util/Platform.js +0 -5
- package/es/node_modules/diagram-js/lib/util/PositionUtil.js +0 -8
- package/es/node_modules/diagram-js/lib/util/RenderUtil.js +0 -25
- package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.js +0 -48
- package/es/node_modules/ids/dist/index.esm.js +0 -164
- package/es/node_modules/inherits/inherits.js +0 -19
- package/es/node_modules/inherits/inherits_browser.js +0 -38
- package/es/node_modules/inherits-browser/dist/index.es.js +0 -3
- package/es/node_modules/min-dash/dist/index.esm.js +0 -169
- package/es/node_modules/min-dom/dist/index.esm.js +0 -588
- package/es/node_modules/tiny-svg/dist/index.esm.js +0 -525
- package/es/packages/form-render/src/components/renderer/combination.js +0 -148
|
@@ -291,7 +291,7 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
291
291
|
width: 100%;
|
|
292
292
|
}
|
|
293
293
|
.custom-big-table .filter-box .text-over-tooltip-components {
|
|
294
|
-
max-width: calc(100% -
|
|
294
|
+
max-width: calc(100% - 40px);
|
|
295
295
|
}
|
|
296
296
|
.custom-big-table .filter-box .vxe-filter--btn {
|
|
297
297
|
border-top-color: #c0c4cc;
|
|
@@ -396,6 +396,17 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
396
396
|
height: var(--tableImageHeight);
|
|
397
397
|
width: var(--tableImageWidth);
|
|
398
398
|
}
|
|
399
|
+
.custom-big-table .domPropsInnerHTML-span .icon-dot-custom {
|
|
400
|
+
width: 8px;
|
|
401
|
+
height: 8px;
|
|
402
|
+
-webkit-border-radius: 50%;
|
|
403
|
+
-moz-border-radius: 50%;
|
|
404
|
+
border-radius: 50%;
|
|
405
|
+
background: var(--table-icon-color);
|
|
406
|
+
display: inline-block;
|
|
407
|
+
margin-right: 6px;
|
|
408
|
+
box-shadow: 0px 2px 4px 0px var(--table-icon-shadow);
|
|
409
|
+
}
|
|
399
410
|
.custom-big-table .domPropsInnerHTML-span .icon-dot-red {
|
|
400
411
|
width: 8px;
|
|
401
412
|
height: 8px;
|
|
@@ -528,6 +539,21 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
528
539
|
margin-right: 6px;
|
|
529
540
|
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
530
541
|
}
|
|
542
|
+
.annotation-edit {
|
|
543
|
+
cursor: pointer;
|
|
544
|
+
color: #0067ee;
|
|
545
|
+
font-size: 16px;
|
|
546
|
+
user-select: none;
|
|
547
|
+
display: inline-flex;
|
|
548
|
+
align-items: center;
|
|
549
|
+
}
|
|
550
|
+
.annotation-edit.is-active {
|
|
551
|
+
color: rgba(255, 152, 40);
|
|
552
|
+
}
|
|
553
|
+
.annotation-edit__icon {
|
|
554
|
+
display: inline-flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
}
|
|
531
557
|
.no-data-tip {
|
|
532
558
|
display: flex;
|
|
533
559
|
flex-direction: column;
|
|
@@ -590,3 +616,14 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
590
616
|
fill: currentColor;
|
|
591
617
|
overflow: hidden;
|
|
592
618
|
}
|
|
619
|
+
.vxe-header--column [annotation-hover-show='true'] {
|
|
620
|
+
visibility: hidden;
|
|
621
|
+
}
|
|
622
|
+
.vxe-header--column:hover [annotation-hover-show='true'] {
|
|
623
|
+
visibility: visible;
|
|
624
|
+
}
|
|
625
|
+
.big-table__annotationWrapper {
|
|
626
|
+
width: 20px;
|
|
627
|
+
display: inline-flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
}
|
|
@@ -3,14 +3,14 @@ import 'bpmn-js/dist/assets/diagram-js.css';
|
|
|
3
3
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
|
|
4
4
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
|
|
5
5
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
|
|
6
|
-
import { attr } from '
|
|
6
|
+
import { attr } from 'tiny-svg';
|
|
7
7
|
import { useMessage } from 'naive-ui';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import BpmnViewer from 'bpmn-js/lib/Viewer';
|
|
11
11
|
import ZoomScroll from './custom/customOtherModule/zoomScroll.js';
|
|
12
12
|
import ModelingModule from 'bpmn-js/lib/features/modeling';
|
|
13
|
-
import MoveCanvasModule from '
|
|
13
|
+
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
|
|
14
14
|
import customViewerRenderer from './custom/customOtherModule/customViewerRenderer.js';
|
|
15
15
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
16
16
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import { assign, forEach, isObject } from '
|
|
3
|
-
import BaseRenderer from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import { assign, forEach, isObject } from 'min-dash';
|
|
3
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
|
4
4
|
import { isExpanded, isEventSubProcess } from 'bpmn-js/lib/util/DiUtil';
|
|
5
5
|
import { getLabel } from 'bpmn-js/lib/features/label-editing/LabelUtil';
|
|
6
6
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
|
7
|
-
import { createLine } from '
|
|
7
|
+
import { createLine } from 'diagram-js/lib/util/RenderUtil';
|
|
8
8
|
import { getCirclePath, getRoundRectPath, getDiamondPath, getRectPath, getFillColor, getStrokeColor, getSemantic, getLabelColor, getDi, isCollection, isThrowEvent, isTypedEvent } from 'bpmn-js/lib/draw/BpmnRenderUtil';
|
|
9
|
-
import { query } from '
|
|
10
|
-
import { attr, create, append, classes } from '
|
|
11
|
-
import { rotate, transform, translate } from '
|
|
12
|
-
import Ids from '
|
|
9
|
+
import { query } from 'min-dom';
|
|
10
|
+
import { attr, create, append, classes } from 'tiny-svg';
|
|
11
|
+
import { rotate, transform, translate } from 'diagram-js/lib/util/SvgTransformUtil';
|
|
12
|
+
import Ids from 'ids';
|
|
13
13
|
|
|
14
14
|
var RENDERER_IDS = new Ids();
|
|
15
15
|
var TASK_BORDER_RADIUS = 10;
|
package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { assign, isArray, forEach } from '
|
|
1
|
+
import { assign, isArray, forEach } from 'min-dash';
|
|
2
2
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
|
3
3
|
import { isExpanded, isEventSubProcess } from 'bpmn-js/lib/util/DiUtil';
|
|
4
4
|
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
|
5
5
|
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil';
|
|
6
|
-
import { hasPrimaryModifier } from '
|
|
6
|
+
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse';
|
|
7
7
|
|
|
8
8
|
function ContextPadProvider(config, injector, eventBus, contextPad, modeling, elementFactory, connect, create, popupMenu, canvas, rules, translate, elementRegistry, bpmnFactory, copyPaste, clipboard, moddle) {
|
|
9
9
|
config = config || {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assign } from '
|
|
1
|
+
import { assign } from 'min-dash';
|
|
2
2
|
|
|
3
3
|
function PaletteProvider(palette, create, elementFactory, globalConnect, bpmnFactory, spaceTool, lassoTool, handTool, translate, modeling, moddle) {
|
|
4
4
|
this.create = create;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import BaseRenderer from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
|
3
3
|
import { getFillColor, getStrokeColor } from 'bpmn-js/lib/draw/BpmnRenderUtil';
|
|
4
|
-
import
|
|
4
|
+
import 'min-dash';
|
|
5
|
+
import { classes, create, attr, append } from 'tiny-svg';
|
|
5
6
|
|
|
6
7
|
function CustomRenderer(config, eventBus, styles, textRenderer, bpmnRenderer, modeling, customPathMap) {
|
|
7
8
|
BaseRenderer.call(this, eventBus, 2e3);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import RuleProvider from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|
|
3
3
|
|
|
4
4
|
function CustomRules(eventBus, elementRegistry) {
|
|
5
5
|
this.elementRegistry = elementRegistry;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PopupMenu from '
|
|
2
|
-
import { forEach, omit, isFunction } from '
|
|
1
|
+
import PopupMenu from 'diagram-js/lib/features/popup-menu/PopupMenu.js';
|
|
2
|
+
import { forEach, omit, isFunction } from 'min-dash';
|
|
3
3
|
|
|
4
4
|
var CustomPopupMenu = {
|
|
5
5
|
__init__: ["popupMenu"],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll/ZoomScroll';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ZoomScrollModule.prototype.scroll = () => {
|
|
4
4
|
};
|
|
5
5
|
var ZoomScroll = {
|
|
6
6
|
__init__: ["zoomScroll"],
|
|
7
|
-
zoomScroll: ["type",
|
|
7
|
+
zoomScroll: ["type", ZoomScrollModule]
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { ZoomScroll as default };
|
|
@@ -11,7 +11,7 @@ export declare class Print {
|
|
|
11
11
|
_queryServicesPrint(params: AnyObject): Promise<any>;
|
|
12
12
|
_callPrintWithFile(queryParams: AnyObject): Promise<any>;
|
|
13
13
|
_handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
|
|
14
|
-
_handleResultTest(result:
|
|
14
|
+
_handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
|
|
15
15
|
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, errorCallbackFn?: Func): Promise<false | {
|
|
16
16
|
file: any;
|
|
17
17
|
printerName: any;
|
|
@@ -53,6 +53,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
53
53
|
}>;
|
|
54
54
|
topList: import("vue").ComputedRef<import("./src/interface").IDate[]>;
|
|
55
55
|
propItems: any;
|
|
56
|
+
computedYCell: (type: import("./src/interface").IPointType) => number;
|
|
56
57
|
cumputedX: (value: string | number) => any;
|
|
57
58
|
cumputedY: (type: import("./src/interface").IPointType, scaleValueList: number[], value: string | number) => number;
|
|
58
59
|
getXValue: (pointX: number) => string | undefined;
|
|
@@ -19,7 +19,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
data: null,
|
|
20
20
|
addRenderItem: null
|
|
21
21
|
},
|
|
22
|
-
emits: [
|
|
22
|
+
emits: [
|
|
23
|
+
"change",
|
|
24
|
+
"add",
|
|
25
|
+
"select"
|
|
26
|
+
],
|
|
23
27
|
setup(__props, { expose, emit: emits }) {
|
|
24
28
|
const props = __props;
|
|
25
29
|
const defaultHeight = 15;
|
|
@@ -130,28 +134,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
134
|
return timeList.flat();
|
|
131
135
|
});
|
|
132
136
|
const breatheYCell = computed(() => {
|
|
133
|
-
|
|
134
|
-
const { yScaleValue, spaceGridNumber = 5 } = props.data.left;
|
|
135
|
-
const list = (_a = yScaleValue.find((v) => v.type === "breathe")) == null ? void 0 : _a.list;
|
|
136
|
-
return list ? yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber) : 0;
|
|
137
|
+
return computedYCell("breathe");
|
|
137
138
|
});
|
|
138
139
|
const pulseYCell = computed(() => {
|
|
139
|
-
|
|
140
|
-
const list = yScaleValue.find((v) => v.type === "pulse").list;
|
|
141
|
-
return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
|
|
140
|
+
return computedYCell("pulse");
|
|
142
141
|
});
|
|
143
142
|
const temperatureYCell = computed(() => {
|
|
144
|
-
|
|
145
|
-
const list = yScaleValue.find((v) => v.type === "temperature").list;
|
|
146
|
-
return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / spaceGridNumber);
|
|
143
|
+
return computedYCell("temperature");
|
|
147
144
|
});
|
|
148
145
|
const painYCell = computed(() => {
|
|
149
|
-
|
|
150
|
-
const item = yScaleValue.find((v) => v.type === "pain");
|
|
151
|
-
const list = (item == null ? void 0 : item.list) || [];
|
|
152
|
-
if (!list.length)
|
|
153
|
-
return 0;
|
|
154
|
-
return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
|
|
146
|
+
return computedYCell("pain");
|
|
155
147
|
});
|
|
156
148
|
const event = computed(() => {
|
|
157
149
|
var _a;
|
|
@@ -261,6 +253,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
253
|
event: event.value,
|
|
262
254
|
itemList: itemList.value
|
|
263
255
|
});
|
|
256
|
+
function computedYCell(type) {
|
|
257
|
+
const { yScaleValue } = props.data.left;
|
|
258
|
+
const item = yScaleValue.find((v) => v.type === type);
|
|
259
|
+
const list = (item == null ? void 0 : item.list) || [];
|
|
260
|
+
if (!list.length)
|
|
261
|
+
return 0;
|
|
262
|
+
return yCellHeight.value / ((parseInt(list[1]) - parseInt(list[0])) / item.spaceGridNumber);
|
|
263
|
+
}
|
|
264
264
|
const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
|
|
265
265
|
useTop(canvas, propItems);
|
|
266
266
|
const { pointTipProps, pointMenuProps, clickMenu, setPopup, getEqualXTypes } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IData, IDate, IPointType } from './interface';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
data: {
|
|
4
5
|
type: null;
|
|
@@ -53,10 +54,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
}>;
|
|
54
55
|
topList: import("vue").ComputedRef<IDate[]>;
|
|
55
56
|
propItems: any;
|
|
57
|
+
computedYCell: (type: IPointType) => number;
|
|
56
58
|
cumputedX: (value: string | number) => any;
|
|
57
|
-
cumputedY: (type:
|
|
59
|
+
cumputedY: (type: IPointType, scaleValueList: number[], value: string | number) => number;
|
|
58
60
|
getXValue: (pointX: number) => string | undefined;
|
|
59
|
-
getYValue: (type:
|
|
61
|
+
getYValue: (type: IPointType, pointY: number) => number;
|
|
60
62
|
pointTipProps: {
|
|
61
63
|
show: boolean;
|
|
62
64
|
point: {
|
|
@@ -79,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
81
|
target: any;
|
|
80
82
|
}) => void;
|
|
81
83
|
setPopup: (point: any) => void;
|
|
82
|
-
getEqualXTypes: (pointX: number) =>
|
|
84
|
+
getEqualXTypes: (pointX: number) => IPointType[];
|
|
83
85
|
PopupTip: import("vue").DefineComponent<{
|
|
84
86
|
show: {
|
|
85
87
|
type: BooleanConstructor;
|
|
@@ -151,13 +153,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
153
|
default: () => never[];
|
|
152
154
|
};
|
|
153
155
|
point: {
|
|
154
|
-
type:
|
|
156
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
155
157
|
};
|
|
156
158
|
propItems: {
|
|
157
|
-
type:
|
|
159
|
+
type: PropType<import("./interface").IPropItems>;
|
|
158
160
|
};
|
|
159
161
|
target: {
|
|
160
|
-
type:
|
|
162
|
+
type: PropType<any>;
|
|
161
163
|
};
|
|
162
164
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
163
165
|
show: {
|
|
@@ -169,13 +171,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
171
|
default: () => never[];
|
|
170
172
|
};
|
|
171
173
|
point: {
|
|
172
|
-
type:
|
|
174
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
173
175
|
};
|
|
174
176
|
propItems: {
|
|
175
|
-
type:
|
|
177
|
+
type: PropType<import("./interface").IPropItems>;
|
|
176
178
|
};
|
|
177
179
|
target: {
|
|
178
|
-
type:
|
|
180
|
+
type: PropType<any>;
|
|
179
181
|
};
|
|
180
182
|
}>> & {
|
|
181
183
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
@@ -8,6 +8,18 @@ import { TEMPERATURE_MENU, PAIN_MENU } from './constant.js';
|
|
|
8
8
|
function isEffectiveNode(node) {
|
|
9
9
|
return (node == null ? void 0 : node.time) && ((node == null ? void 0 : node.value) || (node == null ? void 0 : node.value) === 0);
|
|
10
10
|
}
|
|
11
|
+
function getPointArr(arr) {
|
|
12
|
+
let _arr = [];
|
|
13
|
+
return arr.reduce((pre, cur, index) => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
_arr.push([cur.left, cur.top]);
|
|
16
|
+
if (((_b = (_a = cur.origin) == null ? void 0 : _a.data) == null ? void 0 : _b.breakpoint) || arr.length - 1 === index) {
|
|
17
|
+
pre.push(_arr);
|
|
18
|
+
_arr = [];
|
|
19
|
+
}
|
|
20
|
+
return pre;
|
|
21
|
+
}, []);
|
|
22
|
+
}
|
|
11
23
|
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem) {
|
|
12
24
|
useGrid(canvas, propItems);
|
|
13
25
|
const {
|
|
@@ -36,6 +48,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
36
48
|
target: null
|
|
37
49
|
});
|
|
38
50
|
const shadowLinesCache = /* @__PURE__ */ new Set();
|
|
51
|
+
let shadowPointCache = [];
|
|
39
52
|
const maiboPoints = /* @__PURE__ */ new Set();
|
|
40
53
|
const otherPoints = /* @__PURE__ */ new Set();
|
|
41
54
|
const prevLines = /* @__PURE__ */ new Set();
|
|
@@ -45,7 +58,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
45
58
|
});
|
|
46
59
|
});
|
|
47
60
|
function init() {
|
|
48
|
-
|
|
61
|
+
shadowPointCache = [];
|
|
49
62
|
maiboPoints.clear();
|
|
50
63
|
otherPoints.clear();
|
|
51
64
|
prevLines.clear();
|
|
@@ -55,6 +68,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
55
68
|
drawPolyLine(item, dataIndex, scaleValue);
|
|
56
69
|
});
|
|
57
70
|
});
|
|
71
|
+
drawShaDow();
|
|
58
72
|
drawOverlapPoint();
|
|
59
73
|
setCanvasEvent();
|
|
60
74
|
}
|
|
@@ -67,89 +81,34 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
67
81
|
canvas.value.renderAll();
|
|
68
82
|
}
|
|
69
83
|
function drawShaDow(target) {
|
|
70
|
-
var _a
|
|
84
|
+
var _a;
|
|
71
85
|
const pulseObj = left.yScaleValue.find((item) => item.type === "pulse");
|
|
72
86
|
if (!pulseObj || !((_a = pulseObj.dataList) == null ? void 0 : _a.length))
|
|
73
87
|
return;
|
|
74
88
|
if (shadowLinesCache.size)
|
|
75
89
|
canvas.value.remove(...shadowLinesCache);
|
|
76
90
|
shadowLinesCache.clear();
|
|
77
|
-
|
|
78
|
-
if (((_b = pulseObj.dataList) == null ? void 0 : _b.length) > 1) {
|
|
79
|
-
let points1 = [];
|
|
80
|
-
let points2 = [];
|
|
81
|
-
const copyDataList = JSON.parse(JSON.stringify(pulseObj.dataList));
|
|
91
|
+
if (shadowPointCache.length > 1) {
|
|
82
92
|
if (target) {
|
|
83
93
|
const { type, dataIndex, index } = target.origin || {};
|
|
84
94
|
if (type === "pulse") {
|
|
85
|
-
|
|
86
|
-
x: target.left,
|
|
87
|
-
y: target.top
|
|
88
|
-
});
|
|
95
|
+
shadowPointCache[dataIndex].splice(index, 1, target);
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
|
-
const [data1, data2] =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
const point = getPointer(item, pulseObj);
|
|
100
|
-
if (point == null ? void 0 : point.length) {
|
|
101
|
-
return {
|
|
102
|
-
x: point[0],
|
|
103
|
-
y: point[1]
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
data1.list.forEach((item, index) => {
|
|
108
|
-
const point1 = getPoint(item);
|
|
109
|
-
const item2 = data2.list[index];
|
|
110
|
-
const point2 = item2 ? getPoint(item2) : null;
|
|
111
|
-
if (point1 && point2 && point1.x === point2.x && point1.y !== point2.y) {
|
|
112
|
-
points1.push(point1);
|
|
113
|
-
points2.push(point2);
|
|
114
|
-
const itemPrev = data1.list[index - 1];
|
|
115
|
-
const itemNext = data1.list[index + 1];
|
|
116
|
-
const itemNext2 = data2.list[index + 1];
|
|
117
|
-
if (itemPrev && points1.length === 1) {
|
|
118
|
-
const point = getPoint(itemPrev);
|
|
119
|
-
point && points1.unshift(point);
|
|
120
|
-
}
|
|
121
|
-
if (itemNext && itemNext2) {
|
|
122
|
-
const pointNext = getPoint(itemNext);
|
|
123
|
-
const pointNext2 = getPoint(itemNext2);
|
|
124
|
-
if (pointNext && pointNext2 && pointNext.x === pointNext2.x && pointNext.y === pointNext2.y) {
|
|
125
|
-
points1.push(pointNext);
|
|
126
|
-
}
|
|
127
|
-
} else {
|
|
128
|
-
data.push({ points1, points2 });
|
|
129
|
-
}
|
|
130
|
-
} else {
|
|
131
|
-
if (points1.length && points2.length) {
|
|
132
|
-
data.push({ points1, points2 });
|
|
133
|
-
points1 = [];
|
|
134
|
-
points2 = [];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (data.length) {
|
|
140
|
-
const newData = data.reduce((pre, cur) => {
|
|
141
|
-
const arr1 = cur.points1.map((v) => [v.x, v.y]);
|
|
142
|
-
const arr2 = cur.points2.map((v) => [v.x, v.y]);
|
|
143
|
-
return pre.concat([[...arr1, ...arr2.reverse()]]);
|
|
144
|
-
}, []);
|
|
98
|
+
const [data1, data2] = shadowPointCache;
|
|
99
|
+
if (!data1.length || !data2.length)
|
|
100
|
+
return;
|
|
101
|
+
const points1 = getPointArr(data1);
|
|
102
|
+
const points2 = getPointArr(data2);
|
|
103
|
+
const data = points1.reduce((pre, cur, index) => pre.concat([[...cur, ...points2[index].reverse()]]), []);
|
|
145
104
|
const { createShadowLines } = useShadow();
|
|
146
|
-
|
|
147
|
-
var _a2,
|
|
105
|
+
data.forEach((item) => {
|
|
106
|
+
var _a2, _b, _c, _d;
|
|
148
107
|
if (((_a2 = pulseObj.shadow) == null ? void 0 : _a2.mode) == "color") {
|
|
149
108
|
const points = item.map((v) => ({ x: v[0], y: v[1] }));
|
|
150
109
|
const polygon = new fabric.Polygon(points, {
|
|
151
110
|
...defaultStyle,
|
|
152
|
-
...((
|
|
111
|
+
...((_b = pulseObj.shadow) == null ? void 0 : _b.style) || {}
|
|
153
112
|
});
|
|
154
113
|
shadowLinesCache.add(polygon);
|
|
155
114
|
canvas.value.add(polygon);
|
|
@@ -170,6 +129,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
170
129
|
}
|
|
171
130
|
}
|
|
172
131
|
function setCanvasEvent() {
|
|
132
|
+
if (!propItems.event.evented)
|
|
133
|
+
return;
|
|
173
134
|
canvas.value.on("mouse:up", (event) => {
|
|
174
135
|
var _a;
|
|
175
136
|
if (event.button === 3) {
|
|
@@ -198,7 +159,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
198
159
|
title: v.title,
|
|
199
160
|
unit: v.unit,
|
|
200
161
|
type: v.bigType,
|
|
201
|
-
dataIndex: v.dataIndex
|
|
162
|
+
dataIndex: v.dataIndex,
|
|
163
|
+
key: v.key
|
|
202
164
|
},
|
|
203
165
|
pointer: event.pointer
|
|
204
166
|
});
|
|
@@ -379,7 +341,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
379
341
|
coolLine,
|
|
380
342
|
coolPoint,
|
|
381
343
|
lockMovementX: true,
|
|
382
|
-
...pointAttr
|
|
344
|
+
...pointAttr,
|
|
345
|
+
...propItems.event
|
|
383
346
|
};
|
|
384
347
|
if (previousLine) {
|
|
385
348
|
point = drawPoint(type, {
|
|
@@ -414,6 +377,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
414
377
|
pointList.push(point);
|
|
415
378
|
}
|
|
416
379
|
});
|
|
380
|
+
scaleValue.type === "pulse" && shadowPointCache.push(pointList);
|
|
417
381
|
Promise.all(pointList).then((res) => {
|
|
418
382
|
const lineListFilter = lineList.filter((v) => v);
|
|
419
383
|
let prevPoint = null;
|
|
@@ -528,14 +492,12 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
528
492
|
return getTime >= minMinute && getTime <= maxMinute;
|
|
529
493
|
}
|
|
530
494
|
function getPointer(v, scaleValue) {
|
|
531
|
-
let points;
|
|
532
495
|
const objOriginY = scaleValue.type === "pain" ? painOriginY : vitalSignsOriginY;
|
|
533
496
|
if (isEffectiveNode(v) && isLimit(v.time)) {
|
|
534
497
|
const x = cumputedX(v.time);
|
|
535
498
|
const y = cumputedY(scaleValue.type, scaleValue.list, v.value);
|
|
536
|
-
|
|
499
|
+
return [x, y < objOriginY.originY ? objOriginY.originY : y > objOriginY.endY ? objOriginY.endY : y];
|
|
537
500
|
}
|
|
538
|
-
return points;
|
|
539
501
|
}
|
|
540
502
|
function clickMenu({ item, target }) {
|
|
541
503
|
if (!target) {
|
|
@@ -31,10 +31,12 @@ function useCumputedPoint(propItems) {
|
|
|
31
31
|
const residueX = pointX - item.left;
|
|
32
32
|
const residueTime = item.scaleCell * residueX;
|
|
33
33
|
const time = item.start + residueTime;
|
|
34
|
-
|
|
34
|
+
const d = new Date(time);
|
|
35
35
|
const month = `00${d.getMonth() + 1}`.slice(-2);
|
|
36
36
|
const day = `00${d.getDate()}`.slice(-2);
|
|
37
|
-
const
|
|
37
|
+
const hours = `00${d.getHours()}`.slice(-2);
|
|
38
|
+
const minutes = `00${d.getMinutes()}`.slice(-2);
|
|
39
|
+
const date = `${d.getFullYear()}-${month}-${day} ${hours}:${minutes}`;
|
|
38
40
|
return date;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -55,8 +55,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
55
55
|
height: painHeight,
|
|
56
56
|
...defaultRectStyle
|
|
57
57
|
}, {
|
|
58
|
-
value: `${item.title
|
|
59
|
-
${item.title.slice(-2)}`,
|
|
58
|
+
value: `${item.title}`,
|
|
60
59
|
...defaultTextStyle,
|
|
61
60
|
...item.style || {}
|
|
62
61
|
}, {
|
|
@@ -195,10 +194,12 @@ ${item.title.slice(-2)}`,
|
|
|
195
194
|
title: item.title,
|
|
196
195
|
unit: item.unit,
|
|
197
196
|
type: item.bigType,
|
|
198
|
-
dataIndex: item.dataIndex
|
|
197
|
+
dataIndex: item.dataIndex,
|
|
198
|
+
key: item.key
|
|
199
199
|
},
|
|
200
200
|
originLeft: leftX,
|
|
201
|
-
originTop: topY - (text.height || 30) / 2
|
|
201
|
+
originTop: topY - (text.height || 30) / 2,
|
|
202
|
+
...propItems.event
|
|
202
203
|
});
|
|
203
204
|
topY -= text.height || 30;
|
|
204
205
|
setPointEvent(icon);
|