cnhis-design-vue 3.1.50 → 3.1.51-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/base-search/index.d.ts +13 -8
- package/es/components/base-search/src/index.vue.d.ts +13 -8
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/classification/index.d.ts +57 -15
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +57 -15
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +57 -15
- package/es/components/classification/src/index.vue.d.ts +57 -15
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/field-set/index.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +174 -25
- package/es/components/form-config/src/FormConfig.vue.d.ts +175 -26
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -10
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +121 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
- package/es/components/form-config/src/constants/index.d.ts +19 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +7 -3
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/select.d.ts +10 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -19
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +13 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
- package/es/components/quick-search/index.d.ts +13 -8
- package/es/components/quick-search/src/index.vue.d.ts +13 -8
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +6 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -5
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +52 -7
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +34 -2
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -6
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +57 -15
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +58 -0
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +56 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +4 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +55 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -7
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -6
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +16 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +19 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +20 -0
- package/es/shared/utils/business.d.ts +1 -2
- package/es/shared/utils/index.d.ts +3 -3
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}_.labelSelectedEdit=[...r],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[r(W)?(n(),s("div",A,O)):d("v-if",!0),o(c("div",K,[c("div",j,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}});export{B as default};
|
|
@@ -95,6 +95,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
+
/**
|
|
99
|
+
* 取消勾选树节点
|
|
100
|
+
* baseKeys:基准值
|
|
101
|
+
* currentTree:当前树节点
|
|
102
|
+
* value:树节点的key值
|
|
103
|
+
*/
|
|
98
104
|
value: string | number;
|
|
99
105
|
}) => void>>;
|
|
100
106
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -172,9 +172,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
172
172
|
allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
|
|
173
173
|
prefix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
174
174
|
suffix?: string | import("../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
175
|
-
allowSlash?: boolean | undefined;
|
|
175
|
+
allowSlash?: string | boolean | undefined;
|
|
176
176
|
allowModify?: "0" | "1" | undefined;
|
|
177
177
|
show_key?: string | undefined;
|
|
178
|
+
whiteList?: string[] | undefined;
|
|
178
179
|
bordered?: string | boolean | undefined;
|
|
179
180
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
180
181
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
@@ -1885,7 +1886,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1885
1886
|
default: boolean;
|
|
1886
1887
|
};
|
|
1887
1888
|
lowCodeReactions: {
|
|
1888
|
-
type: import("vue").PropType<import("
|
|
1889
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1889
1890
|
};
|
|
1890
1891
|
operationalForm: {
|
|
1891
1892
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2030,7 +2031,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2030
2031
|
default: boolean;
|
|
2031
2032
|
};
|
|
2032
2033
|
lowCodeReactions: {
|
|
2033
|
-
type: import("vue").PropType<import("
|
|
2034
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2034
2035
|
};
|
|
2035
2036
|
operationalForm: {
|
|
2036
2037
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2189,7 +2190,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2189
2190
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
2190
2191
|
requestInstance: import("..").RequestInstance;
|
|
2191
2192
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2192
|
-
lowCodeReactions: import("
|
|
2193
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2193
2194
|
linebarAutoHidden: boolean;
|
|
2194
2195
|
bordered: string | boolean;
|
|
2195
2196
|
uniqueCacheData: boolean;
|
|
@@ -2600,7 +2601,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2600
2601
|
default: boolean;
|
|
2601
2602
|
};
|
|
2602
2603
|
lowCodeReactions: {
|
|
2603
|
-
type: import("vue").PropType<import("
|
|
2604
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2604
2605
|
};
|
|
2605
2606
|
operationalForm: {
|
|
2606
2607
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -174,9 +174,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
|
|
175
175
|
prefix?: string | import("../../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
176
176
|
suffix?: string | import("../../../../es/shared/types").AnyObject | (() => any) | undefined;
|
|
177
|
-
allowSlash?: boolean | undefined;
|
|
177
|
+
allowSlash?: string | boolean | undefined;
|
|
178
178
|
allowModify?: "0" | "1" | undefined;
|
|
179
179
|
show_key?: string | undefined;
|
|
180
|
+
whiteList?: string[] | undefined;
|
|
180
181
|
bordered?: string | boolean | undefined;
|
|
181
182
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
182
183
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
@@ -1887,7 +1888,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1887
1888
|
default: boolean;
|
|
1888
1889
|
};
|
|
1889
1890
|
lowCodeReactions: {
|
|
1890
|
-
type: import("vue").PropType<import("../../../../es/
|
|
1891
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1891
1892
|
};
|
|
1892
1893
|
operationalForm: {
|
|
1893
1894
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2032,7 +2033,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2032
2033
|
default: boolean;
|
|
2033
2034
|
};
|
|
2034
2035
|
lowCodeReactions: {
|
|
2035
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2036
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2036
2037
|
};
|
|
2037
2038
|
operationalForm: {
|
|
2038
2039
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2191,7 +2192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2191
2192
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2192
2193
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2193
2194
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2194
|
-
lowCodeReactions: import("../../../../es/
|
|
2195
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2195
2196
|
linebarAutoHidden: boolean;
|
|
2196
2197
|
bordered: string | boolean;
|
|
2197
2198
|
uniqueCacheData: boolean;
|
|
@@ -2602,7 +2603,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2602
2603
|
default: boolean;
|
|
2603
2604
|
};
|
|
2604
2605
|
lowCodeReactions: {
|
|
2605
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2606
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2606
2607
|
};
|
|
2607
2608
|
operationalForm: {
|
|
2608
2609
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -111,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
readonly type: PropType<(string | number)[] | null>;
|
|
112
112
|
readonly default: null;
|
|
113
113
|
};
|
|
114
|
-
/**
|
|
115
|
-
* 拖拽完成
|
|
116
|
-
*/
|
|
117
114
|
readonly disabled: {
|
|
118
115
|
readonly type: PropType<boolean | undefined>;
|
|
119
116
|
readonly default: undefined;
|
|
@@ -11,6 +11,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: null;
|
|
13
13
|
};
|
|
14
|
+
isAccurate: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
14
17
|
}, {
|
|
15
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
19
|
paramCfg: {
|
|
@@ -25,13 +28,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
28
|
type: StringConstructor;
|
|
26
29
|
default: null;
|
|
27
30
|
};
|
|
31
|
+
isAccurate: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
};
|
|
28
34
|
}>> & {
|
|
29
35
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
30
37
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
38
|
}>>;
|
|
32
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
39
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
|
33
40
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
34
41
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
42
|
+
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
35
43
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
44
|
Date: import("vue").DefineComponent<{
|
|
37
45
|
componentCfg: {
|
|
@@ -181,35 +189,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
189
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
182
190
|
}, {
|
|
183
191
|
modelValue: string | number | unknown[];
|
|
184
|
-
presetVal: string;
|
|
185
192
|
paramCfg: Record<string, any>;
|
|
193
|
+
presetVal: string;
|
|
186
194
|
}>;
|
|
187
195
|
InputFilter: import("vue").DefineComponent<{
|
|
196
|
+
paramCfg: {
|
|
197
|
+
type: ObjectConstructor;
|
|
198
|
+
default: null;
|
|
199
|
+
};
|
|
188
200
|
modelValue: {
|
|
189
201
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
190
202
|
default: null;
|
|
191
203
|
};
|
|
204
|
+
isAccurateFilter: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
};
|
|
192
207
|
}, {
|
|
193
208
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
209
|
+
paramCfg: {
|
|
210
|
+
type: ObjectConstructor;
|
|
211
|
+
default: null;
|
|
212
|
+
};
|
|
194
213
|
modelValue: {
|
|
195
214
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
196
215
|
default: null;
|
|
197
216
|
};
|
|
217
|
+
isAccurateFilter: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
};
|
|
198
220
|
}>> & {
|
|
199
221
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
222
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
200
223
|
}>>;
|
|
201
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
224
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
225
|
+
optionList: import("vue").Ref<{
|
|
226
|
+
label: string;
|
|
227
|
+
value: number;
|
|
228
|
+
}[]>;
|
|
202
229
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
230
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
231
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
203
232
|
NInput: any;
|
|
204
|
-
|
|
233
|
+
NSelect: any;
|
|
234
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
235
|
+
paramCfg: {
|
|
236
|
+
type: ObjectConstructor;
|
|
237
|
+
default: null;
|
|
238
|
+
};
|
|
205
239
|
modelValue: {
|
|
206
240
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
207
241
|
default: null;
|
|
208
242
|
};
|
|
243
|
+
isAccurateFilter: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
};
|
|
209
246
|
}>> & {
|
|
210
247
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
211
249
|
}, {
|
|
212
250
|
modelValue: string | number | unknown[];
|
|
251
|
+
paramCfg: Record<string, any>;
|
|
252
|
+
isAccurateFilter: boolean;
|
|
213
253
|
}>;
|
|
214
254
|
InputNumber: import("vue").DefineComponent<{
|
|
215
255
|
modelValue: {
|
|
@@ -738,8 +778,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
738
778
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
739
779
|
}, {
|
|
740
780
|
modelValue: string | number | unknown[];
|
|
741
|
-
presetVal: string;
|
|
742
781
|
paramCfg: Record<string, any>;
|
|
782
|
+
presetVal: string;
|
|
743
783
|
}>;
|
|
744
784
|
SelectLabel: import("vue").DefineComponent<{
|
|
745
785
|
paramCfg: {
|
|
@@ -805,7 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
805
845
|
SELECTLABEL: string;
|
|
806
846
|
SELECTDYNAMIC: string;
|
|
807
847
|
};
|
|
808
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
848
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
809
849
|
paramCfg: {
|
|
810
850
|
type: ObjectConstructor;
|
|
811
851
|
default: null;
|
|
@@ -818,12 +858,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
818
858
|
type: StringConstructor;
|
|
819
859
|
default: null;
|
|
820
860
|
};
|
|
861
|
+
isAccurate: {
|
|
862
|
+
type: BooleanConstructor;
|
|
863
|
+
};
|
|
821
864
|
}>> & {
|
|
822
865
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
866
|
+
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
|
823
867
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
824
868
|
}, {
|
|
825
869
|
modelValue: string | number | unknown[];
|
|
826
|
-
presetVal: string;
|
|
827
870
|
paramCfg: Record<string, any>;
|
|
871
|
+
presetVal: string;
|
|
872
|
+
isAccurate: boolean;
|
|
828
873
|
}>;
|
|
829
874
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as
|
|
1
|
+
import{defineComponent as e,computed as a,openBlock as l,createElementBlock as u,createCommentVNode as p,unref as t,createBlock as r,isRef as m}from"vue";import{InputNumber as d,InputFilter as o,SelectFilter as n,Date as f,SelectDynamic as V,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as i}from"../../types/enums.js";const v={class:"value-cfg_wrapper"};var c=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null},isAccurate:{type:Boolean}},emits:["update:modelValue","update:presetVal","update:isAccurate"],setup(e,{emit:c}){const E=e,y=a({set(e){c("update:modelValue",e)},get:()=>E.modelValue}),A=a({set(e){c("update:presetVal",e)},get:()=>E.presetVal}),U=a({set(e){c("update:isAccurate",e)},get:()=>E.isAccurate}),N=a((()=>{var e;return null==(e=E.paramCfg)?void 0:e.type}));return(a,c)=>(l(),u("div",v,[p(" 数字框 "),t(N)===t(i).INPUT_NUMBER?(l(),r(t(d),{key:0,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[0]||(c[0]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 文本框 "),t(N)===t(i).INPUT?(l(),r(t(o),{key:1,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[1]||(c[1]=e=>m(y)?y.value=e:null),isAccurateFilter:t(U),"onUpdate:isAccurateFilter":c[2]||(c[2]=e=>m(U)?U.value=e:null)},null,8,["paramCfg","modelValue","isAccurateFilter"])):p("v-if",!0),p(" 普通下拉框 "),t(N)===t(i).SELECT?(l(),r(t(n),{key:2,paramCfg:e.paramCfg,widgetType:t(N),modelValue:t(y),"onUpdate:modelValue":c[3]||(c[3]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),t(N)===t(i).DATE||t(N)===t(i).DATE_TIME?(l(),r(t(f),{key:3,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[4]||(c[4]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[5]||(c[5]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),t(N)===t(i).SELECTDYNAMIC?(l(),r(t(V),{key:4,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[6]||(c[6]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),t(N)===t(i).INPUTNUMBER_RANGE?(l(),r(t(g),{key:5,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[7]||(c[7]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),t(N)===t(i).DATE_RANGE_INNER||t(N)===t(i).DATETIME_RANGE_INNER?(l(),r(t(s),{key:6,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[8]||(c[8]=e=>m(y)?y.value=e:null),presetVal:t(A),"onUpdate:presetVal":c[9]||(c[9]=e=>m(A)?A.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),t(N)===t(i).SELECTLABEL?(l(),r(t(C),{key:7,paramCfg:e.paramCfg,modelValue:t(y),"onUpdate:modelValue":c[10]||(c[10]=e=>m(y)?y.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{c as default};
|
|
@@ -146,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
155
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
modelValue: string | number | unknown[];
|
|
158
|
-
presetVal: string;
|
|
159
158
|
paramCfg: Record<string, any>;
|
|
159
|
+
presetVal: string;
|
|
160
160
|
}>;
|
|
161
161
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts
CHANGED
|
@@ -1,28 +1,60 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
2
6
|
modelValue: {
|
|
3
7
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
4
8
|
default: null;
|
|
5
9
|
};
|
|
10
|
+
isAccurateFilter: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
6
13
|
}, {
|
|
7
14
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
paramCfg: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: null;
|
|
18
|
+
};
|
|
8
19
|
modelValue: {
|
|
9
20
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
10
21
|
default: null;
|
|
11
22
|
};
|
|
23
|
+
isAccurateFilter: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
12
26
|
}>> & {
|
|
13
27
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
14
29
|
}>>;
|
|
15
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
30
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
31
|
+
optionList: import("vue").Ref<{
|
|
32
|
+
label: string;
|
|
33
|
+
value: number;
|
|
34
|
+
}[]>;
|
|
16
35
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
36
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
37
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
17
38
|
NInput: any;
|
|
18
|
-
|
|
39
|
+
NSelect: any;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
paramCfg: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
19
45
|
modelValue: {
|
|
20
46
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
21
47
|
default: null;
|
|
22
48
|
};
|
|
49
|
+
isAccurateFilter: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
23
52
|
}>> & {
|
|
24
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
25
55
|
}, {
|
|
26
56
|
modelValue: string | number | unknown[];
|
|
57
|
+
paramCfg: Record<string, any>;
|
|
58
|
+
isAccurateFilter: boolean;
|
|
27
59
|
}>;
|
|
28
60
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,ref as l,computed as a,openBlock as t,createElementBlock as u,unref as r,createBlock as i,isRef as n,createCommentVNode as o,createVNode as p}from"vue";import{NSelect as s,NInput as d}from"naive-ui";const c={style:{display:"flex","align-items":"center"}};var v=e({__name:"InputFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},isAccurateFilter:{type:Boolean}},emits:["update:modelValue","update:isAccurateFilter"],setup(e,{emit:v}){const m=e,f=l([{label:"精确查询",value:1},{label:"模糊查询",value:0}]),y=a({set(e){v("update:modelValue",e)},get:()=>m.modelValue}),b=a({set(e){v("update:isAccurateFilter",!!e)},get:()=>m.isAccurateFilter?1:0}),g=a((()=>{var e,l,a;return(null==(e=m.paramCfg._rawData)?void 0:e.filterExplicit)&&(null==(a=null==(l=m.paramCfg._rawData)?void 0:l.accurateSearch)?void 0:a.switchEnable)}));return(e,l)=>(t(),u("div",c,[r(g)?(t(),i(r(s),{key:0,class:"form-item",to:"body",clearable:"",style:{width:"120px"},value:r(b),"onUpdate:value":l[0]||(l[0]=e=>n(b)?b.value=e:null),options:f.value},null,8,["value","options"])):o("v-if",!0),p(r(d),{style:{width:"160px"},value:r(y),"onUpdate:value":l[1]||(l[1]=e=>n(y)?y.value=e:null),maxlength:"255",clearable:""},null,8,["value"])]))}});export{v as default};
|
|
@@ -146,35 +146,67 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
146
146
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
147
147
|
}, {
|
|
148
148
|
modelValue: string | number | unknown[];
|
|
149
|
-
presetVal: string;
|
|
150
149
|
paramCfg: Record<string, any>;
|
|
150
|
+
presetVal: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const InputFilter: import("vue").DefineComponent<{
|
|
153
|
+
paramCfg: {
|
|
154
|
+
type: ObjectConstructor;
|
|
155
|
+
default: null;
|
|
156
|
+
};
|
|
153
157
|
modelValue: {
|
|
154
158
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
155
159
|
default: null;
|
|
156
160
|
};
|
|
161
|
+
isAccurateFilter: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
157
164
|
}, {
|
|
158
165
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
paramCfg: {
|
|
167
|
+
type: ObjectConstructor;
|
|
168
|
+
default: null;
|
|
169
|
+
};
|
|
159
170
|
modelValue: {
|
|
160
171
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
161
172
|
default: null;
|
|
162
173
|
};
|
|
174
|
+
isAccurateFilter: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
};
|
|
163
177
|
}>> & {
|
|
164
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
165
180
|
}>>;
|
|
166
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
181
|
+
emit: (event: "update:modelValue" | "update:isAccurateFilter", ...args: any[]) => void;
|
|
182
|
+
optionList: import("vue").Ref<{
|
|
183
|
+
label: string;
|
|
184
|
+
value: number;
|
|
185
|
+
}[]>;
|
|
167
186
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
187
|
+
isAccurateFilterCp: import("vue").WritableComputedRef<number>;
|
|
188
|
+
isShowSearch: import("vue").ComputedRef<any>;
|
|
168
189
|
NInput: any;
|
|
169
|
-
|
|
190
|
+
NSelect: any;
|
|
191
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurateFilter")[], "update:modelValue" | "update:isAccurateFilter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
192
|
+
paramCfg: {
|
|
193
|
+
type: ObjectConstructor;
|
|
194
|
+
default: null;
|
|
195
|
+
};
|
|
170
196
|
modelValue: {
|
|
171
197
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
172
198
|
default: null;
|
|
173
199
|
};
|
|
200
|
+
isAccurateFilter: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
};
|
|
174
203
|
}>> & {
|
|
175
204
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
"onUpdate:isAccurateFilter"?: ((...args: any[]) => any) | undefined;
|
|
176
206
|
}, {
|
|
177
207
|
modelValue: string | number | unknown[];
|
|
208
|
+
paramCfg: Record<string, any>;
|
|
209
|
+
isAccurateFilter: boolean;
|
|
178
210
|
}>;
|
|
179
211
|
declare const InputNumber: import("vue").DefineComponent<{
|
|
180
212
|
modelValue: {
|
|
@@ -703,8 +735,8 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
703
735
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
704
736
|
}, {
|
|
705
737
|
modelValue: string | number | unknown[];
|
|
706
|
-
presetVal: string;
|
|
707
738
|
paramCfg: Record<string, any>;
|
|
739
|
+
presetVal: string;
|
|
708
740
|
}>;
|
|
709
741
|
declare const SelectLabel: import("vue").DefineComponent<{
|
|
710
742
|
paramCfg: {
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts
CHANGED
|
@@ -9,10 +9,5 @@ export declare const useFilterConditions: (filterConditions: Ref, selectList: an
|
|
|
9
9
|
updateCondition: (index: number, val: any) => void;
|
|
10
10
|
getParamCfg: (key: string) => any;
|
|
11
11
|
initFilterConditions: (tableId: string, rawConditions: ISearchConfigType) => Promise<void>;
|
|
12
|
-
getRawFilterConditions: () =>
|
|
13
|
-
field_key: any;
|
|
14
|
-
con: any;
|
|
15
|
-
value: any;
|
|
16
|
-
unit: any;
|
|
17
|
-
}[];
|
|
12
|
+
getRawFilterConditions: () => any[];
|
|
18
13
|
};
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as
|
|
1
|
+
import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as i}from"../../../types/enums.js";import{transformConditions as r,transformRawConditions as u,transformDataToFront as c}from"../../../tool/transformData.js";const s=(s,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=s.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const o=y(a.key);(null==(e=null==(t=o._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=o._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==o.SELECT&&(null==t?void 0:t.type)!==o.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==i.MULTIPLE?null:[],a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{s.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:a=>{s.value.splice(a,1)},updateKey:(a,t)=>{const e=s.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return c(d,p)}catch(a){return[]}})();m.params=n,s.value=r(t,e(m.params))},getRawFilterConditions:()=>u(n(s))}};export{s as useFilterConditions};
|