cnhis-design-vue 3.1.51-release.0 → 3.1.51-release.2
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 +13 -8
- package/es/components/base-search/src/index.vue.d.ts +13 -8
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/callback/index.d.ts +69 -0
- package/es/components/callback/index.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
- package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
- package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
- package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
- package/es/components/callback/src/components/popup/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
- package/es/components/callback/src/components/render/enums.d.ts +5 -0
- package/es/components/callback/src/components/render/enums.js +1 -0
- package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
- package/es/components/callback/src/components/render/index.vue.js +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +5700 -0
- package/es/components/callback/src/components/render/popupMaps.js +1 -0
- package/es/components/callback/src/index.vue.d.ts +68 -0
- package/es/components/callback/src/index.vue.js +1 -0
- package/es/components/callback/src/index.vue2.js +1 -0
- package/es/components/callback/src/types/index.d.ts +11 -0
- package/es/components/callback/style/callback-iconfont.ttf +0 -0
- package/es/components/callback/style/index.css +1 -0
- package/es/components/classification/index.d.ts +57 -15
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +57 -15
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +57 -15
- package/es/components/classification/src/index.vue.d.ts +57 -15
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +0 -13
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.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/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/form-config/index.d.ts +174 -25
- package/es/components/form-config/src/FormConfig.vue.d.ts +175 -26
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -10
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +121 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
- package/es/components/form-config/src/constants/index.d.ts +19 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +7 -3
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +79 -2
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +10 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +16 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -19
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +4 -3
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +13 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
- package/es/components/quick-search/index.d.ts +13 -8
- package/es/components/quick-search/src/index.vue.d.ts +13 -8
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
- package/es/components/select-label/index.d.ts +617 -256
- package/es/components/select-label/index.js +1 -1
- package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
- package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
- package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
- package/es/components/select-label/src/index.vue.d.ts +899 -0
- package/es/components/select-label/src/index.vue.js +1 -0
- package/es/components/select-label/src/index.vue2.js +1 -0
- package/es/components/shortcut-setter/index.d.ts +6 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +52 -7
- 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 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +34 -2
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -6
- 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 +57 -15
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +56 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -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 +55 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -7
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -6
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +16 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +19 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/directive/flexibleResize.d.ts +4 -0
- package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
- package/es/shared/directive/index.d.ts +1 -0
- package/es/shared/directive/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +27 -0
- package/es/shared/utils/business.d.ts +1 -2
- package/es/shared/utils/index.d.ts +3 -3
- package/package.json +2 -2
- package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
- package/es/components/iho-select-label/index.d.ts +0 -363
- package/es/components/iho-select-label/index.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +0 -1
- package/es/components/table-filter/src/types/tool.d.ts +0 -7
- /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
- /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
- /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
|
@@ -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,openBlock as t,createBlock as l,createCommentVNode as s}from"vue";import i from"./SelectLabel.vue.js";import a from"./ihoLabel/IhoSelectLabel.vue.js";var o=e({__name:"index",props:{type:{type:String,default:"1"},categoryList:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},selectedListObj:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isDetail:{type:Boolean,default:!1},isLock:{type:Boolean,default:!1},sourceType:{type:String,default:""},explicit:{type:Boolean,default:!1},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},queryCommonlabels:{type:Function,default:()=>Promise.resolve({data:{}})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})}},emits:["onChange"],setup(e,{emit:o}){function c(e){o("onChange",e)}return(o,r)=>"1"==e.type?(t(),l(i,{key:0,selectedList:e.selectedList,selectedListObj:e.selectedListObj,item:e.item,isDetail:e.isDetail,isLock:e.isLock,sourceType:e.sourceType,explicit:e.explicit,getLabelList:e.getLabelList,queryCommonlabels:e.queryCommonlabels,deleteLabel:e.deleteLabel,saveLabelItem:e.saveLabelItem,onOnChange:c},null,8,["selectedList","selectedListObj","item","isDetail","isLock","sourceType","explicit","getLabelList","queryCommonlabels","deleteLabel","saveLabelItem"])):"2"==e.type?(t(),l(a,{key:1,categoryList:e.categoryList,selectedList:e.selectedList,explicit:e.explicit,onOnChange:c},null,8,["categoryList","selectedList","explicit"])):s("v-if",!0)}});export{o as default};
|
|
@@ -172,9 +172,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
172
172
|
allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
|
|
173
173
|
prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
174
174
|
suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
175
|
-
allowSlash?: boolean | undefined;
|
|
175
|
+
allowSlash?: string | boolean | undefined;
|
|
176
176
|
allowModify?: "0" | "1" | undefined;
|
|
177
177
|
show_key?: string | undefined;
|
|
178
|
+
whiteList?: string[] | undefined;
|
|
178
179
|
bordered?: string | boolean | undefined;
|
|
179
180
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
180
181
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
@@ -1885,7 +1886,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1885
1886
|
default: boolean;
|
|
1886
1887
|
};
|
|
1887
1888
|
lowCodeReactions: {
|
|
1888
|
-
type: import("vue").PropType<import("
|
|
1889
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1889
1890
|
};
|
|
1890
1891
|
operationalForm: {
|
|
1891
1892
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2030,7 +2031,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2030
2031
|
default: boolean;
|
|
2031
2032
|
};
|
|
2032
2033
|
lowCodeReactions: {
|
|
2033
|
-
type: import("vue").PropType<import("
|
|
2034
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2034
2035
|
};
|
|
2035
2036
|
operationalForm: {
|
|
2036
2037
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2189,7 +2190,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2189
2190
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
2190
2191
|
requestInstance: import("..").RequestInstance;
|
|
2191
2192
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2192
|
-
lowCodeReactions: import("
|
|
2193
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2193
2194
|
linebarAutoHidden: boolean;
|
|
2194
2195
|
bordered: string | boolean;
|
|
2195
2196
|
uniqueCacheData: boolean;
|
|
@@ -2600,7 +2601,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2600
2601
|
default: boolean;
|
|
2601
2602
|
};
|
|
2602
2603
|
lowCodeReactions: {
|
|
2603
|
-
type: import("vue").PropType<import("
|
|
2604
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2604
2605
|
};
|
|
2605
2606
|
operationalForm: {
|
|
2606
2607
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -174,9 +174,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
|
|
175
175
|
prefix?: string | import("../../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
176
176
|
suffix?: string | import("../../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
177
|
-
allowSlash?: boolean | undefined;
|
|
177
|
+
allowSlash?: string | boolean | undefined;
|
|
178
178
|
allowModify?: "0" | "1" | undefined;
|
|
179
179
|
show_key?: string | undefined;
|
|
180
|
+
whiteList?: string[] | undefined;
|
|
180
181
|
bordered?: string | boolean | undefined;
|
|
181
182
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
182
183
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
@@ -1887,7 +1888,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1887
1888
|
default: boolean;
|
|
1888
1889
|
};
|
|
1889
1890
|
lowCodeReactions: {
|
|
1890
|
-
type: import("vue").PropType<import("../../../../es/
|
|
1891
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1891
1892
|
};
|
|
1892
1893
|
operationalForm: {
|
|
1893
1894
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2032,7 +2033,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2032
2033
|
default: boolean;
|
|
2033
2034
|
};
|
|
2034
2035
|
lowCodeReactions: {
|
|
2035
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2036
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2036
2037
|
};
|
|
2037
2038
|
operationalForm: {
|
|
2038
2039
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2191,7 +2192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2191
2192
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2192
2193
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2193
2194
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2194
|
-
lowCodeReactions: import("../../../../es/
|
|
2195
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2195
2196
|
linebarAutoHidden: boolean;
|
|
2196
2197
|
bordered: string | boolean;
|
|
2197
2198
|
uniqueCacheData: boolean;
|
|
@@ -2602,7 +2603,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2602
2603
|
default: boolean;
|
|
2603
2604
|
};
|
|
2604
2605
|
lowCodeReactions: {
|
|
2605
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2606
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2606
2607
|
};
|
|
2607
2608
|
operationalForm: {
|
|
2608
2609
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: null;
|
|
13
13
|
};
|
|
14
|
+
isAccurate: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
14
17
|
}, {
|
|
15
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
19
|
paramCfg: {
|
|
@@ -25,13 +28,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
28
|
type: StringConstructor;
|
|
26
29
|
default: null;
|
|
27
30
|
};
|
|
31
|
+
isAccurate: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
28
34
|
}>> & {
|
|
29
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
30
37
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
38
|
}>>;
|
|
32
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
39
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
33
40
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
34
41
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
42
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
35
43
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
44
|
Date: import("vue").DefineComponent<{
|
|
37
45
|
componentCfg: {
|
|
@@ -181,35 +189,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
189
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
182
190
|
}, {
|
|
183
191
|
modelValue: string | number | unknown[];
|
|
184
|
-
presetVal: string;
|
|
185
192
|
paramCfg: Record<string, any>;
|
|
193
|
+
presetVal: string;
|
|
186
194
|
}>;
|
|
187
195
|
InputFilter: import("vue").DefineComponent<{
|
|
196
|
+
paramCfg: {
|
|
197
|
+
type: ObjectConstructor;
|
|
198
|
+
default: null;
|
|
199
|
+
};
|
|
188
200
|
modelValue: {
|
|
189
201
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
190
202
|
default: null;
|
|
191
203
|
};
|
|
204
|
+
isAccurateFilter: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
};
|
|
192
207
|
}, {
|
|
193
208
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
209
|
+
paramCfg: {
|
|
210
|
+
type: ObjectConstructor;
|
|
211
|
+
default: null;
|
|
212
|
+
};
|
|
194
213
|
modelValue: {
|
|
195
214
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
196
215
|
default: null;
|
|
197
216
|
};
|
|
217
|
+
isAccurateFilter: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
};
|
|
198
220
|
}>> & {
|
|
199
221
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
200
223
|
}>>;
|
|
201
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
224
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
225
|
+
optionList: import("vue").Ref<{
|
|
226
|
+
label: string;
|
|
227
|
+
value: number;
|
|
228
|
+
}[]>;
|
|
202
229
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
230
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
231
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
203
232
|
NInput: any;
|
|
204
|
-
|
|
233
|
+
NSelect: any;
|
|
234
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
235
|
+
paramCfg: {
|
|
236
|
+
type: ObjectConstructor;
|
|
237
|
+
default: null;
|
|
238
|
+
};
|
|
205
239
|
modelValue: {
|
|
206
240
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
207
241
|
default: null;
|
|
208
242
|
};
|
|
243
|
+
isAccurateFilter: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
};
|
|
209
246
|
}>> & {
|
|
210
247
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
211
249
|
}, {
|
|
212
250
|
modelValue: string | number | unknown[];
|
|
251
|
+
paramCfg: Record<string, any>;
|
|
252
|
+
isAccurateFilter: boolean;
|
|
213
253
|
}>;
|
|
214
254
|
InputNumber: import("vue").DefineComponent<{
|
|
215
255
|
modelValue: {
|
|
@@ -738,8 +778,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
778
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
739
779
|
}, {
|
|
740
780
|
modelValue: string | number | unknown[];
|
|
741
|
-
presetVal: string;
|
|
742
781
|
paramCfg: Record<string, any>;
|
|
782
|
+
presetVal: string;
|
|
743
783
|
}>;
|
|
744
784
|
SelectLabel: import("vue").DefineComponent<{
|
|
745
785
|
paramCfg: {
|
|
@@ -805,7 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
805
845
|
SELECTLABEL: string;
|
|
806
846
|
SELECTDYNAMIC: string;
|
|
807
847
|
};
|
|
808
|
-
}, 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<{
|
|
848
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
809
849
|
paramCfg: {
|
|
810
850
|
type: ObjectConstructor;
|
|
811
851
|
default: null;
|
|
@@ -818,12 +858,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
818
858
|
type: StringConstructor;
|
|
819
859
|
default: null;
|
|
820
860
|
};
|
|
861
|
+
isAccurate: {
|
|
862
|
+
type: BooleanConstructor;
|
|
863
|
+
};
|
|
821
864
|
}>> & {
|
|
822
865
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
866
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
823
867
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
824
868
|
}, {
|
|
825
869
|
modelValue: string | number | unknown[];
|
|
826
|
-
presetVal: string;
|
|
827
870
|
paramCfg: Record<string, any>;
|
|
871
|
+
presetVal: string;
|
|
872
|
+
isAccurate: boolean;
|
|
828
873
|
}>;
|
|
829
874
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as
|
|
1
|
+
import{defineComponent as e,computed as a,openBlock as l,createElementBlock as u,createCommentVNode as p,unref as t,createBlock as r,isRef as m}from"vue";import{InputNumber as d,InputFilter as o,SelectFilter as n,Date as f,SelectDynamic as V,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as i}from"../../types/enums.js";const v={class:"value-cfg_wrapper"};var c=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null},isAccurate:{type:Boolean}},emits:["update:modelValue","update:presetVal","update:isAccurate"],setup(e,{emit:c}){const E=e,y=a({set(e){c("update:modelValue",e)},get:()=>E.modelValue}),A=a({set(e){c("update:presetVal",e)},get:()=>E.presetVal}),U=a({set(e){c("update:isAccurate",e)},get:()=>E.isAccurate}),N=a((()=>{var e;return null==(e=E.paramCfg)?void 0:e.type}));return(a,c)=>(l(),u("div",v,[p(" 数字框 "),t(N)===t(i).INPUT_NUMBER?(l(),r(t(d),{key:0,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[0]||(c[0]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 文本框 "),t(N)===t(i).INPUT?(l(),r(t(o),{key:1,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[1]||(c[1]=e=>m(y)?y.value=e:null),isAccurateFilter:t(U),"onUpdate:isAccurateFilter":c[2]||(c[2]=e=>m(U)?U.value=e:null)},null,8,["paramCfg","modelValue","isAccurateFilter"])):p("v-if",!0),p(" 普通下拉框 "),t(N)===t(i).SELECT?(l(),r(t(n),{key:2,paramCfg:e.paramCfg,widgetType:t(N),modelValue:t(y),"onUpdate:modelValue":c[3]||(c[3]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),t(N)===t(i).DATE||t(N)===t(i).DATE_TIME?(l(),r(t(f),{key:3,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[4]||(c[4]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[5]||(c[5]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),t(N)===t(i).SELECTDYNAMIC?(l(),r(t(V),{key:4,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[6]||(c[6]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),t(N)===t(i).INPUTNUMBER_RANGE?(l(),r(t(g),{key:5,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[7]||(c[7]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),t(N)===t(i).DATE_RANGE_INNER||t(N)===t(i).DATETIME_RANGE_INNER?(l(),r(t(s),{key:6,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[8]||(c[8]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[9]||(c[9]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),t(N)===t(i).SELECTLABEL?(l(),r(t(C),{key:7,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[10]||(c[10]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{c as default};
|
|
@@ -146,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
155
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
modelValue: string | number | unknown[];
|
|
158
|
-
presetVal: string;
|
|
159
158
|
paramCfg: Record<string, any>;
|
|
159
|
+
presetVal: string;
|
|
160
160
|
}>;
|
|
161
161
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts
CHANGED
|
@@ -1,28 +1,60 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
2
6
|
modelValue: {
|
|
3
7
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
4
8
|
default: null;
|
|
5
9
|
};
|
|
10
|
+
isAccurateFilter: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
6
13
|
}, {
|
|
7
14
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
paramCfg: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
8
19
|
modelValue: {
|
|
9
20
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
10
21
|
default: null;
|
|
11
22
|
};
|
|
23
|
+
isAccurateFilter: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
12
26
|
}>> & {
|
|
13
27
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
14
29
|
}>>;
|
|
15
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
30
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
31
|
+
optionList: import("vue").Ref<{
|
|
32
|
+
label: string;
|
|
33
|
+
value: number;
|
|
34
|
+
}[]>;
|
|
16
35
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
36
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
37
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
17
38
|
NInput: any;
|
|
18
|
-
|
|
39
|
+
NSelect: any;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
paramCfg: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
19
45
|
modelValue: {
|
|
20
46
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
21
47
|
default: null;
|
|
22
48
|
};
|
|
49
|
+
isAccurateFilter: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
23
52
|
}>> & {
|
|
24
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
25
55
|
}, {
|
|
26
56
|
modelValue: string | number | unknown[];
|
|
57
|
+
paramCfg: Record<string, any>;
|
|
58
|
+
isAccurateFilter: boolean;
|
|
27
59
|
}>;
|
|
28
60
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,ref as l,computed as a,openBlock as t,createElementBlock as u,unref as r,createBlock as i,isRef as n,createCommentVNode as o,createVNode as p}from"vue";import{NSelect as s,NInput as d}from"naive-ui";const c={style:{display:"flex","align-items":"center"}};var v=e({__name:"InputFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},isAccurateFilter:{type:Boolean}},emits:["update:modelValue","update:isAccurateFilter"],setup(e,{emit:v}){const m=e,f=l([{label:"精确查询",value:1},{label:"模糊查询",value:0}]),y=a({set(e){v("update:modelValue",e)},get:()=>m.modelValue}),b=a({set(e){v("update:isAccurateFilter",!!e)},get:()=>m.isAccurateFilter?1:0}),g=a((()=>{var e,l,a;return(null==(e=m.paramCfg._rawData)?void 0:e.filterExplicit)&&(null==(a=null==(l=m.paramCfg._rawData)?void 0:l.accurateSearch)?void 0:a.switchEnable)}));return(e,l)=>(t(),u("div",c,[r(g)?(t(),i(r(s),{key:0,class:"form-item",to:"body",clearable:"",style:{width:"120px"},value:r(b),"onUpdate:value":l[0]||(l[0]=e=>n(b)?b.value=e:null),options:f.value},null,8,["value","options"])):o("v-if",!0),p(r(d),{style:{width:"160px"},value:r(y),"onUpdate:value":l[1]||(l[1]=e=>n(y)?y.value=e:null),maxlength:"255",clearable:""},null,8,["value"])]))}});export{v as default};
|
|
@@ -146,35 +146,67 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const InputFilter: import("vue").DefineComponent<{
|
|
153
|
+
paramCfg: {
|
|
154
|
+
type: ObjectConstructor;
|
|
155
|
+
default: null;
|
|
156
|
+
};
|
|
153
157
|
modelValue: {
|
|
154
158
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
155
159
|
default: null;
|
|
156
160
|
};
|
|
161
|
+
isAccurateFilter: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
157
164
|
}, {
|
|
158
165
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
paramCfg: {
|
|
167
|
+
type: ObjectConstructor;
|
|
168
|
+
default: null;
|
|
169
|
+
};
|
|
159
170
|
modelValue: {
|
|
160
171
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
161
172
|
default: null;
|
|
162
173
|
};
|
|
174
|
+
isAccurateFilter: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
};
|
|
163
177
|
}>> & {
|
|
164
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
165
180
|
}>>;
|
|
166
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
181
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
182
|
+
optionList: import("vue").Ref<{
|
|
183
|
+
label: string;
|
|
184
|
+
value: number;
|
|
185
|
+
}[]>;
|
|
167
186
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
187
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
188
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
168
189
|
NInput: any;
|
|
169
|
-
|
|
190
|
+
NSelect: any;
|
|
191
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
192
|
+
paramCfg: {
|
|
193
|
+
type: ObjectConstructor;
|
|
194
|
+
default: null;
|
|
195
|
+
};
|
|
170
196
|
modelValue: {
|
|
171
197
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
172
198
|
default: null;
|
|
173
199
|
};
|
|
200
|
+
isAccurateFilter: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
};
|
|
174
203
|
}>> & {
|
|
175
204
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
176
206
|
}, {
|
|
177
207
|
modelValue: string | number | unknown[];
|
|
208
|
+
paramCfg: Record<string, any>;
|
|
209
|
+
isAccurateFilter: boolean;
|
|
178
210
|
}>;
|
|
179
211
|
declare const InputNumber: import("vue").DefineComponent<{
|
|
180
212
|
modelValue: {
|
|
@@ -703,8 +735,8 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
703
735
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
704
736
|
}, {
|
|
705
737
|
modelValue: string | number | unknown[];
|
|
706
|
-
presetVal: string;
|
|
707
738
|
paramCfg: Record<string, any>;
|
|
739
|
+
presetVal: string;
|
|
708
740
|
}>;
|
|
709
741
|
declare const SelectLabel: import("vue").DefineComponent<{
|
|
710
742
|
paramCfg: {
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts
CHANGED
|
@@ -9,10 +9,5 @@ export declare const useFilterConditions: (filterConditions: Ref, selectList: an
|
|
|
9
9
|
updateCondition: (index: number, val: any) => void;
|
|
10
10
|
getParamCfg: (key: string) => any;
|
|
11
11
|
initFilterConditions: (tableId: string, rawConditions: ISearchConfigType) => Promise<void>;
|
|
12
|
-
getRawFilterConditions: () =>
|
|
13
|
-
field_key: any;
|
|
14
|
-
con: any;
|
|
15
|
-
value: any;
|
|
16
|
-
unit: any;
|
|
17
|
-
}[];
|
|
12
|
+
getRawFilterConditions: () => any[];
|
|
18
13
|
};
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as
|
|
1
|
+
import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as i}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as u,transformDataToFront as c}from"../../../tool/transformData.js";const s=(s,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=s.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const o=y(a.key);(null==(e=null==(t=o._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=o._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==o.SELECT&&(null==t?void 0:t.type)!==o.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==i.MULTIPLE?null:[],a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{s.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:a=>{s.value.splice(a,1)},updateKey:(a,t)=>{const e=s.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return c(d,p)}catch(a){return[]}})();m.params=n,s.value=r(t,e(m.params))},getRawFilterConditions:()=>u(n(s))}};export{s as useFilterConditions};
|
|
@@ -67,10 +67,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
className: string;
|
|
68
68
|
displayCategory: string;
|
|
69
69
|
filterConditions: {
|
|
70
|
-
value: string;
|
|
71
|
-
key: string;
|
|
72
70
|
condition: string;
|
|
71
|
+
key: string;
|
|
73
72
|
presetVal: string;
|
|
73
|
+
value: string;
|
|
74
|
+
isAccurateSearch?: boolean | undefined;
|
|
75
|
+
accurateSearchKey?: string | undefined;
|
|
74
76
|
}[];
|
|
75
77
|
};
|
|
76
78
|
loading: import("vue").Ref<boolean>;
|
|
@@ -98,12 +100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
100
|
updateCondition: (index: number, val: any) => void;
|
|
99
101
|
getParamCfg: (key: string) => any;
|
|
100
102
|
initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
101
|
-
getRawFilterConditions: () =>
|
|
102
|
-
field_key: any;
|
|
103
|
-
con: any;
|
|
104
|
-
value: any;
|
|
105
|
-
unit: any;
|
|
106
|
-
}[];
|
|
103
|
+
getRawFilterConditions: () => any[];
|
|
107
104
|
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
108
105
|
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
109
106
|
clearFormData: () => void;
|
|
@@ -134,6 +131,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
131
|
type: StringConstructor;
|
|
135
132
|
default: null;
|
|
136
133
|
};
|
|
134
|
+
isAccurate: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
};
|
|
137
137
|
}, {
|
|
138
138
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
139
139
|
paramCfg: {
|
|
@@ -148,13 +148,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
148
|
type: StringConstructor;
|
|
149
149
|
default: null;
|
|
150
150
|
};
|
|
151
|
+
isAccurate: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
};
|
|
151
154
|
}>> & {
|
|
152
155
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
153
157
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
154
158
|
}>>;
|
|
155
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
159
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
156
160
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
157
161
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
162
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
158
163
|
widgetType: import("vue").ComputedRef<any>;
|
|
159
164
|
Date: import("vue").DefineComponent<{
|
|
160
165
|
componentCfg: {
|
|
@@ -304,35 +309,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
304
309
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
305
310
|
}, {
|
|
306
311
|
modelValue: string | number | unknown[];
|
|
307
|
-
presetVal: string;
|
|
308
312
|
paramCfg: Record<string, any>;
|
|
313
|
+
presetVal: string;
|
|
309
314
|
}>;
|
|
310
315
|
InputFilter: import("vue").DefineComponent<{
|
|
316
|
+
paramCfg: {
|
|
317
|
+
type: ObjectConstructor;
|
|
318
|
+
default: null;
|
|
319
|
+
};
|
|
311
320
|
modelValue: {
|
|
312
321
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
313
322
|
default: null;
|
|
314
323
|
};
|
|
324
|
+
isAccurateFilter: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
};
|
|
315
327
|
}, {
|
|
316
328
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
329
|
+
paramCfg: {
|
|
330
|
+
type: ObjectConstructor;
|
|
331
|
+
default: null;
|
|
332
|
+
};
|
|
317
333
|
modelValue: {
|
|
318
334
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
319
335
|
default: null;
|
|
320
336
|
};
|
|
337
|
+
isAccurateFilter: {
|
|
338
|
+
type: BooleanConstructor;
|
|
339
|
+
};
|
|
321
340
|
}>> & {
|
|
322
341
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
342
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
323
343
|
}>>;
|
|
324
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
344
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
345
|
+
optionList: import("vue").Ref<{
|
|
346
|
+
label: string;
|
|
347
|
+
value: number;
|
|
348
|
+
}[]>;
|
|
325
349
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
350
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
351
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
326
352
|
NInput: any;
|
|
327
|
-
|
|
353
|
+
NSelect: any;
|
|
354
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
355
|
+
paramCfg: {
|
|
356
|
+
type: ObjectConstructor;
|
|
357
|
+
default: null;
|
|
358
|
+
};
|
|
328
359
|
modelValue: {
|
|
329
360
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
330
361
|
default: null;
|
|
331
362
|
};
|
|
363
|
+
isAccurateFilter: {
|
|
364
|
+
type: BooleanConstructor;
|
|
365
|
+
};
|
|
332
366
|
}>> & {
|
|
333
367
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
368
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
334
369
|
}, {
|
|
335
370
|
modelValue: string | number | unknown[];
|
|
371
|
+
paramCfg: Record<string, any>;
|
|
372
|
+
isAccurateFilter: boolean;
|
|
336
373
|
}>;
|
|
337
374
|
InputNumber: import("vue").DefineComponent<{
|
|
338
375
|
modelValue: {
|
|
@@ -861,8 +898,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
861
898
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
862
899
|
}, {
|
|
863
900
|
modelValue: string | number | unknown[];
|
|
864
|
-
presetVal: string;
|
|
865
901
|
paramCfg: Record<string, any>;
|
|
902
|
+
presetVal: string;
|
|
866
903
|
}>;
|
|
867
904
|
SelectLabel: import("vue").DefineComponent<{
|
|
868
905
|
paramCfg: {
|
|
@@ -928,7 +965,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
928
965
|
SELECTLABEL: string;
|
|
929
966
|
SELECTDYNAMIC: string;
|
|
930
967
|
};
|
|
931
|
-
}, 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<{
|
|
968
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
932
969
|
paramCfg: {
|
|
933
970
|
type: ObjectConstructor;
|
|
934
971
|
default: null;
|
|
@@ -941,13 +978,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
941
978
|
type: StringConstructor;
|
|
942
979
|
default: null;
|
|
943
980
|
};
|
|
981
|
+
isAccurate: {
|
|
982
|
+
type: BooleanConstructor;
|
|
983
|
+
};
|
|
944
984
|
}>> & {
|
|
945
985
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
986
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
946
987
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
947
988
|
}, {
|
|
948
989
|
modelValue: string | number | unknown[];
|
|
949
|
-
presetVal: string;
|
|
950
990
|
paramCfg: Record<string, any>;
|
|
991
|
+
presetVal: string;
|
|
992
|
+
isAccurate: boolean;
|
|
951
993
|
}>;
|
|
952
994
|
ConditionEnums: {
|
|
953
995
|
NULL: string;
|