cnhis-design-vue 3.1.42-release.0 → 3.1.42-release.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +3 -0
- package/es/components/annotation-edit/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +271 -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 -113
- 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 +12 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -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/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/field-set/index.d.ts +84 -15
- package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
- package/es/components/field-set/src/types/index.d.ts +18 -0
- package/es/components/field-set/src/types/index.js +1 -0
- 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/date.js +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 +6 -5
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -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/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +12 -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/varialbleHeightPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.d.ts +2 -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 +9 -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 -2386
- 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/baseOptions.d.ts +8 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -0
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
- 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 -243
- package/es/components/time-picker/index.d.ts +12 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +12 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/shared/mixins/index.d.ts +2 -0
- package/es/shared/mixins/index.js +1 -0
- package/es/shared/mixins/useDateTime.d.ts +6 -0
- package/es/shared/mixins/useDateTime.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/directive/resize.d.ts +0 -4
- package/es/components/table-filter/src/directive/resize.js +0 -1
- package/es/components/table-filter/src/hooks/export.d.ts +0 -1
- package/es/components/table-filter/src/hooks/export.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/getWidgetType.d.ts +0 -1
- package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
- package/es/components/table-filter/src/tool/options.d.ts +0 -18
- package/es/components/table-filter/src/tool/options.js +0 -1
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +0 -16
- package/es/components/table-filter/src/tool/resizeSensor.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 → classification}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,ref as
|
|
1
|
+
import{defineComponent as e,computed as o,ref as a,onDeactivated as l,createVNode as t,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/mixins/useTheme.js";import"@vueuse/core";import{FileTrayFull as r,FileTray as s}from"@vicons/ionicons5";import{isString as m,isObject as d,isFunction as v}from"lodash-es";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as V,NInput as h}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>m(e.modelValue)?e.modelValue:d(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;d(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),b=o({get:()=>T.value,async set(e){T.value=e,!e&&y.value&&(await new Promise((e=>setTimeout(e,200))),y.value=!1)}}),y=a(!1);let _,k;function P(e){e.stopPropagation(),clearTimeout(_),b.value&&y.value?b.value=!1:u(x)||(_=setTimeout((()=>{y.value=b.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(_),u(x)&&(b.value=!0,y.value=!0)}function R(e){e.stopPropagation(),clearTimeout(k),u(x)&&(b.value=!0)}function j(e){e.stopPropagation(),clearTimeout(k),u(x)&&!y.value&&(k=setTimeout((()=>{b.value=!1}),300))}return l((()=>{b.value=!1})),function(){return t("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!y.value},[t(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:b.value,"onUpdate:show":e=>b.value=e,trigger:"manual",duration:100},{default:function(){return t("section",{onMouseleave:j,onMouseenter:R},[t("div",null,[y.value?t(h,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):t("span",null,[u(x)])]),d(e.modelValue)?[t(p,{style:{margin:"4px 0",minWidth:"360px"}},null),t("section",{class:"annotation-edit__footer"},[v(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),t(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return t("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[t(V,{component:u(x)?r:s},null)])}})])}}});export{g 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,271 @@
|
|
|
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
|
+
qqConObjCount: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
outQuickSearchFn: {
|
|
19
|
+
handlerInitSearchItem(arr: import("..").ISearchType[]): void;
|
|
20
|
+
};
|
|
21
|
+
isRender: (cfg: import("..").ISearchType) => any;
|
|
22
|
+
getRenderSearchConObj: (cfg: import("..").ISearchType) => {
|
|
23
|
+
field_key: string;
|
|
24
|
+
con: string | undefined;
|
|
25
|
+
value: any[] | null;
|
|
26
|
+
unit: null;
|
|
27
|
+
} | null;
|
|
28
|
+
isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
|
|
29
|
+
resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
|
|
30
|
+
transformData: (advancedFilterData: import("..").IApiServerType[]) => {
|
|
31
|
+
fieldType: string;
|
|
32
|
+
columnName: string;
|
|
33
|
+
settingObj: {};
|
|
34
|
+
setting: string;
|
|
35
|
+
widgetCfg: {
|
|
36
|
+
isRender: boolean;
|
|
37
|
+
widgetType: string | null;
|
|
38
|
+
valueList: {
|
|
39
|
+
value: any;
|
|
40
|
+
label: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
defaultValue: any;
|
|
43
|
+
defValueUnit: any;
|
|
44
|
+
multiple: boolean;
|
|
45
|
+
};
|
|
46
|
+
title: string;
|
|
47
|
+
alias: string | undefined;
|
|
48
|
+
isShowSearch: number;
|
|
49
|
+
filterExplicit: number;
|
|
50
|
+
explicitRequired: number;
|
|
51
|
+
advanceOptionSetting: string;
|
|
52
|
+
placeholder: string | undefined;
|
|
53
|
+
advanceColWidth: string;
|
|
54
|
+
}[];
|
|
55
|
+
transformParams: (paramsList: any) => {};
|
|
56
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
showSettings: {
|
|
58
|
+
type: import("vue").PropType<import("..").IsettingsType>;
|
|
59
|
+
default: () => {
|
|
60
|
+
hideQuickSearch: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
searchFieldList: {
|
|
64
|
+
type: import("vue").PropType<import("..").IApiServerType[]>;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
qqConObjCount: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
}>> & {
|
|
72
|
+
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
}>>;
|
|
77
|
+
emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
|
|
78
|
+
curConObj: import("vue").Ref<{
|
|
79
|
+
field_key: string;
|
|
80
|
+
con: string;
|
|
81
|
+
value: any;
|
|
82
|
+
unit: string | null;
|
|
83
|
+
}[]>;
|
|
84
|
+
showResetFilterBtn: import("vue").Ref<boolean>;
|
|
85
|
+
outSearchFieldList: import("vue").Ref<{
|
|
86
|
+
columnName: string;
|
|
87
|
+
title: string;
|
|
88
|
+
fieldType?: string | undefined;
|
|
89
|
+
filterExplicit?: number | undefined;
|
|
90
|
+
isShowSearch?: number | undefined;
|
|
91
|
+
setting?: any;
|
|
92
|
+
settingObj?: any;
|
|
93
|
+
placeholder?: string | undefined;
|
|
94
|
+
AGEAttr?: boolean | undefined;
|
|
95
|
+
CL?: string | undefined;
|
|
96
|
+
CONVERT?: any;
|
|
97
|
+
EVALUATEAttr?: boolean | undefined;
|
|
98
|
+
EQ?: string | undefined;
|
|
99
|
+
LABELAttr?: boolean | undefined;
|
|
100
|
+
_isBlock?: boolean | undefined;
|
|
101
|
+
_frontId?: any;
|
|
102
|
+
NUMBERFiled?: boolean | undefined;
|
|
103
|
+
PASSWORDTYPE?: boolean | undefined;
|
|
104
|
+
advanceColWidth?: string | undefined;
|
|
105
|
+
advanceOptionSetting?: string | undefined;
|
|
106
|
+
alias?: string | undefined;
|
|
107
|
+
ageObj?: any;
|
|
108
|
+
attr?: string | undefined;
|
|
109
|
+
bigValue?: string | number | undefined;
|
|
110
|
+
classify?: string | undefined;
|
|
111
|
+
colWidth?: number | undefined;
|
|
112
|
+
columnFullName?: string | undefined;
|
|
113
|
+
com?: string | undefined;
|
|
114
|
+
comType?: string | undefined;
|
|
115
|
+
comAttr?: string | undefined;
|
|
116
|
+
con?: string | undefined;
|
|
117
|
+
dataSource?: any;
|
|
118
|
+
dictionarieObj?: any;
|
|
119
|
+
explicitRequired?: number | undefined;
|
|
120
|
+
explicitDefaultVal?: string | undefined;
|
|
121
|
+
extraField?: boolean | undefined;
|
|
122
|
+
fieldSetting?: string | undefined;
|
|
123
|
+
format?: string | undefined;
|
|
124
|
+
i18n?: string | undefined;
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
inputVal?: string | undefined;
|
|
127
|
+
inputUnit?: string | undefined;
|
|
128
|
+
isAvg?: number | undefined;
|
|
129
|
+
isEdit?: number | undefined;
|
|
130
|
+
isFixed?: number | undefined;
|
|
131
|
+
isFixedShow?: number | undefined;
|
|
132
|
+
isFontWeight?: number | undefined;
|
|
133
|
+
isMerge?: number | undefined;
|
|
134
|
+
isOrder?: number | undefined;
|
|
135
|
+
isPreciseSearch?: boolean | undefined;
|
|
136
|
+
isRender?: boolean | undefined;
|
|
137
|
+
isSearch?: number | undefined;
|
|
138
|
+
isShow?: number | undefined;
|
|
139
|
+
isSort?: number | undefined;
|
|
140
|
+
isSum?: number | undefined;
|
|
141
|
+
labelObj?: any;
|
|
142
|
+
labelList?: {
|
|
143
|
+
labelId?: string | undefined;
|
|
144
|
+
change_text: string;
|
|
145
|
+
field_key: string;
|
|
146
|
+
filter: {
|
|
147
|
+
con: string;
|
|
148
|
+
conName?: string | undefined;
|
|
149
|
+
field_key: string;
|
|
150
|
+
key?: string | undefined;
|
|
151
|
+
value: string;
|
|
152
|
+
}[];
|
|
153
|
+
label: string;
|
|
154
|
+
labelName: string;
|
|
155
|
+
sqlExpression: string;
|
|
156
|
+
value: string;
|
|
157
|
+
isSelect?: boolean | undefined;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
labelSelectList?: {
|
|
160
|
+
labelId?: string | undefined;
|
|
161
|
+
change_text: string;
|
|
162
|
+
field_key: string;
|
|
163
|
+
filter: {
|
|
164
|
+
con: string;
|
|
165
|
+
conName?: string | undefined;
|
|
166
|
+
field_key: string;
|
|
167
|
+
key?: string | undefined;
|
|
168
|
+
value: string;
|
|
169
|
+
}[];
|
|
170
|
+
label: string;
|
|
171
|
+
labelName: string;
|
|
172
|
+
sqlExpression: string;
|
|
173
|
+
value: string;
|
|
174
|
+
isSelect?: boolean | undefined;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
lessValue?: string | number | undefined;
|
|
177
|
+
marginx?: string | undefined;
|
|
178
|
+
notParticipatingSearch?: number | undefined;
|
|
179
|
+
order?: string | undefined;
|
|
180
|
+
QUOTE?: any;
|
|
181
|
+
searchPageConfig?: any;
|
|
182
|
+
selecteds?: any;
|
|
183
|
+
sequence?: number | undefined;
|
|
184
|
+
showDate?: boolean | undefined;
|
|
185
|
+
showFormat?: string | undefined;
|
|
186
|
+
showTime?: boolean | undefined;
|
|
187
|
+
sid?: string | undefined;
|
|
188
|
+
start_val?: number | null | undefined;
|
|
189
|
+
end_val?: number | null | undefined;
|
|
190
|
+
tempCon?: any;
|
|
191
|
+
tableId?: string | undefined;
|
|
192
|
+
value?: any;
|
|
193
|
+
unit?: string | undefined;
|
|
194
|
+
widgetCfg?: any;
|
|
195
|
+
formTitle?: string | undefined;
|
|
196
|
+
random_key?: string | undefined;
|
|
197
|
+
widgetType?: any;
|
|
198
|
+
hasFieldList?: any;
|
|
199
|
+
search_DefaultValue?: any;
|
|
200
|
+
}[]>;
|
|
201
|
+
showQuickSearch: import("vue").ComputedRef<boolean>;
|
|
202
|
+
initOutSearchFieldList: (config?: any) => void;
|
|
203
|
+
isShowSetting: (v: string) => boolean;
|
|
204
|
+
foldQuickSearch: () => void;
|
|
205
|
+
outFilterChange: (config?: {}) => void;
|
|
206
|
+
getConObjParams: () => any;
|
|
207
|
+
getConObj: (arr: any) => any;
|
|
208
|
+
onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
|
209
|
+
handleReset: () => void;
|
|
210
|
+
resetFunc: (arr: import("..").ISearchType[]) => void;
|
|
211
|
+
RenderWidget: import("vue").DefineComponent<{
|
|
212
|
+
cfg: {
|
|
213
|
+
type: ObjectConstructor;
|
|
214
|
+
required: true;
|
|
215
|
+
};
|
|
216
|
+
modelValue: {
|
|
217
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
218
|
+
};
|
|
219
|
+
}, any, {
|
|
220
|
+
initialProps: {};
|
|
221
|
+
}, {
|
|
222
|
+
valueCp(): any;
|
|
223
|
+
}, {
|
|
224
|
+
search(): void;
|
|
225
|
+
getEleWidth(cfg: any): string | undefined;
|
|
226
|
+
initComponentProps(cfg: any): void;
|
|
227
|
+
generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
}> | null;
|
|
230
|
+
handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
|
|
231
|
+
}, 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<{
|
|
232
|
+
cfg: {
|
|
233
|
+
type: ObjectConstructor;
|
|
234
|
+
required: true;
|
|
235
|
+
};
|
|
236
|
+
modelValue: {
|
|
237
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
238
|
+
};
|
|
239
|
+
}>> & {
|
|
240
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
241
|
+
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
}, {}>;
|
|
243
|
+
NIcon: any;
|
|
244
|
+
NButton: any;
|
|
245
|
+
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<{}>>, {}>;
|
|
246
|
+
}, 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<{
|
|
247
|
+
showSettings: {
|
|
248
|
+
type: import("vue").PropType<import("..").IsettingsType>;
|
|
249
|
+
default: () => {
|
|
250
|
+
hideQuickSearch: number;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
searchFieldList: {
|
|
254
|
+
type: import("vue").PropType<import("..").IApiServerType[]>;
|
|
255
|
+
default: () => never[];
|
|
256
|
+
};
|
|
257
|
+
qqConObjCount: {
|
|
258
|
+
type: NumberConstructor;
|
|
259
|
+
default: number;
|
|
260
|
+
};
|
|
261
|
+
}>> & {
|
|
262
|
+
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
263
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
264
|
+
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
showSettings: import("..").IsettingsType;
|
|
268
|
+
searchFieldList: import("..").IApiServerType[];
|
|
269
|
+
qqConObjCount: number;
|
|
270
|
+
}>>;
|
|
271
|
+
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,27 +1,23 @@
|
|
|
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[]>;
|
|
10
12
|
default: () => never[];
|
|
11
13
|
};
|
|
12
|
-
classificationIndex: {
|
|
13
|
-
type: NumberConstructor;
|
|
14
|
-
};
|
|
15
14
|
qqConObjCount: {
|
|
16
15
|
type: NumberConstructor;
|
|
17
16
|
default: number;
|
|
18
17
|
};
|
|
19
18
|
}, {
|
|
20
19
|
outQuickSearchFn: {
|
|
21
|
-
handleRequestedLabel(v: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
20
|
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
23
|
-
handleSetLabelOptions(labelType: any, el: ISearchType): void;
|
|
24
|
-
getConObj(arr: any): any;
|
|
25
21
|
};
|
|
26
22
|
isRender: (cfg: ISearchType) => any;
|
|
27
23
|
getRenderSearchConObj: (cfg: ISearchType) => {
|
|
@@ -57,38 +53,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
53
|
placeholder: string | undefined;
|
|
58
54
|
advanceColWidth: string;
|
|
59
55
|
}[];
|
|
60
|
-
|
|
61
|
-
quickSearchLi: any;
|
|
56
|
+
transformParams: (paramsList: any) => {};
|
|
62
57
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
63
58
|
showSettings: {
|
|
64
59
|
type: PropType<IsettingsType>;
|
|
65
|
-
default: () => {
|
|
60
|
+
default: () => {
|
|
61
|
+
hideQuickSearch: number;
|
|
62
|
+
};
|
|
66
63
|
};
|
|
67
64
|
searchFieldList: {
|
|
68
65
|
type: PropType<IApiServerType[]>;
|
|
69
66
|
default: () => never[];
|
|
70
67
|
};
|
|
71
|
-
classificationIndex: {
|
|
72
|
-
type: NumberConstructor;
|
|
73
|
-
};
|
|
74
68
|
qqConObjCount: {
|
|
75
69
|
type: NumberConstructor;
|
|
76
70
|
default: number;
|
|
77
71
|
};
|
|
78
72
|
}>> & {
|
|
79
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
80
73
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
81
75
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
|
|
83
|
-
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
84
77
|
}>>;
|
|
85
|
-
emit: (event: "
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
|
|
79
|
+
curConObj: import("vue").Ref<{
|
|
80
|
+
field_key: string;
|
|
81
|
+
con: string;
|
|
82
|
+
value: any;
|
|
83
|
+
unit: string | null;
|
|
84
|
+
}[]>;
|
|
90
85
|
showResetFilterBtn: import("vue").Ref<boolean>;
|
|
91
|
-
resizeFlag: import("vue").Ref<boolean>;
|
|
92
86
|
outSearchFieldList: import("vue").Ref<{
|
|
93
87
|
columnName: string;
|
|
94
88
|
title: string;
|
|
@@ -99,32 +93,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
93
|
settingObj?: any;
|
|
100
94
|
placeholder?: string | undefined;
|
|
101
95
|
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
96
|
CL?: string | undefined;
|
|
129
97
|
CONVERT?: any;
|
|
130
98
|
EVALUATEAttr?: boolean | undefined;
|
|
@@ -148,12 +116,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
116
|
comAttr?: string | undefined;
|
|
149
117
|
con?: string | undefined;
|
|
150
118
|
dataSource?: any;
|
|
151
|
-
dateTeam?: {
|
|
152
|
-
con: string;
|
|
153
|
-
title: string;
|
|
154
|
-
name: string;
|
|
155
|
-
units?: number | undefined;
|
|
156
|
-
}[] | undefined;
|
|
157
119
|
dictionarieObj?: any;
|
|
158
120
|
explicitRequired?: number | undefined;
|
|
159
121
|
explicitDefaultVal?: string | undefined;
|
|
@@ -239,20 +201,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
239
201
|
}[]>;
|
|
240
202
|
showQuickSearch: import("vue").ComputedRef<boolean>;
|
|
241
203
|
initOutSearchFieldList: (config?: any) => void;
|
|
242
|
-
pageResize: (obj: any) => any;
|
|
243
|
-
handleTileBtnWidth: () => void;
|
|
244
|
-
onResize: () => void;
|
|
245
204
|
isShowSetting: (v: string) => boolean;
|
|
246
205
|
foldQuickSearch: () => void;
|
|
247
206
|
outFilterChange: (config?: {}) => void;
|
|
248
207
|
getConObjParams: () => any;
|
|
249
208
|
getConObj: (arr: any) => any;
|
|
250
|
-
|
|
209
|
+
onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
|
251
210
|
handleReset: () => void;
|
|
252
211
|
resetFunc: (arr: ISearchType[]) => void;
|
|
253
|
-
vResize: {
|
|
254
|
-
mounted(el: any, binding: any): void;
|
|
255
|
-
};
|
|
256
212
|
RenderWidget: import("vue").DefineComponent<{
|
|
257
213
|
cfg: {
|
|
258
214
|
type: ObjectConstructor;
|
|
@@ -273,7 +229,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
229
|
[key: string]: any;
|
|
274
230
|
}> | null;
|
|
275
231
|
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<{
|
|
232
|
+
}, 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
233
|
cfg: {
|
|
278
234
|
type: ObjectConstructor;
|
|
279
235
|
required: true;
|
|
@@ -283,74 +239,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
239
|
};
|
|
284
240
|
}>> & {
|
|
285
241
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
242
|
+
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
286
243
|
}, {}>;
|
|
287
244
|
NIcon: any;
|
|
288
245
|
NButton: any;
|
|
289
246
|
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<{
|
|
247
|
+
}, 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
248
|
showSettings: {
|
|
334
249
|
type: PropType<IsettingsType>;
|
|
335
|
-
default: () => {
|
|
250
|
+
default: () => {
|
|
251
|
+
hideQuickSearch: number;
|
|
252
|
+
};
|
|
336
253
|
};
|
|
337
254
|
searchFieldList: {
|
|
338
255
|
type: PropType<IApiServerType[]>;
|
|
339
256
|
default: () => never[];
|
|
340
257
|
};
|
|
341
|
-
classificationIndex: {
|
|
342
|
-
type: NumberConstructor;
|
|
343
|
-
};
|
|
344
258
|
qqConObjCount: {
|
|
345
259
|
type: NumberConstructor;
|
|
346
260
|
default: number;
|
|
347
261
|
};
|
|
348
262
|
}>> & {
|
|
349
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
350
263
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
264
|
+
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
351
265
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
352
|
-
|
|
353
|
-
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
266
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
354
267
|
}, {
|
|
355
268
|
showSettings: IsettingsType;
|
|
356
269
|
searchFieldList: IApiServerType[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,computed as l,watch as a,openBlock as i,createElementBlock as r,createElementVNode as n,createCommentVNode as s,renderSlot as o,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,Fragment as h,renderList as v}from"vue";import p from"../../table-filter/src/components/render-widget/index.vue.js";import b from"../../table-filter/src/hooks/useMixins.js";import g from"../../table-filter/src/hooks/useAdvanced.js";import y from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as C}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";import x from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},_={class:"base-container"},F={class:"bease-left"},O={class:"base-ul"},R={key:0,class:"baseli showQuickBtn"},Q=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},A={key:1,class:"baseli"},w={key:2,class:"baseli"},I=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var D=x(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:x}){const D=e,{outQuickSearchFn:E}=b(),{isRender:L,getRenderSearchConObj:N,isExistDefValByRenderWidget:P,resetRenderWidgetValue:W}=y(),{transformData:B,transformParams:U}=g(),$=t([]),z=t(!1),M=t([]),T=l((()=>{var e;return e="hideQuickSearch",0==D.showSettings[e]}));function G(){x("foldQuickSearch",!0)}function H(e={}){const t=J()||[];!function(e,t,l=!1,a={}){let i=[];M.value.length>0&&(i=j(M.value));x("onFilterSearch",e,t,l,i,a)}(t,U(t),!0,e)}function J(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let a=e[l];const i=N(a);i&&t.push(i)}return t.filter((e=>e.value))}(M.value)}function K(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{W(e)})),E.handlerInitSearchItem(e)}(M.value),x("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>D.searchFieldList),(e=>{e&&e.length>0&&function(e={}){M.value=[];let t=j(B(D.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));M.value=t,E.handlerInitSearchItem(M.value),M.value.some((e=>L(e)?P(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>D.qqConObjCount),(e=>{const t=$.value.length||0;z.value=t+Number(e)>0}),{immediate:!0}),a((()=>M),(()=>{$.value=J()||[];const e=U($.value);z.value=$.value.length+Number(D.qqConObjCount)>0,x("getFilterParam",$.value,e)}),{immediate:!0,deep:!0}),(t,l)=>(i(),r("div",q,[n("div",_,[n("div",F,[n("ul",O,[s(" 筛选分类插槽 "),o(t.$slots,"classification"),u(T)?(i(),r("li",R,[c(u(k),{class:"search-default",type:"default",onClick:G},{default:f((()=>[Q,d(" 筛选"),e.qqConObjCount?(i(),r("span",V,"("+m(e.qqConObjCount)+")",1)):s("v-if",!0)])),_:1})])):s("v-if",!0),s(" start--筛选外显--start "),(i(!0),r(h,null,v(M.value,(e=>(i(),r(h,null,[e.isRender?(i(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(p,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:H},null,8,["cfg","modelValue","onUpdate:modelValue"])])):s("v-if",!0)],64)))),256)),s(" end--筛选外显--end "),s(" 查询按钮 "),M.value&&M.value.length>0?(i(),r("li",A,[c(u(k),{type:"primary",onClick:H},{default:f((()=>[c(u(C),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):s("v-if",!0),s(" 重置按钮 "),z.value?(i(),r("li",w,[c(u(k),{onClick:K},{default:f((()=>[I,d(" 重置 ")])),_:1})])):s("v-if",!0),s(" 业务按钮插槽 "),o(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{D 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;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
|
@@ -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<{}>>, {}>>;
|