cnhis-design-vue 3.1.46-beta.0 → 3.1.46-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/base-search/index.d.ts +17 -8
- package/es/components/base-search/src/index.vue.d.ts +17 -8
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +219 -18
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +219 -18
- 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 +219 -18
- package/es/components/classification/src/index.vue.d.ts +219 -18
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +21 -7
- package/es/components/quick-search/src/index.vue.d.ts +21 -7
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/table-export-field/index.d.ts +967 -0
- package/es/components/table-export-field/index.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
- package/es/components/table-export-field/src/constants/index.d.ts +3 -0
- package/es/components/table-export-field/src/constants/index.js +1 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-export-field/src/index.vue.d.ts +968 -0
- package/es/components/table-export-field/src/index.vue.js +1 -0
- package/es/components/table-export-field/src/index.vue2.js +1 -0
- package/es/components/table-export-field/src/types/index.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.js +1 -0
- package/es/components/table-export-field/style/index.css +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +219 -17
- 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 +17 -1
- 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 +19 -0
- 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 +178 -11
- 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/SelectFilter.vue.d.ts +1 -5
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +2 -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 +217 -17
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +219 -17
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +231 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +117 -8
- 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 +13 -9
- 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 +8 -6
- 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 +7 -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 +19 -25
- 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/SelectDynamic.vue.d.ts +223 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +158 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +611 -36
- 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 +10 -3
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -3
- 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 +639 -35
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/constants/index.d.ts +3 -1
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +9 -4
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useAsyncData.d.ts +4 -0
- package/es/components/table-filter/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -8
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +0 -1
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +3 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +7 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +2 -2
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
- package/es/components/table-filter/src/tool/generateDefOptions.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as i,provide as t,computed as a,watch as l,openBlock as o,createElementBlock as n,createVNode as r,unref as s,withCtx as d,createTextVNode as u}from"vue";import{useMessage as c,NButton as m}from"naive-ui";import f from"./components/ExportModal.vue.js";import p from"./components/SaveProjectModal.vue.js";import v from"./hooks/useAsyncData.js";import{InjectionExportApiConfig as g}from"./constants/index.js";const b={class:"table-export-field"};var L=e({__name:"index",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},fieldOriginList:{type:Array,default:()=>[]},exportApiConfig:{type:Object}},emits:["cancelModal"],setup(e,{emit:L}){const h=e,y="default",O=c(),{getTableListExportScheme:I,deleteTableListExportScheme:S,exportTableListScheme:x}=v(),j={schemeId:y,schemeName:"列表显示字段",fieldKeys:[]},N=i(!1),C=i({schemeId:"",schemeName:"",fieldKeys:[]}),w=i([JSON.parse(JSON.stringify(j))]);t(g,h.exportApiConfig);const M=a((()=>h.fieldOriginList.filter((e=>{var i;return"operatorColumn"!=e.columnName&&(!e.settingObj||(!(null==e?void 0:e.settingObj)||"0"===(null==(i=null==e?void 0:e.settingObj)?void 0:i.isHide)))})))),P=a((()=>{var e;let i=M.value.filter((e=>"1"==e.isShow));return(null==(e=null==i?void 0:i.map)?void 0:e.call(i,(e=>e.columnName)))||[]}));function A(){N.value=!N.value}function E(){L("cancelModal")}function J(e){const i=w.value.find((i=>i.schemeId===e));i&&(C.value=i)}function K(e){C.value.fieldKeys=e}async function _(){await async function(){if(!h.tableListId)return O.warning("请传入列表id");try{let e=await I({id:h.tableListId},h.exportApiConfig);if(e){const{schemes:i=[],lastUsedSchemeName:t=""}=e.obj;if(i&&i.length>0){w.value=[JSON.parse(JSON.stringify(j)),...i];const e=i.find((e=>e.schemeName===t));if(e)return void(C.value=e)}C.value=w.value[0]}}catch(e){O.error(`获取导出方案数据请求失败:${e}`)}}(),w.value.forEach((e=>{e.schemeId===y&&(e.fieldKeys=P.value||[])}))}return l((()=>h.visible),(async e=>{e&&await _()}),{immediate:!0}),(i,t)=>(o(),n("div",b,[r(f,{visible:e.visible,tableListId:e.tableListId,fieldOriginList:e.fieldOriginList,curProgram:C.value,programOptions:w.value,downLoadFieldList:s(M),onCancelModal:E,onUpdateCurProgram:J,onUpdateFieldCheckList:K},{add:d((()=>[r(s(m),{type:"info",onClick:A},{default:d((()=>[u("导出并存为方案")])),_:1})])),_:1},8,["visible","tableListId","fieldOriginList","curProgram","programOptions","downLoadFieldList"]),r(p,{visible:N.value,tableListId:e.tableListId,programOptions:w.value,curProgram:C.value,onCancelSaveModal:A},null,8,["visible","tableListId","programOptions","curProgram"])]))}});export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table-export-field-modal .n-card-header .svg-wrap i{cursor:pointer;font-size:18px}.table-export-field-modal .n-card-header .svg-wrap i:last-child{margin-left:16px}.table-export-field-modal .n-card-header .svg-wrap .n-icon{cursor:pointer}.table-export-field-modal .n-card__content{overflow-y:auto}.table-export-field-modal .n-card__content .export-field-con{display:flex;flex-direction:column}.table-export-field-modal .n-card__content .export-field-con .flex_between{display:flex;justify-content:space-between;margin-bottom:10px}.table-export-field-modal .n-card__content .export-field-con .select-fields{overflow-y:auto}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group{display:flex;flex-wrap:wrap}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group .n-checkbox{box-sizing:border-box;display:flex;flex-wrap:nowrap;padding:8px 0;width:16.6%}.table-export-field-modal .n-card__content .export-field-con .select-fields .n-checkbox-group .n-checkbox .n-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-export-field-modal .flex_right{display:flex;justify-content:flex-end}.table-export-field-modal .flex_right .n-button{margin-left:8px}.table-export-field-modal .save-project-content .n-radio-group{margin-bottom:20px}.table-export-field-modal .select-export-popover .n-base-select-option{padding-left:12px}.table-export-field-modal .select-export-popover .n-base-select-option.n-base-select-option--show-checkmark{padding-right:12px}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content{width:100%}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .flex-between{align-items:center;cursor:pointer;display:flex;justify-content:space-between}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .flex-between .content{flex:1;overflow:hidden;padding-right:5px;text-overflow:ellipsis;white-space:nowrap}.table-export-field-modal .select-export-popover .n-base-select-option .n-base-select-option__content .n-base-select-option__check{display:none!important}
|
|
@@ -34,6 +34,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
35
35
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
36
|
Date: import("vue").DefineComponent<{
|
|
37
|
+
componentCfg: {
|
|
38
|
+
type: ObjectConstructor;
|
|
39
|
+
};
|
|
37
40
|
paramCfg: {
|
|
38
41
|
type: ObjectConstructor;
|
|
39
42
|
default: null;
|
|
@@ -48,6 +51,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
51
|
};
|
|
49
52
|
}, {
|
|
50
53
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
componentCfg: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
};
|
|
51
57
|
paramCfg: {
|
|
52
58
|
type: ObjectConstructor;
|
|
53
59
|
default: null;
|
|
@@ -70,11 +76,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
76
|
dateType: any;
|
|
71
77
|
valueFormat: import("vue").ComputedRef<string>;
|
|
72
78
|
compType: import("vue").ComputedRef<any>;
|
|
73
|
-
|
|
79
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
74
80
|
widgetOptions: import("vue").ComputedRef<{
|
|
75
81
|
label: string;
|
|
76
82
|
value: string;
|
|
77
83
|
}[]>;
|
|
84
|
+
isDateDisabled: (ts: number) => boolean;
|
|
85
|
+
timeDisabled: (ts: number) => {
|
|
86
|
+
isHourDisabled(hour: number): boolean | undefined;
|
|
87
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
88
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
89
|
+
};
|
|
78
90
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
79
91
|
updateUnchangedValue: {
|
|
80
92
|
type: BooleanConstructor;
|
|
@@ -118,6 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
130
|
WidgetValEnums: {
|
|
119
131
|
CUSTOM: string;
|
|
120
132
|
FIRST_VAL: string;
|
|
133
|
+
WHOLE: string;
|
|
121
134
|
NOW: string;
|
|
122
135
|
TODAY: string;
|
|
123
136
|
TODAY_START: string;
|
|
@@ -146,6 +159,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
159
|
LAST_YEAR: string;
|
|
147
160
|
};
|
|
148
161
|
}, 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<{
|
|
162
|
+
componentCfg: {
|
|
163
|
+
type: ObjectConstructor;
|
|
164
|
+
};
|
|
149
165
|
paramCfg: {
|
|
150
166
|
type: ObjectConstructor;
|
|
151
167
|
default: null;
|
|
@@ -253,11 +269,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
269
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
254
270
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
255
271
|
optionSetting: import("vue").ComputedRef<any>;
|
|
256
|
-
|
|
257
|
-
widgetOptions: import("vue").ComputedRef<{
|
|
258
|
-
label: string;
|
|
259
|
-
value: string;
|
|
260
|
-
}[]>;
|
|
272
|
+
widgetOptions: import("vue").ComputedRef<any>;
|
|
261
273
|
NSelect: any;
|
|
262
274
|
WidgetOptionEnums: {
|
|
263
275
|
RADIO: string;
|
|
@@ -297,6 +309,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
309
|
default: null;
|
|
298
310
|
};
|
|
299
311
|
}, {
|
|
312
|
+
message: import("naive-ui").MessageApi;
|
|
300
313
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
301
314
|
paramCfg: {
|
|
302
315
|
type: ObjectConstructor;
|
|
@@ -309,28 +322,195 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
309
322
|
}>> & {
|
|
310
323
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
311
324
|
}>>;
|
|
312
|
-
|
|
313
|
-
$attrs: {
|
|
314
|
-
[x: string]: unknown;
|
|
315
|
-
};
|
|
325
|
+
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
316
326
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
317
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
318
327
|
isLoading: import("vue").Ref<boolean>;
|
|
319
328
|
filterApiConfig: import("../../../..").AnyObject;
|
|
320
|
-
|
|
329
|
+
classifyFilterList: import("vue").Ref<import("../../../..").AnyObject[]>;
|
|
330
|
+
totalPage: import("vue").Ref<number>;
|
|
331
|
+
menuProps: {
|
|
332
|
+
class: string;
|
|
333
|
+
};
|
|
334
|
+
curPage: import("vue").Ref<number>;
|
|
335
|
+
fieldTitleList: import("vue").Ref<any>;
|
|
336
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
337
|
+
keywordVal: import("vue").Ref<any>;
|
|
321
338
|
optionSetting: import("vue").ComputedRef<any>;
|
|
322
339
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
323
|
-
|
|
340
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
|
341
|
+
isLastPage: import("vue").ComputedRef<boolean>;
|
|
342
|
+
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
343
|
+
isInitRequest: import("vue").ComputedRef<boolean>;
|
|
344
|
+
setOptionActive: (selectIds: string[]) => void;
|
|
345
|
+
handleUpdateSelect: (value: string[] | null) => void;
|
|
346
|
+
handleUpdatePage: (page: number) => Promise<void>;
|
|
347
|
+
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
348
|
+
isWhole: (value: string) => boolean;
|
|
324
349
|
_handleSearch: (query: string) => Promise<void>;
|
|
325
350
|
handleSearch: (query: string) => Promise<void>;
|
|
326
351
|
handleInitData: () => Promise<void>;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}>;
|
|
352
|
+
handleClear: () => Promise<void>;
|
|
353
|
+
handleUpdateShow: (show: boolean) => void;
|
|
330
354
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
331
355
|
[key: string]: any;
|
|
332
356
|
}>;
|
|
357
|
+
init: () => void;
|
|
333
358
|
NSelect: any;
|
|
359
|
+
SelectDynamicOption: import("vue").DefineComponent<{
|
|
360
|
+
dynamicOptionInfo: {
|
|
361
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
362
|
+
default: () => {};
|
|
363
|
+
};
|
|
364
|
+
fieldTitleList: {
|
|
365
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
366
|
+
default: () => never[];
|
|
367
|
+
};
|
|
368
|
+
optionList: {
|
|
369
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
370
|
+
default: () => never[];
|
|
371
|
+
};
|
|
372
|
+
isMultiple: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
376
|
+
curPage: {
|
|
377
|
+
type: NumberConstructor;
|
|
378
|
+
default: number;
|
|
379
|
+
};
|
|
380
|
+
isLastPage: {
|
|
381
|
+
type: BooleanConstructor;
|
|
382
|
+
default: boolean;
|
|
383
|
+
};
|
|
384
|
+
isShowWhole: {
|
|
385
|
+
type: BooleanConstructor;
|
|
386
|
+
default: boolean;
|
|
387
|
+
};
|
|
388
|
+
}, {
|
|
389
|
+
selectMinWidth: number;
|
|
390
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
391
|
+
dynamicOptionInfo: {
|
|
392
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
393
|
+
default: () => {};
|
|
394
|
+
};
|
|
395
|
+
fieldTitleList: {
|
|
396
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
397
|
+
default: () => never[];
|
|
398
|
+
};
|
|
399
|
+
optionList: {
|
|
400
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
401
|
+
default: () => never[];
|
|
402
|
+
};
|
|
403
|
+
isMultiple: {
|
|
404
|
+
type: BooleanConstructor;
|
|
405
|
+
default: boolean;
|
|
406
|
+
};
|
|
407
|
+
curPage: {
|
|
408
|
+
type: NumberConstructor;
|
|
409
|
+
default: number;
|
|
410
|
+
};
|
|
411
|
+
isLastPage: {
|
|
412
|
+
type: BooleanConstructor;
|
|
413
|
+
default: boolean;
|
|
414
|
+
};
|
|
415
|
+
isShowWhole: {
|
|
416
|
+
type: BooleanConstructor;
|
|
417
|
+
default: boolean;
|
|
418
|
+
};
|
|
419
|
+
}>> & {
|
|
420
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
421
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
422
|
+
}>>;
|
|
423
|
+
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
424
|
+
dragEndWidth: import("vue").Ref<number>;
|
|
425
|
+
showKeys: import("vue").ComputedRef<any>;
|
|
426
|
+
titleList: import("vue").ComputedRef<string[]>;
|
|
427
|
+
handleSelect: (option: any) => void;
|
|
428
|
+
searchByPage: (onePage: number) => void;
|
|
429
|
+
changeWidth: ({ distance }: any) => void;
|
|
430
|
+
saveWidth: () => void;
|
|
431
|
+
NEmpty: any;
|
|
432
|
+
NButtonGroup: any;
|
|
433
|
+
NButton: any;
|
|
434
|
+
NIcon: any;
|
|
435
|
+
NPopover: any;
|
|
436
|
+
vFlexibleResize: {
|
|
437
|
+
mounted(el: any, { value }: any): void;
|
|
438
|
+
beforeUnmount(el: any): void;
|
|
439
|
+
};
|
|
440
|
+
WidgetValEnums: {
|
|
441
|
+
CUSTOM: string;
|
|
442
|
+
FIRST_VAL: string;
|
|
443
|
+
WHOLE: string;
|
|
444
|
+
NOW: string;
|
|
445
|
+
TODAY: string;
|
|
446
|
+
TODAY_START: string;
|
|
447
|
+
TODAY_END: string;
|
|
448
|
+
TOMORROW: string;
|
|
449
|
+
TOMORROW_START: string;
|
|
450
|
+
TOMORROW_END: string;
|
|
451
|
+
YESTERDAY: string;
|
|
452
|
+
YESTERDAY_START: string;
|
|
453
|
+
YESTERDAY_END: string;
|
|
454
|
+
THIS_WEEK: string;
|
|
455
|
+
WEEK_START: string;
|
|
456
|
+
WEEK_END: string;
|
|
457
|
+
NEXT_WEEK: string;
|
|
458
|
+
LAST_WEEK: string;
|
|
459
|
+
THIS_MONTH: string;
|
|
460
|
+
MONTH_START: string;
|
|
461
|
+
MONTH_END: string;
|
|
462
|
+
NEXT_MONTH: string;
|
|
463
|
+
LAST_MONTH: string;
|
|
464
|
+
THIS_QUARTER: string;
|
|
465
|
+
NEXT_QUARTER: string;
|
|
466
|
+
LAST_QUARTER: string;
|
|
467
|
+
THIS_YEAR: string;
|
|
468
|
+
NEXT_YEAR: string;
|
|
469
|
+
LAST_YEAR: string;
|
|
470
|
+
};
|
|
471
|
+
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<{}>>, {}>;
|
|
472
|
+
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<{}>>, {}>;
|
|
473
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
474
|
+
dynamicOptionInfo: {
|
|
475
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
476
|
+
default: () => {};
|
|
477
|
+
};
|
|
478
|
+
fieldTitleList: {
|
|
479
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
480
|
+
default: () => never[];
|
|
481
|
+
};
|
|
482
|
+
optionList: {
|
|
483
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
484
|
+
default: () => never[];
|
|
485
|
+
};
|
|
486
|
+
isMultiple: {
|
|
487
|
+
type: BooleanConstructor;
|
|
488
|
+
default: boolean;
|
|
489
|
+
};
|
|
490
|
+
curPage: {
|
|
491
|
+
type: NumberConstructor;
|
|
492
|
+
default: number;
|
|
493
|
+
};
|
|
494
|
+
isLastPage: {
|
|
495
|
+
type: BooleanConstructor;
|
|
496
|
+
default: boolean;
|
|
497
|
+
};
|
|
498
|
+
isShowWhole: {
|
|
499
|
+
type: BooleanConstructor;
|
|
500
|
+
default: boolean;
|
|
501
|
+
};
|
|
502
|
+
}>> & {
|
|
503
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
504
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
507
|
+
fieldTitleList: import("../../../..").AnyObject[];
|
|
508
|
+
optionList: import("../../../..").AnyObject[];
|
|
509
|
+
isMultiple: boolean;
|
|
510
|
+
curPage: number;
|
|
511
|
+
isLastPage: boolean;
|
|
512
|
+
isShowWhole: boolean;
|
|
513
|
+
}>;
|
|
334
514
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
335
515
|
paramCfg: {
|
|
336
516
|
type: ObjectConstructor;
|
|
@@ -436,8 +616,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
616
|
valueFormat: import("vue").ComputedRef<string>;
|
|
437
617
|
dateFormat: import("vue").ComputedRef<string>;
|
|
438
618
|
compType: import("vue").ComputedRef<any>;
|
|
619
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
620
|
+
isPastTime: import("vue").ComputedRef<boolean>;
|
|
621
|
+
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
439
622
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
440
623
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
624
|
+
startDefault: import("vue").ComputedRef<string>;
|
|
625
|
+
endDefault: import("vue").ComputedRef<string>;
|
|
626
|
+
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
627
|
+
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
441
628
|
dateType: any;
|
|
442
629
|
widgetOptions: import("vue").ComputedRef<{
|
|
443
630
|
label: string;
|
|
@@ -446,8 +633,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
446
633
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
447
634
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
448
635
|
isStartDateDisabled: (ts: number) => boolean;
|
|
636
|
+
timeStartDisabled: (ts: number) => {
|
|
637
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
638
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
639
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
640
|
+
};
|
|
449
641
|
isEndDateDisabled: (ts: number) => boolean;
|
|
642
|
+
timeEndDisabled: (ts: number) => {
|
|
643
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
644
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
645
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
646
|
+
};
|
|
450
647
|
NSelect: any;
|
|
648
|
+
NPopover: any;
|
|
451
649
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
452
650
|
updateUnchangedValue: {
|
|
453
651
|
type: BooleanConstructor;
|
|
@@ -490,6 +688,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
490
688
|
WidgetValEnums: {
|
|
491
689
|
CUSTOM: string;
|
|
492
690
|
FIRST_VAL: string;
|
|
691
|
+
WHOLE: string;
|
|
493
692
|
NOW: string;
|
|
494
693
|
TODAY: string;
|
|
495
694
|
TODAY_START: string;
|
|
@@ -548,7 +747,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
548
747
|
default: null;
|
|
549
748
|
};
|
|
550
749
|
}, {
|
|
551
|
-
|
|
750
|
+
getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
751
|
+
message: import("naive-ui").MessageApi;
|
|
552
752
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
553
753
|
paramCfg: {
|
|
554
754
|
type: ObjectConstructor;
|
|
@@ -588,7 +788,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
588
788
|
INPUT: string;
|
|
589
789
|
SELECT: string;
|
|
590
790
|
DATE: string;
|
|
791
|
+
DATE_OUT: string;
|
|
591
792
|
DATE_TIME: string;
|
|
793
|
+
DATETIME_OUT: string;
|
|
592
794
|
CHECKBOX_GROUP: string;
|
|
593
795
|
INPUTNUMBER_RANGE: string;
|
|
594
796
|
DATE_RANGE_OUT: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p("
|
|
1
|
+
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 普通下拉框 "),m(T)===m(v).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":E[2]||(E[2]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(v).DATE||m(T)===m(v).DATE_TIME?(a(),t(m(V),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[3]||(E[3]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[4]||(E[4]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(v).SELECTDYNAMIC?(a(),t(m(f),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[5]||(E[5]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(v).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[6]||(E[6]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(v).DATE_RANGE_INNER||m(T)===m(v).DATETIME_RANGE_INNER?(a(),t(m(s),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[7]||(E[7]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[8]||(E[8]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(v).SELECTLABEL?(a(),t(m(C),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[9]||(E[9]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{E as default};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
componentCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
};
|
|
2
5
|
paramCfg: {
|
|
3
6
|
type: ObjectConstructor;
|
|
4
7
|
default: null;
|
|
@@ -13,6 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
16
|
};
|
|
14
17
|
}, {
|
|
15
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
componentCfg: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
16
22
|
paramCfg: {
|
|
17
23
|
type: ObjectConstructor;
|
|
18
24
|
default: null;
|
|
@@ -35,11 +41,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
41
|
dateType: any;
|
|
36
42
|
valueFormat: import("vue").ComputedRef<string>;
|
|
37
43
|
compType: import("vue").ComputedRef<any>;
|
|
38
|
-
|
|
44
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
39
45
|
widgetOptions: import("vue").ComputedRef<{
|
|
40
46
|
label: string;
|
|
41
47
|
value: string;
|
|
42
48
|
}[]>;
|
|
49
|
+
isDateDisabled: (ts: number) => boolean;
|
|
50
|
+
timeDisabled: (ts: number) => {
|
|
51
|
+
isHourDisabled(hour: number): boolean | undefined;
|
|
52
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
53
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
54
|
+
};
|
|
43
55
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
44
56
|
updateUnchangedValue: {
|
|
45
57
|
type: BooleanConstructor;
|
|
@@ -83,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
95
|
WidgetValEnums: {
|
|
84
96
|
CUSTOM: string;
|
|
85
97
|
FIRST_VAL: string;
|
|
98
|
+
WHOLE: string;
|
|
86
99
|
NOW: string;
|
|
87
100
|
TODAY: string;
|
|
88
101
|
TODAY_START: string;
|
|
@@ -111,6 +124,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
124
|
LAST_YEAR: string;
|
|
112
125
|
};
|
|
113
126
|
}, 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<{
|
|
127
|
+
componentCfg: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
};
|
|
114
130
|
paramCfg: {
|
|
115
131
|
type: ObjectConstructor;
|
|
116
132
|
default: null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,createVNode as r,unref as u,isRef as o,createBlock as s,createCommentVNode as p}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetTypeEnums as i,WidgetOptionEnums as m,WidgetValEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as f}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as y}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as c,setTimeDisabled as b}from"../../render-widget/helpers/dateDisabled.js";const g={style:{display:"flex"}};var w=e({__name:"Date",props:{componentCfg:{type:Object},paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:w}){const C=e,M=t({set(e){w("update:modelValue",e)},get:()=>C.modelValue}),V=t({set(e){w("update:presetVal",e)},get:()=>C.presetVal}),j=t((()=>T.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(T.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),T=t((()=>C.paramCfg._rawData.type)),h=t((()=>{var e,t;return null==(t=null==(e=C.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),_=t((()=>{var e;const t=h.value||m.ALL;if(T.value&&t){const a=`${T.value}_${t}`,l=f[a];let r=(null!=(e=y[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:v.CUSTOM}),r}return[]}));function x(e){return c(e,h.value)}function A(e){return b(e,h.value)}return(e,t)=>(a(),l("div",g,[r(u(n),{style:{width:"120px"},class:"form-item",to:"body",value:u(V),"onUpdate:value":t[0]||(t[0]=e=>o(V)?V.value=e:null),options:u(_)},null,8,["value","options"]),u(V)===u(v).CUSTOM?(a(),s(u(d),{key:0,class:"form-item",type:u(j),clearable:"",to:"body","is-date-disabled":x,"is-time-disabled":A,valueFormat:u(D),"formatted-value":u(M),"onUpdate:formatted-value":t[1]||(t[1]=e=>o(M)?M.value=e:null)},null,8,["type","valueFormat","formatted-value"])):p("v-if",!0)]))}});export{w as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -35,8 +35,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
valueFormat: import("vue").ComputedRef<string>;
|
|
36
36
|
dateFormat: import("vue").ComputedRef<string>;
|
|
37
37
|
compType: import("vue").ComputedRef<any>;
|
|
38
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
39
|
+
isPastTime: import("vue").ComputedRef<boolean>;
|
|
40
|
+
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
38
41
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
39
42
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
43
|
+
startDefault: import("vue").ComputedRef<string>;
|
|
44
|
+
endDefault: import("vue").ComputedRef<string>;
|
|
45
|
+
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
46
|
+
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
40
47
|
dateType: any;
|
|
41
48
|
widgetOptions: import("vue").ComputedRef<{
|
|
42
49
|
label: string;
|
|
@@ -45,8 +52,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
52
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
46
53
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
47
54
|
isStartDateDisabled: (ts: number) => boolean;
|
|
55
|
+
timeStartDisabled: (ts: number) => {
|
|
56
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
57
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
58
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
59
|
+
};
|
|
48
60
|
isEndDateDisabled: (ts: number) => boolean;
|
|
61
|
+
timeEndDisabled: (ts: number) => {
|
|
62
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
63
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
64
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
65
|
+
};
|
|
49
66
|
NSelect: any;
|
|
67
|
+
NPopover: any;
|
|
50
68
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
51
69
|
updateUnchangedValue: {
|
|
52
70
|
type: BooleanConstructor;
|
|
@@ -89,6 +107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
107
|
WidgetValEnums: {
|
|
90
108
|
CUSTOM: string;
|
|
91
109
|
FIRST_VAL: string;
|
|
110
|
+
WHOLE: string;
|
|
92
111
|
NOW: string;
|
|
93
112
|
TODAY: string;
|
|
94
113
|
TODAY_START: string;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,createVNode as i,unref as d,isRef as o,withCtx as s,toDisplayString as v,createCommentVNode as n}from"vue";import{NSelect as m,NPopover as p}from"naive-ui";import f from"../../../../../date-picker/index.js";import c from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as T}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as M,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as _,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as A}from"../../render-widget/helpers/dateDisabled.js";const V={style:{display:"flex"}},Y={key:0,style:{display:"flex"}},k={key:0},x={key:0};var C=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:C}){const U=e,j=a(),F=a(),O=l((()=>{let e="";switch(H.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),S=l((()=>{let e="";switch(H.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>U.paramCfg._rawData.type)),I=l((()=>{var e,a;return null==(a=null==(e=U.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),L=l((()=>I.value===b.PAST_TIME)),$=l((()=>I.value===b.FUTURE_TIME)),R=l((()=>H.value===g.DATE?"初始日期":"初始时间")),N=l((()=>H.value===g.DATE?"截止日期":"截止时间")),G=l((()=>$.value?M.curTime:"00:00:00")),P=l((()=>L.value?M.curTime:"23:59:59")),q=l((()=>j.value?c(j.value).format(S.value):null)),z=l((()=>F.value?c(F.value).format(S.value):null)),B=l((()=>H.value.toLowerCase()||g.DATE.toLowerCase())),J=l((()=>{var e;const a=I.value||b.ALL;if(H.value&&a){const l=`${H.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:T.CUSTOM}),u}return[]})),K=l({set(e){C("update:presetVal",e)},get:()=>U.presetVal});function Q(e,a){var l,t;switch(a){case"start":j.value=e;break;case"end":F.value=e}const u=q.value||z.value?`${null!=(l=q.value)?l:""} ~ ${null!=(t=z.value)?t:""}`:"";C("update:modelValue",u)}function W(e){return E(e,I.value,F.value)}function X(e){return _(e,I.value,F.value)}function Z(e){return w(e,I.value,j.value)}function ee(e){return A(e,I.value,j.value)}return t((()=>U.modelValue),(e=>{if(e&&y(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=c(a.trim()).valueOf()),void(l.trim()&&(F.value=c(l.trim()).valueOf()))}j.value=F.value=null}),{immediate:!0}),(e,a)=>(u(),r("div",V,[i(d(m),{style:{width:"120px"},class:"form-item",to:"body",value:d(K),"onUpdate:value":a[0]||(a[0]=e=>o(K)?K.value=e:null),options:d(J)},null,8,["value","options"]),d(K)===d(T).CUSTOM?(u(),r("div",Y,[i(d(p),{trigger:"hover",disabled:!d(q)},{trigger:s((()=>[i(d(f),{type:d(B),"default-time":d(G),clearable:"",to:"body",valueFormat:d(O),placeholder:d(R),value:j.value,"is-date-disabled":W,"is-time-disabled":X,"onUpdate:value":a[1]||(a[1]=e=>Q(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(q)?(u(),r("span",k,v(d(q)),1)):n("v-if",!0)])),_:1},8,["disabled"]),i(d(p),{trigger:"hover",disabled:!d(z)},{trigger:s((()=>[i(d(f),{style:{"margin-left":"5px"},type:d(B),"default-time":d(P),clearable:"",to:"body",valueFormat:d(O),placeholder:d(N),value:F.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[2]||(a[2]=e=>Q(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(z)?(u(),r("span",x,v(d(z)),1)):n("v-if",!0)])),_:1},8,["disabled"])])):n("v-if",!0)]))}});export{C as default};
|