cnhis-design-vue 3.1.42-release.1 → 3.1.42-release.2
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/config-provider/src/ConfigProvider.js +1 -1
- package/es/components/config-provider/src/interface.d.ts +4 -4
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/field-set/index.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
- package/es/components/form-render/index.d.ts +12 -12
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/iho-table/index.d.ts +1523 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1523 -0
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +28 -28
- package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.js +1 -1
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -12
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/{mixins → hooks}/index.d.ts +1 -0
- package/es/shared/{mixins → hooks}/index.js +1 -1
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- 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/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/shared/{mixins → hooks}/useDateTime.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useDateTime.js +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
|
@@ -925,7 +925,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
925
925
|
NUpload: any;
|
|
926
926
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
927
927
|
NP: import("vue").DefineComponent<{
|
|
928
|
-
depth: PropType<2 | 1 |
|
|
928
|
+
depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
929
929
|
theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
930
930
|
aTextColor: string;
|
|
931
931
|
blockquoteTextColor: string;
|
|
@@ -1136,7 +1136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1136
1136
|
themeClass: import("vue").Ref<string> | undefined;
|
|
1137
1137
|
onRender: (() => void) | undefined;
|
|
1138
1138
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1139
|
-
depth: PropType<2 | 1 |
|
|
1139
|
+
depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1140
1140
|
theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
1141
1141
|
aTextColor: string;
|
|
1142
1142
|
blockquoteTextColor: string;
|
|
@@ -1347,7 +1347,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1347
1347
|
readonly strong: BooleanConstructor;
|
|
1348
1348
|
readonly italic: BooleanConstructor;
|
|
1349
1349
|
readonly underline: BooleanConstructor;
|
|
1350
|
-
readonly depth: PropType<2 | 1 |
|
|
1350
|
+
readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1351
1351
|
readonly tag: StringConstructor;
|
|
1352
1352
|
readonly as: {
|
|
1353
1353
|
readonly type: StringConstructor;
|
|
@@ -1577,7 +1577,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1577
1577
|
readonly strong: BooleanConstructor;
|
|
1578
1578
|
readonly italic: BooleanConstructor;
|
|
1579
1579
|
readonly underline: BooleanConstructor;
|
|
1580
|
-
readonly depth: PropType<2 | 1 |
|
|
1580
|
+
readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1581
1581
|
readonly tag: StringConstructor;
|
|
1582
1582
|
readonly as: {
|
|
1583
1583
|
readonly type: StringConstructor;
|
|
@@ -363,7 +363,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
363
363
|
NUpload: any;
|
|
364
364
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
365
365
|
NP: import("vue").DefineComponent<{
|
|
366
|
-
depth: import("vue").PropType<2 | 1 |
|
|
366
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
367
367
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
368
368
|
aTextColor: string;
|
|
369
369
|
blockquoteTextColor: string;
|
|
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
574
574
|
themeClass: import("vue").Ref<string> | undefined;
|
|
575
575
|
onRender: (() => void) | undefined;
|
|
576
576
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
577
|
-
depth: import("vue").PropType<2 | 1 |
|
|
577
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
578
578
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
579
579
|
aTextColor: string;
|
|
580
580
|
blockquoteTextColor: string;
|
|
@@ -785,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
785
785
|
readonly strong: BooleanConstructor;
|
|
786
786
|
readonly italic: BooleanConstructor;
|
|
787
787
|
readonly underline: BooleanConstructor;
|
|
788
|
-
readonly depth: import("vue").PropType<2 | 1 |
|
|
788
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
789
789
|
readonly tag: StringConstructor;
|
|
790
790
|
readonly as: {
|
|
791
791
|
readonly type: StringConstructor;
|
|
@@ -1015,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1015
1015
|
readonly strong: BooleanConstructor;
|
|
1016
1016
|
readonly italic: BooleanConstructor;
|
|
1017
1017
|
readonly underline: BooleanConstructor;
|
|
1018
|
-
readonly depth: import("vue").PropType<2 | 1 |
|
|
1018
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1019
1019
|
readonly tag: StringConstructor;
|
|
1020
1020
|
readonly as: {
|
|
1021
1021
|
readonly type: StringConstructor;
|
|
@@ -720,7 +720,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
720
720
|
NUpload: any;
|
|
721
721
|
NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
722
722
|
NP: import("vue").DefineComponent<{
|
|
723
|
-
depth: import("vue").PropType<2 | 1 |
|
|
723
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
724
724
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
725
725
|
aTextColor: string;
|
|
726
726
|
blockquoteTextColor: string;
|
|
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
931
931
|
themeClass: import("vue").Ref<string> | undefined;
|
|
932
932
|
onRender: (() => void) | undefined;
|
|
933
933
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
934
|
-
depth: import("vue").PropType<2 | 1 |
|
|
934
|
+
depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
935
935
|
theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
|
|
936
936
|
aTextColor: string;
|
|
937
937
|
blockquoteTextColor: string;
|
|
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1142
|
readonly strong: BooleanConstructor;
|
|
1143
1143
|
readonly italic: BooleanConstructor;
|
|
1144
1144
|
readonly underline: BooleanConstructor;
|
|
1145
|
-
readonly depth: import("vue").PropType<2 | 1 |
|
|
1145
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1146
1146
|
readonly tag: StringConstructor;
|
|
1147
1147
|
readonly as: {
|
|
1148
1148
|
readonly type: StringConstructor;
|
|
@@ -1372,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1372
1372
|
readonly strong: BooleanConstructor;
|
|
1373
1373
|
readonly italic: BooleanConstructor;
|
|
1374
1374
|
readonly underline: BooleanConstructor;
|
|
1375
|
-
readonly depth: import("vue").PropType<2 | 1 |
|
|
1375
|
+
readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
|
|
1376
1376
|
readonly tag: StringConstructor;
|
|
1377
1377
|
readonly as: {
|
|
1378
1378
|
readonly type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(
|
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n});if(!h)return!1;const c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o});if(!u)return!1;const m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","
|
|
1
|
+
import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
|
|
@@ -3,12 +3,12 @@ interface IhoTableStyle {
|
|
|
3
3
|
borderColor: string;
|
|
4
4
|
}
|
|
5
5
|
interface KeyboardStyle {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
primaryColorHover: string;
|
|
7
|
+
primaryColorPressed: string;
|
|
8
8
|
}
|
|
9
9
|
interface StepsWheelStyle {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
primaryColor: string;
|
|
11
|
+
successColor: string;
|
|
12
12
|
}
|
|
13
13
|
export declare type CComponentThemeOverrides = Partial<{
|
|
14
14
|
IhoTable: IhoTableStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as r,ref as t,computed as
|
|
1
|
+
import{defineComponent as e,useAttrs as r,ref as t,computed as o,openBlock as s,createBlock as a,unref as i,mergeProps as m,createSlots as u,renderList as y,withCtx as f,renderSlot as n}from"vue";import{NDatePicker as d}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as l}from"../../../shared/hooks/useDateTime.js";import p from"../../../_virtual/plugin-vue_export-helper.js";var c=p(e({__name:"DatePicker",setup(e,{expose:p}){const c=r(),_=t(null),h=o((()=>{if(c.format)return c.format;const e=c.type||"";return["datetime","datetimerange"].includes(e)?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),{focus:k,blur:v}=l(_,h);return p({$datePicker:_,focus:k,blur:v}),(e,r)=>(s(),a(i(d),m({ref_key:"datePickerRef",ref:_},e.$attrs),u({_:2},[y(e.$slots,((r,t)=>({name:t,fn:f((()=>[n(e.$slots,t)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{c as default};
|
|
@@ -30,7 +30,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
30
30
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>>;
|
|
33
|
-
emits: (event: "
|
|
33
|
+
emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
|
|
34
34
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
35
35
|
canvasRef: any;
|
|
36
36
|
canvas: import("vue").Ref<any>;
|
|
@@ -182,7 +182,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
182
182
|
show: boolean;
|
|
183
183
|
list: unknown[];
|
|
184
184
|
}>;
|
|
185
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
185
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
186
|
type: {
|
|
187
187
|
type: import("vue").PropType<import("./src/interface").IType>;
|
|
188
188
|
default: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
}>>;
|
|
35
|
-
emits: (event: "
|
|
35
|
+
emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
|
|
36
36
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
37
37
|
canvasRef: any;
|
|
38
38
|
canvas: import("vue").Ref<any>;
|
|
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
184
|
show: boolean;
|
|
185
185
|
list: unknown[];
|
|
186
186
|
}>;
|
|
187
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
187
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
188
188
|
type: {
|
|
189
189
|
type: PropType<IType>;
|
|
190
190
|
default: string;
|
|
@@ -41,7 +41,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
41
41
|
label: string;
|
|
42
42
|
value: string;
|
|
43
43
|
}[];
|
|
44
|
-
emit: (event: "
|
|
44
|
+
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
45
45
|
settingView: any;
|
|
46
46
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
47
47
|
fields: {
|
|
@@ -256,7 +256,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
256
256
|
modelValue: unknown[];
|
|
257
257
|
componentData: Record<string, any>;
|
|
258
258
|
}>;
|
|
259
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
259
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
260
|
fields: {
|
|
261
261
|
type: import("vue").PropType<Partial<{
|
|
262
262
|
[key: string]: any;
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
label: string;
|
|
52
52
|
value: string;
|
|
53
53
|
}[];
|
|
54
|
-
emit: (event: "
|
|
54
|
+
emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
|
|
55
55
|
settingView: any;
|
|
56
56
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
57
57
|
fields: {
|
|
@@ -189,7 +189,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
189
|
modelValue: unknown[];
|
|
190
190
|
componentData: Record<string, any>;
|
|
191
191
|
}>;
|
|
192
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
192
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
193
193
|
fields: {
|
|
194
194
|
type: PropType<Partial<{
|
|
195
195
|
[key: string]: any;
|
|
@@ -3788,7 +3788,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3788
3788
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
3789
3789
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
3790
3790
|
}>>;
|
|
3791
|
-
emit: (event: "
|
|
3791
|
+
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
3792
3792
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
3793
3793
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
3794
3794
|
formHeight: import("vue").ComputedRef<string>;
|
|
@@ -3944,32 +3944,32 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3944
3944
|
data: any;
|
|
3945
3945
|
loading: boolean;
|
|
3946
3946
|
required: boolean;
|
|
3947
|
-
hidden: boolean;
|
|
3948
|
-
visible: boolean;
|
|
3949
|
-
content: any;
|
|
3950
|
-
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
3951
|
-
active: boolean;
|
|
3952
|
-
disabled: boolean;
|
|
3953
|
-
display: import("@formily/core").FieldDisplayTypes;
|
|
3954
3947
|
value: string;
|
|
3955
3948
|
readonly index: string | number;
|
|
3949
|
+
disabled: boolean;
|
|
3956
3950
|
onFocus: (...args: any[]) => Promise<void>;
|
|
3957
3951
|
onBlur: (...args: any[]) => Promise<void>;
|
|
3958
3952
|
onInput: (...args: any[]) => Promise<void>;
|
|
3953
|
+
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
3954
|
+
visible: boolean;
|
|
3959
3955
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
3960
3956
|
validator: import("@formily/core").FieldValidator;
|
|
3961
3957
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
3962
3958
|
title: string;
|
|
3963
3959
|
form: import("@formily/core").Form<any>;
|
|
3960
|
+
content: any;
|
|
3964
3961
|
componentProps: Record<string, any>;
|
|
3965
3962
|
decoratorProps: Record<string, any>;
|
|
3963
|
+
display: import("@formily/core").FieldDisplayTypes;
|
|
3966
3964
|
description: string;
|
|
3967
3965
|
readOnly: boolean;
|
|
3968
3966
|
editable: boolean;
|
|
3967
|
+
hidden: boolean;
|
|
3969
3968
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
3970
3969
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
3971
3970
|
validating: boolean;
|
|
3972
3971
|
submitting: boolean;
|
|
3972
|
+
active: boolean;
|
|
3973
3973
|
visited: boolean;
|
|
3974
3974
|
selfModified: boolean;
|
|
3975
3975
|
modified: boolean;
|
|
@@ -4056,7 +4056,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4056
4056
|
};
|
|
4057
4057
|
readonly disabled: BooleanConstructor;
|
|
4058
4058
|
readonly displayDirective: {
|
|
4059
|
-
readonly type: import("vue").PropType<"
|
|
4059
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
4060
4060
|
readonly default: "if";
|
|
4061
4061
|
};
|
|
4062
4062
|
readonly closable: {
|
|
@@ -4081,7 +4081,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4081
4081
|
};
|
|
4082
4082
|
readonly disabled: BooleanConstructor;
|
|
4083
4083
|
readonly displayDirective: {
|
|
4084
|
-
readonly type: import("vue").PropType<"
|
|
4084
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
4085
4085
|
readonly default: "if";
|
|
4086
4086
|
};
|
|
4087
4087
|
readonly closable: {
|
|
@@ -4095,10 +4095,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4095
4095
|
}>>, {
|
|
4096
4096
|
readonly disabled: boolean;
|
|
4097
4097
|
readonly closable: boolean | undefined;
|
|
4098
|
-
readonly displayDirective: "
|
|
4098
|
+
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
4099
4099
|
}>;
|
|
4100
4100
|
NTabs: any;
|
|
4101
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
4101
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4102
4102
|
fieldList: {
|
|
4103
4103
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
4104
4104
|
};
|
|
@@ -9706,7 +9706,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9706
9706
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
9707
9707
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
9708
9708
|
}>>;
|
|
9709
|
-
emit: (event: "
|
|
9709
|
+
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
9710
9710
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
9711
9711
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
9712
9712
|
formHeight: import("vue").ComputedRef<string>;
|
|
@@ -9862,32 +9862,32 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9862
9862
|
data: any;
|
|
9863
9863
|
loading: boolean;
|
|
9864
9864
|
required: boolean;
|
|
9865
|
-
hidden: boolean;
|
|
9866
|
-
visible: boolean;
|
|
9867
|
-
content: any;
|
|
9868
|
-
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
9869
|
-
active: boolean;
|
|
9870
|
-
disabled: boolean;
|
|
9871
|
-
display: import("@formily/core").FieldDisplayTypes;
|
|
9872
9865
|
value: string;
|
|
9873
9866
|
readonly index: string | number;
|
|
9867
|
+
disabled: boolean;
|
|
9874
9868
|
onFocus: (...args: any[]) => Promise<void>;
|
|
9875
9869
|
onBlur: (...args: any[]) => Promise<void>;
|
|
9876
9870
|
onInput: (...args: any[]) => Promise<void>;
|
|
9871
|
+
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
9872
|
+
visible: boolean;
|
|
9877
9873
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
9878
9874
|
validator: import("@formily/core").FieldValidator;
|
|
9879
9875
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
9880
9876
|
title: string;
|
|
9881
9877
|
form: import("@formily/core").Form<any>;
|
|
9878
|
+
content: any;
|
|
9882
9879
|
componentProps: Record<string, any>;
|
|
9883
9880
|
decoratorProps: Record<string, any>;
|
|
9881
|
+
display: import("@formily/core").FieldDisplayTypes;
|
|
9884
9882
|
description: string;
|
|
9885
9883
|
readOnly: boolean;
|
|
9886
9884
|
editable: boolean;
|
|
9885
|
+
hidden: boolean;
|
|
9887
9886
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
9888
9887
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
9889
9888
|
validating: boolean;
|
|
9890
9889
|
submitting: boolean;
|
|
9890
|
+
active: boolean;
|
|
9891
9891
|
visited: boolean;
|
|
9892
9892
|
selfModified: boolean;
|
|
9893
9893
|
modified: boolean;
|
|
@@ -9974,7 +9974,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9974
9974
|
};
|
|
9975
9975
|
readonly disabled: BooleanConstructor;
|
|
9976
9976
|
readonly displayDirective: {
|
|
9977
|
-
readonly type: import("vue").PropType<"
|
|
9977
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
9978
9978
|
readonly default: "if";
|
|
9979
9979
|
};
|
|
9980
9980
|
readonly closable: {
|
|
@@ -9999,7 +9999,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9999
9999
|
};
|
|
10000
10000
|
readonly disabled: BooleanConstructor;
|
|
10001
10001
|
readonly displayDirective: {
|
|
10002
|
-
readonly type: import("vue").PropType<"
|
|
10002
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
10003
10003
|
readonly default: "if";
|
|
10004
10004
|
};
|
|
10005
10005
|
readonly closable: {
|
|
@@ -10013,10 +10013,10 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
10013
10013
|
}>>, {
|
|
10014
10014
|
readonly disabled: boolean;
|
|
10015
10015
|
readonly closable: boolean | undefined;
|
|
10016
|
-
readonly displayDirective: "
|
|
10016
|
+
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
10017
10017
|
}>;
|
|
10018
10018
|
NTabs: any;
|
|
10019
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
10019
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10020
10020
|
fieldList: {
|
|
10021
10021
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
|
10022
10022
|
};
|
|
@@ -3790,7 +3790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3790
3790
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
3791
3791
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
3792
3792
|
}>>;
|
|
3793
|
-
emit: (event: "
|
|
3793
|
+
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
3794
3794
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
3795
3795
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
3796
3796
|
formHeight: import("vue").ComputedRef<string>;
|
|
@@ -3946,32 +3946,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3946
3946
|
data: any;
|
|
3947
3947
|
loading: boolean;
|
|
3948
3948
|
required: boolean;
|
|
3949
|
-
hidden: boolean;
|
|
3950
|
-
visible: boolean;
|
|
3951
|
-
content: any;
|
|
3952
|
-
reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
3953
|
-
active: boolean;
|
|
3954
|
-
disabled: boolean;
|
|
3955
|
-
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
3956
3949
|
value: string;
|
|
3957
3950
|
readonly index: string | number;
|
|
3951
|
+
disabled: boolean;
|
|
3958
3952
|
onFocus: (...args: any[]) => Promise<void>;
|
|
3959
3953
|
onBlur: (...args: any[]) => Promise<void>;
|
|
3960
3954
|
onInput: (...args: any[]) => Promise<void>;
|
|
3955
|
+
reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
3956
|
+
visible: boolean;
|
|
3961
3957
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
3962
3958
|
validator: import("../../../../es/components/form-render").FieldValidator;
|
|
3963
3959
|
pattern: import("../../../../es/components/form-render").FieldPatternTypes;
|
|
3964
3960
|
title: string;
|
|
3965
3961
|
form: import("../../../../es/components/form-render").Form<any>;
|
|
3962
|
+
content: any;
|
|
3966
3963
|
componentProps: Record<string, any>;
|
|
3967
3964
|
decoratorProps: Record<string, any>;
|
|
3965
|
+
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
3968
3966
|
description: string;
|
|
3969
3967
|
readOnly: boolean;
|
|
3970
3968
|
editable: boolean;
|
|
3969
|
+
hidden: boolean;
|
|
3971
3970
|
component: import("../../../../es/components/form-render").FieldComponent<any, any>;
|
|
3972
3971
|
decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
3973
3972
|
validating: boolean;
|
|
3974
3973
|
submitting: boolean;
|
|
3974
|
+
active: boolean;
|
|
3975
3975
|
visited: boolean;
|
|
3976
3976
|
selfModified: boolean;
|
|
3977
3977
|
modified: boolean;
|
|
@@ -4058,7 +4058,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4058
4058
|
};
|
|
4059
4059
|
readonly disabled: BooleanConstructor;
|
|
4060
4060
|
readonly displayDirective: {
|
|
4061
|
-
readonly type: PropType<"
|
|
4061
|
+
readonly type: PropType<"if" | "show" | "show:lazy">;
|
|
4062
4062
|
readonly default: "if";
|
|
4063
4063
|
};
|
|
4064
4064
|
readonly closable: {
|
|
@@ -4083,7 +4083,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4083
4083
|
};
|
|
4084
4084
|
readonly disabled: BooleanConstructor;
|
|
4085
4085
|
readonly displayDirective: {
|
|
4086
|
-
readonly type: PropType<"
|
|
4086
|
+
readonly type: PropType<"if" | "show" | "show:lazy">;
|
|
4087
4087
|
readonly default: "if";
|
|
4088
4088
|
};
|
|
4089
4089
|
readonly closable: {
|
|
@@ -4097,10 +4097,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4097
4097
|
}>>, {
|
|
4098
4098
|
readonly disabled: boolean;
|
|
4099
4099
|
readonly closable: boolean | undefined;
|
|
4100
|
-
readonly displayDirective: "
|
|
4100
|
+
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
4101
4101
|
}>;
|
|
4102
4102
|
NTabs: any;
|
|
4103
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
4103
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4104
4104
|
fieldList: {
|
|
4105
4105
|
type: PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
4106
4106
|
};
|
|
@@ -9708,7 +9708,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9708
9708
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
9709
9709
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
9710
9710
|
}>>;
|
|
9711
|
-
emit: (event: "
|
|
9711
|
+
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
9712
9712
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
9713
9713
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
9714
9714
|
formHeight: import("vue").ComputedRef<string>;
|
|
@@ -9864,32 +9864,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9864
9864
|
data: any;
|
|
9865
9865
|
loading: boolean;
|
|
9866
9866
|
required: boolean;
|
|
9867
|
-
hidden: boolean;
|
|
9868
|
-
visible: boolean;
|
|
9869
|
-
content: any;
|
|
9870
|
-
reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
9871
|
-
active: boolean;
|
|
9872
|
-
disabled: boolean;
|
|
9873
|
-
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
9874
9867
|
value: string;
|
|
9875
9868
|
readonly index: string | number;
|
|
9869
|
+
disabled: boolean;
|
|
9876
9870
|
onFocus: (...args: any[]) => Promise<void>;
|
|
9877
9871
|
onBlur: (...args: any[]) => Promise<void>;
|
|
9878
9872
|
onInput: (...args: any[]) => Promise<void>;
|
|
9873
|
+
reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
9874
|
+
visible: boolean;
|
|
9879
9875
|
submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
|
|
9880
9876
|
validator: import("../../../../es/components/form-render").FieldValidator;
|
|
9881
9877
|
pattern: import("../../../../es/components/form-render").FieldPatternTypes;
|
|
9882
9878
|
title: string;
|
|
9883
9879
|
form: import("../../../../es/components/form-render").Form<any>;
|
|
9880
|
+
content: any;
|
|
9884
9881
|
componentProps: Record<string, any>;
|
|
9885
9882
|
decoratorProps: Record<string, any>;
|
|
9883
|
+
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
9886
9884
|
description: string;
|
|
9887
9885
|
readOnly: boolean;
|
|
9888
9886
|
editable: boolean;
|
|
9887
|
+
hidden: boolean;
|
|
9889
9888
|
component: import("../../../../es/components/form-render").FieldComponent<any, any>;
|
|
9890
9889
|
decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
9891
9890
|
validating: boolean;
|
|
9892
9891
|
submitting: boolean;
|
|
9892
|
+
active: boolean;
|
|
9893
9893
|
visited: boolean;
|
|
9894
9894
|
selfModified: boolean;
|
|
9895
9895
|
modified: boolean;
|
|
@@ -9976,7 +9976,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9976
9976
|
};
|
|
9977
9977
|
readonly disabled: BooleanConstructor;
|
|
9978
9978
|
readonly displayDirective: {
|
|
9979
|
-
readonly type: PropType<"
|
|
9979
|
+
readonly type: PropType<"if" | "show" | "show:lazy">;
|
|
9980
9980
|
readonly default: "if";
|
|
9981
9981
|
};
|
|
9982
9982
|
readonly closable: {
|
|
@@ -10001,7 +10001,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10001
10001
|
};
|
|
10002
10002
|
readonly disabled: BooleanConstructor;
|
|
10003
10003
|
readonly displayDirective: {
|
|
10004
|
-
readonly type: PropType<"
|
|
10004
|
+
readonly type: PropType<"if" | "show" | "show:lazy">;
|
|
10005
10005
|
readonly default: "if";
|
|
10006
10006
|
};
|
|
10007
10007
|
readonly closable: {
|
|
@@ -10015,10 +10015,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10015
10015
|
}>>, {
|
|
10016
10016
|
readonly disabled: boolean;
|
|
10017
10017
|
readonly closable: boolean | undefined;
|
|
10018
|
-
readonly displayDirective: "
|
|
10018
|
+
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
10019
10019
|
}>;
|
|
10020
10020
|
NTabs: any;
|
|
10021
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
10021
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10022
10022
|
fieldList: {
|
|
10023
10023
|
type: PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
10024
10024
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,provide as r,toRaw as t,openBlock as i,createElementBlock as a,normalizeStyle as m,unref as
|
|
1
|
+
import{defineComponent as e,ref as o,provide as r,toRaw as t,openBlock as i,createElementBlock as a,normalizeStyle as m,unref as s,createElementVNode as n,createVNode as f,mergeProps as l,withCtx as u,createTextVNode as c}from"vue";import{useTheme as p}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import{cloneDeep as d,isFunction as g}from"lodash-es";import{uuidGenerator as v}from"../../../shared/utils/index.js";import _ from"../../../shared/components/VueDraggable/src/vuedraggable.js";import h from"./components/FormConfigCreator.vue.js";import j from"./components/FormConfigDragDisplay.vue.js";import C from"./components/FormConfigEdit.vue.js";import x from"./components/FormConfigMaterialItem.js";import{useDataNormalize as y}from"./hooks/useDataNormalize.js";import{InjectionFieldList as F,InjectionMaterialList as V,InjectionActiveFieldItem as k,FORM_CONFIG_GROUP as b}from"./constants/index.js";import"@vicons/ionicons5";import"naive-ui";import D from"../../../_virtual/plugin-vue_export-helper.js";import"./utils/index.js";import{useSortableConfig as R}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const H=["id"],E={class:"form-config__material"},L=n("header",{class:"form-config__materialHeader"},"物料区",-1),S={class:"form-config__displayWrapper"},I={class:"form-config__displayHeader"},N={class:"form-config__config"},O=n("header",{class:"form-config__configHeader"},"配置区",-1),T={class:"form-config__configContent"};var U=D(e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object}},setup(e,{expose:D}){const U=e,w=v(),z=p(),{getCommonConfig:A}=R(),B=o([]);r(F,B);const M=o([]);function W(e){B.value.some((o=>o.key===e.key))||B.value.push(e)}r(V,M);const q=(e,o)=>g(U.textFormatter)?U.textFormatter(e,o):o,G=o();r(k,G);const J=o(),{transform:K,inverseTransform:P}=y(U);return D({loadData({fieldList:e}){let o=[],r=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?r.push(e):o.push(e)}(d(t(e))))),B.value=K(o),M.value=r,G.value=void 0},validate(){var e;return null==(e=J.value)?void 0:e.validate()},getData:()=>({fieldList:P(d(t(B.value))),materialList:P(d(t(M.value)))})}),(o,r)=>(i(),a("section",{class:"form-config",style:m({"--max-height":e.maxHeight,...s(z)}),id:s(w)},[n("section",E,[L,f(s(_),l(s(A)(),{class:"form-config__materialContent",modelValue:M.value,"onUpdate:modelValue":r[0]||(r[0]=e=>M.value=e)}),{item:u((({element:e})=>[f(s(x),{"form-config-item":e,"text-formatter":q},null,8,["form-config-item"])])),_:1},16,["modelValue"])]),n("section",S,[n("header",I,[c(" 布局区 "),f(h,{onSubmit:W})]),f(j,{class:"form-config__displayContent",group:s(b),"text-formatter":q,modelValue:B.value,"onUpdate:modelValue":r[1]||(r[1]=e=>B.value=e)},null,8,["group","modelValue"])]),n("section",N,[O,n("section",T,[f(C,{ref_key:"formConfigEditRef",ref:J,uuid:s(w),"form-render-ref":e.formRenderRef},null,8,["uuid","form-render-ref"])])])],12,H))}}),[["__file","FormConfig.vue"]]);export{U as default};
|