cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15
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/README.md +87 -87
- package/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.d.ts +1 -1
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +4 -21
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/env.d.ts +24 -24
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,310 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NInput, NDatePicker } from 'naive-ui';
|
|
3
|
-
import multiSelect from '../multi-select/multi-select.vue.js';
|
|
4
|
-
import cTreeSelect from '../c-tree-select/tree-select.vue.js';
|
|
5
|
-
import useMixins from '../../hooks/useMixins.js';
|
|
6
|
-
import useWordBookutils from '../../hooks/useWordBookutils.js';
|
|
7
|
-
import moment from 'moment';
|
|
8
|
-
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
|
9
|
-
|
|
10
|
-
const _hoisted_1 = { class: "outQuickSearch-li-block" };
|
|
11
|
-
const _hoisted_2 = {
|
|
12
|
-
key: 4,
|
|
13
|
-
class: "ant-calendar-picker",
|
|
14
|
-
style: { "margin": "0 8px 8px 0", "width": "200px" }
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_3 = ["title", "placeholder"];
|
|
17
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-range-picker-separator" }, " ~ \xA0", -1);
|
|
18
|
-
const _hoisted_5 = ["title", "placeholder"];
|
|
19
|
-
const _hoisted_6 = /* @__PURE__ */ createElementVNode("i", {
|
|
20
|
-
"aria-label": "\u56FE\u6807: close-circle",
|
|
21
|
-
tabindex: "-1",
|
|
22
|
-
class: "anticon anticon-close-circle ant-input-clear-icon"
|
|
23
|
-
}, [
|
|
24
|
-
/* @__PURE__ */ createElementVNode("svg", {
|
|
25
|
-
viewBox: "64 64 896 896",
|
|
26
|
-
"data-icon": "close-circle",
|
|
27
|
-
width: "1em",
|
|
28
|
-
height: "1em",
|
|
29
|
-
fill: "currentColor",
|
|
30
|
-
"aria-hidden": "true",
|
|
31
|
-
focusable: "false",
|
|
32
|
-
class: ""
|
|
33
|
-
}, [
|
|
34
|
-
/* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
35
|
-
])
|
|
36
|
-
], -1);
|
|
37
|
-
const _hoisted_7 = [
|
|
38
|
-
_hoisted_6
|
|
39
|
-
];
|
|
40
|
-
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-picker-icon" }, null, -1);
|
|
41
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
|
-
__name: "out-quick-search",
|
|
43
|
-
props: {
|
|
44
|
-
item: {
|
|
45
|
-
type: Object,
|
|
46
|
-
default: () => {
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
filterApiConfig: {
|
|
50
|
-
type: Object,
|
|
51
|
-
default: () => {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
emits: [
|
|
56
|
-
"outFilterChange"
|
|
57
|
-
],
|
|
58
|
-
setup(__props, { emit }) {
|
|
59
|
-
const props = __props;
|
|
60
|
-
const { handleGetConfigApi } = useMixins();
|
|
61
|
-
const { wordBookutils } = useWordBookutils();
|
|
62
|
-
const fetchingWordbook = ref(false);
|
|
63
|
-
const initSearch = ref(false);
|
|
64
|
-
computed(() => {
|
|
65
|
-
return function(item) {
|
|
66
|
-
if (!item.showTime)
|
|
67
|
-
return false;
|
|
68
|
-
return {
|
|
69
|
-
defaultValue: [moment("00:00:00", "HH:mm:ss"), moment("23:59:59", "HH:mm:ss")]
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
});
|
|
73
|
-
onMounted(() => {
|
|
74
|
-
init();
|
|
75
|
-
});
|
|
76
|
-
function init() {
|
|
77
|
-
let item = props.item;
|
|
78
|
-
let df = item.explicitDefaultVal;
|
|
79
|
-
if (item.com == "SelectMui" && df) {
|
|
80
|
-
dropdownVisibleChange(true, item, { type: "hasDefaultInit" });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function handleWordBookSearch(value, item, config = { type: "" }) {
|
|
84
|
-
var _a, _b, _c;
|
|
85
|
-
if (item.comType != "SelectMuiWordBook")
|
|
86
|
-
return;
|
|
87
|
-
let curAutograph = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
|
|
88
|
-
let params = {
|
|
89
|
-
keyword: value,
|
|
90
|
-
autograph: curAutograph
|
|
91
|
-
};
|
|
92
|
-
let obj = {};
|
|
93
|
-
let p = ((_b = (_a = item == null ? void 0 : item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.params) || void 0;
|
|
94
|
-
if (p) {
|
|
95
|
-
(_c = item.setting.wordbook) == null ? void 0 : _c.params.forEach((item2) => {
|
|
96
|
-
obj[item2.p_name] = item2.p_value;
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
let rp = { ...params, ...obj, ...config };
|
|
100
|
-
getWordbookData(item.setting.wordbook, rp).then(({ data }) => {
|
|
101
|
-
handleWordbookData(item, data, rp);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function dropdownVisibleChange(open, item, config = { type: "" }) {
|
|
105
|
-
var _a;
|
|
106
|
-
if (item.comType != "SelectMuiWordBook")
|
|
107
|
-
return;
|
|
108
|
-
if (open) {
|
|
109
|
-
let obj = {};
|
|
110
|
-
if ((_a = item.setting.wordbook) == null ? void 0 : _a.params) {
|
|
111
|
-
item.setting.wordbook.params.forEach((item2) => {
|
|
112
|
-
obj[item2.p_name] = item2.p_value;
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
if (item.settingObj.wordbook) {
|
|
116
|
-
obj.autograph = item.settingObj.wordbook.autograph;
|
|
117
|
-
}
|
|
118
|
-
let df = item.explicitDefaultVal;
|
|
119
|
-
if (df != "firstOption") {
|
|
120
|
-
obj.keyword = df;
|
|
121
|
-
}
|
|
122
|
-
getWordbookData(item.setting.wordbook, obj).then(({ data }) => {
|
|
123
|
-
handleWordbookData(item, data, obj);
|
|
124
|
-
if ("hasDefaultInit" == (config == null ? void 0 : config.type)) {
|
|
125
|
-
outFilterChange({ type: "outSearchInit" });
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function handleWordbookData(item, data, params) {
|
|
131
|
-
var _a, _b;
|
|
132
|
-
item.hasFieldList = false;
|
|
133
|
-
const { rows, hasFieldList, searchPageConfig } = wordBookutils.handleWordbookData(item, data, params);
|
|
134
|
-
item.hasFieldList = hasFieldList;
|
|
135
|
-
item.dataSource = rows;
|
|
136
|
-
let showKeys = ((_b = (_a = item == null ? void 0 : item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.showKeys) || [];
|
|
137
|
-
item.searchPageConfig = Object.assign(item.searchPageConfig, searchPageConfig);
|
|
138
|
-
if (!initSearch.value) {
|
|
139
|
-
let df = item.explicitDefaultVal;
|
|
140
|
-
if (df) {
|
|
141
|
-
let defval = [];
|
|
142
|
-
if (df === "firstOption") {
|
|
143
|
-
let [v, k] = rows;
|
|
144
|
-
if (showKeys.length > 0 && item.hasFieldList) {
|
|
145
|
-
v = k;
|
|
146
|
-
}
|
|
147
|
-
v && (defval = [v.myName]);
|
|
148
|
-
} else {
|
|
149
|
-
let f = rows.find((v) => v.myName.includes(df));
|
|
150
|
-
if (f) {
|
|
151
|
-
defval = [f.myName];
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
item.value = [...defval];
|
|
155
|
-
item.search_DefaultValue = [...defval];
|
|
156
|
-
}
|
|
157
|
-
initSearch.value = true;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function getWordbookData(o, obj) {
|
|
161
|
-
let { id, filterKeys, wordbookType } = o;
|
|
162
|
-
fetchingWordbook.value = true;
|
|
163
|
-
let resFieldKeys = Array.isArray(filterKeys) ? JSON.stringify(filterKeys) : filterKeys;
|
|
164
|
-
let params = {
|
|
165
|
-
wordbookId: id,
|
|
166
|
-
fieldKeys: resFieldKeys,
|
|
167
|
-
wordbookType: wordbookType || "WORDBOOK",
|
|
168
|
-
asyncCount: 1,
|
|
169
|
-
...obj
|
|
170
|
-
};
|
|
171
|
-
return handleGetConfigApi(params, "requestGetWordbookData", { fields: o }, props.filterApiConfig).then((res) => {
|
|
172
|
-
fetchingWordbook.value = false;
|
|
173
|
-
if (typeof res.data === "object") {
|
|
174
|
-
res.data.reqParams = params;
|
|
175
|
-
}
|
|
176
|
-
return res;
|
|
177
|
-
}).catch(() => {
|
|
178
|
-
fetchingWordbook.value = false;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function outFilterChange(config = {}) {
|
|
182
|
-
emit("outFilterChange", config);
|
|
183
|
-
}
|
|
184
|
-
function maxTagPlaceholder(item) {
|
|
185
|
-
if (Array.isArray(item.value)) {
|
|
186
|
-
return item.value.length;
|
|
187
|
-
} else {
|
|
188
|
-
return 1;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
function changeOutFilterNumber(item) {
|
|
192
|
-
if (item.lessValue && item.bigValue) {
|
|
193
|
-
const lessValue = item.lessValue;
|
|
194
|
-
const bigValue = item.bigValue;
|
|
195
|
-
if (bigValue < lessValue) {
|
|
196
|
-
item.lessValue = bigValue;
|
|
197
|
-
item.bigValue = lessValue;
|
|
198
|
-
}
|
|
199
|
-
outFilterChange();
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
if (item.lessValue == "" && item.bigValue == "") {
|
|
203
|
-
outFilterChange();
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
function clearOutFilterNumber(item) {
|
|
207
|
-
item.lessValue = item.bigValue = "";
|
|
208
|
-
outFilterChange();
|
|
209
|
-
}
|
|
210
|
-
return (_ctx, _cache) => {
|
|
211
|
-
return openBlock(), createElementBlock("li", _hoisted_1, [
|
|
212
|
-
__props.item.com == "Text" ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
213
|
-
createVNode(unref(NInput), {
|
|
214
|
-
onKeyup: withKeys(outFilterChange, ["enter"]),
|
|
215
|
-
class: "CL-input",
|
|
216
|
-
style: normalizeStyle({
|
|
217
|
-
width: `${__props.item.advanceColWidth || 200}px`,
|
|
218
|
-
margin: "0 8px 8px 0",
|
|
219
|
-
"font-family": __props.item.PASSWORDTYPE ? "text-security-disc" : "inherit"
|
|
220
|
-
}),
|
|
221
|
-
placeholder: __props.item.placeholder || `\u641C\u7D22${__props.item.alias || __props.item.title}`,
|
|
222
|
-
value: __props.item.value,
|
|
223
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => __props.item.value = $event),
|
|
224
|
-
clearable: ""
|
|
225
|
-
}, null, 8, ["onKeyup", "style", "placeholder", "value"])
|
|
226
|
-
]) : createCommentVNode("v-if", true),
|
|
227
|
-
__props.item.com == "SelectMui" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
228
|
-
__props.item.comType === "treeSelect" ? (openBlock(), createBlock(cTreeSelect, {
|
|
229
|
-
key: 0,
|
|
230
|
-
item: __props.item,
|
|
231
|
-
handleGetConfigApi: unref(handleGetConfigApi),
|
|
232
|
-
maxTagPlaceholder,
|
|
233
|
-
outFilterChange,
|
|
234
|
-
style: { "margin": "0 8px 8px 0" }
|
|
235
|
-
}, null, 8, ["item", "handleGetConfigApi"])) : (openBlock(), createBlock(multiSelect, {
|
|
236
|
-
key: 1,
|
|
237
|
-
item: __props.item,
|
|
238
|
-
maxTagPlaceholder,
|
|
239
|
-
outFilterChange,
|
|
240
|
-
handleWordBookSearch,
|
|
241
|
-
dropdownVisibleChange,
|
|
242
|
-
fetchingWordbook: fetchingWordbook.value,
|
|
243
|
-
style: { "margin": "0 8px 8px 0" }
|
|
244
|
-
}, null, 8, ["item", "fetchingWordbook"]))
|
|
245
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
246
|
-
__props.item.com == "DatePicker" ? (openBlock(), createBlock(unref(NDatePicker), {
|
|
247
|
-
key: 2,
|
|
248
|
-
clearable: __props.item.explicitRequired != 1,
|
|
249
|
-
format: __props.item.showFormat,
|
|
250
|
-
value: __props.item.value,
|
|
251
|
-
"onUpdate:value": [
|
|
252
|
-
_cache[1] || (_cache[1] = ($event) => __props.item.value = $event),
|
|
253
|
-
outFilterChange
|
|
254
|
-
],
|
|
255
|
-
type: "datetimerange",
|
|
256
|
-
placeholder: [`${__props.item.alias || __props.item.title}\u8D77\u59CB\u65E5\u671F`, `${__props.item.alias || __props.item.title}\u622A\u6B62\u65E5\u671F`],
|
|
257
|
-
style: { "margin": "0 8px 8px 0" }
|
|
258
|
-
}, null, 8, ["clearable", "format", "value", "placeholder"])) : createCommentVNode("v-if", true),
|
|
259
|
-
__props.item.com == "DayPicker" ? (openBlock(), createBlock(unref(NDatePicker), {
|
|
260
|
-
key: 3,
|
|
261
|
-
"input-readonly": __props.item.explicitRequired == 1,
|
|
262
|
-
clearable: __props.item.explicitRequired != 1,
|
|
263
|
-
"value-format": __props.item.showFormat,
|
|
264
|
-
"formatted-value": __props.item.value,
|
|
265
|
-
"onUpdate:formatted-value": _cache[2] || (_cache[2] = ($event) => __props.item.value = $event),
|
|
266
|
-
placeholder: __props.item.placeholder || `\u8BF7\u9009\u62E9${__props.item.alias || __props.item.title}`,
|
|
267
|
-
style: { "margin": "0 8px 8px 0" },
|
|
268
|
-
"onUpdate:value": outFilterChange
|
|
269
|
-
}, null, 8, ["input-readonly", "clearable", "value-format", "formatted-value", "placeholder"])) : createCommentVNode("v-if", true),
|
|
270
|
-
__props.item.com == "Number" ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
271
|
-
createElementVNode("span", {
|
|
272
|
-
class: normalizeClass(["ant-calendar-picker-input ant-input num-picker", { "num-picker-unit": __props.item.inputUnit }])
|
|
273
|
-
}, [
|
|
274
|
-
withDirectives(createElementVNode("input", {
|
|
275
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.item.lessValue = $event),
|
|
276
|
-
onKeyup: _cache[4] || (_cache[4] = withKeys(() => changeOutFilterNumber(__props.item), ["enter"])),
|
|
277
|
-
title: `\u8D77\u59CB${__props.item.alias || __props.item.title}`,
|
|
278
|
-
placeholder: `\u8D77\u59CB${__props.item.alias || __props.item.title}`,
|
|
279
|
-
class: "ant-calendar-range-picker-input"
|
|
280
|
-
}, null, 40, _hoisted_3), [
|
|
281
|
-
[vModelText, __props.item.lessValue]
|
|
282
|
-
]),
|
|
283
|
-
_hoisted_4,
|
|
284
|
-
withDirectives(createElementVNode("input", {
|
|
285
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.item.bigValue = $event),
|
|
286
|
-
title: `\u622A\u6B62${__props.item.alias || __props.item.title}`,
|
|
287
|
-
onKeyup: _cache[6] || (_cache[6] = withKeys(() => changeOutFilterNumber(__props.item), ["enter"])),
|
|
288
|
-
placeholder: `\u622A\u6B62${__props.item.alias || __props.item.title}`,
|
|
289
|
-
class: "ant-calendar-range-picker-input"
|
|
290
|
-
}, null, 40, _hoisted_5), [
|
|
291
|
-
[vModelText, __props.item.bigValue]
|
|
292
|
-
]),
|
|
293
|
-
__props.item.inputUnit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
294
|
-
createTextVNode("\xA0" + toDisplayString(__props.item.inputUnit), 1)
|
|
295
|
-
], 64)) : createCommentVNode("v-if", true),
|
|
296
|
-
__props.item.lessValue || __props.item.bigValue ? (openBlock(), createElementBlock("span", {
|
|
297
|
-
key: 1,
|
|
298
|
-
class: "ant-input-suffix clear-number-icon",
|
|
299
|
-
onClick: _cache[7] || (_cache[7] = ($event) => clearOutFilterNumber(__props.item))
|
|
300
|
-
}, _hoisted_7)) : createCommentVNode("v-if", true),
|
|
301
|
-
_hoisted_8
|
|
302
|
-
], 2)
|
|
303
|
-
])) : createCommentVNode("v-if", true)
|
|
304
|
-
]);
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
var outQuickSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "out-quick-search.vue"]]);
|
|
309
|
-
|
|
310
|
-
export { outQuickSearch as default };
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,onMounted as a,openBlock as l,createElementBlock as o,renderSlot as r,createVNode as n,unref as u,withKeys as s,normalizeStyle as c,createCommentVNode as m,Fragment as p,createBlock as d,createElementVNode as f,normalizeClass as h,withDirectives as v,vModelText as g,createTextVNode as y,toDisplayString as k}from"vue";import{NInput as b,NDatePicker as x}from"naive-ui";import w from"../multi-select/multi-select.vue.js";import V from"../c-tree-select/tree-select.vue.js";import C from"../../hooks/useMixins.js";import O from"../../hooks/useWordBookutils.js";import j from"moment";import S from"../../../../../_virtual/plugin-vue_export-helper.js";const D={class:"outQuickSearch-li-block"},W={key:4,class:"ant-calendar-picker",style:{margin:"0 8px 8px 0",width:"200px"}},_=["title","placeholder"],A=f("span",{class:"ant-calendar-range-picker-separator"}," ~ ",-1),F=["title","placeholder"],P=[f("i",{"aria-label":"图标: close-circle",tabindex:"-1",class:"anticon anticon-close-circle ant-input-clear-icon"},[f("svg",{viewBox:"64 64 896 896","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",class:""},[f("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"})])],-1)],T=f("span",{class:"ant-calendar-picker-icon"},null,-1);var $=S(e({__name:"out-quick-search",props:{item:{type:Object,default:()=>{}},filterApiConfig:{type:Object,default:()=>{}}},emits:["outFilterChange"],setup(e,{emit:S}){const $=e,{handleGetConfigApi:L}=C(),{wordBookutils:U}=O(),K=t(!1),q=t(!1);function B(e,t,i={type:""}){var a,l,o;if("SelectMuiWordBook"!=t.comType)return;let r={keyword:e,autograph:t.settingObj.wordbook&&t.settingObj.wordbook.autograph},n={};((null==(l=null==(a=null==t?void 0:t.setting)?void 0:a.wordbook)?void 0:l.params)||void 0)&&(null==(o=t.setting.wordbook)||o.params.forEach((e=>{n[e.p_name]=e.p_value})));let u={...r,...n,...i};R(t.setting.wordbook,u).then((({data:e})=>{N(t,e,u)}))}function M(e,t,i={type:""}){var a;if("SelectMuiWordBook"==t.comType&&e){let e={};(null==(a=t.setting.wordbook)?void 0:a.params)&&t.setting.wordbook.params.forEach((t=>{e[t.p_name]=t.p_value})),t.settingObj.wordbook&&(e.autograph=t.settingObj.wordbook.autograph);let l=t.explicitDefaultVal;"firstOption"!=l&&(e.keyword=l),R(t.setting.wordbook,e).then((({data:a})=>{N(t,a,e),"hasDefaultInit"==(null==i?void 0:i.type)&&G({type:"outSearchInit"})}))}}function N(e,t,i){var a,l;e.hasFieldList=!1;const{rows:o,hasFieldList:r,searchPageConfig:n}=U.handleWordbookData(e,t,i);e.hasFieldList=r,e.dataSource=o;let u=(null==(l=null==(a=null==e?void 0:e.setting)?void 0:a.wordbook)?void 0:l.showKeys)||[];if(e.searchPageConfig=Object.assign(e.searchPageConfig,n),!q.value){let t=e.explicitDefaultVal;if(t){let i=[];if("firstOption"===t){let[t,a]=o;u.length>0&&e.hasFieldList&&(t=a),t&&(i=[t.myName])}else{let e=o.find((e=>e.myName.includes(t)));e&&(i=[e.myName])}e.value=[...i],e.search_DefaultValue=[...i]}q.value=!0}}function R(e,t){let{id:i,filterKeys:a,wordbookType:l}=e;K.value=!0;let o={wordbookId:i,fieldKeys:Array.isArray(a)?JSON.stringify(a):a,wordbookType:l||"WORDBOOK",asyncCount:1,...t};return L(o,"requestGetWordbookData",{fields:e},$.filterApiConfig).then((e=>(K.value=!1,"object"==typeof e.data&&(e.data.reqParams=o),e))).catch((()=>{K.value=!1}))}function G(e={}){S("outFilterChange",e)}function H(e){return Array.isArray(e.value)?e.value.length:1}function I(e){if(e.lessValue&&e.bigValue){const t=e.lessValue,i=e.bigValue;return i<t&&(e.lessValue=i,e.bigValue=t),void G()}""==e.lessValue&&""==e.bigValue&&G()}return i((()=>function(e){return!!e.showTime&&{defaultValue:[j("00:00:00","HH:mm:ss"),j("23:59:59","HH:mm:ss")]}})),a((()=>{!function(){let e=$.item,t=e.explicitDefaultVal;"SelectMui"==e.com&&t&&M(!0,e,{type:"hasDefaultInit"})}()})),(t,i)=>(l(),o("li",D,["Text"==e.item.com?r(t.$slots,"default",{key:0},(()=>[n(u(b),{onKeyup:s(G,["enter"]),class:"CL-input",style:c({width:`${e.item.advanceColWidth||200}px`,margin:"0 8px 8px 0","font-family":e.item.PASSWORDTYPE?"text-security-disc":"inherit"}),placeholder:e.item.placeholder||`搜索${e.item.alias||e.item.title}`,value:e.item.value,"onUpdate:value":i[0]||(i[0]=t=>e.item.value=t),clearable:""},null,8,["onKeyup","style","placeholder","value"])])):m("v-if",!0),"SelectMui"==e.item.com?(l(),o(p,{key:1},["treeSelect"===e.item.comType?(l(),d(V,{key:0,item:e.item,handleGetConfigApi:u(L),maxTagPlaceholder:H,outFilterChange:G,style:{margin:"0 8px 8px 0"}},null,8,["item","handleGetConfigApi"])):(l(),d(w,{key:1,item:e.item,maxTagPlaceholder:H,outFilterChange:G,handleWordBookSearch:B,dropdownVisibleChange:M,fetchingWordbook:K.value,style:{margin:"0 8px 8px 0"}},null,8,["item","fetchingWordbook"]))],64)):m("v-if",!0),"DatePicker"==e.item.com?(l(),d(u(x),{key:2,clearable:1!=e.item.explicitRequired,format:e.item.showFormat,value:e.item.value,"onUpdate:value":[i[1]||(i[1]=t=>e.item.value=t),G],type:"datetimerange",placeholder:[`${e.item.alias||e.item.title}起始日期`,`${e.item.alias||e.item.title}截止日期`],style:{margin:"0 8px 8px 0"}},null,8,["clearable","format","value","placeholder"])):m("v-if",!0),"DayPicker"==e.item.com?(l(),d(u(x),{key:3,"input-readonly":1==e.item.explicitRequired,clearable:1!=e.item.explicitRequired,"value-format":e.item.showFormat,"formatted-value":e.item.value,"onUpdate:formatted-value":i[2]||(i[2]=t=>e.item.value=t),placeholder:e.item.placeholder||`请选择${e.item.alias||e.item.title}`,style:{margin:"0 8px 8px 0"},"onUpdate:value":G},null,8,["input-readonly","clearable","value-format","formatted-value","placeholder"])):m("v-if",!0),"Number"==e.item.com?(l(),o("span",W,[f("span",{class:h(["ant-calendar-picker-input ant-input num-picker",{"num-picker-unit":e.item.inputUnit}])},[v(f("input",{"onUpdate:modelValue":i[3]||(i[3]=t=>e.item.lessValue=t),onKeyup:i[4]||(i[4]=s((()=>I(e.item)),["enter"])),title:`起始${e.item.alias||e.item.title}`,placeholder:`起始${e.item.alias||e.item.title}`,class:"ant-calendar-range-picker-input"},null,40,_),[[g,e.item.lessValue]]),A,v(f("input",{"onUpdate:modelValue":i[5]||(i[5]=t=>e.item.bigValue=t),title:`截止${e.item.alias||e.item.title}`,onKeyup:i[6]||(i[6]=s((()=>I(e.item)),["enter"])),placeholder:`截止${e.item.alias||e.item.title}`,class:"ant-calendar-range-picker-input"},null,40,F),[[g,e.item.bigValue]]),e.item.inputUnit?(l(),o(p,{key:0},[y(" "+k(e.item.inputUnit),1)],64)):m("v-if",!0),e.item.lessValue||e.item.bigValue?(l(),o("span",{key:1,class:"ant-input-suffix clear-number-icon",onClick:i[7]||(i[7]=t=>{return(i=e.item).lessValue=i.bigValue="",void G();var i})},P)):m("v-if",!0),T],2)])):m("v-if",!0)]))}}),[["__file","out-quick-search.vue"]]);export{$ as default};
|
|
@@ -1,137 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import ageCom from '../age-com/index.vue.js';
|
|
3
|
-
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "range-grid-con-block" };
|
|
6
|
-
const _hoisted_2 = { class: "grid-item" };
|
|
7
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "middle-tips" }, "\u2014", -1);
|
|
8
|
-
const _hoisted_4 = { class: "grid-item" };
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: {
|
|
12
|
-
value: {
|
|
13
|
-
value: Object,
|
|
14
|
-
default: () => ({ star_val: "", end_val: "" })
|
|
15
|
-
},
|
|
16
|
-
options: {
|
|
17
|
-
type: Array,
|
|
18
|
-
default: () => []
|
|
19
|
-
},
|
|
20
|
-
item: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default: () => ({})
|
|
23
|
-
},
|
|
24
|
-
defaultValue: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: () => ({})
|
|
27
|
-
},
|
|
28
|
-
format: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "YYYY-MM-DD"
|
|
31
|
-
},
|
|
32
|
-
disabled: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false
|
|
35
|
-
},
|
|
36
|
-
dataName: {
|
|
37
|
-
type: String
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
emits: [
|
|
41
|
-
"change"
|
|
42
|
-
],
|
|
43
|
-
setup(__props, { expose, emit: emits }) {
|
|
44
|
-
const props = __props;
|
|
45
|
-
let valueObj = ref({
|
|
46
|
-
star_val: 0,
|
|
47
|
-
end_val: 0
|
|
48
|
-
});
|
|
49
|
-
let startValue = ref({});
|
|
50
|
-
let endValue = ref({});
|
|
51
|
-
onMounted(() => {
|
|
52
|
-
initDefaultValue();
|
|
53
|
-
});
|
|
54
|
-
function initDefaultValue() {
|
|
55
|
-
const { star_val, end_val } = props.defaultValue || {};
|
|
56
|
-
let startObj = diffTime(+star_val);
|
|
57
|
-
let endObj = diffTime(+end_val);
|
|
58
|
-
startValue.value = startObj;
|
|
59
|
-
endValue.value = endObj;
|
|
60
|
-
}
|
|
61
|
-
function diffTime(days) {
|
|
62
|
-
if (isNaN(days))
|
|
63
|
-
return {};
|
|
64
|
-
if (typeof days == "number") {
|
|
65
|
-
let next = 0;
|
|
66
|
-
let year = Math.floor(days / 365);
|
|
67
|
-
next = days % 365;
|
|
68
|
-
let month = Math.floor(next / 30);
|
|
69
|
-
next = next % 30;
|
|
70
|
-
let day = next;
|
|
71
|
-
return {
|
|
72
|
-
year: year || "",
|
|
73
|
-
month: month || "",
|
|
74
|
-
day: day || "",
|
|
75
|
-
days: days || ""
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
return {};
|
|
79
|
-
}
|
|
80
|
-
function ageStartOnChange(obj) {
|
|
81
|
-
emits("change", Object.assign(valueObj.value, { star_val: obj.days }));
|
|
82
|
-
}
|
|
83
|
-
function ageEndOnChange(obj) {
|
|
84
|
-
emits("change", Object.assign(valueObj.value, { end_val: obj.days }));
|
|
85
|
-
}
|
|
86
|
-
function reset() {
|
|
87
|
-
let obj = { year: null, month: null, day: null, days: null };
|
|
88
|
-
startValue.value = { ...obj };
|
|
89
|
-
endValue.value = { ...obj };
|
|
90
|
-
}
|
|
91
|
-
watch(
|
|
92
|
-
() => props.value,
|
|
93
|
-
(val) => {
|
|
94
|
-
if (typeof val === "object" && Object.keys(val).length > 0) {
|
|
95
|
-
const { star_val, end_val } = props.value || {};
|
|
96
|
-
if (+star_val) {
|
|
97
|
-
let startObj = diffTime(+star_val);
|
|
98
|
-
startValue.value = startObj;
|
|
99
|
-
}
|
|
100
|
-
if (+end_val) {
|
|
101
|
-
let endObj = diffTime(+end_val);
|
|
102
|
-
endValue.value = endObj;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
{ immediate: true }
|
|
107
|
-
);
|
|
108
|
-
expose({
|
|
109
|
-
reset,
|
|
110
|
-
dataName: props.dataName
|
|
111
|
-
});
|
|
112
|
-
return (_ctx, _cache) => {
|
|
113
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
114
|
-
createElementVNode("div", _hoisted_2, [
|
|
115
|
-
createVNode(ageCom, {
|
|
116
|
-
disabled: __props.disabled,
|
|
117
|
-
format: __props.format,
|
|
118
|
-
onChange: ageStartOnChange,
|
|
119
|
-
defaultValue: unref(startValue)
|
|
120
|
-
}, null, 8, ["disabled", "format", "defaultValue"])
|
|
121
|
-
]),
|
|
122
|
-
_hoisted_3,
|
|
123
|
-
createElementVNode("div", _hoisted_4, [
|
|
124
|
-
createVNode(ageCom, {
|
|
125
|
-
disabled: __props.disabled,
|
|
126
|
-
format: __props.format,
|
|
127
|
-
onChange: ageEndOnChange,
|
|
128
|
-
defaultValue: unref(endValue)
|
|
129
|
-
}, null, 8, ["disabled", "format", "defaultValue"])
|
|
130
|
-
])
|
|
131
|
-
]);
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
var rangeAge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
136
|
-
|
|
137
|
-
export { rangeAge as default };
|
|
1
|
+
import{defineComponent as e,ref as a,onMounted as t,watch as l,openBlock as d,createElementBlock as u,createElementVNode as n,createVNode as i,unref as r}from"vue";import o from"../age-com/index.vue.js";import s from"../../../../../_virtual/plugin-vue_export-helper.js";const f={class:"range-grid-con-block"},v={class:"grid-item"},m=n("div",{class:"middle-tips"},"—",-1),c={class:"grid-item"};var p=s(e({__name:"index",props:{value:{value:Object,default:()=>({star_val:"",end_val:""})},options:{type:Array,default:()=>[]},item:{type:Object,default:()=>({})},defaultValue:{type:Object,default:()=>({})},format:{type:String,default:"YYYY-MM-DD"},disabled:{type:Boolean,default:!1},dataName:{type:String}},emits:["change"],setup(e,{expose:s,emit:p}){const y=e;let b=a({star_val:0,end_val:0}),g=a({}),_=a({});function h(e){if(isNaN(e))return{};if("number"==typeof e){let a=0,t=Math.floor(e/365);a=e%365;let l=Math.floor(a/30);return a%=30,{year:t||"",month:l||"",day:a||"",days:e||""}}return{}}function j(e){p("change",Object.assign(b.value,{star_val:e.days}))}function x(e){p("change",Object.assign(b.value,{end_val:e.days}))}return t((()=>{!function(){const{star_val:e,end_val:a}=y.defaultValue||{};let t=h(+e),l=h(+a);g.value=t,_.value=l}()})),l((()=>y.value),(e=>{if("object"==typeof e&&Object.keys(e).length>0){const{star_val:e,end_val:a}=y.value||{};if(+e){let a=h(+e);g.value=a}if(+a){let e=h(+a);_.value=e}}}),{immediate:!0}),s({reset:function(){let e={year:null,month:null,day:null,days:null};g.value={...e},_.value={...e}},dataName:y.dataName}),(a,t)=>(d(),u("div",f,[n("div",v,[i(o,{disabled:e.disabled,format:e.format,onChange:j,defaultValue:r(g)},null,8,["disabled","format","defaultValue"])]),m,n("div",c,[i(o,{disabled:e.disabled,format:e.format,onChange:x,defaultValue:r(_)},null,8,["disabled","format","defaultValue"])])]))}}),[["__file","index.vue"]]);export{p as default};
|
package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js
CHANGED
|
@@ -1,64 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NCheckboxGroup, NCheckbox } from 'naive-ui';
|
|
3
|
-
import _export_sfc from '../../../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "CheckboxGroup",
|
|
7
|
-
props: {
|
|
8
|
-
options: {
|
|
9
|
-
type: [Array, String, Number]
|
|
10
|
-
},
|
|
11
|
-
value: {
|
|
12
|
-
type: [Array, String, Number],
|
|
13
|
-
default: [""]
|
|
14
|
-
},
|
|
15
|
-
multiple: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: false
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
emits: [
|
|
21
|
-
"update:value"
|
|
22
|
-
],
|
|
23
|
-
setup(__props, { emit }) {
|
|
24
|
-
const props = __props;
|
|
25
|
-
const valueCp = computed({
|
|
26
|
-
set(val) {
|
|
27
|
-
emit("update:value", val);
|
|
28
|
-
},
|
|
29
|
-
get() {
|
|
30
|
-
return Array.isArray(props.value) ? props.value : props.value ? [props.value] : [];
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
function filterNewVal(val) {
|
|
34
|
-
return val.filter((v) => !valueCp.value.includes(v));
|
|
35
|
-
}
|
|
36
|
-
function onChange(val) {
|
|
37
|
-
if (!props.multiple && Array.isArray(val)) {
|
|
38
|
-
valueCp.value = filterNewVal(val)[0];
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
valueCp.value = val;
|
|
42
|
-
}
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createBlock(unref(NCheckboxGroup), mergeProps(_ctx.$attrs, {
|
|
45
|
-
value: unref(valueCp),
|
|
46
|
-
"onUpdate:value": onChange
|
|
47
|
-
}), {
|
|
48
|
-
default: withCtx(() => [
|
|
49
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
50
|
-
return openBlock(), createBlock(unref(NCheckbox), {
|
|
51
|
-
key: option.value,
|
|
52
|
-
value: option.value,
|
|
53
|
-
label: option.label
|
|
54
|
-
}, null, 8, ["value", "label"]);
|
|
55
|
-
}), 128))
|
|
56
|
-
]),
|
|
57
|
-
_: 1
|
|
58
|
-
}, 16, ["value"]);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "CheckboxGroup.vue"]]);
|
|
63
|
-
|
|
64
|
-
export { CheckboxGroup as default };
|
|
1
|
+
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:[""]},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NSelect } from 'naive-ui';
|
|
3
|
-
import _export_sfc from '../../../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "Select",
|
|
7
|
-
props: {
|
|
8
|
-
value: {
|
|
9
|
-
type: [Array, String, Number]
|
|
10
|
-
},
|
|
11
|
-
componentCfg: {
|
|
12
|
-
type: Object
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
emits: [
|
|
16
|
-
"update:value"
|
|
17
|
-
],
|
|
18
|
-
setup(__props, { emit }) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const valueCp = computed({
|
|
21
|
-
set(val) {
|
|
22
|
-
emit("update:value", val);
|
|
23
|
-
},
|
|
24
|
-
get() {
|
|
25
|
-
return props.value;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const maxTagCount = computed(() => {
|
|
29
|
-
if (!Array.isArray(props.value))
|
|
30
|
-
return void 0;
|
|
31
|
-
const len = props.value.length || 0;
|
|
32
|
-
return len > 1 ? 0 : 1;
|
|
33
|
-
});
|
|
34
|
-
return (_ctx, _cache) => {
|
|
35
|
-
return openBlock(), createBlock(unref(NSelect), mergeProps(_ctx.$attrs, {
|
|
36
|
-
value: unref(valueCp),
|
|
37
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
|
|
38
|
-
"max-tag-count": unref(maxTagCount)
|
|
39
|
-
}), null, 16, ["value", "max-tag-count"]);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
var Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "Select.vue"]]);
|
|
44
|
-
|
|
45
|
-
export { Select as default };
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as u,createBlock as a,unref as r,mergeProps as l,isRef as n}from"vue";import{NSelect as p}from"naive-ui";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";var o=v(e({__name:"Select",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:v}){const o=e,i=t({set(e){v("update:value",e)},get:()=>o.value}),m=t((()=>{if(!Array.isArray(o.value))return;return(o.value.length||0)>1?0:1}));return(e,t)=>(u(),a(r(p),l(e.$attrs,{value:r(i),"onUpdate:value":t[0]||(t[0]=e=>n(i)?i.value=e:null),"max-tag-count":r(m)}),null,16,["value","max-tag-count"]))}}),[["__file","Select.vue"]]);export{o as default};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as Select } from './Select.vue.js';
|
|
1
|
+
export{default as CheckboxGroup}from"./CheckboxGroup.vue.js";export{default as Select}from"./Select.vue.js";
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
INPUT_NUMBER: "NUMBER",
|
|
3
|
-
INPUT: "TEXT",
|
|
4
|
-
SELECT: "SELECT",
|
|
5
|
-
DATE: "DATE",
|
|
6
|
-
DATE_TIME: "DATETIME",
|
|
7
|
-
CHECKBOX_GROUP: "CHECKBOX_GROUP"
|
|
8
|
-
};
|
|
9
|
-
const DatePresetValEnums = {
|
|
10
|
-
CUSTOM: "CUSTOM",
|
|
11
|
-
NOW: "NOW",
|
|
12
|
-
TODAY: "TODAY",
|
|
13
|
-
TODAY_START: "TODAY_START",
|
|
14
|
-
TODAY_END: "TODAY_END",
|
|
15
|
-
TOMORROW: "TOMORROW",
|
|
16
|
-
TOMORROW_START: "TOMORROW_START",
|
|
17
|
-
TOMORROW_END: "TOMORROW_END",
|
|
18
|
-
YESTERDAY: "YESTERDAY",
|
|
19
|
-
YESTERDAY_START: "YESTERDAY_START",
|
|
20
|
-
YESTERDAY_END: "YESTERDAY_END",
|
|
21
|
-
WEEK_START: "THIS_WEEK_START",
|
|
22
|
-
WEEK_END: "THIS_WEEK_END",
|
|
23
|
-
MONTH_START: "THIS_MONTH_START",
|
|
24
|
-
MONTH_END: "THIS_MONTH_END"
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export { DatePresetValEnums, WidgetTypeEnums };
|
|
1
|
+
const T={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP"},E={CUSTOM:"CUSTOM",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END"};export{E as DatePresetValEnums,T as WidgetTypeEnums};
|