cnhis-design-vue 3.1.41 → 3.1.42-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +293 -0
- package/es/components/base-search/index.js +1 -0
- package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +26 -91
- package/es/components/base-search/src/index.vue.js +1 -0
- package/es/components/base-search/style/iconfont.ttf +0 -0
- package/es/components/base-search/style/index.css +1 -0
- package/es/components/big-table/index.d.ts +4 -3
- package/es/components/big-table/src/BigTable.vue.d.ts +4 -3
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +7 -6
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/api.d.ts +3 -0
- package/es/components/button-print/src/api.js +1 -0
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +995 -0
- package/es/components/classification/index.js +1 -0
- package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +10 -93
- package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +5 -130
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
- package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -42
- package/es/components/classification/src/components/table-modal/index.vue.js +1 -0
- package/es/components/classification/src/const/index.d.ts +2 -0
- package/es/components/classification/src/const/index.js +1 -0
- package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +57 -291
- package/es/components/classification/src/index.vue.js +1 -0
- package/es/components/classification/style/iconfont.ttf +0 -0
- package/es/components/classification/style/index.css +1 -0
- package/es/components/config-provider/index.d.ts +14 -0
- package/es/components/config-provider/index.js +1 -0
- package/es/components/config-provider/src/ConfigProvider.d.ts +14 -0
- package/es/components/config-provider/src/ConfigProvider.js +1 -0
- package/es/components/config-provider/src/interface.d.ts +19 -0
- package/es/components/config-provider/src/interface.js +1 -0
- package/es/components/config-provider/src/utils/index.d.ts +2 -0
- package/es/components/config-provider/src/utils/index.js +1 -0
- package/es/components/date-picker/index.d.ts +20 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -0
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/field-set/index.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +46 -37
- package/es/components/form-config/src/FormConfig.vue.d.ts +46 -37
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +9 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +33 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +16 -16
- package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +3 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +3 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -4
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +8 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +3799 -156
- package/es/components/info-header/src/InfoHeader.vue.d.ts +3800 -156
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1842 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1972 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2669 -139
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/src/constants/index.d.ts +4 -0
- package/es/components/info-header/src/constants/index.js +1 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +4 -0
- package/es/components/info-header/src/hooks/useThemeOverrides.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +17 -3
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +4 -2
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -2
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.d.ts +2 -0
- package/es/components/keyboard/src/constants/index.js +1 -0
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/quick-search/index.d.ts +713 -0
- package/es/components/quick-search/index.js +1 -0
- package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +31 -120
- package/es/components/quick-search/src/index.vue.js +1 -0
- package/es/components/quick-search/style/index.css +1 -0
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +69 -116
- package/es/components/search-cascader/index.d.ts +2 -2
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/select-label/index.d.ts +70 -169
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -53
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +70 -116
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/style/iconfont.ttf +0 -0
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +17 -17
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
- package/es/components/steps-wheel/index.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.d.ts +2 -0
- package/es/components/steps-wheel/src/constants/index.js +1 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/index.d.ts +0 -2385
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +0 -8
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -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 +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -37
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +13 -169
- package/es/components/time-picker/index.d.ts +18 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/shared/mixins/index.d.ts +1 -0
- package/es/shared/mixins/index.js +1 -0
- package/es/shared/mixins/useTheme.d.ts +3 -0
- package/es/shared/mixins/useTheme.js +1 -0
- package/es/shared/utils/index.d.ts +1 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.js +0 -1
- package/es/components/table-filter/src/const/index.d.ts +0 -5
- package/es/components/table-filter/src/const/index.js +0 -1
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
- package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
- package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
- package/es/components/table-filter/src/tool/time-domain.js +0 -1
- package/es/components/table-filter/src/tool/utils.d.ts +0 -4
- package/es/components/table-filter/src/tool/utils.js +0 -1
- package/es/components/table-filter/style/index.css +0 -1
- /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
- /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
- /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
- /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,ref as t,onDeactivated as a,createVNode as l,unref as n,createTextVNode as u}from"vue";import{FileTrayFull as
|
|
1
|
+
import{defineComponent as e,computed as o,ref as t,onDeactivated as a,createVNode as l,unref as n,createTextVNode as u}from"vue";import{useTheme as i}from"../../../shared/mixins/useTheme.js";import{FileTrayFull as s,FileTray as r}from"@vicons/ionicons5";import{isString as m,isObject as v}from"lodash-es";import{NPopover as d,NDivider as c,NEllipsis as p,NIcon as f,NInput as g}from"naive-ui";var h=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:h}){const V=i(),w=o({get:()=>m(e.modelValue)?e.modelValue:v(e.modelValue)&&e.modelValue.content||"",set(o){let t=o;v(e.modelValue)&&(t={...e.modelValue,content:o}),h("update:modelValue",t)}}),x=t(!1),T=o({get:()=>x.value,async set(e){x.value=e,!e&&y.value&&(await new Promise((e=>setTimeout(e,200))),y.value=!1)}}),y=t(!1);let _,k;function P(e){e.stopPropagation(),clearTimeout(_),T.value&&y.value?T.value=!1:n(w)||(_=setTimeout((()=>{y.value=T.value=!0}),200))}function b(e){e.stopPropagation(),clearTimeout(_),n(w)&&(T.value=!0,y.value=!0)}function M(e){e.stopPropagation(),clearTimeout(k),n(w)&&(T.value=!0)}function j(e){e.stopPropagation(),clearTimeout(k),n(w)&&!y.value&&(k=setTimeout((()=>{T.value=!1}),300))}return a((()=>{T.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!n(w)}],style:{"--icon-right":"-5",...V.value},"annotation-hover-show":!n(w)&&!y.value},[l(d,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:T.value,"onUpdate:show":e=>T.value=e,trigger:"manual",duration:100},{default:function(){return l("section",{onMouseleave:j,onMouseenter:M},[l("div",null,[y.value?l(g,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:w.value,"onUpdate:value":e=>w.value=e},null):l("span",null,[n(w)])]),v(e.modelValue)?[l(c,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[l(p,null,{default:()=>[u("质控人: "),e.modelValue.author]}),l(p,null,{default:()=>[u("质控时间: "),e.modelValue.date]})])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:M,onDblclick:b,onClick:P},[l(f,{component:n(w)?s:r},null)])}})])}}});export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.annotation-edit{align-items:center;color
|
|
1
|
+
.annotation-edit{align-items:center;color:var(--c-primary-color);cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:var(--c-primary-color);filter:hue-rotate(140deg)}.annotation-edit__icon{align-items:center;display:inline-flex}.annotation-edit__textarea{min-width:200px}.annotation-edit__footer{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;justify-content:space-between;opacity:.5}.annotation-edit__footer>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annotation-edit__footer>div:first-of-type{min-width:30%}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
showSettings: {
|
|
4
|
+
type: import("vue").PropType<import("..").IsettingsType>;
|
|
5
|
+
default: () => {
|
|
6
|
+
hideQuickSearch: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
searchFieldList: {
|
|
10
|
+
type: import("vue").PropType<import("..").IApiServerType[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
classificationIndex: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
};
|
|
16
|
+
qqConObjCount: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
outQuickSearchFn: {
|
|
22
|
+
handlerInitSearchItem(arr: import("..").ISearchType[]): void;
|
|
23
|
+
};
|
|
24
|
+
isRender: (cfg: import("..").ISearchType) => any;
|
|
25
|
+
getRenderSearchConObj: (cfg: import("..").ISearchType) => {
|
|
26
|
+
field_key: string;
|
|
27
|
+
con: string | undefined;
|
|
28
|
+
value: any[] | null;
|
|
29
|
+
unit: null;
|
|
30
|
+
} | null;
|
|
31
|
+
isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
|
|
32
|
+
resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
|
|
33
|
+
transformData: (advancedFilterData: import("..").IApiServerType[]) => {
|
|
34
|
+
fieldType: string;
|
|
35
|
+
columnName: string;
|
|
36
|
+
settingObj: {};
|
|
37
|
+
setting: string;
|
|
38
|
+
widgetCfg: {
|
|
39
|
+
isRender: boolean;
|
|
40
|
+
widgetType: string | null;
|
|
41
|
+
valueList: {
|
|
42
|
+
value: any;
|
|
43
|
+
label: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
defaultValue: any;
|
|
46
|
+
defValueUnit: any;
|
|
47
|
+
multiple: boolean;
|
|
48
|
+
};
|
|
49
|
+
title: string;
|
|
50
|
+
alias: string | undefined;
|
|
51
|
+
isShowSearch: number;
|
|
52
|
+
filterExplicit: number;
|
|
53
|
+
explicitRequired: number;
|
|
54
|
+
advanceOptionSetting: string;
|
|
55
|
+
placeholder: string | undefined;
|
|
56
|
+
advanceColWidth: string;
|
|
57
|
+
}[];
|
|
58
|
+
transformParams: (paramsList: any) => {};
|
|
59
|
+
baseLeft: any;
|
|
60
|
+
quickSearchLi: any;
|
|
61
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
showSettings: {
|
|
63
|
+
type: import("vue").PropType<import("..").IsettingsType>;
|
|
64
|
+
default: () => {
|
|
65
|
+
hideQuickSearch: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
searchFieldList: {
|
|
69
|
+
type: import("vue").PropType<import("..").IApiServerType[]>;
|
|
70
|
+
default: () => never[];
|
|
71
|
+
};
|
|
72
|
+
classificationIndex: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
};
|
|
75
|
+
qqConObjCount: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: number;
|
|
78
|
+
};
|
|
79
|
+
}>> & {
|
|
80
|
+
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
}>>;
|
|
85
|
+
emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
|
|
86
|
+
baseLeftWidth: import("vue").Ref<number>;
|
|
87
|
+
classificationWidth: import("vue").Ref<number>;
|
|
88
|
+
quickSearchWidth: import("vue").Ref<number>;
|
|
89
|
+
diffWidth: import("vue").Ref<number>;
|
|
90
|
+
curConObj: import("vue").Ref<{
|
|
91
|
+
field_key: string;
|
|
92
|
+
con: string;
|
|
93
|
+
value: any;
|
|
94
|
+
unit: string | null;
|
|
95
|
+
}[]>;
|
|
96
|
+
showResetFilterBtn: import("vue").Ref<boolean>;
|
|
97
|
+
resizeFlag: import("vue").Ref<boolean>;
|
|
98
|
+
outSearchFieldList: import("vue").Ref<{
|
|
99
|
+
columnName: string;
|
|
100
|
+
title: string;
|
|
101
|
+
fieldType?: string | undefined;
|
|
102
|
+
filterExplicit?: number | undefined;
|
|
103
|
+
isShowSearch?: number | undefined;
|
|
104
|
+
setting?: any;
|
|
105
|
+
settingObj?: any;
|
|
106
|
+
placeholder?: string | undefined;
|
|
107
|
+
AGEAttr?: boolean | undefined;
|
|
108
|
+
CL?: string | undefined;
|
|
109
|
+
CONVERT?: any;
|
|
110
|
+
EVALUATEAttr?: boolean | undefined;
|
|
111
|
+
EQ?: string | undefined;
|
|
112
|
+
LABELAttr?: boolean | undefined;
|
|
113
|
+
_isBlock?: boolean | undefined;
|
|
114
|
+
_frontId?: any;
|
|
115
|
+
NUMBERFiled?: boolean | undefined;
|
|
116
|
+
PASSWORDTYPE?: boolean | undefined;
|
|
117
|
+
advanceColWidth?: string | undefined;
|
|
118
|
+
advanceOptionSetting?: string | undefined;
|
|
119
|
+
alias?: string | undefined;
|
|
120
|
+
ageObj?: any;
|
|
121
|
+
attr?: string | undefined;
|
|
122
|
+
bigValue?: string | number | undefined;
|
|
123
|
+
classify?: string | undefined;
|
|
124
|
+
colWidth?: number | undefined;
|
|
125
|
+
columnFullName?: string | undefined;
|
|
126
|
+
com?: string | undefined;
|
|
127
|
+
comType?: string | undefined;
|
|
128
|
+
comAttr?: string | undefined;
|
|
129
|
+
con?: string | undefined;
|
|
130
|
+
dataSource?: any;
|
|
131
|
+
dictionarieObj?: any;
|
|
132
|
+
explicitRequired?: number | undefined;
|
|
133
|
+
explicitDefaultVal?: string | undefined;
|
|
134
|
+
extraField?: boolean | undefined;
|
|
135
|
+
fieldSetting?: string | undefined;
|
|
136
|
+
format?: string | undefined;
|
|
137
|
+
i18n?: string | undefined;
|
|
138
|
+
id?: string | undefined;
|
|
139
|
+
inputVal?: string | undefined;
|
|
140
|
+
inputUnit?: string | undefined;
|
|
141
|
+
isAvg?: number | undefined;
|
|
142
|
+
isEdit?: number | undefined;
|
|
143
|
+
isFixed?: number | undefined;
|
|
144
|
+
isFixedShow?: number | undefined;
|
|
145
|
+
isFontWeight?: number | undefined;
|
|
146
|
+
isMerge?: number | undefined;
|
|
147
|
+
isOrder?: number | undefined;
|
|
148
|
+
isPreciseSearch?: boolean | undefined;
|
|
149
|
+
isRender?: boolean | undefined;
|
|
150
|
+
isSearch?: number | undefined;
|
|
151
|
+
isShow?: number | undefined;
|
|
152
|
+
isSort?: number | undefined;
|
|
153
|
+
isSum?: number | undefined;
|
|
154
|
+
labelObj?: any;
|
|
155
|
+
labelList?: {
|
|
156
|
+
labelId?: string | undefined;
|
|
157
|
+
change_text: string;
|
|
158
|
+
field_key: string;
|
|
159
|
+
filter: {
|
|
160
|
+
con: string;
|
|
161
|
+
conName?: string | undefined;
|
|
162
|
+
field_key: string;
|
|
163
|
+
key?: string | undefined;
|
|
164
|
+
value: string;
|
|
165
|
+
}[];
|
|
166
|
+
label: string;
|
|
167
|
+
labelName: string;
|
|
168
|
+
sqlExpression: string;
|
|
169
|
+
value: string;
|
|
170
|
+
isSelect?: boolean | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
labelSelectList?: {
|
|
173
|
+
labelId?: string | undefined;
|
|
174
|
+
change_text: string;
|
|
175
|
+
field_key: string;
|
|
176
|
+
filter: {
|
|
177
|
+
con: string;
|
|
178
|
+
conName?: string | undefined;
|
|
179
|
+
field_key: string;
|
|
180
|
+
key?: string | undefined;
|
|
181
|
+
value: string;
|
|
182
|
+
}[];
|
|
183
|
+
label: string;
|
|
184
|
+
labelName: string;
|
|
185
|
+
sqlExpression: string;
|
|
186
|
+
value: string;
|
|
187
|
+
isSelect?: boolean | undefined;
|
|
188
|
+
}[] | undefined;
|
|
189
|
+
lessValue?: string | number | undefined;
|
|
190
|
+
marginx?: string | undefined;
|
|
191
|
+
notParticipatingSearch?: number | undefined;
|
|
192
|
+
order?: string | undefined;
|
|
193
|
+
QUOTE?: any;
|
|
194
|
+
searchPageConfig?: any;
|
|
195
|
+
selecteds?: any;
|
|
196
|
+
sequence?: number | undefined;
|
|
197
|
+
showDate?: boolean | undefined;
|
|
198
|
+
showFormat?: string | undefined;
|
|
199
|
+
showTime?: boolean | undefined;
|
|
200
|
+
sid?: string | undefined;
|
|
201
|
+
start_val?: number | null | undefined;
|
|
202
|
+
end_val?: number | null | undefined;
|
|
203
|
+
tempCon?: any;
|
|
204
|
+
tableId?: string | undefined;
|
|
205
|
+
value?: any;
|
|
206
|
+
unit?: string | undefined;
|
|
207
|
+
widgetCfg?: any;
|
|
208
|
+
formTitle?: string | undefined;
|
|
209
|
+
random_key?: string | undefined;
|
|
210
|
+
widgetType?: any;
|
|
211
|
+
hasFieldList?: any;
|
|
212
|
+
search_DefaultValue?: any;
|
|
213
|
+
}[]>;
|
|
214
|
+
showQuickSearch: import("vue").ComputedRef<boolean>;
|
|
215
|
+
initOutSearchFieldList: (config?: any) => void;
|
|
216
|
+
pageResize: (obj: any) => any;
|
|
217
|
+
handleTileBtnWidth: () => void;
|
|
218
|
+
onResize: () => void;
|
|
219
|
+
isShowSetting: (v: string) => boolean;
|
|
220
|
+
foldQuickSearch: () => void;
|
|
221
|
+
outFilterChange: (config?: {}) => void;
|
|
222
|
+
getConObjParams: () => any;
|
|
223
|
+
getConObj: (arr: any) => any;
|
|
224
|
+
onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
|
225
|
+
handleReset: () => void;
|
|
226
|
+
resetFunc: (arr: import("..").ISearchType[]) => void;
|
|
227
|
+
vResize: {
|
|
228
|
+
mounted(el: any, binding: any): void;
|
|
229
|
+
};
|
|
230
|
+
RenderWidget: import("vue").DefineComponent<{
|
|
231
|
+
cfg: {
|
|
232
|
+
type: ObjectConstructor;
|
|
233
|
+
required: true;
|
|
234
|
+
};
|
|
235
|
+
modelValue: {
|
|
236
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
237
|
+
};
|
|
238
|
+
}, any, {
|
|
239
|
+
initialProps: {};
|
|
240
|
+
}, {
|
|
241
|
+
valueCp(): any;
|
|
242
|
+
}, {
|
|
243
|
+
search(): void;
|
|
244
|
+
getEleWidth(cfg: any): string | undefined;
|
|
245
|
+
initComponentProps(cfg: any): void;
|
|
246
|
+
generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
247
|
+
[key: string]: any;
|
|
248
|
+
}> | null;
|
|
249
|
+
handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
|
|
250
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
251
|
+
cfg: {
|
|
252
|
+
type: ObjectConstructor;
|
|
253
|
+
required: true;
|
|
254
|
+
};
|
|
255
|
+
modelValue: {
|
|
256
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
257
|
+
};
|
|
258
|
+
}>> & {
|
|
259
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
260
|
+
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
261
|
+
}, {}>;
|
|
262
|
+
NIcon: any;
|
|
263
|
+
NButton: any;
|
|
264
|
+
Search: 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<{}>>, {}>;
|
|
265
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam")[], "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
266
|
+
showSettings: {
|
|
267
|
+
type: import("vue").PropType<import("..").IsettingsType>;
|
|
268
|
+
default: () => {
|
|
269
|
+
hideQuickSearch: number;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
searchFieldList: {
|
|
273
|
+
type: import("vue").PropType<import("..").IApiServerType[]>;
|
|
274
|
+
default: () => never[];
|
|
275
|
+
};
|
|
276
|
+
classificationIndex: {
|
|
277
|
+
type: NumberConstructor;
|
|
278
|
+
};
|
|
279
|
+
qqConObjCount: {
|
|
280
|
+
type: NumberConstructor;
|
|
281
|
+
default: number;
|
|
282
|
+
};
|
|
283
|
+
}>> & {
|
|
284
|
+
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
285
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
286
|
+
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
287
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
showSettings: import("..").IsettingsType;
|
|
290
|
+
searchFieldList: import("..").IApiServerType[];
|
|
291
|
+
qqConObjCount: number;
|
|
292
|
+
}>>;
|
|
293
|
+
export default CBaseSearch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as s}from"../../shared/utils/index.js";import a from"./src/index.vue.js";const e=a;e.install=function(a){s(a,e,r+"BaseSearch")};export{e as default};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ISearchType, IsettingsType, IApiServerType, ISearchParamsType } from '../../../../es/components/table-filter/src/types';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
|
-
import { ISearchType, IsettingsType, IApiServerType } from '../../../../../es/components/table-filter/src/types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
showSettings: {
|
|
5
5
|
type: PropType<IsettingsType>;
|
|
6
|
-
default: () => {
|
|
6
|
+
default: () => {
|
|
7
|
+
hideQuickSearch: number;
|
|
8
|
+
};
|
|
7
9
|
};
|
|
8
10
|
searchFieldList: {
|
|
9
11
|
type: PropType<IApiServerType[]>;
|
|
@@ -18,10 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
20
|
};
|
|
19
21
|
}, {
|
|
20
22
|
outQuickSearchFn: {
|
|
21
|
-
handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
23
|
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
23
|
-
handleSetLabelOptions(labelType: any, el: ISearchType): void;
|
|
24
|
-
getConObj(arr: any): any;
|
|
25
24
|
};
|
|
26
25
|
isRender: (cfg: ISearchType) => any;
|
|
27
26
|
getRenderSearchConObj: (cfg: ISearchType) => {
|
|
@@ -57,12 +56,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
56
|
placeholder: string | undefined;
|
|
58
57
|
advanceColWidth: string;
|
|
59
58
|
}[];
|
|
59
|
+
transformParams: (paramsList: any) => {};
|
|
60
60
|
baseLeft: any;
|
|
61
61
|
quickSearchLi: any;
|
|
62
62
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
showSettings: {
|
|
64
64
|
type: PropType<IsettingsType>;
|
|
65
|
-
default: () => {
|
|
65
|
+
default: () => {
|
|
66
|
+
hideQuickSearch: number;
|
|
67
|
+
};
|
|
66
68
|
};
|
|
67
69
|
searchFieldList: {
|
|
68
70
|
type: PropType<IApiServerType[]>;
|
|
@@ -76,17 +78,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
78
|
default: number;
|
|
77
79
|
};
|
|
78
80
|
}>> & {
|
|
79
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
80
81
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
81
83
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
|
|
83
|
-
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
84
85
|
}>>;
|
|
85
|
-
emit: (event: "
|
|
86
|
+
emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
|
|
86
87
|
baseLeftWidth: import("vue").Ref<number>;
|
|
87
88
|
classificationWidth: import("vue").Ref<number>;
|
|
88
89
|
quickSearchWidth: import("vue").Ref<number>;
|
|
89
90
|
diffWidth: import("vue").Ref<number>;
|
|
91
|
+
curConObj: import("vue").Ref<{
|
|
92
|
+
field_key: string;
|
|
93
|
+
con: string;
|
|
94
|
+
value: any;
|
|
95
|
+
unit: string | null;
|
|
96
|
+
}[]>;
|
|
90
97
|
showResetFilterBtn: import("vue").Ref<boolean>;
|
|
91
98
|
resizeFlag: import("vue").Ref<boolean>;
|
|
92
99
|
outSearchFieldList: import("vue").Ref<{
|
|
@@ -99,32 +106,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
106
|
settingObj?: any;
|
|
100
107
|
placeholder?: string | undefined;
|
|
101
108
|
AGEAttr?: boolean | undefined;
|
|
102
|
-
BIRTHDAY?: {
|
|
103
|
-
con: any;
|
|
104
|
-
limit_date?: any;
|
|
105
|
-
start_val: any;
|
|
106
|
-
end_val: any;
|
|
107
|
-
unit?: string | undefined;
|
|
108
|
-
units?: {
|
|
109
|
-
con: string;
|
|
110
|
-
title: string;
|
|
111
|
-
name: string;
|
|
112
|
-
units?: number | undefined;
|
|
113
|
-
}[] | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
DATE?: {
|
|
116
|
-
con: any;
|
|
117
|
-
limit_date?: any;
|
|
118
|
-
start_val: any;
|
|
119
|
-
end_val: any;
|
|
120
|
-
unit?: string | undefined;
|
|
121
|
-
units?: {
|
|
122
|
-
con: string;
|
|
123
|
-
title: string;
|
|
124
|
-
name: string;
|
|
125
|
-
units?: number | undefined;
|
|
126
|
-
}[] | undefined;
|
|
127
|
-
} | undefined;
|
|
128
109
|
CL?: string | undefined;
|
|
129
110
|
CONVERT?: any;
|
|
130
111
|
EVALUATEAttr?: boolean | undefined;
|
|
@@ -148,12 +129,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
129
|
comAttr?: string | undefined;
|
|
149
130
|
con?: string | undefined;
|
|
150
131
|
dataSource?: any;
|
|
151
|
-
dateTeam?: {
|
|
152
|
-
con: string;
|
|
153
|
-
title: string;
|
|
154
|
-
name: string;
|
|
155
|
-
units?: number | undefined;
|
|
156
|
-
}[] | undefined;
|
|
157
132
|
dictionarieObj?: any;
|
|
158
133
|
explicitRequired?: number | undefined;
|
|
159
134
|
explicitDefaultVal?: string | undefined;
|
|
@@ -247,7 +222,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
247
222
|
outFilterChange: (config?: {}) => void;
|
|
248
223
|
getConObjParams: () => any;
|
|
249
224
|
getConObj: (arr: any) => any;
|
|
250
|
-
|
|
225
|
+
onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
|
251
226
|
handleReset: () => void;
|
|
252
227
|
resetFunc: (arr: ISearchType[]) => void;
|
|
253
228
|
vResize: {
|
|
@@ -273,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
248
|
[key: string]: any;
|
|
274
249
|
}> | null;
|
|
275
250
|
handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
|
|
276
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
251
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
277
252
|
cfg: {
|
|
278
253
|
type: ObjectConstructor;
|
|
279
254
|
required: true;
|
|
@@ -283,56 +258,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
258
|
};
|
|
284
259
|
}>> & {
|
|
285
260
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
261
|
+
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
286
262
|
}, {}>;
|
|
287
263
|
NIcon: any;
|
|
288
264
|
NButton: any;
|
|
289
265
|
Search: 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<{}>>, {}>;
|
|
290
|
-
|
|
291
|
-
iconClass: {
|
|
292
|
-
type: StringConstructor;
|
|
293
|
-
required: true;
|
|
294
|
-
default: string;
|
|
295
|
-
};
|
|
296
|
-
title: {
|
|
297
|
-
type: StringConstructor;
|
|
298
|
-
required: false;
|
|
299
|
-
default: string;
|
|
300
|
-
};
|
|
301
|
-
className: {
|
|
302
|
-
type: StringConstructor;
|
|
303
|
-
required: false;
|
|
304
|
-
};
|
|
305
|
-
}, {
|
|
306
|
-
props: {
|
|
307
|
-
iconClass: string;
|
|
308
|
-
title: string;
|
|
309
|
-
className?: string | undefined;
|
|
310
|
-
};
|
|
311
|
-
iconName: import("vue").ComputedRef<string>;
|
|
312
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
313
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
314
|
-
iconClass: {
|
|
315
|
-
type: StringConstructor;
|
|
316
|
-
required: true;
|
|
317
|
-
default: string;
|
|
318
|
-
};
|
|
319
|
-
title: {
|
|
320
|
-
type: StringConstructor;
|
|
321
|
-
required: false;
|
|
322
|
-
default: string;
|
|
323
|
-
};
|
|
324
|
-
className: {
|
|
325
|
-
type: StringConstructor;
|
|
326
|
-
required: false;
|
|
327
|
-
};
|
|
328
|
-
}>>, {
|
|
329
|
-
title: string;
|
|
330
|
-
iconClass: string;
|
|
331
|
-
}>;
|
|
332
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
266
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam")[], "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
267
|
showSettings: {
|
|
334
268
|
type: PropType<IsettingsType>;
|
|
335
|
-
default: () => {
|
|
269
|
+
default: () => {
|
|
270
|
+
hideQuickSearch: number;
|
|
271
|
+
};
|
|
336
272
|
};
|
|
337
273
|
searchFieldList: {
|
|
338
274
|
type: PropType<IApiServerType[]>;
|
|
@@ -346,11 +282,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
282
|
default: number;
|
|
347
283
|
};
|
|
348
284
|
}>> & {
|
|
349
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
350
285
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
286
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
351
287
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
352
|
-
|
|
353
|
-
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
288
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
354
289
|
}, {
|
|
355
290
|
showSettings: IsettingsType;
|
|
356
291
|
searchFieldList: IApiServerType[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as a,createElementBlock as r,createElementVNode as n,withDirectives as u,createCommentVNode as s,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as v,Fragment as h,renderList as p}from"vue";import b from"xe-utils";import"moment";import g from"./directive/resize.js";import y from"../../table-filter/src/components/render-widget/index.vue.js";import x from"../../table-filter/src/hooks/useMixins.js";import k from"../../table-filter/src/hooks/useAdvanced.js";import S from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as C,NIcon as j}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import{cloneDeep as q}from"lodash-es";import F from"../../../_virtual/plugin-vue_export-helper.js";const R={class:"base-search-block"},O={class:"base-container"},I={class:"base-ul"},Q=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:1,class:"baseli"},A={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=F(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:F}){const W=e,{outQuickSearchFn:w}=x(),{isRender:z,getRenderSearchConObj:N,isExistDefValByRenderWidget:D,resetRenderWidgetValue:E}=S(),{transformData:P,transformParams:U}=k(),$=t(null),B=t(null),M=t(0),T=t(0),G=t(0),H=t(0),J=t([]),K=t(!1),X=t(!1),Y=t([]),Z=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function ee(e){var t;if(X.value)return;let l=$.value;if(!l)return;X.value=!0,M.value=l.clientWidth,T.value=2===W.classificationIndex?160:0,G.value=(null==(t=B.value)?void 0:t.clientWidth)||0;let i=T.value+G.value,a=M.value-i;H.value=a,e.type&&"resize"===e.type&&function(){if(Y.value.length>0)return;X.value=!1}()}function te(){b.debounce(ee({type:"resize"}),300)}function le(){F("foldQuickSearch",!0)}function ie(e={}){const t=ae()||[];!function(e,t,l=!1,i={}){let a=[];Y.value.length>0&&(a=q(Y.value));F("onFilterSearch",e,t,l,a,i)}(t,U(t),!0,e)}function ae(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=N(i);a&&t.push(a)}return t.filter((e=>e.value))}(Y.value)}function re(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{E(e)})),w.handlerInitSearchItem(e)}(Y.value),F("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){Y.value=[];let t=q(P(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));Y.value=t,w.handlerInitSearchItem(Y.value),Y.value.some((e=>z(e)?D(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>W.qqConObjCount),(e=>{const t=J.value.length||0;K.value=t+Number(e)>0}),{immediate:!0}),i((()=>Y),(()=>{J.value=ae()||[];const e=U(J.value);K.value=J.value.length+Number(W.qqConObjCount)>0,F("getFilterParam",J.value,e)}),{immediate:!0,deep:!0}),(t,l)=>(a(),r("div",R,[n("div",O,[u((a(),r("div",{class:"bease-left",ref_key:"baseLeft",ref:$},[n("ul",I,[s(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(Z)?(a(),r("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:B},[f(c(C),{class:"search-default",type:"default",onClick:le},{default:d((()=>[Q,m(" 筛选 "+v(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):s("v-if",!0),s(" start--筛选外显--start "),(a(!0),r(h,null,p(Y.value,(e=>(a(),r(h,null,[e.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(y,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ie},null,8,["cfg","modelValue","onUpdate:modelValue"])])):s("v-if",!0)],64)))),256)),s(" end--筛选外显--end "),s(" 查询按钮 "),Y.value&&Y.value.length>0?(a(),r("li",V,[f(c(C),{type:"primary",onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):s("v-if",!0),s(" 重置按钮 "),K.value?(a(),r("li",A,[f(c(C),{onClick:re,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):s("v-if",!0)])])),[[c(g),te]])])]))}}),[["__file","index.vue"]]);export{W as default};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px}
|
|
@@ -483,6 +483,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
483
483
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
484
484
|
}>>;
|
|
485
485
|
attr: import("../../../es/shared/types").AnyObject;
|
|
486
|
+
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
486
487
|
formatData: (data?: {
|
|
487
488
|
tableList: any[];
|
|
488
489
|
fieldList: any[];
|
|
@@ -756,7 +757,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
756
757
|
};
|
|
757
758
|
readonly disabled: BooleanConstructor;
|
|
758
759
|
readonly displayDirective: {
|
|
759
|
-
readonly type: import("vue").PropType<"
|
|
760
|
+
readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
|
|
760
761
|
readonly default: "if";
|
|
761
762
|
};
|
|
762
763
|
readonly closable: {
|
|
@@ -781,7 +782,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
781
782
|
};
|
|
782
783
|
readonly disabled: BooleanConstructor;
|
|
783
784
|
readonly displayDirective: {
|
|
784
|
-
readonly type: import("vue").PropType<"
|
|
785
|
+
readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
|
|
785
786
|
readonly default: "if";
|
|
786
787
|
};
|
|
787
788
|
readonly closable: {
|
|
@@ -795,7 +796,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
795
796
|
}>>, {
|
|
796
797
|
readonly disabled: boolean;
|
|
797
798
|
readonly closable: boolean | undefined;
|
|
798
|
-
readonly displayDirective: "
|
|
799
|
+
readonly displayDirective: "show" | "if" | "show:lazy";
|
|
799
800
|
}>;
|
|
800
801
|
NIcon: any;
|
|
801
802
|
CGrid: SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -485,6 +485,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
485
485
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
486
486
|
}>>;
|
|
487
487
|
attr: AnyObject;
|
|
488
|
+
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
488
489
|
formatData: (data?: {
|
|
489
490
|
tableList: any[];
|
|
490
491
|
fieldList: any[];
|
|
@@ -746,7 +747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
746
747
|
};
|
|
747
748
|
readonly disabled: BooleanConstructor;
|
|
748
749
|
readonly displayDirective: {
|
|
749
|
-
readonly type: import("vue").PropType<"
|
|
750
|
+
readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
|
|
750
751
|
readonly default: "if";
|
|
751
752
|
};
|
|
752
753
|
readonly closable: {
|
|
@@ -771,7 +772,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
771
772
|
};
|
|
772
773
|
readonly disabled: BooleanConstructor;
|
|
773
774
|
readonly displayDirective: {
|
|
774
|
-
readonly type: import("vue").PropType<"
|
|
775
|
+
readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
|
|
775
776
|
readonly default: "if";
|
|
776
777
|
};
|
|
777
778
|
readonly closable: {
|
|
@@ -785,7 +786,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
785
786
|
}>>, {
|
|
786
787
|
readonly disabled: boolean;
|
|
787
788
|
readonly closable: boolean | undefined;
|
|
788
|
-
readonly displayDirective: "
|
|
789
|
+
readonly displayDirective: "show" | "if" | "show:lazy";
|
|
789
790
|
}>;
|
|
790
791
|
NIcon: any;
|
|
791
792
|
CGrid: import("../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|