cnhis-design-vue 3.2.8-release.0 → 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/README.md +87 -87
- 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/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- 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/select-label/src/LabelFormContent.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/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -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/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- 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
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(/( |\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};
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
@@ -0,0 +1 @@
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
@@ -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;
|