cnhis-design-vue 3.2.8-beta.6 → 3.2.8-beta.8

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.
Files changed (104) hide show
  1. package/README.md +87 -87
  2. package/es/components/ai-chat/index.d.ts +75 -0
  3. package/es/components/ai-chat/index.js +1 -0
  4. package/es/components/ai-chat/src/Index.vue.d.ts +77 -0
  5. package/es/components/ai-chat/src/Index.vue.js +1 -0
  6. package/es/components/ai-chat/src/Index.vue2.js +1 -0
  7. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +14 -0
  8. package/es/components/ai-chat/src/components/ChatFooter.vue.js +1 -0
  9. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -0
  10. package/es/components/ai-chat/src/components/ChatMain.d.ts +8 -0
  11. package/es/components/ai-chat/src/components/ChatMain.js +1 -0
  12. package/es/components/ai-chat/src/types/index.d.ts +20 -0
  13. package/es/components/ai-chat/src/types/index.js +1 -0
  14. package/es/components/ai-chat/style/index.css +1 -0
  15. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  16. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  17. package/es/components/button-print/index.d.ts +7 -0
  18. package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -0
  19. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -0
  20. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  21. package/es/components/button-print/style/index.css +1 -1
  22. package/es/components/calendar/src/Calendar.vue2.js +1 -1
  23. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  24. package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
  25. package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -2
  26. package/es/components/field-set/src/FieldSet.vue.d.ts +3 -3
  27. package/es/components/field-set/src/components/condition.vue2.js +1 -1
  28. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  29. package/es/components/field-set/src/components/table-row.vue.d.ts +2 -2
  30. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  31. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  32. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  33. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  34. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  35. package/es/components/form-render/src/components/renderer/select.js +1 -1
  36. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  37. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  38. package/es/components/guide/src/renderer.js +1 -1
  39. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  40. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  41. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  42. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  43. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
  44. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -1
  45. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  46. package/es/components/index.css +1 -1
  47. package/es/components/index.d.ts +2 -1
  48. package/es/components/index.js +1 -1
  49. package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
  50. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  51. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  52. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  53. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
  54. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
  55. package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
  56. package/es/components/step-notice/src/hooks/useTheme.js +1 -1
  57. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  58. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  59. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
  60. package/es/shared/assets/img/ai__avatar.png.js +1 -0
  61. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  62. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  63. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  64. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  65. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  66. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  67. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  68. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  69. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  70. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  71. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  72. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  73. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  74. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  75. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  76. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  77. package/es/shared/assets/img/failure.png.js +1 -1
  78. package/es/shared/assets/img/no-permission.png.js +1 -1
  79. package/es/shared/assets/img/nodata.png.js +1 -1
  80. package/es/shared/assets/img/notfound.png.js +1 -1
  81. package/es/shared/assets/img/qr.png.js +1 -1
  82. package/es/shared/assets/img/success.png.js +1 -1
  83. package/es/shared/assets/img/table_style_2.png.js +1 -1
  84. package/es/shared/assets/img/video.png.js +1 -1
  85. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  86. package/es/shared/assets/img/xb_big.png.js +1 -1
  87. package/es/shared/assets/img/xb_small.png.js +1 -1
  88. package/es/shared/hooks/index.d.ts +1 -0
  89. package/es/shared/hooks/index.js +1 -1
  90. package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
  91. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  92. package/es/shared/hooks/useFormRequest/index.js +1 -1
  93. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  94. package/es/shared/hooks/useScrollLoading.d.ts +2 -0
  95. package/es/shared/hooks/useScrollLoading.js +1 -0
  96. package/es/shared/package.json.js +1 -1
  97. package/package.json +2 -2
  98. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  99. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  100. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  101. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  102. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  103. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  104. package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -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(/(&nbsp;|\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 i,isObject as s,isArray as d,isFunction as m}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import{promiseTimeout as v}from"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import{FileTrayFull as c,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 w}from"naive-ui";var x=e({props:{modelValue:{type:[String,Object],default:""},shortcuts:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{emit:x}){const k=r(),T=o({get:()=>i(e.modelValue)?e.modelValue:s(e.modelValue)&&e.modelValue.content||"",set(o){let l=o;s(e.modelValue)&&(l={...e.modelValue,content:o}),x("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 s(e.modelValue)&&(d(e.modelValue.shortcuts)?o=e.modelValue.shortcuts:Reflect.has(e.modelValue,"shortcuts")&&(o=[])),o.map((e=>i(e)?{label:e,value:e}:e))})),j=l(),M=l(!1);let C,U;async function z(){var e,o;await v(50),null==(o=null==(e=j.value)?void 0:e.syncPosition)||o.call(e)}function L(e){e.stopPropagation(),clearTimeout(C),R.value&&M.value?R.value=!1:u(T)||(C=setTimeout((()=>(M.value=R.value=!0,z())),200))}function S(e){if(e.stopPropagation(),clearTimeout(C),u(T))return M.value=R.value=!0,z()}function W(e){e.stopPropagation(),clearTimeout(U),u(T)&&(R.value=!0)}function A(e){e.stopPropagation(),clearTimeout(U),u(T)&&!M.value&&(U=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",...k.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:L},{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(w,{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)])]),s(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:S,onClick:L},[a(g,{component:u(T)?c:p},null)])}})])}}});export{x as default};
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 t,watch as s,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";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,b=f(),j=o(!0);function x(e){" "!==e.key&&"Space"!==e.code||(e.preventDefault(),C())}function C(){j.value=!1,document.removeEventListener("keydown",x)}return t((()=>{document.addEventListener("keydown",x)})),s((()=>g.visible),(e=>{j.value=e})),(o,t)=>(n(),i(r(d),{show:j.value,"onUpdate:show":t[0]||(t[0]=e=>j.value=e),style:a(r(b)),onEsc:C,onMaskClick:C},{default:c((()=>[l("div",h,[l("p",k,p(e.content||"正在聆听..."),1),y,l("div",{class:"icon-box",onClick:C},[u(r(m),{size:"60",color:"#fff",component:r(v)},null,8,["component"])]),w])])),_:1},8,["show","style"]))}});export{g as default};
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};
@@ -322,6 +322,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
322
322
  customProps: {};
323
323
  outerPrintKeys: never[];
324
324
  defaultFormatId: string;
325
+ shortcut: {};
325
326
  };
