cnhis-design-vue 3.1.18-beta.6 → 3.1.18-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/index2.js +10 -0
- package/es/components/big-table/index.d.ts +47 -98
- package/es/components/big-table/index.js +2 -18
- package/es/components/big-table/index2.js +19 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +63 -99
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +13 -13
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableEmits2.js +53 -0
- package/es/components/big-table/src/bigTableProps.js +1 -119
- package/es/components/big-table/src/bigTableProps2.js +119 -0
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/bigTableState2.js +62 -0
- package/es/components/big-table/src/components/edit-form/edit-date.js +2 -2
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +6 -16
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -19
- package/es/components/big-table/src/components/edit-form/useCommon2.js +19 -0
- package/es/components/big-table/src/components/input-button.vue.d.ts +28 -37
- package/es/components/big-table/src/components/separate.js +1 -1
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/constants/index2.js +3 -0
- package/es/components/big-table/src/hooks/export.js +1 -1
- package/es/components/big-table/src/hooks/index.js +8 -8
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnchor2.js +49 -0
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -1
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -289
- package/es/components/big-table/src/hooks/useBatchEditing2.js +289 -0
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor.js +1 -154
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor2.js +154 -0
- package/es/components/big-table/src/hooks/useEdit.d.ts +6 -16
- package/es/components/big-table/src/hooks/useEdit.js +1 -122
- package/es/components/big-table/src/hooks/useEdit2.js +122 -0
- package/es/components/big-table/src/hooks/useEvent.js +1 -72
- package/es/components/big-table/src/hooks/useEvent2.js +72 -0
- package/es/components/big-table/src/hooks/useFormat.js +1 -492
- package/es/components/big-table/src/hooks/useFormat2.js +492 -0
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useNestTable2.js +86 -0
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -164
- package/es/components/big-table/src/hooks/useSeparateRow2.js +164 -0
- package/es/components/big-table/src/hooks/useTableParse.js +1 -136
- package/es/components/big-table/src/hooks/useTableParse2.js +136 -0
- package/es/components/big-table/src/utils.js +1 -630
- package/es/components/big-table/src/utils2.js +630 -0
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/index2.js +10 -0
- package/es/components/button-print/index.d.ts +113 -190
- package/es/components/button-print/index.js +2 -11
- package/es/components/button-print/index2.js +11 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +113 -190
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.js +2 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +59 -117
- package/es/components/button-print/src/utils/dialog.d.ts +6 -0
- package/es/components/button-print/src/utils/dialog.js +65 -0
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +6 -0
- package/es/components/button-print/src/utils/print.js +1 -325
- package/es/components/button-print/src/utils/print2.js +330 -0
- package/es/components/chunk-upload/index.d.ts +22 -28
- package/es/components/chunk-upload/index.js +1 -14
- package/es/components/chunk-upload/index2.js +14 -0
- package/es/components/chunk-upload/src/chunk-upload-new.js +2 -2
- package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +32 -38
- package/es/components/chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/chunk-upload/src/hooks/upload-computed2.js +70 -0
- package/es/components/chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/chunk-upload/src/hooks/upload-data2.js +96 -0
- package/es/components/chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/chunk-upload/src/hooks/vod-computed2.js +79 -0
- package/es/components/chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/chunk-upload/src/hooks/vod-data2.js +28 -0
- package/es/components/chunk-upload/src/vod-chunk-upload/index.js +0 -1
- package/es/components/chunk-upload/src/vod-chunk-upload/index2.js +2 -0
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +2 -2
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +22 -28
- package/es/components/drag-layout/index.d.ts +298 -478
- package/es/components/drag-layout/index.js +1 -11
- package/es/components/drag-layout/index2.js +11 -0
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +92 -147
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +79 -110
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +298 -478
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/index2.js +10 -0
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/index2.js +10 -0
- package/es/components/fabric-chart/src/FabricChart.js +9 -9
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.js +1 -1
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/components/useStyle2.js +36 -0
- package/es/components/fabric-chart/src/hooks/constant.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant2.js +36 -0
- package/es/components/fabric-chart/src/hooks/index.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -85
- package/es/components/fabric-chart/src/hooks/useBottom2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -534
- package/es/components/fabric-chart/src/hooks/useCenter2.js +534 -0
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -60
- package/es/components/fabric-chart/src/hooks/useCumputedPoint2.js +60 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -153
- package/es/components/fabric-chart/src/hooks/useDraw2.js +153 -0
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -85
- package/es/components/fabric-chart/src/hooks/useEvent2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -50
- package/es/components/fabric-chart/src/hooks/useGrid2.js +50 -0
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -282
- package/es/components/fabric-chart/src/hooks/useLeft2.js +282 -0
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -85
- package/es/components/fabric-chart/src/hooks/useOther2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -27
- package/es/components/fabric-chart/src/hooks/useRight2.js +27 -0
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -127
- package/es/components/fabric-chart/src/hooks/useShadow2.js +127 -0
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -138
- package/es/components/fabric-chart/src/hooks/useTop2.js +138 -0
- package/es/components/fabric-chart/src/interface.js +1 -4
- package/es/components/fabric-chart/src/interface2.js +4 -0
- package/es/components/field-set/index.d.ts +92 -142
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/index2.js +10 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +92 -142
- package/es/components/form-config/index.d.ts +122 -264
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/index2.js +10 -0
- package/es/components/form-config/src/FormConfig.js +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +122 -264
- package/es/components/form-config/src/components/FormConfigCreator.js +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +57 -107
- package/es/components/form-config/src/components/FormConfigDragDisplay.js +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.js +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -129
- package/es/components/form-config/src/components/renderer/CloseButton.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +22 -28
- package/es/components/form-config/src/components/renderer/ComplexNode.js +2 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +22 -28
- package/es/components/form-config/src/components/renderer/DefaultNode.js +2 -2
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +47 -60
- package/es/components/form-config/src/constants/index.js +1 -60
- package/es/components/form-config/src/constants/index2.js +60 -0
- package/es/components/form-config/src/hooks/index.js +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -52
- package/es/components/form-config/src/hooks/useConfigurationField2.js +52 -0
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -27
- package/es/components/form-config/src/hooks/useSortalbeConfig2.js +27 -0
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-config/src/utils/index2.js +26 -0
- package/es/components/form-render/index.d.ts +31 -69
- package/es/components/form-render/index.js +14 -23
- package/es/components/form-render/index2.js +46 -0
- package/es/components/form-render/src/FormRender.js +10 -10
- package/es/components/form-render/src/FormRender.vue.d.ts +31 -69
- package/es/components/form-render/src/components/renderer/cascader.js +6 -6
- package/es/components/form-render/src/components/renderer/checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/combination.js +4 -4
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +3 -3
- package/es/components/form-render/src/components/renderer/formItem.js +3 -3
- package/es/components/form-render/src/components/renderer/index.js +1 -1
- package/es/components/form-render/src/components/renderer/index2.js +18 -0
- package/es/components/form-render/src/components/renderer/input.js +2 -2
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -8
- package/es/components/form-render/src/components/renderer/inputGroup2.js +8 -0
- package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -33
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate2.js +33 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +2 -2
- package/es/components/form-render/src/components/renderer/linebar.js +3 -3
- package/es/components/form-render/src/components/renderer/radio.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +6 -6
- package/es/components/form-render/src/components/renderer/slider.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +2 -2
- package/es/components/form-render/src/constants/index.js +1 -41
- package/es/components/form-render/src/constants/index2.js +41 -0
- package/es/components/form-render/src/hooks/index.js +13 -13
- package/es/components/form-render/src/hooks/useAnchor.js +1 -90
- package/es/components/form-render/src/hooks/useAnchor2.js +90 -0
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -144
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +144 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -98
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +98 -0
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useChangeContext2.js +20 -0
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -32
- package/es/components/form-render/src/hooks/useCommonInjection2.js +32 -0
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -10
- package/es/components/form-render/src/hooks/useCommonLog2.js +10 -0
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -243
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +243 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -67
- package/es/components/form-render/src/hooks/useFieldNormalize2.js +67 -0
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -38
- package/es/components/form-render/src/hooks/useFieldVisitor2.js +38 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -66
- package/es/components/form-render/src/hooks/useFormContext2.js +66 -0
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormField2.js +13 -0
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -34
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +34 -0
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle2.js +10 -0
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -12
- package/es/components/form-render/src/hooks/useFormRequest2.js +12 -0
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -67
- package/es/components/form-render/src/hooks/useFormValidator2.js +67 -0
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -25
- package/es/components/form-render/src/hooks/usePresetScope2.js +25 -0
- package/es/components/form-render/src/utils/business.js +1 -78
- package/es/components/form-render/src/utils/business2.js +78 -0
- package/es/components/form-render/src/utils/dom.js +1 -14
- package/es/components/form-render/src/utils/dom2.js +14 -0
- package/es/components/form-render/src/utils/index.js +3 -4
- package/es/components/form-render/src/utils/schema.js +1 -93
- package/es/components/form-render/src/utils/schema2.js +93 -0
- package/es/components/form-table/index.d.ts +408 -654
- package/es/components/form-table/index.js +1 -10
- package/es/components/form-table/index2.js +10 -0
- package/es/components/form-table/src/FormTable.js +2 -2
- package/es/components/form-table/src/FormTable.vue.d.ts +408 -654
- package/es/components/form-table/src/components/index.d.ts +408 -654
- package/es/components/form-table/src/components/index.js +1 -40
- package/es/components/form-table/src/components/index2.js +40 -0
- package/es/components/form-table/src/components/table-age.js +1 -1
- package/es/components/form-table/src/components/table-age.vue.d.ts +61 -101
- package/es/components/form-table/src/components/table-date-picker.js +2 -2
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +26 -59
- package/es/components/form-table/src/components/table-digital.js +1 -1
- package/es/components/form-table/src/components/table-digital.vue.d.ts +4 -26
- package/es/components/form-table/src/components/table-input-password.js +1 -1
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-input.js +1 -1
- package/es/components/form-table/src/components/table-input.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-month-picker.js +2 -2
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +26 -59
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +22 -28
- package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/form-table/src/components/table-search.vue.d.ts +79 -103
- package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/form-table/src/components/table-select-multiple.js +1 -1
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +57 -75
- package/es/components/form-table/src/components/table-select.js +1 -1
- package/es/components/form-table/src/components/table-select.vue.d.ts +57 -75
- package/es/components/form-table/src/components/table-textarea.js +1 -1
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-time-picker.js +2 -2
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +19 -23
- package/es/components/form-table/src/components/table-tree-select.js +1 -1
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +31 -46
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -8
- package/es/components/form-table/src/configs/index.js +1 -67
- package/es/components/form-table/src/configs/index2.js +67 -0
- package/es/components/form-table/src/hooks/index.js +5 -5
- package/es/components/form-table/src/hooks/useBoundDate.js +1 -414
- package/es/components/form-table/src/hooks/useBoundDate2.js +414 -0
- package/es/components/form-table/src/hooks/useDateType.js +1 -160
- package/es/components/form-table/src/hooks/useDateType2.js +160 -0
- package/es/components/form-table/src/hooks/useFormCommon.js +1 -101
- package/es/components/form-table/src/hooks/useFormCommon2.js +101 -0
- package/es/components/form-table/src/hooks/useFormEvent.js +1 -68
- package/es/components/form-table/src/hooks/useFormEvent2.js +68 -0
- package/es/components/form-table/src/hooks/useItemDefault.js +1 -218
- package/es/components/form-table/src/hooks/useItemDefault2.js +218 -0
- package/es/components/form-table/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-table/src/hooks/useNuiThemeOverrides2.js +18 -0
- package/es/components/form-table/src/hooks/useSearch.js +1 -1154
- package/es/components/form-table/src/hooks/useSearch2.js +1154 -0
- package/es/components/form-table/src/hooks/useValidate.js +1 -480
- package/es/components/form-table/src/hooks/useValidate2.js +480 -0
- package/es/components/grid/index.js +1 -13
- package/es/components/grid/index2.js +13 -0
- package/es/components/grid/src/Grid.js +1 -1
- package/es/components/grid/src/hooks.js +1 -165
- package/es/components/grid/src/hooks2.js +165 -0
- package/es/components/index.js +39 -96
- package/es/components/index2.js +79 -0
- package/es/components/info-header/index.d.ts +58 -233
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/index2.js +10 -0
- package/es/components/info-header/src/HiddenContent.vue.d.ts +5 -12
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +5 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +58 -233
- package/es/components/map/index.d.ts +28 -37
- package/es/components/map/index.js +1 -10
- package/es/components/map/index2.js +10 -0
- package/es/components/map/src/Map.vue.d.ts +28 -37
- package/es/components/scale-view/index.d.ts +60 -74
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/index2.js +35 -0
- package/es/components/scale-view/src/ScaleView.js +8 -8
- package/es/components/scale-view/src/ScaleView.vue.d.ts +60 -74
- package/es/components/scale-view/src/components/EvaluateCountdown.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +22 -28
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +1 -1
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/composables/choose-common2.js +83 -0
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/address2.js +3993 -0
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -8
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -309
- package/es/components/scale-view/src/hooks/scaleview-computed2.js +309 -0
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-init2.js +437 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-props2.js +81 -0
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-state2.js +38 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-submit2.js +154 -0
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/scaleview-validate2.js +187 -0
- package/es/components/scale-view/src/hooks/use-component.d.ts +177 -623
- package/es/components/scale-view/src/hooks/use-component.js +1 -82
- package/es/components/scale-view/src/hooks/use-component2.js +82 -0
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-evaluate2.js +150 -0
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-event2.js +129 -0
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/hooks/use-noData2.js +41 -0
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/scale-view/src/utils/judge-types2.js +36 -0
- package/es/components/select-label/index.d.ts +253 -905
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/index2.js +15 -0
- package/es/components/select-label/src/LabelFormContent.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +98 -313
- package/es/components/select-label/src/SelectLabel.vue.d.ts +162 -607
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.d.ts +70 -246
- package/es/components/select-person/index.d.ts +111 -151
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/index2.js +10 -0
- package/es/components/select-person/src/SearchTree.vue.d.ts +40 -55
- package/es/components/select-person/src/SelectPerson.vue.d.ts +117 -159
- package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/select-person/src/utils/index.js +1 -84
- package/es/components/select-person/src/utils/index2.js +84 -0
- package/es/components/shortcut-provider/index.js +3 -12
- package/es/components/shortcut-provider/index2.js +13 -0
- package/es/components/shortcut-provider/src/ShortcutProvider.js +3 -3
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/constants/index2.js +8 -0
- package/es/components/shortcut-provider/src/hooks/index.js +2 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature2.js +12 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -181
- package/es/components/shortcut-provider/src/hooks/useShortcuts2.js +181 -0
- package/es/components/shortcut-provider/src/utils/index.js +1 -59
- package/es/components/shortcut-provider/src/utils/index2.js +59 -0
- package/es/components/shortcut-setter/index.d.ts +31 -69
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/index2.js +10 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.js +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -69
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +6 -9
- package/es/components/steps-wheel/index.d.ts +2 -8
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/index2.js +10 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +2 -8
- package/es/components/time-line/index.d.ts +30 -55
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/index2.js +10 -0
- package/es/components/time-line/src/TimeLine.vue.d.ts +30 -55
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +22 -28
- package/es/shared/components/SelectPage/index.js +0 -1
- package/es/shared/components/SelectPage/index2.js +2 -0
- package/es/shared/components/SlotRender/index.js +0 -1
- package/es/shared/components/SlotRender/index2.js +2 -0
- package/es/shared/components/SvgIcon/index.js +0 -1
- package/es/shared/components/SvgIcon/index2.js +2 -0
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +2 -8
- package/es/shared/components/TextOverTooltip/index.js +0 -1
- package/es/shared/components/TextOverTooltip/index2.js +2 -0
- package/es/shared/global/variable.js +1 -4
- package/es/shared/global/variable2.js +4 -0
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/anime2.js +129 -0
- package/es/shared/utils/clickoutside.js +1 -48
- package/es/shared/utils/clickoutside2.js +48 -0
- package/es/shared/utils/colorLog.js +1 -44
- package/es/shared/utils/colorLog2.js +44 -0
- package/es/shared/utils/index.js +1 -25
- package/es/shared/utils/index2.js +25 -0
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/loadViewer2.js +11 -0
- package/es/shared/utils/loadVxe.js +1 -12
- package/es/shared/utils/loadVxe2.js +12 -0
- package/es/shared/utils/state.js +1 -44
- package/es/shared/utils/state2.js +44 -0
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +2 -17
- package/es/shared/utils/tapable/AsyncParallelHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -19
- package/es/shared/utils/tapable/SyncBailHook.js +2 -23
- package/es/shared/utils/tapable/SyncHook.js +2 -23
- package/es/shared/utils/tapable/SyncLoopHook.js +2 -23
- package/es/shared/utils/utilExpand.js +46 -46
- package/es/shared/utils/vexutils.js +1 -22
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select-table.js +0 -149
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +0 -373
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +0 -131
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.js +0 -18
- package/es/components/bpmn-workflow/src/custom/customModeler/index.js +0 -12
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +0 -47
- package/es/components/bpmn-workflow/src/custom/customRules/no-task.js +0 -1
- package/es/components/bpmn-workflow/src/custom/customRules/no-task2.js +0 -16
- package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.js +0 -15
- package/es/components/bpmn-workflow/src/custom/customTranslate/zh.js +0 -227
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +0 -80
- package/es/shared/components/player-vod/index.js +0 -14
- package/es/shared/components/player-vod/video-list.js +0 -126
- package/es/shared/core/create.js +0 -8
- package/es/shared/utils/crypto.js +0 -25
- package/es/shared/utils/tapable/HookMap.js +0 -32
- package/es/shared/utils/tapable/MultiHook.js +0 -38
- package/es/shared/utils/tapable/index.js +0 -12
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ref, onBeforeUpdate, computed, unref } from 'vue';
|
|
2
|
+
|
|
3
|
+
function useState(initValue) {
|
|
4
|
+
const state = ref(initValue);
|
|
5
|
+
const getState = (isRef) => isRef ? state : unref(state);
|
|
6
|
+
return [getState, (val) => state.value = val];
|
|
7
|
+
}
|
|
8
|
+
function useRef() {
|
|
9
|
+
return useState(null)[0];
|
|
10
|
+
}
|
|
11
|
+
function useRefs() {
|
|
12
|
+
const itemRefs = /* @__PURE__ */ new Set();
|
|
13
|
+
const setItemRef = (el) => el && itemRefs.add(el);
|
|
14
|
+
onBeforeUpdate(() => itemRefs.clear());
|
|
15
|
+
return [itemRefs, setItemRef];
|
|
16
|
+
}
|
|
17
|
+
function useRefsArray() {
|
|
18
|
+
let itemRefs = [];
|
|
19
|
+
const setItemRef = (el) => {
|
|
20
|
+
itemRefs.push(el);
|
|
21
|
+
};
|
|
22
|
+
onBeforeUpdate(() => {
|
|
23
|
+
itemRefs = [];
|
|
24
|
+
});
|
|
25
|
+
return [itemRefs, setItemRef];
|
|
26
|
+
}
|
|
27
|
+
function isWritableComputedOptions(arg) {
|
|
28
|
+
return typeof arg === "object" && Reflect.has(arg || {}, "set");
|
|
29
|
+
}
|
|
30
|
+
function useComputed(arg) {
|
|
31
|
+
const data = isWritableComputedOptions(arg) ? computed(arg) : computed(arg);
|
|
32
|
+
const getData = (isRef) => isRef ? data : data.value;
|
|
33
|
+
if (!isWritableComputedOptions(arg)) {
|
|
34
|
+
return getData;
|
|
35
|
+
}
|
|
36
|
+
return [getData, (val) => data.value = val];
|
|
37
|
+
}
|
|
38
|
+
function getRefs(obj) {
|
|
39
|
+
const result = {};
|
|
40
|
+
Object.entries(obj).forEach(([k, fn]) => result[k] = fn(true));
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { getRefs, useComputed, useRef, useRefs, useRefsArray, useState };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncParallelBailHookCodeFactory extends HookCodeFactory {
|
|
@@ -60,19 +60,4 @@ class AsyncParallelBailHookCodeFactory extends HookCodeFactory {
|
|
|
60
60
|
return code;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
const COMPILE = function(options) {
|
|
65
|
-
factory.setup(this, options);
|
|
66
|
-
return factory.create(options);
|
|
67
|
-
};
|
|
68
|
-
function AsyncParallelBailHook(args = [], name = void 0) {
|
|
69
|
-
const hook = new Hook(args, name);
|
|
70
|
-
hook.constructor = AsyncParallelBailHook;
|
|
71
|
-
hook.compile = COMPILE;
|
|
72
|
-
hook._call = void 0;
|
|
73
|
-
hook.call = void 0;
|
|
74
|
-
return hook;
|
|
75
|
-
}
|
|
76
|
-
AsyncParallelBailHook.prototype = null;
|
|
77
|
-
|
|
78
|
-
export { AsyncParallelBailHook as default };
|
|
63
|
+
new AsyncParallelBailHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncParallelHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncParallelHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncParallelHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncParallelHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncParallelHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncParallelHook as default };
|
|
12
|
+
new AsyncParallelHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesBailHookCodeFactory extends HookCodeFactory {
|
|
@@ -15,19 +15,4 @@ ${next()}}
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
const COMPILE = function(options) {
|
|
20
|
-
factory.setup(this, options);
|
|
21
|
-
return factory.create(options);
|
|
22
|
-
};
|
|
23
|
-
function AsyncSeriesBailHook(args = [], name = void 0) {
|
|
24
|
-
const hook = new Hook(args, name);
|
|
25
|
-
hook.constructor = AsyncSeriesBailHook;
|
|
26
|
-
hook.compile = COMPILE;
|
|
27
|
-
hook._call = void 0;
|
|
28
|
-
hook.call = void 0;
|
|
29
|
-
return hook;
|
|
30
|
-
}
|
|
31
|
-
AsyncSeriesBailHook.prototype = null;
|
|
32
|
-
|
|
33
|
-
export { AsyncSeriesBailHook as default };
|
|
18
|
+
new AsyncSeriesBailHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncSeriesHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncSeriesHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncSeriesHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncSeriesHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncSeriesHook as default };
|
|
12
|
+
new AsyncSeriesHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesLoopHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncSeriesLoopHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncSeriesLoopHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncSeriesLoopHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncSeriesLoopHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncSeriesLoopHook as default };
|
|
12
|
+
new AsyncSeriesLoopHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
@@ -20,21 +20,4 @@ class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
const COMPILE = function(options) {
|
|
25
|
-
factory.setup(this, options);
|
|
26
|
-
return factory.create(options);
|
|
27
|
-
};
|
|
28
|
-
function AsyncSeriesWaterfallHook(args = [], name = void 0) {
|
|
29
|
-
if (args.length < 1)
|
|
30
|
-
throw new Error("Waterfall hooks must have at least one argument");
|
|
31
|
-
const hook = new Hook(args, name);
|
|
32
|
-
hook.constructor = AsyncSeriesWaterfallHook;
|
|
33
|
-
hook.compile = COMPILE;
|
|
34
|
-
hook._call = void 0;
|
|
35
|
-
hook.call = void 0;
|
|
36
|
-
return hook;
|
|
37
|
-
}
|
|
38
|
-
AsyncSeriesWaterfallHook.prototype = null;
|
|
39
|
-
|
|
40
|
-
export { AsyncSeriesWaterfallHook as default };
|
|
23
|
+
new AsyncSeriesWaterfallHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class SyncBailHookCodeFactory extends HookCodeFactory {
|
|
@@ -16,25 +16,4 @@ ${next()}}
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
const TAP_ASYNC = () => {
|
|
21
|
-
throw new Error("tapAsync is not supported on a SyncBailHook");
|
|
22
|
-
};
|
|
23
|
-
const TAP_PROMISE = () => {
|
|
24
|
-
throw new Error("tapPromise is not supported on a SyncBailHook");
|
|
25
|
-
};
|
|
26
|
-
const COMPILE = function(options) {
|
|
27
|
-
factory.setup(this, options);
|
|
28
|
-
return factory.create(options);
|
|
29
|
-
};
|
|
30
|
-
function SyncBailHook(args = [], name = void 0) {
|
|
31
|
-
const hook = new Hook(args, name);
|
|
32
|
-
hook.constructor = SyncBailHook;
|
|
33
|
-
hook.tapAsync = TAP_ASYNC;
|
|
34
|
-
hook.tapPromise = TAP_PROMISE;
|
|
35
|
-
hook.compile = COMPILE;
|
|
36
|
-
return hook;
|
|
37
|
-
}
|
|
38
|
-
SyncBailHook.prototype = null;
|
|
39
|
-
|
|
40
|
-
export { SyncBailHook as default };
|
|
19
|
+
new SyncBailHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class SyncHookCodeFactory extends HookCodeFactory {
|
|
@@ -10,25 +10,4 @@ class SyncHookCodeFactory extends HookCodeFactory {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
const TAP_ASYNC = () => {
|
|
15
|
-
throw new Error("tapAsync is not supported on a SyncHook");
|
|
16
|
-
};
|
|
17
|
-
const TAP_PROMISE = () => {
|
|
18
|
-
throw new Error("tapPromise is not supported on a SyncHook");
|
|
19
|
-
};
|
|
20
|
-
const COMPILE = function(options) {
|
|
21
|
-
factory.setup(this, options);
|
|
22
|
-
return factory.create(options);
|
|
23
|
-
};
|
|
24
|
-
function SyncHook(args = [], name = void 0) {
|
|
25
|
-
const hook = new Hook(args, name);
|
|
26
|
-
hook.constructor = SyncHook;
|
|
27
|
-
hook.tapAsync = TAP_ASYNC;
|
|
28
|
-
hook.tapPromise = TAP_PROMISE;
|
|
29
|
-
hook.compile = COMPILE;
|
|
30
|
-
return hook;
|
|
31
|
-
}
|
|
32
|
-
SyncHook.prototype = null;
|
|
33
|
-
|
|
34
|
-
export { SyncHook as default };
|
|
13
|
+
new SyncHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class SyncLoopHookCodeFactory extends HookCodeFactory {
|
|
@@ -10,25 +10,4 @@ class SyncLoopHookCodeFactory extends HookCodeFactory {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
const TAP_ASYNC = () => {
|
|
15
|
-
throw new Error("tapAsync is not supported on a SyncLoopHook");
|
|
16
|
-
};
|
|
17
|
-
const TAP_PROMISE = () => {
|
|
18
|
-
throw new Error("tapPromise is not supported on a SyncLoopHook");
|
|
19
|
-
};
|
|
20
|
-
const COMPILE = function(options) {
|
|
21
|
-
factory.setup(this, options);
|
|
22
|
-
return factory.create(options);
|
|
23
|
-
};
|
|
24
|
-
function SyncLoopHook(args = [], name = void 0) {
|
|
25
|
-
const hook = new Hook(args, name);
|
|
26
|
-
hook.constructor = SyncLoopHook;
|
|
27
|
-
hook.tapAsync = TAP_ASYNC;
|
|
28
|
-
hook.tapPromise = TAP_PROMISE;
|
|
29
|
-
hook.compile = COMPILE;
|
|
30
|
-
return hook;
|
|
31
|
-
}
|
|
32
|
-
SyncLoopHook.prototype = null;
|
|
33
|
-
|
|
34
|
-
export { SyncLoopHook as default };
|
|
13
|
+
new SyncLoopHookCodeFactory();
|
|
@@ -34,25 +34,25 @@ const expandXEUtils = (() => {
|
|
|
34
34
|
getConnection: function(cObj, fVal, field) {
|
|
35
35
|
let con = cObj.con;
|
|
36
36
|
let value = cObj.value;
|
|
37
|
-
if ("NULL"
|
|
37
|
+
if (con == "NULL") {
|
|
38
38
|
if (fVal) {
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
|
-
} else if ("NOT_NULL"
|
|
41
|
+
} else if (con == "NOT_NULL") {
|
|
42
42
|
if (!fVal) {
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
if ("TEXT"
|
|
47
|
-
if ("CL"
|
|
46
|
+
if (field.fieldType == "TEXT") {
|
|
47
|
+
if (con == "CL") {
|
|
48
48
|
if (fVal.indexOf(value) == -1) {
|
|
49
49
|
return false;
|
|
50
50
|
}
|
|
51
|
-
} else if ("NC"
|
|
51
|
+
} else if (con == "NC") {
|
|
52
52
|
if (fVal.indexOf(value) != -1) {
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
|
-
} else if ("EQ"
|
|
55
|
+
} else if (con == "EQ" || con == "QUOTE") {
|
|
56
56
|
if (value.indexOf("|#|") != -1) {
|
|
57
57
|
for (let kw in value.split("|#|")) {
|
|
58
58
|
if (fVal.indexOf(kw) == -1) {
|
|
@@ -64,17 +64,17 @@ const expandXEUtils = (() => {
|
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
} else if ("NEQ"
|
|
67
|
+
} else if (con == "NEQ") {
|
|
68
68
|
if (fVal == value) {
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
} else {
|
|
73
|
-
if ("NUMBER"
|
|
73
|
+
if (field.fieldType == "NUMBER") {
|
|
74
74
|
if (!XEUtils.isNumber(fVal)) {
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
|
-
if ("EQ"
|
|
77
|
+
if (con == "EQ" || con == "QUOTE") {
|
|
78
78
|
if (XEUtils.isNumber(value)) {
|
|
79
79
|
if (fVal * 1 != value * 1) {
|
|
80
80
|
return false;
|
|
@@ -84,19 +84,19 @@ const expandXEUtils = (() => {
|
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
} else if ("NEQ"
|
|
87
|
+
} else if (con == "NEQ") {
|
|
88
88
|
if (XEUtils.isNumber(value)) {
|
|
89
89
|
if (fVal * 1 == value * 1) {
|
|
90
90
|
return false;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
} else if ("BIG"
|
|
93
|
+
} else if (con == "BIG") {
|
|
94
94
|
if (XEUtils.isNumber(value)) {
|
|
95
95
|
if (fVal * 1 <= value * 1) {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
} else if ("LESS"
|
|
99
|
+
} else if (con == "LESS") {
|
|
100
100
|
if (XEUtils.isNumber(value)) {
|
|
101
101
|
if (fVal * 1 >= value * 1) {
|
|
102
102
|
return false;
|
|
@@ -104,7 +104,7 @@ const expandXEUtils = (() => {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
|
-
if ("TODAY"
|
|
107
|
+
if (con == "TODAY" || con == "TOMORROW" || con == "YESTERDAY" || con == "THIS_WEEK" || con == "NEXT_WEEK" || con == "UP_WEEK" || con == "THIS_MONTH" || con == "NEXT_MONTH" || con == "UP_MONTH" || con == "THIS_SEASON" || con == "NEXT_SEASON" || con == "UP_SEASON" || con == "THIS_YEAR" || con == "NEXT_YEAR" || con == "UP_YEAR") {
|
|
108
108
|
if (XEUtils.isDate(fVal)) {
|
|
109
109
|
let curDate = new Date();
|
|
110
110
|
let startDate;
|
|
@@ -112,72 +112,72 @@ const expandXEUtils = (() => {
|
|
|
112
112
|
let oneDayTime = 24 * 60 * 60 * 1e3;
|
|
113
113
|
let fDate = XEUtils.convertDate(fVal);
|
|
114
114
|
let curDateStr = XEUtils.toDateString(curDate, "yyyy-MM-dd");
|
|
115
|
-
if ("TODAY"
|
|
115
|
+
if (con == "TODAY") {
|
|
116
116
|
startDate = XEUtils.convertDate(curDateStr + " 00:00:00");
|
|
117
117
|
endDate = XEUtils.convertDate(curDateStr + " 23:59:59");
|
|
118
|
-
} else if ("TOMORROW"
|
|
118
|
+
} else if (con == "TOMORROW") {
|
|
119
119
|
let tomorrowDate = XEUtils.addDate(curDate, 1, "D");
|
|
120
120
|
let dateStr = tomorrowDate.format("yyyy-MM-dd");
|
|
121
121
|
startDate = XEUtils.convertDate(dateStr + " 00:00:00");
|
|
122
122
|
endDate = XEUtils.convertDate(dateStr + " 23:59:59");
|
|
123
|
-
} else if ("YESTERDAY"
|
|
123
|
+
} else if (con == "YESTERDAY") {
|
|
124
124
|
let tomorrowDate = XEUtils.addDate(curDate, -1, "D");
|
|
125
125
|
let dateStr = tomorrowDate.format("yyyy-MM-dd");
|
|
126
126
|
startDate = XEUtils.convertDate(dateStr + " 00:00:00");
|
|
127
127
|
endDate = XEUtils.convertDate(dateStr + " 23:59:59");
|
|
128
|
-
} else if ("THIS_WEEK"
|
|
128
|
+
} else if (con == "THIS_WEEK") {
|
|
129
129
|
let day = curDate.getDay() || 7;
|
|
130
130
|
let mondayTime = curDate.getTime() - (day - 1) * oneDayTime;
|
|
131
131
|
let mundayTime = curDate.getTime() + (7 - day) * oneDayTime;
|
|
132
132
|
startDate = new Date(mondayTime);
|
|
133
133
|
endDate = new Date(mundayTime);
|
|
134
|
-
} else if ("NEXT_WEEK"
|
|
134
|
+
} else if (con == "NEXT_WEEK") {
|
|
135
135
|
let sevenDays = XEUtils.addDate(curDate, 1, "W");
|
|
136
136
|
let day = sevenDays.getDay() || 7;
|
|
137
137
|
let mondayTime = sevenDays.getTime() - (day - 1) * oneDayTime;
|
|
138
138
|
let mundayTime = sevenDays.getTime() + (7 - day) * oneDayTime;
|
|
139
139
|
startDate = new Date(mondayTime);
|
|
140
140
|
endDate = new Date(mundayTime);
|
|
141
|
-
} else if ("UP_WEEK"
|
|
141
|
+
} else if (con == "UP_WEEK") {
|
|
142
142
|
let sevenDays = XEUtils.addDate(curDate, -1, "W");
|
|
143
143
|
let day = sevenDays.getDay() || 7;
|
|
144
144
|
let mondayTime = sevenDays.getTime() - (day - 1) * oneDayTime;
|
|
145
145
|
let mundayTime = sevenDays.getTime() + (7 - day) * oneDayTime;
|
|
146
146
|
startDate = new Date(mondayTime);
|
|
147
147
|
endDate = new Date(mundayTime);
|
|
148
|
-
} else if ("THIS_MONTH"
|
|
148
|
+
} else if (con == "THIS_MONTH") {
|
|
149
149
|
let date = new Date();
|
|
150
150
|
date.setDate(1);
|
|
151
151
|
startDate = date;
|
|
152
152
|
endDate = XEUtils.addDate(date, 1, "M");
|
|
153
|
-
} else if ("NEXT_MONTH"
|
|
153
|
+
} else if (con == "NEXT_MONTH") {
|
|
154
154
|
let date = new Date();
|
|
155
155
|
date.setDate(1);
|
|
156
156
|
startDate = XEUtils.addDate(date, 1, "M");
|
|
157
157
|
endDate = XEUtils.addDate(date, 2, "M");
|
|
158
|
-
} else if ("UP_MONTH"
|
|
158
|
+
} else if (con == "UP_MONTH") {
|
|
159
159
|
let date = new Date();
|
|
160
160
|
date.setDate(1);
|
|
161
161
|
startDate = XEUtils.addDate(date, -1, "M");
|
|
162
162
|
endDate = date;
|
|
163
|
-
} else if ("THIS_SEASON"
|
|
163
|
+
} else if (con == "THIS_SEASON") {
|
|
164
164
|
startDate = XEUtils.getCurSeasonFirstDay();
|
|
165
165
|
endDate = XEUtils.addDate(startDate, 3, "M");
|
|
166
|
-
} else if ("NEXT_SEASON"
|
|
166
|
+
} else if (con == "NEXT_SEASON") {
|
|
167
167
|
startDate = XEUtils.addDate(XEUtils.getCurSeasonFirstDay(), 3, "M");
|
|
168
168
|
endDate = XEUtils.addDate(startDate, 3, "M");
|
|
169
|
-
} else if ("UP_SEASON"
|
|
169
|
+
} else if (con == "UP_SEASON") {
|
|
170
170
|
endDate = XEUtils.getCurSeasonFirstDay();
|
|
171
171
|
startDate = XEUtils.addDate(endDate, -3, "M");
|
|
172
|
-
} else if ("THIS_YEAR"
|
|
172
|
+
} else if (con == "THIS_YEAR") {
|
|
173
173
|
let date = new Date();
|
|
174
174
|
startDate = new Date(date.getFullYear() + "/01/01");
|
|
175
175
|
endDate = XEUtils.addDate(startDate, 1, "Y");
|
|
176
|
-
} else if ("NEXT_YEAR"
|
|
176
|
+
} else if (con == "NEXT_YEAR") {
|
|
177
177
|
let date = new Date();
|
|
178
178
|
startDate = XEUtils.addDate(new Date(date.getFullYear() + "/01/01"), 1, "Y");
|
|
179
179
|
endDate = XEUtils.addDate(startDate, 1, "Y");
|
|
180
|
-
} else if ("UP_YEAR"
|
|
180
|
+
} else if (con == "UP_YEAR") {
|
|
181
181
|
let date = new Date();
|
|
182
182
|
endDate = new Date(date.getFullYear() + "/01/01");
|
|
183
183
|
startDate = XEUtils.addDate(endDate, -1, "Y");
|
|
@@ -190,51 +190,51 @@ const expandXEUtils = (() => {
|
|
|
190
190
|
} else {
|
|
191
191
|
return false;
|
|
192
192
|
}
|
|
193
|
-
} else if ("L_"
|
|
193
|
+
} else if (con == "L_" || con == "N_" || con == "IN_THE_PAST" || con == "IN_THE_FUTURE" || con == "IN_THE_PAST_DI" || con == "IN_THE_FUTURE_DI") {
|
|
194
194
|
if (cObj["unit"] && XEUtils.isNumber(value)) {
|
|
195
195
|
if (XEUtils.isDate(fVal)) {
|
|
196
196
|
let fDate = XEUtils.convertDate(fVal);
|
|
197
197
|
let curDate = new Date();
|
|
198
198
|
let unit = cObj["unit"];
|
|
199
|
-
if ("DAY"
|
|
199
|
+
if (unit == "DAY" || unit == "WEEK" || unit == "MONTH" || unit == "QUARTER" || unit == "YEAR" || unit == "HOUR") {
|
|
200
200
|
let type = "D";
|
|
201
|
-
if ("WEEK"
|
|
201
|
+
if (unit == "WEEK") {
|
|
202
202
|
type = "W";
|
|
203
|
-
} else if ("MONTH"
|
|
203
|
+
} else if (unit == "MONTH") {
|
|
204
204
|
type = "M";
|
|
205
|
-
} else if ("QUARTER"
|
|
205
|
+
} else if (unit == "QUARTER") {
|
|
206
206
|
type = "Q";
|
|
207
|
-
} else if ("YEAR"
|
|
207
|
+
} else if (unit == "YEAR") {
|
|
208
208
|
type = "Y";
|
|
209
|
-
} else if ("HOUR"
|
|
209
|
+
} else if (unit == "HOUR") {
|
|
210
210
|
type = "H";
|
|
211
211
|
}
|
|
212
212
|
let count = value * 1;
|
|
213
|
-
if ("L_"
|
|
213
|
+
if (con == "L_") {
|
|
214
214
|
let targetDate = XEUtils.addDate(new Date(), count * -1, type);
|
|
215
215
|
if (fDate.getTime() < targetDate.getTime()) {
|
|
216
216
|
return false;
|
|
217
217
|
}
|
|
218
|
-
} else if ("N_"
|
|
218
|
+
} else if (con == "N_") {
|
|
219
219
|
let targetDate = XEUtils.addDate(new Date(), count, type);
|
|
220
220
|
if (fDate.getTime() > targetDate.getTime()) {
|
|
221
221
|
return false;
|
|
222
222
|
}
|
|
223
|
-
} else if ("IN_THE_PAST"
|
|
223
|
+
} else if (con == "IN_THE_PAST") {
|
|
224
224
|
let curTime = fDate.getTime();
|
|
225
225
|
let endTime = curDate.getTime();
|
|
226
226
|
let startTime = XEUtils.addDate(curDate, count * -1, type).getTime();
|
|
227
227
|
if (curTime < startTime || curTime > endTime) {
|
|
228
228
|
return false;
|
|
229
229
|
}
|
|
230
|
-
} else if ("IN_THE_FUTURE"
|
|
230
|
+
} else if (con == "IN_THE_FUTURE") {
|
|
231
231
|
let curTime = fDate.getTime();
|
|
232
232
|
let startTime = curDate.getTime();
|
|
233
233
|
let endTime = XEUtils.addDate(curDate, count, type).getTime();
|
|
234
234
|
if (curTime < startTime || curTime > endTime) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
} else if ("IN_THE_PAST_DI"
|
|
237
|
+
} else if (con == "IN_THE_PAST_DI" || con == "IN_THE_FUTURE_DI") {
|
|
238
238
|
let curTime = fDate.getTime();
|
|
239
239
|
let useType = con == "IN_THE_FUTURE_DI" ? "add" : "subtract";
|
|
240
240
|
let { startTime, endTime } = XEUtils.addDiDate(curDate, count, unit, useType);
|
|
@@ -247,7 +247,7 @@ const expandXEUtils = (() => {
|
|
|
247
247
|
return false;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
} else if ("IN"
|
|
250
|
+
} else if (con == "IN") {
|
|
251
251
|
if (XEUtils.isDate(fVal)) {
|
|
252
252
|
let fDate = XEUtils.convertDate(fVal);
|
|
253
253
|
if (!value) {
|
|
@@ -289,8 +289,8 @@ const expandXEUtils = (() => {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
if ("compare"
|
|
293
|
-
if ("TEXT"
|
|
292
|
+
if (con == "compare") {
|
|
293
|
+
if (field.fieldType == "TEXT") {
|
|
294
294
|
if (value.indexOf("|#|") != -1) {
|
|
295
295
|
for (let kw in value.split("|#|")) {
|
|
296
296
|
if (fVal.indexOf(kw) == -1) {
|
|
@@ -298,7 +298,7 @@ const expandXEUtils = (() => {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
} else {
|
|
301
|
-
if (cObj["mk"] && "
|
|
301
|
+
if (cObj["mk"] && cObj["mk"] == "like") {
|
|
302
302
|
if (fVal.indexOf(value) == -1) {
|
|
303
303
|
return false;
|
|
304
304
|
}
|
|
@@ -308,7 +308,7 @@ const expandXEUtils = (() => {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
} else if (
|
|
311
|
+
} else if (field.fieldType() == "NUMBER") {
|
|
312
312
|
if (XEUtils.isNumber(value) && XEUtils.isNumber(fVal)) {
|
|
313
313
|
if (fVal * 1 != value * 1) {
|
|
314
314
|
return false;
|
|
@@ -328,7 +328,7 @@ const expandXEUtils = (() => {
|
|
|
328
328
|
if (value && value.indexOf("~") != -1 && value.split("~").length == 2) {
|
|
329
329
|
let start = value.split("~")[0];
|
|
330
330
|
let end = value.split("~")[1];
|
|
331
|
-
if ("number"
|
|
331
|
+
if (type == "number") {
|
|
332
332
|
if (XEUtils.isNumber(start) && XEUtils.isNumber(end)) {
|
|
333
333
|
return start * 1 <= comVal * 1 && comVal * 1 < end * 1;
|
|
334
334
|
}
|
|
@@ -2,27 +2,6 @@ import XEUtils from 'xe-utils';
|
|
|
2
2
|
export { default } from 'xe-utils';
|
|
3
3
|
export { default as moment } from 'moment';
|
|
4
4
|
|
|
5
|
-
function formatReleaseTime(type, time) {
|
|
6
|
-
if (time < 0) {
|
|
7
|
-
return "";
|
|
8
|
-
}
|
|
9
|
-
let format = "";
|
|
10
|
-
switch (type) {
|
|
11
|
-
case "DATE":
|
|
12
|
-
format = "yyyy-MM-dd";
|
|
13
|
-
break;
|
|
14
|
-
case "DATETIMENew":
|
|
15
|
-
format = "yyyy-MM-dd HH:mm";
|
|
16
|
-
break;
|
|
17
|
-
case "DATETIME":
|
|
18
|
-
format = "yyyy-MM-dd HH:mm:ss";
|
|
19
|
-
break;
|
|
20
|
-
case "TIME":
|
|
21
|
-
format = "HH:mm:ss";
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
return XEUtils.toDateString(time, format);
|
|
25
|
-
}
|
|
26
5
|
function handleLabelColor(item, isSelect) {
|
|
27
6
|
var _a;
|
|
28
7
|
let tempColor = "#5585f5";
|
|
@@ -77,4 +56,4 @@ function handleLabelColor(item, isSelect) {
|
|
|
77
56
|
}
|
|
78
57
|
}
|
|
79
58
|
|
|
80
|
-
export {
|
|
59
|
+
export { handleLabelColor };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.18-beta.
|
|
3
|
+
"version": "3.1.18-beta.7",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"iOS 7",
|
|
66
66
|
"last 3 iOS versions"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "249c6f209d90584893525028a88df1c1a1fc5404"
|
|
69
69
|
}
|