cnhis-design-vue 3.1.14-beta.5 → 3.1.14-beta.7.1
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/es/packages/annotation-edit/index.d.ts +17 -0
- package/es/packages/annotation-edit/index.js +10 -0
- package/es/packages/annotation-edit/src/AnnotationEdit.d.ts +16 -0
- package/es/packages/annotation-edit/src/AnnotationEdit.js +119 -0
- package/es/packages/annotation-edit/style/index.css +15 -0
- package/es/packages/big-table/src/BigTable.vue.d.ts +2 -12
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +7 -5
- package/es/packages/big-table/src/bigTableEmits.js +1 -1
- package/es/packages/big-table/src/utils.js +2 -2
- package/es/packages/button-print/index.d.ts +1 -0
- package/es/packages/button-print/index.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.js +19 -14
- package/es/packages/field-set/index.d.ts +22 -16
- package/es/packages/field-set/src/FieldSet.vue.d.ts +212 -207
- package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.js +18 -7
- package/es/packages/field-set/src/NewFieldSet.vue.d.ts +1 -0
- package/es/packages/field-set/src/NewFieldSet.vue_vue_type_script_setup_true_lang.js +40 -36
- package/es/packages/field-set/src/OldFieldSet.vue.d.ts +11 -1
- package/es/packages/field-set/src/OldFieldSet.vue_vue_type_script_setup_true_lang.js +41 -36
- package/es/packages/form-render/index.d.ts +1 -1
- package/es/packages/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/packages/form-render/src/components/renderer/formItem.js +8 -92
- package/es/packages/form-render/src/hooks/useAnchor.d.ts +1 -1
- package/es/packages/form-render/src/hooks/useAnchor.js +3 -3
- package/es/packages/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/packages/form-render/style/index.css +17 -15
- package/es/packages/index.css +17 -15
- package/es/packages/index.d.ts +1 -0
- package/es/packages/index.js +1 -0
- package/es/packages/info-header/index.d.ts +0 -2
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +0 -2
- package/es/packages/info-header/src/InfoHeader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/{packages/info-header/src → src/components/SlotRender}/SlotRender.d.ts +0 -2
- package/es/{packages/info-header/src → src/components/SlotRender}/SlotRender.js +5 -5
- package/es/src/components/SlotRender/index.d.ts +2 -0
- package/es/src/components/SlotRender/index.js +2 -0
- package/package.json +153 -153
@@ -0,0 +1,17 @@
|
|
1
|
+
import { SFCWithInstall } from '../../../es/src/types';
|
2
|
+
declare const Annotation: SFCWithInstall<import("vue").DefineComponent<{
|
3
|
+
modelValue: {
|
4
|
+
type: StringConstructor;
|
5
|
+
default: string;
|
6
|
+
};
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8
|
+
modelValue: {
|
9
|
+
type: StringConstructor;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
}>> & {
|
13
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
14
|
+
}, {
|
15
|
+
modelValue: string;
|
16
|
+
}>>;
|
17
|
+
export default Annotation;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
2
|
+
import { safeComponentRegister } from '../../src/utils';
|
3
|
+
import script from './src/AnnotationEdit.js';
|
4
|
+
|
5
|
+
const Annotation = script;
|
6
|
+
Annotation.install = function(app) {
|
7
|
+
safeComponentRegister(app, Annotation, COMPONENT_NAMESPACE + "Annotation");
|
8
|
+
};
|
9
|
+
|
10
|
+
export { Annotation as default };
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
type: StringConstructor;
|
4
|
+
default: string;
|
5
|
+
};
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
modelValue: {
|
8
|
+
type: StringConstructor;
|
9
|
+
default: string;
|
10
|
+
};
|
11
|
+
}>> & {
|
12
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
13
|
+
}, {
|
14
|
+
modelValue: string;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import { defineComponent, computed, ref, createVNode, unref } from 'vue';
|
2
|
+
import { FileTrayFull, FileTray } from '@vicons/ionicons5';
|
3
|
+
import { NPopover, NIcon, NInput } from 'naive-ui';
|
4
|
+
|
5
|
+
var script = defineComponent({
|
6
|
+
props: {
|
7
|
+
modelValue: {
|
8
|
+
type: String,
|
9
|
+
default: ""
|
10
|
+
}
|
11
|
+
},
|
12
|
+
emits: ["update:modelValue"],
|
13
|
+
setup(props, {
|
14
|
+
emit
|
15
|
+
}) {
|
16
|
+
const modelValue = computed({
|
17
|
+
get() {
|
18
|
+
return props.modelValue;
|
19
|
+
},
|
20
|
+
set(value) {
|
21
|
+
emit("update:modelValue", value);
|
22
|
+
}
|
23
|
+
});
|
24
|
+
const __showPopper = ref(false);
|
25
|
+
const showPopper = computed({
|
26
|
+
get() {
|
27
|
+
return __showPopper.value;
|
28
|
+
},
|
29
|
+
async set(value) {
|
30
|
+
__showPopper.value = value;
|
31
|
+
if (!value && isEdit.value) {
|
32
|
+
await new Promise((resolve) => setTimeout(resolve, 200));
|
33
|
+
isEdit.value = false;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
});
|
37
|
+
const isEdit = ref(false);
|
38
|
+
let clickTimer;
|
39
|
+
function iconClick() {
|
40
|
+
clearTimeout(clickTimer);
|
41
|
+
if (showPopper.value && isEdit.value) {
|
42
|
+
showPopper.value = false;
|
43
|
+
return;
|
44
|
+
}
|
45
|
+
clickTimer = setTimeout(() => {
|
46
|
+
if (!unref(modelValue)) {
|
47
|
+
isEdit.value = showPopper.value = true;
|
48
|
+
}
|
49
|
+
}, 200);
|
50
|
+
}
|
51
|
+
function iconDbClick() {
|
52
|
+
clearTimeout(clickTimer);
|
53
|
+
if (!unref(modelValue))
|
54
|
+
return;
|
55
|
+
showPopper.value = true;
|
56
|
+
isEdit.value = true;
|
57
|
+
}
|
58
|
+
function iconMouseenter() {
|
59
|
+
if (!unref(modelValue))
|
60
|
+
return;
|
61
|
+
showPopper.value = true;
|
62
|
+
}
|
63
|
+
function iconMouseleave() {
|
64
|
+
if (!unref(modelValue) || isEdit.value)
|
65
|
+
return;
|
66
|
+
showPopper.value = false;
|
67
|
+
}
|
68
|
+
function renderAnnotation() {
|
69
|
+
return createVNode("section", {
|
70
|
+
"class": ["annotation-edit", {
|
71
|
+
"is-active": !!unref(modelValue)
|
72
|
+
}],
|
73
|
+
"style": {
|
74
|
+
"--icon-right": "-5"
|
75
|
+
},
|
76
|
+
"annotation-hover-show": !unref(modelValue) && !isEdit.value
|
77
|
+
}, [createVNode(NPopover, {
|
78
|
+
"style": {
|
79
|
+
maxWidth: "200px",
|
80
|
+
wordBreak: "break-all"
|
81
|
+
},
|
82
|
+
"show": showPopper.value,
|
83
|
+
"onUpdate:show": ($event) => showPopper.value = $event,
|
84
|
+
"trigger": "manual",
|
85
|
+
"duration": 100
|
86
|
+
}, {
|
87
|
+
default: renderDefault,
|
88
|
+
trigger: renderTrigger
|
89
|
+
})]);
|
90
|
+
function renderText() {
|
91
|
+
return createVNode("span", null, [unref(modelValue)]);
|
92
|
+
}
|
93
|
+
function renderTextarea() {
|
94
|
+
return createVNode(NInput, {
|
95
|
+
"type": "textarea",
|
96
|
+
"value": modelValue.value,
|
97
|
+
"onUpdate:value": ($event) => modelValue.value = $event
|
98
|
+
}, null);
|
99
|
+
}
|
100
|
+
function renderDefault() {
|
101
|
+
return createVNode("div", null, [isEdit.value ? renderTextarea() : renderText()]);
|
102
|
+
}
|
103
|
+
function renderTrigger() {
|
104
|
+
return createVNode("div", {
|
105
|
+
"class": "annotation-edit__icon",
|
106
|
+
"onMouseleave": iconMouseleave,
|
107
|
+
"onMouseenter": iconMouseenter,
|
108
|
+
"onDblclick": iconDbClick,
|
109
|
+
"onClick": iconClick
|
110
|
+
}, [createVNode(NIcon, {
|
111
|
+
"component": unref(modelValue) ? FileTrayFull : FileTray
|
112
|
+
}, null)]);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
return renderAnnotation;
|
116
|
+
}
|
117
|
+
});
|
118
|
+
|
119
|
+
export { script as default };
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.annotation-edit {
|
2
|
+
cursor: pointer;
|
3
|
+
color: #0067ee;
|
4
|
+
font-size: 16px;
|
5
|
+
user-select: none;
|
6
|
+
display: inline-flex;
|
7
|
+
align-items: center;
|
8
|
+
}
|
9
|
+
.annotation-edit.is-active {
|
10
|
+
color: rgba(255, 152, 40);
|
11
|
+
}
|
12
|
+
.annotation-edit__icon {
|
13
|
+
display: inline-flex;
|
14
|
+
align-items: center;
|
15
|
+
}
|
@@ -1091,9 +1091,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1091
1091
|
textColorGhostHoverSuccess: string;
|
1092
1092
|
textColorGhostPressedSuccess: string;
|
1093
1093
|
textColorGhostFocusSuccess: string;
|
1094
|
-
/**
|
1095
|
-
* 删除选中scan数据
|
1096
|
-
*/
|
1097
1094
|
textColorGhostDisabledSuccess: string;
|
1098
1095
|
borderSuccess: string;
|
1099
1096
|
borderHoverSuccess: string;
|
@@ -1136,14 +1133,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1136
1133
|
textColorHoverError: string;
|
1137
1134
|
textColorPressedError: string;
|
1138
1135
|
textColorFocusError: string;
|
1139
|
-
textColorDisabledError: string;
|
1140
|
-
* 初始化props
|
1141
|
-
* @param {*} unionItem
|
1142
|
-
* @param {*} row
|
1143
|
-
* @param {*} column
|
1144
|
-
* @param {*} $rowIndex
|
1145
|
-
* @returns
|
1146
|
-
*/
|
1136
|
+
textColorDisabledError: string;
|
1147
1137
|
textColorTextError: string;
|
1148
1138
|
textColorTextHoverError: string;
|
1149
1139
|
textColorTextPressedError: string;
|
@@ -1315,7 +1305,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1315
1305
|
colorWarning: string;
|
1316
1306
|
colorHoverWarning: string;
|
1317
1307
|
colorPressedWarning: string;
|
1318
|
-
colorFocusWarning: string;
|
1308
|
+
colorFocusWarning: string; /** string */
|
1319
1309
|
colorDisabledWarning: string;
|
1320
1310
|
textColorWarning: string;
|
1321
1311
|
textColorHoverWarning: string;
|
@@ -518,7 +518,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
518
518
|
return columns;
|
519
519
|
};
|
520
520
|
const formatterEdit = (params, col) => {
|
521
|
-
console.log(params, col);
|
522
521
|
let {
|
523
522
|
row,
|
524
523
|
column,
|
@@ -541,8 +540,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
541
540
|
index: $rowIndex,
|
542
541
|
type: formType,
|
543
542
|
onFormChange,
|
544
|
-
|
545
|
-
emit("
|
543
|
+
onClick: () => {
|
544
|
+
emit("formClick", {
|
546
545
|
value: row[col.columnName],
|
547
546
|
row,
|
548
547
|
column: col,
|
@@ -2246,7 +2245,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
2246
2245
|
const handleMenuClickEvent = (payload) => emit("menuClick", payload);
|
2247
2246
|
expose({
|
2248
2247
|
formatData,
|
2249
|
-
xGrid
|
2248
|
+
xGrid,
|
2249
|
+
loadColumn,
|
2250
|
+
loadData
|
2250
2251
|
});
|
2251
2252
|
return (_ctx, _cache) => {
|
2252
2253
|
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(` <div
|
@@ -2303,7 +2304,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
2303
2304
|
visibleMethod: unref(visibleMethod),
|
2304
2305
|
trigger: "cell",
|
2305
2306
|
reserve: true,
|
2306
|
-
highlight: true
|
2307
|
+
highlight: true,
|
2308
|
+
..._ctx.$attrs.checkboxConfig || {}
|
2307
2309
|
},
|
2308
2310
|
"radio-config": {
|
2309
2311
|
checkField: "checked",
|
@@ -140,7 +140,7 @@ const reScrollFilterWrap = () => {
|
|
140
140
|
});
|
141
141
|
};
|
142
142
|
const showFilter = (field, columnName, event, props, state) => {
|
143
|
-
var _a;
|
143
|
+
var _a, _b, _c;
|
144
144
|
if (props.isInlineOperating)
|
145
145
|
return false;
|
146
146
|
const target = event.target;
|
@@ -161,7 +161,7 @@ const showFilter = (field, columnName, event, props, state) => {
|
|
161
161
|
field.top = btnRectTop + FILTER_BOX_TOP_OFFSET + (props.filterTopOffset || 0) + "px";
|
162
162
|
field.visible = !field.visible;
|
163
163
|
const len = (_a = state.filterFields[columnName]) == null ? void 0 : _a.CONVERT.length;
|
164
|
-
field.checkAll = len ===
|
164
|
+
field.checkAll = len === ((_c = (_b = state.filterFields[columnName]) == null ? void 0 : _b.filterItems) == null ? void 0 : _c.length);
|
165
165
|
field.indeterminate = !!len && len !== field.setting.showSetting.length;
|
166
166
|
field.searchFilterText = "";
|
167
167
|
};
|
@@ -2,6 +2,7 @@ import { COMPONENT_NAMESPACE } from '../../src/global/variable';
|
|
2
2
|
import { safeComponentRegister } from '../../src/utils';
|
3
3
|
import './src/ButtonPrint.js';
|
4
4
|
import script from './src/ButtonPrint.vue_vue_type_script_setup_true_lang.js';
|
5
|
+
export { Print } from './src/utils/print.js';
|
5
6
|
|
6
7
|
const ButtonPrint = script;
|
7
8
|
ButtonPrint.install = function(app) {
|
@@ -88,19 +88,26 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
88
88
|
}
|
89
89
|
const [data1, data2] = copyDataList;
|
90
90
|
const getPoint = (item) => {
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
91
|
+
if (item.x && item.y) {
|
92
|
+
return {
|
93
|
+
x: item.x,
|
94
|
+
y: item.y
|
95
|
+
};
|
96
|
+
}
|
97
|
+
if (isEffectiveNode(item) && isLimit(item.time)) {
|
98
|
+
let y = cumputedY(pulseObj.type, pulseObj.list, item.value);
|
99
|
+
y = y < vitalSignsOriginY.originY ? vitalSignsOriginY.originY : y > vitalSignsOriginY.endY ? vitalSignsOriginY.endY : y;
|
100
|
+
return {
|
101
|
+
x: cumputedX(item.time),
|
102
|
+
y
|
103
|
+
};
|
104
|
+
}
|
98
105
|
};
|
99
106
|
data1.list.forEach((item, index) => {
|
100
107
|
const point1 = getPoint(item);
|
101
108
|
const item2 = data2.list[index];
|
102
109
|
const point2 = item2 ? getPoint(item2) : null;
|
103
|
-
if (point2 && point1.x === point2.x && point1.y !== point2.y) {
|
110
|
+
if (point1 && point2 && point1.x === point2.x && point1.y !== point2.y) {
|
104
111
|
points1.push(point1);
|
105
112
|
points2.push(point2);
|
106
113
|
const itemPrev = data1.list[index - 1];
|
@@ -108,12 +115,12 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
108
115
|
const itemNext2 = data2.list[index + 1];
|
109
116
|
if (itemPrev && points1.length === 1) {
|
110
117
|
const point = getPoint(itemPrev);
|
111
|
-
points1.unshift(point);
|
118
|
+
point && points1.unshift(point);
|
112
119
|
}
|
113
120
|
if (itemNext && itemNext2) {
|
114
121
|
const pointNext = getPoint(itemNext);
|
115
122
|
const pointNext2 = getPoint(itemNext2);
|
116
|
-
if (pointNext.x === pointNext2.x && pointNext.y === pointNext2.y) {
|
123
|
+
if (pointNext && pointNext2 && pointNext.x === pointNext2.x && pointNext.y === pointNext2.y) {
|
117
124
|
points1.push(pointNext);
|
118
125
|
}
|
119
126
|
} else {
|
@@ -349,13 +356,11 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
349
356
|
coolPoint && otherList.push(coolPoint);
|
350
357
|
}
|
351
358
|
}
|
352
|
-
let line;
|
353
359
|
let point;
|
354
|
-
|
355
|
-
line = points && nextPoint && !v.breakpoint ? drawLine([...points, ...nextPoint], {
|
360
|
+
const line = points && nextPoint && !v.breakpoint ? drawLine([...points, ...nextPoint], {
|
356
361
|
...lineAttr
|
357
362
|
}) : null;
|
358
|
-
previousLine = lineList[index - 1];
|
363
|
+
const previousLine = lineList[index - 1];
|
359
364
|
const pointAttrNew = {
|
360
365
|
origin: {
|
361
366
|
data: v,
|
@@ -2,13 +2,10 @@ import { SFCWithInstall } from '../../../es/src/types';
|
|
2
2
|
declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
3
3
|
type: {
|
4
4
|
type: StringConstructor;
|
5
|
-
required: false;
|
6
5
|
default: string;
|
7
6
|
};
|
8
7
|
}, {
|
9
|
-
|
10
|
-
type: string;
|
11
|
-
};
|
8
|
+
asyncInstance: import("vue").Ref<any>;
|
12
9
|
OldFieldSet: import("vue").DefineComponent<{
|
13
10
|
fields: {
|
14
11
|
type: import("vue").PropType<any[]>;
|
@@ -84,6 +81,16 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
84
81
|
isMiddleAndAdmin: import("vue").ComputedRef<boolean>;
|
85
82
|
showCheckBox: (key: string) => boolean;
|
86
83
|
hideTab: () => void;
|
84
|
+
getTableFields: () => {
|
85
|
+
id: string;
|
86
|
+
field: string;
|
87
|
+
visible: boolean;
|
88
|
+
sequence: number;
|
89
|
+
sortable: boolean;
|
90
|
+
title: string;
|
91
|
+
fixed: string;
|
92
|
+
minWidth: number;
|
93
|
+
}[];
|
87
94
|
handleFieldSave: () => void;
|
88
95
|
onCancle: () => void;
|
89
96
|
onChangeShow: (e: boolean, ele: {
|
@@ -108,17 +115,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
108
115
|
isFixed: number;
|
109
116
|
colWidth: number;
|
110
117
|
}) => void;
|
111
|
-
onButtonChecked: (e: boolean, itemButton: {
|
112
|
-
[key: string]: any;
|
113
|
-
sid: string;
|
114
|
-
columnName: string;
|
115
|
-
isShow: number;
|
116
|
-
isSort: number;
|
117
|
-
title: string;
|
118
|
-
alias: string;
|
119
|
-
isFixed: number;
|
120
|
-
colWidth: number;
|
121
|
-
}) => void;
|
122
118
|
calculateCheck: (key: string) => boolean;
|
123
119
|
handleAllCheck: (e: boolean, key: string) => void;
|
124
120
|
handleFieldClick: (item: {
|
@@ -2740,6 +2736,17 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
2740
2736
|
isMiddleAndAdmin: import("vue").ComputedRef<boolean>;
|
2741
2737
|
showCheckBox: (key: string) => boolean;
|
2742
2738
|
hideTab: () => void;
|
2739
|
+
getTableFields: () => {
|
2740
|
+
[key: string]: any;
|
2741
|
+
id: string;
|
2742
|
+
name: string;
|
2743
|
+
show: boolean;
|
2744
|
+
sort: boolean;
|
2745
|
+
alias: string;
|
2746
|
+
fixedShow: boolean;
|
2747
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
2748
|
+
columnWidth: number;
|
2749
|
+
}[];
|
2743
2750
|
handleFieldSave: () => void;
|
2744
2751
|
onCancle: () => void;
|
2745
2752
|
calculateCheck: (key: string) => boolean;
|
@@ -5291,7 +5298,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
5291
5298
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
5292
5299
|
type: {
|
5293
5300
|
type: StringConstructor;
|
5294
|
-
required: false;
|
5295
5301
|
default: string;
|
5296
5302
|
};
|
5297
5303
|
}>>, {
|