cnhis-design-vue 3.2.8-release.1 → 3.2.8-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/es/components/ai-chat/index.d.ts +75 -0
- package/es/components/ai-chat/index.js +1 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +77 -0
- package/es/components/ai-chat/src/Index.vue.js +1 -0
- package/es/components/ai-chat/src/Index.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +14 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatMain.d.ts +8 -0
- package/es/components/ai-chat/src/components/ChatMain.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +20 -0
- package/es/components/ai-chat/src/types/index.js +1 -0
- package/es/components/ai-chat/style/index.css +1 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/button-print/index.d.ts +38 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +38 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +17 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +3 -2
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +10 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +21 -2
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +10 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/utils/index.d.ts +1 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +6 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -4
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -2
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +3 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -2
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- 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/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/guide/src/renderer.js +1 -1
- package/es/components/iho-chat/index.d.ts +3 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +3 -0
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +4 -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/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +6 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -4
- package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -2
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
- package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
- package/es/components/step-notice/src/hooks/useTheme.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/shared/assets/img/ai__avatar.png.js +1 -0
- package/es/shared/hooks/index.d.ts +1 -0
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
- package/es/shared/hooks/useFormRequest/index.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- /package/es/{components/iho-chat/src → shared}/hooks/useScrollLoading.d.ts +0 -0
- /package/es/{components/iho-chat/src → shared}/hooks/useScrollLoading.js +0 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
import { SFCWithInstall } from '../../shared/types';
|
2
|
+
declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
3
|
+
userAvatar: {
|
4
|
+
type: StringConstructor;
|
5
|
+
required: true;
|
6
|
+
};
|
7
|
+
shortcutList: {
|
8
|
+
type: import("vue").PropType<string[]>;
|
9
|
+
};
|
10
|
+
queryData: {
|
11
|
+
type: import("vue").PropType<import("./src/types").QueryData>;
|
12
|
+
reuired: boolean;
|
13
|
+
};
|
14
|
+
queryRecord: {
|
15
|
+
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
16
|
+
reuired: boolean;
|
17
|
+
};
|
18
|
+
}, {
|
19
|
+
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
20
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
21
|
+
userAvatar: {
|
22
|
+
type: StringConstructor;
|
23
|
+
required: true;
|
24
|
+
};
|
25
|
+
shortcutList: {
|
26
|
+
type: import("vue").PropType<string[]>;
|
27
|
+
};
|
28
|
+
queryData: {
|
29
|
+
type: import("vue").PropType<import("./src/types").QueryData>;
|
30
|
+
reuired: boolean;
|
31
|
+
};
|
32
|
+
queryRecord: {
|
33
|
+
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
34
|
+
reuired: boolean;
|
35
|
+
};
|
36
|
+
}>> & {}>>;
|
37
|
+
state: import("../../shared/types").AnyObject;
|
38
|
+
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
39
|
+
[x: string]: unknown;
|
40
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
41
|
+
[x: string]: unknown;
|
42
|
+
}>>>> & {}, {
|
43
|
+
readonly [x: number]: string;
|
44
|
+
} | {}>;
|
45
|
+
ChatFooter: import("vue").DefineComponent<{}, {
|
46
|
+
shortcutList: any;
|
47
|
+
state: any;
|
48
|
+
content: import("vue").Ref<string>;
|
49
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
50
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
51
|
+
isWrap: (event: KeyboardEvent) => boolean;
|
52
|
+
handleSend: () => void;
|
53
|
+
NButton: any;
|
54
|
+
NInput: any;
|
55
|
+
NIcon: any;
|
56
|
+
PaperPlane: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
57
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
59
|
+
userAvatar: {
|
60
|
+
type: StringConstructor;
|
61
|
+
required: true;
|
62
|
+
};
|
63
|
+
shortcutList: {
|
64
|
+
type: import("vue").PropType<string[]>;
|
65
|
+
};
|
66
|
+
queryData: {
|
67
|
+
type: import("vue").PropType<import("./src/types").QueryData>;
|
68
|
+
reuired: boolean;
|
69
|
+
};
|
70
|
+
queryRecord: {
|
71
|
+
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
72
|
+
reuired: boolean;
|
73
|
+
};
|
74
|
+
}>>, {}>>;
|
75
|
+
export default AiChat;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/Index.vue.js";const t=s;t.install=function(s){o(s,t,r+"AiChat")};export{t as default};
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { type PropType } from 'vue';
|
2
|
+
import { QueryData, QueryRecord } from './types';
|
3
|
+
import { AnyObject } from '../../../shared/types';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
userAvatar: {
|
6
|
+
type: StringConstructor;
|
7
|
+
required: true;
|
8
|
+
};
|
9
|
+
shortcutList: {
|
10
|
+
type: PropType<string[]>;
|
11
|
+
};
|
12
|
+
queryData: {
|
13
|
+
type: PropType<QueryData>;
|
14
|
+
reuired: boolean;
|
15
|
+
};
|
16
|
+
queryRecord: {
|
17
|
+
type: PropType<QueryRecord>;
|
18
|
+
reuired: boolean;
|
19
|
+
};
|
20
|
+
}, {
|
21
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
22
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
23
|
+
userAvatar: {
|
24
|
+
type: StringConstructor;
|
25
|
+
required: true;
|
26
|
+
};
|
27
|
+
shortcutList: {
|
28
|
+
type: PropType<string[]>;
|
29
|
+
};
|
30
|
+
queryData: {
|
31
|
+
type: PropType<QueryData>;
|
32
|
+
reuired: boolean;
|
33
|
+
};
|
34
|
+
queryRecord: {
|
35
|
+
type: PropType<QueryRecord>;
|
36
|
+
reuired: boolean;
|
37
|
+
};
|
38
|
+
}>> & {}>>;
|
39
|
+
state: AnyObject;
|
40
|
+
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
41
|
+
[x: string]: unknown;
|
42
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
43
|
+
[x: string]: unknown;
|
44
|
+
}>>>> & {}, {
|
45
|
+
readonly [x: number]: string;
|
46
|
+
} | {}>;
|
47
|
+
ChatFooter: import("vue").DefineComponent<{}, {
|
48
|
+
shortcutList: any;
|
49
|
+
state: any;
|
50
|
+
content: import("vue").Ref<string>;
|
51
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
52
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
53
|
+
isWrap: (event: KeyboardEvent) => boolean;
|
54
|
+
handleSend: () => void;
|
55
|
+
NButton: any;
|
56
|
+
NInput: any;
|
57
|
+
NIcon: any;
|
58
|
+
PaperPlane: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
59
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
61
|
+
userAvatar: {
|
62
|
+
type: StringConstructor;
|
63
|
+
required: true;
|
64
|
+
};
|
65
|
+
shortcutList: {
|
66
|
+
type: PropType<string[]>;
|
67
|
+
};
|
68
|
+
queryData: {
|
69
|
+
type: PropType<QueryData>;
|
70
|
+
reuired: boolean;
|
71
|
+
};
|
72
|
+
queryRecord: {
|
73
|
+
type: PropType<QueryRecord>;
|
74
|
+
reuired: boolean;
|
75
|
+
};
|
76
|
+
}>>, {}>;
|
77
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Index.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,reactive as o,provide as r,toRefs as t,openBlock as s,createElementBlock as i,normalizeStyle as n,unref as a,createVNode as p}from"vue";import m from"./components/ChatMain.js";import u from"./components/ChatFooter.vue.js";import{useTheme as d}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as h}from"./types/index.js";var c=e({__name:"Index",props:{userAvatar:{type:String,required:!0},shortcutList:{type:Array},queryData:{type:Function,reuired:!0},queryRecord:{type:Function,reuired:!0}},setup(e){const c=e,v=d(),y=o({beingSent:!1,sendContent:""});return r(h,{...t(c),state:y}),(e,o)=>(s(),i("div",{class:"ai-chat",style:n(a(v))},[p(a(m)),p(u)],4))}});export{c as default};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
2
|
+
shortcutList: any;
|
3
|
+
state: any;
|
4
|
+
content: import("vue").Ref<string>;
|
5
|
+
btnDisabled: import("vue").ComputedRef<boolean>;
|
6
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
7
|
+
isWrap: (event: KeyboardEvent) => boolean;
|
8
|
+
handleSend: () => void;
|
9
|
+
NButton: any;
|
10
|
+
NInput: any;
|
11
|
+
NIcon: any;
|
12
|
+
PaperPlane: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
14
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./ChatFooter.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","ChatFooter.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,inject as t,ref as n,computed as l,openBlock as a,createElementBlock as s,normalizeClass as i,unref as o,Fragment as r,renderList as u,createBlock as c,withCtx as d,createTextVNode as p,toDisplayString as f,createCommentVNode as v,createElementVNode as b,createVNode as m}from"vue";import{NButton as y,NInput as h,NIcon as x}from"naive-ui";import{PaperPlane as g}from"@vicons/ionicons5";import{InjectionAIChat as K}from"../types/index.js";const k={key:0,class:"menu-box fillet-8"},w={class:"input-wrapper fillet-10"},S={class:"input-box"},z={class:"btn-box"},C=["disabled"];var _=e({__name:"ChatFooter",setup(e){const{shortcutList:_,state:E}=t(K),R=n(""),j=l((()=>!R.value.replace(/( |\s|<br>)+/g,"")));function D(e){["Enter"].includes(e.key)&&(function(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)||(e.preventDefault(),F()))}function F(){j.value||(E.beingSent=!0,E.sendContent=R.value.replace(/\\n|\n|\r/g,"<br>"),R.value="")}return(e,t)=>(a(),s("section",{class:i(["chat-footer",o(E).beingSent?"disabled":""])},[o(_)&&o(_).length>0?(a(),s("div",k,[(a(!0),s(r,null,u(o(_),(e=>(a(),c(o(y),{secondary:"",size:"small",key:e},{default:d((()=>[p(f(e),1)])),_:2},1024)))),128))])):v("v-if",!0),b("div",w,[b("div",S,[m(o(h),{type:"textarea",placeholder:"请向我提问,Shift+Enter换行",disabled:o(E).beingSent,autosize:{minRows:2,maxRows:7},value:R.value,"onUpdate:value":t[0]||(t[0]=e=>R.value=e),onKeydown:D},null,8,["disabled","value"])]),b("div",z,[b("span",{class:i(["btn-send","fillet-8",o(j)?"disabled":""]),disabled:o(j),onClick:F},[m(o(x),{color:"#fff",size:"22",component:o(g)},null,8,["component"])],10,C)])])],2))}});export{_ as default};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
2
|
+
[x: string]: unknown;
|
3
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
4
|
+
[x: string]: unknown;
|
5
|
+
}>>>> & {}, {
|
6
|
+
readonly [x: number]: string;
|
7
|
+
} | {}>;
|
8
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,inject as t,ref as s,watch as n,createVNode as r,createTextVNode as a}from"vue";import{NAvatar as o,NSpin as i}from"naive-ui";import{InjectionAIChat as l}from"../types/index.js";import u from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as c,isFunction as m}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 p}from"../../../../shared/hooks/useScrollLoading.js";var d=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:d,slots:h,emit:v}){const{userAvatar:f,queryData:g,state:y,queryRecord:M}=t(l),b=s(null),j=s([]),C={page:0,hasMore:!0};async function S(){if(!C.hasMore)return;C.page++;const e=await M.value({page:C.page});if(!Array.isArray(e)||0===e.length)return C.hasMore=!1,console.log("接口返回不是一个数组,或者没有更多消息了");j.value=C.page>1?[...e,...j.value]:e}return p(b,(()=>{S()}),"top"),S(),n((()=>y.beingSent),(async e=>{if(e){j.value.unshift({createdByMe:!0,content:y.sendContent});const e=await g.value({content:y.sendContent.split("<br>").join("\n"),contentType:"text"});c(e)&&j.value.unshift(...e),y.beingSent=!1,y.sendContent=""}})),()=>r("section",{class:"chat-main",ref:b},[[y.beingSent?r("div",{class:"message-item"},[r(o,{round:!0,size:40,src:u},null),r("div",{class:"content fillet-10 loading"},[r(i,{size:22,stroke:"#4170EE"},null),r("span",null,[a("正在加载中,请稍等...")])])]):null,j.value.map((e=>r("div",{class:"message-item"},[r(o,{round:!0,size:40,src:e.createdByMe?f.value:u},null),r("div",{class:["content",e.createdByMe?"fillet-8 mine":"fillet-10"]},[m(e.render)?e.render():e.content.split("<br>").map(((e,t,s)=>[e,t===s.length-1?null:r("br",null,null)]))])])))]])}});export{d as default};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { InjectionKey, VNodeChild } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
export declare const InjectionAIChat: InjectionKey<AnyObject>;
|
4
|
+
export declare const InjectionAIChatEmits: InjectionKey<(event: string, ...args: any[]) => void>;
|
5
|
+
export type QueryData = (props: {
|
6
|
+
content: string;
|
7
|
+
contentType: string;
|
8
|
+
}) => Promise<Array<{
|
9
|
+
content: string;
|
10
|
+
render?: () => VNodeChild;
|
11
|
+
[key: string]: any;
|
12
|
+
}>>;
|
13
|
+
export type QueryRecord = (props: {
|
14
|
+
page: number;
|
15
|
+
}) => Promise<Array<{
|
16
|
+
createdByMe: boolean;
|
17
|
+
content: string;
|
18
|
+
render?: () => VNodeChild;
|
19
|
+
[key: string]: any;
|
20
|
+
}>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
const t=Symbol("InjectionAIChat"),o=Symbol("InjectionAIChatEmits");export{t as InjectionAIChat,o as InjectionAIChatEmits};
|
@@ -0,0 +1 @@
|
|
1
|
+
.ai-chat{background:linear-gradient(135deg,#c9dbfb,#c9dbfb 20%,rgba(237,237,253,.5) 70%,rgba(151,97,251,.2));display:flex;flex-flow:column nowrap;height:100%;padding:45px 0 60px;width:100%}.ai-chat *{box-sizing:border-box}.ai-chat .fillet-10{border-radius:10px}.ai-chat .fillet-8{border-radius:8px}.ai-chat .n-avatar{background-color:var(--c-primary-color)}.ai-chat .chat-main{display:flex;flex:1;flex-flow:column-reverse nowrap;overflow-y:scroll;padding:0 130px 0 82px;row-gap:16px}.ai-chat .chat-main::-webkit-scrollbar{width:5px}.ai-chat .chat-main::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-main .message-item{column-gap:8px;display:flex;flex-flow:row nowrap}.ai-chat .chat-main .message-item .n-avatar{flex-shrink:0}.ai-chat .chat-main .message-item .content{background:#fff;padding:10px 12px}.ai-chat .chat-main .message-item .content.mine{background:hsla(0,0%,100%,.48)}.ai-chat .chat-main .message-item .content.loading{align-items:center;color:#999;column-gap:10px;display:flex}.ai-chat .chat-footer{padding:30px 130px 0}.ai-chat .chat-footer.disabled{cursor:not-allowed}.ai-chat .chat-footer .menu-box{background:#fff;column-gap:8px;display:flex;margin-bottom:8px;padding:10px}.ai-chat .chat-footer .input-wrapper{background:#fff;box-shadow:0 3px 4px 0 rgba(0,0,0,.1);padding:15px 20px}.ai-chat .chat-footer .input-wrapper .n-input__border,.ai-chat .chat-footer .input-wrapper .n-input__state-border{border:none}.ai-chat .chat-footer .input-wrapper .n-input:not(.n-input--disabled).n-input--focus .n-input__state-border{box-shadow:unset}.ai-chat .chat-footer .input-wrapper .btn-box{display:flex;justify-content:flex-end}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send{align-items:center;background:linear-gradient(178deg,#8f66f7,#4170ee);cursor:pointer;display:flex;height:46px;justify-content:center;width:58px}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send.disabled{cursor:not-allowed}
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as o,ref as l,onDeactivated as t,createVNode as a,unref as u,createTextVNode as n}from"vue";import{useTheme as r}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as
|
1
|
+
import{defineComponent as e,computed as o,ref as l,onDeactivated as t,createVNode as a,unref as u,createTextVNode as n}from"vue";import{useTheme as r}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as s,isObject as i,isArray as d,isFunction as m}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import{promiseTimeout as c}from"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import{FileTrayFull as v,FileTray as p}from"@vicons/ionicons5";import{NPopover as f,NDivider as h,NEllipsis as V,NIcon as g,NPopselect as y,NButton as b,NInput as k}from"naive-ui";import"../../../shared/hooks/useScrollLoading.js";var w=e({props:{modelValue:{type:[String,Object],default:""},shortcuts:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:w}){const x=r(),T=o({get:()=>s(e.modelValue)?e.modelValue:i(e.modelValue)&&e.modelValue.content||"",set(o){let l=o;i(e.modelValue)&&(l={...e.modelValue,content:o}),w("update:modelValue",l)}}),P=l(!1),R=o({get:()=>P.value,async set(e){P.value=e,!e&&M.value&&(await new Promise((e=>setTimeout(e,200))),M.value=!1)}}),_=o((()=>{let o=e.shortcuts||[];return i(e.modelValue)&&(d(e.modelValue.shortcuts)?o=e.modelValue.shortcuts:Reflect.has(e.modelValue,"shortcuts")&&(o=[])),o.map((e=>s(e)?{label:e,value:e}:e))})),j=l(),M=l(!1);let C,L;async function S(){var e,o;await c(50),null==(o=null==(e=j.value)?void 0:e.syncPosition)||o.call(e)}function U(e){e.stopPropagation(),clearTimeout(C),R.value&&M.value?R.value=!1:u(T)||(C=setTimeout((()=>(M.value=R.value=!0,S())),200))}function z(e){if(e.stopPropagation(),clearTimeout(C),u(T))return M.value=R.value=!0,S()}function W(e){e.stopPropagation(),clearTimeout(L),u(T)&&(R.value=!0)}function A(e){e.stopPropagation(),clearTimeout(L),u(T)&&!M.value&&(L=setTimeout((()=>{R.value=!1}),300))}return t((()=>{R.value=!1})),function(){return a("section",{class:["annotation-edit",{"is-active":!!u(T)}],style:{"--icon-right":"-5",...x.value},"annotation-hover-show":!u(T)&&!M.value},[a(f,{ref:j,to:"body",flip:!0,"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:R.value,"onUpdate:show":e=>R.value=e,trigger:"manual",duration:100,onClickoutside:U},{default:function(){return a("section",{onMouseleave:A,onMouseenter:W},[a("div",null,[M.value?[_.value.length?a(y,{options:_.value,"onUpdate:value":e=>T.value+=e,scrollable:!0},{default:()=>a(b,{style:"margin-bottom: 8px;"},{default:()=>"短语"})}):null,a(k,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:T.value,"onUpdate:value":e=>T.value=e},null)]:a("span",null,[u(T)])]),i(e.modelValue)&&(m(e.modelValue.footerRender)||e.modelValue.author||e.modelValue.date)?[a(h,{style:{margin:"4px 0",minWidth:"360px"}},null),a("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[a(V,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),a(V,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return a("div",{class:"annotation-edit__icon",onMouseleave:A,onMouseenter:W,onDblclick:z,onClick:U},[a(g,{component:u(T)?v:p},null)])}})])}}});export{w as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as o,onMounted as
|
1
|
+
import{defineComponent as e,ref as o,onMounted as s,watch as t,openBlock as n,createBlock as i,unref as r,normalizeStyle as a,withCtx as c,createElementVNode as l,toDisplayString as p,createVNode as u}from"vue";import{NModal as d,NIcon as m}from"naive-ui";import{Mic as v}from"@vicons/ionicons5";import{useTheme as f}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../../shared/hooks/useScrollLoading.js";const h={class:"c-recording-wrapper"},k={class:"content"},y=l("div",{class:"animation"},null,-1),w=l("p",{class:"tip"},"按下空格键停止录音",-1);var g=e({__name:"recordingDialog",props:{visible:{type:Boolean,default:!1},content:{type:String,default:""}},setup(e){const g=e,j=f(),S=o(!0);function b(e){" "!==e.key&&"Space"!==e.code||(e.preventDefault(),x())}function x(){S.value=!1,document.removeEventListener("keydown",b)}return s((()=>{document.addEventListener("keydown",b)})),t((()=>g.visible),(e=>{S.value=e})),(o,s)=>(n(),i(r(d),{show:S.value,"onUpdate:show":s[0]||(s[0]=e=>S.value=e),style:a(r(j)),onEsc:x,onMaskClick:x},{default:c((()=>[l("div",h,[l("p",k,p(e.content||"正在聆听..."),1),y,l("div",{class:"icon-box",onClick:x},[u(r(m),{size:"60",color:"#fff",component:r(v)},null,8,["component"])]),w])])),_:1},8,["show","style"]))}});export{g as default};
|
@@ -98,6 +98,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
98
98
|
type: ObjectConstructor;
|
99
99
|
default: () => {};
|
100
100
|
};
|
101
|
+
resolution: {
|
102
|
+
type: NumberConstructor;
|
103
|
+
};
|
101
104
|
placement: {
|
102
105
|
type: StringConstructor;
|
103
106
|
default: string;
|
@@ -207,6 +210,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
207
210
|
type: ObjectConstructor;
|
208
211
|
default: () => {};
|
209
212
|
};
|
213
|
+
resolution: {
|
214
|
+
type: NumberConstructor;
|
215
|
+
};
|
210
216
|
placement: {
|
211
217
|
type: StringConstructor;
|
212
218
|
default: string;
|
@@ -313,6 +319,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
313
319
|
type: NumberConstructor;
|
314
320
|
default: number;
|
315
321
|
};
|
322
|
+
resolution: {
|
323
|
+
type: NumberConstructor;
|
324
|
+
};
|
316
325
|
newPrintSetting: {
|
317
326
|
type: ObjectConstructor;
|
318
327
|
default: () => {
|
@@ -322,6 +331,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
322
331
|
customProps: {};
|
323
332
|
outerPrintKeys: never[];
|
324
333
|
defaultFormatId: string;
|
334
|
+
shortcut: {};
|
325
335
|
};
|
326
336
|
};
|
327
337
|
}, {
|
@@ -333,6 +343,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
333
343
|
printInstance: import("./src/utils").Print | null;
|
334
344
|
downloadPdfCode: string;
|
335
345
|
formatEditTextCode: string;
|
346
|
+
resetPrintButtonCode: string;
|
336
347
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
337
348
|
printParams: {
|
338
349
|
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
@@ -422,6 +433,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
422
433
|
type: NumberConstructor;
|
423
434
|
default: number;
|
424
435
|
};
|
436
|
+
resolution: {
|
437
|
+
type: NumberConstructor;
|
438
|
+
};
|
425
439
|
newPrintSetting: {
|
426
440
|
type: ObjectConstructor;
|
427
441
|
default: () => {
|
@@ -431,6 +445,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
431
445
|
customProps: {};
|
432
446
|
outerPrintKeys: never[];
|
433
447
|
defaultFormatId: string;
|
448
|
+
shortcut: {};
|
434
449
|
};
|
435
450
|
};
|
436
451
|
}>> & {}>>;
|
@@ -455,6 +470,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
455
470
|
curPrintParamList: never[];
|
456
471
|
ireportExecuteMode: number;
|
457
472
|
};
|
473
|
+
shortcutFn: any;
|
458
474
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
459
475
|
operations: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
460
476
|
downlistOperation: {
|
@@ -478,6 +494,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
478
494
|
printCustomProps: import("vue").ComputedRef<any>;
|
479
495
|
defaultPrintFormatId: import("vue").ComputedRef<any>;
|
480
496
|
isPrintAllType: import("vue").ComputedRef<any>;
|
497
|
+
shortcutSettings: import("vue").ComputedRef<any>;
|
498
|
+
printAllShortcut: import("vue").ComputedRef<any>;
|
481
499
|
showSettingItems: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
482
500
|
isSelectedAll: import("vue").WritableComputedRef<boolean>;
|
483
501
|
initShowDownList: () => Promise<void>;
|
@@ -523,6 +541,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
523
541
|
mergeTemplateList: (list: any[]) => any;
|
524
542
|
initCRM: (formatListResult: any) => Promise<void>;
|
525
543
|
init: () => Promise<boolean>;
|
544
|
+
registerShort: () => Promise<void>;
|
526
545
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
527
546
|
reformatPrintParams: () => void;
|
528
547
|
verifiySuccess: (token: string) => void;
|
@@ -806,6 +825,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
806
825
|
type: NumberConstructor;
|
807
826
|
default: number;
|
808
827
|
};
|
828
|
+
resolution: {
|
829
|
+
type: NumberConstructor;
|
830
|
+
};
|
809
831
|
newPrintSetting: {
|
810
832
|
type: ObjectConstructor;
|
811
833
|
default: () => {
|
@@ -815,6 +837,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
815
837
|
customProps: {};
|
816
838
|
outerPrintKeys: never[];
|
817
839
|
defaultFormatId: string;
|
840
|
+
shortcut: {};
|
818
841
|
};
|
819
842
|
};
|
820
843
|
}>>, {
|
@@ -934,6 +957,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
934
957
|
type: NumberConstructor;
|
935
958
|
default: number;
|
936
959
|
};
|
960
|
+
resolution: {
|
961
|
+
type: NumberConstructor;
|
962
|
+
};
|
937
963
|
printCustomProps: {
|
938
964
|
type: ObjectConstructor;
|
939
965
|
default: () => {};
|
@@ -1042,6 +1068,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1042
1068
|
type: NumberConstructor;
|
1043
1069
|
default: number;
|
1044
1070
|
};
|
1071
|
+
resolution: {
|
1072
|
+
type: NumberConstructor;
|
1073
|
+
};
|
1045
1074
|
printCustomProps: {
|
1046
1075
|
type: ObjectConstructor;
|
1047
1076
|
default: () => {};
|
@@ -1379,6 +1408,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1379
1408
|
type: NumberConstructor;
|
1380
1409
|
default: number;
|
1381
1410
|
};
|
1411
|
+
resolution: {
|
1412
|
+
type: NumberConstructor;
|
1413
|
+
};
|
1382
1414
|
printCustomProps: {
|
1383
1415
|
type: ObjectConstructor;
|
1384
1416
|
default: () => {};
|
@@ -1509,6 +1541,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1509
1541
|
type: ObjectConstructor;
|
1510
1542
|
default: () => {};
|
1511
1543
|
};
|
1544
|
+
resolution: {
|
1545
|
+
type: NumberConstructor;
|
1546
|
+
};
|
1512
1547
|
placement: {
|
1513
1548
|
type: StringConstructor;
|
1514
1549
|
default: string;
|
@@ -1625,6 +1660,9 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1625
1660
|
type: ObjectConstructor;
|
1626
1661
|
default: () => {};
|
1627
1662
|
};
|
1663
|
+
resolution: {
|
1664
|
+
type: NumberConstructor;
|
1665
|
+
};
|
1628
1666
|
placement: {
|
1629
1667
|
type: StringConstructor;
|
1630
1668
|
default: string;
|
@@ -101,6 +101,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
101
|
type: ObjectConstructor;
|
102
102
|
default: () => {};
|
103
103
|
};
|
104
|
+
resolution: {
|
105
|
+
type: NumberConstructor;
|
106
|
+
};
|
104
107
|
placement: {
|
105
108
|
type: StringConstructor;
|
106
109
|
default: string;
|
@@ -213,6 +216,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
213
216
|
type: ObjectConstructor;
|
214
217
|
default: () => {};
|
215
218
|
};
|
219
|
+
resolution: {
|
220
|
+
type: NumberConstructor;
|
221
|
+
};
|
216
222
|
placement: {
|
217
223
|
type: StringConstructor;
|
218
224
|
default: string;
|
@@ -319,6 +325,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
319
325
|
type: NumberConstructor;
|
320
326
|
default: number;
|
321
327
|
};
|
328
|
+
resolution: {
|
329
|
+
type: NumberConstructor;
|
330
|
+
};
|
322
331
|
newPrintSetting: {
|
323
332
|
type: ObjectConstructor;
|
324
333
|
default: () => {
|
@@ -328,6 +337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
328
337
|
customProps: {};
|
329
338
|
outerPrintKeys: never[];
|
330
339
|
defaultFormatId: string;
|
340
|
+
shortcut: {};
|
331
341
|
};
|
332
342
|
};
|
333
343
|
}, {
|
@@ -339,6 +349,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
339
349
|
printInstance: import("./utils").Print | null;
|
340
350
|
downloadPdfCode: string;
|
341
351
|
formatEditTextCode: string;
|
352
|
+
resetPrintButtonCode: string;
|
342
353
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
343
354
|
printParams: {
|
344
355
|
type: PropType<AnyObject[]>;
|
@@ -428,6 +439,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
428
439
|
type: NumberConstructor;
|
429
440
|
default: number;
|
430
441
|
};
|
442
|
+
resolution: {
|
443
|
+
type: NumberConstructor;
|
444
|
+
};
|
431
445
|
newPrintSetting: {
|
432
446
|
type: ObjectConstructor;
|
433
447
|
default: () => {
|
@@ -437,6 +451,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
437
451
|
customProps: {};
|
438
452
|
outerPrintKeys: never[];
|
439
453
|
defaultFormatId: string;
|
454
|
+
shortcut: {};
|
440
455
|
};
|
441
456
|
};
|
442
457
|
}>> & {}>>;
|
@@ -461,6 +476,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
461
476
|
curPrintParamList: never[];
|
462
477
|
ireportExecuteMode: number;
|
463
478
|
};
|
479
|
+
shortcutFn: any;
|
464
480
|
options: import("vue").Ref<AnyObject[]>;
|
465
481
|
operations: import("vue").Ref<AnyObject[]>;
|
466
482
|
downlistOperation: {
|
@@ -484,6 +500,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
484
500
|
printCustomProps: import("vue").ComputedRef<any>;
|
485
501
|
defaultPrintFormatId: import("vue").ComputedRef<any>;
|
486
502
|
isPrintAllType: import("vue").ComputedRef<any>;
|
503
|
+
shortcutSettings: import("vue").ComputedRef<any>;
|
504
|
+
printAllShortcut: import("vue").ComputedRef<any>;
|
487
505
|
showSettingItems: import("vue").ComputedRef<AnyObject[]>;
|
488
506
|
isSelectedAll: import("vue").WritableComputedRef<boolean>;
|
489
507
|
initShowDownList: () => Promise<void>;
|
@@ -529,6 +547,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
529
547
|
mergeTemplateList: (list: any[]) => any;
|
530
548
|
initCRM: (formatListResult: any) => Promise<void>;
|
531
549
|
init: () => Promise<boolean>;
|
550
|
+
registerShort: () => Promise<void>;
|
532
551
|
handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
|
533
552
|
reformatPrintParams: () => void;
|
534
553
|
verifiySuccess: (token: string) => void;
|
@@ -812,6 +831,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
812
831
|
type: NumberConstructor;
|
813
832
|
default: number;
|
814
833
|
};
|
834
|
+
resolution: {
|
835
|
+
type: NumberConstructor;
|
836
|
+
};
|
815
837
|
newPrintSetting: {
|
816
838
|
type: ObjectConstructor;
|
817
839
|
default: () => {
|
@@ -821,6 +843,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
821
843
|
customProps: {};
|
822
844
|
outerPrintKeys: never[];
|
823
845
|
defaultFormatId: string;
|
846
|
+
shortcut: {};
|
824
847
|
};
|
825
848
|
};
|
826
849
|
}>>, {
|
@@ -940,6 +963,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
940
963
|
type: NumberConstructor;
|
941
964
|
default: number;
|
942
965
|
};
|
966
|
+
resolution: {
|
967
|
+
type: NumberConstructor;
|
968
|
+
};
|
943
969
|
printCustomProps: {
|
944
970
|
type: ObjectConstructor;
|
945
971
|
default: () => {};
|
@@ -1048,6 +1074,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1048
1074
|
type: NumberConstructor;
|
1049
1075
|
default: number;
|
1050
1076
|
};
|
1077
|
+
resolution: {
|
1078
|
+
type: NumberConstructor;
|
1079
|
+
};
|
1051
1080
|
printCustomProps: {
|
1052
1081
|
type: ObjectConstructor;
|
1053
1082
|
default: () => {};
|
@@ -1385,6 +1414,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1385
1414
|
type: NumberConstructor;
|
1386
1415
|
default: number;
|
1387
1416
|
};
|
1417
|
+
resolution: {
|
1418
|
+
type: NumberConstructor;
|
1419
|
+
};
|
1388
1420
|
printCustomProps: {
|
1389
1421
|
type: ObjectConstructor;
|
1390
1422
|
default: () => {};
|
@@ -1518,6 +1550,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1518
1550
|
type: ObjectConstructor;
|
1519
1551
|
default: () => {};
|
1520
1552
|
};
|
1553
|
+
resolution: {
|
1554
|
+
type: NumberConstructor;
|
1555
|
+
};
|
1521
1556
|
placement: {
|
1522
1557
|
type: StringConstructor;
|
1523
1558
|
default: string;
|
@@ -1637,6 +1672,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1637
1672
|
type: ObjectConstructor;
|
1638
1673
|
default: () => {};
|
1639
1674
|
};
|
1675
|
+
resolution: {
|
1676
|
+
type: NumberConstructor;
|
1677
|
+
};
|
1640
1678
|
placement: {
|
1641
1679
|
type: StringConstructor;
|
1642
1680
|
default: string;
|
@@ -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 l,withCtx as s,createCommentVNode as d,renderSlot as f,normalizeProps as y,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,default:1},printCustomProps:{type:Object,default:()=>({})},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)),l({ref_key:"printComponentRef",ref:j},u(O)),{button:s((e=>[d(" 自定义按钮样式 "),f(t.$slots,"button",y(m(e)))])),_:3},16))}});export{v as default};
|
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 l,withCtx as s,createCommentVNode as d,renderSlot as f,normalizeProps as y,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,default:1},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)),l({ref_key:"printComponentRef",ref:j},u(O)),{button:s((e=>[d(" 自定义按钮样式 "),f(t.$slots,"button",y(m(e)))])),_:3},16))}});export{v as default};
|