cnhis-design-vue 3.1.21-beta.8 → 3.1.21-beta.9
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.
|
@@ -15,8 +15,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
15
15
|
age: string;
|
|
16
16
|
ageUnit?: string | undefined;
|
|
17
17
|
tagList?: Partial<{
|
|
18
|
-
type
|
|
18
|
+
type?: "warning" | "info" | undefined;
|
|
19
19
|
content: string;
|
|
20
|
+
color?: {
|
|
21
|
+
color?: string | undefined;
|
|
22
|
+
textColor?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
20
24
|
}>[] | undefined;
|
|
21
25
|
}>>;
|
|
22
26
|
default: () => {};
|
|
@@ -58,8 +62,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
58
62
|
age: string;
|
|
59
63
|
ageUnit?: string | undefined;
|
|
60
64
|
tagList?: Partial<{
|
|
61
|
-
type
|
|
65
|
+
type?: "warning" | "info" | undefined;
|
|
62
66
|
content: string;
|
|
67
|
+
color?: {
|
|
68
|
+
color?: string | undefined;
|
|
69
|
+
textColor?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
63
71
|
}>[] | undefined;
|
|
64
72
|
}>>;
|
|
65
73
|
default: () => {};
|
|
@@ -93,7 +101,14 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
93
101
|
toggleCompact: () => void;
|
|
94
102
|
openPatientInfo: () => void;
|
|
95
103
|
fieldSet: () => void;
|
|
96
|
-
getTagColor: (type:
|
|
104
|
+
getTagColor: ({ type }: Partial<{
|
|
105
|
+
type?: "warning" | "info" | undefined;
|
|
106
|
+
content: string;
|
|
107
|
+
color?: {
|
|
108
|
+
color?: string | undefined;
|
|
109
|
+
textColor?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
}>) => {
|
|
97
112
|
color: string;
|
|
98
113
|
textColor: string;
|
|
99
114
|
};
|
|
@@ -286,8 +301,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
286
301
|
age: string;
|
|
287
302
|
ageUnit?: string | undefined;
|
|
288
303
|
tagList?: Partial<{
|
|
289
|
-
type
|
|
304
|
+
type?: "warning" | "info" | undefined;
|
|
290
305
|
content: string;
|
|
306
|
+
color?: {
|
|
307
|
+
color?: string | undefined;
|
|
308
|
+
textColor?: string | undefined;
|
|
309
|
+
} | undefined;
|
|
291
310
|
}>[] | undefined;
|
|
292
311
|
}>>;
|
|
293
312
|
default: () => {};
|
|
@@ -324,8 +343,12 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
324
343
|
age: string;
|
|
325
344
|
ageUnit?: string | undefined;
|
|
326
345
|
tagList?: Partial<{
|
|
327
|
-
type
|
|
346
|
+
type?: "warning" | "info" | undefined;
|
|
328
347
|
content: string;
|
|
348
|
+
color?: {
|
|
349
|
+
color?: string | undefined;
|
|
350
|
+
textColor?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
329
352
|
}>[] | undefined;
|
|
330
353
|
}>;
|
|
331
354
|
labelField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, withCtx, createTextVNode, vShow, createVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, nextTick, onMounted, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, mergeProps, withCtx, createTextVNode, vShow, createVNode } from 'vue';
|
|
2
2
|
import { NTag, NDescriptions, NDescriptionsItem } from 'naive-ui';
|
|
3
3
|
import { useThrottleFn, useEventListener } from '@vueuse/core';
|
|
4
4
|
import script$1 from '../../../shared/components/SlotRender/SlotRender.js';
|
|
@@ -57,11 +57,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
function fieldSet() {
|
|
58
58
|
emit("fieldSet");
|
|
59
59
|
}
|
|
60
|
-
function getTagColor(type) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
};
|
|
60
|
+
function getTagColor({ type = "warning" }) {
|
|
61
|
+
const colorMap = { warning: "#fcc200", info: "rgba(45, 122, 255, 0.1)" };
|
|
62
|
+
const textColorMap = { warning: "#fff", info: "#2563F4" };
|
|
63
|
+
return { color: colorMap[type], textColor: textColorMap[type] };
|
|
65
64
|
}
|
|
66
65
|
function getDescriptionItemStyle({ bold = true, contentStyle = {} } = {}) {
|
|
67
66
|
return { fontWeight: bold ? 700 : 500, ...contentStyle };
|
|
@@ -124,17 +123,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
123
|
__props.patientInfo.sex ? (openBlock(), createElementBlock("div", _hoisted_6, "/ " + toDisplayString(__props.patientInfo.sex), 1)) : createCommentVNode("v-if", true),
|
|
125
124
|
__props.patientInfo.age ? (openBlock(), createElementBlock("div", _hoisted_7, " / " + toDisplayString(__props.patientInfo.age) + toDisplayString(__props.patientInfo.ageUnit || "\u5C81"), 1)) : createCommentVNode("v-if", true),
|
|
126
125
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.patientInfo.tagList || [], (tag) => {
|
|
127
|
-
return withDirectives((openBlock(), createBlock(unref(NTag), {
|
|
126
|
+
return withDirectives((openBlock(), createBlock(unref(NTag), mergeProps({
|
|
128
127
|
key: tag.content,
|
|
129
128
|
size: "medium",
|
|
130
129
|
bordered: false,
|
|
131
|
-
color: getTagColor(tag
|
|
132
|
-
}, {
|
|
130
|
+
color: getTagColor(tag)
|
|
131
|
+
}, tag), {
|
|
133
132
|
default: withCtx(() => [
|
|
134
133
|
createTextVNode(toDisplayString(tag.content), 1)
|
|
135
134
|
]),
|
|
136
135
|
_: 2
|
|
137
|
-
},
|
|
136
|
+
}, 1040, ["color"])), [
|
|
138
137
|
[vShow, tag.content]
|
|
139
138
|
]);
|
|
140
139
|
}), 128))
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../es/shared/types';
|
|
2
2
|
import { CSSProperties, PropType } from 'vue';
|
|
3
|
+
declare type PatientTag = Partial<{
|
|
4
|
+
type?: 'warning' | 'info';
|
|
5
|
+
content: string;
|
|
6
|
+
color?: {
|
|
7
|
+
color?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
3
11
|
declare const _default: import("vue").DefineComponent<{
|
|
4
12
|
compact: {
|
|
5
13
|
type: BooleanConstructor;
|
|
@@ -16,8 +24,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
24
|
age: string;
|
|
17
25
|
ageUnit?: string | undefined;
|
|
18
26
|
tagList?: Partial<{
|
|
19
|
-
type
|
|
27
|
+
type?: "warning" | "info" | undefined;
|
|
20
28
|
content: string;
|
|
29
|
+
color?: {
|
|
30
|
+
color?: string | undefined;
|
|
31
|
+
textColor?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
21
33
|
}>[] | undefined;
|
|
22
34
|
}>>;
|
|
23
35
|
default: () => {};
|
|
@@ -59,8 +71,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
71
|
age: string;
|
|
60
72
|
ageUnit?: string | undefined;
|
|
61
73
|
tagList?: Partial<{
|
|
62
|
-
type
|
|
74
|
+
type?: "warning" | "info" | undefined;
|
|
63
75
|
content: string;
|
|
76
|
+
color?: {
|
|
77
|
+
color?: string | undefined;
|
|
78
|
+
textColor?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
64
80
|
}>[] | undefined;
|
|
65
81
|
}>>;
|
|
66
82
|
default: () => {};
|
|
@@ -94,7 +110,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
110
|
toggleCompact: () => void;
|
|
95
111
|
openPatientInfo: () => void;
|
|
96
112
|
fieldSet: () => void;
|
|
97
|
-
getTagColor: (type:
|
|
113
|
+
getTagColor: ({ type }: PatientTag) => {
|
|
98
114
|
color: string;
|
|
99
115
|
textColor: string;
|
|
100
116
|
};
|
|
@@ -287,8 +303,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
287
303
|
age: string;
|
|
288
304
|
ageUnit?: string | undefined;
|
|
289
305
|
tagList?: Partial<{
|
|
290
|
-
type
|
|
306
|
+
type?: "warning" | "info" | undefined;
|
|
291
307
|
content: string;
|
|
308
|
+
color?: {
|
|
309
|
+
color?: string | undefined;
|
|
310
|
+
textColor?: string | undefined;
|
|
311
|
+
} | undefined;
|
|
292
312
|
}>[] | undefined;
|
|
293
313
|
}>>;
|
|
294
314
|
default: () => {};
|
|
@@ -325,8 +345,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
325
345
|
age: string;
|
|
326
346
|
ageUnit?: string | undefined;
|
|
327
347
|
tagList?: Partial<{
|
|
328
|
-
type
|
|
348
|
+
type?: "warning" | "info" | undefined;
|
|
329
349
|
content: string;
|
|
350
|
+
color?: {
|
|
351
|
+
color?: string | undefined;
|
|
352
|
+
textColor?: string | undefined;
|
|
353
|
+
} | undefined;
|
|
330
354
|
}>[] | undefined;
|
|
331
355
|
}>;
|
|
332
356
|
labelField: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.21-beta.
|
|
3
|
+
"version": "3.1.21-beta.9",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"iOS 7",
|
|
67
67
|
"last 3 iOS versions"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "340ff7172f0555f7c5e352a6007752d50cad288f"
|
|
70
70
|
}
|