cnhis-design-vue 2.1.57 → 2.1.59
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/.prettierrc.js +27 -27
- package/CHANGELOG.md +2610 -2634
- package/README.md +90 -90
- package/commitlint.config.js +1 -1
- package/es/affix/index.js +8 -8
- package/es/age/index.js +18 -18
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +345 -333
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +31 -31
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +7 -7
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +17 -17
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +5 -5
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +30 -30
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +5 -5
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +724 -436
- package/es/fabric-chart/style.css +1 -1
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/form-table/index.js +221 -189
- package/es/form-table/style.css +1 -1
- package/es/grid/index.js +4 -4
- package/es/index/index.js +2042 -1695
- package/es/index/style.css +1 -1
- package/es/input/index.js +11 -11
- package/es/input-number/index.js +8 -8
- package/es/keep-cache/index.js +9 -9
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +13 -13
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +116 -116
- package/es/multi-chat-client/index.js +110 -110
- package/es/multi-chat-history/index.js +6 -6
- package/es/multi-chat-record/index.js +27 -27
- package/es/multi-chat-setting/index.js +43 -43
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +17 -17
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-container/index.js +28 -23
- package/es/scale-container/style.css +1 -1
- package/es/scale-view/index.js +158 -158
- package/es/select/index.js +44 -44
- package/es/select-label/index.js +50 -50
- package/es/select-person/index.js +20 -20
- package/es/shortcut-setter/index.js +10 -10
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +253 -238
- package/es/table-filter/style.css +1 -1
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/utils/clickoutside.js +7 -7
- package/es/utils/kty.min-1.0.0.js +5 -5
- package/es/utils/time-domain.js +16 -16
- package/es/utils/utils-map.js +32 -32
- package/es/utils/vexutils.js +27 -27
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +2172 -1825
- package/lib/cui.umd.js +2172 -1825
- package/lib/cui.umd.min.js +28 -28
- package/package.json +110 -110
- package/packages/affix/index.js +12 -12
- package/packages/affix/src/Affix.jsx +12 -12
- package/packages/age/index.js +27 -27
- package/packages/age/src/age/index.vue +139 -139
- package/packages/age/src/age-com/index.vue +209 -209
- package/packages/alert/index.js +12 -12
- package/packages/alert/src/Alert.jsx +11 -11
- package/packages/anchor/index.js +18 -18
- package/packages/anchor/src/Anchor.jsx +11 -11
- package/packages/anchor/src/Link.jsx +11 -11
- package/packages/auto-complete/index.js +12 -12
- package/packages/auto-complete/src/AutoComplete.jsx +12 -12
- package/packages/avatar/index.js +12 -12
- package/packages/avatar/src/Avatar.jsx +11 -11
- package/packages/back-top/index.js +12 -12
- package/packages/back-top/src/BackTop.jsx +11 -11
- package/packages/badge/index.js +12 -12
- package/packages/badge/src/Badge.jsx +11 -11
- package/packages/base/index.js +3 -3
- package/packages/big-table/index.js +16 -16
- package/packages/big-table/src/BigTable.vue +3150 -3144
- package/packages/big-table/src/Fieldset.vue +2067 -2067
- package/packages/big-table/src/assets/iconfont/iconfont.css +21 -21
- package/packages/big-table/src/assets/style/table-base.less +385 -385
- package/packages/big-table/src/assets/style/table-global.less +175 -175
- package/packages/big-table/src/components/AutoLayoutButton.vue +279 -279
- package/packages/big-table/src/components/NoData.vue +81 -81
- package/packages/big-table/src/components/TextOverTooltip.vue +120 -120
- package/packages/big-table/src/components/edit-form/EditForm.vue +509 -509
- package/packages/big-table/src/components/edit-form/edit-component/config-data/index.js +68 -68
- package/packages/big-table/src/components/edit-form/edit-component/edit-date-picker/edit-date-picker.vue +60 -60
- package/packages/big-table/src/components/edit-form/edit-component/edit-digital/edit-digital.vue +54 -54
- package/packages/big-table/src/components/edit-form/edit-component/edit-input/edit-input.vue +39 -39
- package/packages/big-table/src/components/edit-form/edit-component/edit-input-password/edit-input-password.vue +79 -79
- package/packages/big-table/src/components/edit-form/edit-component/edit-month-picker/edit-month-picker.vue +37 -37
- package/packages/big-table/src/components/edit-form/edit-component/edit-search/edit-search.vue +82 -82
- package/packages/big-table/src/components/edit-form/edit-component/edit-search-more/edit-search-more.vue +95 -95
- package/packages/big-table/src/components/edit-form/edit-component/edit-select/edit-select.vue +40 -40
- package/packages/big-table/src/components/edit-form/edit-component/edit-select-multiple/edit-select-multiple.vue +55 -55
- package/packages/big-table/src/components/edit-form/edit-component/edit-switch/edit-switch.vue +43 -43
- package/packages/big-table/src/components/edit-form/edit-component/edit-textarea/edit-textarea.vue +41 -41
- package/packages/big-table/src/components/edit-form/edit-component/edit-time-picker/edit-time-picker.vue +40 -40
- package/packages/big-table/src/components/edit-form/edit-component/mixins/bound-date.js +3 -3
- package/packages/big-table/src/components/edit-form/edit-component/mixins/dateType.js +217 -217
- package/packages/big-table/src/components/edit-form/edit-component/mixins/item-default.js +639 -639
- package/packages/big-table/src/components/edit-form/edit-component/mixins/search.js +1247 -1247
- package/packages/big-table/src/components/edit-form/edit-component/register-com.js +26 -26
- package/packages/big-table/src/components/edit-form/edit-item/form-event.js +80 -80
- package/packages/big-table/src/components/edit-form/edit-item/global-props.js +33 -33
- package/packages/big-table/src/components/edit-form/edit-item/index.js +4 -4
- package/packages/big-table/src/components/edit-form/edit-item/render-methods.js +28 -28
- package/packages/big-table/src/components/edit-form/edit-item/validate-rules.js +463 -463
- package/packages/big-table/src/components/edit-form/edit-mixins/form-commom.js +673 -673
- package/packages/big-table/src/components/edit-form/edit-mixins/index.js +3 -3
- package/packages/big-table/src/components/edit-form/edit-utils/index.js +112 -112
- package/packages/big-table/src/components/password-com.vue +58 -58
- package/packages/big-table/src/components/player-vod/index.vue +57 -57
- package/packages/big-table/src/components/player-vod/player.vue +189 -189
- package/packages/big-table/src/components/player-vod/video-list.vue +265 -265
- package/packages/big-table/src/components/player-vod/video-modal.vue +126 -126
- package/packages/big-table/src/utils/CustomPagination.vue +86 -86
- package/packages/big-table/src/utils/batchEditing.js +610 -610
- package/packages/big-table/src/utils/bigTableProps.js +103 -103
- package/packages/big-table/src/utils/format.js +557 -557
- package/packages/big-table/src/utils/nestTable.js +109 -109
- package/packages/big-table/src/utils/tableParse.js +234 -234
- package/packages/breadcrumb/index.js +21 -21
- package/packages/breadcrumb/src/Breadcrumb.jsx +11 -11
- package/packages/breadcrumb/src/BreadcrumbItem.jsx +11 -11
- package/packages/breadcrumb/src/BreadcrumbSeparator.jsx +11 -11
- package/packages/button/index.js +21 -21
- package/packages/button/src/Button.jsx +11 -11
- package/packages/button/src/ButtonGroup.jsx +11 -11
- package/packages/button/src/ButtonPrint/components/IdentityVerification.vue +181 -181
- package/packages/button/src/ButtonPrint/index.vue +766 -766
- package/packages/button/src/ButtonPrint/mixin/his-print.js +95 -95
- package/packages/calendar/index.js +12 -12
- package/packages/calendar/src/Calendar.jsx +11 -11
- package/packages/captcha/index.js +9 -9
- package/packages/captcha/src/Captcha.vue +164 -164
- package/packages/captcha/src/Index.vue +47 -47
- package/packages/captcha/src/SlideVerify.vue +285 -285
- package/packages/card/index.js +21 -21
- package/packages/card/src/Card.jsx +12 -12
- package/packages/card/src/CardGrid.js +7 -7
- package/packages/card/src/CardMeta.js +7 -7
- package/packages/carousel/index.js +12 -12
- package/packages/carousel/src/Carousel.jsx +12 -12
- package/packages/cascader/index.js +12 -12
- package/packages/cascader/src/Cascader.jsx +11 -11
- package/packages/checkbox/index.js +30 -30
- package/packages/checkbox/src/Checkbox.jsx +11 -11
- package/packages/checkbox/src/CheckboxImg/index.vue +141 -141
- package/packages/checkbox/src/Group.jsx +11 -11
- package/packages/col/index.js +13 -13
- package/packages/col/src/Col.jsx +11 -11
- package/packages/collapse/index.js +18 -18
- package/packages/collapse/src/Collapse.jsx +11 -11
- package/packages/collapse/src/Panel.jsx +11 -11
- package/packages/color-picker/index.js +10 -10
- package/packages/color-picker/src/color-picker.vue +191 -191
- package/packages/color-picker/src/style.less +109 -109
- package/packages/comment/index.js +12 -12
- package/packages/comment/src/Comment.jsx +11 -11
- package/packages/config-provider/index.js +12 -12
- package/packages/config-provider/src/ConfigProvider.jsx +11 -11
- package/packages/date-picker/index.js +26 -26
- package/packages/date-picker/src/DatePicker.jsx +12 -12
- package/packages/date-picker/src/MonthPicker.jsx +11 -11
- package/packages/date-picker/src/RangePicker.jsx +11 -11
- package/packages/date-picker/src/WeekPicker.jsx +11 -11
- package/packages/date-picker/src/utils/index.js +374 -374
- package/packages/descriptions/index.js +18 -18
- package/packages/descriptions/src/Descriptions.jsx +11 -11
- package/packages/descriptions/src/Item.jsx +11 -11
- package/packages/divider/index.js +12 -12
- package/packages/divider/src/Divider.jsx +11 -11
- package/packages/drag-layout/DragFormLeftItem.vue +173 -173
- package/packages/drag-layout/DragFormRightItem.vue +284 -284
- package/packages/drag-layout/I18n-mixins.js +10 -10
- package/packages/drag-layout/drag-layout.vue +778 -778
- package/packages/drag-layout/index.js +12 -12
- package/packages/drawer/index.js +12 -12
- package/packages/drawer/src/Drawer.jsx +11 -11
- package/packages/dropdown/index.js +12 -12
- package/packages/dropdown/src/Dropdown.jsx +11 -11
- package/packages/editor/index.js +9 -9
- package/packages/ellipsis/index.js +8 -8
- package/packages/ellipsis/src/Ellipsis.vue +65 -65
- package/packages/empty/index.js +12 -12
- package/packages/empty/src/Empty.jsx +11 -11
- package/packages/fabric-chart/index.js +9 -9
- package/packages/fabric-chart/src/FabricGrid.vue +67 -66
- package/packages/fabric-chart/src/components/DropPopup.vue +90 -90
- package/packages/fabric-chart/src/components/MouseRightClick.vue +168 -168
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +114 -115
- package/packages/fabric-chart/src/const/defaultVaule.js +60 -59
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +43 -9
- package/packages/fabric-chart/src/fabric-chart/FabricLines.vue +579 -552
- package/packages/fabric-chart/src/fabric-chart/FabricPolylines.vue +1142 -1126
- package/packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue +134 -134
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +574 -566
- package/packages/fabric-chart/src/mixins/eventCommon.js +34 -1
- package/packages/fabric-chart/src/mixins/fabricCommon.js +95 -95
- package/packages/fabric-chart/src/mixins/fabricObject.js +193 -193
- package/packages/fabric-chart/src/mixins/type.js +5 -5
- package/packages/form/index.js +16 -16
- package/packages/form/src/Form.jsx +11 -11
- package/packages/form/src/Item.jsx +11 -11
- package/packages/form-model/index.js +14 -14
- package/packages/form-model/src/FormModel.jsx +11 -11
- package/packages/form-model/src/Item.jsx +11 -11
- package/packages/form-table/index.js +16 -16
- package/packages/form-table/src/FormTable.vue +1110 -1110
- package/packages/form-table/src/components/table-component/config-data/index.js +80 -80
- package/packages/form-table/src/components/table-component/global-props.js +22 -22
- package/packages/form-table/src/components/table-component/index.js +8 -8
- package/packages/form-table/src/components/table-component/mixins/bound-date.js +455 -455
- package/packages/form-table/src/components/table-component/mixins/dateType.js +217 -217
- package/packages/form-table/src/components/table-component/mixins/item-default.js +257 -257
- package/packages/form-table/src/components/table-component/mixins/search.js +1242 -1238
- package/packages/form-table/src/components/table-component/register-com.js +30 -30
- package/packages/form-table/src/components/table-component/table-age/table-age.vue +175 -175
- package/packages/form-table/src/components/table-component/table-date-picker/table-date-picker.vue +87 -87
- package/packages/form-table/src/components/table-component/table-digital/table-digital.vue +93 -93
- package/packages/form-table/src/components/table-component/table-input/table-input.vue +81 -81
- package/packages/form-table/src/components/table-component/table-input-password/table-input-password.vue +126 -126
- package/packages/form-table/src/components/table-component/table-month-picker/table-month-picker.vue +55 -55
- package/packages/form-table/src/components/table-component/table-search/table-search.vue +174 -174
- package/packages/form-table/src/components/table-component/table-search-more/table-search-more.vue +191 -191
- package/packages/form-table/src/components/table-component/table-select/table-select.vue +64 -64
- package/packages/form-table/src/components/table-component/table-select-multiple/table-select-multiple.vue +81 -81
- package/packages/form-table/src/components/table-component/table-textarea/table-textarea.vue +76 -76
- package/packages/form-table/src/components/table-component/table-time-picker/table-time-picker.vue +55 -55
- package/packages/form-table/src/components/table-component/table-tree-select/table-tree-select.vue +135 -135
- package/packages/form-table/src/components/table-component/text-over-tooltip/TextOverTooltip.vue +97 -97
- package/packages/form-table/src/components/table-item/form-event.js +81 -81
- package/packages/form-table/src/components/table-item/global-props.js +27 -27
- package/packages/form-table/src/components/table-item/index.js +4 -4
- package/packages/form-table/src/components/table-item/render-methods.js +28 -28
- package/packages/form-table/src/components/table-item/validate-rules.js +520 -520
- package/packages/form-table/src/components/table-mixins/form-commom.js +98 -98
- package/packages/form-table/src/components/table-mixins/index.js +3 -3
- package/packages/form-table/src/components/table-utils/index.js +112 -112
- package/packages/form-table/src/disabledDetail.less +46 -46
- package/packages/grid/index.js +10 -10
- package/packages/grid/src/grid.js +28 -28
- package/packages/icon/index.js +10 -10
- package/packages/icon/src/icon.js +13 -13
- package/packages/index.js +313 -313
- package/packages/input/index.js +30 -30
- package/packages/input/src/Group.jsx +11 -11
- package/packages/input/src/Input.jsx +11 -11
- package/packages/input/src/Password.jsx +11 -11
- package/packages/input/src/Search.jsx +11 -11
- package/packages/input/src/TextArea.jsx +11 -11
- package/packages/input/src/input-quick/components/quick-item.vue +284 -284
- package/packages/input/src/input-quick/components/quick-popover.vue +596 -596
- package/packages/input/src/input-quick/index.vue +137 -137
- package/packages/input-number/index.js +12 -12
- package/packages/input-number/src/InputNumber.jsx +11 -11
- package/packages/keep-cache/KeepCache.js +236 -236
- package/packages/keep-cache/index.css +2 -2
- package/packages/keep-cache/index.js +8 -8
- package/packages/layout/index.js +27 -27
- package/packages/layout/src/Content.jsx +11 -11
- package/packages/layout/src/Footer.jsx +11 -11
- package/packages/layout/src/Header.jsx +11 -11
- package/packages/layout/src/Layout.jsx +11 -11
- package/packages/layout/src/Sider.jsx +11 -11
- package/packages/list/index.js +21 -21
- package/packages/list/src/Item.jsx +11 -11
- package/packages/list/src/ItemMeta.jsx +11 -11
- package/packages/list/src/List.jsx +11 -11
- package/packages/locale-provider/index.js +12 -12
- package/packages/locale-provider/src/LocaleProvider.jsx +11 -11
- package/packages/map/index.js +9 -9
- package/packages/map/src/Map.vue +484 -484
- package/packages/map/src/popup-map.vue +53 -53
- package/packages/mentions/index.js +18 -18
- package/packages/mentions/src/Mentions.jsx +11 -11
- package/packages/mentions/src/Option.jsx +11 -11
- package/packages/menu/index.js +27 -27
- package/packages/menu/src/Divider.jsx +11 -11
- package/packages/menu/src/Item.jsx +11 -11
- package/packages/menu/src/ItemGroup.jsx +11 -11
- package/packages/menu/src/Menu.jsx +11 -11
- package/packages/menu/src/SubMenu.jsx +11 -11
- package/packages/message/index.js +8 -8
- package/packages/modal/index.js +10 -10
- package/packages/modal/src/Modal.js +7 -7
- package/packages/multi-chat/chat/addConference.vue +200 -200
- package/packages/multi-chat/chat/addMembers.vue +411 -411
- package/packages/multi-chat/chat/advancedFilter.vue +372 -372
- package/packages/multi-chat/chat/calling.vue +246 -246
- package/packages/multi-chat/chat/chatFooter.vue +1596 -1596
- package/packages/multi-chat/chat/chatHistory.vue +605 -605
- package/packages/multi-chat/chat/chatMain.vue +1486 -1486
- package/packages/multi-chat/chat/client/index.vue +149 -149
- package/packages/multi-chat/chat/delay.vue +177 -177
- package/packages/multi-chat/chat/evaluate.vue +343 -343
- package/packages/multi-chat/chat/messageRecord.vue +324 -324
- package/packages/multi-chat/chat/mixins/NoData.js +20 -20
- package/packages/multi-chat/chat/mixins/base.js +97 -97
- package/packages/multi-chat/chat/mixins/uniRTCAPI.js +80 -80
- package/packages/multi-chat/chat/mixins/viewerOptions.js +67 -67
- package/packages/multi-chat/chat/quickReply.vue +439 -439
- package/packages/multi-chat/chat/robot/index.vue +312 -312
- package/packages/multi-chat/chat/scrollList.vue +1238 -1238
- package/packages/multi-chat/chat/videoVoiceList.vue +348 -348
- package/packages/multi-chat/chat/voice.vue +431 -431
- package/packages/multi-chat/components/avatar.vue +113 -113
- package/packages/multi-chat/components/chat-tabs-header.vue +251 -251
- package/packages/multi-chat/components/classify-tabs.vue +185 -185
- package/packages/multi-chat/components/empty.vue +24 -24
- package/packages/multi-chat/components/modal-refuse-reason.vue +112 -112
- package/packages/multi-chat/components/modal-sip.vue +160 -160
- package/packages/multi-chat/components/modal-user-transfer.vue +98 -98
- package/packages/multi-chat/components/msg-describe.vue +138 -138
- package/packages/multi-chat/components/msg-picture.vue +68 -68
- package/packages/multi-chat/components/msg-prescription.vue +205 -205
- package/packages/multi-chat/components/read-record.vue +133 -133
- package/packages/multi-chat/components/read-status.vue +34 -34
- package/packages/multi-chat/components/user-status.vue +198 -198
- package/packages/multi-chat/index.js +7 -7
- package/packages/multi-chat/setting/authority/index.vue +156 -156
- package/packages/multi-chat/setting/authority/roleSetting.vue +204 -204
- package/packages/multi-chat/setting/baseInfo/index.vue +1316 -1316
- package/packages/multi-chat/setting/customerService/batchSelect.vue +403 -403
- package/packages/multi-chat/setting/customerService/index.vue +273 -273
- package/packages/multi-chat/setting/event/edit/condition.vue +128 -128
- package/packages/multi-chat/setting/event/edit/index.vue +437 -437
- package/packages/multi-chat/setting/event/edit/notice.vue +129 -129
- package/packages/multi-chat/setting/event/edit/strategy.vue +98 -98
- package/packages/multi-chat/setting/event/index.vue +249 -249
- package/packages/multi-chat/setting/index.vue +269 -269
- package/packages/multi-chat/setting/page.vue +14 -14
- package/packages/multi-chat/setting/sessionList/index.vue +412 -412
- package/packages/multi-chat/setting/sessionList/messageRecord.vue +372 -372
- package/packages/multi-chat/setting/userConfig/index.vue +124 -124
- package/packages/multi-chat/setting/worktime/index.vue +274 -274
- package/packages/multi-chat/store/actions.js +452 -452
- package/packages/multi-chat/store/getters.js +371 -371
- package/packages/multi-chat/store/helper.js +66 -66
- package/packages/multi-chat/store/index.js +50 -50
- package/packages/multi-chat/store/mutation.js +296 -296
- package/packages/multi-chat/store/state.js +117 -117
- package/packages/multi-chat/style/emoji.css +315 -315
- package/packages/multi-chat/style/message.mixin.less +38 -38
- package/packages/multi-chat/utils/chatSock.js +93 -93
- package/packages/multi-chat/utils/compressImage.js +115 -115
- package/packages/multi-chat/utils/emoji.json +68 -68
- package/packages/multi-chat/utils/index.js +259 -259
- package/packages/multi-chat/utils/observer-scroll.js +49 -49
- package/packages/multi-chat/utils/panelsetting.js +48 -48
- package/packages/multi-chat-client/index.js +7 -7
- package/packages/multi-chat-history/index.js +7 -7
- package/packages/multi-chat-record/index.js +7 -7
- package/packages/multi-chat-setting/index.js +7 -7
- package/packages/multi-chat-sip/index.js +6 -6
- package/packages/notification/index.js +8 -8
- package/packages/page-header/index.js +12 -12
- package/packages/page-header/src/PageHeader.jsx +11 -11
- package/packages/pagination/index.js +12 -12
- package/packages/pagination/src/Pagination.jsx +11 -11
- package/packages/popconfirm/index.js +12 -12
- package/packages/popconfirm/src/Popconfirm.jsx +11 -11
- package/packages/popover/index.js +12 -12
- package/packages/popover/src/Popover.jsx +11 -11
- package/packages/progress/index.js +12 -12
- package/packages/progress/src/Progress.jsx +11 -11
- package/packages/radio/index.js +33 -33
- package/packages/radio/src/Group.jsx +11 -11
- package/packages/radio/src/Radio.jsx +11 -11
- package/packages/radio/src/RadioButton.jsx +11 -11
- package/packages/radio/src/RadioImg/index.vue +124 -124
- package/packages/rate/index.js +12 -12
- package/packages/rate/src/Rate.jsx +11 -11
- package/packages/result/index.js +12 -12
- package/packages/result/src/Result.jsx +11 -11
- package/packages/row/index.js +12 -12
- package/packages/row/src/Row.jsx +11 -11
- package/packages/scale-container/index.js +8 -8
- package/packages/scale-container/src/ScaleContainer.vue +197 -194
- package/packages/scale-view/NoData.vue +81 -81
- package/packages/scale-view/answerParse.vue +133 -133
- package/packages/scale-view/customList.vue +801 -801
- package/packages/scale-view/data.js +80 -80
- package/packages/scale-view/evaluateCountdown.vue +155 -155
- package/packages/scale-view/evaluatePage.vue +202 -202
- package/packages/scale-view/formitem/data.js +3991 -3991
- package/packages/scale-view/formitem/index.js +6 -6
- package/packages/scale-view/formitem/r-address.vue +238 -238
- package/packages/scale-view/formitem/r-choice.vue +726 -726
- package/packages/scale-view/formitem/r-input.vue +92 -92
- package/packages/scale-view/formitem/r-prompt.vue +52 -52
- package/packages/scale-view/formitem/r-time.vue +285 -285
- package/packages/scale-view/formitem/r-upload-custom-list.vue +242 -242
- package/packages/scale-view/formitem/r-upload.vue +287 -287
- package/packages/scale-view/formitem/text-over-tooltip/TextOverTooltip.vue +98 -98
- package/packages/scale-view/index.js +17 -17
- package/packages/scale-view/mixin/NoData.js +38 -38
- package/packages/scale-view/mixin/evaluate.js +146 -146
- package/packages/scale-view/mixin/index.js +337 -337
- package/packages/scale-view/mixin/judgeTypes.js +267 -267
- package/packages/scale-view/scaleView.vue +2010 -2010
- package/packages/select/index.js +27 -27
- package/packages/select/src/CustomSelect/index.vue +130 -130
- package/packages/select/src/OptGroup.jsx +11 -11
- package/packages/select/src/Option.jsx +11 -11
- package/packages/select/src/Select/Select.vue +231 -231
- package/packages/select/src/Select/index.js +12 -12
- package/packages/select/src/TableSelect/index.vue +514 -514
- package/packages/select-label/index.js +14 -14
- package/packages/select-label/label-classify.vue +129 -129
- package/packages/select-label/labelFormContent.vue +787 -787
- package/packages/select-label/select-label.vue +581 -581
- package/packages/select-person/index.js +10 -10
- package/packages/select-person/search-tree.vue +373 -373
- package/packages/select-person/select-person.vue +1696 -1696
- package/packages/shortcut-setter/index.js +12 -12
- package/packages/shortcut-setter/src/ShortcutSetter.vue +55 -55
- package/packages/shortcut-setter/src/ShortcutSetterItem.vue +84 -84
- package/packages/shortcut-setter/src/utils/index.js +63 -63
- package/packages/skeleton/index.js +12 -12
- package/packages/skeleton/src/Skeleton.jsx +11 -11
- package/packages/slider/index.js +12 -12
- package/packages/slider/src/Slider.jsx +11 -11
- package/packages/space/index.js +12 -12
- package/packages/space/src/Space.jsx +11 -11
- package/packages/spin/index.js +12 -12
- package/packages/spin/src/Spin.jsx +11 -11
- package/packages/statistic/index.js +18 -18
- package/packages/statistic/src/Countdown.jsx +11 -11
- package/packages/statistic/src/Statistic.jsx +11 -11
- package/packages/steps/index.js +18 -18
- package/packages/steps/src/Step.jsx +11 -11
- package/packages/steps/src/Steps.jsx +11 -11
- package/packages/switch/index.js +12 -12
- package/packages/switch/src/Switch.jsx +11 -11
- package/packages/table-filter/index.js +27 -27
- package/packages/table-filter/src/base-search-com/BaseSearch.vue +2572 -2572
- package/packages/table-filter/src/classification/Classification-com.vue +1756 -1756
- package/packages/table-filter/src/classification/search-class-name.vue +266 -266
- package/packages/table-filter/src/classification/search-professional-model.vue +680 -680
- package/packages/table-filter/src/components/TextOverTooltip.vue +107 -107
- package/packages/table-filter/src/components/age-com/index.vue +205 -205
- package/packages/table-filter/src/components/button-group/ButtonGroup.vue +162 -162
- package/packages/table-filter/src/components/button-icon/button-icon.js +33 -33
- package/packages/table-filter/src/components/button-icon/getBtnIcon.js +34 -34
- package/packages/table-filter/src/components/c-tree-select/tree-select.vue +336 -336
- package/packages/table-filter/src/components/drop-button/drop-button.vue +224 -224
- package/packages/table-filter/src/components/drop-button/head-btn-icon.js +33 -33
- package/packages/table-filter/src/components/drop-view/drop-view.vue +89 -89
- package/packages/table-filter/src/components/multi-select/multi-select.vue +227 -227
- package/packages/table-filter/src/components/out-quick-search/out-quick-search.vue +340 -340
- package/packages/table-filter/src/components/range-age/index.vue +172 -172
- package/packages/table-filter/src/components/search-condition/SearchCondition.vue +1897 -1897
- package/packages/table-filter/src/components/search-condition/fieldTypeList.js +169 -169
- package/packages/table-filter/src/components/search-filter/SearchFilter.vue +278 -278
- package/packages/table-filter/src/components/search-modal/set-classification.vue +310 -310
- package/packages/table-filter/src/components/table-modal/TableModal.vue +473 -463
- package/packages/table-filter/src/const/dataOptions.js +43 -43
- package/packages/table-filter/src/const/index.js +1 -1
- package/packages/table-filter/src/index.vue +584 -584
- package/packages/table-filter/src/mixins/mixins.js +694 -694
- package/packages/table-filter/src/mixins/tableSearchCon.js +128 -128
- package/packages/table-filter/src/mixins/wordBookutils.js +102 -102
- package/packages/table-filter/src/quick-search/QuickSearch.vue +2125 -2125
- package/packages/tabs/index.js +18 -18
- package/packages/tabs/src/TabPane.jsx +11 -11
- package/packages/tabs/src/Tabs.jsx +11 -11
- package/packages/tag/index.js +21 -21
- package/packages/tag/src/CheckableTag.jsx +11 -11
- package/packages/tag/src/Tag.jsx +11 -11
- package/packages/tag/src/TagGroup.vue +621 -621
- package/packages/time-picker/index.js +12 -12
- package/packages/time-picker/src/TimePicker.jsx +11 -11
- package/packages/timeline/index.js +14 -14
- package/packages/timeline/src/Item.jsx +11 -11
- package/packages/timeline/src/Timeline.jsx +11 -11
- package/packages/tooltip/index.js +12 -12
- package/packages/tooltip/src/Tooltip.jsx +11 -11
- package/packages/transfer/index.js +12 -12
- package/packages/transfer/src/Transfer.jsx +11 -11
- package/packages/tree/index.js +18 -18
- package/packages/tree/src/Tree.jsx +11 -11
- package/packages/tree/src/TreeNode.jsx +11 -11
- package/packages/tree-select/index.js +18 -18
- package/packages/tree-select/src/TreeNode.jsx +11 -11
- package/packages/tree-select/src/TreeSelect.jsx +11 -11
- package/packages/upload/chunk-upload/chunk-upload-new.vue +1001 -1001
- package/packages/upload/chunk-upload/vod-chunk-upload.vue +749 -749
- package/packages/upload/chunk-upload/vod-upload-modal.vue +100 -100
- package/packages/upload/index.js +12 -12
- package/packages/upload/src/Upload.jsx +11 -11
- package/packages/verification-code/SlideVerify.vue +306 -306
- package/packages/verification-code/index.js +17 -17
- package/packages/verification-code/verification-code.vue +147 -147
- package/src/component/player-vod/index.vue +57 -57
- package/src/component/player-vod/player.vue +188 -188
- package/src/component/player-vod/video-list.vue +262 -262
- package/src/component/player-vod/video-modal.vue +128 -128
- package/src/component/select-options/index.vue +430 -413
- package/src/component/select-pages/index.vue +95 -95
- package/src/component/svg/index.vue +59 -59
- package/src/core/create.js +6 -6
- package/src/core/event.js +23 -23
- package/src/core/table-methods.js +444 -444
- package/src/directive/flexibleResize.js +151 -151
- package/src/directive/preventReClick.js +12 -12
- package/src/directive/scroll.js +230 -230
- package/src/global/variable.js +2 -2
- package/src/style/normalize.css +424 -424
- package/src/style/style.less +49 -49
- package/src/utils/UniRTCv2.js +626 -626
- package/src/utils/chatFetch.js +61 -61
- package/src/utils/clickoutside.js +75 -75
- package/src/utils/crypto.js +25 -25
- package/src/utils/index.js +81 -81
- package/src/utils/kty-sdk.js +582 -582
- package/src/utils/kty.min-1.0.0.js +14378 -14378
- package/src/utils/sip-device.js +79 -79
- package/src/utils/time-domain.js +193 -193
- package/src/utils/trtc.js +1 -1
- package/src/utils/utils-map.js +484 -484
- package/src/utils/vexutils.js +836 -836
package/es/fabric-chart/index.js
CHANGED
|
@@ -107,17 +107,6 @@ module.exports = String(test) === '[object z]';
|
|
|
107
107
|
|
|
108
108
|
module.exports = require("core-js/modules/es.object.freeze.js");
|
|
109
109
|
|
|
110
|
-
/***/ }),
|
|
111
|
-
|
|
112
|
-
/***/ "0364":
|
|
113
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
114
|
-
|
|
115
|
-
"use strict";
|
|
116
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_184c584a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b4ea");
|
|
117
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_184c584a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_184c584a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
118
|
-
/* unused harmony reexport * */
|
|
119
|
-
|
|
120
|
-
|
|
121
110
|
/***/ }),
|
|
122
111
|
|
|
123
112
|
/***/ "0366":
|
|
@@ -306,7 +295,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
306
295
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
307
296
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
308
297
|
|
|
309
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
298
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=3a1ac827&scoped=true&
|
|
310
299
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({ width: _vm.canvasWidth })},[(_vm.rendercanvas)?_c('fabric-canvas',_vm._b({ref:"canvasEle",attrs:{"templateData":_vm.templateData}},'fabric-canvas',_vm.$attrs,false),[(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),_c('fabric-grid'),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
|
|
311
300
|
var staticRenderFns = []
|
|
312
301
|
|
|
@@ -319,12 +308,12 @@ var objectSpread2 = __webpack_require__("5530");
|
|
|
319
308
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
320
309
|
var create = __webpack_require__("8aef");
|
|
321
310
|
|
|
322
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
323
|
-
var
|
|
324
|
-
var
|
|
311
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=42503925&
|
|
312
|
+
var FabricCanvasvue_type_template_id_42503925_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('canvas',{attrs:{"id":_vm.id}}),_vm._t("default")],2)}
|
|
313
|
+
var FabricCanvasvue_type_template_id_42503925_staticRenderFns = []
|
|
325
314
|
|
|
326
315
|
|
|
327
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=
|
|
316
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=42503925&
|
|
328
317
|
|
|
329
318
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
330
319
|
var toConsumableArray = __webpack_require__("2909");
|
|
@@ -335,6 +324,9 @@ var es_array_map_js_ = __webpack_require__("4391");
|
|
|
335
324
|
// EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
|
|
336
325
|
var web_dom_collections_for_each_js_ = __webpack_require__("13e3");
|
|
337
326
|
|
|
327
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.find.js"
|
|
328
|
+
var es_array_find_js_ = __webpack_require__("0d58");
|
|
329
|
+
|
|
338
330
|
// EXTERNAL MODULE: external "core-js/modules/es.reflect.delete-property.js"
|
|
339
331
|
var es_reflect_delete_property_js_ = __webpack_require__("a32b");
|
|
340
332
|
|
|
@@ -394,7 +386,7 @@ var defaultVaule_data = {
|
|
|
394
386
|
originX: 'center',
|
|
395
387
|
originY: 'center'
|
|
396
388
|
},
|
|
397
|
-
topSpaceHeight:
|
|
389
|
+
topSpaceHeight: 20,
|
|
398
390
|
// templateData.top.spaceHeight
|
|
399
391
|
topSpaceGridNumber: 3,
|
|
400
392
|
// templateData.top.xScalevalue.spaceGridNumber
|
|
@@ -439,6 +431,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
439
431
|
|
|
440
432
|
|
|
441
433
|
|
|
434
|
+
|
|
442
435
|
//
|
|
443
436
|
//
|
|
444
437
|
//
|
|
@@ -508,8 +501,10 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
508
501
|
yCellHeight: _this.yCellHeight,
|
|
509
502
|
table: Object(objectSpread2["a" /* default */])({}, _this.templateData.table),
|
|
510
503
|
spaceHeight: _this.spaceHeight,
|
|
504
|
+
originYTime: _this.originYTime,
|
|
511
505
|
gridYnumberTop: _this.gridYnumberTop,
|
|
512
506
|
yCellHeightTop: _this.yCellHeightTop,
|
|
507
|
+
originYTop: _this.originYTop,
|
|
513
508
|
endYTop: _this.endYTop,
|
|
514
509
|
treeList: _this.treeList,
|
|
515
510
|
xScaleList: _this.xScaleList,
|
|
@@ -540,6 +535,14 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
540
535
|
console.warn(error);
|
|
541
536
|
}
|
|
542
537
|
}
|
|
538
|
+
|
|
539
|
+
this.throttleEvent = vexutils_default.a.throttle(function (event, componentInstance) {
|
|
540
|
+
var _componentInstance$ev = componentInstance.eventStyle,
|
|
541
|
+
eventStyle = _componentInstance$ev === void 0 ? null : _componentInstance$ev,
|
|
542
|
+
_componentInstance$ha = componentInstance.handleMoving,
|
|
543
|
+
handleMoving = _componentInstance$ha === void 0 ? null : _componentInstance$ha;
|
|
544
|
+
eventStyle.evented && (handleMoving === null || handleMoving === void 0 ? void 0 : handleMoving(event));
|
|
545
|
+
}, 50);
|
|
543
546
|
},
|
|
544
547
|
computed: {
|
|
545
548
|
canvasWidth: function canvasWidth() {
|
|
@@ -585,12 +588,8 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
585
588
|
return originX + residue;
|
|
586
589
|
},
|
|
587
590
|
originY: function originY() {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
// 顶部列表高度 网格不需要的高度放到顶部,因为底部不一定存在列表
|
|
591
|
-
var topHeight = this.endYTop;
|
|
592
|
-
var residue = (this.endY - topHeight) % this.gridYNumber;
|
|
593
|
-
return topHeight + residue + (((_this$templateData$to9 = this.templateData.top) === null || _this$templateData$to9 === void 0 ? void 0 : _this$templateData$to9.spaceHeight) || defaultVaule.topSpaceHeight);
|
|
591
|
+
// 主网格起始高度值
|
|
592
|
+
return this.spaceHeight + (this.endYTop - this.originYTop);
|
|
594
593
|
},
|
|
595
594
|
endX: function endX() {
|
|
596
595
|
var _this$templateData$ri, _this$templateData$ri2;
|
|
@@ -614,21 +613,32 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
614
613
|
return (this.endY - this.originY) / this.gridYNumber;
|
|
615
614
|
},
|
|
616
615
|
spaceHeight: function spaceHeight() {
|
|
617
|
-
var _this$templateData$
|
|
616
|
+
var _this$templateData$to9;
|
|
618
617
|
|
|
619
618
|
// 头部表格底部空白位置的高,用于显示x轴时间点
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
619
|
+
return ((_this$templateData$to9 = this.templateData.top) === null || _this$templateData$to9 === void 0 ? void 0 : _this$templateData$to9.spaceHeight) || defaultVaule.topSpaceHeight;
|
|
620
|
+
},
|
|
621
|
+
originYTime: function originYTime() {
|
|
622
|
+
return this.originYTop > 0 ? 0 : this.endYTop;
|
|
623
623
|
},
|
|
624
624
|
yCellHeightTop: function yCellHeightTop() {
|
|
625
|
-
var _this$templateData$
|
|
625
|
+
var _this$templateData$to10;
|
|
626
626
|
|
|
627
627
|
// 头部表格垂直方向网格高度
|
|
628
|
-
return ((_this$templateData$
|
|
628
|
+
return ((_this$templateData$to10 = this.templateData.top) === null || _this$templateData$to10 === void 0 ? void 0 : _this$templateData$to10.treeTableminCellHeight) || 20;
|
|
629
629
|
},
|
|
630
630
|
endYTop: function endYTop() {
|
|
631
|
-
|
|
631
|
+
var endYTop = this.gridYnumberTop * this.yCellHeightTop;
|
|
632
|
+
return this.originYTop + endYTop;
|
|
633
|
+
},
|
|
634
|
+
originYTop: function originYTop() {
|
|
635
|
+
var _this$templateData$to11;
|
|
636
|
+
|
|
637
|
+
var _ref = ((_this$templateData$to11 = this.templateData.top) === null || _this$templateData$to11 === void 0 ? void 0 : _this$templateData$to11.xScalevalue) || {},
|
|
638
|
+
_ref$layout = _ref.layout,
|
|
639
|
+
layout = _ref$layout === void 0 ? 'center' : _ref$layout;
|
|
640
|
+
|
|
641
|
+
return layout === 'center' ? 0 : this.spaceHeight;
|
|
632
642
|
},
|
|
633
643
|
// 转换为时间戳的x轴时间列表
|
|
634
644
|
xScaleList: function xScaleList() {
|
|
@@ -695,6 +705,21 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
695
705
|
connect: false,
|
|
696
706
|
lockMovementX: false
|
|
697
707
|
};
|
|
708
|
+
},
|
|
709
|
+
fabricLinesInstances: function fabricLinesInstances() {
|
|
710
|
+
var _this$$slots$default$;
|
|
711
|
+
|
|
712
|
+
return (_this$$slots$default$ = this.$slots.default.find(function (VNode) {
|
|
713
|
+
return /lines/.test(VNode.tag);
|
|
714
|
+
})) === null || _this$$slots$default$ === void 0 ? void 0 : _this$$slots$default$.componentInstance;
|
|
715
|
+
},
|
|
716
|
+
fabricPolylinesInstances: function fabricPolylinesInstances() {
|
|
717
|
+
var _this$$slots$default$2;
|
|
718
|
+
|
|
719
|
+
// return this.$slots.default.filter(VNode => /(polylines)|(lines)/.test(VNode.tag));
|
|
720
|
+
return (_this$$slots$default$2 = this.$slots.default.find(function (VNode) {
|
|
721
|
+
return /polylines/.test(VNode.tag);
|
|
722
|
+
})) === null || _this$$slots$default$2 === void 0 ? void 0 : _this$$slots$default$2.componentInstance;
|
|
698
723
|
}
|
|
699
724
|
},
|
|
700
725
|
mounted: function mounted() {
|
|
@@ -702,7 +727,9 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
702
727
|
},
|
|
703
728
|
methods: {
|
|
704
729
|
init: function init() {
|
|
705
|
-
var _this$templateData$to14,
|
|
730
|
+
var _this$templateData$to14,
|
|
731
|
+
_this$templateData$to15,
|
|
732
|
+
_this3 = this;
|
|
706
733
|
|
|
707
734
|
this.canvas = new this.fabric.Canvas(this.id, Object(objectSpread2["a" /* default */])({
|
|
708
735
|
width: this.templateData.canvasWidth,
|
|
@@ -713,6 +740,34 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
713
740
|
this.getGridYnumberTop(this.templateData.top.list);
|
|
714
741
|
this.treeList = this.setTreeStyle(vexutils_default.a.clone(this.templateData.top.list, true));
|
|
715
742
|
}
|
|
743
|
+
|
|
744
|
+
this.canvas.on('mouse:move', function (event) {
|
|
745
|
+
var target = event.target,
|
|
746
|
+
pointer = event.pointer;
|
|
747
|
+
var x = pointer.x,
|
|
748
|
+
y = pointer.y;
|
|
749
|
+
var originX = _this3.originX,
|
|
750
|
+
endX = _this3.endX,
|
|
751
|
+
originY = _this3.originY,
|
|
752
|
+
endY = _this3.endY,
|
|
753
|
+
originYTop = _this3.originYTop,
|
|
754
|
+
endYTop = _this3.endYTop;
|
|
755
|
+
|
|
756
|
+
if (x > originX && x < endX && y > originYTop && y < endYTop && !target) {
|
|
757
|
+
var _this3$throttleEvent;
|
|
758
|
+
|
|
759
|
+
(_this3$throttleEvent = _this3.throttleEvent) === null || _this3$throttleEvent === void 0 ? void 0 : _this3$throttleEvent.call(_this3, event, _this3.fabricLinesInstances);
|
|
760
|
+
_this3.fabricPolylinesInstances.isDropVisible = false;
|
|
761
|
+
} else if (x > originX && x < endX && y > originY && y < endY && !target) {
|
|
762
|
+
var _this3$throttleEvent2;
|
|
763
|
+
|
|
764
|
+
(_this3$throttleEvent2 = _this3.throttleEvent) === null || _this3$throttleEvent2 === void 0 ? void 0 : _this3$throttleEvent2.call(_this3, event, _this3.fabricPolylinesInstances);
|
|
765
|
+
_this3.fabricLinesInstances.isDropVisible = false;
|
|
766
|
+
} else if (x <= originX || x >= endX || y <= originYTop || y >= endY) {
|
|
767
|
+
_this3.fabricPolylinesInstances.isDropVisible = false;
|
|
768
|
+
_this3.fabricLinesInstances.isDropVisible = false;
|
|
769
|
+
}
|
|
770
|
+
});
|
|
716
771
|
},
|
|
717
772
|
getGridYnumberTop: function getGridYnumberTop(list) {
|
|
718
773
|
// 头部表格垂直方向网格总数
|
|
@@ -762,7 +817,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
762
817
|
Object.assign(obj, {
|
|
763
818
|
title: node.title || '',
|
|
764
819
|
left: levelCol * treeTableminCellWidth,
|
|
765
|
-
top: this.levelRow * treeTableminCellHeight,
|
|
820
|
+
top: this.levelRow * treeTableminCellHeight + this.originYTop,
|
|
766
821
|
origin: node.origin
|
|
767
822
|
});
|
|
768
823
|
this.levelRow++;
|
|
@@ -828,8 +883,8 @@ var componentNormalizer = __webpack_require__("2877");
|
|
|
828
883
|
|
|
829
884
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
830
885
|
fabric_chart_FabricCanvasvue_type_script_lang_js_,
|
|
831
|
-
|
|
832
|
-
|
|
886
|
+
FabricCanvasvue_type_template_id_42503925_render,
|
|
887
|
+
FabricCanvasvue_type_template_id_42503925_staticRenderFns,
|
|
833
888
|
false,
|
|
834
889
|
null,
|
|
835
890
|
null,
|
|
@@ -838,12 +893,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
838
893
|
)
|
|
839
894
|
|
|
840
895
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
841
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
842
|
-
var
|
|
843
|
-
var
|
|
896
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=03baa082&
|
|
897
|
+
var FabricPolylinesvue_type_template_id_03baa082_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
898
|
+
var FabricPolylinesvue_type_template_id_03baa082_staticRenderFns = []
|
|
844
899
|
|
|
845
900
|
|
|
846
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=
|
|
901
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=03baa082&
|
|
847
902
|
|
|
848
903
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
849
904
|
var asyncToGenerator = __webpack_require__("1da1");
|
|
@@ -863,9 +918,6 @@ var es_array_includes_js_ = __webpack_require__("85f7");
|
|
|
863
918
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes.js"
|
|
864
919
|
var es_string_includes_js_ = __webpack_require__("fd22");
|
|
865
920
|
|
|
866
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.find.js"
|
|
867
|
-
var es_array_find_js_ = __webpack_require__("0d58");
|
|
868
|
-
|
|
869
921
|
// EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
|
|
870
922
|
var es_string_replace_js_ = __webpack_require__("6378");
|
|
871
923
|
|
|
@@ -1382,7 +1434,29 @@ var type_isObject = function isObject(obj) {
|
|
|
1382
1434
|
/* harmony default export */ var eventCommon = ({
|
|
1383
1435
|
name: 'eventCommon',
|
|
1384
1436
|
data: function data() {
|
|
1385
|
-
return {
|
|
1437
|
+
return {
|
|
1438
|
+
dropPointer: {
|
|
1439
|
+
x: 0,
|
|
1440
|
+
y: 0
|
|
1441
|
+
},
|
|
1442
|
+
dropTimer: null
|
|
1443
|
+
};
|
|
1444
|
+
},
|
|
1445
|
+
watch: {
|
|
1446
|
+
dropPointer: {
|
|
1447
|
+
handler: function handler(value) {
|
|
1448
|
+
var _this = this;
|
|
1449
|
+
|
|
1450
|
+
if (value) {
|
|
1451
|
+
this.isDropVisible = true;
|
|
1452
|
+
clearTimeout(this.dropTimer);
|
|
1453
|
+
this.dropTimer = setTimeout(function () {
|
|
1454
|
+
_this.isDropVisible = false;
|
|
1455
|
+
}, 3000);
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
deep: true
|
|
1459
|
+
}
|
|
1386
1460
|
},
|
|
1387
1461
|
mounted: function mounted() {
|
|
1388
1462
|
if (this.eventStyle.evented) {
|
|
@@ -1391,6 +1465,23 @@ var type_isObject = function isObject(obj) {
|
|
|
1391
1465
|
}
|
|
1392
1466
|
},
|
|
1393
1467
|
methods: {
|
|
1468
|
+
movingShowPopup: function movingShowPopup(movingPopupContentList) {
|
|
1469
|
+
var _this$dropPointer = this.dropPointer,
|
|
1470
|
+
x = _this$dropPointer.x,
|
|
1471
|
+
y = _this$dropPointer.y;
|
|
1472
|
+
var yCellHeightTop = this.propItems.yCellHeightTop;
|
|
1473
|
+
this.dropPos = {
|
|
1474
|
+
left: x,
|
|
1475
|
+
top: y,
|
|
1476
|
+
margin: {
|
|
1477
|
+
top: yCellHeightTop / 2
|
|
1478
|
+
}
|
|
1479
|
+
};
|
|
1480
|
+
this.dropVal = {
|
|
1481
|
+
title: '',
|
|
1482
|
+
list: movingPopupContentList
|
|
1483
|
+
};
|
|
1484
|
+
},
|
|
1394
1485
|
// 折线点移动限制 目前仅限制不能移动出画布
|
|
1395
1486
|
pointMoveLimit: function pointMoveLimit(point) {
|
|
1396
1487
|
var _point$prevPoint, _point$nextPoint;
|
|
@@ -1473,7 +1564,7 @@ var type_isObject = function isObject(obj) {
|
|
|
1473
1564
|
}
|
|
1474
1565
|
}
|
|
1475
1566
|
});
|
|
1476
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1567
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
|
|
1477
1568
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-mouse-right-menu-popup c-animation-in",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-mouse-right-menu"},_vm._l((_vm.nodeList),function(item,index){return _c('div',{key:index,staticClass:"c-mouse-menu-item",on:{"click":function($event){return _vm.handleNodeClick(item)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0)])}
|
|
1478
1569
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1479
1570
|
|
|
@@ -1581,7 +1672,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1581
1672
|
)
|
|
1582
1673
|
|
|
1583
1674
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1584
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1675
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
|
|
1585
1676
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-drop-popup",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-drop-popup-list"},[_c('span',[_vm._v(_vm._s(_vm.val.title))]),_vm._l((_vm.val.list),function(item){return _c('span',{key:item.id},[_vm._v(" "+_vm._s(((item.name) + ": " + (item.value)))+" ")])})],2)])}
|
|
1586
1677
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1587
1678
|
|
|
@@ -1722,11 +1813,11 @@ var DropPopup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1722
1813
|
|
|
1723
1814
|
|
|
1724
1815
|
|
|
1725
|
-
/**
|
|
1726
|
-
* @description: 递归遍历节点,设置颜色属性
|
|
1727
|
-
* @param {fabric.Object[]} pointArr
|
|
1728
|
-
* @param {string}} color
|
|
1729
|
-
* @return {*}
|
|
1816
|
+
/**
|
|
1817
|
+
* @description: 递归遍历节点,设置颜色属性
|
|
1818
|
+
* @param {fabric.Object[]} pointArr
|
|
1819
|
+
* @param {string}} color
|
|
1820
|
+
* @return {*}
|
|
1730
1821
|
*/
|
|
1731
1822
|
|
|
1732
1823
|
function resetPointColor(pointArr, color) {
|
|
@@ -1915,6 +2006,24 @@ var rightClickNodeConnect = [{
|
|
|
1915
2006
|
_this3.isSelectArea && _this3.createSelectArea(event, selectAreaOrigin);
|
|
1916
2007
|
});
|
|
1917
2008
|
},
|
|
2009
|
+
handleMoving: function handleMoving(event) {
|
|
2010
|
+
var pointer = event.pointer;
|
|
2011
|
+
var x = pointer.x,
|
|
2012
|
+
y = pointer.y;
|
|
2013
|
+
this.dropPointer = Object(objectSpread2["a" /* default */])({}, pointer);
|
|
2014
|
+
var left = this.getYValue('left', y);
|
|
2015
|
+
var right = this.getYValue('right', y);
|
|
2016
|
+
var movingPopupContentList = [{
|
|
2017
|
+
id: '1',
|
|
2018
|
+
name: '时间',
|
|
2019
|
+
value: this.getXValue(x)
|
|
2020
|
+
}, {
|
|
2021
|
+
id: '2',
|
|
2022
|
+
name: '值',
|
|
2023
|
+
value: "".concat(this.formatValue('left', left), " / ").concat(this.formatValue('right', right), "\u2103")
|
|
2024
|
+
}];
|
|
2025
|
+
this.movingShowPopup(movingPopupContentList);
|
|
2026
|
+
},
|
|
1918
2027
|
// 获取选区内包含的节点
|
|
1919
2028
|
getAreaPonits: function getAreaPonits(points) {
|
|
1920
2029
|
var _this4 = this;
|
|
@@ -2315,13 +2424,13 @@ var rightClickNodeConnect = [{
|
|
|
2315
2424
|
|
|
2316
2425
|
},
|
|
2317
2426
|
|
|
2318
|
-
/**
|
|
2319
|
-
* 绘制一条折线
|
|
2320
|
-
* @param {polyline} 折线属性
|
|
2321
|
-
* @param {polyline.type} 折线点形状 circle: 圆 | triangle: 三角
|
|
2322
|
-
* @param {polyline.pointAttr} 参数 fill: 填充色 | stroke: 描边色 | strokeWidth: 宽度 | radius: 半径 | width: 宽度 | height: 高度
|
|
2323
|
-
* @param {polyline.list} 折线点坐标数组
|
|
2324
|
-
* @param {polylineIndex} 当前折线 index
|
|
2427
|
+
/**
|
|
2428
|
+
* 绘制一条折线
|
|
2429
|
+
* @param {polyline} 折线属性
|
|
2430
|
+
* @param {polyline.type} 折线点形状 circle: 圆 | triangle: 三角
|
|
2431
|
+
* @param {polyline.pointAttr} 参数 fill: 填充色 | stroke: 描边色 | strokeWidth: 宽度 | radius: 半径 | width: 宽度 | height: 高度
|
|
2432
|
+
* @param {polyline.list} 折线点坐标数组
|
|
2433
|
+
* @param {polylineIndex} 当前折线 index
|
|
2325
2434
|
*/
|
|
2326
2435
|
drawPolyline: function drawPolyline(polyline, polylineIndex, polylineType, polylineTypeId) {
|
|
2327
2436
|
var _this9 = this;
|
|
@@ -2459,12 +2568,12 @@ var rightClickNodeConnect = [{
|
|
|
2459
2568
|
return this.propItems.endY - yScaleCell * yCellUnit;
|
|
2460
2569
|
},
|
|
2461
2570
|
|
|
2462
|
-
/**
|
|
2463
|
-
* 绘制折线点
|
|
2464
|
-
* @param {left, top} 折线点坐标
|
|
2465
|
-
* @param {line1, line2} 与折线点关联的线
|
|
2466
|
-
* @param {type} 折线点类型
|
|
2467
|
-
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.pointAttr
|
|
2571
|
+
/**
|
|
2572
|
+
* 绘制折线点
|
|
2573
|
+
* @param {left, top} 折线点坐标
|
|
2574
|
+
* @param {line1, line2} 与折线点关联的线
|
|
2575
|
+
* @param {type} 折线点类型
|
|
2576
|
+
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.pointAttr
|
|
2468
2577
|
*/
|
|
2469
2578
|
drawPoint: function drawPoint(left, top, line1, line2, type, others, isInit) {
|
|
2470
2579
|
var _this10 = this;
|
|
@@ -2760,10 +2869,10 @@ var rightClickNodeConnect = [{
|
|
|
2760
2869
|
this.setLinePatch(point);
|
|
2761
2870
|
},
|
|
2762
2871
|
|
|
2763
|
-
/**
|
|
2764
|
-
* @description: 拖动批量新增节点
|
|
2765
|
-
* @param {*} point 拖动的最后一个节点
|
|
2766
|
-
* @return {*}
|
|
2872
|
+
/**
|
|
2873
|
+
* @description: 拖动批量新增节点
|
|
2874
|
+
* @param {*} point 拖动的最后一个节点
|
|
2875
|
+
* @return {*}
|
|
2767
2876
|
*/
|
|
2768
2877
|
addPoint: function addPoint(point) {
|
|
2769
2878
|
var left = point.left,
|
|
@@ -3003,10 +3112,10 @@ var rightClickNodeConnect = [{
|
|
|
3003
3112
|
return y;
|
|
3004
3113
|
},
|
|
3005
3114
|
|
|
3006
|
-
/**
|
|
3007
|
-
* 绘制折线点
|
|
3008
|
-
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
3009
|
-
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
3115
|
+
/**
|
|
3116
|
+
* 绘制折线点
|
|
3117
|
+
* @param {lines} 线坐标 [x1, y1, x2, y2]
|
|
3118
|
+
* @param {others} 参数 polylineIndex | pointIndex | ...polyline.lineAttr
|
|
3010
3119
|
*/
|
|
3011
3120
|
drawLine: function drawLine(lines, others) {
|
|
3012
3121
|
var lineId = "".concat(others.lineIndex, "_").concat(others.polylineIndex, "_polylineLine_").concat(new Date().getTime());
|
|
@@ -3019,6 +3128,22 @@ var rightClickNodeConnect = [{
|
|
|
3019
3128
|
}, others));
|
|
3020
3129
|
return line;
|
|
3021
3130
|
},
|
|
3131
|
+
formatValue: function formatValue(position, y) {
|
|
3132
|
+
if (position == 'right') {
|
|
3133
|
+
if (y.toString().includes('.')) {
|
|
3134
|
+
var _y$toString$split = y.toString().split('.'),
|
|
3135
|
+
_y$toString$split2 = Object(slicedToArray["a" /* default */])(_y$toString$split, 2),
|
|
3136
|
+
m = _y$toString$split2[0],
|
|
3137
|
+
n = _y$toString$split2[1];
|
|
3138
|
+
|
|
3139
|
+
return parseFloat("".concat(m, ".").concat(n.slice(0, 1))) * 10 / 10;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
return y;
|
|
3143
|
+
} else {
|
|
3144
|
+
return Math.round(y);
|
|
3145
|
+
}
|
|
3146
|
+
},
|
|
3022
3147
|
showDrapPopup: function showDrapPopup(point) {
|
|
3023
3148
|
this.isDropVisible = true;
|
|
3024
3149
|
this.dropPos = {
|
|
@@ -3034,23 +3159,6 @@ var rightClickNodeConnect = [{
|
|
|
3034
3159
|
y = _this$getValue4.y,
|
|
3035
3160
|
data = _this$getValue4.data;
|
|
3036
3161
|
|
|
3037
|
-
var getY = function getY(y) {
|
|
3038
|
-
if ((data === null || data === void 0 ? void 0 : data.position) == 'right') {
|
|
3039
|
-
if (y.toString().includes('.')) {
|
|
3040
|
-
var _y$toString$split = y.toString().split('.'),
|
|
3041
|
-
_y$toString$split2 = Object(slicedToArray["a" /* default */])(_y$toString$split, 2),
|
|
3042
|
-
m = _y$toString$split2[0],
|
|
3043
|
-
n = _y$toString$split2[1];
|
|
3044
|
-
|
|
3045
|
-
return parseFloat("".concat(m, ".").concat(n.slice(0, 1))) * 10 / 10;
|
|
3046
|
-
}
|
|
3047
|
-
|
|
3048
|
-
return y;
|
|
3049
|
-
} else {
|
|
3050
|
-
return Math.round(y);
|
|
3051
|
-
}
|
|
3052
|
-
};
|
|
3053
|
-
|
|
3054
3162
|
this.dropVal = {
|
|
3055
3163
|
title: data.title,
|
|
3056
3164
|
list: [{
|
|
@@ -3060,7 +3168,7 @@ var rightClickNodeConnect = [{
|
|
|
3060
3168
|
}, {
|
|
3061
3169
|
id: '22',
|
|
3062
3170
|
name: '值',
|
|
3063
|
-
value:
|
|
3171
|
+
value: this.formatValue(data.position, y)
|
|
3064
3172
|
}]
|
|
3065
3173
|
};
|
|
3066
3174
|
},
|
|
@@ -3299,8 +3407,8 @@ var rightClickNodeConnect = [{
|
|
|
3299
3407
|
|
|
3300
3408
|
var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
3301
3409
|
fabric_chart_FabricPolylinesvue_type_script_lang_js_,
|
|
3302
|
-
|
|
3303
|
-
|
|
3410
|
+
FabricPolylinesvue_type_template_id_03baa082_render,
|
|
3411
|
+
FabricPolylinesvue_type_template_id_03baa082_staticRenderFns,
|
|
3304
3412
|
false,
|
|
3305
3413
|
null,
|
|
3306
3414
|
null,
|
|
@@ -3322,11 +3430,21 @@ var FabricPolylines_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3322
3430
|
},
|
|
3323
3431
|
methods: {
|
|
3324
3432
|
init: function init() {
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3433
|
+
var _this$propItems = this.propItems,
|
|
3434
|
+
originY = _this$propItems.originY,
|
|
3435
|
+
endY = _this$propItems.endY,
|
|
3436
|
+
gridYNumber = _this$propItems.gridYNumber,
|
|
3437
|
+
yCellHeight = _this$propItems.yCellHeight,
|
|
3438
|
+
endYTop = _this$propItems.endYTop,
|
|
3439
|
+
gridYnumberTop = _this$propItems.gridYnumberTop,
|
|
3440
|
+
yCellHeightTop = _this$propItems.yCellHeightTop,
|
|
3441
|
+
type = _this$propItems.type,
|
|
3442
|
+
originYTop = _this$propItems.originYTop; // 主表格
|
|
3443
|
+
|
|
3444
|
+
this.createGrid(originY, endY, gridYNumber, yCellHeight); // 上方表格
|
|
3445
|
+
|
|
3446
|
+
if (!type) {
|
|
3447
|
+
this.createGrid(originYTop, endYTop, gridYnumberTop, yCellHeightTop);
|
|
3330
3448
|
}
|
|
3331
3449
|
},
|
|
3332
3450
|
createGrid: function createGrid(originY, endY, gridYNumber, yCellHeight) {
|
|
@@ -3396,12 +3514,12 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3396
3514
|
)
|
|
3397
3515
|
|
|
3398
3516
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
3399
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3400
|
-
var
|
|
3401
|
-
var
|
|
3517
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=5e213786&
|
|
3518
|
+
var FabricTextGroupvue_type_template_id_5e213786_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
3519
|
+
var FabricTextGroupvue_type_template_id_5e213786_staticRenderFns = []
|
|
3402
3520
|
|
|
3403
3521
|
|
|
3404
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
3522
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=5e213786&
|
|
3405
3523
|
|
|
3406
3524
|
// EXTERNAL MODULE: external "core-js/modules/es.array.sort.js"
|
|
3407
3525
|
var es_array_sort_js_ = __webpack_require__("4c07");
|
|
@@ -3629,11 +3747,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3629
3747
|
yCellHeightTop = _this$propItems2.yCellHeightTop,
|
|
3630
3748
|
topTotal = _this$propItems2.topTotal,
|
|
3631
3749
|
endYTop = _this$propItems2.endYTop,
|
|
3632
|
-
spaceHeight = _this$propItems2.spaceHeight
|
|
3750
|
+
spaceHeight = _this$propItems2.spaceHeight,
|
|
3751
|
+
originYTop = _this$propItems2.originYTop;
|
|
3633
3752
|
var textList = [];
|
|
3634
3753
|
var left = endX + (canvasWidth - endX) / 2;
|
|
3635
3754
|
topTotalList.forEach(function (v, i) {
|
|
3636
|
-
var top = i * yCellHeightTop + yCellHeightTop / 2;
|
|
3755
|
+
var top = i * yCellHeightTop + yCellHeightTop / 2 + originYTop;
|
|
3637
3756
|
var text = v ? new _this5.fabric.Text(String(v), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), topTotal.style || defaultVaule.textStyle), {}, {
|
|
3638
3757
|
left: left,
|
|
3639
3758
|
top: top,
|
|
@@ -3650,7 +3769,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3650
3769
|
text: String(topTotal.title)
|
|
3651
3770
|
}, topTotal.style || defaultVaule.textStyle), {
|
|
3652
3771
|
left: endX,
|
|
3653
|
-
top: endYTop
|
|
3772
|
+
top: originYTop > 0 ? 0 : endYTop
|
|
3654
3773
|
});
|
|
3655
3774
|
|
|
3656
3775
|
(_this$canvas = this.canvas).add.apply(_this$canvas, textList.concat([title]));
|
|
@@ -3739,57 +3858,110 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3739
3858
|
(_this$canvas2 = this.canvas).add.apply(_this$canvas2, textList);
|
|
3740
3859
|
},
|
|
3741
3860
|
drawTextDataGroupList: function drawTextDataGroupList(list) {
|
|
3742
|
-
var _this8 = this
|
|
3743
|
-
_this$canvas3;
|
|
3861
|
+
var _this8 = this;
|
|
3744
3862
|
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
originX = _this$propItems3.originX,
|
|
3748
|
-
originY = _this$propItems3.originY;
|
|
3749
|
-
var top = originY + 10;
|
|
3750
|
-
list.forEach(function (item, index) {
|
|
3751
|
-
var _item$titleStyle;
|
|
3863
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
3864
|
+
var _this8$canvas;
|
|
3752
3865
|
|
|
3753
|
-
var
|
|
3754
|
-
var left = originX - marginLeft; // 防止最左边的数据与名称显示重合了
|
|
3866
|
+
var textList, _this8$propItems, originX, originY, top, index, len, _item$titleStyle, item, marginLeft, left, title, _ref2, _ref2$icon, _icon, dataList, i, _len, v, icon, text;
|
|
3755
3867
|
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3868
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3869
|
+
while (1) {
|
|
3870
|
+
switch (_context.prev = _context.next) {
|
|
3871
|
+
case 0:
|
|
3872
|
+
textList = [];
|
|
3873
|
+
_this8$propItems = _this8.propItems, originX = _this8$propItems.originX, originY = _this8$propItems.originY;
|
|
3874
|
+
top = originY + 10;
|
|
3875
|
+
index = 0, len = list.length;
|
|
3759
3876
|
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
id: "".concat(index, "_other_").concat(Date.now())
|
|
3766
|
-
}));
|
|
3767
|
-
textList.push(title);
|
|
3768
|
-
item.dataList.forEach(function (v, i) {
|
|
3769
|
-
if (_this8.isLimit(v.time)) {
|
|
3770
|
-
var text = new _this8.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
3771
|
-
originX: 'center',
|
|
3772
|
-
originY: 'center',
|
|
3773
|
-
left: _this8.cumputedX(v.time),
|
|
3774
|
-
top: top,
|
|
3775
|
-
lockMovementX: true,
|
|
3776
|
-
lockMovementY: true,
|
|
3777
|
-
dataIndex: index,
|
|
3778
|
-
index: i,
|
|
3779
|
-
type: 'list',
|
|
3780
|
-
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
|
|
3781
|
-
name: v.value
|
|
3782
|
-
}, _this8.eventStyle));
|
|
3783
|
-
text.hasControls = text.hasBorders = false;
|
|
3877
|
+
case 4:
|
|
3878
|
+
if (!(index < len)) {
|
|
3879
|
+
_context.next = 29;
|
|
3880
|
+
break;
|
|
3881
|
+
}
|
|
3784
3882
|
|
|
3785
|
-
|
|
3883
|
+
item = list[index];
|
|
3884
|
+
marginLeft = ((_item$titleStyle = item.titleStyle) === null || _item$titleStyle === void 0 ? void 0 : _item$titleStyle.marginLeft) || 8;
|
|
3885
|
+
left = originX - marginLeft; // 防止最左边的数据与名称显示重合了
|
|
3786
3886
|
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3887
|
+
if (list[index - 1]) {
|
|
3888
|
+
top += item.lineHeight || 15;
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
title = new _this8.fabric.Text(String(item.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), item.titleStyle || {}), {}, {
|
|
3892
|
+
originX: 'right',
|
|
3893
|
+
originY: 'center',
|
|
3894
|
+
left: left,
|
|
3895
|
+
top: top,
|
|
3896
|
+
id: "".concat(index, "_other_").concat(Date.now())
|
|
3897
|
+
}));
|
|
3898
|
+
textList.push(title);
|
|
3899
|
+
_ref2 = item || {}, _ref2$icon = _ref2.icon, _icon = _ref2$icon === void 0 ? {
|
|
3900
|
+
type: 'circle'
|
|
3901
|
+
} : _ref2$icon, dataList = _ref2.dataList;
|
|
3902
|
+
i = 0, _len = dataList.length;
|
|
3903
|
+
|
|
3904
|
+
case 13:
|
|
3905
|
+
if (!(i < _len)) {
|
|
3906
|
+
_context.next = 26;
|
|
3907
|
+
break;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
v = dataList[i];
|
|
3791
3911
|
|
|
3792
|
-
|
|
3912
|
+
if (!_this8.isLimit(v.time)) {
|
|
3913
|
+
_context.next = 23;
|
|
3914
|
+
break;
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3917
|
+
_context.next = 18;
|
|
3918
|
+
return _this8.createPoint(_icon.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
3919
|
+
left: _this8.cumputedX(v.time),
|
|
3920
|
+
top: top,
|
|
3921
|
+
originY: 'center'
|
|
3922
|
+
}, _icon.style || {}), {}, {
|
|
3923
|
+
lockMovementX: true,
|
|
3924
|
+
lockMovementY: true
|
|
3925
|
+
}, _this8.eventStyle));
|
|
3926
|
+
|
|
3927
|
+
case 18:
|
|
3928
|
+
icon = _context.sent;
|
|
3929
|
+
text = new _this8.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), item.style), {}, {
|
|
3930
|
+
originY: 'center',
|
|
3931
|
+
left: icon.left + icon.width,
|
|
3932
|
+
top: top,
|
|
3933
|
+
dataIndex: index,
|
|
3934
|
+
index: i,
|
|
3935
|
+
type: 'list',
|
|
3936
|
+
id: "".concat(index, "_").concat(i, "_other_").concat(Date.now()),
|
|
3937
|
+
name: v.value
|
|
3938
|
+
}));
|
|
3939
|
+
icon.hasControls = icon.hasBorders = false;
|
|
3940
|
+
|
|
3941
|
+
_this8.setPopup(icon);
|
|
3942
|
+
|
|
3943
|
+
textList.push(icon, text);
|
|
3944
|
+
|
|
3945
|
+
case 23:
|
|
3946
|
+
i++;
|
|
3947
|
+
_context.next = 13;
|
|
3948
|
+
break;
|
|
3949
|
+
|
|
3950
|
+
case 26:
|
|
3951
|
+
index++;
|
|
3952
|
+
_context.next = 4;
|
|
3953
|
+
break;
|
|
3954
|
+
|
|
3955
|
+
case 29:
|
|
3956
|
+
(_this8$canvas = _this8.canvas).add.apply(_this8$canvas, textList);
|
|
3957
|
+
|
|
3958
|
+
case 30:
|
|
3959
|
+
case "end":
|
|
3960
|
+
return _context.stop();
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
}, _callee);
|
|
3964
|
+
}))();
|
|
3793
3965
|
},
|
|
3794
3966
|
setPopup: function setPopup(point) {
|
|
3795
3967
|
var _this9 = this;
|
|
@@ -3830,12 +4002,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3830
4002
|
return;
|
|
3831
4003
|
}
|
|
3832
4004
|
|
|
3833
|
-
var _this$
|
|
3834
|
-
endX = _this$
|
|
3835
|
-
originX = _this$
|
|
3836
|
-
endY = _this$
|
|
3837
|
-
canvasHeight = _this$
|
|
3838
|
-
topTotal = _this$
|
|
4005
|
+
var _this$propItems3 = this.propItems,
|
|
4006
|
+
endX = _this$propItems3.endX,
|
|
4007
|
+
originX = _this$propItems3.originX,
|
|
4008
|
+
endY = _this$propItems3.endY,
|
|
4009
|
+
canvasHeight = _this$propItems3.canvasHeight,
|
|
4010
|
+
topTotal = _this$propItems3.topTotal;
|
|
3839
4011
|
topTotal.width && this.canvas.add(this.drawLine([endX, endY - 1, endX, canvasHeight], Object(objectSpread2["a" /* default */])({}, this.defaultRectStyle))); // const textList = [];
|
|
3840
4012
|
|
|
3841
4013
|
var marginLeft = this.templateData.left.leftYScalevalue.spaceGridNumber || defaultVaule.spaceGridNumber;
|
|
@@ -3897,12 +4069,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3897
4069
|
|
|
3898
4070
|
if (_this11.isLimit(item[0])) {
|
|
3899
4071
|
item[1].forEach( /*#__PURE__*/function () {
|
|
3900
|
-
var
|
|
4072
|
+
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(v, i) {
|
|
3901
4073
|
var common, eventStyle, option, ele, img, _obj$seqStyle2, _obj$seqStyle3, circle, text, group, _text;
|
|
3902
4074
|
|
|
3903
|
-
return regeneratorRuntime.wrap(function
|
|
4075
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3904
4076
|
while (1) {
|
|
3905
|
-
switch (
|
|
4077
|
+
switch (_context2.prev = _context2.next) {
|
|
3906
4078
|
case 0:
|
|
3907
4079
|
common = {
|
|
3908
4080
|
left: x,
|
|
@@ -3920,7 +4092,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3920
4092
|
} : {};
|
|
3921
4093
|
|
|
3922
4094
|
if (!(_this11.isObject(v) && !v.value)) {
|
|
3923
|
-
|
|
4095
|
+
_context2.next = 15;
|
|
3924
4096
|
break;
|
|
3925
4097
|
}
|
|
3926
4098
|
|
|
@@ -3928,42 +4100,42 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3928
4100
|
option = Object.assign({}, obj.iconStyle || {}, v || {}, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
|
|
3929
4101
|
|
|
3930
4102
|
if (!(v !== null && v !== void 0 && v.iconClassName)) {
|
|
3931
|
-
|
|
4103
|
+
_context2.next = 9;
|
|
3932
4104
|
break;
|
|
3933
4105
|
}
|
|
3934
4106
|
|
|
3935
|
-
|
|
4107
|
+
_context2.next = 8;
|
|
3936
4108
|
return _this11.createImage(v.iconClassName, v);
|
|
3937
4109
|
|
|
3938
4110
|
case 8:
|
|
3939
|
-
ele =
|
|
4111
|
+
ele = _context2.sent;
|
|
3940
4112
|
|
|
3941
4113
|
case 9:
|
|
3942
|
-
|
|
4114
|
+
_context2.next = 11;
|
|
3943
4115
|
return _this11.createPoint(v !== null && v !== void 0 && v.url || v !== null && v !== void 0 && v.iconClassName ? 'img' : v.type, Object(objectSpread2["a" /* default */])({
|
|
3944
4116
|
ele: ele || ''
|
|
3945
4117
|
}, option));
|
|
3946
4118
|
|
|
3947
4119
|
case 11:
|
|
3948
|
-
img =
|
|
4120
|
+
img = _context2.sent;
|
|
3949
4121
|
addCanvas(img);
|
|
3950
|
-
|
|
4122
|
+
_context2.next = 29;
|
|
3951
4123
|
break;
|
|
3952
4124
|
|
|
3953
4125
|
case 15:
|
|
3954
4126
|
if (!v.value) {
|
|
3955
|
-
|
|
4127
|
+
_context2.next = 29;
|
|
3956
4128
|
break;
|
|
3957
4129
|
}
|
|
3958
4130
|
|
|
3959
4131
|
if (!v.seq) {
|
|
3960
|
-
|
|
4132
|
+
_context2.next = 26;
|
|
3961
4133
|
break;
|
|
3962
4134
|
}
|
|
3963
4135
|
|
|
3964
4136
|
common.top = setTop(lineHeightSeq, i, condition); // 标记增加序号
|
|
3965
4137
|
|
|
3966
|
-
|
|
4138
|
+
_context2.next = 20;
|
|
3967
4139
|
return _this11.createPoint('circle', Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), {}, {
|
|
3968
4140
|
radius: 5,
|
|
3969
4141
|
strokeWidth: 1,
|
|
@@ -3972,11 +4144,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3972
4144
|
}, ((_obj$seqStyle2 = obj.seqStyle) === null || _obj$seqStyle2 === void 0 ? void 0 : _obj$seqStyle2.circle) || {}));
|
|
3973
4145
|
|
|
3974
4146
|
case 20:
|
|
3975
|
-
circle =
|
|
4147
|
+
circle = _context2.sent;
|
|
3976
4148
|
text = new _this11.fabric.Text(String(v.value), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.textStyle), common), ((_obj$seqStyle3 = obj.seqStyle) === null || _obj$seqStyle3 === void 0 ? void 0 : _obj$seqStyle3.text) || {}));
|
|
3977
4149
|
group = new _this11.fabric.Group([circle, text], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, common), eventStyle));
|
|
3978
4150
|
addCanvas(group);
|
|
3979
|
-
|
|
4151
|
+
_context2.next = 29;
|
|
3980
4152
|
break;
|
|
3981
4153
|
|
|
3982
4154
|
case 26:
|
|
@@ -3986,14 +4158,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
3986
4158
|
|
|
3987
4159
|
case 29:
|
|
3988
4160
|
case "end":
|
|
3989
|
-
return
|
|
4161
|
+
return _context2.stop();
|
|
3990
4162
|
}
|
|
3991
4163
|
}
|
|
3992
|
-
},
|
|
4164
|
+
}, _callee2);
|
|
3993
4165
|
}));
|
|
3994
4166
|
|
|
3995
4167
|
return function (_x, _x2) {
|
|
3996
|
-
return
|
|
4168
|
+
return _ref3.apply(this, arguments);
|
|
3997
4169
|
};
|
|
3998
4170
|
}());
|
|
3999
4171
|
}
|
|
@@ -4027,11 +4199,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4027
4199
|
var _point$other;
|
|
4028
4200
|
|
|
4029
4201
|
point.setCoords();
|
|
4030
|
-
var _this$
|
|
4031
|
-
originX = _this$
|
|
4032
|
-
endX = _this$
|
|
4033
|
-
originY = _this$
|
|
4034
|
-
canvasHeight = _this$
|
|
4202
|
+
var _this$propItems4 = this.propItems,
|
|
4203
|
+
originX = _this$propItems4.originX,
|
|
4204
|
+
endX = _this$propItems4.endX,
|
|
4205
|
+
originY = _this$propItems4.originY,
|
|
4206
|
+
canvasHeight = _this$propItems4.canvasHeight;
|
|
4035
4207
|
var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
|
|
4036
4208
|
|
|
4037
4209
|
if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
|
|
@@ -4126,11 +4298,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4126
4298
|
},
|
|
4127
4299
|
drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
|
|
4128
4300
|
this.drawLeftTitle(dataLeft);
|
|
4129
|
-
var _this$
|
|
4130
|
-
canvasHeight = _this$
|
|
4131
|
-
originX = _this$
|
|
4132
|
-
originY = _this$
|
|
4133
|
-
treeTableminCellWidth = _this$
|
|
4301
|
+
var _this$propItems5 = this.propItems,
|
|
4302
|
+
canvasHeight = _this$propItems5.canvasHeight,
|
|
4303
|
+
originX = _this$propItems5.originX,
|
|
4304
|
+
originY = _this$propItems5.originY,
|
|
4305
|
+
treeTableminCellWidth = _this$propItems5.treeTableminCellWidth;
|
|
4134
4306
|
var rect = new this.fabric.Rect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
4135
4307
|
left: treeTableminCellWidth,
|
|
4136
4308
|
top: originY,
|
|
@@ -4174,8 +4346,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4174
4346
|
|
|
4175
4347
|
var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
4176
4348
|
fabric_chart_FabricTextGroupvue_type_script_lang_js_,
|
|
4177
|
-
|
|
4178
|
-
|
|
4349
|
+
FabricTextGroupvue_type_template_id_5e213786_render,
|
|
4350
|
+
FabricTextGroupvue_type_template_id_5e213786_staticRenderFns,
|
|
4179
4351
|
false,
|
|
4180
4352
|
null,
|
|
4181
4353
|
null,
|
|
@@ -4184,19 +4356,19 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4184
4356
|
)
|
|
4185
4357
|
|
|
4186
4358
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
4187
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4188
|
-
var
|
|
4189
|
-
var
|
|
4359
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=f880e596&
|
|
4360
|
+
var FabricScaleValuevue_type_template_id_f880e596_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.templateData.top.xScalevalue.popupTop)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
|
|
4361
|
+
var FabricScaleValuevue_type_template_id_f880e596_staticRenderFns = []
|
|
4190
4362
|
|
|
4191
4363
|
|
|
4192
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=
|
|
4364
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=f880e596&
|
|
4193
4365
|
|
|
4194
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4195
|
-
var
|
|
4196
|
-
var
|
|
4366
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=3b20fb44&scoped=true&
|
|
4367
|
+
var TimeScaleValuevue_type_template_id_3b20fb44_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"c-time-scalevalue",style:({ '--left': _vm.popupStyle.left, '--top': _vm.popupStyle.top, '--height': _vm.popupStyle.height, '--width': _vm.popupStyle.width })},_vm._l((_vm.times),function(item,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(index % 2 == 0),expression:"index % 2 == 0"}],key:item.left,staticClass:"c-time-scalevalue-list",style:({ left: ((item.left - item.width / 2) + "px"), '--font-size': _vm.popupStyle.fontSize })},[_vm._v(" "+_vm._s(item.time)+" ")])}),0)}
|
|
4368
|
+
var TimeScaleValuevue_type_template_id_3b20fb44_scoped_true_staticRenderFns = []
|
|
4197
4369
|
|
|
4198
4370
|
|
|
4199
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=
|
|
4371
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=3b20fb44&scoped=true&
|
|
4200
4372
|
|
|
4201
4373
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
4202
4374
|
//
|
|
@@ -4288,17 +4460,14 @@ var TimeScaleValuevue_type_template_id_184c584a_scoped_true_staticRenderFns = []
|
|
|
4288
4460
|
},
|
|
4289
4461
|
scroll: function scroll() {
|
|
4290
4462
|
if (this.cFabricChart) {
|
|
4291
|
-
var
|
|
4292
|
-
originY = _this$propItems2.originY,
|
|
4293
|
-
spaceHeight = _this$propItems2.spaceHeight;
|
|
4463
|
+
var originYTime = this.propItems.originYTime;
|
|
4294
4464
|
var top = this.cFabricChart.getBoundingClientRect().top;
|
|
4295
|
-
var newOriginY = originY - spaceHeight;
|
|
4296
4465
|
|
|
4297
4466
|
var _ref2 = this.$attrs.templateData.top || {},
|
|
4298
4467
|
xScalevalue = _ref2.xScalevalue;
|
|
4299
4468
|
|
|
4300
4469
|
var popupTop = (xScalevalue === null || xScalevalue === void 0 ? void 0 : xScalevalue.popupTop) || 0;
|
|
4301
|
-
this.isShow = top +
|
|
4470
|
+
this.isShow = top + originYTime < popupTop ? true : false;
|
|
4302
4471
|
}
|
|
4303
4472
|
}
|
|
4304
4473
|
},
|
|
@@ -4309,8 +4478,8 @@ var TimeScaleValuevue_type_template_id_184c584a_scoped_true_staticRenderFns = []
|
|
|
4309
4478
|
});
|
|
4310
4479
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=script&lang=js&
|
|
4311
4480
|
/* harmony default export */ var components_TimeScaleValuevue_type_script_lang_js_ = (TimeScaleValuevue_type_script_lang_js_);
|
|
4312
|
-
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=
|
|
4313
|
-
var
|
|
4481
|
+
// EXTERNAL MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=style&index=0&id=3b20fb44&lang=less&scoped=true&
|
|
4482
|
+
var TimeScaleValuevue_type_style_index_0_id_3b20fb44_lang_less_scoped_true_ = __webpack_require__("562e5");
|
|
4314
4483
|
|
|
4315
4484
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/components/TimeScaleValue.vue
|
|
4316
4485
|
|
|
@@ -4323,11 +4492,11 @@ var TimeScaleValuevue_type_style_index_0_id_184c584a_lang_less_scoped_true_ = __
|
|
|
4323
4492
|
|
|
4324
4493
|
var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
4325
4494
|
components_TimeScaleValuevue_type_script_lang_js_,
|
|
4326
|
-
|
|
4327
|
-
|
|
4495
|
+
TimeScaleValuevue_type_template_id_3b20fb44_scoped_true_render,
|
|
4496
|
+
TimeScaleValuevue_type_template_id_3b20fb44_scoped_true_staticRenderFns,
|
|
4328
4497
|
false,
|
|
4329
4498
|
null,
|
|
4330
|
-
"
|
|
4499
|
+
"3b20fb44",
|
|
4331
4500
|
null
|
|
4332
4501
|
|
|
4333
4502
|
)
|
|
@@ -4388,13 +4557,14 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4388
4557
|
originX = _this$propItems.originX,
|
|
4389
4558
|
originY = _this$propItems.originY,
|
|
4390
4559
|
xCellWidth = _this$propItems.xCellWidth,
|
|
4560
|
+
originYTime = _this$propItems.originYTime,
|
|
4391
4561
|
spaceHeight = _this$propItems.spaceHeight;
|
|
4392
4562
|
var spaceGridNumber = obj.xScalevalue.spaceGridNumber || 3;
|
|
4393
4563
|
var defaultSpaceMinute = obj.xScalevalue.defaultSpaceTime || 15;
|
|
4394
4564
|
var defaultSpaceTime = defaultSpaceMinute * 60 * 1000;
|
|
4395
4565
|
var style = obj.xScalevalue.style || {};
|
|
4396
4566
|
var customStyle = obj.xScalevalue.customStyle || {};
|
|
4397
|
-
var top =
|
|
4567
|
+
var top = originYTime + Math.floor(spaceHeight / 2);
|
|
4398
4568
|
var textList = [];
|
|
4399
4569
|
var list = obj.xScalevalue.list || [];
|
|
4400
4570
|
list.reduce(function (pre, cur, i) {
|
|
@@ -4507,8 +4677,8 @@ var TimeScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4507
4677
|
|
|
4508
4678
|
var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
4509
4679
|
fabric_chart_FabricScaleValuevue_type_script_lang_js_,
|
|
4510
|
-
|
|
4511
|
-
|
|
4680
|
+
FabricScaleValuevue_type_template_id_f880e596_render,
|
|
4681
|
+
FabricScaleValuevue_type_template_id_f880e596_staticRenderFns,
|
|
4512
4682
|
false,
|
|
4513
4683
|
null,
|
|
4514
4684
|
null,
|
|
@@ -4517,12 +4687,12 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4517
4687
|
)
|
|
4518
4688
|
|
|
4519
4689
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
4520
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4521
|
-
var
|
|
4522
|
-
var
|
|
4690
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"32ef1700-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=f554e3a2&
|
|
4691
|
+
var FabricLinesvue_type_template_id_f554e3a2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
4692
|
+
var FabricLinesvue_type_template_id_f554e3a2_staticRenderFns = []
|
|
4523
4693
|
|
|
4524
4694
|
|
|
4525
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=
|
|
4695
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=f554e3a2&
|
|
4526
4696
|
|
|
4527
4697
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=script&lang=js&
|
|
4528
4698
|
|
|
@@ -4536,6 +4706,8 @@ var FabricLinesvue_type_template_id_983c9fd6_staticRenderFns = []
|
|
|
4536
4706
|
|
|
4537
4707
|
|
|
4538
4708
|
|
|
4709
|
+
|
|
4710
|
+
|
|
4539
4711
|
//
|
|
4540
4712
|
//
|
|
4541
4713
|
//
|
|
@@ -4549,6 +4721,7 @@ var FabricLinesvue_type_template_id_983c9fd6_staticRenderFns = []
|
|
|
4549
4721
|
|
|
4550
4722
|
|
|
4551
4723
|
|
|
4724
|
+
|
|
4552
4725
|
var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
4553
4726
|
name: '修改',
|
|
4554
4727
|
type: 'edit'
|
|
@@ -4566,7 +4739,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4566
4739
|
}];
|
|
4567
4740
|
/* harmony default export */ var FabricLinesvue_type_script_lang_js_ = ({
|
|
4568
4741
|
name: 'fabric-lines',
|
|
4569
|
-
mixins: [fabricCommon, eventCommon],
|
|
4742
|
+
mixins: [fabricCommon, eventCommon, draw],
|
|
4570
4743
|
props: {
|
|
4571
4744
|
linesObj: {
|
|
4572
4745
|
type: Object,
|
|
@@ -4626,18 +4799,32 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4626
4799
|
var _this$$propItems = _this.$propItems(),
|
|
4627
4800
|
originX = _this$$propItems.originX,
|
|
4628
4801
|
endX = _this$$propItems.endX,
|
|
4629
|
-
endYTop = _this$$propItems.endYTop
|
|
4802
|
+
endYTop = _this$$propItems.endYTop,
|
|
4803
|
+
originYTop = _this$$propItems.originYTop;
|
|
4630
4804
|
|
|
4631
|
-
if (!(x < 0 || x > endX || y <
|
|
4805
|
+
if (!(x < 0 || x > endX || y < originYTop || y > endYTop)) {
|
|
4632
4806
|
_this.activeEvent = event;
|
|
4633
4807
|
document.querySelector('.upper-canvas').addEventListener('contextmenu', _this.addEventListenerContextmenu, true);
|
|
4634
4808
|
}
|
|
4635
4809
|
}
|
|
4636
4810
|
});
|
|
4637
4811
|
},
|
|
4812
|
+
handleMoving: function handleMoving(event) {
|
|
4813
|
+
var pointer = event.pointer;
|
|
4814
|
+
var _event$pointer2 = event.pointer,
|
|
4815
|
+
x = _event$pointer2.x,
|
|
4816
|
+
y = _event$pointer2.y;
|
|
4817
|
+
this.dropPointer = Object(objectSpread2["a" /* default */])({}, pointer);
|
|
4818
|
+
var movingPopupContentList = [{
|
|
4819
|
+
id: '1',
|
|
4820
|
+
name: '时间',
|
|
4821
|
+
value: this.getXValue(x)
|
|
4822
|
+
}];
|
|
4823
|
+
this.movingShowPopup(movingPopupContentList);
|
|
4824
|
+
},
|
|
4638
4825
|
|
|
4639
|
-
/**
|
|
4640
|
-
* 右键监听事件
|
|
4826
|
+
/**
|
|
4827
|
+
* 右键监听事件
|
|
4641
4828
|
*/
|
|
4642
4829
|
addEventListenerContextmenu: function addEventListenerContextmenu(event) {
|
|
4643
4830
|
event.preventDefault();
|
|
@@ -4647,9 +4834,10 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4647
4834
|
var _this$$propItems2 = this.$propItems(),
|
|
4648
4835
|
originX = _this$$propItems2.originX,
|
|
4649
4836
|
endX = _this$$propItems2.endX,
|
|
4650
|
-
endYTop = _this$$propItems2.endYTop
|
|
4837
|
+
endYTop = _this$$propItems2.endYTop,
|
|
4838
|
+
originYTop = _this$$propItems2.originYTop;
|
|
4651
4839
|
|
|
4652
|
-
if (!(x < 0 || x > endX || y <
|
|
4840
|
+
if (!(x < 0 || x > endX || y < originYTop || y > endYTop)) {
|
|
4653
4841
|
this.openRightModal(this.activeEvent);
|
|
4654
4842
|
}
|
|
4655
4843
|
|
|
@@ -4752,199 +4940,247 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4752
4940
|
});
|
|
4753
4941
|
},
|
|
4754
4942
|
drawLineData: function drawLineData(line, i) {
|
|
4755
|
-
var _this5 = this
|
|
4756
|
-
_this$canvas;
|
|
4943
|
+
var _this5 = this;
|
|
4757
4944
|
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
originX = _this$propItems.originX,
|
|
4761
|
-
endX = _this$propItems.endX,
|
|
4762
|
-
xScaleList = _this$propItems.xScaleList,
|
|
4763
|
-
yCellHeightTop = _this$propItems.yCellHeightTop;
|
|
4764
|
-
var spaceHeight = Math.round(yCellHeightTop / 6);
|
|
4765
|
-
var minMinute = Math.min.apply(Math, Object(toConsumableArray["a" /* default */])(xScaleList));
|
|
4766
|
-
var maxMinute = Math.max.apply(Math, Object(toConsumableArray["a" /* default */])(xScaleList));
|
|
4767
|
-
var lineItemList = [];
|
|
4768
|
-
var y1 = i * yCellHeightTop;
|
|
4769
|
-
var y2 = yCellHeightTop * (i + 1);
|
|
4770
|
-
var textArr = []; // 用于存放多个线段的文字内容,显示格式为:第一段线的文字—第二段线的文字
|
|
4945
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
4946
|
+
var _this5$canvas;
|
|
4771
4947
|
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4948
|
+
var lineList, _this5$propItems, originX, endX, xScaleList, yCellHeightTop, originYTop, spaceHeight, minMinute, maxMinute, lineItemList, y1, y2, textArr, textList, j, len, item, startMinute, endMinute, x1, x2, textObj, textContent, leftLine, centerLine, centerRect, rightLine, textTop, textLimitRight, text, _lineList, leftLimit, _lineList2, preItem0, preItem1, preEndMinute, preStartMinute, rightLimt, _lineList3, _preItem, _preStartMinute;
|
|
4949
|
+
|
|
4950
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4951
|
+
while (1) {
|
|
4952
|
+
switch (_context.prev = _context.next) {
|
|
4953
|
+
case 0:
|
|
4954
|
+
lineList = line.lineList || [];
|
|
4955
|
+
_this5$propItems = _this5.propItems, originX = _this5$propItems.originX, endX = _this5$propItems.endX, xScaleList = _this5$propItems.xScaleList, yCellHeightTop = _this5$propItems.yCellHeightTop, originYTop = _this5$propItems.originYTop;
|
|
4956
|
+
spaceHeight = Math.round(yCellHeightTop / 6);
|
|
4957
|
+
minMinute = Math.min.apply(Math, Object(toConsumableArray["a" /* default */])(xScaleList));
|
|
4958
|
+
maxMinute = Math.max.apply(Math, Object(toConsumableArray["a" /* default */])(xScaleList));
|
|
4959
|
+
lineItemList = [];
|
|
4960
|
+
y1 = i * yCellHeightTop + originYTop;
|
|
4961
|
+
y2 = yCellHeightTop * (i + 1) + originYTop;
|
|
4962
|
+
textArr = []; // 用于存放多个线段的文字内容,显示格式为:第一段线的文字—第二段线的文字
|
|
4963
|
+
|
|
4964
|
+
textList = [];
|
|
4965
|
+
j = 0, len = lineList.length;
|
|
4777
4966
|
|
|
4778
|
-
|
|
4967
|
+
case 11:
|
|
4968
|
+
if (!(j < len)) {
|
|
4969
|
+
_context.next = 57;
|
|
4970
|
+
break;
|
|
4971
|
+
}
|
|
4779
4972
|
|
|
4780
|
-
|
|
4973
|
+
item = lineList[j];
|
|
4781
4974
|
|
|
4975
|
+
if (!(!item[0] || type_isObject(item[0]))) {
|
|
4976
|
+
_context.next = 15;
|
|
4977
|
+
break;
|
|
4978
|
+
}
|
|
4782
4979
|
|
|
4783
|
-
|
|
4784
|
-
var textContent = textObj.content || ''; // 左边手柄竖线
|
|
4980
|
+
return _context.abrupt("return");
|
|
4785
4981
|
|
|
4786
|
-
|
|
4982
|
+
case 15:
|
|
4983
|
+
startMinute = new Date(item[0]).getTime();
|
|
4984
|
+
endMinute = item[1] ? new Date(item[1]).getTime() : '';
|
|
4985
|
+
x1 = _this5.cumputedX(item[0]);
|
|
4986
|
+
x2 = _this5.cumputedX(item[1]); // 数字文字
|
|
4787
4987
|
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
position: 'left'
|
|
4791
|
-
});
|
|
4792
|
-
lineItemList.push(leftLine);
|
|
4793
|
-
} else if (x1 < originX) {
|
|
4794
|
-
x1 = originX;
|
|
4795
|
-
} else {
|
|
4796
|
-
x1 = endX;
|
|
4797
|
-
}
|
|
4988
|
+
textObj = item[3] || {};
|
|
4989
|
+
textContent = textObj.content || ''; // 左边手柄竖线
|
|
4798
4990
|
|
|
4799
|
-
|
|
4800
|
-
x2 = endX;
|
|
4801
|
-
}
|
|
4991
|
+
leftLine = void 0;
|
|
4802
4992
|
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4993
|
+
if (!(x1 && x1 >= originX && x1 <= endX)) {
|
|
4994
|
+
_context.next = 29;
|
|
4995
|
+
break;
|
|
4996
|
+
}
|
|
4806
4997
|
|
|
4998
|
+
_context.next = 25;
|
|
4999
|
+
return _this5.drawGroup(x1, x2, y1 + spaceHeight, y2 - spaceHeight, i, j, {
|
|
5000
|
+
position: 'left',
|
|
5001
|
+
customIcon: !endMinute ? true : false
|
|
5002
|
+
});
|
|
4807
5003
|
|
|
4808
|
-
|
|
5004
|
+
case 25:
|
|
5005
|
+
leftLine = _context.sent;
|
|
5006
|
+
lineItemList.push(leftLine);
|
|
5007
|
+
_context.next = 30;
|
|
5008
|
+
break;
|
|
4809
5009
|
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
}));
|
|
4817
|
-
lineItemList.push(centerLine); // 添加透明矩形,便于选择横线右键删除
|
|
4818
|
-
|
|
4819
|
-
var centerRect = new _this5.fabric.Rect({
|
|
4820
|
-
id: '_lineGroup_' + new Date().getTime(),
|
|
4821
|
-
fill: 'transparent',
|
|
4822
|
-
width: x2 - x1 - 20,
|
|
4823
|
-
height: y2 - 2 * spaceHeight - y1,
|
|
4824
|
-
left: x1 + (x2 - x1) / 2,
|
|
4825
|
-
top: y1 + (y2 - y1) / 2,
|
|
4826
|
-
selectable: true,
|
|
4827
|
-
evented: true,
|
|
4828
|
-
rowIndex: i,
|
|
4829
|
-
colIndex: j,
|
|
4830
|
-
originX: 'center',
|
|
4831
|
-
originY: 'center'
|
|
4832
|
-
});
|
|
4833
|
-
centerRect.lockMovementX = centerRect.lockMovementY = true;
|
|
4834
|
-
centerRect.hasControls = centerRect.hasBorders = false;
|
|
5010
|
+
case 29:
|
|
5011
|
+
if (x1 < originX) {
|
|
5012
|
+
x1 = originX;
|
|
5013
|
+
} else {
|
|
5014
|
+
x1 = endX;
|
|
5015
|
+
}
|
|
4835
5016
|
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
});
|
|
5017
|
+
case 30:
|
|
5018
|
+
if (item[1] && x2 > endX) {
|
|
5019
|
+
x2 = endX;
|
|
5020
|
+
}
|
|
4841
5021
|
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
5022
|
+
if (item[1] && x2 < originX) {
|
|
5023
|
+
x2 = originX;
|
|
5024
|
+
} // 中间横线
|
|
4845
5025
|
|
|
4846
5026
|
|
|
4847
|
-
|
|
5027
|
+
centerLine = void 0;
|
|
4848
5028
|
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
5029
|
+
if (item[1] && !(endMinute >= maxMinute && startMinute >= maxMinute) && !(endMinute <= minMinute && startMinute <= minMinute)) {
|
|
5030
|
+
centerLine = _this5.drawLine([x1, y1 + yCellHeightTop / 2, x2, y1 + yCellHeightTop / 2], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this5.linesObj.dataLineStyle), {}, {
|
|
5031
|
+
selectable: false,
|
|
5032
|
+
evented: false,
|
|
5033
|
+
id: '_lineGroup_' + new Date().getTime(),
|
|
5034
|
+
rowIndex: i
|
|
5035
|
+
}));
|
|
5036
|
+
lineItemList.push(centerLine); // 添加透明矩形,便于选择横线右键删除
|
|
5037
|
+
|
|
5038
|
+
centerRect = new _this5.fabric.Rect({
|
|
5039
|
+
id: '_lineGroup_' + new Date().getTime(),
|
|
5040
|
+
fill: 'transparent',
|
|
5041
|
+
width: x2 - x1 - 20,
|
|
5042
|
+
height: y2 - 2 * spaceHeight - y1,
|
|
5043
|
+
left: x1 + (x2 - x1) / 2,
|
|
5044
|
+
top: y1 + (y2 - y1) / 2,
|
|
5045
|
+
selectable: true,
|
|
5046
|
+
evented: true,
|
|
5047
|
+
rowIndex: i,
|
|
5048
|
+
colIndex: j,
|
|
5049
|
+
originX: 'center',
|
|
5050
|
+
originY: 'center'
|
|
5051
|
+
});
|
|
5052
|
+
centerRect.lockMovementX = centerRect.lockMovementY = true;
|
|
5053
|
+
centerRect.hasControls = centerRect.hasBorders = false;
|
|
4855
5054
|
|
|
5055
|
+
_this5.hoverEvent(centerRect, {
|
|
5056
|
+
textObj: textObj,
|
|
5057
|
+
startTime: item[0],
|
|
5058
|
+
endTime: item[1]
|
|
5059
|
+
});
|
|
4856
5060
|
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
5061
|
+
lineItemList.push(centerRect);
|
|
5062
|
+
leftLine && leftLine.bringToFront();
|
|
5063
|
+
} // 右边手柄竖线
|
|
4860
5064
|
|
|
4861
|
-
if (text) {
|
|
4862
|
-
var _lineList;
|
|
4863
5065
|
|
|
4864
|
-
|
|
5066
|
+
rightLine = void 0;
|
|
4865
5067
|
|
|
4866
|
-
|
|
4867
|
-
|
|
5068
|
+
if (!(item[1] && endMinute <= maxMinute && endMinute >= minMinute)) {
|
|
5069
|
+
_context.next = 40;
|
|
5070
|
+
break;
|
|
5071
|
+
}
|
|
4868
5072
|
|
|
4869
|
-
|
|
5073
|
+
_context.next = 38;
|
|
5074
|
+
return _this5.drawGroup(x1, x2, y1 + spaceHeight, y2 - spaceHeight, i, j, {
|
|
5075
|
+
position: 'right'
|
|
5076
|
+
});
|
|
4870
5077
|
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
5078
|
+
case 38:
|
|
5079
|
+
rightLine = _context.sent;
|
|
5080
|
+
lineItemList.push(rightLine);
|
|
4874
5081
|
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
5082
|
+
case 40:
|
|
5083
|
+
// 文字内容
|
|
5084
|
+
textTop = x2 ? (y1 + y2) / 2 : y1 + yCellHeightTop / 2;
|
|
5085
|
+
textLimitRight = void 0;
|
|
5086
|
+
text = endMinute === '' && leftLine || item[1] && !(x1 === originX && x2 === originX) && !(x1 === endX && x2 === endX) ? _this5.drawLineText(textArr.concat([textContent]), textTop, i, j, centerLine, leftLine, x1, x2) : null; // 文字内容居右侧竖线且超出当前线段右边界则移除
|
|
4880
5087
|
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
} // 设置拖动限制值
|
|
5088
|
+
if (text) {
|
|
5089
|
+
textLimitRight = (_lineList = lineList[j + 1]) !== null && _lineList !== void 0 && _lineList[0] && _this5.cumputedX(lineList[j + 1][0]) <= endX ? _this5.cumputedX(lineList[j + 1][0]) : endX;
|
|
4884
5090
|
|
|
5091
|
+
if (text.originX === 'left' && text.left + text.width + 2 >= textLimitRight) {
|
|
5092
|
+
textLimitRight !== endX && textArr.push(textContent);
|
|
4885
5093
|
|
|
4886
|
-
|
|
4887
|
-
leftLimit.x2 = x2 ? x2 : endX;
|
|
4888
|
-
leftLimit.x1 = originX;
|
|
5094
|
+
_this5.canvas.remove(text);
|
|
4889
5095
|
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
preItem1 = _lineList2[1];
|
|
5096
|
+
text = null;
|
|
5097
|
+
} else {
|
|
5098
|
+
textArr = [];
|
|
4894
5099
|
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
if (preStartMinute >= minMinute && preStartMinute < maxMinute) leftLimit.x1 = _this5.cumputedX(preItem0);
|
|
4901
|
-
}
|
|
4902
|
-
}
|
|
5100
|
+
_this5.hoverEvent(text, {
|
|
5101
|
+
textObj: textObj,
|
|
5102
|
+
startTime: item[0],
|
|
5103
|
+
endTime: item[1]
|
|
5104
|
+
});
|
|
4903
5105
|
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
5106
|
+
textList.push(text);
|
|
5107
|
+
}
|
|
5108
|
+
} // 设置拖动限制值
|
|
4907
5109
|
|
|
4908
|
-
if (lineList[j + 1]) {
|
|
4909
|
-
var _lineList3 = Object(slicedToArray["a" /* default */])(lineList[j + 1], 1),
|
|
4910
|
-
_preItem = _lineList3[0];
|
|
4911
5110
|
|
|
4912
|
-
|
|
4913
|
-
|
|
5111
|
+
leftLimit = {};
|
|
5112
|
+
leftLimit.x2 = x2 ? x2 : endX;
|
|
5113
|
+
leftLimit.x1 = originX;
|
|
4914
5114
|
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
}
|
|
5115
|
+
if (lineList[j - 1]) {
|
|
5116
|
+
_lineList2 = Object(slicedToArray["a" /* default */])(lineList[j - 1], 2), preItem0 = _lineList2[0], preItem1 = _lineList2[1];
|
|
4918
5117
|
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
preText: textList[text ? textList.length - 2 : textList.length - 1] || null,
|
|
4928
|
-
textLimitRight: textLimitRight
|
|
4929
|
-
});
|
|
5118
|
+
if (preItem1) {
|
|
5119
|
+
preEndMinute = new Date(preItem1).getTime();
|
|
5120
|
+
if (preEndMinute >= minMinute && preEndMinute < maxMinute) leftLimit.x1 = _this5.cumputedX(preItem1);
|
|
5121
|
+
} else {
|
|
5122
|
+
preStartMinute = new Date(preItem0).getTime();
|
|
5123
|
+
if (preStartMinute >= minMinute && preStartMinute < maxMinute) leftLimit.x1 = _this5.cumputedX(preItem0);
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
4930
5126
|
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
text: text,
|
|
4935
|
-
textObj: textObj,
|
|
4936
|
-
limitX: rightLimt,
|
|
4937
|
-
startTime: item[0],
|
|
4938
|
-
endTime: item[1],
|
|
4939
|
-
preText: null,
|
|
4940
|
-
textLimitRight: rightLimt.x2
|
|
4941
|
-
});
|
|
4942
|
-
});
|
|
5127
|
+
rightLimt = {};
|
|
5128
|
+
rightLimt.x1 = x2 ? x1 : originX;
|
|
5129
|
+
rightLimt.x2 = endX;
|
|
4943
5130
|
|
|
4944
|
-
|
|
5131
|
+
if (lineList[j + 1]) {
|
|
5132
|
+
_lineList3 = Object(slicedToArray["a" /* default */])(lineList[j + 1], 1), _preItem = _lineList3[0];
|
|
4945
5133
|
|
|
5134
|
+
if (_preItem) {
|
|
5135
|
+
_preStartMinute = new Date(_preItem).getTime();
|
|
5136
|
+
if (_preStartMinute > minMinute && _preStartMinute <= maxMinute) rightLimt.x2 = _this5.cumputedX(_preItem);
|
|
5137
|
+
}
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5140
|
+
_this5.lineEvent({
|
|
5141
|
+
line: leftLine,
|
|
5142
|
+
line1: centerLine,
|
|
5143
|
+
text: text,
|
|
5144
|
+
textObj: textObj,
|
|
5145
|
+
limitX: leftLimit,
|
|
5146
|
+
startTime: item[0],
|
|
5147
|
+
endTime: item[1],
|
|
5148
|
+
preText: textList[text ? textList.length - 2 : textList.length - 1] || null,
|
|
5149
|
+
textLimitRight: textLimitRight
|
|
5150
|
+
});
|
|
5151
|
+
|
|
5152
|
+
_this5.lineEvent({
|
|
5153
|
+
line: rightLine,
|
|
5154
|
+
line2: centerLine,
|
|
5155
|
+
text: text,
|
|
5156
|
+
textObj: textObj,
|
|
5157
|
+
limitX: rightLimt,
|
|
5158
|
+
startTime: item[0],
|
|
5159
|
+
endTime: item[1],
|
|
5160
|
+
preText: null,
|
|
5161
|
+
textLimitRight: rightLimt.x2
|
|
5162
|
+
});
|
|
5163
|
+
|
|
5164
|
+
case 54:
|
|
5165
|
+
j++;
|
|
5166
|
+
_context.next = 11;
|
|
5167
|
+
break;
|
|
5168
|
+
|
|
5169
|
+
case 57:
|
|
5170
|
+
(_this5$canvas = _this5.canvas).add.apply(_this5$canvas, lineItemList.concat(textList)); // this.canvas.requestRenderAll();
|
|
5171
|
+
|
|
5172
|
+
|
|
5173
|
+
case 58:
|
|
5174
|
+
case "end":
|
|
5175
|
+
return _context.stop();
|
|
5176
|
+
}
|
|
5177
|
+
}
|
|
5178
|
+
}, _callee);
|
|
5179
|
+
}))();
|
|
4946
5180
|
},
|
|
4947
|
-
drawLineText: function drawLineText(textArr, top, i, j, centerLine, x1, x2) {
|
|
5181
|
+
drawLineText: function drawLineText(textArr, top, i, j, centerLine, leftLine, x1, x2) {
|
|
5182
|
+
var _leftLine$width;
|
|
5183
|
+
|
|
4948
5184
|
// const value = textArr.map(v => {
|
|
4949
5185
|
// const channel = v.channel ? `(${v.channel})` : '';
|
|
4950
5186
|
// const consistence = v.consistence ? `(${v.consistence})` : '';
|
|
@@ -4970,7 +5206,7 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4970
5206
|
var limitWidth = text.width + 2; // 横线小于text文字的宽度则text显示在右侧
|
|
4971
5207
|
|
|
4972
5208
|
var originX = !centerLine || x2 && x2 - x1 <= limitWidth ? 'left' : 'center';
|
|
4973
|
-
var left = x2 && x2 - x1 > limitWidth ? (x1 + x2) / 2 : this.textMarginLeft + (x2 && x2 - x1 <= limitWidth ? x2 : x1);
|
|
5209
|
+
var left = x2 && x2 - x1 > limitWidth ? (x1 + x2) / 2 : this.textMarginLeft + (x2 && x2 - x1 <= limitWidth ? x2 : x1 + ((_leftLine$width = leftLine === null || leftLine === void 0 ? void 0 : leftLine.width) !== null && _leftLine$width !== void 0 ? _leftLine$width : 0) / 3);
|
|
4974
5210
|
text.set({
|
|
4975
5211
|
originX: originX,
|
|
4976
5212
|
left: left
|
|
@@ -4979,56 +5215,97 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
4979
5215
|
return text;
|
|
4980
5216
|
},
|
|
4981
5217
|
|
|
4982
|
-
/**
|
|
4983
|
-
* @description: 画-|-样式的组
|
|
4984
|
-
* @param {*} x1 // |-|中左侧线的x轴坐标
|
|
4985
|
-
* @param {*} x2 // |-|中右侧线的x轴坐标
|
|
4986
|
-
* @param {*} y1 // |-|中竖线的顶部y轴坐标
|
|
4987
|
-
* @param {*} y2 // |-|中竖线的底部y轴坐标
|
|
4988
|
-
* @param {*} position // 定位当前线是左侧线还是右侧线
|
|
4989
|
-
* @return {*}
|
|
5218
|
+
/**
|
|
5219
|
+
* @description: 画-|-样式的组
|
|
5220
|
+
* @param {*} x1 // |-|中左侧线的x轴坐标
|
|
5221
|
+
* @param {*} x2 // |-|中右侧线的x轴坐标
|
|
5222
|
+
* @param {*} y1 // |-|中竖线的顶部y轴坐标
|
|
5223
|
+
* @param {*} y2 // |-|中竖线的底部y轴坐标
|
|
5224
|
+
* @param {*} position // 定位当前线是左侧线还是右侧线
|
|
5225
|
+
* @return {*}
|
|
4990
5226
|
*/
|
|
4991
5227
|
drawGroup: function drawGroup(x1, x2, y1, y2, i, j, others) {
|
|
4992
|
-
var
|
|
4993
|
-
var point;
|
|
4994
|
-
var left;
|
|
5228
|
+
var _this6 = this;
|
|
4995
5229
|
|
|
4996
|
-
|
|
4997
|
-
point
|
|
4998
|
-
left = x1 - this.propItems.xCellWidth / 2;
|
|
4999
|
-
} else {
|
|
5000
|
-
point = [x2, y1, x2, y2];
|
|
5001
|
-
left = x2 - this.propItems.xCellWidth / 2;
|
|
5002
|
-
}
|
|
5230
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
5231
|
+
var id, point, left, position, customIcon, line, common, _customIcon, rect;
|
|
5003
5232
|
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
selectable: true,
|
|
5019
|
-
evented: true,
|
|
5020
|
-
originX: 'center',
|
|
5021
|
-
originY: 'center',
|
|
5022
|
-
id: id,
|
|
5023
|
-
rowIndex: i,
|
|
5024
|
-
colIndex: j
|
|
5025
|
-
}, this.eventStyle), others), {}, {
|
|
5026
|
-
lockMovementY: true // 锁定Y轴,即只能x轴方向移动
|
|
5233
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
5234
|
+
while (1) {
|
|
5235
|
+
switch (_context2.prev = _context2.next) {
|
|
5236
|
+
case 0:
|
|
5237
|
+
id = '_lineGroup_' + Date.now();
|
|
5238
|
+
position = others.position, customIcon = others.customIcon;
|
|
5239
|
+
|
|
5240
|
+
if (position === 'left') {
|
|
5241
|
+
point = [x1, y1, x1, y2];
|
|
5242
|
+
left = x1 - _this6.propItems.xCellWidth / 2;
|
|
5243
|
+
} else {
|
|
5244
|
+
point = [x2, y1, x2, y2];
|
|
5245
|
+
left = x2 - _this6.propItems.xCellWidth / 2;
|
|
5246
|
+
}
|
|
5027
5247
|
|
|
5028
|
-
|
|
5248
|
+
common = {
|
|
5249
|
+
selectable: false,
|
|
5250
|
+
evented: false
|
|
5251
|
+
};
|
|
5252
|
+
|
|
5253
|
+
if (!customIcon) {
|
|
5254
|
+
_context2.next = 11;
|
|
5255
|
+
break;
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5258
|
+
_customIcon = _this6.linesObj.customIcon || {
|
|
5259
|
+
type: 'circle'
|
|
5260
|
+
};
|
|
5261
|
+
_context2.next = 8;
|
|
5262
|
+
return _this6.createPoint(_customIcon.type, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
5263
|
+
left: x1,
|
|
5264
|
+
top: y1 + (y2 - y1) / 2,
|
|
5265
|
+
originY: 'center'
|
|
5266
|
+
}, _customIcon.style || {}), common));
|
|
5267
|
+
|
|
5268
|
+
case 8:
|
|
5269
|
+
line = _context2.sent;
|
|
5270
|
+
_context2.next = 12;
|
|
5271
|
+
break;
|
|
5272
|
+
|
|
5273
|
+
case 11:
|
|
5274
|
+
line = _this6.drawLine(point, Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this6.linesObj.dataLineStyle), common));
|
|
5275
|
+
|
|
5276
|
+
case 12:
|
|
5277
|
+
rect = new _this6.fabric.Rect({
|
|
5278
|
+
width: _this6.propItems.xCellWidth,
|
|
5279
|
+
height: y2 - y1,
|
|
5280
|
+
fill: 'transparent',
|
|
5281
|
+
left: left,
|
|
5282
|
+
top: y1,
|
|
5283
|
+
selectable: false,
|
|
5284
|
+
evented: false
|
|
5285
|
+
});
|
|
5286
|
+
return _context2.abrupt("return", new _this6.fabric.Group([line, rect], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
5287
|
+
selectable: true,
|
|
5288
|
+
evented: true,
|
|
5289
|
+
originX: 'center',
|
|
5290
|
+
originY: 'center',
|
|
5291
|
+
id: id,
|
|
5292
|
+
rowIndex: i,
|
|
5293
|
+
colIndex: j
|
|
5294
|
+
}, _this6.eventStyle), others), {}, {
|
|
5295
|
+
lockMovementY: true // 锁定Y轴,即只能x轴方向移动
|
|
5296
|
+
|
|
5297
|
+
})));
|
|
5298
|
+
|
|
5299
|
+
case 14:
|
|
5300
|
+
case "end":
|
|
5301
|
+
return _context2.stop();
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
}, _callee2);
|
|
5305
|
+
}))();
|
|
5029
5306
|
},
|
|
5030
5307
|
hoverEvent: function hoverEvent(point, attr) {
|
|
5031
|
-
var
|
|
5308
|
+
var _this7 = this;
|
|
5032
5309
|
|
|
5033
5310
|
var textObj = attr.textObj,
|
|
5034
5311
|
startTime = attr.startTime,
|
|
@@ -5037,14 +5314,14 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
5037
5314
|
endTime && (point.endTime = endTime);
|
|
5038
5315
|
textObj && (point.textObj = textObj);
|
|
5039
5316
|
point.on('mouseover', function () {
|
|
5040
|
-
|
|
5317
|
+
_this7.showDrapPopup(point);
|
|
5041
5318
|
});
|
|
5042
5319
|
point.on('mouseout', function () {
|
|
5043
|
-
|
|
5320
|
+
_this7.isDropVisible = false;
|
|
5044
5321
|
});
|
|
5045
5322
|
},
|
|
5046
5323
|
lineEvent: function lineEvent(attr) {
|
|
5047
|
-
var
|
|
5324
|
+
var _this8 = this;
|
|
5048
5325
|
|
|
5049
5326
|
var line = attr.line,
|
|
5050
5327
|
line1 = attr.line1,
|
|
@@ -5072,26 +5349,26 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
5072
5349
|
}); // 移动中 实时更新相关联的线的坐标
|
|
5073
5350
|
|
|
5074
5351
|
line.on('moving', function () {
|
|
5075
|
-
|
|
5352
|
+
_this8.lineMoveLimit(line);
|
|
5076
5353
|
|
|
5077
|
-
|
|
5354
|
+
_this8.lineMoveUpdateLine(line);
|
|
5078
5355
|
|
|
5079
|
-
|
|
5356
|
+
_this8.textUpdatePositionX(line); // this.canvas.renderAll();
|
|
5080
5357
|
|
|
5081
5358
|
|
|
5082
|
-
|
|
5359
|
+
_this8.showDrapPopup(line);
|
|
5083
5360
|
});
|
|
5084
5361
|
line.on('moved', function () {
|
|
5085
5362
|
// const objBoundingBox = line.getBoundingRect();
|
|
5086
5363
|
if (line && line.id.includes('_lineGroup_')) {
|
|
5087
|
-
|
|
5364
|
+
_this8.isDropVisible = false;
|
|
5088
5365
|
|
|
5089
|
-
var
|
|
5090
|
-
lineObj =
|
|
5366
|
+
var _this8$updateData = _this8.updateData(line),
|
|
5367
|
+
lineObj = _this8$updateData.lineObj;
|
|
5091
5368
|
|
|
5092
|
-
|
|
5369
|
+
_this8.updateLine(line.rowIndex);
|
|
5093
5370
|
|
|
5094
|
-
|
|
5371
|
+
_this8.$emit('lineChange', {
|
|
5095
5372
|
ponits: {
|
|
5096
5373
|
x: line.left,
|
|
5097
5374
|
y: line.top
|
|
@@ -5196,22 +5473,22 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
5196
5473
|
},
|
|
5197
5474
|
// 直线数组更新后 移除旧的直线并绘制新的直线,处理拖动限制不能更新的问题
|
|
5198
5475
|
updateLine: function updateLine(rowIndex) {
|
|
5199
|
-
var
|
|
5476
|
+
var _this9 = this;
|
|
5200
5477
|
|
|
5201
5478
|
this.canvas.forEachObject(function (obj) {
|
|
5202
5479
|
if (obj.rowIndex === rowIndex) {
|
|
5203
|
-
|
|
5480
|
+
_this9.canvas.remove(obj);
|
|
5204
5481
|
}
|
|
5205
5482
|
});
|
|
5206
5483
|
this.drawLineData(this.lines[rowIndex], rowIndex);
|
|
5207
5484
|
},
|
|
5208
5485
|
// 移除头部表格所有线条数字数据
|
|
5209
5486
|
removeLines: function removeLines() {
|
|
5210
|
-
var
|
|
5487
|
+
var _this10 = this;
|
|
5211
5488
|
|
|
5212
5489
|
this.canvas.forEachObject(function (obj) {
|
|
5213
5490
|
if (obj.id && obj.id.includes('_lineGroup_')) {
|
|
5214
|
-
|
|
5491
|
+
_this10.canvas.remove(obj);
|
|
5215
5492
|
}
|
|
5216
5493
|
});
|
|
5217
5494
|
this.lines = [];
|
|
@@ -5316,8 +5593,8 @@ var FabricLinesvue_type_script_lang_js_rightClickNode = [{
|
|
|
5316
5593
|
|
|
5317
5594
|
var FabricLines_component = Object(componentNormalizer["a" /* default */])(
|
|
5318
5595
|
fabric_chart_FabricLinesvue_type_script_lang_js_,
|
|
5319
|
-
|
|
5320
|
-
|
|
5596
|
+
FabricLinesvue_type_template_id_f554e3a2_render,
|
|
5597
|
+
FabricLinesvue_type_template_id_f554e3a2_staticRenderFns,
|
|
5321
5598
|
false,
|
|
5322
5599
|
null,
|
|
5323
5600
|
null,
|
|
@@ -6683,6 +6960,17 @@ function _objectSpread2(target) {
|
|
|
6683
6960
|
return target;
|
|
6684
6961
|
}
|
|
6685
6962
|
|
|
6963
|
+
/***/ }),
|
|
6964
|
+
|
|
6965
|
+
/***/ "562e5":
|
|
6966
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6967
|
+
|
|
6968
|
+
"use strict";
|
|
6969
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_3b20fb44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7278");
|
|
6970
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_3b20fb44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TimeScaleValue_vue_vue_type_style_index_0_id_3b20fb44_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
6971
|
+
/* unused harmony reexport * */
|
|
6972
|
+
|
|
6973
|
+
|
|
6686
6974
|
/***/ }),
|
|
6687
6975
|
|
|
6688
6976
|
/***/ "5692":
|
|
@@ -6988,6 +7276,13 @@ var TEMPLATE = String(String).split('String');
|
|
|
6988
7276
|
});
|
|
6989
7277
|
|
|
6990
7278
|
|
|
7279
|
+
/***/ }),
|
|
7280
|
+
|
|
7281
|
+
/***/ "7278":
|
|
7282
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7283
|
+
|
|
7284
|
+
// extracted by mini-css-extract-plugin
|
|
7285
|
+
|
|
6991
7286
|
/***/ }),
|
|
6992
7287
|
|
|
6993
7288
|
/***/ "7418":
|
|
@@ -7632,13 +7927,6 @@ module.exports = {
|
|
|
7632
7927
|
};
|
|
7633
7928
|
|
|
7634
7929
|
|
|
7635
|
-
/***/ }),
|
|
7636
|
-
|
|
7637
|
-
/***/ "b4ea":
|
|
7638
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7639
|
-
|
|
7640
|
-
// extracted by mini-css-extract-plugin
|
|
7641
|
-
|
|
7642
7930
|
/***/ }),
|
|
7643
7931
|
|
|
7644
7932
|
/***/ "b575":
|