cnhis-design-vue 3.1.15-beta.3 → 3.1.15-beta.4
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/index.d.ts +0 -4
- package/es/packages/big-table/src/BigTable.vue.d.ts +2 -6
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/packages/big-table/src/bigTableProps.d.ts +0 -1
- package/es/packages/big-table/src/bigTableProps.js +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-date.js +2 -1
- package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
- package/es/packages/big-table/src/hooks/useAnnotation.js +2 -1
- package/es/packages/fabric-chart/src/FabricChart.js +5 -1
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +7 -6
- package/es/packages/fabric-chart/src/hooks/useCenter.js +6 -2
- package/es/packages/fabric-chart/src/hooks/useLeft.js +4 -2
- package/global.d.ts +8 -8
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
annotation: {
|
|
13
13
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
14
|
-
default: () => {};
|
|
15
14
|
};
|
|
16
15
|
showFooter: BooleanConstructor;
|
|
17
16
|
sumData: {
|
|
@@ -2597,7 +2596,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2597
2596
|
};
|
|
2598
2597
|
annotation: {
|
|
2599
2598
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
2600
|
-
default: () => {};
|
|
2601
2599
|
};
|
|
2602
2600
|
showFooter: BooleanConstructor;
|
|
2603
2601
|
sumData: {
|
|
@@ -4085,7 +4083,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4085
4083
|
};
|
|
4086
4084
|
annotation: {
|
|
4087
4085
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
4088
|
-
default: () => {};
|
|
4089
4086
|
};
|
|
4090
4087
|
showFooter: BooleanConstructor;
|
|
4091
4088
|
sumData: {
|
|
@@ -4282,7 +4279,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4282
4279
|
columnConfig: Record<string, any>;
|
|
4283
4280
|
menuConfig: Record<string, any>;
|
|
4284
4281
|
maxCheckSize: number;
|
|
4285
|
-
annotation: import("../../../es/src/types").AnyObject;
|
|
4286
4282
|
sumData: Record<string, any>;
|
|
4287
4283
|
avgData: Record<string, any>;
|
|
4288
4284
|
refreshRow: number;
|
|
@@ -9,7 +9,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
annotation: {
|
|
11
11
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
12
|
-
default: () => {};
|
|
13
12
|
};
|
|
14
13
|
showFooter: BooleanConstructor;
|
|
15
14
|
sumData: {
|
|
@@ -1162,7 +1161,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1162
1161
|
paddingMedium: string;
|
|
1163
1162
|
paddingLarge: string;
|
|
1164
1163
|
paddingRoundTiny: string;
|
|
1165
|
-
paddingRoundSmall: string;
|
|
1164
|
+
paddingRoundSmall: string;
|
|
1165
|
+
paddingRoundMedium: string; /**
|
|
1166
1166
|
* 初始化props
|
|
1167
1167
|
* @param {*} unionItem
|
|
1168
1168
|
* @param {*} row
|
|
@@ -1170,7 +1170,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1170
1170
|
* @param {*} $rowIndex
|
|
1171
1171
|
* @returns
|
|
1172
1172
|
*/
|
|
1173
|
-
paddingRoundMedium: string;
|
|
1174
1173
|
paddingRoundLarge: string;
|
|
1175
1174
|
iconMarginTiny: string;
|
|
1176
1175
|
iconMarginSmall: string;
|
|
@@ -2602,7 +2601,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2602
2601
|
};
|
|
2603
2602
|
annotation: {
|
|
2604
2603
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
2605
|
-
default: () => {};
|
|
2606
2604
|
};
|
|
2607
2605
|
showFooter: BooleanConstructor;
|
|
2608
2606
|
sumData: {
|
|
@@ -4108,7 +4106,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4108
4106
|
};
|
|
4109
4107
|
annotation: {
|
|
4110
4108
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
4111
|
-
default: () => {};
|
|
4112
4109
|
};
|
|
4113
4110
|
showFooter: BooleanConstructor;
|
|
4114
4111
|
sumData: {
|
|
@@ -4305,7 +4302,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4305
4302
|
columnConfig: Record<string, any>;
|
|
4306
4303
|
menuConfig: Record<string, any>;
|
|
4307
4304
|
maxCheckSize: number;
|
|
4308
|
-
annotation: import("../../../src/types").AnyObject;
|
|
4309
4305
|
sumData: Record<string, any>;
|
|
4310
4306
|
avgData: Record<string, any>;
|
|
4311
4307
|
refreshRow: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const bigTableProps = {
|
|
2
2
|
data: { type: Array, default: () => [] },
|
|
3
3
|
maxCheckSize: { type: Number, default: 0 },
|
|
4
|
-
annotation: { type: Object
|
|
4
|
+
annotation: { type: Object },
|
|
5
5
|
showFooter: Boolean,
|
|
6
6
|
sumData: { type: Object, default: () => ({}) },
|
|
7
7
|
avgData: { type: Object, default: () => ({}) },
|
|
@@ -108,7 +108,8 @@ var EditDate = defineComponent({
|
|
|
108
108
|
disabled: props.col.disabled || false,
|
|
109
109
|
valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
110
110
|
isDateDisabled: customDateDisabledDecorator(props.col.isDateDisabled) || isDateDisabled,
|
|
111
|
-
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9"
|
|
111
|
+
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
112
|
+
...props.col.componentProps || {}
|
|
112
113
|
};
|
|
113
114
|
if (config.type.includes("time")) {
|
|
114
115
|
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createVNode } from 'vue';
|
|
2
2
|
import { isObject } from '@vue/shared';
|
|
3
|
+
import { isBoolean } from 'lodash-es';
|
|
3
4
|
import Annotation from '../../../annotation-edit/index.js';
|
|
4
5
|
|
|
5
6
|
function useAnnotation(props) {
|
|
6
7
|
function renderAnnotation(columnConfig) {
|
|
7
|
-
if (!isObject(props.annotation))
|
|
8
|
+
if (!isObject(props.annotation) || isBoolean(columnConfig.annotation) && !columnConfig.annotation)
|
|
8
9
|
return null;
|
|
9
10
|
return createVNode("section", {
|
|
10
11
|
"class": "big-table__annotationWrapper"
|
|
@@ -19,7 +19,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
data: null,
|
|
20
20
|
addRenderItem: null
|
|
21
21
|
},
|
|
22
|
-
emits: [
|
|
22
|
+
emits: [
|
|
23
|
+
"change",
|
|
24
|
+
"add",
|
|
25
|
+
"select"
|
|
26
|
+
],
|
|
23
27
|
setup(__props, { expose, emit: emits }) {
|
|
24
28
|
const props = __props;
|
|
25
29
|
const defaultHeight = 15;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { IData, IDate, IPointType } from './interface';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
data: {
|
|
@@ -152,13 +153,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
153
|
default: () => never[];
|
|
153
154
|
};
|
|
154
155
|
point: {
|
|
155
|
-
type:
|
|
156
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
156
157
|
};
|
|
157
158
|
propItems: {
|
|
158
|
-
type:
|
|
159
|
+
type: PropType<import("./interface").IPropItems>;
|
|
159
160
|
};
|
|
160
161
|
target: {
|
|
161
|
-
type:
|
|
162
|
+
type: PropType<any>;
|
|
162
163
|
};
|
|
163
164
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
165
|
show: {
|
|
@@ -170,13 +171,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
171
|
default: () => never[];
|
|
171
172
|
};
|
|
172
173
|
point: {
|
|
173
|
-
type:
|
|
174
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
174
175
|
};
|
|
175
176
|
propItems: {
|
|
176
|
-
type:
|
|
177
|
+
type: PropType<import("./interface").IPropItems>;
|
|
177
178
|
};
|
|
178
179
|
target: {
|
|
179
|
-
type:
|
|
180
|
+
type: PropType<any>;
|
|
180
181
|
};
|
|
181
182
|
}>> & {
|
|
182
183
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
@@ -129,6 +129,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function setCanvasEvent() {
|
|
132
|
+
if (!propItems.event.evented)
|
|
133
|
+
return;
|
|
132
134
|
canvas.value.on("mouse:up", (event) => {
|
|
133
135
|
var _a;
|
|
134
136
|
if (event.button === 3) {
|
|
@@ -157,7 +159,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
157
159
|
title: v.title,
|
|
158
160
|
unit: v.unit,
|
|
159
161
|
type: v.bigType,
|
|
160
|
-
dataIndex: v.dataIndex
|
|
162
|
+
dataIndex: v.dataIndex,
|
|
163
|
+
key: v.key
|
|
161
164
|
},
|
|
162
165
|
pointer: event.pointer
|
|
163
166
|
});
|
|
@@ -338,7 +341,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
338
341
|
coolLine,
|
|
339
342
|
coolPoint,
|
|
340
343
|
lockMovementX: true,
|
|
341
|
-
...pointAttr
|
|
344
|
+
...pointAttr,
|
|
345
|
+
...propItems.event
|
|
342
346
|
};
|
|
343
347
|
if (previousLine) {
|
|
344
348
|
point = drawPoint(type, {
|
|
@@ -195,10 +195,12 @@ ${item.title.slice(-2)}`,
|
|
|
195
195
|
title: item.title,
|
|
196
196
|
unit: item.unit,
|
|
197
197
|
type: item.bigType,
|
|
198
|
-
dataIndex: item.dataIndex
|
|
198
|
+
dataIndex: item.dataIndex,
|
|
199
|
+
key: item.key
|
|
199
200
|
},
|
|
200
201
|
originLeft: leftX,
|
|
201
|
-
originTop: topY - (text.height || 30) / 2
|
|
202
|
+
originTop: topY - (text.height || 30) / 2,
|
|
203
|
+
...propItems.event
|
|
202
204
|
});
|
|
203
205
|
topY -= text.height || 30;
|
|
204
206
|
setPointEvent(icon);
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as NaiveUI from 'naive-ui';
|
|
2
|
-
|
|
3
|
-
declare module 'naive-ui' {
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
export const NTree: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {};
|
|
1
|
+
import * as NaiveUI from 'naive-ui';
|
|
2
|
+
|
|
3
|
+
declare module 'naive-ui' {
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export const NTree: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {};
|