cnhis-design-vue 3.3.3-beta.3 → 3.3.3-beta.7
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/src/Index.vue2.js +7 -7
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +5 -72
- package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
- package/es/components/select-person/src/{SelectPerson.vue.js → SelectPersonRole.vue.js} +2 -2
- package/es/components/select-person/src/{SelectPerson.vue2.js → SelectPersonRole.vue2.js} +1 -1
- package/es/components/select-person/src/index.vue2.js +3 -3
- package/es/components/select-person/src/utils/index.js +4 -6
- 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
|
+
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass,
|
1
|
+
import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createBlock, mergeProps, createCommentVNode } from 'vue';
|
2
2
|
import axios from 'axios';
|
3
3
|
import { isString, isObject } from 'lodash-es';
|
4
4
|
import CRecording from './components/recording.vue.js';
|
@@ -127,6 +127,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
127
127
|
const audioText = isString(content.value) ? content.value : isObject(content.value) ? (_b = content.value) == null ? void 0 : _b.data : "";
|
128
128
|
if (!audioText)
|
129
129
|
return;
|
130
|
+
if (!isGenerateMedicalRecord.value)
|
131
|
+
return;
|
130
132
|
const {
|
131
133
|
data
|
132
134
|
} = await axios.post(consultationRecordUrl, {
|
@@ -163,10 +165,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
163
165
|
...attrs
|
164
166
|
});
|
165
167
|
const {
|
166
|
-
|
167
|
-
|
168
|
+
data,
|
169
|
+
success
|
168
170
|
} = res || {};
|
169
|
-
if (
|
171
|
+
if (!success) {
|
170
172
|
onFail(res);
|
171
173
|
return;
|
172
174
|
}
|
@@ -198,8 +200,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
198
200
|
return openBlock(), createElementBlock("div", {
|
199
201
|
style: normalizeStyle(unref(cssVars)),
|
200
202
|
class: normalizeClass(["c-recording-sdk-wrapper", ["c-recording-sdk-wrapper-" + props.useSource]])
|
201
|
-
}, [unref(isGenerateMedicalRecord) ? (openBlock(), createElementBlock(Fragment, {
|
202
|
-
key: 0
|
203
203
|
}, [isRecording.value ? (openBlock(), createBlock(CRecording, mergeProps({
|
204
204
|
key: 0,
|
205
205
|
ref_key: "recordingRef",
|
@@ -215,7 +215,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
215
|
onResume,
|
216
216
|
onToAnalyzing: handleToAnalyzing,
|
217
217
|
onHeightChange: handleHeightChange
|
218
|
-
}), null, 16, ["loading"])) : createCommentVNode("v-if", true)],
|
218
|
+
}), null, 16, ["loading"])) : createCommentVNode("v-if", true)], 6);
|
219
219
|
};
|
220
220
|
}
|
221
221
|
});
|
@@ -100,7 +100,7 @@ const _AudioSDK2 = class {
|
|
100
100
|
}
|
101
101
|
async startWaveView(options) {
|
102
102
|
this._audioSDK.clearWaveView();
|
103
|
-
this._audioSDK.createWaveView(options.waveSelector, options.waveProps);
|
103
|
+
this._audioSDK.createWaveView(options.waveSelector(), options.waveProps);
|
104
104
|
}
|
105
105
|
async pause() {
|
106
106
|
return this._audioSDK.pause();
|
@@ -534,12 +534,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
534
534
|
}>;
|
535
535
|
developMode: boolean;
|
536
536
|
draggable: boolean;
|
537
|
-
isHighlightRow: boolean;
|
538
|
-
idx: number;
|
539
|
-
isHighlight: boolean;
|
540
|
-
isFieldSet: boolean;
|
541
537
|
fieldDescribeMode: "column" | "tooltip";
|
538
|
+
isFieldSet: boolean;
|
542
539
|
hideExpressionOption: AnyObject[];
|
540
|
+
idx: number;
|
541
|
+
isHighlight: boolean;
|
542
|
+
isHighlightRow: boolean;
|
543
543
|
}>;
|
544
544
|
EditDialog: import("vue").DefineComponent<{
|
545
545
|
visible: {
|
@@ -563,12 +563,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
563
563
|
}>;
|
564
564
|
developMode: boolean;
|
565
565
|
draggable: boolean;
|
566
|
-
isHighlightRow: boolean;
|
567
|
-
idx: number;
|
568
|
-
isHighlight: boolean;
|
569
|
-
isFieldSet: boolean;
|
570
566
|
fieldDescribeMode: "column" | "tooltip";
|
567
|
+
isFieldSet: boolean;
|
571
568
|
hideExpressionOption: AnyObject[];
|
569
|
+
idx: number;
|
570
|
+
isHighlight: boolean;
|
571
|
+
isHighlightRow: boolean;
|
572
572
|
}>;
|
573
573
|
setStyle: typeof setStyle;
|
574
574
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -729,12 +729,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
729
729
|
}>;
|
730
730
|
developMode: boolean;
|
731
731
|
draggable: boolean;
|
732
|
-
isHighlightRow: boolean;
|
733
|
-
idx: number;
|
734
|
-
isHighlight: boolean;
|
735
|
-
isFieldSet: boolean;
|
736
732
|
fieldDescribeMode: "column" | "tooltip";
|
733
|
+
isFieldSet: boolean;
|
737
734
|
hideExpressionOption: AnyObject[];
|
735
|
+
idx: number;
|
736
|
+
isHighlight: boolean;
|
737
|
+
isHighlightRow: boolean;
|
738
738
|
}>;
|
739
739
|
isArray: {
|
740
740
|
(value?: any): value is any[];
|
@@ -867,9 +867,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
867
867
|
showSeq: boolean;
|
868
868
|
developMode: boolean;
|
869
869
|
footerFlag: boolean;
|
870
|
-
fieldDescribeMode: "column" | "tooltip";
|
871
870
|
customColumns: FieldSetColumnItem[];
|
872
871
|
showSortPriority: boolean;
|
873
872
|
showHeadFilter: boolean;
|
873
|
+
fieldDescribeMode: "column" | "tooltip";
|
874
874
|
}>;
|
875
875
|
export default _default;
|
@@ -383,11 +383,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
383
383
|
}>;
|
384
384
|
developMode: boolean;
|
385
385
|
draggable: boolean;
|
386
|
-
isHighlightRow: boolean;
|
387
|
-
idx: number;
|
388
|
-
isHighlight: boolean;
|
389
|
-
isFieldSet: boolean;
|
390
386
|
fieldDescribeMode: "column" | "tooltip";
|
387
|
+
isFieldSet: boolean;
|
391
388
|
hideExpressionOption: AnyObject[];
|
389
|
+
idx: number;
|
390
|
+
isHighlight: boolean;
|
391
|
+
isHighlightRow: boolean;
|
392
392
|
}>;
|
393
393
|
export default _default;
|
@@ -225,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
round: "",
|
226
226
|
size: 100,
|
227
227
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
228
|
-
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
228
|
+
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
229
229
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
230
230
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
231
231
|
strong: "",
|