cnhis-design-vue 3.1.45-beta.9 → 3.1.45-release.1
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/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/base-search/index.d.ts +0 -2
- package/es/components/base-search/src/index.vue.d.ts +0 -2
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +11 -165
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +11 -165
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +11 -165
- package/es/components/classification/src/index.vue.d.ts +11 -165
- package/es/components/fabric-chart/index.d.ts +5 -40
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -40
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +0 -20
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +0 -13
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -2
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/index.d.ts +38 -157
- package/es/components/field-set/src/FieldSet.vue.d.ts +23 -160
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/types/index.d.ts +0 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +48 -3561
- package/es/components/form-config/src/FormConfig.vue.d.ts +48 -3561
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -31
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -33
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -11
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -2
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +0 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +0 -2
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +4 -31
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -31
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -31
- package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +0 -2
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +1 -3
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +0 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +10 -72
- package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -72
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -31
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -31
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/quick-search/index.d.ts +0 -2
- package/es/components/quick-search/src/index.vue.d.ts +0 -2
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/search-cascader/index.d.ts +3 -16
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +3 -16
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
- package/es/components/search-cascader/src/hooks/index.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +4 -31
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -31
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -165
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -16
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -18
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +10 -128
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +0 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -163
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +10 -165
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -99
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +5 -7
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +5 -6
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -15
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +25 -520
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +24 -548
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +0 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +0 -2
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useAsyncQueue.d.ts +1 -3
- package/es/shared/hooks/useAsyncQueue.js +1 -1
- package/es/shared/package.json.js +1 -1
- 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/hooks/surgicalAnesthesia/index.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +0 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +0 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +0 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +0 -132
- package/es/components/field-set/src/components/Row.vue.js +0 -1
- package/es/components/field-set/src/components/Row.vue2.js +0 -1
- package/es/components/field-set/src/utils/index.d.ts +0 -7
- package/es/components/field-set/src/utils/index.js +0 -1
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +0 -61
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -218
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +0 -45
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -175
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -114
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -154,9 +154,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
154
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
155
155
|
widgetType: import("vue").ComputedRef<any>;
|
|
156
156
|
Date: import("vue").DefineComponent<{
|
|
157
|
-
componentCfg: {
|
|
158
|
-
type: ObjectConstructor;
|
|
159
|
-
};
|
|
160
157
|
paramCfg: {
|
|
161
158
|
type: ObjectConstructor;
|
|
162
159
|
default: null;
|
|
@@ -171,9 +168,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
168
|
};
|
|
172
169
|
}, {
|
|
173
170
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
174
|
-
componentCfg: {
|
|
175
|
-
type: ObjectConstructor;
|
|
176
|
-
};
|
|
177
171
|
paramCfg: {
|
|
178
172
|
type: ObjectConstructor;
|
|
179
173
|
default: null;
|
|
@@ -196,17 +190,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
190
|
dateType: any;
|
|
197
191
|
valueFormat: import("vue").ComputedRef<string>;
|
|
198
192
|
compType: import("vue").ComputedRef<any>;
|
|
199
|
-
|
|
193
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
200
194
|
widgetOptions: import("vue").ComputedRef<{
|
|
201
195
|
label: string;
|
|
202
196
|
value: string;
|
|
203
197
|
}[]>;
|
|
204
|
-
isDateDisabled: (ts: number) => boolean;
|
|
205
|
-
timeDisabled: (ts: number) => {
|
|
206
|
-
isHourDisabled(hour: number): boolean | undefined;
|
|
207
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
208
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
209
|
-
};
|
|
210
198
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
211
199
|
updateUnchangedValue: {
|
|
212
200
|
type: BooleanConstructor;
|
|
@@ -278,9 +266,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
278
266
|
LAST_YEAR: string;
|
|
279
267
|
};
|
|
280
268
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
281
|
-
componentCfg: {
|
|
282
|
-
type: ObjectConstructor;
|
|
283
|
-
};
|
|
284
269
|
paramCfg: {
|
|
285
270
|
type: ObjectConstructor;
|
|
286
271
|
default: null;
|
|
@@ -432,7 +417,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
432
417
|
default: null;
|
|
433
418
|
};
|
|
434
419
|
}, {
|
|
435
|
-
message: import("naive-ui").MessageApi;
|
|
436
420
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
437
421
|
paramCfg: {
|
|
438
422
|
type: ObjectConstructor;
|
|
@@ -446,145 +430,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
446
430
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
447
431
|
}>>;
|
|
448
432
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
433
|
+
$attrs: {
|
|
434
|
+
[x: string]: unknown;
|
|
435
|
+
};
|
|
449
436
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
437
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
450
438
|
isLoading: import("vue").Ref<boolean>;
|
|
451
439
|
filterApiConfig: import("../../../..").AnyObject;
|
|
452
|
-
|
|
453
|
-
menuProps: {
|
|
454
|
-
class: string;
|
|
455
|
-
};
|
|
456
|
-
curPage: import("vue").Ref<number>;
|
|
457
|
-
fieldTitleList: import("vue").Ref<any>;
|
|
458
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
459
|
-
keywordVal: import("vue").Ref<any>;
|
|
440
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
460
441
|
optionSetting: import("vue").ComputedRef<any>;
|
|
461
442
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
462
|
-
|
|
463
|
-
isLastPage: import("vue").ComputedRef<boolean>;
|
|
464
|
-
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
465
|
-
setOptionActive: (selectIds: string[]) => void;
|
|
466
|
-
handleUpdateSelect: (value: string[] | null) => void;
|
|
467
|
-
handleUpdatePage: (page: number) => Promise<void>;
|
|
468
|
-
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
443
|
+
searchOptions: (keyword: string) => Promise<any>;
|
|
469
444
|
_handleSearch: (query: string) => Promise<void>;
|
|
470
445
|
handleSearch: (query: string) => Promise<void>;
|
|
471
446
|
handleInitData: () => Promise<void>;
|
|
472
|
-
|
|
447
|
+
renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
448
|
+
[key: string]: any;
|
|
449
|
+
}>;
|
|
473
450
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
474
451
|
[key: string]: any;
|
|
475
452
|
}>;
|
|
476
453
|
NSelect: any;
|
|
477
|
-
SelectDynamicOption: import("vue").DefineComponent<{
|
|
478
|
-
dynamicOptionInfo: {
|
|
479
|
-
type: PropType<import("../../../..").AnyObject>;
|
|
480
|
-
default: () => {};
|
|
481
|
-
};
|
|
482
|
-
fieldTitleList: {
|
|
483
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
484
|
-
default: () => never[];
|
|
485
|
-
};
|
|
486
|
-
optionList: {
|
|
487
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
488
|
-
default: () => never[];
|
|
489
|
-
};
|
|
490
|
-
isMultiple: {
|
|
491
|
-
type: BooleanConstructor;
|
|
492
|
-
default: boolean;
|
|
493
|
-
};
|
|
494
|
-
curPage: {
|
|
495
|
-
type: NumberConstructor;
|
|
496
|
-
default: number;
|
|
497
|
-
};
|
|
498
|
-
isLastPage: {
|
|
499
|
-
type: BooleanConstructor;
|
|
500
|
-
default: boolean;
|
|
501
|
-
};
|
|
502
|
-
}, {
|
|
503
|
-
selectMinWidth: number;
|
|
504
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
505
|
-
dynamicOptionInfo: {
|
|
506
|
-
type: PropType<import("../../../..").AnyObject>;
|
|
507
|
-
default: () => {};
|
|
508
|
-
};
|
|
509
|
-
fieldTitleList: {
|
|
510
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
511
|
-
default: () => never[];
|
|
512
|
-
};
|
|
513
|
-
optionList: {
|
|
514
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
515
|
-
default: () => never[];
|
|
516
|
-
};
|
|
517
|
-
isMultiple: {
|
|
518
|
-
type: BooleanConstructor;
|
|
519
|
-
default: boolean;
|
|
520
|
-
};
|
|
521
|
-
curPage: {
|
|
522
|
-
type: NumberConstructor;
|
|
523
|
-
default: number;
|
|
524
|
-
};
|
|
525
|
-
isLastPage: {
|
|
526
|
-
type: BooleanConstructor;
|
|
527
|
-
default: boolean;
|
|
528
|
-
};
|
|
529
|
-
}>> & {
|
|
530
|
-
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
531
|
-
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
532
|
-
}>>;
|
|
533
|
-
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
534
|
-
dragEndWidth: import("vue").Ref<number>;
|
|
535
|
-
showKeys: import("vue").ComputedRef<any>;
|
|
536
|
-
titleList: import("vue").ComputedRef<string[]>;
|
|
537
|
-
handleSelect: (option: any) => void;
|
|
538
|
-
searchByPage: (onePage: number) => void;
|
|
539
|
-
changeWidth: ({ distance }: any) => void;
|
|
540
|
-
saveWidth: () => void;
|
|
541
|
-
NEmpty: any;
|
|
542
|
-
NButtonGroup: any;
|
|
543
|
-
NButton: any;
|
|
544
|
-
NIcon: any;
|
|
545
|
-
NPopover: any;
|
|
546
|
-
vFlexibleResize: {
|
|
547
|
-
mounted(el: any, { value }: any): void;
|
|
548
|
-
beforeUnmount(el: any): void;
|
|
549
|
-
};
|
|
550
|
-
ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
551
|
-
ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
552
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
553
|
-
dynamicOptionInfo: {
|
|
554
|
-
type: PropType<import("../../../..").AnyObject>;
|
|
555
|
-
default: () => {};
|
|
556
|
-
};
|
|
557
|
-
fieldTitleList: {
|
|
558
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
559
|
-
default: () => never[];
|
|
560
|
-
};
|
|
561
|
-
optionList: {
|
|
562
|
-
type: PropType<import("../../../..").AnyObject[]>;
|
|
563
|
-
default: () => never[];
|
|
564
|
-
};
|
|
565
|
-
isMultiple: {
|
|
566
|
-
type: BooleanConstructor;
|
|
567
|
-
default: boolean;
|
|
568
|
-
};
|
|
569
|
-
curPage: {
|
|
570
|
-
type: NumberConstructor;
|
|
571
|
-
default: number;
|
|
572
|
-
};
|
|
573
|
-
isLastPage: {
|
|
574
|
-
type: BooleanConstructor;
|
|
575
|
-
default: boolean;
|
|
576
|
-
};
|
|
577
|
-
}>> & {
|
|
578
|
-
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
579
|
-
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
580
|
-
}, {
|
|
581
|
-
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
582
|
-
fieldTitleList: import("../../../..").AnyObject[];
|
|
583
|
-
optionList: import("../../../..").AnyObject[];
|
|
584
|
-
isMultiple: boolean;
|
|
585
|
-
curPage: number;
|
|
586
|
-
isLastPage: boolean;
|
|
587
|
-
}>;
|
|
588
454
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
589
455
|
paramCfg: {
|
|
590
456
|
type: ObjectConstructor;
|
|
@@ -690,15 +556,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
690
556
|
valueFormat: import("vue").ComputedRef<string>;
|
|
691
557
|
dateFormat: import("vue").ComputedRef<string>;
|
|
692
558
|
compType: import("vue").ComputedRef<any>;
|
|
693
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
694
|
-
isPastTime: import("vue").ComputedRef<boolean>;
|
|
695
|
-
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
696
559
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
697
560
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
698
|
-
startDefault: import("vue").ComputedRef<string>;
|
|
699
|
-
endDefault: import("vue").ComputedRef<string>;
|
|
700
|
-
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
701
|
-
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
702
561
|
dateType: any;
|
|
703
562
|
widgetOptions: import("vue").ComputedRef<{
|
|
704
563
|
label: string;
|
|
@@ -707,19 +566,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
566
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
708
567
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
709
568
|
isStartDateDisabled: (ts: number) => boolean;
|
|
710
|
-
timeStartDisabled: (ts: number) => {
|
|
711
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
712
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
713
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
714
|
-
};
|
|
715
569
|
isEndDateDisabled: (ts: number) => boolean;
|
|
716
|
-
timeEndDisabled: (ts: number) => {
|
|
717
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
718
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
719
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
720
|
-
};
|
|
721
570
|
NSelect: any;
|
|
722
|
-
NPopover: any;
|
|
723
571
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
724
572
|
updateUnchangedValue: {
|
|
725
573
|
type: BooleanConstructor;
|
|
@@ -821,7 +669,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
821
669
|
};
|
|
822
670
|
}, {
|
|
823
671
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
824
|
-
message: import("naive-ui").MessageApi;
|
|
825
672
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
826
673
|
paramCfg: {
|
|
827
674
|
type: ObjectConstructor;
|
|
@@ -861,9 +708,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
861
708
|
INPUT: string;
|
|
862
709
|
SELECT: string;
|
|
863
710
|
DATE: string;
|
|
864
|
-
DATE_OUT: string;
|
|
865
711
|
DATE_TIME: string;
|
|
866
|
-
DATETIME_OUT: string;
|
|
867
712
|
CHECKBOX_GROUP: string;
|
|
868
713
|
INPUTNUMBER_RANGE: string;
|
|
869
714
|
DATE_RANGE_OUT: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=[{value:"TODAY",label:"今天"},{value:"TOMORROW",label:"明天"},{value:"YESTERDAY",label:"昨天"},{value:"THIS_WEEK",label:"本周"},{value:"NEXT_WEEK",label:"下周"},{value:"LAST_WEEK",label:"上周"},{value:"THIS_MONTH",label:"本月"},{value:"NEXT_MONTH",label:"下月"},{value:"LAST_MONTH",label:"上月"},{value:"THIS_QUARTER",label:"本季度"},{value:"NEXT_QUARTER",label:"下季度"},{value:"LAST_QUARTER",label:"上季度"},{value:"THIS_YEAR",label:"本年"},{value:"NEXT_YEAR",label:"下年"},{value:"LAST_YEAR",label:"上年"}];export{l as DateRangeOptions};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { AnyObject } from '../../../../../../../es/shared/types';
|
|
3
2
|
declare type ITypeDate = 'date' | 'datetime';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
componentCfg: {
|
|
6
|
-
type: PropType<AnyObject>;
|
|
7
|
-
};
|
|
8
4
|
type: {
|
|
9
5
|
type: PropType<ITypeDate>;
|
|
10
6
|
default: string;
|
|
@@ -27,9 +23,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
23
|
};
|
|
28
24
|
}, {
|
|
29
25
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
componentCfg: {
|
|
31
|
-
type: PropType<AnyObject>;
|
|
32
|
-
};
|
|
33
26
|
type: {
|
|
34
27
|
type: PropType<ITypeDate>;
|
|
35
28
|
default: string;
|
|
@@ -55,18 +48,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
48
|
}>>;
|
|
56
49
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
57
50
|
valueCp: import("vue").Ref<any>;
|
|
58
|
-
rangeShortcuts: import("vue").Ref<any>;
|
|
59
51
|
dateFormat: import("vue").ComputedRef<string>;
|
|
60
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
61
52
|
handleChange: (val: any) => void;
|
|
62
|
-
|
|
63
|
-
timeDisabled: (ts: number) => {
|
|
64
|
-
isHourDisabled(hour: number): boolean | undefined;
|
|
65
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
66
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
67
|
-
};
|
|
68
|
-
init: () => void;
|
|
69
|
-
CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
53
|
+
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
70
54
|
updateUnchangedValue: {
|
|
71
55
|
type: BooleanConstructor;
|
|
72
56
|
};
|
|
@@ -85,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
69
|
type: FunctionConstructor;
|
|
86
70
|
};
|
|
87
71
|
}>> & {}>>;
|
|
88
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
72
|
+
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
89
73
|
panelInstRef: import("vue").Ref<null>;
|
|
90
74
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
91
75
|
formatRef: import("vue").ComputedRef<string>;
|
|
@@ -106,9 +90,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
90
|
updateUnchangedValue: boolean;
|
|
107
91
|
}>>;
|
|
108
92
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
-
componentCfg: {
|
|
110
|
-
type: PropType<AnyObject>;
|
|
111
|
-
};
|
|
112
93
|
type: {
|
|
113
94
|
type: PropType<ITypeDate>;
|
|
114
95
|
default: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./Date.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Date.vue"]]);export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import d from"moment";import{isString as m}from"lodash-es";var v=e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function y(e){n.value=e;const a=e?d(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&m(e)?n.value=d(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":y},null,8,["type","clearable","valueFormat","placeholder","value"]))}});export{v as default};
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { AnyObject } from '../../../../../../../es/shared/types';
|
|
3
2
|
declare type ITypeDate = 'date' | 'datetime';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
componentCfg: {
|
|
6
|
-
type: PropType<AnyObject>;
|
|
7
|
-
};
|
|
8
4
|
type: {
|
|
9
5
|
type: PropType<ITypeDate>;
|
|
10
6
|
default: string;
|
|
@@ -31,9 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
27
|
};
|
|
32
28
|
}, {
|
|
33
29
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
componentCfg: {
|
|
35
|
-
type: PropType<AnyObject>;
|
|
36
|
-
};
|
|
37
30
|
type: {
|
|
38
31
|
type: PropType<ITypeDate>;
|
|
39
32
|
default: string;
|
|
@@ -62,37 +55,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
55
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
63
56
|
}>>;
|
|
64
57
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
58
|
+
dateList: import("vue").Ref<any[]>;
|
|
65
59
|
isShowDateRange: import("vue").Ref<boolean>;
|
|
66
60
|
radioValue: import("vue").Ref<string>;
|
|
67
61
|
startDate: import("vue").Ref<any>;
|
|
68
62
|
endDate: import("vue").Ref<any>;
|
|
69
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
70
|
-
onlyRadio: import("vue").ComputedRef<boolean>;
|
|
71
|
-
isPastTime: import("vue").ComputedRef<boolean>;
|
|
72
|
-
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
73
63
|
dateFormat: import("vue").ComputedRef<string>;
|
|
74
64
|
showTabStr: import("vue").ComputedRef<string>;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
handleClickQuickBtn: (result: string) => void;
|
|
78
|
-
changeRadioValue: (value: string) => void;
|
|
79
|
-
changeDateShowType: () => void;
|
|
65
|
+
initData: () => void;
|
|
66
|
+
handleRadioClick: (value: string) => void;
|
|
80
67
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
81
68
|
isStartDateDisabled: (ts: number) => boolean;
|
|
82
|
-
timeStartDisabled: (ts: number) => {
|
|
83
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
84
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
85
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
86
|
-
};
|
|
87
69
|
isEndDateDisabled: (ts: number) => boolean;
|
|
88
|
-
timeEndDisabled: (ts: number) => {
|
|
89
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
90
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
91
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
92
|
-
};
|
|
93
|
-
init: () => void;
|
|
94
70
|
NButton: any;
|
|
95
|
-
CDatePicker: import("
|
|
71
|
+
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
96
72
|
updateUnchangedValue: {
|
|
97
73
|
type: BooleanConstructor;
|
|
98
74
|
};
|
|
@@ -111,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
87
|
type: FunctionConstructor;
|
|
112
88
|
};
|
|
113
89
|
}>> & {}>>;
|
|
114
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
90
|
+
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
115
91
|
panelInstRef: import("vue").Ref<null>;
|
|
116
92
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
117
93
|
formatRef: import("vue").ComputedRef<string>;
|
|
@@ -131,77 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
107
|
}>>, {
|
|
132
108
|
updateUnchangedValue: boolean;
|
|
133
109
|
}>>;
|
|
134
|
-
DateQuickBtn: import("vue").DefineComponent<{
|
|
135
|
-
componentCfg: {
|
|
136
|
-
type: PropType<AnyObject>;
|
|
137
|
-
};
|
|
138
|
-
type: {
|
|
139
|
-
type: PropType<"date" | "datetime">;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
|
-
dateFormat: {
|
|
143
|
-
type: StringConstructor;
|
|
144
|
-
default: string;
|
|
145
|
-
};
|
|
146
|
-
radioValue: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
}, {
|
|
151
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
-
componentCfg: {
|
|
153
|
-
type: PropType<AnyObject>;
|
|
154
|
-
};
|
|
155
|
-
type: {
|
|
156
|
-
type: PropType<"date" | "datetime">;
|
|
157
|
-
default: string;
|
|
158
|
-
};
|
|
159
|
-
dateFormat: {
|
|
160
|
-
type: StringConstructor;
|
|
161
|
-
default: string;
|
|
162
|
-
};
|
|
163
|
-
radioValue: {
|
|
164
|
-
type: StringConstructor;
|
|
165
|
-
default: string;
|
|
166
|
-
};
|
|
167
|
-
}>> & {
|
|
168
|
-
onClickQuickBtn?: ((...args: any[]) => any) | undefined;
|
|
169
|
-
onChangeRadioValue?: ((...args: any[]) => any) | undefined;
|
|
170
|
-
}>>;
|
|
171
|
-
emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
|
|
172
|
-
dateList: import("vue").Ref<any[]>;
|
|
173
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
174
|
-
isRange: import("vue").ComputedRef<any>;
|
|
175
|
-
initData: () => void;
|
|
176
|
-
handleRadioClick: (value: string) => void;
|
|
177
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
178
|
-
componentCfg: {
|
|
179
|
-
type: PropType<AnyObject>;
|
|
180
|
-
};
|
|
181
|
-
type: {
|
|
182
|
-
type: PropType<"date" | "datetime">;
|
|
183
|
-
default: string;
|
|
184
|
-
};
|
|
185
|
-
dateFormat: {
|
|
186
|
-
type: StringConstructor;
|
|
187
|
-
default: string;
|
|
188
|
-
};
|
|
189
|
-
radioValue: {
|
|
190
|
-
type: StringConstructor;
|
|
191
|
-
default: string;
|
|
192
|
-
};
|
|
193
|
-
}>> & {
|
|
194
|
-
onClickQuickBtn?: ((...args: any[]) => any) | undefined;
|
|
195
|
-
onChangeRadioValue?: ((...args: any[]) => any) | undefined;
|
|
196
|
-
}, {
|
|
197
|
-
type: "date" | "datetime";
|
|
198
|
-
dateFormat: string;
|
|
199
|
-
radioValue: string;
|
|
200
|
-
}>;
|
|
201
110
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
202
|
-
componentCfg: {
|
|
203
|
-
type: PropType<AnyObject>;
|
|
204
|
-
};
|
|
205
111
|
type: {
|
|
206
112
|
type: PropType<ITypeDate>;
|
|
207
113
|
default: string;
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as m,createTextVNode as p,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import b from"../../../../../date-picker/index.js";import h from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";const Y={class:"render-widget-date-range"},F={key:0,class:"radio-date-group"},M=["onClick"],D={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const w=e,P=a([]),C=a(!1),_=a(""),j=a(),x=a(),H=l((()=>{let e="";switch(w.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),O=l((()=>{let e="";switch(w.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function T(e,a){switch(a){case"start":j.value=e;break;case"end":x.value=e}const l=j.value?h(j.value).format(H.value):null,t=x.value?h(x.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function U(e){return!!x.value&&e>x.value}function $(e){return!!j.value&&e<j.value}return t((()=>w.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=h(a.trim()).valueOf()),void(l.trim()&&(x.value=h(l.trim()).valueOf()))}j.value=x.value=null,_.value=""}),{immediate:!0}),function(){const e=k(H.value);P.value=e}(),(a,l)=>(u(),r("div",Y,[C.value?n("v-if",!0):(u(),r("div",F,[(u(!0),r(v,null,d(P.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",_.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,_.value===l?_.value="":_.value=l,void(_.value&&f("update:value",_.value));var l}},o(e.label),11,M)))),128))])),s(c(y),{secondary:"",class:i(C.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>C.value=!C.value)},{default:m((()=>[p(o(c(O)),1)])),_:1},8,["class"]),C.value?(u(),r("div",D,[s(c(b),{type:e.type,to:"body","default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":U,"onUpdate:value":l[1]||(l[1]=e=>T(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(b),{type:e.type,to:"body","default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:x.value,"is-date-disabled":$,"onUpdate:value":l[2]||(l[2]=e=>T(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}});export{w as default};
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { AnyObject } from '../../../../../../../es/shared/types';
|
|
3
2
|
declare type ITypeDate = 'daterange' | 'datetimerange';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
type: {
|
|
@@ -57,18 +56,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
56
|
}>>;
|
|
58
57
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
59
58
|
valueCp: import("vue").Ref<any>;
|
|
60
|
-
rangeShortcuts: import("vue").Ref<any>;
|
|
61
59
|
dateFormat: import("vue").ComputedRef<string>;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
68
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
60
|
+
rangeShortcuts: {
|
|
61
|
+
今天: number[];
|
|
62
|
+
昨天: number[];
|
|
63
|
+
近一周: number[];
|
|
64
|
+
近一月: number[];
|
|
69
65
|
};
|
|
70
|
-
|
|
71
|
-
CDatePicker: import("
|
|
66
|
+
handleChange: (val: any) => void;
|
|
67
|
+
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
72
68
|
updateUnchangedValue: {
|
|
73
69
|
type: BooleanConstructor;
|
|
74
70
|
};
|
|
@@ -87,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
83
|
type: FunctionConstructor;
|
|
88
84
|
};
|
|
89
85
|
}>> & {}>>;
|
|
90
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
86
|
+
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
91
87
|
panelInstRef: import("vue").Ref<null>;
|
|
92
88
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
93
89
|
formatRef: import("vue").ComputedRef<string>;
|
|
@@ -137,9 +133,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
133
|
}, {
|
|
138
134
|
type: ITypeDate;
|
|
139
135
|
value: string;
|
|
140
|
-
componentCfg: Record<string, any>;
|
|
141
136
|
clearable: boolean;
|
|
142
137
|
startPlaceholder: string;
|
|
143
138
|
endPlaceholder: string;
|
|
139
|
+
componentCfg: Record<string, any>;
|
|
144
140
|
}>;
|
|
145
141
|
export default _default;
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as
|
|
1
|
+
import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as o}from"lodash-es";var n=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:n}){const c=e,p=a(),v=t((()=>{let e="";switch(c.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),m={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function i(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;n("update:value",l)}else n("update:value",e)}return l((()=>c.value),(e=>{if(e&&o(e)&&e.includes("~")){const[a,t]=e.split("~");p.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else p.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(s),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:p.value,shortcuts:m,"onUpdate:value":i},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}});export{n as default};
|
package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { IFilterCategoryLabelItemType, IhoFilterTabLabelItemType } from '../../../../../../../es/components/table-filter/src/types';
|
|
3
|
-
import { AnyObject } from '../../../../../../../es/shared/types';
|
|
2
|
+
import { IFilterCategoryLabelItemType, IhoFilterTabLabelItemType, ISearchType } from '../../../../../../../es/components/table-filter/src/types';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
componentCfg: {
|
|
6
|
-
type: PropType<
|
|
5
|
+
type: PropType<ISearchType>;
|
|
7
6
|
};
|
|
8
7
|
value: {
|
|
9
8
|
type: StringConstructor;
|
|
@@ -11,11 +10,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
10
|
};
|
|
12
11
|
}, {
|
|
13
12
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
14
|
-
message: import("naive-ui").MessageApi;
|
|
15
13
|
baseActiveColor: string;
|
|
16
14
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
17
15
|
componentCfg: {
|
|
18
|
-
type: PropType<
|
|
16
|
+
type: PropType<ISearchType>;
|
|
19
17
|
};
|
|
20
18
|
value: {
|
|
21
19
|
type: StringConstructor;
|
|
@@ -27,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
25
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
28
26
|
selectedList: import("vue").Ref<string[]>;
|
|
29
27
|
tagList: import("vue").Ref<never[]>;
|
|
30
|
-
filterApiConfig: AnyObject;
|
|
28
|
+
filterApiConfig: import("../../../../..").AnyObject;
|
|
31
29
|
categoryList: import("vue").ComputedRef<IFilterCategoryLabelItemType[]>;
|
|
32
30
|
onResize: (el: HTMLElement, categoryItem: IFilterCategoryLabelItemType) => void;
|
|
33
31
|
handleLabelUpfold: (categoryItem: IFilterCategoryLabelItemType) => void;
|
|
@@ -50,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
48
|
};
|
|
51
49
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
50
|
componentCfg: {
|
|
53
|
-
type: PropType<
|
|
51
|
+
type: PropType<ISearchType>;
|
|
54
52
|
};
|
|
55
53
|
value: {
|
|
56
54
|
type: StringConstructor;
|