cnhis-design-vue 3.1.21-beta.1 → 3.1.21-beta.11
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 +123 -123
- package/es/components/big-table/index.d.ts +13 -14
- package/es/components/big-table/src/BigTable.vue.d.ts +13 -14
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +34 -21
- package/es/components/big-table/src/bigTableProps.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
- package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
- package/es/components/big-table/src/hooks/useEdit2.js +3 -2
- package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
- package/es/components/big-table/src/hooks/useFormat2.js +11 -2
- package/es/components/fabric-chart/src/components/PopupMenu.js +9 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
- package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
- package/es/components/form-config/index.d.ts +1 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
- package/es/components/form-render/index2.js +4 -5
- package/es/components/form-render/src/FormRender.js +3 -3
- package/es/components/form-render/src/components/renderer/cascader.js +3 -4
- package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
- package/es/components/form-render/src/components/renderer/combination.js +2 -4
- package/es/components/form-render/src/components/renderer/complex.js +1 -4
- package/es/components/form-render/src/components/renderer/date.js +12 -3
- package/es/components/form-render/src/components/renderer/formItem.js +1 -4
- package/es/components/form-render/src/components/renderer/radio.js +1 -3
- package/es/components/form-render/src/components/renderer/search.js +11 -17
- package/es/components/form-render/src/components/renderer/select.js +13 -19
- package/es/components/form-render/src/components/renderer/switch.js +2 -5
- package/es/components/form-render/src/components/renderer/textarea.js +2 -5
- package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +1 -3
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
- package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
- package/es/components/form-render/src/hooks/usePresetScope2.js +1 -4
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +4 -1
- package/es/components/form-render/src/utils/index.js +27 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -1
- package/es/components/index2.js +0 -3
- package/es/components/info-header/index.d.ts +31 -8
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.js +9 -10
- package/es/components/info-header/src/InfoHeader.vue.d.ts +32 -8
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-table/index.d.ts +0 -4019
- package/es/components/form-table/index.js +0 -1
- package/es/components/form-table/index2.js +0 -10
- package/es/components/form-table/src/FormTable.js +0 -474
- package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
- package/es/components/form-table/src/components/index.d.ts +0 -3778
- package/es/components/form-table/src/components/index.js +0 -1
- package/es/components/form-table/src/components/index2.js +0 -40
- package/es/components/form-table/src/components/table-age.js +0 -235
- package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
- package/es/components/form-table/src/components/table-date-picker.js +0 -179
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
- package/es/components/form-table/src/components/table-digital.js +0 -141
- package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-input-password.js +0 -141
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
- package/es/components/form-table/src/components/table-input.js +0 -127
- package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-month-picker.js +0 -104
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
- package/es/components/form-table/src/components/table-search-more.js +0 -6
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
- package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-search.js +0 -6
- package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
- package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-select-multiple.js +0 -164
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
- package/es/components/form-table/src/components/table-select.js +0 -159
- package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
- package/es/components/form-table/src/components/table-textarea.js +0 -157
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
- package/es/components/form-table/src/components/table-time-picker.js +0 -150
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
- package/es/components/form-table/src/components/table-tree-select.js +0 -285
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
- package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
- package/es/components/form-table/src/configs/index.d.ts +0 -35
- package/es/components/form-table/src/configs/index.js +0 -1
- package/es/components/form-table/src/configs/index2.js +0 -67
- package/es/components/form-table/src/hooks/index.d.ts +0 -5
- package/es/components/form-table/src/hooks/index.js +0 -5
- package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
- package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
- package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
- package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
- package/es/components/form-table/src/hooks/useDateType.js +0 -1
- package/es/components/form-table/src/hooks/useDateType2.js +0 -160
- package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
- package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
- package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
- package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
- package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
- package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
- package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
- package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
- package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
- package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
- package/es/components/form-table/src/hooks/useSearch.js +0 -1
- package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
- package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
- package/es/components/form-table/src/hooks/useValidate.js +0 -1
- package/es/components/form-table/src/hooks/useValidate2.js +0 -480
- package/es/components/form-table/src/types/index.d.ts +0 -11
- package/es/components/form-table/src/types/index.js +0 -1
- package/es/components/form-table/style/index.css +0 -1
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -5,9 +5,9 @@ class ContextCollector {
|
|
|
5
5
|
setContext(key, value) {
|
|
6
6
|
this.contextMap.set(key, value);
|
|
7
7
|
}
|
|
8
|
-
getContext(key) {
|
|
8
|
+
getContext(key, value) {
|
|
9
9
|
var _a;
|
|
10
|
-
return (_a = this.contextMap.get(key)) == null ? void 0 : _a();
|
|
10
|
+
return (_a = this.contextMap.get(key)) == null ? void 0 : _a(value);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
function useChangeContext() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { isString } from 'lodash-es';
|
|
2
|
-
import '
|
|
3
|
-
import '@formily/path';
|
|
4
|
-
import '@vue/shared';
|
|
2
|
+
import '../utils/index.js';
|
|
5
3
|
import { isIdCard, isMobile } from '../utils/business2.js';
|
|
6
|
-
import '@formily/core';
|
|
7
4
|
|
|
8
5
|
function usePresetScope() {
|
|
9
6
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble } from '../../../../../es/shared/types';
|
|
1
|
+
import { AnyObject, ArrayAble, Nullable } from '../../../../../es/shared/types';
|
|
2
2
|
import { FunctionalComponent, InjectionKey, VNode } from 'vue';
|
|
3
3
|
import { FieldItem } from '../types';
|
|
4
4
|
export * from './business';
|
|
@@ -15,3 +15,6 @@ export declare function createSlot(renderer: unknown, props: AnyObject): Record<
|
|
|
15
15
|
};
|
|
16
16
|
export declare function createInputSlot(props: AnyObject): import("vue").ComputedRef<Record<string, FunctionalComponent<{}, {}>>>;
|
|
17
17
|
export declare function presetRequestHandler(res: unknown): any;
|
|
18
|
+
export declare function optionMatcher(options: AnyObject[], input: Nullable<string>, key: string, matcherOption?: {
|
|
19
|
+
keyword?: string;
|
|
20
|
+
}): AnyObject[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { computed, createVNode, Fragment, inject, provide } from 'vue';
|
|
2
2
|
import { Path } from '@formily/path';
|
|
3
3
|
import { isObject } from '@vue/shared';
|
|
4
|
+
import { useMemoize } from '@vueuse/core';
|
|
4
5
|
import { isString, isFunction } from 'lodash-es';
|
|
5
6
|
import 'date-fns';
|
|
6
7
|
import '@formily/core';
|
|
@@ -111,5 +112,30 @@ function presetRequestHandler(res) {
|
|
|
111
112
|
return map.rows;
|
|
112
113
|
}
|
|
113
114
|
}
|
|
115
|
+
const keywordMatcher = useMemoize(function(text, keyword) {
|
|
116
|
+
if (!isString(keyword) || !isString(text))
|
|
117
|
+
return false;
|
|
118
|
+
return keyword.split(",").some((k) => k.trim().includes(text));
|
|
119
|
+
}, {
|
|
120
|
+
getKey(...args) {
|
|
121
|
+
return args.reduce((res, arg) => {
|
|
122
|
+
return String(res) + "_" + String(arg);
|
|
123
|
+
}, "");
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
function optionMatcher(options, input, key, matcherOption = {
|
|
127
|
+
keyword: "keyword"
|
|
128
|
+
}) {
|
|
129
|
+
if (!input)
|
|
130
|
+
return options;
|
|
131
|
+
return options.filter((option) => {
|
|
132
|
+
if (!isString(keyFor(option)))
|
|
133
|
+
return;
|
|
134
|
+
return keyFor(option).includes(input) || matcherOption.keyword && keywordMatcher(input, option[matcherOption.keyword]);
|
|
135
|
+
});
|
|
136
|
+
function keyFor(option) {
|
|
137
|
+
return option[key];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
114
140
|
|
|
115
|
-
export { arrayed, createInputSlot, createSlot, formRenderLog, injectOrProvide, mergeDeepProperties, parseNumberFromMaybeString, presetRequestHandler, uuidGenerator };
|
|
141
|
+
export { arrayed, createInputSlot, createSlot, formRenderLog, injectOrProvide, mergeDeepProperties, optionMatcher, parseNumberFromMaybeString, presetRequestHandler, uuidGenerator };
|
package/es/components/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import CSelectLabel, { CLabelFormContent } from './select-label';
|
|
|
9
9
|
import CMap from './map';
|
|
10
10
|
import CVodChunkUpload from './chunk-upload';
|
|
11
11
|
import { CScaleView, CRadio, CCheckbox, CSelect, CDatetime } from './scale-view';
|
|
12
|
-
import CFormTable from './form-table';
|
|
13
12
|
import CInfoHeader from './info-header';
|
|
14
13
|
import CTimeLine from './time-line';
|
|
15
14
|
import CBpmnWorkflow from './bpmn-workflow';
|
|
@@ -27,7 +26,7 @@ export * from './big-table';
|
|
|
27
26
|
export * from './button-print';
|
|
28
27
|
export * from './form-config';
|
|
29
28
|
declare function install(app: App): void;
|
|
30
|
-
export { CGrid, CBigTable, CFieldSet, CDragLayout, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime,
|
|
29
|
+
export { CGrid, CBigTable, CFieldSet, CDragLayout, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBpmnWorkflow, CStepsWheel, Editor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig };
|
|
31
30
|
declare const _default: {
|
|
32
31
|
install: typeof install;
|
|
33
32
|
};
|
package/es/components/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export { default as CDragLayout } from './drag-layout/index2.js';
|
|
|
6
6
|
export { default as CButtonPrint } from './button-print/index2.js';
|
|
7
7
|
export { default as CSelectPerson } from './select-person/index2.js';
|
|
8
8
|
export { default as CVodChunkUpload } from './chunk-upload/index2.js';
|
|
9
|
-
export { default as CFormTable } from './form-table/index2.js';
|
|
10
9
|
export { default as CInfoHeader } from './info-header/index2.js';
|
|
11
10
|
export { default as CTimeLine } from './time-line/index2.js';
|
|
12
11
|
export { default as CBpmnWorkflow } from './bpmn-workflow/index2.js';
|
package/es/components/index2.js
CHANGED
|
@@ -18,8 +18,6 @@ import VodChunkUpload from './chunk-upload/index2.js';
|
|
|
18
18
|
export { default as CVodChunkUpload } from './chunk-upload/index2.js';
|
|
19
19
|
import { CScaleView, CRadio, CCheckbox, CSelect, CDatetime } from './scale-view/index2.js';
|
|
20
20
|
export { CCheckbox, CDatetime, CRadio, CScaleView, CSelect } from './scale-view/index2.js';
|
|
21
|
-
import FormTable from './form-table/index2.js';
|
|
22
|
-
export { default as CFormTable } from './form-table/index2.js';
|
|
23
21
|
import InfoHeader from './info-header/index2.js';
|
|
24
22
|
export { default as CInfoHeader } from './info-header/index2.js';
|
|
25
23
|
import TimeLine from './time-line/index2.js';
|
|
@@ -57,7 +55,6 @@ const components = {
|
|
|
57
55
|
CCheckbox,
|
|
58
56
|
CSelect,
|
|
59
57
|
CDatetime,
|
|
60
|
-
CFormTable: FormTable,
|
|
61
58
|
CInfoHeader: InfoHeader,
|
|
62
59
|
CTimeLine: TimeLine,
|
|
63
60
|
CBpmnWorkflow: BpmnWorkflow,
|
|
@@ -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
|
};
|
|
@@ -181,8 +196,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
181
196
|
default: () => {};
|
|
182
197
|
};
|
|
183
198
|
}>>, {
|
|
184
|
-
content: string;
|
|
185
199
|
contentStyle: import("vue").CSSProperties;
|
|
200
|
+
content: string;
|
|
186
201
|
}>;
|
|
187
202
|
HiddenContent: import("vue").DefineComponent<{
|
|
188
203
|
content: {
|
|
@@ -250,8 +265,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
250
265
|
default: () => {};
|
|
251
266
|
};
|
|
252
267
|
}>>, {
|
|
253
|
-
content: string;
|
|
254
268
|
contentStyle: import("vue").CSSProperties;
|
|
269
|
+
content: string;
|
|
255
270
|
}>;
|
|
256
271
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
257
272
|
content: {
|
|
@@ -267,8 +282,8 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
267
282
|
default: () => {};
|
|
268
283
|
};
|
|
269
284
|
}>>, {
|
|
270
|
-
content: string;
|
|
271
285
|
contentStyle: import("vue").CSSProperties;
|
|
286
|
+
content: string;
|
|
272
287
|
}>;
|
|
273
288
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openPatientInfo" | "fieldSet" | "update:compact")[], "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
274
289
|
compact: {
|
|
@@ -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;
|
|
@@ -65,8 +65,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
default: () => {};
|
|
66
66
|
};
|
|
67
67
|
}>>, {
|
|
68
|
-
content: string;
|
|
69
68
|
contentStyle: CSSProperties;
|
|
69
|
+
content: string;
|
|
70
70
|
}>;
|
|
71
71
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
72
|
content: {
|
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
default: () => {};
|
|
83
83
|
};
|
|
84
84
|
}>>, {
|
|
85
|
-
content: string;
|
|
86
85
|
contentStyle: CSSProperties;
|
|
86
|
+
content: string;
|
|
87
87
|
}>;
|
|
88
88
|
export default _default;
|
|
@@ -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
|
};
|
|
@@ -182,8 +198,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
198
|
default: () => {};
|
|
183
199
|
};
|
|
184
200
|
}>>, {
|
|
185
|
-
content: string;
|
|
186
201
|
contentStyle: CSSProperties;
|
|
202
|
+
content: string;
|
|
187
203
|
}>;
|
|
188
204
|
HiddenContent: import("vue").DefineComponent<{
|
|
189
205
|
content: {
|
|
@@ -251,8 +267,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
251
267
|
default: () => {};
|
|
252
268
|
};
|
|
253
269
|
}>>, {
|
|
254
|
-
content: string;
|
|
255
270
|
contentStyle: CSSProperties;
|
|
271
|
+
content: string;
|
|
256
272
|
}>;
|
|
257
273
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
258
274
|
content: {
|
|
@@ -268,8 +284,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
284
|
default: () => {};
|
|
269
285
|
};
|
|
270
286
|
}>>, {
|
|
271
|
-
content: string;
|
|
272
287
|
contentStyle: CSSProperties;
|
|
288
|
+
content: string;
|
|
273
289
|
}>;
|
|
274
290
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openPatientInfo" | "fieldSet" | "update:compact")[], "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
275
291
|
compact: {
|
|
@@ -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;
|
|
@@ -87,6 +87,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
87
87
|
option?: {
|
|
88
88
|
text: string;
|
|
89
89
|
value: any;
|
|
90
|
+
keyword?: string | undefined;
|
|
90
91
|
children?: any[] | undefined;
|
|
91
92
|
}[] | undefined;
|
|
92
93
|
multi_select?: import("..").FormCommonState | undefined;
|
|
@@ -89,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
option?: {
|
|
90
90
|
text: string;
|
|
91
91
|
value: any;
|
|
92
|
+
keyword?: string | undefined;
|
|
92
93
|
children?: any[] | undefined;
|
|
93
94
|
}[] | undefined;
|
|
94
95
|
multi_select?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -105,10 +105,10 @@ declare const StepsWheel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
105
105
|
};
|
|
106
106
|
}>>, {
|
|
107
107
|
noDataMsg: string;
|
|
108
|
-
placement: string;
|
|
109
108
|
stepInfo: Record<string, any>;
|
|
110
109
|
currentStep: number;
|
|
111
110
|
toolTipShow: boolean;
|
|
112
111
|
lastNodeRender: boolean;
|
|
112
|
+
placement: string;
|
|
113
113
|
}>>;
|
|
114
114
|
export default StepsWheel;
|
|
@@ -104,10 +104,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
};
|
|
105
105
|
}>>, {
|
|
106
106
|
noDataMsg: string;
|
|
107
|
-
placement: string;
|
|
108
107
|
stepInfo: Record<string, any>;
|
|
109
108
|
currentStep: number;
|
|
110
109
|
toolTipShow: boolean;
|
|
111
110
|
lastNodeRender: boolean;
|
|
111
|
+
placement: string;
|
|
112
112
|
}>;
|
|
113
113
|
export default _default;
|
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.11",
|
|
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": "79a10ccc3e78b46f18703b08ab2edecfe5bcbb48"
|
|
70
70
|
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'diagram-js/lib/navigation/movecanvas';
|