cnhis-design-vue 3.1.50-beta.11 → 3.1.50-beta.12
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/form-config/index.d.ts +186 -6
- package/es/components/form-config/src/FormConfig.vue.d.ts +186 -6
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +90 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +93 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/index.d.ts +90 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +90 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +90 -3
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-table/index.d.ts +26 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -0
- package/es/components/info-header/index.d.ts +270 -9
- package/es/components/info-header/src/InfoHeader.vue.d.ts +270 -9
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +176 -6
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +90 -3
- package/es/components/shortcut-setter/index.d.ts +90 -3
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +90 -3
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,defineComponent as n,inject as t}from"vue";import"../../../../index.js";import{NCheckbox as a}from"naive-ui";import{defineTablePlugin as
|
|
1
|
+
import{createVNode as e,defineComponent as n,inject as t}from"vue";import"../../../../index.js";import{NCheckbox as a}from"naive-ui";import{defineTablePlugin as o}from"../../../hooks/useTablePlugin.js";function s(){const n="checkRendererPlugin";return o({name:n,apply(t){t.fieldHooks.field.tap(n,((t,{index:a,insertBefore:o},s)=>{if(0===a&&s.selectType&&["checkbox","radio"].includes(s.selectType)){const{radioConfig:t,checkboxConfig:a={}}=s,r={width:45,align:"center",fixed:"left",..."radio"===s.selectType?t:a,field:n,type:s.selectType,annotation:!1};a.disableHeader&&(r.slots={header:()=>e("span",{class:"checkbox-cell--disable"},null),...r.slots}),a.useNCheckbox&&(r.slots={header:n=>[e(l,{style:"margin-left: -1px",params:n},null)],checkbox:n=>[e(l,{params:n},null)],...r.slots}),o(r)}return t}))}})}const l=n({name:"Checkbox",props:{params:{type:Object,default:()=>({})}},setup(n){const o=t("$xetable");function s(e){var t;"header"===(null==(t=n.params)?void 0:t.type)?null==o||o.triggerCheckAllEvent(new MouseEvent("mouse-down"),e):null==o||o.triggerCheckRowEvent(new MouseEvent("mouse-down"),n.params,e)}return()=>e(a,{checked:n.params.checked,"onUpdate:checked":e=>n.params.checked=e,indeterminate:n.params.indeterminate,disabled:n.params.disabled,onUpdateChecked:s},null)}});export{s as checkRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{unref as e,createVNode as t,onBeforeUnmount as o,shallowReactive as l,defineComponent as n,inject as r,ref as a,computed as s,provide as i,watch as u,onMounted as d,h as c}from"vue";import{traverse as p,widthAppend as f}from"../../../../../shared/utils/index.js";import{doAnimation as m}from"../../../../../shared/utils/anime.js";import{useThrottleFn as h}from"@vueuse/core";import{promiseTimeout as g}from"@vueuse/shared";import{last as v,isFunction as x,omit as I,isNumber as b}from"lodash-es";import"../../../index.js";import{WIDGET_TYPE as y,InjectionIhoTableUUID as T}from"../../constants/index.js";import{useUUIDMap as w}from"../../utils/index.js";import{defineTablePlugin as H}from"../../hooks/useTablePlugin.js";class R{constructor(){this.records={},this.maxRecords=l(new Map)}set(e,t,o){if(this.records[e]||(this.records[e]={}),this.records[e][t]===o)return;this.records[e][t]=o;const l=Math.max(...Object.values(this.records[e]),0);this.maxRecords.get(e)!==l&&this.maxRecords.set(e,l)}getMax(e){return this.maxRecords.get(e)||0}}const{getItemFromUUID:D,removeItemFromUUID:M}=w((()=>new R),!0),{getItemFromUUID:S,removeItemFromUUID:U,setItemFromUUID:C}=w((()=>null)),{getItemFromUUID:$,removeItemFromUUID:E,setItemFromUUID:k}=w((()=>{})),F=n({props:{payload:{type:Object,required:!0}},setup(e){const o=r(T),l=r("$xetable"),n=a(),p=D(o),m=s((()=>e.payload.row[e.payload.column.field]));function h(){const{row:t,column:o}=e.payload,r=l.getRowSeq(t);if(!p||null==r||!n.value)return;const a=n.value.clientHeight;p.set(r,o.field,a)}i("updateCellHeight",h),u([()=>e.payload.rowIndex,()=>e.payload.column.field,m,()=>e.payload.column.renderWidth],(async()=>{await g(0),h()})),d((()=>{l&&!S(o)&&C(o,l),h()}));const v=s((()=>{var t,o,l,n;const r=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},a=null!=(n=null==(l=r.slots)?void 0:l.default)?n:r.slotFn;return x(a)?a:()=>m.value})),I=s((()=>{if(e.payload.column.treeNode)return"";const t=e.payload.column.renderWidth;return b(t)&&t>0?f(t-20-2):""}));return()=>t("div",{ref:n,style:{padding:"7px 0",width:I.value,overflow:"hidden"}},[c(v.value,e.payload)])}});function j(t,o,{scrollTop:l=0}){var n,r;const{uuid:a,rowConfig:s={}}=o;if(!a)return;const i=D(a),{oSize:u=0,gt:d=100}=null!=(n=$(a))?n:{},{internalData:c,reactData:p}=t,{scrollYStore:f,elemStore:m,afterFullData:h,fullDataRowIdData:g}=c;if(d>h.length)return;const I=null!=(r=s.height)?r:36,b=m["main-body-wrapper"],y=b?e(b):null;let T=y?Math.max(8,Math.ceil(y.clientHeight/I)+2+u):8;const w=[0];let H=0;if(l&&h.find(((e,o)=>{const n=t.getRowSeq(e),r=(v(w)||0)+Math.max(I,i.getMax(n));if(w.push(r),r>l)return H=Math.max(0,o-u),T+=Math.min(H,u),!0})),H>0&&x(o.spanMethod)){const{spanMethod:e}=o,l={rowspan:1,colspan:1};for(;H>0;){if(!t.getColumns().some(((t,o)=>{const{rowspan:n,colspan:r}=e({column:t,columnIndex:o,$columnIndex:o,row:h[H],rowIndex:H,$rowIndex:H,_rowIndex:H,isHidden:!t.visible,fixed:t.fixed,type:t.type,visibleData:h})||l;if(0===n&&0===r)return H--,!0})))break}}const R=`${w[H]}px`,M=`${h.reduce(((e,o)=>{const l=t.getRowSeq(o);return e+Math.max(I,i.getMax(l))}),0)}px`;["main","left","right"].forEach((t=>{const o=m[`${t}-body-table`],n=o?e(o):null;n&&(n.style.marginTop=R,n.scrollTop=l),["header","body","footer"].forEach((o=>{const l=m[`${t}-${o}-ySpace`],n=l?e(l):null;n&&(n.style.height=M)}))}));const S=Math.min(h.length,H+T);if(f.startIndex===H&&f.endIndex===S)return;f.startIndex=H,f.endIndex=S;const U=h.slice(f.startIndex,f.endIndex);U.forEach(((e,o)=>{const l=t.getRowid(e),n=g[l];n&&(n.$index=o)})),p.tableData.length=0,p.tableData.push(...U)}const L=h(j,300);function Y(){const l="variableHeightRendererPlugin";return H({name:l,vxe(e){e.renderer.add(y.VARIABLE_HEIGHT,{renderCell:(e,o)=>t(F,{payload:o},null)})},apply(t){function n(t){const o=S(t.uuid);if(!o)return;t.scrollY={enabled:!1},o.reactData.scrollYLoad=!1;const l=function(t){const o=t.internalData.elemStore["main-body-wrapper"];return o?e(o):null}(o);l&&j(o,t,{scrollTop:l.scrollTop})}function r(e){if(!e.uuid)return;const t=$(e.uuid);t&&(e.scrollY=t),setTimeout((()=>n(e)),300)}t.dataHooks.dataStart.tap(l,r),t.eventHooks.onFilterChange.tap(l,((e,t)=>r(t))),t.eventHooks.onSortChange.tap(l,((e,t)=>r(t))),t.eventHooks.onToggleTreeExpand.tap(l,((e,t)=>r(t))),t.eventHooks.onResizableChange.tap(l,(async({column:e},t)=>{
|
|
1
|
+
import{unref as e,createVNode as t,onBeforeUnmount as o,shallowReactive as l,defineComponent as n,inject as r,ref as a,computed as s,provide as i,watch as u,onMounted as d,h as c}from"vue";import{traverse as p,widthAppend as f}from"../../../../../shared/utils/index.js";import{doAnimation as m}from"../../../../../shared/utils/anime.js";import{useThrottleFn as h}from"@vueuse/core";import{promiseTimeout as g}from"@vueuse/shared";import{last as v,isFunction as x,omit as I,isNumber as b}from"lodash-es";import"../../../index.js";import{WIDGET_TYPE as y,InjectionIhoTableUUID as T}from"../../constants/index.js";import{useUUIDMap as w}from"../../utils/index.js";import{defineTablePlugin as H}from"../../hooks/useTablePlugin.js";class R{constructor(){this.records={},this.maxRecords=l(new Map)}set(e,t,o){if(this.records[e]||(this.records[e]={}),this.records[e][t]===o)return;this.records[e][t]=o;const l=Math.max(...Object.values(this.records[e]),0);this.maxRecords.get(e)!==l&&this.maxRecords.set(e,l)}getMax(e){return this.maxRecords.get(e)||0}}const{getItemFromUUID:D,removeItemFromUUID:M}=w((()=>new R),!0),{getItemFromUUID:S,removeItemFromUUID:U,setItemFromUUID:C}=w((()=>null)),{getItemFromUUID:$,removeItemFromUUID:E,setItemFromUUID:k}=w((()=>{})),F=n({props:{payload:{type:Object,required:!0}},setup(e){const o=r(T),l=r("$xetable"),n=a(),p=D(o),m=s((()=>e.payload.row[e.payload.column.field]));function h(){const{row:t,column:o}=e.payload,r=l.getRowSeq(t);if(!p||null==r||!n.value)return;const a=n.value.clientHeight;p.set(r,o.field,a)}i("updateCellHeight",h),u([()=>e.payload.rowIndex,()=>e.payload.column.field,m,()=>e.payload.column.renderWidth],(async()=>{await g(0),h()})),d((()=>{l&&!S(o)&&C(o,l),h()}));const v=s((()=>{var t,o,l,n;const r=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},a=null!=(n=null==(l=r.slots)?void 0:l.default)?n:r.slotFn;return x(a)?a:()=>m.value})),I=s((()=>{if(e.payload.column.treeNode)return"";const t=e.payload.column.renderWidth;return b(t)&&t>0?f(t-20-2):""}));return()=>t("div",{ref:n,style:{padding:"7px 0",width:I.value,overflow:"hidden"}},[c(v.value,e.payload)])}});function j(t,o,{scrollTop:l=0}){var n,r;const{uuid:a,rowConfig:s={}}=o;if(!a)return;const i=D(a),{oSize:u=0,gt:d=100}=null!=(n=$(a))?n:{},{internalData:c,reactData:p}=t,{scrollYStore:f,elemStore:m,afterFullData:h,fullDataRowIdData:g}=c;if(d>h.length)return;const I=null!=(r=s.height)?r:36,b=m["main-body-wrapper"],y=b?e(b):null;let T=y?Math.max(8,Math.ceil(y.clientHeight/I)+2+u):8;const w=[0];let H=0;if(l&&h.find(((e,o)=>{const n=t.getRowSeq(e),r=(v(w)||0)+Math.max(I,i.getMax(n));if(w.push(r),r>l)return H=Math.max(0,o-u),T+=Math.min(H,u),!0})),H>0&&x(o.spanMethod)){const{spanMethod:e}=o,l={rowspan:1,colspan:1};for(;H>0;){if(!t.getColumns().some(((t,o)=>{const{rowspan:n,colspan:r}=e({column:t,columnIndex:o,$columnIndex:o,row:h[H],rowIndex:H,$rowIndex:H,_rowIndex:H,isHidden:!t.visible,fixed:t.fixed,type:t.type,visibleData:h})||l;if(0===n&&0===r)return H--,!0})))break}}const R=`${w[H]}px`,M=`${h.reduce(((e,o)=>{const l=t.getRowSeq(o);return e+Math.max(I,i.getMax(l))}),0)}px`;["main","left","right"].forEach((t=>{const o=m[`${t}-body-table`],n=o?e(o):null;n&&(n.style.marginTop=R,n.scrollTop=l),["header","body","footer"].forEach((o=>{const l=m[`${t}-${o}-ySpace`],n=l?e(l):null;n&&(n.style.height=M)}))}));const S=Math.min(h.length,H+T);if(f.startIndex===H&&f.endIndex===S)return;f.startIndex=H,f.endIndex=S;const U=h.slice(f.startIndex,f.endIndex);U.forEach(((e,o)=>{const l=t.getRowid(e),n=g[l];n&&(n.$index=o)})),p.tableData.length=0,p.tableData.push(...U)}const L=h(j,300);function Y(e){return!0===e.variableHeight||"1"===e.variableHeight}function A(){const l="variableHeightRendererPlugin";return H({name:l,vxe(e){e.renderer.add(y.VARIABLE_HEIGHT,{renderCell:(e,o)=>t(F,{payload:o},null)})},apply(t){function n(t){const o=S(t.uuid);if(!o)return;t.scrollY={enabled:!1},o.reactData.scrollYLoad=!1;const l=function(t){const o=t.internalData.elemStore["main-body-wrapper"];return o?e(o):null}(o);l&&j(o,t,{scrollTop:l.scrollTop})}function r(e){if(!e.uuid)return;const t=$(e.uuid);t&&(e.scrollY=t),setTimeout((()=>n(e)),300)}t.dataHooks.dataStart.tap(l,r),t.eventHooks.onFilterChange.tap(l,((e,t)=>r(t))),t.eventHooks.onSortChange.tap(l,((e,t)=>r(t))),t.eventHooks.onToggleTreeExpand.tap(l,((e,t)=>r(t))),t.eventHooks.onResizableChange.tap(l,(async({column:e},t)=>{e.editRender&&e.editRender.props&&Y(e.editRender.props)&&r(t)})),t.eventHooks.onScroll.tap(l,h(((e,t)=>{if(e.isX)return;const{uuid:o}=t;if(!o)return;const l=S(o);l&&j(l,t,e)}),100,!0,!0)),t.fieldHooks.field.tap(l,(e=>{if(Y(e)){const t=e.slots;e.slots=I(t,["default"]),e.editRender={...e.editRender,name:y.VARIABLE_HEIGHT};const o=e.className,l="variable-height";e.className=o?function(e){return x(o)?[o(e),l]:[o,l]}:l}return e})),t.fieldHooks.fieldList.tap(l,((t,o,{$table:l})=>(o.uuid&&p(t,((t,r)=>{var a,s,i;if((null==(a=t.editRender)?void 0:a.name)===y.VARIABLE_HEIGHT){const t=null!=(i=null==(s=o.rowConfig)?void 0:s.height)?i:36,a=D(o.uuid),u=o.cellStyle;if(o.cellStyle=function(e){const o={};if(l.value){const n=Math.max(t,a.getMax(l.value.getRowSeq(e.row)));o.height=`${n}px`}return Object.assign(o,u?x(u)?u(e):u:null)},o.sortableConfig&&o.sortableConfig.enable){const t=o.sortableConfig.onEnd;o.sortableConfig.onEnd=function(l){const n=S(o.uuid);if(n){const{internalData:{elemStore:t}}=n,l=t["main-table-body"];l&&e(l)&&j(n,o,{scrollTop:e(l).scrollTop})}x(t)&&t(l)}}o.scrollY={...o.scrollY,mode:"default"},o.onWheel=function(t){let o=null,l=0,n=!0;return function(r){if(!t.uuid)return;const a=S(t.uuid);if(!a)return;const{internalData:s}=a,{isHover:i}=t.rowConfig||{},{deltaX:u,deltaY:d}=r,{refTableLeftBody:c,refTableRightBody:p,refTableBody:f}=a.getRefMaps(),h=d,g=u,v=h<0,x=e(f),I=x?x.$el:null;if(!I)return;if(v?I.scrollTop<=0:I.scrollTop>=I.scrollHeight-I.clientHeight)return;const b=I.scrollTop+h,y=I.scrollLeft+g;if(b===s.lastScrollTop)return;r.preventDefault(),s.lastScrollTop=b,s.lastScrollLeft=y,s.lastScrollTime=Date.now(),i&&a.clearHoverRow();const T=c.value,w=p.value,H=T?T.$el:null,R=w?w.$el:null,D=Math.min(100,Math.abs(Math.floor(h/2)));n&&(l=I.scrollTop,n=!1),l+=D*(v?-1:1),o&&o(),o=m(I.scrollTop,l,400,(e=>{I.scrollTop=e,H&&(H.scrollTop=e),R&&(R.scrollTop=e)}),"easeOutCubic",(()=>{l=I.scrollTop,n=!0})),L(a,t,I)}}(o),setTimeout((()=>{k(o.uuid,o.scrollY),n(o)}),300),r()}})),t))),t.setupHooks.setup.tap(l,(e=>{o((()=>{e.value.uuid&&(M(e.value.uuid),U(e.value.uuid),E(e.value.uuid))}))}))}})}export{A as variableHeightRendererPlugin};
|
|
@@ -19,6 +19,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
19
19
|
isSingleSelect: MaybeString<0 | 1>;
|
|
20
20
|
hideSettingBtn: MaybeString<0 | 1>;
|
|
21
21
|
showSeq: boolean;
|
|
22
|
+
forceClearable: boolean;
|
|
22
23
|
selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
|
|
23
24
|
rowGroupSetting: Partial<Record<TupleToUnion<typeof IhoTableRowGroupSequence>, IhoTableRowGroupItem[]>>;
|
|
24
25
|
anchorList: Array<{
|
|
@@ -37,6 +38,9 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
37
38
|
disableHeader: boolean;
|
|
38
39
|
useNCheckbox: boolean;
|
|
39
40
|
}>;
|
|
41
|
+
radioConfig: Partial<VxeTableProps['radioConfig'] & {
|
|
42
|
+
slots: VxeColumnPropTypes.Slots;
|
|
43
|
+
}>;
|
|
40
44
|
sortableConfig: Partial<{
|
|
41
45
|
enable: boolean;
|
|
42
46
|
usePreset: boolean;
|
|
@@ -156,6 +156,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
156
156
|
uniqueCacheData: boolean;
|
|
157
157
|
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
158
158
|
outBordered: boolean;
|
|
159
|
+
forceClearable: boolean;
|
|
159
160
|
}>>>;
|
|
160
161
|
};
|
|
161
162
|
}, {
|
|
@@ -316,6 +317,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
316
317
|
uniqueCacheData: boolean;
|
|
317
318
|
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
318
319
|
outBordered: boolean;
|
|
320
|
+
forceClearable: boolean;
|
|
319
321
|
}>>>;
|
|
320
322
|
};
|
|
321
323
|
}>> & {
|
|
@@ -482,6 +484,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
482
484
|
uniqueCacheData: boolean;
|
|
483
485
|
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
484
486
|
outBordered: boolean;
|
|
487
|
+
forceClearable: boolean;
|
|
485
488
|
}>>;
|
|
486
489
|
};
|
|
487
490
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -637,10 +640,93 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
637
640
|
edit: boolean;
|
|
638
641
|
}>) => Promise<void>;
|
|
639
642
|
collector: import("..").BusinessCollector | undefined;
|
|
640
|
-
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: {
|
|
643
|
+
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: Partial<{
|
|
644
|
+
fieldList: import("..").FieldItem[];
|
|
645
|
+
initialData: import("../../../es/shared/types").AnyObject;
|
|
646
|
+
fieldVisitor: import("..").FieldVisitor;
|
|
641
647
|
column: number;
|
|
642
|
-
|
|
643
|
-
|
|
648
|
+
maxHeight: string | number;
|
|
649
|
+
anchor: boolean;
|
|
650
|
+
parallelism: number;
|
|
651
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
652
|
+
[key: symbol]: any;
|
|
653
|
+
[key: `x-${string}`]: any;
|
|
654
|
+
[key: `x-${number}`]: any;
|
|
655
|
+
version?: string | undefined;
|
|
656
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
657
|
+
title?: any;
|
|
658
|
+
description?: any;
|
|
659
|
+
default?: any;
|
|
660
|
+
readOnly?: boolean | undefined;
|
|
661
|
+
writeOnly?: boolean | undefined;
|
|
662
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
663
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
664
|
+
const?: any;
|
|
665
|
+
multipleOf?: number | undefined;
|
|
666
|
+
maximum?: number | undefined;
|
|
667
|
+
exclusiveMaximum?: number | undefined;
|
|
668
|
+
minimum?: number | undefined;
|
|
669
|
+
exclusiveMinimum?: number | undefined;
|
|
670
|
+
maxLength?: number | undefined;
|
|
671
|
+
minLength?: number | undefined;
|
|
672
|
+
pattern?: string | RegExp | undefined;
|
|
673
|
+
maxItems?: number | undefined;
|
|
674
|
+
minItems?: number | undefined;
|
|
675
|
+
uniqueItems?: boolean | undefined;
|
|
676
|
+
maxProperties?: number | undefined;
|
|
677
|
+
minProperties?: number | undefined;
|
|
678
|
+
required?: string | boolean | string[] | undefined;
|
|
679
|
+
format?: string | undefined;
|
|
680
|
+
$ref?: string | undefined;
|
|
681
|
+
$namespace?: string | undefined;
|
|
682
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
683
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
684
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
685
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
686
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
687
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
688
|
+
"x-value"?: any;
|
|
689
|
+
"x-index"?: number | undefined;
|
|
690
|
+
"x-pattern"?: any;
|
|
691
|
+
"x-display"?: any;
|
|
692
|
+
"x-validator"?: any;
|
|
693
|
+
"x-decorator"?: any;
|
|
694
|
+
"x-decorator-props"?: any;
|
|
695
|
+
"x-component"?: any;
|
|
696
|
+
"x-component-props"?: any;
|
|
697
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
698
|
+
"x-content"?: any;
|
|
699
|
+
"x-data"?: any;
|
|
700
|
+
"x-visible"?: boolean | undefined;
|
|
701
|
+
"x-hidden"?: boolean | undefined;
|
|
702
|
+
"x-disabled"?: boolean | undefined;
|
|
703
|
+
"x-editable"?: boolean | undefined;
|
|
704
|
+
"x-read-only"?: boolean | undefined;
|
|
705
|
+
"x-read-pretty"?: boolean | undefined;
|
|
706
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
707
|
+
}>;
|
|
708
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
709
|
+
scope: import("../../../es/shared/types").AnyObject;
|
|
710
|
+
annotation: import("../../../es/shared/types").AnyObject;
|
|
711
|
+
consumer: boolean;
|
|
712
|
+
uuid: string;
|
|
713
|
+
lifeCycle: Partial<{
|
|
714
|
+
onSetup(): void;
|
|
715
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
716
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
717
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
718
|
+
}>;
|
|
719
|
+
businessFormatter: import("..").FormBusinessFormatter;
|
|
720
|
+
requestInstance: import("..").RequestInstance;
|
|
721
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
722
|
+
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
723
|
+
linebarAutoHidden: boolean;
|
|
724
|
+
bordered: string | boolean;
|
|
725
|
+
uniqueCacheData: boolean;
|
|
726
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
727
|
+
outBordered: boolean;
|
|
728
|
+
forceClearable: boolean;
|
|
729
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
644
730
|
[key: symbol]: any;
|
|
645
731
|
[key: `x-${string}`]: any;
|
|
646
732
|
[key: `x-${number}`]: any;
|
|
@@ -2632,6 +2718,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2632
2718
|
type: BooleanConstructor;
|
|
2633
2719
|
default: boolean;
|
|
2634
2720
|
};
|
|
2721
|
+
forceClearable: BooleanConstructor;
|
|
2635
2722
|
}, {
|
|
2636
2723
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2637
2724
|
fieldList: {
|
|
@@ -2776,6 +2863,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2776
2863
|
type: BooleanConstructor;
|
|
2777
2864
|
default: boolean;
|
|
2778
2865
|
};
|
|
2866
|
+
forceClearable: BooleanConstructor;
|
|
2779
2867
|
}>> & {
|
|
2780
2868
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
2781
2869
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -2825,10 +2913,93 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2825
2913
|
operationalFormHandler: (field: string) => void;
|
|
2826
2914
|
triggerAllOperationalFormHandler: () => void;
|
|
2827
2915
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2828
|
-
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: {
|
|
2916
|
+
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: Partial<{
|
|
2917
|
+
fieldList: import("..").FieldItem[];
|
|
2918
|
+
initialData: import("../../../es/shared/types").AnyObject;
|
|
2919
|
+
fieldVisitor: import("..").FieldVisitor;
|
|
2829
2920
|
column: number;
|
|
2830
|
-
|
|
2831
|
-
|
|
2921
|
+
maxHeight: string | number;
|
|
2922
|
+
anchor: boolean;
|
|
2923
|
+
parallelism: number;
|
|
2924
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
2925
|
+
[key: symbol]: any;
|
|
2926
|
+
[key: `x-${string}`]: any;
|
|
2927
|
+
[key: `x-${number}`]: any;
|
|
2928
|
+
version?: string | undefined;
|
|
2929
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
2930
|
+
title?: any;
|
|
2931
|
+
description?: any;
|
|
2932
|
+
default?: any;
|
|
2933
|
+
readOnly?: boolean | undefined;
|
|
2934
|
+
writeOnly?: boolean | undefined;
|
|
2935
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
2936
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
2937
|
+
const?: any;
|
|
2938
|
+
multipleOf?: number | undefined;
|
|
2939
|
+
maximum?: number | undefined;
|
|
2940
|
+
exclusiveMaximum?: number | undefined;
|
|
2941
|
+
minimum?: number | undefined;
|
|
2942
|
+
exclusiveMinimum?: number | undefined;
|
|
2943
|
+
maxLength?: number | undefined;
|
|
2944
|
+
minLength?: number | undefined;
|
|
2945
|
+
pattern?: string | RegExp | undefined;
|
|
2946
|
+
maxItems?: number | undefined;
|
|
2947
|
+
minItems?: number | undefined;
|
|
2948
|
+
uniqueItems?: boolean | undefined;
|
|
2949
|
+
maxProperties?: number | undefined;
|
|
2950
|
+
minProperties?: number | undefined;
|
|
2951
|
+
required?: string | boolean | string[] | undefined;
|
|
2952
|
+
format?: string | undefined;
|
|
2953
|
+
$ref?: string | undefined;
|
|
2954
|
+
$namespace?: string | undefined;
|
|
2955
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2956
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2957
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
2958
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2959
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
2960
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
2961
|
+
"x-value"?: any;
|
|
2962
|
+
"x-index"?: number | undefined;
|
|
2963
|
+
"x-pattern"?: any;
|
|
2964
|
+
"x-display"?: any;
|
|
2965
|
+
"x-validator"?: any;
|
|
2966
|
+
"x-decorator"?: any;
|
|
2967
|
+
"x-decorator-props"?: any;
|
|
2968
|
+
"x-component"?: any;
|
|
2969
|
+
"x-component-props"?: any;
|
|
2970
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
2971
|
+
"x-content"?: any;
|
|
2972
|
+
"x-data"?: any;
|
|
2973
|
+
"x-visible"?: boolean | undefined;
|
|
2974
|
+
"x-hidden"?: boolean | undefined;
|
|
2975
|
+
"x-disabled"?: boolean | undefined;
|
|
2976
|
+
"x-editable"?: boolean | undefined;
|
|
2977
|
+
"x-read-only"?: boolean | undefined;
|
|
2978
|
+
"x-read-pretty"?: boolean | undefined;
|
|
2979
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
2980
|
+
}>;
|
|
2981
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2982
|
+
scope: import("../../../es/shared/types").AnyObject;
|
|
2983
|
+
annotation: import("../../../es/shared/types").AnyObject;
|
|
2984
|
+
consumer: boolean;
|
|
2985
|
+
uuid: string;
|
|
2986
|
+
lifeCycle: Partial<{
|
|
2987
|
+
onSetup(): void;
|
|
2988
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
2989
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
2990
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2991
|
+
}>;
|
|
2992
|
+
businessFormatter: import("..").FormBusinessFormatter;
|
|
2993
|
+
requestInstance: import("..").RequestInstance;
|
|
2994
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2995
|
+
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
2996
|
+
linebarAutoHidden: boolean;
|
|
2997
|
+
bordered: string | boolean;
|
|
2998
|
+
uniqueCacheData: boolean;
|
|
2999
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
3000
|
+
outBordered: boolean;
|
|
3001
|
+
forceClearable: boolean;
|
|
3002
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2832
3003
|
[key: symbol]: any;
|
|
2833
3004
|
[key: `x-${string}`]: any;
|
|
2834
3005
|
[key: `x-${number}`]: any;
|
|
@@ -3252,6 +3423,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3252
3423
|
type: BooleanConstructor;
|
|
3253
3424
|
default: boolean;
|
|
3254
3425
|
};
|
|
3426
|
+
forceClearable: BooleanConstructor;
|
|
3255
3427
|
}>> & {
|
|
3256
3428
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3257
3429
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -3260,6 +3432,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3260
3432
|
anchor: boolean;
|
|
3261
3433
|
maxHeight: string | number;
|
|
3262
3434
|
column: number;
|
|
3435
|
+
forceClearable: boolean;
|
|
3263
3436
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
3264
3437
|
initialData: import("../../../es/shared/types").AnyObject;
|
|
3265
3438
|
parallelism: number;
|
|
@@ -3536,6 +3709,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3536
3709
|
type: BooleanConstructor;
|
|
3537
3710
|
default: boolean;
|
|
3538
3711
|
};
|
|
3712
|
+
forceClearable: BooleanConstructor;
|
|
3539
3713
|
}, {
|
|
3540
3714
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3541
3715
|
fieldList: {
|
|
@@ -3680,6 +3854,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3680
3854
|
type: BooleanConstructor;
|
|
3681
3855
|
default: boolean;
|
|
3682
3856
|
};
|
|
3857
|
+
forceClearable: BooleanConstructor;
|
|
3683
3858
|
}>> & {
|
|
3684
3859
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
3685
3860
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -3729,10 +3904,93 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3729
3904
|
operationalFormHandler: (field: string) => void;
|
|
3730
3905
|
triggerAllOperationalFormHandler: () => void;
|
|
3731
3906
|
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
3732
|
-
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: {
|
|
3907
|
+
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: Partial<{
|
|
3908
|
+
fieldList: import("..").FieldItem[];
|
|
3909
|
+
initialData: import("../../../es/shared/types").AnyObject;
|
|
3910
|
+
fieldVisitor: import("..").FieldVisitor;
|
|
3733
3911
|
column: number;
|
|
3734
|
-
|
|
3735
|
-
|
|
3912
|
+
maxHeight: string | number;
|
|
3913
|
+
anchor: boolean;
|
|
3914
|
+
parallelism: number;
|
|
3915
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
3916
|
+
[key: symbol]: any;
|
|
3917
|
+
[key: `x-${string}`]: any;
|
|
3918
|
+
[key: `x-${number}`]: any;
|
|
3919
|
+
version?: string | undefined;
|
|
3920
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
3921
|
+
title?: any;
|
|
3922
|
+
description?: any;
|
|
3923
|
+
default?: any;
|
|
3924
|
+
readOnly?: boolean | undefined;
|
|
3925
|
+
writeOnly?: boolean | undefined;
|
|
3926
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
3927
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
3928
|
+
const?: any;
|
|
3929
|
+
multipleOf?: number | undefined;
|
|
3930
|
+
maximum?: number | undefined;
|
|
3931
|
+
exclusiveMaximum?: number | undefined;
|
|
3932
|
+
minimum?: number | undefined;
|
|
3933
|
+
exclusiveMinimum?: number | undefined;
|
|
3934
|
+
maxLength?: number | undefined;
|
|
3935
|
+
minLength?: number | undefined;
|
|
3936
|
+
pattern?: string | RegExp | undefined;
|
|
3937
|
+
maxItems?: number | undefined;
|
|
3938
|
+
minItems?: number | undefined;
|
|
3939
|
+
uniqueItems?: boolean | undefined;
|
|
3940
|
+
maxProperties?: number | undefined;
|
|
3941
|
+
minProperties?: number | undefined;
|
|
3942
|
+
required?: string | boolean | string[] | undefined;
|
|
3943
|
+
format?: string | undefined;
|
|
3944
|
+
$ref?: string | undefined;
|
|
3945
|
+
$namespace?: string | undefined;
|
|
3946
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
3947
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
3948
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
3949
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
3950
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
3951
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
3952
|
+
"x-value"?: any;
|
|
3953
|
+
"x-index"?: number | undefined;
|
|
3954
|
+
"x-pattern"?: any;
|
|
3955
|
+
"x-display"?: any;
|
|
3956
|
+
"x-validator"?: any;
|
|
3957
|
+
"x-decorator"?: any;
|
|
3958
|
+
"x-decorator-props"?: any;
|
|
3959
|
+
"x-component"?: any;
|
|
3960
|
+
"x-component-props"?: any;
|
|
3961
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
3962
|
+
"x-content"?: any;
|
|
3963
|
+
"x-data"?: any;
|
|
3964
|
+
"x-visible"?: boolean | undefined;
|
|
3965
|
+
"x-hidden"?: boolean | undefined;
|
|
3966
|
+
"x-disabled"?: boolean | undefined;
|
|
3967
|
+
"x-editable"?: boolean | undefined;
|
|
3968
|
+
"x-read-only"?: boolean | undefined;
|
|
3969
|
+
"x-read-pretty"?: boolean | undefined;
|
|
3970
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
3971
|
+
}>;
|
|
3972
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
3973
|
+
scope: import("../../../es/shared/types").AnyObject;
|
|
3974
|
+
annotation: import("../../../es/shared/types").AnyObject;
|
|
3975
|
+
consumer: boolean;
|
|
3976
|
+
uuid: string;
|
|
3977
|
+
lifeCycle: Partial<{
|
|
3978
|
+
onSetup(): void;
|
|
3979
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/shared/types").AnyObject | undefined, payload?: import("../../../es/shared/types").AnyObject | undefined): void | import("../../../es/shared/types").UndefinedAble<import("../../../es/shared/types").AnyObject>;
|
|
3980
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../es/shared/types").AnyObject | undefined): import("../../../es/shared/types").AnyObject[];
|
|
3981
|
+
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
3982
|
+
}>;
|
|
3983
|
+
businessFormatter: import("..").FormBusinessFormatter;
|
|
3984
|
+
requestInstance: import("..").RequestInstance;
|
|
3985
|
+
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
3986
|
+
lowCodeReactions: import("..").FormLowCodeReactions.Config[];
|
|
3987
|
+
linebarAutoHidden: boolean;
|
|
3988
|
+
bordered: string | boolean;
|
|
3989
|
+
uniqueCacheData: boolean;
|
|
3990
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
3991
|
+
outBordered: boolean;
|
|
3992
|
+
forceClearable: boolean;
|
|
3993
|
+
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3736
3994
|
[key: symbol]: any;
|
|
3737
3995
|
[key: `x-${string}`]: any;
|
|
3738
3996
|
[key: `x-${number}`]: any;
|
|
@@ -4156,6 +4414,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4156
4414
|
type: BooleanConstructor;
|
|
4157
4415
|
default: boolean;
|
|
4158
4416
|
};
|
|
4417
|
+
forceClearable: BooleanConstructor;
|
|
4159
4418
|
}>> & {
|
|
4160
4419
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
4161
4420
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
@@ -4164,6 +4423,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4164
4423
|
anchor: boolean;
|
|
4165
4424
|
maxHeight: string | number;
|
|
4166
4425
|
column: number;
|
|
4426
|
+
forceClearable: boolean;
|
|
4167
4427
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
4168
4428
|
initialData: import("../../../es/shared/types").AnyObject;
|
|
4169
4429
|
parallelism: number;
|
|
@@ -4346,6 +4606,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4346
4606
|
uniqueCacheData: boolean;
|
|
4347
4607
|
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
4348
4608
|
outBordered: boolean;
|
|
4609
|
+
forceClearable: boolean;
|
|
4349
4610
|
}>>>;
|
|
4350
4611
|
};
|
|
4351
4612
|
}>> & {
|