cnhis-design-vue 3.2.9-beta.1 → 3.2.9-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/types/index.d.ts +8 -7
- package/es/components/base-search/index.d.ts +6 -2
- package/es/components/base-search/src/index.vue.d.ts +6 -2
- package/es/components/button-print/index.d.ts +7 -45
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -45
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +6 -35
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +1 -5
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +4 -3
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +3 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +2 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +2 -0
- package/es/components/classification/src/index.vue.d.ts +3 -1
- package/es/components/expand-field/index.d.ts +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +15 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +14 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +42 -19
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +14 -0
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/iho-chat/index.d.ts +4 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +4 -0
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/api/index.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +1 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +6 -2
- package/es/components/quick-search/src/index.vue.d.ts +6 -2
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -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/SelectTree.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +49 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +65 -0
- 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/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 +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as t,ref as n,watch as l,createVNode as s,createTextVNode as a,mergeProps as o,isVNode as r}from"vue";import{NAvatar as i,NSpin as u,NButton as c,NSpace as d}from"naive-ui";import{InjectionAIChat as p}from"../types/index.js";import m from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as v,isFunction as f}from"lodash";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{useScrollLoading as g}from"../../../../shared/hooks/useScrollLoading.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var b=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:b,emit:y}){const{userAvatar:k,queryData:C,state:S,queryRecord:j,defaultShortcutList:x,hideInput:z=!1}=t(p),w=n(null),
|
1
|
+
import{defineComponent as e,inject as t,ref as n,watch as l,createVNode as s,createTextVNode as a,mergeProps as o,isVNode as r}from"vue";import{NAvatar as i,NSpin as u,NButton as c,NSpace as d}from"naive-ui";import{InjectionAIChat as p}from"../types/index.js";import m from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as v,isFunction as f}from"lodash";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{useScrollLoading as g}from"../../../../shared/hooks/useScrollLoading.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var b=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:b,emit:y}){const{userAvatar:k,queryData:C,state:S,queryRecord:j,defaultShortcutList:x,hideInput:z=!1}=t(p),w=n(null),E=n([]),M=n(!1),T={page:0,hasMore:!0};async function A(e=!1){if(!T.hasMore)return;T.page++,1==T.page&&(E.value=[]);const{records:t,rows:n}=await j.value({page:T.page});v(n)&&E.value.length<=+t&&(E.value=T.page>1?[...E.value,...n]:n,E.value.length>=+t&&(e&&(M.value=!0),T.hasMore=!1,console.log("没有更多消息了")))}function _(e,t){const{contents:n=[],buttonType:l=""}=e,r=n[t].content.replace(/\\n|\n|\r\n/g,"<br>").split("<br>").filter((e=>!!e)).map(((e,t,n)=>[e,t===n.length-1?null:s("br",null,null)])),i=l&&0===t?[s("br",null,null),s(c,o({style:"margin-top: 5px",secondary:!0,class:"gradient",disabled:e.disabled},e.link?{tag:"a",href:e.link,target:"_blank"}:{},{onClick:()=>function(e){E.value.forEach((e=>e.buttonType&&(e.disabled=!0))),e.link||(S.beingSent=!0,S.sendContent="确定")}(e)}),{default:()=>[a("确定")]})]:null;return[r,i]}function q({role:e=""}){return"user"===e}function H(){let e;return s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 default"},[s("h2",null,[a("Hi,我是你的AI助理")]),s("p",null,[a("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),s("br",null,null),a("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),v(x.value)&&x.value.length>0?[s("p",{style:"margin: 5px 0 5px"},[a("你可以试着问我:")]),s(d,{"wrap-item":!1},h(e=x.value.map((e=>s(c,{size:"large",secondary:!0,onClick:()=>S.sendContent=e,disabled:S.beingSent},h(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])}return g(w,(()=>{A()}),z.value?"bottom":"top"),A(!0),l((()=>S.beingSent),(async e=>{if(e){E.value.unshift({contents:[{role:"user",content:S.sendContent}]}),E.value.forEach((e=>e.buttonType&&(e.disabled=!0)));const e=await C.value({content:S.sendContent,contentType:"text"});v(null==e?void 0:e.contents)&&E.value.unshift(e),S.beingSent=!1,S.sendContent=""}})),()=>s("section",{class:"chat-main",ref:w,style:{"flex-direction":z.value?"column":"column-reverse"}},[[S.beingSent?s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 loading"},[s(u,{size:22,stroke:"#4170EE"},null),s("span",null,[a("正在加载中,请稍等...")])])]):null,E.value.map((e=>e.contents.map(((t,n)=>s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:q(t)?k.value:m},null),s("div",{class:["content",q(t)?"fillet-8 mine":"fillet-10"]},[f(t.render)?t.render():_(e,n)])]))))),M.value?H():null]])}});export{b as default};
|
@@ -2,22 +2,23 @@ import { InjectionKey, VNodeChild } from 'vue';
|
|
2
2
|
import { AnyObject } from '../../../../shared/types';
|
3
3
|
export declare const InjectionAIChat: InjectionKey<AnyObject>;
|
4
4
|
export declare const InjectionAIChatEmits: InjectionKey<(event: string, ...args: any[]) => void>;
|
5
|
-
export type
|
5
|
+
export type MessageItem = {
|
6
6
|
role: string;
|
7
7
|
content: string;
|
8
8
|
render?: () => VNodeChild;
|
9
|
-
button?: {
|
10
|
-
content: string;
|
11
|
-
link: string;
|
12
|
-
};
|
13
9
|
[key: string]: any;
|
10
|
+
};
|
11
|
+
export type MessageList = Array<{
|
12
|
+
contents: MessageItem[];
|
13
|
+
msgId: string;
|
14
|
+
buttonType?: string;
|
14
15
|
}>;
|
15
16
|
export type QueryData = (props: {
|
16
17
|
content: string;
|
17
18
|
contentType: string;
|
18
19
|
}) => Promise<Array<{
|
19
|
-
|
20
|
-
|
20
|
+
contents: MessageItem[];
|
21
|
+
buttonType?: string;
|
21
22
|
[key: string]: any;
|
22
23
|
}>>;
|
23
24
|
export type QueryRecord = (props: {
|
@@ -44,6 +44,9 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
44
44
|
widgetType: string | null;
|
45
45
|
originType: string | null;
|
46
46
|
valueList: {
|
47
|
+
name: string;
|
48
|
+
value: any;
|
49
|
+
}[] | {
|
47
50
|
value: any;
|
48
51
|
label: any;
|
49
52
|
}[] | undefined;
|
@@ -58,6 +61,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
58
61
|
linkageFieldKeys: string[];
|
59
62
|
};
|
60
63
|
rangeFilter: boolean | undefined;
|
64
|
+
componentProps: any;
|
61
65
|
unit: any;
|
62
66
|
isAccurateSearchVal: boolean;
|
63
67
|
_extendData: import("..").IExtendConfigurationType;
|
@@ -71,7 +75,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
71
75
|
advanceColWidth: number | null | undefined;
|
72
76
|
accurateSearch: any;
|
73
77
|
}[];
|
74
|
-
transformParams: (paramsList: any[]) =>
|
78
|
+
transformParams: (paramsList: any[]) => any;
|
75
79
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
76
80
|
showSettings: {
|
77
81
|
type: import("vue").PropType<import("..").IsettingsType>;
|
@@ -160,7 +164,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
160
164
|
onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
161
165
|
handleReset: () => void;
|
162
166
|
resetFunc: (arr: import("..").ISearchType[]) => void;
|
163
|
-
getFilterParams: () =>
|
167
|
+
getFilterParams: () => any;
|
164
168
|
setFilterParams: (params?: any) => void;
|
165
169
|
getOriginalConfig: () => import("..").IApiServerType[];
|
166
170
|
onFilterChange: (fn: any) => void;
|
@@ -45,6 +45,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
widgetType: string | null;
|
46
46
|
originType: string | null;
|
47
47
|
valueList: {
|
48
|
+
name: string;
|
49
|
+
value: any;
|
50
|
+
}[] | {
|
48
51
|
value: any;
|
49
52
|
label: any;
|
50
53
|
}[] | undefined;
|
@@ -59,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
59
62
|
linkageFieldKeys: string[];
|
60
63
|
};
|
61
64
|
rangeFilter: boolean | undefined;
|
65
|
+
componentProps: any;
|
62
66
|
unit: any;
|
63
67
|
isAccurateSearchVal: boolean;
|
64
68
|
_extendData: import("../../../components/table-filter/src/types").IExtendConfigurationType;
|
@@ -72,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
72
76
|
advanceColWidth: number | null | undefined;
|
73
77
|
accurateSearch: any;
|
74
78
|
}[];
|
75
|
-
transformParams: (paramsList: any[]) =>
|
79
|
+
transformParams: (paramsList: any[]) => any;
|
76
80
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
77
81
|
showSettings: {
|
78
82
|
type: PropType<IsettingsType>;
|
@@ -161,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
161
165
|
onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
162
166
|
handleReset: () => void;
|
163
167
|
resetFunc: (arr: ISearchType[]) => void;
|
164
|
-
getFilterParams: () =>
|
168
|
+
getFilterParams: () => any;
|
165
169
|
setFilterParams: (params?: any) => void;
|
166
170
|
getOriginalConfig: () => IApiServerType[];
|
167
171
|
onFilterChange: (fn: any) => void;
|
@@ -92,7 +92,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
};
|
93
93
|
printCopies: {
|
94
94
|
type: NumberConstructor;
|
95
|
-
default: number;
|
96
95
|
};
|
97
96
|
printCustomProps: {
|
98
97
|
type: ObjectConstructor;
|
@@ -204,7 +203,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
204
203
|
};
|
205
204
|
printCopies: {
|
206
205
|
type: NumberConstructor;
|
207
|
-
default: number;
|
208
206
|
};
|
209
207
|
printCustomProps: {
|
210
208
|
type: ObjectConstructor;
|
@@ -317,7 +315,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
317
315
|
};
|
318
316
|
printCopies: {
|
319
317
|
type: NumberConstructor;
|
320
|
-
default: number;
|
321
318
|
};
|
322
319
|
resolution: {
|
323
320
|
type: NumberConstructor;
|
@@ -431,7 +428,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
431
428
|
};
|
432
429
|
printCopies: {
|
433
430
|
type: NumberConstructor;
|
434
|
-
default: number;
|
435
431
|
};
|
436
432
|
resolution: {
|
437
433
|
type: NumberConstructor;
|
@@ -452,40 +448,15 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
452
448
|
emit: any;
|
453
449
|
defaultFormatInfo: import("../../shared/types").AnyObject;
|
454
450
|
authorizationKey: import("vue").Ref<string>;
|
455
|
-
state:
|
456
|
-
spinning: boolean;
|
457
|
-
visible: boolean;
|
458
|
-
formatList: never[];
|
459
|
-
templateParams: never[];
|
460
|
-
printParams: never[];
|
461
|
-
originParams: {};
|
462
|
-
currentFormatId: string;
|
463
|
-
identityVerification: {
|
464
|
-
visible: boolean;
|
465
|
-
};
|
466
|
-
isInited: boolean;
|
467
|
-
watchPrintParamsReformatFn: null;
|
468
|
-
spinTimer: null;
|
469
|
-
isClickOuterPrint: boolean;
|
470
|
-
curPrintParamList: never[];
|
471
|
-
ireportExecuteMode: number;
|
472
|
-
};
|
451
|
+
state: any;
|
473
452
|
shortcutFn: any;
|
474
453
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
475
454
|
operations: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
476
|
-
downlistOperation:
|
477
|
-
|
478
|
-
oneClickType: string;
|
479
|
-
twoMouseType: string;
|
480
|
-
};
|
481
|
-
downlistPopover: {
|
482
|
-
oneShow: boolean;
|
483
|
-
isOperation: boolean;
|
484
|
-
isOutSetting: boolean;
|
485
|
-
};
|
455
|
+
downlistOperation: any;
|
456
|
+
downlistPopover: any;
|
486
457
|
innerPrintItems: import("vue").Ref<any[]>;
|
487
458
|
outerPrintItems: import("vue").Ref<any[]>;
|
488
|
-
currentFormatItem: import("vue").ComputedRef<
|
459
|
+
currentFormatItem: import("vue").ComputedRef<any>;
|
489
460
|
formatTitle: import("vue").ComputedRef<any>;
|
490
461
|
getTemplateIdByFormatId: import("vue").ComputedRef<any>;
|
491
462
|
getTemplateCodeByFormatId: import("vue").ComputedRef<any>;
|
@@ -515,7 +486,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
515
486
|
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
516
487
|
handleClickPrintAll: () => void;
|
517
488
|
toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
|
518
|
-
getCurrentLoading: () =>
|
489
|
+
getCurrentLoading: () => any;
|
519
490
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
520
491
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
|
521
492
|
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -545,7 +516,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
545
516
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
546
517
|
reformatPrintParams: () => void;
|
547
518
|
verifiySuccess: (token: string) => void;
|
548
|
-
isPrintDisabled: (outer: any, j: number) =>
|
519
|
+
isPrintDisabled: (outer: any, j: number) => any;
|
549
520
|
directPrint: () => Promise<void>;
|
550
521
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
551
522
|
NDropdown: any;
|
@@ -823,7 +794,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
823
794
|
};
|
824
795
|
printCopies: {
|
825
796
|
type: NumberConstructor;
|
826
|
-
default: number;
|
827
797
|
};
|
828
798
|
resolution: {
|
829
799
|
type: NumberConstructor;
|
@@ -862,7 +832,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
862
832
|
}>;
|
863
833
|
showLoading: boolean;
|
864
834
|
hideButtons: unknown[];
|
865
|
-
printCopies: number;
|
866
835
|
newPrintSetting: Record<string, any>;
|
867
836
|
}> | import("vue").DefineComponent<{
|
868
837
|
printParams: {
|
@@ -955,7 +924,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
955
924
|
};
|
956
925
|
printCopies: {
|
957
926
|
type: NumberConstructor;
|
958
|
-
default: number;
|
959
927
|
};
|
960
928
|
resolution: {
|
961
929
|
type: NumberConstructor;
|
@@ -1066,7 +1034,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1066
1034
|
};
|
1067
1035
|
printCopies: {
|
1068
1036
|
type: NumberConstructor;
|
1069
|
-
default: number;
|
1070
1037
|
};
|
1071
1038
|
resolution: {
|
1072
1039
|
type: NumberConstructor;
|
@@ -1095,7 +1062,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1095
1062
|
isInited: boolean;
|
1096
1063
|
watchPrintParamsReformatFn: null;
|
1097
1064
|
spinTimer: null;
|
1098
|
-
|
1065
|
+
iReportExecuteMode: number;
|
1099
1066
|
};
|
1100
1067
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1101
1068
|
currentFormatItem: import("vue").ComputedRef<{} | undefined>;
|
@@ -1406,7 +1373,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1406
1373
|
};
|
1407
1374
|
printCopies: {
|
1408
1375
|
type: NumberConstructor;
|
1409
|
-
default: number;
|
1410
1376
|
};
|
1411
1377
|
resolution: {
|
1412
1378
|
type: NumberConstructor;
|
@@ -1441,7 +1407,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1441
1407
|
}>;
|
1442
1408
|
showLoading: boolean;
|
1443
1409
|
hideButtons: unknown[];
|
1444
|
-
printCopies: number;
|
1445
1410
|
printCustomProps: Record<string, any>;
|
1446
1411
|
}>>;
|
1447
1412
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1535,7 +1500,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1535
1500
|
};
|
1536
1501
|
printCopies: {
|
1537
1502
|
type: NumberConstructor;
|
1538
|
-
default: number;
|
1539
1503
|
};
|
1540
1504
|
printCustomProps: {
|
1541
1505
|
type: ObjectConstructor;
|
@@ -1654,7 +1618,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1654
1618
|
};
|
1655
1619
|
printCopies: {
|
1656
1620
|
type: NumberConstructor;
|
1657
|
-
default: number;
|
1658
1621
|
};
|
1659
1622
|
printCustomProps: {
|
1660
1623
|
type: ObjectConstructor;
|
@@ -1700,7 +1663,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1700
1663
|
}>;
|
1701
1664
|
showLoading: boolean;
|
1702
1665
|
hideButtons: unknown[];
|
1703
|
-
printCopies: number;
|
1704
1666
|
printCustomProps: Record<string, any>;
|
1705
1667
|
placement: string;
|
1706
1668
|
newPrintSetting: Record<string, any>;
|
@@ -95,7 +95,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
95
95
|
};
|
96
96
|
printCopies: {
|
97
97
|
type: NumberConstructor;
|
98
|
-
default: number;
|
99
98
|
};
|
100
99
|
printCustomProps: {
|
101
100
|
type: ObjectConstructor;
|
@@ -210,7 +209,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
210
209
|
};
|
211
210
|
printCopies: {
|
212
211
|
type: NumberConstructor;
|
213
|
-
default: number;
|
214
212
|
};
|
215
213
|
printCustomProps: {
|
216
214
|
type: ObjectConstructor;
|
@@ -323,7 +321,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
323
321
|
};
|
324
322
|
printCopies: {
|
325
323
|
type: NumberConstructor;
|
326
|
-
default: number;
|
327
324
|
};
|
328
325
|
resolution: {
|
329
326
|
type: NumberConstructor;
|
@@ -437,7 +434,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
437
434
|
};
|
438
435
|
printCopies: {
|
439
436
|
type: NumberConstructor;
|
440
|
-
default: number;
|
441
437
|
};
|
442
438
|
resolution: {
|
443
439
|
type: NumberConstructor;
|
@@ -458,40 +454,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
458
454
|
emit: any;
|
459
455
|
defaultFormatInfo: AnyObject;
|
460
456
|
authorizationKey: import("vue").Ref<string>;
|
461
|
-
state:
|
462
|
-
spinning: boolean;
|
463
|
-
visible: boolean;
|
464
|
-
formatList: never[];
|
465
|
-
templateParams: never[];
|
466
|
-
printParams: never[];
|
467
|
-
originParams: {};
|
468
|
-
currentFormatId: string;
|
469
|
-
identityVerification: {
|
470
|
-
visible: boolean;
|
471
|
-
};
|
472
|
-
isInited: boolean;
|
473
|
-
watchPrintParamsReformatFn: null;
|
474
|
-
spinTimer: null;
|
475
|
-
isClickOuterPrint: boolean;
|
476
|
-
curPrintParamList: never[];
|
477
|
-
ireportExecuteMode: number;
|
478
|
-
};
|
457
|
+
state: any;
|
479
458
|
shortcutFn: any;
|
480
459
|
options: import("vue").Ref<AnyObject[]>;
|
481
460
|
operations: import("vue").Ref<AnyObject[]>;
|
482
|
-
downlistOperation:
|
483
|
-
|
484
|
-
oneClickType: string;
|
485
|
-
twoMouseType: string;
|
486
|
-
};
|
487
|
-
downlistPopover: {
|
488
|
-
oneShow: boolean;
|
489
|
-
isOperation: boolean;
|
490
|
-
isOutSetting: boolean;
|
491
|
-
};
|
461
|
+
downlistOperation: any;
|
462
|
+
downlistPopover: any;
|
492
463
|
innerPrintItems: import("vue").Ref<any[]>;
|
493
464
|
outerPrintItems: import("vue").Ref<any[]>;
|
494
|
-
currentFormatItem: import("vue").ComputedRef<
|
465
|
+
currentFormatItem: import("vue").ComputedRef<any>;
|
495
466
|
formatTitle: import("vue").ComputedRef<any>;
|
496
467
|
getTemplateIdByFormatId: import("vue").ComputedRef<any>;
|
497
468
|
getTemplateCodeByFormatId: import("vue").ComputedRef<any>;
|
@@ -521,7 +492,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
521
492
|
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
522
493
|
handleClickPrintAll: () => void;
|
523
494
|
toggleExpandLoading: (isLoading: boolean, formatId?: string | undefined) => void;
|
524
|
-
getCurrentLoading: () =>
|
495
|
+
getCurrentLoading: () => any;
|
525
496
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
526
497
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean | undefined) => Promise<void>;
|
527
498
|
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -551,7 +522,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
551
522
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
552
523
|
reformatPrintParams: () => void;
|
553
524
|
verifiySuccess: (token: string) => void;
|
554
|
-
isPrintDisabled: (outer: any, j: number) =>
|
525
|
+
isPrintDisabled: (outer: any, j: number) => any;
|
555
526
|
directPrint: () => Promise<void>;
|
556
527
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
557
528
|
NDropdown: any;
|
@@ -829,7 +800,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
829
800
|
};
|
830
801
|
printCopies: {
|
831
802
|
type: NumberConstructor;
|
832
|
-
default: number;
|
833
803
|
};
|
834
804
|
resolution: {
|
835
805
|
type: NumberConstructor;
|
@@ -868,7 +838,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
868
838
|
}>;
|
869
839
|
showLoading: boolean;
|
870
840
|
hideButtons: unknown[];
|
871
|
-
printCopies: number;
|
872
841
|
newPrintSetting: Record<string, any>;
|
873
842
|
}> | import("vue").DefineComponent<{
|
874
843
|
printParams: {
|
@@ -961,7 +930,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
961
930
|
};
|
962
931
|
printCopies: {
|
963
932
|
type: NumberConstructor;
|
964
|
-
default: number;
|
965
933
|
};
|
966
934
|
resolution: {
|
967
935
|
type: NumberConstructor;
|
@@ -1072,7 +1040,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1072
1040
|
};
|
1073
1041
|
printCopies: {
|
1074
1042
|
type: NumberConstructor;
|
1075
|
-
default: number;
|
1076
1043
|
};
|
1077
1044
|
resolution: {
|
1078
1045
|
type: NumberConstructor;
|
@@ -1101,7 +1068,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1101
1068
|
isInited: boolean;
|
1102
1069
|
watchPrintParamsReformatFn: null;
|
1103
1070
|
spinTimer: null;
|
1104
|
-
|
1071
|
+
iReportExecuteMode: number;
|
1105
1072
|
};
|
1106
1073
|
options: import("vue").Ref<AnyObject[]>;
|
1107
1074
|
currentFormatItem: import("vue").ComputedRef<{} | undefined>;
|
@@ -1412,7 +1379,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1412
1379
|
};
|
1413
1380
|
printCopies: {
|
1414
1381
|
type: NumberConstructor;
|
1415
|
-
default: number;
|
1416
1382
|
};
|
1417
1383
|
resolution: {
|
1418
1384
|
type: NumberConstructor;
|
@@ -1447,7 +1413,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1447
1413
|
}>;
|
1448
1414
|
showLoading: boolean;
|
1449
1415
|
hideButtons: unknown[];
|
1450
|
-
printCopies: number;
|
1451
1416
|
printCustomProps: Record<string, any>;
|
1452
1417
|
}>>;
|
1453
1418
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -1544,7 +1509,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1544
1509
|
};
|
1545
1510
|
printCopies: {
|
1546
1511
|
type: NumberConstructor;
|
1547
|
-
default: number;
|
1548
1512
|
};
|
1549
1513
|
printCustomProps: {
|
1550
1514
|
type: ObjectConstructor;
|
@@ -1666,7 +1630,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1666
1630
|
};
|
1667
1631
|
printCopies: {
|
1668
1632
|
type: NumberConstructor;
|
1669
|
-
default: number;
|
1670
1633
|
};
|
1671
1634
|
printCustomProps: {
|
1672
1635
|
type: ObjectConstructor;
|
@@ -1712,7 +1675,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1712
1675
|
}>;
|
1713
1676
|
showLoading: boolean;
|
1714
1677
|
hideButtons: unknown[];
|
1715
|
-
printCopies: number;
|
1716
1678
|
printCustomProps: Record<string, any>;
|
1717
1679
|
placement: string;
|
1718
1680
|
newPrintSetting: Record<string, any>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as t,useAttrs as e,ref as r,computed as n,provide as o,openBlock as i,createBlock as a,resolveDynamicComponent as p,unref as u,mergeProps as
|
1
|
+
import{defineComponent as t,useAttrs as e,ref as r,computed as n,provide as o,openBlock as i,createBlock as a,resolveDynamicComponent as p,unref as u,mergeProps as s,withCtx as l,createCommentVNode as d,renderSlot as y,normalizeProps as f,guardReactiveProps as m}from"vue";import{InjectionButtonPrintEmits as c}from"./constants/index.js";import g from"./components/NewPrintComponent.vue.js";import P from"./components/OldPrintComponent.vue.js";var v=t({__name:"ButtonPrint",props:{printParams:{type:Array},params:{default:()=>[],type:Array},btnText:{default:"打印",type:String},printText:{default:"直接打印",type:String},previewText:{default:"打印预览",type:String},pdfLoadText:{default:"下载pdf",type:String},formatEditText:{default:"格式编辑",type:String},prevFn:{default:()=>Promise.resolve(),type:Function},queryPrintFormatByNumber:{default:()=>Promise.resolve({}),type:Function},queryTemplateParams:{default:()=>Promise.resolve({}),type:Function},strategy:{default:"MULTI",type:String},clickPrevFn:{default:()=>Promise.resolve(!0),type:Function},noDataMsg:{default:"请选中需要打印的数据",type:String},noDefaultFormatMsg:{default:"获取打印格式失败,请联系管理员!",type:String},token:{type:String},printdlgshow:{default:"0",type:String},btnprint:{type:String,default:"1"},directPrint:{type:Boolean,default:!1},externalOptionConfig:{type:Object,default:()=>({})},signature:{type:String},showLoading:{type:Boolean,default:!0},hideButtons:{type:Array,default:()=>[]},printCopies:{type:Number},printCustomProps:{type:Object,default:()=>({})},resolution:{type:Number},placement:{type:String,default:"bottom-start"},newPrintSetting:{type:Object,default:()=>({})}},emits:["success","error","cancel","clickoutside","saveOuterPrint"],setup(t,{expose:v,emit:S}){const b=t,x=e(),j=r(),F=n((()=>{var t;return(null==(t=Object.keys(b.newPrintSetting))?void 0:t.length)>0?g:P})),O=n((()=>Object.assign({},b,x)));o(c,(function(t,...e){S(t,...e)}));return v({directPrint:async()=>{var t;null==(t=j.value)||t.directPrint()}}),(t,e)=>(i(),a(p(u(F)),s({ref_key:"printComponentRef",ref:j},u(O)),{button:l((e=>[d(" 自定义按钮样式 "),y(t.$slots,"button",f(m(e)))])),_:3},16))}});export{v as default};
|
@@ -92,7 +92,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
};
|
93
93
|
printCopies: {
|
94
94
|
type: NumberConstructor;
|
95
|
-
default: number;
|
96
95
|
};
|
97
96
|
resolution: {
|
98
97
|
type: NumberConstructor;
|
@@ -209,7 +208,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
209
208
|
};
|
210
209
|
printCopies: {
|
211
210
|
type: NumberConstructor;
|
212
|
-
default: number;
|
213
211
|
};
|
214
212
|
resolution: {
|
215
213
|
type: NumberConstructor;
|
@@ -230,40 +228,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
230
228
|
emit: any;
|
231
229
|
defaultFormatInfo: AnyObject;
|
232
230
|
authorizationKey: import("vue").Ref<string>;
|
233
|
-
state:
|
234
|
-
spinning: boolean;
|
235
|
-
visible: boolean;
|
236
|
-
formatList: never[];
|
237
|
-
templateParams: never[];
|
238
|
-
printParams: never[];
|
239
|
-
originParams: {};
|
240
|
-
currentFormatId: string;
|
241
|
-
identityVerification: {
|
242
|
-
visible: boolean;
|
243
|
-
};
|
244
|
-
isInited: boolean;
|
245
|
-
watchPrintParamsReformatFn: null;
|
246
|
-
spinTimer: null;
|
247
|
-
isClickOuterPrint: boolean;
|
248
|
-
curPrintParamList: never[];
|
249
|
-
ireportExecuteMode: number;
|
250
|
-
};
|
231
|
+
state: any;
|
251
232
|
shortcutFn: any;
|
252
233
|
options: import("vue").Ref<AnyObject[]>;
|
253
234
|
operations: import("vue").Ref<AnyObject[]>;
|
254
|
-
downlistOperation:
|
255
|
-
|
256
|
-
oneClickType: string;
|
257
|
-
twoMouseType: string;
|
258
|
-
};
|
259
|
-
downlistPopover: {
|
260
|
-
oneShow: boolean;
|
261
|
-
isOperation: boolean;
|
262
|
-
isOutSetting: boolean;
|
263
|
-
};
|
235
|
+
downlistOperation: any;
|
236
|
+
downlistPopover: any;
|
264
237
|
innerPrintItems: import("vue").Ref<any[]>;
|
265
238
|
outerPrintItems: import("vue").Ref<any[]>;
|
266
|
-
currentFormatItem: import("vue").ComputedRef<
|
239
|
+
currentFormatItem: import("vue").ComputedRef<any>;
|
267
240
|
formatTitle: import("vue").ComputedRef<any>;
|
268
241
|
getTemplateIdByFormatId: import("vue").ComputedRef<any>;
|
269
242
|
getTemplateCodeByFormatId: import("vue").ComputedRef<any>;
|
@@ -293,7 +266,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
293
266
|
getOnceParams: (curPrintParamList: any[] | undefined, templateCode: string) => string;
|
294
267
|
handleClickPrintAll: () => void;
|
295
268
|
toggleExpandLoading: (isLoading: boolean, formatId?: string) => void;
|
296
|
-
getCurrentLoading: () =>
|
269
|
+
getCurrentLoading: () => any;
|
297
270
|
handleOneTypePrint: (templateCode: string, templateId: string, formatId: string, isOuterClick: boolean) => void;
|
298
271
|
handleClickPrint: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string, printToParam?: never[], needContinuePrint?: boolean) => Promise<void>;
|
299
272
|
handleClickPreview: (curPrintParamList: any[] | undefined, templateCode: string, templateId: string, formatId: string) => Promise<void>;
|
@@ -323,7 +296,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
323
296
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
324
297
|
reformatPrintParams: () => void;
|
325
298
|
verifiySuccess: (token: string) => void;
|
326
|
-
isPrintDisabled: (outer: any, j: number) =>
|
299
|
+
isPrintDisabled: (outer: any, j: number) => any;
|
327
300
|
directPrint: () => Promise<void>;
|
328
301
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
329
302
|
NDropdown: any;
|
@@ -604,7 +577,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
604
577
|
};
|
605
578
|
printCopies: {
|
606
579
|
type: NumberConstructor;
|
607
|
-
default: number;
|
608
580
|
};
|
609
581
|
resolution: {
|
610
582
|
type: NumberConstructor;
|
@@ -643,7 +615,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
643
615
|
}>;
|
644
616
|
showLoading: boolean;
|
645
617
|
hideButtons: unknown[];
|
646
|
-
printCopies: number;
|
647
618
|
newPrintSetting: Record<string, any>;
|
648
619
|
}>;
|
649
620
|
export default _default;
|