cnhis-design-vue 3.1.13-beta.1 → 3.1.13-beta.2
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 +6 -16
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/packages/fabric-chart/src/hooks/useCenter.js +9 -8
- package/es/packages/fabric-chart/src/hooks/useDraw.js +5 -1
- package/es/packages/fabric-chart/src/hooks/useTop.js +6 -4
- package/package.json +1 -1
|
@@ -1115,14 +1115,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1115
1115
|
textColorTextDisabledWarning: string;
|
|
1116
1116
|
textColorGhostWarning: string;
|
|
1117
1117
|
textColorGhostHoverWarning: string;
|
|
1118
|
-
/**
|
|
1119
|
-
* 初始化props
|
|
1120
|
-
* @param {*} unionItem
|
|
1121
|
-
* @param {*} row
|
|
1122
|
-
* @param {*} column
|
|
1123
|
-
* @param {*} $rowIndex
|
|
1124
|
-
* @returns
|
|
1125
|
-
*/
|
|
1126
1118
|
textColorGhostPressedWarning: string;
|
|
1127
1119
|
textColorGhostFocusWarning: string;
|
|
1128
1120
|
textColorGhostDisabledWarning: string;
|
|
@@ -1181,7 +1173,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1181
1173
|
}, any>>;
|
|
1182
1174
|
readonly themeOverrides: import("vue").PropType<import("naive-ui/es/_mixins/use-theme").ExtractThemeOverrides<import("naive-ui/es/_mixins").Theme<"Button", {
|
|
1183
1175
|
heightTiny: string;
|
|
1184
|
-
heightSmall: string;
|
|
1176
|
+
heightSmall: string; /**
|
|
1177
|
+
* 单个form提交失败
|
|
1178
|
+
* @param {*} obj
|
|
1179
|
+
*/
|
|
1185
1180
|
heightMedium: string;
|
|
1186
1181
|
heightLarge: string;
|
|
1187
1182
|
borderRadiusTiny: string;
|
|
@@ -1192,10 +1187,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1192
1187
|
fontSizeSmall: string;
|
|
1193
1188
|
fontSizeMedium: string;
|
|
1194
1189
|
fontSizeLarge: string;
|
|
1195
|
-
opacityDisabled: string;
|
|
1196
|
-
* 避免每次点击都查询
|
|
1197
|
-
* 初始化查一次 行编辑 表单search用
|
|
1198
|
-
*/
|
|
1190
|
+
opacityDisabled: string;
|
|
1199
1191
|
colorOpacitySecondary: string;
|
|
1200
1192
|
colorOpacitySecondaryHover: string;
|
|
1201
1193
|
colorOpacitySecondaryPressed: string;
|
|
@@ -1218,9 +1210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1218
1210
|
textColorHover: string;
|
|
1219
1211
|
textColorPressed: string;
|
|
1220
1212
|
textColorFocus: string;
|
|
1221
|
-
textColorDisabled: string;
|
|
1222
|
-
* tsx渲染表格
|
|
1223
|
-
*/
|
|
1213
|
+
textColorDisabled: string;
|
|
1224
1214
|
textColorText: string;
|
|
1225
1215
|
textColorTextHover: string;
|
|
1226
1216
|
textColorTextPressed: string;
|
|
@@ -349,7 +349,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
349
349
|
state.editConfig = Object.assign(state.editConfig, editConfig);
|
|
350
350
|
state.rowConfig.height = 48;
|
|
351
351
|
}
|
|
352
|
-
state.rowConfig
|
|
352
|
+
state.rowConfig = Object.assign(state.rowConfig, rowConfig);
|
|
353
353
|
state.rowConfig.keyField = handleRowId.value;
|
|
354
354
|
if (selectType) {
|
|
355
355
|
isBatchSelect = 1;
|
|
@@ -95,13 +95,15 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
95
95
|
if (itemPrev && points1.length === 1) {
|
|
96
96
|
const point = getPoint(itemPrev);
|
|
97
97
|
points1.unshift(point);
|
|
98
|
-
points2.unshift(point);
|
|
99
98
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
if (itemNext && itemNext2) {
|
|
100
|
+
const pointNext = getPoint(itemNext);
|
|
101
|
+
const pointNext2 = getPoint(itemNext2);
|
|
102
|
+
if (pointNext.x === pointNext2.x && pointNext.y === pointNext2.y) {
|
|
103
|
+
points1.push(pointNext);
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
data.push({ points1, points2 });
|
|
105
107
|
}
|
|
106
108
|
} else {
|
|
107
109
|
if (points1.length && points2.length) {
|
|
@@ -116,8 +118,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
116
118
|
const newData = data.reduce((pre, cur) => {
|
|
117
119
|
const arr1 = cur.points1.map((v) => [v.x, v.y]);
|
|
118
120
|
const arr2 = cur.points2.map((v) => [v.x, v.y]);
|
|
119
|
-
|
|
120
|
-
return pre.concat([[...arr1, ...newArr2.reverse()]]);
|
|
121
|
+
return pre.concat([[...arr1, ...arr2.reverse()]]);
|
|
121
122
|
}, []);
|
|
122
123
|
const { createShadowLines } = useShadow();
|
|
123
124
|
newData.forEach((item) => {
|
|
@@ -46,7 +46,11 @@ function drawTextGroup(rectStyle, fontStyle, groupStyle) {
|
|
|
46
46
|
});
|
|
47
47
|
const texts = new fabric.Text(String(fontStyle.value), {
|
|
48
48
|
...defaultTextStyle,
|
|
49
|
-
...fontStyle
|
|
49
|
+
...fontStyle,
|
|
50
|
+
...fontStyle.textAlign == "left" ? {
|
|
51
|
+
originX: "left",
|
|
52
|
+
left: -(rectStyle.width / 2)
|
|
53
|
+
} : {}
|
|
50
54
|
});
|
|
51
55
|
return new fabric.Group([rect, texts], {
|
|
52
56
|
...groupStyle
|
|
@@ -35,7 +35,7 @@ function useTop(canvas, propItems) {
|
|
|
35
35
|
}
|
|
36
36
|
if (item.key == "xScalevalue") {
|
|
37
37
|
drawDay(list, topY);
|
|
38
|
-
drawTime(list, topY);
|
|
38
|
+
drawTime(item, list, topY);
|
|
39
39
|
} else {
|
|
40
40
|
propItems[`${item.key}Height`] && drawDate(item, list, topY);
|
|
41
41
|
}
|
|
@@ -44,7 +44,7 @@ function useTop(canvas, propItems) {
|
|
|
44
44
|
group && group.sendToBack();
|
|
45
45
|
group && canvas.value.add(group);
|
|
46
46
|
}
|
|
47
|
-
function drawTime(list, topY) {
|
|
47
|
+
function drawTime(item, list, topY) {
|
|
48
48
|
var _a;
|
|
49
49
|
const dayHeight = top.xScalevalue.show ? top.dayHeight || 0 : 0;
|
|
50
50
|
const height = xScalevalueHeight - dayHeight;
|
|
@@ -55,7 +55,8 @@ function useTop(canvas, propItems) {
|
|
|
55
55
|
}, {
|
|
56
56
|
value: top.xScalevalue.title,
|
|
57
57
|
...defaultTextStyle,
|
|
58
|
-
...((_a = top.date) == null ? void 0 : _a.style) || {}
|
|
58
|
+
...((_a = top.date) == null ? void 0 : _a.style) || {},
|
|
59
|
+
...item.titleStyle || {}
|
|
59
60
|
}, {
|
|
60
61
|
left: iconsWidth,
|
|
61
62
|
top: topY
|
|
@@ -115,7 +116,8 @@ function useTop(canvas, propItems) {
|
|
|
115
116
|
}, {
|
|
116
117
|
value: item.title,
|
|
117
118
|
...defaultTextStyle,
|
|
118
|
-
...(item == null ? void 0 : item.style) || {}
|
|
119
|
+
...(item == null ? void 0 : item.style) || {},
|
|
120
|
+
...item.titleStyle || {}
|
|
119
121
|
}, {
|
|
120
122
|
left: iconsWidth,
|
|
121
123
|
top: topY
|