cnhis-design-vue 3.1.18-beta.6 → 3.1.18-beta.9
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 +9 -3380
- 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 +9 -3381
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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-table.d.ts +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +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 +2 -1148
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +1 -1
- 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 +2 -2248
- 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 +7 -1153
- 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 +19 -6792
- 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 +19 -6792
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/components/button-print/src/components/IdentityVerification.js +16 -7
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +13 -4442
- package/es/components/button-print/src/utils/dialog.d.ts +8 -0
- package/es/components/button-print/src/utils/dialog.js +77 -0
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +11 -0
- package/es/components/button-print/src/utils/print.js +1 -325
- package/es/components/button-print/src/utils/print2.js +348 -0
- package/es/components/chunk-upload/index.d.ts +2 -1472
- 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 +3 -1742
- 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 +2 -1472
- package/es/components/drag-layout/index.d.ts +155 -19664
- 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 +5 -7974
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +4 -3105
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +156 -19665
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/index2.js +10 -0
- package/es/components/fabric-chart/index.d.ts +2 -2
- 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/FabricChart.vue.d.ts +2 -2
- 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 +8 -6799
- 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 +8 -6799
- package/es/components/form-config/index.d.ts +17 -8936
- 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 +17 -8936
- package/es/components/form-config/src/components/FormConfigCreator.js +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +9 -4473
- 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 +7 -3065
- package/es/components/form-config/src/components/renderer/CloseButton.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +2 -1472
- package/es/components/form-config/src/components/renderer/ComplexNode.js +2 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -1472
- package/es/components/form-config/src/components/renderer/DefaultNode.js +2 -2
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +4 -3195
- 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 +6 -1140
- 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 +7 -1141
- 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 +3 -3
- package/es/components/form-render/src/components/renderer/linebar.d.ts +1 -1
- 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 +14 -11
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -6
- 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 +43 -32048
- 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 +43 -32048
- package/es/components/form-table/src/components/index.d.ts +43 -32048
- 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 +5 -3997
- 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 +3 -5068
- 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 -2664
- 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 +4 -1329
- package/es/components/form-table/src/components/table-input.js +1 -1
- package/es/components/form-table/src/components/table-input.vue.d.ts +4 -1329
- 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 +2 -5067
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +2 -1401
- 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 +3 -2734
- 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 +2 -1334
- package/es/components/form-table/src/components/table-select.js +1 -1
- package/es/components/form-table/src/components/table-select.vue.d.ts +2 -1334
- package/es/components/form-table/src/components/table-textarea.js +1 -1
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +5 -1330
- 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 +2 -2430
- 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 +2 -1550
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -480
- 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 +16 -2561
- 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 +4 -804
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +3 -803
- package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -2560
- package/es/components/map/index.d.ts +2 -2248
- 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 +2 -2248
- package/es/components/scale-view/index.d.ts +13 -3073
- 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 +9 -3070
- package/es/components/scale-view/src/components/EvaluateCountdown.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +1 -1400
- 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.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +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.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -480
- 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 +39 -8487
- 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 +24 -11222
- 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 +10 -4235
- package/es/components/select-label/src/SelectLabel.vue.d.ts +14 -7002
- 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 +5 -3467
- package/es/components/select-person/index.d.ts +9 -5310
- 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 +3 -1317
- package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -5312
- 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 +6 -1140
- 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 +6 -1140
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1 -848
- package/es/components/steps-wheel/index.d.ts +1 -479
- 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 +1 -479
- package/es/components/time-line/index.d.ts +7 -1672
- 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 +6 -1671
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1400
- 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 -480
- 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 +4 -4
- 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
|
@@ -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.9",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"es"
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"naive-ui": "^2.29.
|
|
16
|
+
"naive-ui": "^2.29.1",
|
|
17
17
|
"vue": "^3.2.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"min-dash": "^3.8.1",
|
|
43
43
|
"min-dom": "^3.2.1",
|
|
44
44
|
"moment": "^2.29.1",
|
|
45
|
-
"naive-ui": "^2.29.
|
|
45
|
+
"naive-ui": "^2.29.1",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"spark-md5": "^3.0.2",
|
|
48
48
|
"tiny-svg": "^2.2.4",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"iOS 7",
|
|
66
66
|
"last 3 iOS versions"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "868bfb189934303f5a9440c9ed99a5edd0f034d6"
|
|
69
69
|
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, createVNode } from 'vue';
|
|
2
|
-
import { NSelect, NPagination, NEmpty, NSpin, NSpace } from 'naive-ui';
|
|
3
|
-
import Grid from '../../../../grid/index.js';
|
|
4
|
-
import XEUtils from 'xe-utils';
|
|
5
|
-
import 'moment';
|
|
6
|
-
|
|
7
|
-
var editSelectTable = defineComponent({
|
|
8
|
-
name: "EditSelectTable",
|
|
9
|
-
inheritAttrs: false,
|
|
10
|
-
components: {
|
|
11
|
-
NSelect,
|
|
12
|
-
CGrid: Grid,
|
|
13
|
-
NPagination,
|
|
14
|
-
NEmpty,
|
|
15
|
-
NSpin,
|
|
16
|
-
NSpace
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
row: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: {}
|
|
22
|
-
},
|
|
23
|
-
col: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: {}
|
|
26
|
-
},
|
|
27
|
-
value: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: ""
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:value", "clickSelectTable"],
|
|
33
|
-
setup(props, {
|
|
34
|
-
attrs,
|
|
35
|
-
slots,
|
|
36
|
-
emit
|
|
37
|
-
}) {
|
|
38
|
-
const state = reactive({
|
|
39
|
-
value: props.value,
|
|
40
|
-
row: JSON.parse(JSON.stringify(props.row)),
|
|
41
|
-
page: 1,
|
|
42
|
-
pageCount: 0,
|
|
43
|
-
keyword: "",
|
|
44
|
-
data: [],
|
|
45
|
-
columns: JSON.parse(JSON.stringify(props.col.tableColumn)),
|
|
46
|
-
loading: false,
|
|
47
|
-
show: true
|
|
48
|
-
});
|
|
49
|
-
const selectTableFocus = () => {
|
|
50
|
-
state.show = true;
|
|
51
|
-
state.page = 1;
|
|
52
|
-
state.keyword = "";
|
|
53
|
-
state.pageCount = 0;
|
|
54
|
-
querySelectTableList();
|
|
55
|
-
};
|
|
56
|
-
const querySelectTableList = async () => {
|
|
57
|
-
state.loading = true;
|
|
58
|
-
const obj = {
|
|
59
|
-
page: state.page,
|
|
60
|
-
keyword: state.keyword
|
|
61
|
-
};
|
|
62
|
-
const {
|
|
63
|
-
data,
|
|
64
|
-
pageCount
|
|
65
|
-
} = await props.col.querySelectTableList(obj);
|
|
66
|
-
state.data = data;
|
|
67
|
-
state.pageCount = pageCount;
|
|
68
|
-
state.loading = false;
|
|
69
|
-
};
|
|
70
|
-
let selectTableSearch = (value) => {
|
|
71
|
-
state.keyword = value;
|
|
72
|
-
querySelectTableList();
|
|
73
|
-
};
|
|
74
|
-
selectTableSearch = XEUtils.debounce(selectTableSearch, 800);
|
|
75
|
-
selectTableSearch("");
|
|
76
|
-
const getSelectTableGrid = () => {
|
|
77
|
-
const config = {
|
|
78
|
-
border: "outer",
|
|
79
|
-
resizable: true,
|
|
80
|
-
autoResize: true,
|
|
81
|
-
showOverflow: true,
|
|
82
|
-
showHeaderOverflow: true,
|
|
83
|
-
highlightHoverRow: true,
|
|
84
|
-
highlightCurrentRow: true,
|
|
85
|
-
maxHeight: props.col.tableHeight || 200,
|
|
86
|
-
align: "center",
|
|
87
|
-
columns: state.columns,
|
|
88
|
-
data: state.data,
|
|
89
|
-
onCellClick
|
|
90
|
-
};
|
|
91
|
-
return createVNode(Grid, config, {
|
|
92
|
-
empty: () => createVNode(NEmpty, {
|
|
93
|
-
"description": "\u65E0\u6570\u636E"
|
|
94
|
-
}, null)
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
const onCellClick = (data) => {
|
|
98
|
-
const {
|
|
99
|
-
row
|
|
100
|
-
} = data;
|
|
101
|
-
emit("clickSelectTable", row);
|
|
102
|
-
state.show = false;
|
|
103
|
-
};
|
|
104
|
-
const getPagination = () => {
|
|
105
|
-
const pagination = () => {
|
|
106
|
-
return createVNode(NPagination, {
|
|
107
|
-
"page": state.page,
|
|
108
|
-
"onUpdate:page": ($event) => state.page = $event,
|
|
109
|
-
"pageCount": state.pageCount,
|
|
110
|
-
"onUpdatePage": (page) => querySelectTableList()
|
|
111
|
-
}, null);
|
|
112
|
-
};
|
|
113
|
-
return createVNode(NSpace, {
|
|
114
|
-
"justify": "space-between",
|
|
115
|
-
"align": "center",
|
|
116
|
-
"style": "margin-top: 5px"
|
|
117
|
-
}, {
|
|
118
|
-
default: () => [`\u5171${state.pageCount}\u6761`, pagination()]
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
return () => [createVNode(NSelect, {
|
|
122
|
-
"class": "form-select-table",
|
|
123
|
-
"placeholder": "\u8BF7\u9009\u62E9",
|
|
124
|
-
"options": [],
|
|
125
|
-
"consistentMenuWidth": false,
|
|
126
|
-
"clearable": true,
|
|
127
|
-
"filterable": true,
|
|
128
|
-
"to": false,
|
|
129
|
-
"show": state.show,
|
|
130
|
-
"loading": state.loading,
|
|
131
|
-
"onFocus": selectTableFocus,
|
|
132
|
-
"onBlur": () => state.show = false,
|
|
133
|
-
"onSearch": selectTableSearch
|
|
134
|
-
}, {
|
|
135
|
-
action: () => state.loading ? createVNode(NSpace, {
|
|
136
|
-
"justify": "center"
|
|
137
|
-
}, {
|
|
138
|
-
default: () => createVNode(NSpin, {
|
|
139
|
-
"style": {
|
|
140
|
-
margin: "80px auto"
|
|
141
|
-
},
|
|
142
|
-
"size": "small"
|
|
143
|
-
}, null)
|
|
144
|
-
}) : [getSelectTableGrid(), state.pageCount ? getPagination() : null]
|
|
145
|
-
})];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
export { editSelectTable as default };
|