cnhis-design-vue 3.1.43-beta.0 → 3.1.43-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/base-search/index.d.ts +46 -114
- package/es/components/base-search/src/index.vue.d.ts +46 -114
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/src/hooks/useEdit.d.ts +26 -26
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +7 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -5
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +7 -6
- package/es/components/date-picker/index.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.d.ts +27 -2
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
- package/es/components/form-config/index.d.ts +72 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +72 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +21 -20
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeEvent.d.ts +6 -0
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -127
- package/es/components/form-render/src/types/index.d.ts +1 -2
- package/es/components/iho-table/index.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +15 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -3
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +27 -2
- 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 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.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 +11 -25
- package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +21 -20
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/quick-search/index.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-person/index.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +109 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -7
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
- 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 +13 -3
- 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 +134 -15
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.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 +26 -87
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +16 -0
- package/es/shared/types/business.js +1 -0
- package/es/shared/types/index.d.ts +1 -1
- package/es/shared/utils/business.d.ts +11 -0
- package/es/shared/utils/business.js +1 -0
- package/es/shared/utils/index.d.ts +1 -5
- package/es/shared/utils/index.js +1 -1
- package/package.json +65 -65
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format as n}from"date-fns";function
|
|
1
|
+
import{format as n}from"date-fns";function t(t){const{xScaleList:e,originX:i,endY:l,xCellWidth:r,left:u,vitalSignsOriginY:o,painOriginY:a,canvasWidth:c}=t;return{cumputedX:function(n,t=!1){const i=new Date(n).getTime(),[l]=e,r=e.at(-1);if(i<l.start)return 0;if(i>r.end)return c;const u=e.findIndex((n=>n.end>=i));if(u>-1){return e[u].center}},cumputedY:function(n,e,i){const l=t[`${n}YCell`],r=+i-Math.min(...e);return("pain"===n?a.endY:o.endY)-l*r},getXValue:function(t){const i=e.findIndex((n=>n.left+r>=t));if(i>-1){const l=e[i],r=t-l.left,u=l.scaleCell*r,o=l.start+u;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,e){var i;const l=t[`${n}YCell`],r=(null==(i=u.yScaleValue.find((t=>t.type===n)))?void 0:i.list)||[],c=r.length?Math.min(...r):0,d=(("pain"===n?a.endY:o.endY)-e)/l+c,f=Math.floor(100*d)/100,s=f.toString().split(".");return!(null==s?void 0:s[1])||+s[1]<99?f:+s[0]+1}}}function e(t){const{xAxis:e,originX:i,originY:l,xCellWidth:r,endY:u,timeXCell:o,startTime:a,scaleValues:c}=t;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+i},cumputedY:function(n,e,i){const[l]=e;return u-(+i-l)/t[`${n}YCell`]},getXValue:function(t){return n(new Date((t-i)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,e){const i=c.find((t=>n===t.key)),[l]=(null==i?void 0:i.range)||[0],r=(u-e)*t[`${n}YCell`]+l;return Math.floor(100*r)/100}}}export{e as useBirthProcessCumputedPoint,t as useCumputedPoint};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
export declare function useEvent(element: HTMLCanvasElement |
|
|
4
|
+
export declare function useEvent(element: HTMLCanvasElement | null): void;
|
|
5
5
|
export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
|
|
6
6
|
select: (key: string) => void;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
1
|
+
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){t&&e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
@@ -2,6 +2,6 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
-
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits:
|
|
5
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: AnyObject, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
|
|
6
6
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
|
|
3
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
+
export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
|
|
4
5
|
propItems: any;
|
|
5
6
|
redrawPoints: Ref<any>;
|
|
6
7
|
select: Ref<any>;
|
|
@@ -164,6 +164,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
164
164
|
remark?: string | undefined;
|
|
165
165
|
free_entry?: import("..").FormCommonState | undefined;
|
|
166
166
|
initialize_high?: number | undefined;
|
|
167
|
+
bindEventSetting?: {
|
|
168
|
+
[x: string]: unknown;
|
|
169
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
170
|
+
event_field?: string | undefined;
|
|
171
|
+
params?: {
|
|
172
|
+
p_value?: string | undefined;
|
|
173
|
+
p_name: string;
|
|
174
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
results?: {
|
|
177
|
+
p_value: string;
|
|
178
|
+
p_name: string;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
}[] | undefined;
|
|
167
181
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
168
182
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
169
183
|
lazyRequest?: boolean | undefined;
|
|
@@ -1861,6 +1875,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1861
1875
|
remark?: string | undefined;
|
|
1862
1876
|
free_entry?: import("..").FormCommonState | undefined;
|
|
1863
1877
|
initialize_high?: number | undefined;
|
|
1878
|
+
bindEventSetting?: {
|
|
1879
|
+
[x: string]: unknown;
|
|
1880
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
1881
|
+
event_field?: string | undefined;
|
|
1882
|
+
params?: {
|
|
1883
|
+
p_value?: string | undefined;
|
|
1884
|
+
p_name: string;
|
|
1885
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
1886
|
+
}[] | undefined;
|
|
1887
|
+
results?: {
|
|
1888
|
+
p_value: string;
|
|
1889
|
+
p_name: string;
|
|
1890
|
+
}[] | undefined;
|
|
1891
|
+
}[] | undefined;
|
|
1864
1892
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
1865
1893
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
1866
1894
|
lazyRequest?: boolean | undefined;
|
|
@@ -3829,6 +3857,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3829
3857
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
3830
3858
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3831
3859
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
3860
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
3832
3861
|
formModel: import("@formily/core").Form<{
|
|
3833
3862
|
[x: string]: any;
|
|
3834
3863
|
}>;
|
|
@@ -4502,6 +4531,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4502
4531
|
remark?: string | undefined;
|
|
4503
4532
|
free_entry?: import("..").FormCommonState | undefined;
|
|
4504
4533
|
initialize_high?: number | undefined;
|
|
4534
|
+
bindEventSetting?: {
|
|
4535
|
+
[x: string]: unknown;
|
|
4536
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
4537
|
+
event_field?: string | undefined;
|
|
4538
|
+
params?: {
|
|
4539
|
+
p_value?: string | undefined;
|
|
4540
|
+
p_name: string;
|
|
4541
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
4542
|
+
}[] | undefined;
|
|
4543
|
+
results?: {
|
|
4544
|
+
p_value: string;
|
|
4545
|
+
p_name: string;
|
|
4546
|
+
}[] | undefined;
|
|
4547
|
+
}[] | undefined;
|
|
4505
4548
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
4506
4549
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
4507
4550
|
lazyRequest?: boolean | undefined;
|
|
@@ -6211,6 +6254,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6211
6254
|
remark?: string | undefined;
|
|
6212
6255
|
free_entry?: import("..").FormCommonState | undefined;
|
|
6213
6256
|
initialize_high?: number | undefined;
|
|
6257
|
+
bindEventSetting?: {
|
|
6258
|
+
[x: string]: unknown;
|
|
6259
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
6260
|
+
event_field?: string | undefined;
|
|
6261
|
+
params?: {
|
|
6262
|
+
p_value?: string | undefined;
|
|
6263
|
+
p_name: string;
|
|
6264
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
6265
|
+
}[] | undefined;
|
|
6266
|
+
results?: {
|
|
6267
|
+
p_value: string;
|
|
6268
|
+
p_name: string;
|
|
6269
|
+
}[] | undefined;
|
|
6270
|
+
}[] | undefined;
|
|
6214
6271
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
6215
6272
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
6216
6273
|
lazyRequest?: boolean | undefined;
|
|
@@ -7892,6 +7949,20 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7892
7949
|
remark?: string | undefined;
|
|
7893
7950
|
free_entry?: import("..").FormCommonState | undefined;
|
|
7894
7951
|
initialize_high?: number | undefined;
|
|
7952
|
+
bindEventSetting?: {
|
|
7953
|
+
[x: string]: unknown;
|
|
7954
|
+
event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
7955
|
+
event_field?: string | undefined;
|
|
7956
|
+
params?: {
|
|
7957
|
+
p_value?: string | undefined;
|
|
7958
|
+
p_name: string;
|
|
7959
|
+
p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
7960
|
+
}[] | undefined;
|
|
7961
|
+
results?: {
|
|
7962
|
+
p_value: string;
|
|
7963
|
+
p_name: string;
|
|
7964
|
+
}[] | undefined;
|
|
7965
|
+
}[] | undefined;
|
|
7895
7966
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
7896
7967
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
7897
7968
|
lazyRequest?: boolean | undefined;
|
|
@@ -9771,6 +9842,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9771
9842
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
9772
9843
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
9773
9844
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
9845
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
9774
9846
|
formModel: import("@formily/core").Form<{
|
|
9775
9847
|
[x: string]: any;
|
|
9776
9848
|
}>;
|
|
@@ -166,6 +166,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
166
|
remark?: string | undefined;
|
|
167
167
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
168
168
|
initialize_high?: number | undefined;
|
|
169
|
+
bindEventSetting?: {
|
|
170
|
+
[x: string]: unknown;
|
|
171
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
172
|
+
event_field?: string | undefined;
|
|
173
|
+
params?: {
|
|
174
|
+
p_value?: string | undefined;
|
|
175
|
+
p_name: string;
|
|
176
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
results?: {
|
|
179
|
+
p_value: string;
|
|
180
|
+
p_name: string;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
}[] | undefined;
|
|
169
183
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
170
184
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
171
185
|
lazyRequest?: boolean | undefined;
|
|
@@ -1863,6 +1877,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1863
1877
|
remark?: string | undefined;
|
|
1864
1878
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
1865
1879
|
initialize_high?: number | undefined;
|
|
1880
|
+
bindEventSetting?: {
|
|
1881
|
+
[x: string]: unknown;
|
|
1882
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
1883
|
+
event_field?: string | undefined;
|
|
1884
|
+
params?: {
|
|
1885
|
+
p_value?: string | undefined;
|
|
1886
|
+
p_name: string;
|
|
1887
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
1888
|
+
}[] | undefined;
|
|
1889
|
+
results?: {
|
|
1890
|
+
p_value: string;
|
|
1891
|
+
p_name: string;
|
|
1892
|
+
}[] | undefined;
|
|
1893
|
+
}[] | undefined;
|
|
1866
1894
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
1867
1895
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
1868
1896
|
lazyRequest?: boolean | undefined;
|
|
@@ -3831,6 +3859,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3831
3859
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
3832
3860
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3833
3861
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3862
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
3834
3863
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
3835
3864
|
[x: string]: any;
|
|
3836
3865
|
}>;
|
|
@@ -4504,6 +4533,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4504
4533
|
remark?: string | undefined;
|
|
4505
4534
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
4506
4535
|
initialize_high?: number | undefined;
|
|
4536
|
+
bindEventSetting?: {
|
|
4537
|
+
[x: string]: unknown;
|
|
4538
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
4539
|
+
event_field?: string | undefined;
|
|
4540
|
+
params?: {
|
|
4541
|
+
p_value?: string | undefined;
|
|
4542
|
+
p_name: string;
|
|
4543
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
4544
|
+
}[] | undefined;
|
|
4545
|
+
results?: {
|
|
4546
|
+
p_value: string;
|
|
4547
|
+
p_name: string;
|
|
4548
|
+
}[] | undefined;
|
|
4549
|
+
}[] | undefined;
|
|
4507
4550
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
4508
4551
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
4509
4552
|
lazyRequest?: boolean | undefined;
|
|
@@ -6213,6 +6256,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6213
6256
|
remark?: string | undefined;
|
|
6214
6257
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
6215
6258
|
initialize_high?: number | undefined;
|
|
6259
|
+
bindEventSetting?: {
|
|
6260
|
+
[x: string]: unknown;
|
|
6261
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
6262
|
+
event_field?: string | undefined;
|
|
6263
|
+
params?: {
|
|
6264
|
+
p_value?: string | undefined;
|
|
6265
|
+
p_name: string;
|
|
6266
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
6267
|
+
}[] | undefined;
|
|
6268
|
+
results?: {
|
|
6269
|
+
p_value: string;
|
|
6270
|
+
p_name: string;
|
|
6271
|
+
}[] | undefined;
|
|
6272
|
+
}[] | undefined;
|
|
6216
6273
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
6217
6274
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
6218
6275
|
lazyRequest?: boolean | undefined;
|
|
@@ -7894,6 +7951,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7894
7951
|
remark?: string | undefined;
|
|
7895
7952
|
free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
7896
7953
|
initialize_high?: number | undefined;
|
|
7954
|
+
bindEventSetting?: {
|
|
7955
|
+
[x: string]: unknown;
|
|
7956
|
+
event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
7957
|
+
event_field?: string | undefined;
|
|
7958
|
+
params?: {
|
|
7959
|
+
p_value?: string | undefined;
|
|
7960
|
+
p_name: string;
|
|
7961
|
+
p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
7962
|
+
}[] | undefined;
|
|
7963
|
+
results?: {
|
|
7964
|
+
p_value: string;
|
|
7965
|
+
p_name: string;
|
|
7966
|
+
}[] | undefined;
|
|
7967
|
+
}[] | undefined;
|
|
7897
7968
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
7898
7969
|
content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
|
|
7899
7970
|
lazyRequest?: boolean | undefined;
|
|
@@ -9773,6 +9844,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9773
9844
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
9774
9845
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
9775
9846
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
9847
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
9776
9848
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
9777
9849
|
[x: string]: any;
|
|
9778
9850
|
}>;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
15
15
|
NButton: any;
|
|
16
16
|
NButtonGroup: any;
|
|
17
17
|
NPopconfirm: any;
|
|
18
|
-
CFormRender: import("
|
|
18
|
+
CFormRender: import("../../..").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
19
19
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
20
20
|
key: import("vue").Ref<number>;
|
|
21
21
|
reload: () => Promise<void>;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
26
26
|
type: import("vue").PropType<FieldItem[]>;
|
|
27
27
|
};
|
|
28
28
|
initialData: {
|
|
29
|
-
type: import("vue").PropType<import("
|
|
29
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
30
30
|
default: () => {};
|
|
31
31
|
};
|
|
32
32
|
fieldVisitor: {
|
|
@@ -115,11 +115,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
115
115
|
default: () => {};
|
|
116
116
|
};
|
|
117
117
|
scope: {
|
|
118
|
-
type: import("vue").PropType<import("
|
|
118
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
119
119
|
default: () => {};
|
|
120
120
|
};
|
|
121
121
|
annotation: {
|
|
122
|
-
type: import("vue").PropType<import("
|
|
122
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
123
123
|
};
|
|
124
124
|
consumer: {
|
|
125
125
|
type: BooleanConstructor;
|
|
@@ -131,8 +131,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
131
131
|
lifeCycle: {
|
|
132
132
|
type: import("vue").PropType<Partial<{
|
|
133
133
|
onSetup(): void;
|
|
134
|
-
beforeRequest(fieldKey: string, params?: import("
|
|
135
|
-
afterRequest(fieldKey: string, payload?: any): import("
|
|
134
|
+
beforeRequest(fieldKey: string, params?: import("../../..").AnyObject | undefined): void | import("../../..").UndefinedAble<import("../../..").AnyObject>;
|
|
135
|
+
afterRequest(fieldKey: string, payload?: any): import("../../..").AnyObject[];
|
|
136
136
|
}>>;
|
|
137
137
|
};
|
|
138
138
|
requestInstance: {
|
|
@@ -158,7 +158,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
158
158
|
type: import("vue").PropType<FieldItem[]>;
|
|
159
159
|
};
|
|
160
160
|
initialData: {
|
|
161
|
-
type: import("vue").PropType<import("
|
|
161
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
162
162
|
default: () => {};
|
|
163
163
|
};
|
|
164
164
|
fieldVisitor: {
|
|
@@ -247,11 +247,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
247
247
|
default: () => {};
|
|
248
248
|
};
|
|
249
249
|
scope: {
|
|
250
|
-
type: import("vue").PropType<import("
|
|
250
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
251
251
|
default: () => {};
|
|
252
252
|
};
|
|
253
253
|
annotation: {
|
|
254
|
-
type: import("vue").PropType<import("
|
|
254
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
255
255
|
};
|
|
256
256
|
consumer: {
|
|
257
257
|
type: BooleanConstructor;
|
|
@@ -263,8 +263,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
263
263
|
lifeCycle: {
|
|
264
264
|
type: import("vue").PropType<Partial<{
|
|
265
265
|
onSetup(): void;
|
|
266
|
-
beforeRequest(fieldKey: string, params?: import("
|
|
267
|
-
afterRequest(fieldKey: string, payload?: any): import("
|
|
266
|
+
beforeRequest(fieldKey: string, params?: import("../../..").AnyObject | undefined): void | import("../../..").UndefinedAble<import("../../..").AnyObject>;
|
|
267
|
+
afterRequest(fieldKey: string, payload?: any): import("../../..").AnyObject[];
|
|
268
268
|
}>>;
|
|
269
269
|
};
|
|
270
270
|
requestInstance: {
|
|
@@ -300,7 +300,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
300
300
|
changeContextCollector: import("../../../../../es/components/form-render").ContextCollector;
|
|
301
301
|
formUUID: string;
|
|
302
302
|
anchorBarRef: import("vue").Ref<{
|
|
303
|
-
syncBarPosition: import("
|
|
303
|
+
syncBarPosition: import("../../..").Func<any[], any>;
|
|
304
304
|
} | undefined>;
|
|
305
305
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
306
306
|
generateAnchorList: (formModel: import("../../../../../es/components/form-render").Form<any>) => Promise<void>;
|
|
@@ -314,6 +314,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
314
314
|
observeFormGraph: Record<string, import("../../../../../es/components/form-render").GeneralField>;
|
|
315
315
|
setGraph: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
316
316
|
removeGraph: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
317
|
+
lowCodeEventTrigger: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
317
318
|
formModel: import("../../../../../es/components/form-render").Form<{
|
|
318
319
|
[x: string]: any;
|
|
319
320
|
}>;
|
|
@@ -439,7 +440,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
439
440
|
exposeEvent: {
|
|
440
441
|
validate(path?: string): Promise<void>;
|
|
441
442
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
442
|
-
setFormValues(values: import("
|
|
443
|
+
setFormValues(values: import("../../..").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
443
444
|
setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../../es/components/form-render").NonFunctionPropertyNames<{
|
|
444
445
|
match: (pattern: import("@formily/path").Pattern) => boolean;
|
|
445
446
|
validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
|
|
@@ -605,7 +606,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
605
606
|
type: import("vue").PropType<FieldItem[]>;
|
|
606
607
|
};
|
|
607
608
|
initialData: {
|
|
608
|
-
type: import("vue").PropType<import("
|
|
609
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
609
610
|
default: () => {};
|
|
610
611
|
};
|
|
611
612
|
fieldVisitor: {
|
|
@@ -694,11 +695,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
694
695
|
default: () => {};
|
|
695
696
|
};
|
|
696
697
|
scope: {
|
|
697
|
-
type: import("vue").PropType<import("
|
|
698
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
698
699
|
default: () => {};
|
|
699
700
|
};
|
|
700
701
|
annotation: {
|
|
701
|
-
type: import("vue").PropType<import("
|
|
702
|
+
type: import("vue").PropType<import("../../..").AnyObject>;
|
|
702
703
|
};
|
|
703
704
|
consumer: {
|
|
704
705
|
type: BooleanConstructor;
|
|
@@ -710,8 +711,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
710
711
|
lifeCycle: {
|
|
711
712
|
type: import("vue").PropType<Partial<{
|
|
712
713
|
onSetup(): void;
|
|
713
|
-
beforeRequest(fieldKey: string, params?: import("
|
|
714
|
-
afterRequest(fieldKey: string, payload?: any): import("
|
|
714
|
+
beforeRequest(fieldKey: string, params?: import("../../..").AnyObject | undefined): void | import("../../..").UndefinedAble<import("../../..").AnyObject>;
|
|
715
|
+
afterRequest(fieldKey: string, payload?: any): import("../../..").AnyObject[];
|
|
715
716
|
}>>;
|
|
716
717
|
};
|
|
717
718
|
requestInstance: {
|
|
@@ -740,9 +741,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
740
741
|
maxHeight: string | number;
|
|
741
742
|
column: number;
|
|
742
743
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
743
|
-
initialData: import("
|
|
744
|
+
initialData: import("../../..").AnyObject;
|
|
744
745
|
parallelism: number;
|
|
745
|
-
scope: import("
|
|
746
|
+
scope: import("../../..").AnyObject;
|
|
746
747
|
consumer: boolean;
|
|
747
748
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
748
749
|
linebarAutoHidden: boolean;
|
|
@@ -129,6 +129,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
remark?: string | undefined;
|
|
130
130
|
free_entry?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
131
131
|
initialize_high?: number | undefined;
|
|
132
|
+
bindEventSetting?: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
event_type: import("../../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
135
|
+
event_field?: string | undefined;
|
|
136
|
+
params?: {
|
|
137
|
+
p_value?: string | undefined;
|
|
138
|
+
p_name: string;
|
|
139
|
+
p_select: import("../../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
results?: {
|
|
142
|
+
p_value: string;
|
|
143
|
+
p_name: string;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
}[] | undefined;
|
|
132
146
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
133
147
|
content?: string | import("../../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../../es/components/form-render").FormRenderer> | undefined;
|
|
134
148
|
lazyRequest?: boolean | undefined;
|
|
@@ -1838,6 +1852,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1838
1852
|
remark?: string | undefined;
|
|
1839
1853
|
free_entry?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
1840
1854
|
initialize_high?: number | undefined;
|
|
1855
|
+
bindEventSetting?: {
|
|
1856
|
+
[x: string]: unknown;
|
|
1857
|
+
event_type: import("../../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
1858
|
+
event_field?: string | undefined;
|
|
1859
|
+
params?: {
|
|
1860
|
+
p_value?: string | undefined;
|
|
1861
|
+
p_name: string;
|
|
1862
|
+
p_select: import("../../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
1863
|
+
}[] | undefined;
|
|
1864
|
+
results?: {
|
|
1865
|
+
p_value: string;
|
|
1866
|
+
p_name: string;
|
|
1867
|
+
}[] | undefined;
|
|
1868
|
+
}[] | undefined;
|
|
1841
1869
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
1842
1870
|
content?: string | import("../../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../../es/components/form-render").FormRenderer> | undefined;
|
|
1843
1871
|
lazyRequest?: boolean | undefined;
|
|
@@ -3519,6 +3547,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3519
3547
|
remark?: string | undefined;
|
|
3520
3548
|
free_entry?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
3521
3549
|
initialize_high?: number | undefined;
|
|
3550
|
+
bindEventSetting?: {
|
|
3551
|
+
[x: string]: unknown;
|
|
3552
|
+
event_type: import("../../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
|
|
3553
|
+
event_field?: string | undefined;
|
|
3554
|
+
params?: {
|
|
3555
|
+
p_value?: string | undefined;
|
|
3556
|
+
p_name: string;
|
|
3557
|
+
p_select: import("../../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
|
|
3558
|
+
}[] | undefined;
|
|
3559
|
+
results?: {
|
|
3560
|
+
p_value: string;
|
|
3561
|
+
p_name: string;
|
|
3562
|
+
}[] | undefined;
|
|
3563
|
+
}[] | undefined;
|
|
3522
3564
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
3523
3565
|
content?: string | import("../../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../../es/components/form-render").FormRenderer> | undefined;
|
|
3524
3566
|
lazyRequest?: boolean | undefined;
|
|
@@ -5398,6 +5440,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5398
5440
|
observeFormGraph: Record<string, import("../../../../../es/components/form-render").GeneralField>;
|
|
5399
5441
|
setGraph: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
5400
5442
|
removeGraph: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
5443
|
+
lowCodeEventTrigger: (field: import("../../../../../es/components/form-render").GeneralField) => void;
|
|
5401
5444
|
formModel: import("../../../../../es/components/form-render").Form<{
|
|
5402
5445
|
[x: string]: any;
|
|
5403
5446
|
}>;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
23
|
}>> & {}>>;
|
|
24
|
-
currentActiveEditField: import("vue").Ref<import("
|
|
24
|
+
currentActiveEditField: import("vue").Ref<import("../../../..").UndefinedAble<FormConfigItem>>;
|
|
25
25
|
active: () => void;
|
|
26
26
|
headerClassList: import("vue").ComputedRef<(string | {
|
|
27
27
|
'is-active': boolean;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: boolean;
|
|
38
38
|
};
|
|
39
39
|
}>> & {}>>;
|
|
40
|
-
currentActiveEditField: import("vue").Ref<import("
|
|
40
|
+
currentActiveEditField: import("vue").Ref<import("../../../..").UndefinedAble<FormConfigItem>>;
|
|
41
41
|
setActiveField: () => void;
|
|
42
42
|
ellipsisClassList: import("vue").ComputedRef<(string | {
|
|
43
43
|
'is-required': boolean | undefined;
|
|
@@ -301,6 +301,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
301
301
|
observeFormGraph: Record<string, import("@formily/core/esm/types").GeneralField>;
|
|
302
302
|
setGraph: (field: import("@formily/core/esm/types").GeneralField) => void;
|
|
303
303
|
removeGraph: (field: import("@formily/core/esm/types").GeneralField) => void;
|
|
304
|
+
lowCodeEventTrigger: (field: import("@formily/core/esm/types").GeneralField) => void;
|
|
304
305
|
formModel: import("@formily/core/esm/models/Form").Form<{
|
|
305
306
|
[x: string]: any;
|
|
306
307
|
}>;
|
|
@@ -295,6 +295,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
295
|
observeFormGraph: Record<string, import("@formily/core").GeneralField>;
|
|
296
296
|
setGraph: (field: import("@formily/core").GeneralField) => void;
|
|
297
297
|
removeGraph: (field: import("@formily/core").GeneralField) => void;
|
|
298
|
+
lowCodeEventTrigger: (field: import("@formily/core").GeneralField) => void;
|
|
298
299
|
formModel: import("@formily/core").Form<{
|
|
299
300
|
[x: string]: any;
|
|
300
301
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as p,normalizeStyle as d,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as j,createCommentVNode as g,createElementVNode as
|
|
1
|
+
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,normalizeClass as p,normalizeStyle as d,withCtx as u,createElementBlock as c,createVNode as f,isRef as h,Fragment as y,renderList as j,createCommentVNode as g,createElementVNode as v,withKeys as b,withModifiers as k,toDisplayString as F,renderSlot as C}from"vue";import{useTheme as x}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as H,cloneDeep as S}from"lodash-es";import{createForm as A,onFieldValueChange as L,onFieldMount as R,onFieldUnmount as _,onFieldReact as O,onFormMount as w}from"@formily/core";import{FormProvider as B,FormConsumer as V}from"@formily/vue";import{NForm as I,NTabs as N,NTabPane as D,NConfigProvider as q}from"naive-ui";import{InjectionFormGraph as T}from"./constants/index.js";import{useAutoHidden as U}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as W}from"./hooks/useComplexOptions.js";import{useFormDomEvent as E,useFormExposeEvent as G}from"./hooks/useFormEvent.js";import{useFormGraph as K}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as M}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as P}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as J}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as $}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as z}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as Q}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as X}from"./hooks/useFormValidator.js";import{useAnchor as Y}from"./hooks/useAnchor.js";import{useFormContext as Z}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import ee from"../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as oe}from"./utils/schema.js";const te={key:0,style:{height:"54px"}},re={style:{"white-space":"pre"}};var se=ee(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean},bordered:{type:Boolean,default:!0}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:ee,emit:se}){const ae=e,ie=x(),{nuiThemeOverrides:le}=$();X();const ne=o(),me=t((()=>H(ae.maxHeight)?ae.maxHeight+"px":ae.maxHeight)),{SchemaField:pe,businessCollector:de,formItemDepsCollector:ue,changeContextCollector:ce,formUUID:fe}=Z(ae,se),{anchorBarRef:he,currentAnchor:ye,generateAnchorList:je,updateAnchorList:ge,anchorIdList:ve,onScroll:be}=Y(ae,se,ne,ue);M(ae).callLifeCycle("onSetup");const{trigger:ke}=U(),{observeFormGraph:Fe,setGraph:Ce,removeGraph:xe}=K();r(T,Fe);const{lowCodeEventTrigger:He}=P(),Se=A({initialValues:ae.initialData,effects(e){L("*",(o=>{const t=o.props.name.toString();de.trigger(e,t),ue.trigger(t),se("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:ce.getContext(t,o.value)}),He(o),Ae(t,o.value)})),R("*",Ce),_("*",xe),ae.linebarAutoHidden&&(O("*",ke),w((e=>e.query("*").forEach(ke)))),ae.anchor&&(O("*",ge),w(je))}}),{lowCodeReactionsHandler:Ae,triggerAllReactionsHandler:Le}=J(t((()=>ae.lowCodeReactions)),Se);s(Le);const{schemaAdaptor:Re}=z(de);let _e=ae.fieldList||[];const Oe=t((()=>ae.schema?ae.schema:ae.fieldList?(_e=Q().traverse(S(ae.fieldList),ae.fieldVisitor),oe(Re(_e))):oe({}))),{onKeydown:we}=E({formModel:Se,formRenderRef:ne,props:ae}),{clearSpan:Be}=W();a((()=>Be(fe)));const Ve=G({formModel:Se,formRenderRef:ne,formItemDepsCollector:ue,getFieldList:()=>_e,formUUID:fe});return ee({formModel:Se,validate:(e="*")=>Ve.validate(e),getFormValues:(e=!0)=>Ve.getFormValues(e),async setFormValues(e,o=!0,t=!1,r=!0){t&&(de.triggerLock=!0),Ve.setFormValues(e,o,r),await i(),de.triggerLock=!1},setFieldState(e,o){Ve.setFieldState(e,o)},resetFields(e="*"){Ve.resetFields(e)},queryWidget:async e=>Ve.queryWidget(e),getFieldList:()=>_e,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(I),{class:p(["form-render",{"form-render--no-border":!e.bordered}]),"require-mark-placement":"left",style:d(m(ie))},{default:u((()=>[e.anchor?(l(),c("section",te,[f(m(N),{value:m(ye),"onUpdate:value":t[0]||(t[0]=e=>h(ye)?ye.value=e:null),type:"line",ref_key:"anchorBarRef",ref:he},{default:u((()=>[(l(!0),c(y,null,j(m(ve),(e=>(l(),n(m(D),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):g("v-if",!0),f(m(q),{"theme-overrides":m(le)},{default:u((()=>[v("section",{class:"form-render__wrapper",style:d({"--column":e.column,"--form-height":m(me)}),ref_key:"formRenderRef",ref:ne,onScroll:t[1]||(t[1]=(...e)=>m(be)&&m(be)(...e)),onKeydownCapture:t[2]||(t[2]=b(k(((...e)=>m(we)&&m(we)(...e)),["prevent"]),["enter"]))},[f(m(B),{form:m(Se)},{default:u((()=>[f(m(pe),{schema:m(Oe)},null,8,["schema"]),e.consumer?(l(),n(m(V),{key:0},{default:u((({form:e})=>[v("div",re,F(JSON.stringify(e.values,null,2)),1)])),_:1})):g("v-if",!0),C(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},8,["class","style"]))}}),[["__file","FormRender.vue"]]);export{se as default};
|
|
@@ -299,6 +299,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
299
299
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
300
300
|
setGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
301
301
|
removeGraph: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
302
|
+
lowCodeEventTrigger: (field: import("../../../../es/components/form-render").GeneralField) => void;
|
|
302
303
|
formModel: import("../../../../es/components/form-render").Form<{
|
|
303
304
|
[x: string]: any;
|
|
304
305
|
}>;
|
|
@@ -3,7 +3,7 @@ export declare class ContextCollector {
|
|
|
3
3
|
private readonly contextMap;
|
|
4
4
|
setContext(key: string, value: (value: unknown) => FormChangeContext): void;
|
|
5
5
|
getContext(key: string, value: unknown): Partial<{
|
|
6
|
-
currentOption: import("
|
|
6
|
+
currentOption: import("../../..").AnyObject;
|
|
7
7
|
}> | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare function useChangeContext(): {
|