cnhis-design-vue 3.3.2-beta.22 → 3.3.2-beta.25
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/audio-sdk/index.d.ts +20 -7
- package/es/components/audio-sdk/src/Index.vue.d.ts +20 -7
- package/es/components/audio-sdk/src/Index.vue2.js +5 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +5 -5
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +5 -5
- package/es/components/button-print/index.d.ts +2 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +20 -8
- package/es/components/callback/src/components/render/popupMaps.d.ts +2 -2
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +30 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +30 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +24 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +6 -0
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +64 -55
- package/es/components/form-render/src/hooks/useFieldNormalize.js +4 -3
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -0
- package/es/components/form-render/src/utils/business.d.ts +2 -1
- package/es/components/form-render/src/utils/business.js +45 -2
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +2 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -2
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +6 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
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
|
+
```
|
@@ -28,6 +28,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
28
28
|
type: StringConstructor;
|
29
29
|
default: string;
|
30
30
|
};
|
31
|
+
textPrefix: {
|
32
|
+
type: StringConstructor;
|
33
|
+
default: string;
|
34
|
+
};
|
31
35
|
}, {
|
32
36
|
consultationRecordUrl: string;
|
33
37
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
@@ -57,6 +61,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
57
61
|
type: StringConstructor;
|
58
62
|
default: string;
|
59
63
|
};
|
64
|
+
textPrefix: {
|
65
|
+
type: StringConstructor;
|
66
|
+
default: string;
|
67
|
+
};
|
60
68
|
}>> & {
|
61
69
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
62
70
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -73,7 +81,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
73
81
|
loading: import("vue").Ref<boolean>;
|
74
82
|
content: any;
|
75
83
|
wsConnected: import("vue").ComputedRef<boolean>;
|
76
|
-
recorderStatus: import("vue").ComputedRef<"" | "
|
84
|
+
recorderStatus: import("vue").ComputedRef<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
77
85
|
recordingProps: import("vue").ComputedRef<{
|
78
86
|
token: string | undefined;
|
79
87
|
configs: import("../../shared/types").AnyObject;
|
@@ -81,7 +89,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
81
89
|
intentionCode: string;
|
82
90
|
show: boolean;
|
83
91
|
wsConnected: boolean;
|
84
|
-
recorderStatus: "" | "
|
92
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
85
93
|
startWaveViewMethod: (options: import("../../shared/types").AnyObject) => void;
|
86
94
|
}>;
|
87
95
|
isGenerateMedicalRecord: import("vue").ComputedRef<boolean>;
|
@@ -132,7 +140,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
132
140
|
type: import("vue").PropType<import("../../shared/types").AnyFn>;
|
133
141
|
};
|
134
142
|
recorderStatus: {
|
135
|
-
type: import("vue").PropType<"" | "
|
143
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
136
144
|
default: string;
|
137
145
|
};
|
138
146
|
}, {
|
@@ -174,7 +182,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
174
182
|
type: import("vue").PropType<import("../../shared/types").AnyFn>;
|
175
183
|
};
|
176
184
|
recorderStatus: {
|
177
|
-
type: import("vue").PropType<"" | "
|
185
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
178
186
|
default: string;
|
179
187
|
};
|
180
188
|
}>> & {
|
@@ -192,7 +200,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
192
200
|
data: string;
|
193
201
|
}>;
|
194
202
|
wsConnected: import("vue").Ref<boolean>;
|
195
|
-
recorderStatus: import("vue").Ref<"" | "
|
203
|
+
recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
196
204
|
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
197
205
|
audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
|
198
206
|
contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
|
@@ -308,7 +316,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
308
316
|
type: import("vue").PropType<import("../../shared/types").AnyFn>;
|
309
317
|
};
|
310
318
|
recorderStatus: {
|
311
|
-
type: import("vue").PropType<"" | "
|
319
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
312
320
|
default: string;
|
313
321
|
};
|
314
322
|
}>> & {
|
@@ -328,7 +336,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
328
336
|
showBtn: boolean;
|
329
337
|
wsConnected: boolean;
|
330
338
|
fromSdk: boolean;
|
331
|
-
recorderStatus: "" | "
|
339
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
332
340
|
}>;
|
333
341
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail" | "recordingHeightChange")[], "close" | "success" | "fail" | "recordingHeightChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
334
342
|
timed: {
|
@@ -355,6 +363,10 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
355
363
|
type: StringConstructor;
|
356
364
|
default: string;
|
357
365
|
};
|
366
|
+
textPrefix: {
|
367
|
+
type: StringConstructor;
|
368
|
+
default: string;
|
369
|
+
};
|
358
370
|
}>> & {
|
359
371
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
360
372
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -365,5 +377,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
|
|
365
377
|
realTimeRecognition: boolean;
|
366
378
|
allowPunctuationMark: boolean;
|
367
379
|
useSource: string;
|
380
|
+
textPrefix: string;
|
368
381
|
}>>;
|
369
382
|
export default AudioSdk;
|
@@ -26,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
26
|
type: StringConstructor;
|
27
27
|
default: string;
|
28
28
|
};
|
29
|
+
textPrefix: {
|
30
|
+
type: StringConstructor;
|
31
|
+
default: string;
|
32
|
+
};
|
29
33
|
}, {
|
30
34
|
consultationRecordUrl: string;
|
31
35
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
@@ -55,6 +59,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
59
|
type: StringConstructor;
|
56
60
|
default: string;
|
57
61
|
};
|
62
|
+
textPrefix: {
|
63
|
+
type: StringConstructor;
|
64
|
+
default: string;
|
65
|
+
};
|
58
66
|
}>> & {
|
59
67
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
60
68
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -71,7 +79,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
79
|
loading: import("vue").Ref<boolean>;
|
72
80
|
content: any;
|
73
81
|
wsConnected: import("vue").ComputedRef<boolean>;
|
74
|
-
recorderStatus: import("vue").ComputedRef<"" | "
|
82
|
+
recorderStatus: import("vue").ComputedRef<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
75
83
|
recordingProps: import("vue").ComputedRef<{
|
76
84
|
token: string | undefined;
|
77
85
|
configs: AnyObject;
|
@@ -79,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
87
|
intentionCode: string;
|
80
88
|
show: boolean;
|
81
89
|
wsConnected: boolean;
|
82
|
-
recorderStatus: "" | "
|
90
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
83
91
|
startWaveViewMethod: (options: AnyObject) => void;
|
84
92
|
}>;
|
85
93
|
isGenerateMedicalRecord: import("vue").ComputedRef<boolean>;
|
@@ -130,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
138
|
type: PropType<import("../../../shared/types").AnyFn>;
|
131
139
|
};
|
132
140
|
recorderStatus: {
|
133
|
-
type: PropType<"" | "
|
141
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
134
142
|
default: string;
|
135
143
|
};
|
136
144
|
}, {
|
@@ -172,7 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
172
180
|
type: PropType<import("../../../shared/types").AnyFn>;
|
173
181
|
};
|
174
182
|
recorderStatus: {
|
175
|
-
type: PropType<"" | "
|
183
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
176
184
|
default: string;
|
177
185
|
};
|
178
186
|
}>> & {
|
@@ -190,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
190
198
|
data: string;
|
191
199
|
}>;
|
192
200
|
wsConnected: import("vue").Ref<boolean>;
|
193
|
-
recorderStatus: import("vue").Ref<"" | "
|
201
|
+
recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
194
202
|
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
195
203
|
audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
|
196
204
|
contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
|
@@ -306,7 +314,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
306
314
|
type: PropType<import("../../../shared/types").AnyFn>;
|
307
315
|
};
|
308
316
|
recorderStatus: {
|
309
|
-
type: PropType<"" | "
|
317
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
310
318
|
default: string;
|
311
319
|
};
|
312
320
|
}>> & {
|
@@ -326,7 +334,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
326
334
|
showBtn: boolean;
|
327
335
|
wsConnected: boolean;
|
328
336
|
fromSdk: boolean;
|
329
|
-
recorderStatus: "" | "
|
337
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
330
338
|
}>;
|
331
339
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "fail" | "recordingHeightChange")[], "close" | "success" | "fail" | "recordingHeightChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
332
340
|
timed: {
|
@@ -353,6 +361,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
353
361
|
type: StringConstructor;
|
354
362
|
default: string;
|
355
363
|
};
|
364
|
+
textPrefix: {
|
365
|
+
type: StringConstructor;
|
366
|
+
default: string;
|
367
|
+
};
|
356
368
|
}>> & {
|
357
369
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
358
370
|
onClose?: ((...args: any[]) => any) | undefined;
|
@@ -363,5 +375,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
363
375
|
realTimeRecognition: boolean;
|
364
376
|
allowPunctuationMark: boolean;
|
365
377
|
useSource: string;
|
378
|
+
textPrefix: string;
|
366
379
|
}>;
|
367
380
|
export default _default;
|
@@ -40,6 +40,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
40
|
useSource: {
|
41
41
|
type: String,
|
42
42
|
default: ""
|
43
|
+
},
|
44
|
+
textPrefix: {
|
45
|
+
type: String,
|
46
|
+
default: ""
|
43
47
|
}
|
44
48
|
},
|
45
49
|
emits: ["close", "success", "fail", "recordingHeightChange"],
|
@@ -127,7 +131,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
127
131
|
data
|
128
132
|
} = await axios.post(consultationRecordUrl, {
|
129
133
|
taskId: 1,
|
130
|
-
audioText,
|
134
|
+
audioText: props.textPrefix + audioText,
|
131
135
|
intentionCode: props.intentionCode,
|
132
136
|
configs: props.configs || {}
|
133
137
|
}, {
|
@@ -17,7 +17,7 @@ export default class AudioSDK {
|
|
17
17
|
wsConnected: import("vue").Ref<boolean>;
|
18
18
|
private loading;
|
19
19
|
private pauseContent;
|
20
|
-
recorderStatus: import("vue").Ref<"" | "
|
20
|
+
recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
21
21
|
recorderClosing: import("vue").Ref<boolean>;
|
22
22
|
waveView: any;
|
23
23
|
constructor();
|
@@ -50,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
50
|
type: import("vue").PropType<import("../../../../shared/types").AnyFn>;
|
51
51
|
};
|
52
52
|
recorderStatus: {
|
53
|
-
type: import("vue").PropType<"" | "
|
53
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
54
54
|
default: string;
|
55
55
|
};
|
56
56
|
}, {
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
type: import("vue").PropType<import("../../../../shared/types").AnyFn>;
|
93
93
|
};
|
94
94
|
recorderStatus: {
|
95
|
-
type: import("vue").PropType<"" | "
|
95
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
96
96
|
default: string;
|
97
97
|
};
|
98
98
|
}>> & {
|
@@ -110,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
110
|
data: string;
|
111
111
|
}>;
|
112
112
|
wsConnected: import("vue").Ref<boolean>;
|
113
|
-
recorderStatus: import("vue").Ref<"" | "
|
113
|
+
recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
114
114
|
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
115
115
|
audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
|
116
116
|
contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
|
@@ -226,7 +226,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
226
226
|
type: import("vue").PropType<import("../../../../shared/types").AnyFn>;
|
227
227
|
};
|
228
228
|
recorderStatus: {
|
229
|
-
type: import("vue").PropType<"" | "
|
229
|
+
type: import("vue").PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
230
230
|
default: string;
|
231
231
|
};
|
232
232
|
}>> & {
|
@@ -246,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
246
246
|
showBtn: boolean;
|
247
247
|
wsConnected: boolean;
|
248
248
|
fromSdk: boolean;
|
249
|
-
recorderStatus: "" | "
|
249
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
250
250
|
}>;
|
251
251
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
252
252
|
content: {
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
type: PropType<AnyFn>;
|
39
39
|
};
|
40
40
|
recorderStatus: {
|
41
|
-
type: PropType<"" | "
|
41
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
42
42
|
default: string;
|
43
43
|
};
|
44
44
|
}, {
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
80
|
type: PropType<AnyFn>;
|
81
81
|
};
|
82
82
|
recorderStatus: {
|
83
|
-
type: PropType<"" | "
|
83
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
84
84
|
default: string;
|
85
85
|
};
|
86
86
|
}>> & {
|
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
98
98
|
data: string;
|
99
99
|
}>;
|
100
100
|
wsConnected: import("vue").Ref<boolean>;
|
101
|
-
recorderStatus: import("vue").Ref<"" | "
|
101
|
+
recorderStatus: import("vue").Ref<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
102
102
|
audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
|
103
103
|
audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
|
104
104
|
contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
|
@@ -214,7 +214,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
214
214
|
type: PropType<AnyFn>;
|
215
215
|
};
|
216
216
|
recorderStatus: {
|
217
|
-
type: PropType<"" | "
|
217
|
+
type: PropType<"" | "stop" | "fail" | "recording" | "pause" | "ws_close">;
|
218
218
|
default: string;
|
219
219
|
};
|
220
220
|
}>> & {
|
@@ -234,6 +234,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
234
234
|
showBtn: boolean;
|
235
235
|
wsConnected: boolean;
|
236
236
|
fromSdk: boolean;
|
237
|
-
recorderStatus: "" | "
|
237
|
+
recorderStatus: "" | "stop" | "fail" | "recording" | "pause" | "ws_close";
|
238
238
|
}>;
|
239
239
|
export default _default;
|
@@ -547,6 +547,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
547
547
|
isPrintDisabled: (outer: any, j: number) => any;
|
548
548
|
directPrint: () => Promise<void>;
|
549
549
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
550
|
+
handleShortcutStartAndStop: (status: "start" | "stop") => void;
|
550
551
|
NDropdown: any;
|
551
552
|
NButton: any;
|
552
553
|
NIcon: any;
|
@@ -1590,6 +1591,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
1590
1591
|
}>;
|
1591
1592
|
emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
|
1592
1593
|
directPrint: () => Promise<void>;
|
1594
|
+
handleShortcutStartAndStop: (status: "start" | "stop") => void;
|
1593
1595
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1594
1596
|
printParams: {
|
1595
1597
|
type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
|
@@ -553,6 +553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
553
553
|
isPrintDisabled: (outer: any, j: number) => any;
|
554
554
|
directPrint: () => Promise<void>;
|
555
555
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
556
|
+
handleShortcutStartAndStop: (status: "start" | "stop") => void;
|
556
557
|
NDropdown: any;
|
557
558
|
NButton: any;
|
558
559
|
NIcon: any;
|
@@ -1599,6 +1600,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1599
1600
|
}>;
|
1600
1601
|
emits: (event: "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", ...args: any[]) => void;
|
1601
1602
|
directPrint: () => Promise<void>;
|
1603
|
+
handleShortcutStartAndStop: (status: 'start' | 'stop') => void;
|
1602
1604
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint")[], "success" | "error" | "cancel" | "clickoutside" | "saveOuterPrint", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1603
1605
|
printParams: {
|
1604
1606
|
type: PropType<AnyObject[]>;
|
@@ -187,8 +187,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
187
187
|
var _a;
|
188
188
|
(_a = printComponentRef.value) == null ? void 0 : _a.directPrint();
|
189
189
|
};
|
190
|
+
const handleShortcutStartAndStop = (status) => {
|
191
|
+
var _a;
|
192
|
+
(_a = printComponentRef.value) == null ? void 0 : _a.handleShortcutStartAndStop(status);
|
193
|
+
};
|
190
194
|
expose({
|
191
|
-
directPrint
|
195
|
+
directPrint,
|
196
|
+
handleShortcutStartAndStop
|
192
197
|
});
|
193
198
|
return (_ctx, _cache) => {
|
194
199
|
return openBlock(), createBlock(resolveDynamicComponent(unref(isComponent)), mergeProps({
|
@@ -315,6 +315,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
315
315
|
isPrintDisabled: (outer: any, j: number) => any;
|
316
316
|
directPrint: () => Promise<void>;
|
317
317
|
directDefaultFormatPrint: (defaultFormatId: string) => Promise<void>;
|
318
|
+
handleShortcutStartAndStop: (status: 'start' | 'stop') => void;
|
318
319
|
NDropdown: any;
|
319
320
|
NButton: any;
|
320
321
|
NIcon: any;
|
@@ -1046,6 +1046,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1046
1046
|
const key = keys[i];
|
1047
1047
|
const field = shortcutSettings.value[key];
|
1048
1048
|
const {
|
1049
|
+
start,
|
1049
1050
|
stop,
|
1050
1051
|
signature
|
1051
1052
|
} = useShortcuts().register({
|
@@ -1071,7 +1072,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1071
1072
|
}
|
1072
1073
|
}
|
1073
1074
|
});
|
1074
|
-
shortcutFn.value[key] =
|
1075
|
+
shortcutFn.value[key] = {
|
1076
|
+
start,
|
1077
|
+
stop
|
1078
|
+
};
|
1075
1079
|
}
|
1076
1080
|
}
|
1077
1081
|
};
|
@@ -1121,12 +1125,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1121
1125
|
state.isInited = false;
|
1122
1126
|
});
|
1123
1127
|
onBeforeUnmount(() => {
|
1124
|
-
|
1125
|
-
if (shortcutKeys.length > 0) {
|
1126
|
-
shortcutKeys.forEach((key) => {
|
1127
|
-
shortcutFn.value[key] && shortcutFn.value[key]();
|
1128
|
-
});
|
1129
|
-
}
|
1128
|
+
handleShortcutStartAndStop("stop");
|
1130
1129
|
});
|
1131
1130
|
watch(() => props.params, (val) => {
|
1132
1131
|
const keys = Object.keys(state.templateParams);
|
@@ -1168,8 +1167,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1168
1167
|
handleOneTypePrint(curFormat.templateCode, curFormat.templateId, curFormat.key, false);
|
1169
1168
|
}
|
1170
1169
|
}
|
1170
|
+
function handleShortcutStartAndStop(status) {
|
1171
|
+
const shortcutStatusList = ["start", "stop"];
|
1172
|
+
if (!shortcutStatusList.includes(status))
|
1173
|
+
return;
|
1174
|
+
const shortcutKeys = Object.keys(shortcutFn.value);
|
1175
|
+
if (shortcutKeys.length > 0) {
|
1176
|
+
shortcutKeys.forEach((key) => {
|
1177
|
+
var _a, _b;
|
1178
|
+
shortcutFn.value[key] && ((_b = (_a = shortcutFn.value[key])[status]) == null ? void 0 : _b.call(_a));
|
1179
|
+
});
|
1180
|
+
}
|
1181
|
+
}
|
1171
1182
|
expose({
|
1172
|
-
directPrint
|
1183
|
+
directPrint,
|
1184
|
+
handleShortcutStartAndStop
|
1173
1185
|
});
|
1174
1186
|
return (_ctx, _cache) => {
|
1175
1187
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [createCommentVNode(" \u5916\u663E\u6309\u94AE\u96C6\u5408 "), createVNode(unref(NButtonGroup), {
|
@@ -4243,7 +4243,7 @@ export declare const CallbackMaps: Map<string, {
|
|
4243
4243
|
dateOperationalForm?: {
|
4244
4244
|
scene: "DIFF" | "CALC";
|
4245
4245
|
precision: string;
|
4246
|
-
diffValUnit: "
|
4246
|
+
diffValUnit: "HOUR" | "DAY" | "MIN" | "DHM";
|
4247
4247
|
diffValField: string;
|
4248
4248
|
startDateField: string;
|
4249
4249
|
endDateField: string;
|
@@ -7840,7 +7840,7 @@ export declare const CallbackMaps: Map<string, {
|
|
7840
7840
|
dateOperationalForm?: {
|
7841
7841
|
scene: "DIFF" | "CALC";
|
7842
7842
|
precision: string;
|
7843
|
-
diffValUnit: "
|
7843
|
+
diffValUnit: "HOUR" | "DAY" | "MIN" | "DHM";
|
7844
7844
|
diffValField: string;
|
7845
7845
|
startDateField: string;
|
7846
7846
|
endDateField: string;
|