cnhis-design-vue 3.1.13-beta.4 → 3.1.13-beta.5
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/big-table/src/BigTable.vue.d.ts +8 -5
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +26 -18
- package/es/packages/big-table/src/utils.js +2 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.d.ts +5 -0
- package/es/packages/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/packages/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/packages/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.js +15 -4
- package/es/packages/fabric-chart/src/hooks/useDraw.js +23 -29
- package/es/packages/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/packages/fabric-chart/src/utils/index.d.ts +6823 -2
- package/package.json +1 -1
|
@@ -1173,17 +1173,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1173
1173
|
}, any>>;
|
|
1174
1174
|
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Button", {
|
|
1175
1175
|
heightTiny: string;
|
|
1176
|
-
heightSmall: string;
|
|
1177
|
-
* 单个form提交失败
|
|
1178
|
-
* @param {*} obj
|
|
1179
|
-
*/
|
|
1176
|
+
heightSmall: string;
|
|
1180
1177
|
heightMedium: string;
|
|
1181
1178
|
heightLarge: string;
|
|
1182
1179
|
borderRadiusTiny: string;
|
|
1183
1180
|
borderRadiusSmall: string;
|
|
1184
1181
|
borderRadiusMedium: string;
|
|
1185
1182
|
borderRadiusLarge: string;
|
|
1186
|
-
fontSizeTiny: string;
|
|
1183
|
+
fontSizeTiny: string; /**
|
|
1184
|
+
* 单个form提交失败
|
|
1185
|
+
* @param {*} obj
|
|
1186
|
+
*/
|
|
1187
1187
|
fontSizeSmall: string;
|
|
1188
1188
|
fontSizeMedium: string;
|
|
1189
1189
|
fontSizeLarge: string;
|
|
@@ -1217,6 +1217,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1217
1217
|
textColorTextFocus: string;
|
|
1218
1218
|
textColorTextDisabled: string;
|
|
1219
1219
|
textColorGhost: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* tsx渲染表格
|
|
1222
|
+
*/
|
|
1220
1223
|
textColorGhostHover: string;
|
|
1221
1224
|
textColorGhostPressed: string;
|
|
1222
1225
|
textColorGhostFocus: string;
|
|
@@ -423,9 +423,16 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
const currentColumns = fieldList.map((item, index) => {
|
|
426
|
-
var _a2, _b2, _c, _d;
|
|
427
|
-
let filterField =
|
|
428
|
-
let
|
|
426
|
+
var _a2, _b2, _c, _d, _e;
|
|
427
|
+
let filterField = false;
|
|
428
|
+
let filterItems = [];
|
|
429
|
+
try {
|
|
430
|
+
const fieldSetting = JSON.parse(item.fieldSetting);
|
|
431
|
+
filterField = ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
|
|
432
|
+
filterItems = (_c = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c.map((item2) => item2.value[0]);
|
|
433
|
+
} catch (e) {
|
|
434
|
+
}
|
|
435
|
+
let notParticipatingSort = ((_d = item == null ? void 0 : item.fieldSetting) == null ? void 0 : _d.notParticipatingSort) || "";
|
|
429
436
|
let fixed = isAboutNestTable.value ? "" : item.isFixed ? item.isFixed == 1 ? "left" : "right" : "";
|
|
430
437
|
let sortable = props.isNestTable ? false : !filterField && item.isSort == 1 && notParticipatingSort != 1 && item.isMerge != 1;
|
|
431
438
|
let treeNode = props.isNestTable ? false : state.isTree != 0 ? index === 0 : false;
|
|
@@ -484,7 +491,8 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
484
491
|
checkAll: false,
|
|
485
492
|
searchFilterText: "",
|
|
486
493
|
searchFilterCONVERT: [],
|
|
487
|
-
filterSort: ""
|
|
494
|
+
filterSort: "",
|
|
495
|
+
filterItems
|
|
488
496
|
});
|
|
489
497
|
let field = state.filterFields[item.columnName];
|
|
490
498
|
handlerInitSearchItem([field]);
|
|
@@ -495,7 +503,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
495
503
|
if (!isScanMultiTable2) {
|
|
496
504
|
col.slots.footer = "tooltip_footer";
|
|
497
505
|
}
|
|
498
|
-
if (props.showNestTable && state.isTree == 0 && ((
|
|
506
|
+
if (props.showNestTable && state.isTree == 0 && ((_e = props.curNestColumnConfig) == null ? void 0 : _e.isTree) == 0) {
|
|
499
507
|
col.slots.content = "nest_table_content";
|
|
500
508
|
}
|
|
501
509
|
return col;
|
|
@@ -734,7 +742,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
734
742
|
"class": "filter-header-icon vxe-filter--btn vxe-icon--funnel"
|
|
735
743
|
}, null), createVNode("span", {
|
|
736
744
|
"class": "filter-header-text"
|
|
737
|
-
}, [createTextVNode("\u7B5B\u9009")])]), field.
|
|
745
|
+
}, [createTextVNode("\u7B5B\u9009")])]), field.filterItems.length > 5 ? createVNode("div", {
|
|
738
746
|
"class": "checkbox-wrap checkbox-wrap--search"
|
|
739
747
|
}, [createVNode("div", {
|
|
740
748
|
"class": "check-search-wrap"
|
|
@@ -763,10 +771,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
763
771
|
}, {
|
|
764
772
|
default: () => [createVNode(NSpace, {
|
|
765
773
|
"item-style": "display: flex;"
|
|
766
|
-
}, _isSlot(_slot = field.
|
|
774
|
+
}, _isSlot(_slot = field.filterItems.map((item2) => {
|
|
767
775
|
return createVNode(NCheckbox, {
|
|
768
776
|
"value": item2.value,
|
|
769
|
-
"label": item2.
|
|
777
|
+
"label": item2.key
|
|
770
778
|
}, null);
|
|
771
779
|
})) ? _slot : {
|
|
772
780
|
default: () => [_slot]
|
|
@@ -777,15 +785,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
777
785
|
}, {
|
|
778
786
|
default: () => [createVNode(NSpace, {
|
|
779
787
|
"item-style": "display: flex;"
|
|
780
|
-
}, _isSlot(_slot2 = field.
|
|
788
|
+
}, _isSlot(_slot2 = field.filterItems.filter((item2) => {
|
|
781
789
|
if (!field.searchFilterText)
|
|
782
790
|
return item2;
|
|
783
791
|
let reg = new RegExp(field.searchFilterText);
|
|
784
|
-
return reg.test(item2.
|
|
792
|
+
return reg.test(item2.key);
|
|
785
793
|
}).map((item2) => {
|
|
786
794
|
return createVNode(NCheckbox, {
|
|
787
795
|
"value": item2.value,
|
|
788
|
-
"label": item2.
|
|
796
|
+
"label": item2.key
|
|
789
797
|
}, null);
|
|
790
798
|
})) ? _slot2 : {
|
|
791
799
|
default: () => [_slot2]
|
|
@@ -835,12 +843,12 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
835
843
|
const handleFilterSeach = (val, field) => {
|
|
836
844
|
field.searchFilterText = val;
|
|
837
845
|
if (val === "") {
|
|
838
|
-
field.checkAll = field.CONVERT.length === field.
|
|
839
|
-
field.indeterminate = !!field.CONVERT.length && field.CONVERT.length !== field.
|
|
846
|
+
field.checkAll = field.CONVERT.length === field.filterItems.length;
|
|
847
|
+
field.indeterminate = !!field.CONVERT.length && field.CONVERT.length !== field.filterItems.length;
|
|
840
848
|
return;
|
|
841
849
|
}
|
|
842
|
-
field.searchFilterCONVERT = field.
|
|
843
|
-
return field.searchFilterText === item.
|
|
850
|
+
field.searchFilterCONVERT = field.filterItems.filter((item) => {
|
|
851
|
+
return field.searchFilterText === item.key && field.CONVERT.includes(item.value);
|
|
844
852
|
}).map((item) => item.value);
|
|
845
853
|
_beforeSearchConvert = field.searchFilterCONVERT;
|
|
846
854
|
};
|
|
@@ -849,15 +857,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
849
857
|
let checked = val;
|
|
850
858
|
field.indeterminate = false;
|
|
851
859
|
field.checkAll = checked;
|
|
852
|
-
state.filterFields[field.columnName].CONVERT = checked ? field.
|
|
860
|
+
state.filterFields[field.columnName].CONVERT = checked ? field.filterItems.map((item) => {
|
|
853
861
|
return item.value;
|
|
854
862
|
}) : [];
|
|
855
863
|
};
|
|
856
864
|
const handleFilterChange = (value, name, field) => {
|
|
857
865
|
reScrollFilterWrap();
|
|
858
866
|
state.filterFields[name].CONVERT = value;
|
|
859
|
-
field.checkAll = value.length === field.
|
|
860
|
-
field.indeterminate = !!value.length && value.length !== field.
|
|
867
|
+
field.checkAll = value.length === field.filterItems.length;
|
|
868
|
+
field.indeterminate = !!value.length && value.length !== field.filterItems.length;
|
|
861
869
|
};
|
|
862
870
|
const handleFilterSearchChange = (value, columnName, field) => {
|
|
863
871
|
reScrollFilterWrap();
|
|
@@ -207,6 +207,7 @@ const handlerInitSearchItem = (arr) => {
|
|
|
207
207
|
if (!Array.isArray(arr))
|
|
208
208
|
return;
|
|
209
209
|
arr.forEach((el) => {
|
|
210
|
+
var _a;
|
|
210
211
|
if (el.setting) {
|
|
211
212
|
el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
|
|
212
213
|
if (!vexutils.isEmpty(el.setting.wordbook)) {
|
|
@@ -224,7 +225,7 @@ const handlerInitSearchItem = (arr) => {
|
|
|
224
225
|
return;
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
|
-
if (el.fieldType.includes("DATE")) {
|
|
228
|
+
if ((_a = el.fieldType) == null ? void 0 : _a.includes("DATE")) {
|
|
228
229
|
if (el.settingObj && el.settingObj.attr == "BIRTHDAY") {
|
|
229
230
|
el["con"] = "BIRTHDAY";
|
|
230
231
|
el["showDate"] = false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -45,6 +45,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
45
45
|
});
|
|
46
46
|
function init() {
|
|
47
47
|
drawShaDow();
|
|
48
|
+
maiboPoints.clear();
|
|
49
|
+
otherPoints.clear();
|
|
48
50
|
left.yScaleValue.forEach((scaleValue) => {
|
|
49
51
|
scaleValue.dataList.forEach((item, dataIndex) => {
|
|
50
52
|
drawPolyLine(item, dataIndex, scaleValue);
|
|
@@ -148,6 +150,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
148
150
|
pointMenuProps.point = { x, y };
|
|
149
151
|
pointMenuProps.show = true;
|
|
150
152
|
const { type } = ((_a = event.target) == null ? void 0 : _a.origin) || {};
|
|
153
|
+
console.log(999, type);
|
|
151
154
|
if (event.target && (type === "temperature" || type === "pain")) {
|
|
152
155
|
if (type === "temperature") {
|
|
153
156
|
pointMenuProps.list = [...TEMPERATURE_MENU];
|
|
@@ -200,16 +203,17 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
200
203
|
if (!pulseObj.dataList.some((item) => item.title.includes("\u8109\u640F")))
|
|
201
204
|
return;
|
|
202
205
|
const overlap = left.overlap || {};
|
|
206
|
+
const points = [];
|
|
203
207
|
maiboPoints.size && [...maiboPoints].forEach((item) => {
|
|
204
208
|
[...otherPoints].forEach((obj) => {
|
|
205
209
|
if (obj.origin && item.left === obj.left && item.top === obj.top) {
|
|
206
210
|
const key = obj.origin.key;
|
|
207
211
|
if (key) {
|
|
208
|
-
console.log(333, key);
|
|
209
212
|
const pointer = {
|
|
210
213
|
left: obj.left,
|
|
211
214
|
top: obj.top,
|
|
212
|
-
defaultStyle
|
|
215
|
+
...defaultStyle,
|
|
216
|
+
hoverCursor: "default"
|
|
213
217
|
};
|
|
214
218
|
let type = "koumai";
|
|
215
219
|
if (key === "yemai") {
|
|
@@ -218,14 +222,21 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
218
222
|
if (key === "humai") {
|
|
219
223
|
type = "circle";
|
|
220
224
|
}
|
|
221
|
-
drawPoint(type, {
|
|
225
|
+
points.push(drawPoint(type, {
|
|
222
226
|
...overlap[key] || {},
|
|
223
227
|
...pointer
|
|
224
|
-
});
|
|
228
|
+
}));
|
|
225
229
|
}
|
|
226
230
|
}
|
|
227
231
|
});
|
|
228
232
|
});
|
|
233
|
+
setTimeout(() => {
|
|
234
|
+
canvas.value.add(...points);
|
|
235
|
+
points.forEach((v) => {
|
|
236
|
+
v == null ? void 0 : v.bringToFront();
|
|
237
|
+
});
|
|
238
|
+
canvas.value.renderAll();
|
|
239
|
+
});
|
|
229
240
|
}
|
|
230
241
|
function drawPolyLine(item, dataIndex, scaleValue) {
|
|
231
242
|
const {
|
|
@@ -64,14 +64,13 @@ function drawPoint(type = "circle", style) {
|
|
|
64
64
|
hasBorders: false,
|
|
65
65
|
...style
|
|
66
66
|
};
|
|
67
|
-
const createCircleBorder = (
|
|
67
|
+
const createCircleBorder = () => {
|
|
68
68
|
return new fabric.Circle({
|
|
69
69
|
objectCaching: false,
|
|
70
|
-
strokeWidth: 1,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
fill: "#fff"
|
|
74
|
-
...data
|
|
70
|
+
strokeWidth: style.strokeWidth || 1,
|
|
71
|
+
stroke: style.stroke || "red",
|
|
72
|
+
radius: style.radius || 5,
|
|
73
|
+
fill: "#fff"
|
|
75
74
|
});
|
|
76
75
|
};
|
|
77
76
|
switch (type) {
|
|
@@ -99,41 +98,36 @@ function drawPoint(type = "circle", style) {
|
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
100
|
case "yemai":
|
|
102
|
-
const createAdd = (
|
|
103
|
-
const width = (
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
});
|
|
114
|
-
return new fabric.Group([line1, line2], {
|
|
115
|
-
scale: 1,
|
|
116
|
-
...data
|
|
117
|
-
});
|
|
101
|
+
const createAdd = () => {
|
|
102
|
+
const width = ((style.radius || 5) + (style.strokeWidth || 1)) * 2;
|
|
103
|
+
const subLineStyle = {
|
|
104
|
+
stroke: style.strokeX || "blue",
|
|
105
|
+
strokeWidth: style.strokeWidthX || 1,
|
|
106
|
+
originX: "center",
|
|
107
|
+
originY: "center"
|
|
108
|
+
};
|
|
109
|
+
const line1 = new fabric.Line([0, width / 2, width, width / 2], subLineStyle);
|
|
110
|
+
const line2 = new fabric.Line([width / 2, 0, width / 2, width], subLineStyle);
|
|
111
|
+
return new fabric.Group([line1, line2]);
|
|
118
112
|
};
|
|
119
|
-
return new fabric.Group([createCircleBorder(
|
|
113
|
+
return new fabric.Group([createCircleBorder(), createAdd()], {
|
|
120
114
|
scale: 1,
|
|
121
|
-
...
|
|
122
|
-
angle: 0
|
|
115
|
+
...newStyle
|
|
123
116
|
});
|
|
124
117
|
case "koumai":
|
|
118
|
+
const left = (style.radius || 5) + (style.strokeWidth || 1);
|
|
125
119
|
const circle = new fabric.Circle({
|
|
126
120
|
objectCaching: false,
|
|
127
121
|
radius: style.radiusCircle || 2,
|
|
128
122
|
fill: style.fillCircle || "#000",
|
|
129
123
|
originX: "center",
|
|
130
124
|
originY: "center",
|
|
131
|
-
left
|
|
132
|
-
top:
|
|
125
|
+
left,
|
|
126
|
+
top: left
|
|
133
127
|
});
|
|
134
|
-
return new fabric.Group([createCircleBorder(
|
|
128
|
+
return new fabric.Group([createCircleBorder(), circle], {
|
|
135
129
|
scale: 1,
|
|
136
|
-
...
|
|
130
|
+
...newStyle
|
|
137
131
|
});
|
|
138
132
|
default:
|
|
139
133
|
style && Reflect.deleteProperty(style, "stroke");
|
|
@@ -9,13 +9,14 @@ function useOther(canvas, propItems, cumputedX) {
|
|
|
9
9
|
return false;
|
|
10
10
|
const list = [];
|
|
11
11
|
other.list.forEach((v, i) => {
|
|
12
|
+
var _a;
|
|
12
13
|
const text = new fabric.Text(String(v.value.toString().split("").join("\n")), {
|
|
13
14
|
originX: "center",
|
|
14
|
-
top: vitalSignsOriginY.originY,
|
|
15
|
+
top: (((_a = v.style) == null ? void 0 : _a.baseTop) || 0) + vitalSignsOriginY.originY,
|
|
15
16
|
left: cumputedX(v.time),
|
|
16
17
|
textAlign: "center",
|
|
17
18
|
...defaultStyle,
|
|
18
|
-
...
|
|
19
|
+
...v.style || {}
|
|
19
20
|
});
|
|
20
21
|
list.push(text);
|
|
21
22
|
});
|