326
327
  };
327
328
  }, {
@@ -432,6 +433,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
432
433
  customProps: {};
433
434
  outerPrintKeys: never[];
434
435
  defaultFormatId: string;
436
+ shortcut: {};
435
437
  };
436
438
  };
437
439
  }>> & {}>>;
@@ -456,6 +458,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
456
458
  curPrintParamList: never[];
457
459
  ireportExecuteMode: number;
458
460
  };
461
+ shortcutFn: any;
459
462
  options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
460
463
  operations: import("vue").Ref<import("../../shared/types").AnyObject[]>;
461
464
  downlistOperation: {
@@ -479,6 +482,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
479
482
  printCustomProps: import("vue").ComputedRef<any>;
480
483
  defaultPrintFormatId: import("vue").ComputedRef<any>;
481
484
  isPrintAllType: import("vue").ComputedRef<any>;
485
+ shortcutSettings: import("vue").ComputedRef<any>;
486
+ printAllShortcut: import("vue").ComputedRef<any>;
482
487
  showSettingItems: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
483
488
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
484
489
  initShowDownList: () => Promise<void>;
@@ -524,6 +529,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
524
529
  mergeTemplateList: (list: any[]) => any;
525
530
  initCRM: (formatListResult: any) => Promise<void>;
526
531
  init: () => Promise<boolean>;
532
+ registerShort: () => Promise<void>;
527
533
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
528
534
  reformatPrintParams: () => void;
529
535
  verifiySuccess: (token: string) => void;
@@ -816,6 +822,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
816
822
  customProps: {};
817
823
  outerPrintKeys: never[];
818
824
  defaultFormatId: string;
825
+ shortcut: {};
819
826
  };
820
827
  };
821
828
  }>>, {
@@ -328,6 +328,7 @@ declare const _default: import("vue").DefineComponent<{
328
328
  customProps: {};
329
329
  outerPrintKeys: never[];
330
330
  defaultFormatId: string;
331
+ shortcut: {};
331
332
  };
332
333
  };
333
334
  }, {
@@ -438,6 +439,7 @@ declare const _default: import("vue").DefineComponent<{
438
439
  customProps: {};
439
440
  outerPrintKeys: never[];
440
441
  defaultFormatId: string;
442
+ shortcut: {};
441
443
  };
442
444
  };
