cnhis-design-vue 3.1.17-beta.5 → 3.1.17-beta.8
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 +6 -8
- package/es/packages/big-table/src/BigTable.vue.d.ts +11 -15
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +8 -6
- package/es/packages/big-table/src/components/edit-form/edit-date.js +15 -2
- package/es/packages/big-table/src/components/edit-form/edit-input.js +14 -3
- package/es/packages/big-table/src/components/edit-form/edit-select.d.ts +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-select.js +14 -3
- package/es/packages/big-table/src/components/edit-form/edit-separate.js +12 -11
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +13 -1
- package/es/packages/big-table/src/components/edit-form/edit-time.js +15 -2
- package/es/packages/big-table/src/hooks/useEdit.d.ts +14 -8
- package/es/packages/big-table/src/hooks/useEdit.js +0 -20
- package/es/packages/big-table/style/index.css +6 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +4 -3
- package/es/packages/field-set/index.d.ts +22 -26
- package/es/packages/field-set/src/FieldSet.js +107 -43
- package/es/packages/field-set/src/FieldSet.vue.d.ts +18 -26
- package/es/packages/field-set/style/index.css +5 -5
- package/es/packages/form-config/style/index.css +13 -2
- package/es/packages/form-render/src/components/renderer/formItem.js +2 -2
- package/es/packages/form-render/src/components/renderer/inputNumber.d.ts +16 -2
- package/es/packages/form-render/src/components/renderer/inputNumber.js +31 -4
- package/es/packages/form-render/src/hooks/useCommonInjection.js +4 -1
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +4 -6
- package/es/packages/form-render/src/hooks/useFormValidator.js +20 -5
- package/es/packages/form-render/src/utils/dom.js +2 -2
- package/es/packages/form-render/src/utils/index.js +1 -1
- package/es/packages/form-render/src/utils/schema.d.ts +1 -1
- package/es/packages/form-render/src/utils/schema.js +4 -4
- package/es/packages/index.css +24 -7
- package/es/packages/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/packages/select-label/index.d.ts +2 -2
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/src/utils/colorLog.d.ts +31 -0
- package/es/src/utils/colorLog.js +44 -0
- package/package.json +3 -1
|
@@ -2845,15 +2845,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2845
2845
|
row: any;
|
|
2846
2846
|
rowIndex: any;
|
|
2847
2847
|
};
|
|
2848
|
-
initEditTable: () => Promise<void>;
|
|
2849
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
2850
|
-
row: any;
|
|
2851
|
-
rowIndex: number;
|
|
2852
|
-
column: any;
|
|
2853
|
-
columnIndex: number;
|
|
2854
|
-
}) => boolean;
|
|
2855
2848
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
2856
|
-
onClickSelectTable: (row: any) => Promise<void>;
|
|
2857
2849
|
onFormChange: ({ value, row, column, index }: {
|
|
2858
2850
|
value: string | number | null;
|
|
2859
2851
|
row: any;
|
|
@@ -2941,6 +2933,12 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2941
2933
|
} | null;
|
|
2942
2934
|
showOverflow: boolean;
|
|
2943
2935
|
})[];
|
|
2936
|
+
getRowData: (row: import("../../../es/src/types").AnyObject) => {
|
|
2937
|
+
separateData: Record<string, string>;
|
|
2938
|
+
index: number;
|
|
2939
|
+
rawRow: import("../../../es/src/types").AnyObject;
|
|
2940
|
+
row: import("../../../es/src/types").AnyObject;
|
|
2941
|
+
} | undefined;
|
|
2944
2942
|
formatterEdit: (params: any, col: any) => any;
|
|
2945
2943
|
getEditBtn: (row: any, col: any, index: any) => any;
|
|
2946
2944
|
formatter: (params: any, col: any, _isEdit: any) => any;
|
|
@@ -1126,12 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1126
1126
|
textColorGhostHoverWarning: string;
|
|
1127
1127
|
textColorGhostPressedWarning: string;
|
|
1128
1128
|
textColorGhostFocusWarning: string;
|
|
1129
|
-
textColorGhostDisabledWarning: string;
|
|
1130
|
-
* 判断是否渲染EditForm
|
|
1131
|
-
* @param {*} row
|
|
1132
|
-
* @param {*} column
|
|
1133
|
-
* @returns
|
|
1134
|
-
*/
|
|
1129
|
+
textColorGhostDisabledWarning: string;
|
|
1135
1130
|
borderWarning: string;
|
|
1136
1131
|
borderHoverWarning: string;
|
|
1137
1132
|
borderPressedWarning: string;
|
|
@@ -1252,7 +1247,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1252
1247
|
textColorTextHoverPrimary: string;
|
|
1253
1248
|
textColorTextPressedPrimary: string;
|
|
1254
1249
|
textColorTextFocusPrimary: string;
|
|
1255
|
-
textColorTextDisabledPrimary: string;
|
|
1250
|
+
textColorTextDisabledPrimary: string; /**
|
|
1251
|
+
* tsx渲染表格
|
|
1252
|
+
*/
|
|
1256
1253
|
textColorGhostPrimary: string;
|
|
1257
1254
|
textColorGhostHoverPrimary: string;
|
|
1258
1255
|
textColorGhostPressedPrimary: string;
|
|
@@ -1331,6 +1328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1331
1328
|
textColorTextPressedWarning: string;
|
|
1332
1329
|
textColorTextFocusWarning: string;
|
|
1333
1330
|
textColorTextDisabledWarning: string;
|
|
1331
|
+
/** string */
|
|
1334
1332
|
textColorGhostWarning: string;
|
|
1335
1333
|
textColorGhostHoverWarning: string;
|
|
1336
1334
|
textColorGhostPressedWarning: string;
|
|
@@ -2849,15 +2847,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2849
2847
|
row: any;
|
|
2850
2848
|
rowIndex: any;
|
|
2851
2849
|
};
|
|
2852
|
-
initEditTable: () => Promise<void>;
|
|
2853
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
2854
|
-
row: any;
|
|
2855
|
-
rowIndex: number;
|
|
2856
|
-
column: any;
|
|
2857
|
-
columnIndex: number;
|
|
2858
|
-
}) => boolean;
|
|
2859
2850
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
2860
|
-
onClickSelectTable: (row: any) => Promise<void>;
|
|
2861
2851
|
onFormChange: ({ value, row, column, index }: {
|
|
2862
2852
|
value: string | number | null;
|
|
2863
2853
|
row: any;
|
|
@@ -2945,6 +2935,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2945
2935
|
} | null;
|
|
2946
2936
|
showOverflow: boolean;
|
|
2947
2937
|
})[];
|
|
2938
|
+
getRowData: (row: import("../../../src/types").AnyObject) => {
|
|
2939
|
+
separateData: Record<string, string>;
|
|
2940
|
+
index: number;
|
|
2941
|
+
rawRow: import("../../../src/types").AnyObject;
|
|
2942
|
+
row: import("../../../src/types").AnyObject;
|
|
2943
|
+
} | undefined;
|
|
2948
2944
|
formatterEdit: (params: any, col: any) => any;
|
|
2949
2945
|
getEditBtn: (row: any, col: any, index: any) => any;
|
|
2950
2946
|
formatter: (params: any, col: any, _isEdit: any) => any;
|
|
@@ -19,7 +19,7 @@ import { useBatchEditing } from './hooks/useBatchEditing.js';
|
|
|
19
19
|
import { useNestTable } from './hooks/useNestTable.js';
|
|
20
20
|
import { useAnchor } from './hooks/useAnchor.js';
|
|
21
21
|
import { useEvent } from './hooks/useEvent.js';
|
|
22
|
-
import { useSeparateRow } from './hooks/useSeparateRow.js';
|
|
22
|
+
import { useSeparateRow, useSeparateMap } from './hooks/useSeparateRow.js';
|
|
23
23
|
import { useFormat } from './hooks/useFormat.js';
|
|
24
24
|
import { useTableParse } from './hooks/useTableParse.js';
|
|
25
25
|
import { useEdit, comps } from './hooks/useEdit.js';
|
|
@@ -82,10 +82,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
getInlineOpreateRow
|
|
83
83
|
} = useBatchEditing(props, state, emit, xGrid);
|
|
84
84
|
const {
|
|
85
|
-
initEditTable,
|
|
86
|
-
activeMethod,
|
|
87
85
|
deleteRow,
|
|
88
|
-
onClickSelectTable,
|
|
89
86
|
onFormChange,
|
|
90
87
|
getDefaultValue
|
|
91
88
|
} = useEdit(props, state, emit, xGrid);
|
|
@@ -506,7 +503,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
506
503
|
state.columnLen = currentColumns.filter((item) => item.visible).length;
|
|
507
504
|
return columns;
|
|
508
505
|
};
|
|
506
|
+
const {
|
|
507
|
+
getRowData
|
|
508
|
+
} = useSeparateMap();
|
|
509
509
|
const formatterEdit = (params, col) => {
|
|
510
|
+
var _a, _b;
|
|
510
511
|
let {
|
|
511
512
|
row,
|
|
512
513
|
column,
|
|
@@ -526,7 +527,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
526
527
|
const propsData = {
|
|
527
528
|
col,
|
|
528
529
|
row,
|
|
529
|
-
index: $rowIndex,
|
|
530
|
+
index: (_b = (_a = getRowData(row)) == null ? void 0 : _a.index) != null ? _b : $rowIndex,
|
|
530
531
|
type: formType,
|
|
531
532
|
...col.componentProps || {},
|
|
532
533
|
onFormChange,
|
|
@@ -537,7 +538,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
537
538
|
column: col,
|
|
538
539
|
index: $rowIndex
|
|
539
540
|
});
|
|
540
|
-
}
|
|
541
|
+
},
|
|
542
|
+
editTrigger: state.editConfig.trigger
|
|
541
543
|
};
|
|
542
544
|
if (formType === "date" || formType === "time") {
|
|
543
545
|
propsData.formattedValue = row[col.columnName];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { generateTimeFormat } from '../../../../../src/utils';
|
|
3
3
|
import { isFunction } from 'lodash-es';
|
|
4
4
|
import { NDatePicker } from 'naive-ui';
|
|
@@ -28,6 +28,8 @@ var EditDate = defineComponent({
|
|
|
28
28
|
attrs,
|
|
29
29
|
emit
|
|
30
30
|
}) {
|
|
31
|
+
const dateRef = ref(null);
|
|
32
|
+
const isShow = ref(false);
|
|
31
33
|
const onConfirm = (value) => {
|
|
32
34
|
emit("formChange", {
|
|
33
35
|
value,
|
|
@@ -124,7 +126,18 @@ var EditDate = defineComponent({
|
|
|
124
126
|
if (config.type.includes("time")) {
|
|
125
127
|
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
126
128
|
}
|
|
127
|
-
|
|
129
|
+
onMounted(() => {
|
|
130
|
+
var _a;
|
|
131
|
+
if (attrs.editTrigger !== "manual") {
|
|
132
|
+
(_a = dateRef.value) == null ? void 0 : _a.focus();
|
|
133
|
+
isShow.value = true;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
return () => createVNode(NDatePicker, mergeProps({
|
|
137
|
+
"ref": dateRef,
|
|
138
|
+
"show": isShow.value,
|
|
139
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
140
|
+
}, attrs, config, {
|
|
128
141
|
"onUpdateFormattedValue": onConfirm
|
|
129
142
|
}), null);
|
|
130
143
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NInput, NInputNumber } from 'naive-ui';
|
|
3
3
|
|
|
4
4
|
var EditInput = defineComponent({
|
|
@@ -32,6 +32,7 @@ var EditInput = defineComponent({
|
|
|
32
32
|
emit
|
|
33
33
|
}) {
|
|
34
34
|
const __value = ref(attrs.value);
|
|
35
|
+
const inputRef = ref(null);
|
|
35
36
|
const onUpdateValue = (value) => {
|
|
36
37
|
emit("formChange", {
|
|
37
38
|
value,
|
|
@@ -52,11 +53,21 @@ var EditInput = defineComponent({
|
|
|
52
53
|
placeholder: props.col.placeholder || "\u8BF7\u8F93\u5165",
|
|
53
54
|
...props.col.componentProps || {}
|
|
54
55
|
};
|
|
55
|
-
|
|
56
|
+
onMounted(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
if (attrs.editTrigger !== "manual") {
|
|
59
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return () => props.type === "input" ? createVNode(NInput, mergeProps({
|
|
63
|
+
"ref": inputRef
|
|
64
|
+
}, attrs, config, {
|
|
56
65
|
"value": __value.value,
|
|
57
66
|
"onUpdate:value": ($event) => __value.value = $event,
|
|
58
67
|
"onBlur": onBlur
|
|
59
|
-
}), null) : createVNode(NInputNumber, mergeProps(
|
|
68
|
+
}), null) : createVNode(NInputNumber, mergeProps({
|
|
69
|
+
"ref": inputRef
|
|
70
|
+
}, attrs, config, {
|
|
60
71
|
"onUpdateValue": onUpdateValue
|
|
61
72
|
}), null);
|
|
62
73
|
}
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: (NumberConstructor | ObjectConstructor)[];
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
}, () => JSX.Element
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
col: {
|
|
16
16
|
type: ObjectConstructor;
|
|
17
17
|
default: () => {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, reactive, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, reactive, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NSelect } from 'naive-ui';
|
|
3
3
|
import vexutils from '../../../../../src/utils/vexutils';
|
|
4
4
|
|
|
@@ -28,6 +28,8 @@ var EditSelect = defineComponent({
|
|
|
28
28
|
slots,
|
|
29
29
|
emit
|
|
30
30
|
}) {
|
|
31
|
+
const selectRef = ref(null);
|
|
32
|
+
const isShow = ref(false);
|
|
31
33
|
const state = reactive({
|
|
32
34
|
options: [],
|
|
33
35
|
loading: false,
|
|
@@ -77,7 +79,16 @@ var EditSelect = defineComponent({
|
|
|
77
79
|
}
|
|
78
80
|
};
|
|
79
81
|
init();
|
|
80
|
-
|
|
82
|
+
onMounted(() => {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = selectRef.value) == null ? void 0 : _a.focus();
|
|
85
|
+
isShow.value = true;
|
|
86
|
+
});
|
|
87
|
+
return () => createVNode(NSelect, mergeProps({
|
|
88
|
+
"ref": selectRef,
|
|
89
|
+
"show": isShow.value,
|
|
90
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
91
|
+
}, attrs, state.config, {
|
|
81
92
|
"options": state.options,
|
|
82
93
|
"consistentMenuWidth": false,
|
|
83
94
|
"clearable": true,
|
|
@@ -85,7 +96,7 @@ var EditSelect = defineComponent({
|
|
|
85
96
|
"placeholder": props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
86
97
|
"loading": state.loading,
|
|
87
98
|
"onUpdateValue": onUpdateValue
|
|
88
|
-
}), null)
|
|
99
|
+
}), null);
|
|
89
100
|
}
|
|
90
101
|
});
|
|
91
102
|
|
|
@@ -24,32 +24,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
watch(show, updateShow);
|
|
25
25
|
const editContent = ref();
|
|
26
26
|
const { getRowData } = useSeparateMap();
|
|
27
|
-
async function
|
|
27
|
+
async function onShow(target) {
|
|
28
28
|
var _a;
|
|
29
|
-
const target = getRowData(props.row);
|
|
30
29
|
if (!target)
|
|
31
30
|
return;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const old = target.row[props.col.field];
|
|
31
|
+
editContent.value = cloneDeep(target.row[props.col.field]);
|
|
32
|
+
await new Promise((resolve) => setTimeout(resolve));
|
|
33
|
+
(_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
async function onClose(target) {
|
|
39
37
|
if (!target)
|
|
40
38
|
return;
|
|
39
|
+
const old = target.row[props.col.field];
|
|
41
40
|
if (!isObject(editContent.value) && !isArray(editContent.value)) {
|
|
42
41
|
if (old === editContent.value)
|
|
43
42
|
return;
|
|
44
43
|
}
|
|
45
|
-
target.rawRow[props.col.field] = editContent.value;
|
|
46
44
|
emit("formChange", {
|
|
47
45
|
value: editContent.value,
|
|
48
|
-
row:
|
|
46
|
+
row: props.row,
|
|
49
47
|
column: props.col,
|
|
50
48
|
index: target.index
|
|
51
49
|
});
|
|
52
50
|
}
|
|
51
|
+
function updateShow(show2) {
|
|
52
|
+
show2 ? onShow(getRowData(props.row)) : onClose(getRowData(props.row));
|
|
53
|
+
}
|
|
53
54
|
const style = {
|
|
54
55
|
border: "1px solid #f5f5f5",
|
|
55
56
|
padding: "4px 0 4px 4px",
|
|
@@ -41,7 +41,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
rawRow: AnyObject;
|
|
42
42
|
row: AnyObject;
|
|
43
43
|
} | undefined;
|
|
44
|
-
|
|
44
|
+
onShow: (target: {
|
|
45
|
+
separateData: Record<string, string>;
|
|
46
|
+
index: number;
|
|
47
|
+
rawRow: AnyObject;
|
|
48
|
+
row: AnyObject;
|
|
49
|
+
} | undefined) => Promise<void>;
|
|
50
|
+
onClose: (target: {
|
|
51
|
+
separateData: Record<string, string>;
|
|
52
|
+
index: number;
|
|
53
|
+
rawRow: AnyObject;
|
|
54
|
+
row: AnyObject;
|
|
55
|
+
} | undefined) => Promise<void>;
|
|
56
|
+
updateShow: (show: boolean) => void;
|
|
45
57
|
style: CSSProperties;
|
|
46
58
|
SlotRender: import("vue").DefineComponent<{
|
|
47
59
|
renderer: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createVNode, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { NTimePicker } from 'naive-ui';
|
|
3
3
|
|
|
4
4
|
var editTime = defineComponent({
|
|
@@ -30,6 +30,8 @@ var editTime = defineComponent({
|
|
|
30
30
|
attrs,
|
|
31
31
|
emit
|
|
32
32
|
}) {
|
|
33
|
+
const timeRef = ref(null);
|
|
34
|
+
const isShow = ref(false);
|
|
33
35
|
const onUpdateValue = (value) => {
|
|
34
36
|
emit("formChange", {
|
|
35
37
|
value,
|
|
@@ -44,7 +46,18 @@ var editTime = defineComponent({
|
|
|
44
46
|
format: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
45
47
|
...props.col.componentProps || {}
|
|
46
48
|
};
|
|
47
|
-
|
|
49
|
+
onMounted(() => {
|
|
50
|
+
var _a;
|
|
51
|
+
if (attrs.editTrigger !== "manual") {
|
|
52
|
+
(_a = timeRef.value) == null ? void 0 : _a.focus();
|
|
53
|
+
isShow.value = true;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return () => createVNode(NTimePicker, mergeProps({
|
|
57
|
+
"ref": timeRef,
|
|
58
|
+
"show": isShow.value,
|
|
59
|
+
"onUpdate:show": ($event) => isShow.value = $event
|
|
60
|
+
}, attrs, config, {
|
|
48
61
|
"onUpdateFormattedValue": onUpdateValue
|
|
49
62
|
}), null);
|
|
50
63
|
}
|
|
@@ -96,7 +96,7 @@ export declare const comps: {
|
|
|
96
96
|
type: (NumberConstructor | ObjectConstructor)[];
|
|
97
97
|
default: number;
|
|
98
98
|
};
|
|
99
|
-
}, () => JSX.Element
|
|
99
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
col: {
|
|
101
101
|
type: ObjectConstructor;
|
|
102
102
|
default: () => {};
|
|
@@ -233,7 +233,19 @@ export declare const comps: {
|
|
|
233
233
|
rawRow: import("../../../../src/types").AnyObject;
|
|
234
234
|
row: import("../../../../src/types").AnyObject;
|
|
235
235
|
} | undefined;
|
|
236
|
-
|
|
236
|
+
onShow: (target: {
|
|
237
|
+
separateData: Record<string, string>;
|
|
238
|
+
index: number;
|
|
239
|
+
rawRow: import("../../../../src/types").AnyObject;
|
|
240
|
+
row: import("../../../../src/types").AnyObject;
|
|
241
|
+
} | undefined) => Promise<void>;
|
|
242
|
+
onClose: (target: {
|
|
243
|
+
separateData: Record<string, string>;
|
|
244
|
+
index: number;
|
|
245
|
+
rawRow: import("../../../../src/types").AnyObject;
|
|
246
|
+
row: import("../../../../src/types").AnyObject;
|
|
247
|
+
} | undefined) => Promise<void>;
|
|
248
|
+
updateShow: (show: boolean) => void;
|
|
237
249
|
style: import("vue").CSSProperties;
|
|
238
250
|
SlotRender: import("vue").DefineComponent<{
|
|
239
251
|
renderer: {
|
|
@@ -1458,12 +1470,6 @@ export declare const comps: {
|
|
|
1458
1470
|
};
|
|
1459
1471
|
export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) => {
|
|
1460
1472
|
initEditTable: () => Promise<void>;
|
|
1461
|
-
activeMethod: ({ row, rowIndex, column, columnIndex }: {
|
|
1462
|
-
row: any;
|
|
1463
|
-
rowIndex: number;
|
|
1464
|
-
column: any;
|
|
1465
|
-
columnIndex: number;
|
|
1466
|
-
}) => boolean;
|
|
1467
1473
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
1468
1474
|
onClickSelectTable: (row: any) => Promise<void>;
|
|
1469
1475
|
onFormChange: ({ value, row, column, index }: {
|
|
@@ -34,25 +34,6 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
34
34
|
xGrid.value.remove(row);
|
|
35
35
|
emit("clickBtn", { row, column: col, index });
|
|
36
36
|
};
|
|
37
|
-
const activeMethod = ({
|
|
38
|
-
row,
|
|
39
|
-
rowIndex,
|
|
40
|
-
column,
|
|
41
|
-
columnIndex
|
|
42
|
-
}) => {
|
|
43
|
-
var _a;
|
|
44
|
-
const { isEdit, fieldList } = props.columnConfig;
|
|
45
|
-
if (isEdit) {
|
|
46
|
-
const isEditCol = ((_a = fieldList.find((v) => v.columnName === column.field)) == null ? void 0 : _a.isEdit) || false;
|
|
47
|
-
if (isEditCol) {
|
|
48
|
-
return true;
|
|
49
|
-
} else {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
37
|
const onClickSelectTable = async (row) => {
|
|
57
38
|
emit("clickSelectTable", { row });
|
|
58
39
|
const record = {
|
|
@@ -131,7 +112,6 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
131
112
|
};
|
|
132
113
|
return {
|
|
133
114
|
initEditTable,
|
|
134
|
-
activeMethod,
|
|
135
115
|
deleteRow,
|
|
136
116
|
onClickSelectTable,
|
|
137
117
|
onFormChange,
|
|
@@ -538,6 +538,12 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
538
538
|
margin-right: 6px;
|
|
539
539
|
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
540
540
|
}
|
|
541
|
+
.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle {
|
|
542
|
+
box-shadow: 4px 0 4px 0 rgba(0, 0, 0, 0.12);
|
|
543
|
+
}
|
|
544
|
+
.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle {
|
|
545
|
+
box-shadow: -4px 0 4px 0 rgba(0, 0, 0, 0.12);
|
|
546
|
+
}
|
|
541
547
|
.annotation-edit {
|
|
542
548
|
cursor: pointer;
|
|
543
549
|
color: #0067ee;
|
|
@@ -22,9 +22,10 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
22
22
|
const mainScaleWidth = 9;
|
|
23
23
|
const subScaleWidth = 5;
|
|
24
24
|
function drawScaleNumber(text, item, left2, top) {
|
|
25
|
+
const { position } = item;
|
|
25
26
|
return new fabric.Text(String(text), {
|
|
26
27
|
...defaultTextStyle,
|
|
27
|
-
originX:
|
|
28
|
+
originX: position == "left" ? "right" : position == "right" ? "left" : "center",
|
|
28
29
|
left: left2,
|
|
29
30
|
top,
|
|
30
31
|
...item.style
|
|
@@ -35,13 +36,13 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
|
|
|
35
36
|
let lineXMain = [scaleLeft - mainScaleWidth / 2, scaleLeft + mainScaleWidth / 2];
|
|
36
37
|
let lineXSub = [scaleLeft - subScaleWidth / 2, scaleLeft + subScaleWidth / 2];
|
|
37
38
|
let textLeft = scaleLeft;
|
|
38
|
-
if (position === "
|
|
39
|
+
if (position === "right") {
|
|
39
40
|
scaleLeft = x;
|
|
40
41
|
lineXMain = [scaleLeft, scaleLeft + mainScaleWidth];
|
|
41
42
|
lineXSub = [scaleLeft, scaleLeft + subScaleWidth];
|
|
42
43
|
textLeft = lineXMain[1];
|
|
43
44
|
}
|
|
44
|
-
if (position === "
|
|
45
|
+
if (position === "left") {
|
|
45
46
|
scaleLeft = x + width;
|
|
46
47
|
lineXMain = [scaleLeft - mainScaleWidth, scaleLeft];
|
|
47
48
|
lineXSub = [scaleLeft - subScaleWidth, scaleLeft];
|
|
@@ -4,14 +4,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4
4
|
type: import("vue").PropType<any[]>;
|
|
5
5
|
default: () => never[];
|
|
6
6
|
};
|
|
7
|
-
menuSource: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
drawerDirection: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
7
|
footerFlag: {
|
|
16
8
|
type: BooleanConstructor;
|
|
17
9
|
default: boolean;
|
|
@@ -20,6 +12,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
20
12
|
type: StringConstructor;
|
|
21
13
|
default: string;
|
|
22
14
|
};
|
|
15
|
+
isEdit: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
23
19
|
}, {
|
|
24
20
|
fieldsMapping: Record<string, string>;
|
|
25
21
|
selectOptions: Record<string, string>[];
|
|
@@ -30,14 +26,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
30
26
|
type: import("vue").PropType<any[]>;
|
|
31
27
|
default: () => never[];
|
|
32
28
|
};
|
|
33
|
-
menuSource: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
drawerDirection: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
29
|
footerFlag: {
|
|
42
30
|
type: BooleanConstructor;
|
|
43
31
|
default: boolean;
|
|
@@ -46,6 +34,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
46
34
|
type: StringConstructor;
|
|
47
35
|
default: string;
|
|
48
36
|
};
|
|
37
|
+
isEdit: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
49
41
|
}>> & {
|
|
50
42
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
51
43
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -68,7 +60,11 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
68
60
|
fixedShow: boolean;
|
|
69
61
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
70
62
|
columnWidth: number;
|
|
63
|
+
editable: boolean;
|
|
64
|
+
required: boolean;
|
|
71
65
|
}[];
|
|
66
|
+
widthShow: string;
|
|
67
|
+
widthLarge: string;
|
|
72
68
|
};
|
|
73
69
|
leftStyle: (ele: {
|
|
74
70
|
[key: string]: any;
|
|
@@ -81,6 +77,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
81
77
|
fixedShow: boolean;
|
|
82
78
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
83
79
|
columnWidth: number;
|
|
80
|
+
editable: boolean;
|
|
81
|
+
required: boolean;
|
|
84
82
|
}) => {
|
|
85
83
|
background: string | undefined;
|
|
86
84
|
};
|
|
@@ -102,7 +100,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
102
100
|
fixedShow: boolean;
|
|
103
101
|
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
104
102
|
columnWidth: number;
|
|
103
|
+
editable: boolean;
|
|
104
|
+
required: boolean;
|
|
105
105
|
}) => void;
|
|
106
|
+
setWidth: () => void;
|
|
106
107
|
NButton: import("vue").DefineComponent<{
|
|
107
108
|
readonly color: StringConstructor;
|
|
108
109
|
readonly textColor: StringConstructor;
|
|
@@ -6979,14 +6980,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6979
6980
|
type: import("vue").PropType<any[]>;
|
|
6980
6981
|
default: () => never[];
|
|
6981
6982
|
};
|
|
6982
|
-
menuSource: {
|
|
6983
|
-
type: StringConstructor;
|
|
6984
|
-
default: string;
|
|
6985
|
-
};
|
|
6986
|
-
drawerDirection: {
|
|
6987
|
-
type: StringConstructor;
|
|
6988
|
-
default: string;
|
|
6989
|
-
};
|
|
6990
6983
|
footerFlag: {
|
|
6991
6984
|
type: BooleanConstructor;
|
|
6992
6985
|
default: boolean;
|
|
@@ -6995,14 +6988,17 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6995
6988
|
type: StringConstructor;
|
|
6996
6989
|
default: string;
|
|
6997
6990
|
};
|
|
6991
|
+
isEdit: {
|
|
6992
|
+
type: BooleanConstructor;
|
|
6993
|
+
default: boolean;
|
|
6994
|
+
};
|
|
6998
6995
|
}>> & {
|
|
6999
6996
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
7000
6997
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
7001
6998
|
}, {
|
|
7002
6999
|
type: string;
|
|
7003
7000
|
fields: any[];
|
|
7004
|
-
menuSource: string;
|
|
7005
|
-
drawerDirection: string;
|
|
7006
7001
|
footerFlag: boolean;
|
|
7002
|
+
isEdit: boolean;
|
|
7007
7003
|
}>>;
|
|
7008
7004
|
export default FieldSet;
|