443
445
  }>> & {}>>;
@@ -462,6 +464,7 @@ declare const _default: import("vue").DefineComponent<{
462
464
  curPrintParamList: never[];
463
465
  ireportExecuteMode: number;
464
466
  };
467
+ shortcutFn: any;
465
468
  options: import("vue").Ref<AnyObject[]>;
466
469
  operations: import("vue").Ref<AnyObject[]>;
467
470
  downlistOperation: {
@@ -485,6 +488,8 @@ declare const _default: import("vue").DefineComponent<{
485
488
  printCustomProps: import("vue").ComputedRef<any>;
486
489
  defaultPrintFormatId: import("vue").ComputedRef<any>;
487
490
  isPrintAllType: import("vue").ComputedRef<any>;
491
+ shortcutSettings: import("vue").ComputedRef<any>;
492
+ printAllShortcut: import("vue").ComputedRef<any>;
488
493
  showSettingItems: import("vue").ComputedRef<AnyObject[]>;
489
494
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
490
495
  initShowDownList: () => Promise<void>;
@@ -530,6 +535,7 @@ declare const _default: import("vue").DefineComponent<{
530
535
  mergeTemplateList: (list: any[]) => any;
531
536
  initCRM: (formatListResult: any) => Promise<void>;
532
537
  init: () => Promise<boolean>;
538
+ registerShort: () => Promise<void>;
533
539
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
534
540
  reformatPrintParams: () => void;
535
541
  verifiySuccess: (token: string) => void;
@@ -822,6 +828,7 @@ declare const _default: import("vue").DefineComponent<{
822
828
  customProps: {};
823
829
  outerPrintKeys: never[];
824
830
  defaultFormatId: string;
831
+ shortcut: {};
825
832
  };
826
833
  };
827
834
  }>>, {
@@ -103,6 +103,7 @@ declare const _default: import("vue").DefineComponent<{
103
103
  customProps: {};
104
104
  outerPrintKeys: never[];
105
105
  defaultFormatId: string;
106
+ shortcut: {};
106
107
  };
107
108
  };
108
109
  }, {
@@ -216,6 +217,7 @@ declare const _default: import("vue").DefineComponent<{
216
217
  customProps: {};
217
218
  outerPrintKeys: never[];
218
219
  defaultFormatId: string;
220
+ shortcut: {};
219
221
  };
220
222
  };
221
223
  }>> & {}>>;
@@ -240,6 +242,7 @@ declare const _default: import("vue").DefineComponent<{
240
242
  curPrintParamList: never[];
241
243
  ireportExecuteMode: number;
242
244
  };
245
+ shortcutFn: any;
243
246
  options: import("vue").Ref<AnyObject[]>;
244
247
  operations: import("vue").Ref<AnyObject[]>;
245
248
  downlistOperation: {
@@ -263,6 +266,8 @@ declare const _default: import("vue").DefineComponent<{
263
266
  printCustomProps: import("vue").ComputedRef<any>;
264
267
  defaultPrintFormatId: import("vue").ComputedRef<any>;
265
268
  isPrintAllType: import("vue").ComputedRef<any>;
269
+ shortcutSettings: import("vue").ComputedRef<any>;
270
+ printAllShortcut: import("vue").ComputedRef<any>;
266
271
  showSettingItems: import("vue").ComputedRef<AnyObject[]>;
267
272
  isSelectedAll: import("vue").WritableComputedRef<boolean>;
268
273
  initShowDownList: () => Promise<void>;
@@ -308,6 +313,7 @@ declare const _default: import("vue").DefineComponent<{
308
313
  mergeTemplateList: (list: any[]) => any;
309
314
  initCRM: (formatListResult: any) => Promise<void>;
310
315
  init: () => Promise<boolean>;
316
+ registerShort: () => Promise<void>;
311
317
  handleClickBtn: (visible?: boolean) => Promise<false | undefined>;
312
318
  reformatPrintParams: () => void;
313
319
  verifiySuccess: (token: string) => void;
@@ -603,6 +609,7 @@ declare const _default: import("vue").DefineComponent<{
603
609
  customProps: {};
604
610
  outerPrintKeys: never[];
605
611
  defaultFormatId: string;
612
+ shortcut: {};
606
613
  };
607
614
  };
608
615
  }>>, {