cnhis-design-vue 3.1.12-beta.5 → 3.1.12
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 +4 -9
- package/es/packages/big-table/src/BigTable.vue.d.ts +15 -12
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +87 -63
- package/es/packages/big-table/src/bigTableState.d.ts +2 -0
- package/es/packages/big-table/src/bigTableState.js +1 -1
- package/es/packages/big-table/src/hooks/useFormat.js +1 -1
- package/es/packages/big-table/src/hooks/useNestTable.js +1 -1
- package/es/packages/big-table/src/utils.d.ts +5 -1
- package/es/packages/big-table/src/utils.js +100 -78
- package/es/packages/fabric-chart/index.d.ts +195 -1
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +196 -1
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +269 -6
- package/es/packages/fabric-chart/src/components/PopupMenu.d.ts +46 -0
- package/es/packages/fabric-chart/src/components/PopupMenu.js +105 -0
- package/es/packages/fabric-chart/src/components/PopupTip.js +4 -0
- package/es/packages/fabric-chart/src/components/PopupTip.vue.d.ts +63 -0
- package/es/packages/fabric-chart/src/components/PopupTip.vue_vue_type_script_setup_true_lang.js +32 -0
- package/es/packages/fabric-chart/src/components/useStyle.d.ts +7 -0
- package/es/packages/fabric-chart/src/components/useStyle.js +36 -0
- package/es/packages/fabric-chart/src/hooks/constant.d.ts +14 -0
- package/es/packages/fabric-chart/src/hooks/constant.js +36 -0
- package/es/packages/fabric-chart/src/hooks/index.d.ts +9 -0
- package/es/packages/fabric-chart/src/hooks/index.js +9 -0
- package/es/packages/fabric-chart/src/hooks/useBottom.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useBottom.js +86 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.d.ts +29 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.js +469 -0
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.d.ts +7 -0
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +44 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.d.ts +42 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.js +86 -0
- package/es/packages/fabric-chart/src/hooks/useEvent.d.ts +1 -0
- package/es/packages/fabric-chart/src/hooks/useEvent.js +10 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.js +44 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +180 -0
- package/es/packages/fabric-chart/src/hooks/useOther.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useOther.js +34 -0
- package/es/packages/fabric-chart/src/hooks/useRight.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useRight.js +89 -0
- package/es/packages/fabric-chart/src/hooks/useShadow.d.ts +6 -0
- package/es/packages/fabric-chart/src/hooks/useShadow.js +127 -0
- package/es/packages/fabric-chart/src/hooks/useTop.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useTop.js +148 -0
- package/es/packages/fabric-chart/src/interface.d.ts +115 -0
- package/es/packages/fabric-chart/src/interface.js +3 -0
- package/es/packages/fabric-chart/src/utils/index.d.ts +2 -0
- package/es/packages/fabric-chart/src/utils/index.js +15081 -0
- package/es/packages/fabric-chart/style/index.css +43 -0
- package/es/packages/form-render/src/components/renderer/cascader.js +14 -0
- package/es/packages/form-render/src/components/renderer/checkbox.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/checkbox.js +4 -5
- package/es/packages/form-render/src/components/renderer/date.js +42 -10
- package/es/packages/form-render/src/components/renderer/index.d.ts +1 -0
- package/es/packages/form-render/src/components/renderer/index.js +1 -0
- package/es/packages/form-render/src/components/renderer/linebar.js +1 -1
- package/es/packages/form-render/src/components/renderer/select.js +11 -0
- package/es/packages/form-render/src/components/renderer/simpleComponent.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/simpleComponent.js +64 -0
- package/es/packages/form-render/src/components/renderer/slider.js +1 -1
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +24 -15
- package/es/packages/index.css +50 -0
- package/es/packages/scale-view/src/hooks/scaleview-computed.js +7 -12
- package/es/packages/scale-view/src/hooks/scaleview-init.js +1 -6
- package/es/packages/select-label/style/index.css +7 -0
- package/package.json +2 -2
|
@@ -2503,6 +2503,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2503
2503
|
editConfig: import("vxe-table").VxeTablePropTypes.EditConfig;
|
|
2504
2504
|
rowConfig: {
|
|
2505
2505
|
height: number;
|
|
2506
|
+
isHover: boolean;
|
|
2507
|
+
isCurrent: boolean;
|
|
2506
2508
|
};
|
|
2507
2509
|
};
|
|
2508
2510
|
state: {
|
|
@@ -2563,14 +2565,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2563
2565
|
showInsertStatus?: boolean | undefined;
|
|
2564
2566
|
showAsterisk?: boolean | undefined;
|
|
2565
2567
|
autoClear?: boolean | undefined;
|
|
2566
|
-
beforeEditMethod?: ((params: {
|
|
2567
|
-
row: any;
|
|
2568
|
-
rowIndex: number;
|
|
2569
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2570
|
-
columnIndex: number;
|
|
2571
|
-
$table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
|
|
2572
|
-
$grid: import("vxe-table").VxeGridConstructor | null | undefined;
|
|
2573
|
-
}) => boolean) | undefined;
|
|
2574
2568
|
activeMethod?: ((params: {
|
|
2575
2569
|
row: any;
|
|
2576
2570
|
rowIndex: number;
|
|
@@ -2582,6 +2576,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2582
2576
|
};
|
|
2583
2577
|
rowConfig: {
|
|
2584
2578
|
height: number;
|
|
2579
|
+
isHover: boolean;
|
|
2580
|
+
isCurrent: boolean;
|
|
2585
2581
|
};
|
|
2586
2582
|
};
|
|
2587
2583
|
emit: (event: string, ...args: any[]) => void;
|
|
@@ -2867,7 +2863,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2867
2863
|
userInfo: Record<string, any>;
|
|
2868
2864
|
sysImageSize: unknown[];
|
|
2869
2865
|
}>;
|
|
2870
|
-
handlePrimaryKey: import("vue").ComputedRef<string>;
|
|
2871
2866
|
handleSeqConfig: import("vue").ComputedRef<{
|
|
2872
2867
|
startIndex: number;
|
|
2873
2868
|
}>;
|
|
@@ -1183,7 +1183,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1183
1183
|
fontSizeTiny: string;
|
|
1184
1184
|
fontSizeSmall: string;
|
|
1185
1185
|
fontSizeMedium: string;
|
|
1186
|
-
fontSizeLarge: string;
|
|
1186
|
+
fontSizeLarge: string; /**
|
|
1187
|
+
* 避免每次点击都查询
|
|
1188
|
+
* 初始化查一次 行编辑 表单search用
|
|
1189
|
+
*/
|
|
1187
1190
|
opacityDisabled: string;
|
|
1188
1191
|
colorOpacitySecondary: string;
|
|
1189
1192
|
colorOpacitySecondaryHover: string;
|
|
@@ -1206,7 +1209,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1206
1209
|
textColorTertiary: string;
|
|
1207
1210
|
textColorHover: string;
|
|
1208
1211
|
textColorPressed: string;
|
|
1209
|
-
textColorFocus: string;
|
|
1212
|
+
textColorFocus: string; /**
|
|
1213
|
+
* tsx渲染表格
|
|
1214
|
+
*/
|
|
1210
1215
|
textColorDisabled: string;
|
|
1211
1216
|
textColorText: string;
|
|
1212
1217
|
textColorTextHover: string;
|
|
@@ -1287,7 +1292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1287
1292
|
textColorFocusSuccess: string;
|
|
1288
1293
|
textColorDisabledSuccess: string;
|
|
1289
1294
|
textColorTextSuccess: string;
|
|
1290
|
-
textColorTextHoverSuccess: string;
|
|
1295
|
+
textColorTextHoverSuccess: string; /** string */
|
|
1291
1296
|
textColorTextPressedSuccess: string;
|
|
1292
1297
|
textColorTextFocusSuccess: string;
|
|
1293
1298
|
textColorTextDisabledSuccess: string;
|
|
@@ -2502,6 +2507,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2502
2507
|
editConfig: import("vxe-table").VxeTablePropTypes.EditConfig;
|
|
2503
2508
|
rowConfig: {
|
|
2504
2509
|
height: number;
|
|
2510
|
+
isHover: boolean;
|
|
2511
|
+
isCurrent: boolean;
|
|
2505
2512
|
};
|
|
2506
2513
|
};
|
|
2507
2514
|
state: {
|
|
@@ -2562,14 +2569,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2562
2569
|
showInsertStatus?: boolean | undefined;
|
|
2563
2570
|
showAsterisk?: boolean | undefined;
|
|
2564
2571
|
autoClear?: boolean | undefined;
|
|
2565
|
-
beforeEditMethod?: ((params: {
|
|
2566
|
-
row: any;
|
|
2567
|
-
rowIndex: number;
|
|
2568
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2569
|
-
columnIndex: number;
|
|
2570
|
-
$table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
|
|
2571
|
-
$grid: import("vxe-table").VxeGridConstructor | null | undefined;
|
|
2572
|
-
}) => boolean) | undefined;
|
|
2573
2572
|
activeMethod?: ((params: {
|
|
2574
2573
|
row: any;
|
|
2575
2574
|
rowIndex: number;
|
|
@@ -2581,6 +2580,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2581
2580
|
};
|
|
2582
2581
|
rowConfig: {
|
|
2583
2582
|
height: number;
|
|
2583
|
+
isHover: boolean;
|
|
2584
|
+
isCurrent: boolean;
|
|
2584
2585
|
};
|
|
2585
2586
|
};
|
|
2586
2587
|
emit: (event: string, ...args: any[]) => void;
|
|
@@ -2866,7 +2867,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2866
2867
|
userInfo: Record<string, any>;
|
|
2867
2868
|
sysImageSize: unknown[];
|
|
2868
2869
|
}>;
|
|
2869
|
-
handlePrimaryKey: import("vue").ComputedRef<string>;
|
|
2870
2870
|
handleSeqConfig: import("vue").ComputedRef<{
|
|
2871
2871
|
startIndex: number;
|
|
2872
2872
|
}>;
|
|
@@ -4045,6 +4045,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4045
4045
|
readonly color: StringConstructor;
|
|
4046
4046
|
readonly component: import("vue").PropType<import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
4047
4047
|
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Icon", {
|
|
4048
|
+
/**
|
|
4049
|
+
* computed
|
|
4050
|
+
*/
|
|
4048
4051
|
color: string;
|
|
4049
4052
|
opacity1Depth: string;
|
|
4050
4053
|
opacity2Depth: string;
|
|
@@ -16,7 +16,7 @@ import SvgIcon from '../../../src/components/SvgIcon';
|
|
|
16
16
|
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NSpace, NButton, NPopconfirm, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
|
|
17
17
|
import CGrid from '../../../packages/grid';
|
|
18
18
|
import vexutils from '../../../src/utils/vexutils';
|
|
19
|
-
import { handleTableHeight, setTableConfig, handleGroupColums, checkMethod, setTreeGroupTitle, handleName, generateEditRender, handlerInitSearchItem, getEvaluate, getMapVal, getCandidateComponents, getageShowType, isLink, showFilter, reScrollFilterWrap, hideFilterWrap, mergeConObjFn, setDefaultFormData, handleImgArr, handleImgSrc, modalDetailImage, handleQrCodeContent, getInlineEditBtn, isCopy, setVisibleCheckAllWrap, setFilterStatus, handleTableImageSize, visibleMethod, getRowStyle, getFooterGroup, flattenRow, intersectRow, removeCheckedDisabledRows } from './utils.js';
|
|
19
|
+
import { handleTableHeight, setTableConfig, handleGroupColums, treeToList, checkMethod, setTreeGroupTitle, handleName, generateEditRender, handlerInitSearchItem, getEvaluate, getMapVal, getCandidateComponents, getageShowType, isLink, showFilter, reScrollFilterWrap, hideFilterWrap, mergeConObjFn, setDefaultFormData, handleImgArr, handleImgSrc, modalDetailImage, handleQrCodeContent, getInlineEditBtn, isCopy, setVisibleCheckAllWrap, setFilterStatus, handleTableImageSize, visibleMethod, getRowStyle, getFooterGroup, flattenRow, intersectRow, removeCheckedDisabledRows } from './utils.js';
|
|
20
20
|
import './components/input-button.js';
|
|
21
21
|
import './components/separate.js';
|
|
22
22
|
import xb_big from '../../../src/assets/img/xb_big';
|
|
@@ -136,9 +136,6 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
sysImageSize: props.sysImageSize || {}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
const handlePrimaryKey = computed(() => {
|
|
140
|
-
return state.isTree > 0 ? props.primaryKey || "theUniqueKey" : "theUniqueKey";
|
|
141
|
-
});
|
|
142
139
|
const handleSeqConfig = computed(() => {
|
|
143
140
|
if (props.isNestTable)
|
|
144
141
|
return {
|
|
@@ -156,25 +153,33 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
156
153
|
});
|
|
157
154
|
const treeConfig = computed(() => {
|
|
158
155
|
let result = null;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
156
|
+
let {
|
|
157
|
+
isTransform
|
|
158
|
+
} = props.tableParams;
|
|
159
|
+
let statusNumber = Number(state.isTree);
|
|
160
|
+
if ([1, 3].includes(statusNumber)) {
|
|
161
|
+
result = {
|
|
162
|
+
children: "childrenList",
|
|
163
|
+
accordion: state.openOnly > 0,
|
|
164
|
+
reserve: true
|
|
165
|
+
};
|
|
166
|
+
if (isTransform) {
|
|
167
|
+
Reflect.deleteProperty(result, "children");
|
|
168
|
+
Object.assign(result, {
|
|
169
|
+
rowField: "qianduan_id",
|
|
170
|
+
parentField: "qianduan_parent_id",
|
|
171
|
+
transform: true
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
} else if (statusNumber == 2) {
|
|
175
|
+
result = {
|
|
176
|
+
lazy: true,
|
|
177
|
+
reserve: true,
|
|
178
|
+
children: "childrenList",
|
|
179
|
+
hasChild: "hasChildren",
|
|
180
|
+
loadMethod: loadChildrenMethod,
|
|
181
|
+
accordion: state.openOnly > 0
|
|
182
|
+
};
|
|
178
183
|
}
|
|
179
184
|
return result;
|
|
180
185
|
});
|
|
@@ -253,7 +258,12 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
253
258
|
};
|
|
254
259
|
const loadData = async (data) => {
|
|
255
260
|
state.isShowEmpty = !(data == null ? void 0 : data.length);
|
|
256
|
-
|
|
261
|
+
let list = JSON.parse(JSON.stringify(data));
|
|
262
|
+
let {
|
|
263
|
+
isTransform
|
|
264
|
+
} = props.tableParams;
|
|
265
|
+
if (isTransform && [1, 3].includes(Number(state.isTree)))
|
|
266
|
+
list = treeToList(list);
|
|
257
267
|
let table = xGrid.value;
|
|
258
268
|
if (!table)
|
|
259
269
|
return;
|
|
@@ -340,6 +350,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
340
350
|
state.rowConfig.height = 48;
|
|
341
351
|
}
|
|
342
352
|
state.rowConfig.height = Object.assign(state.rowConfig.height, rowConfig);
|
|
353
|
+
state.rowConfig.keyField = handleRowId.value;
|
|
343
354
|
if (selectType) {
|
|
344
355
|
isBatchSelect = 1;
|
|
345
356
|
}
|
|
@@ -433,6 +444,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
433
444
|
fixed,
|
|
434
445
|
sortable,
|
|
435
446
|
headerClassName: "mycolumn",
|
|
447
|
+
resizable: true,
|
|
436
448
|
showOverflow: "title",
|
|
437
449
|
treeNode,
|
|
438
450
|
type,
|
|
@@ -535,13 +547,17 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
535
547
|
return createVNode(NPopconfirm, {
|
|
536
548
|
"onPositiveClick": () => deleteRow(row, col, index)
|
|
537
549
|
}, {
|
|
538
|
-
trigger
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
550
|
+
trigger() {
|
|
551
|
+
return createVNode(NButton, {
|
|
552
|
+
"color": btn.settingObj[0].color || "#999",
|
|
553
|
+
"text": true
|
|
554
|
+
}, {
|
|
555
|
+
default: () => [btn.name]
|
|
556
|
+
});
|
|
557
|
+
},
|
|
558
|
+
default() {
|
|
559
|
+
return "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F";
|
|
560
|
+
}
|
|
545
561
|
});
|
|
546
562
|
} else {
|
|
547
563
|
return null;
|
|
@@ -600,10 +616,14 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
600
616
|
}
|
|
601
617
|
if (attrType === "COUNTDOWN") {
|
|
602
618
|
return createVNode(NTooltip, null, {
|
|
603
|
-
trigger
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
619
|
+
trigger() {
|
|
620
|
+
return createVNode("span", {
|
|
621
|
+
"innerHTML": row[own.columnName + "_countdown"] || ""
|
|
622
|
+
}, null);
|
|
623
|
+
},
|
|
624
|
+
default() {
|
|
625
|
+
return row[own.columnName + "_countdownTip"];
|
|
626
|
+
}
|
|
607
627
|
});
|
|
608
628
|
}
|
|
609
629
|
if (attrType === "DURATION") {
|
|
@@ -1098,22 +1118,26 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
1098
1118
|
return !!column2.property;
|
|
1099
1119
|
});
|
|
1100
1120
|
let colspan = xTree.getTableColumn().tableColumn.length - fristKeyIndex;
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1121
|
+
if (xTree) {
|
|
1122
|
+
const isOldVxeTree = row.childrenList && row.childrenList.length;
|
|
1123
|
+
const isTransformVxeTree = !row.qianduan_parent_id;
|
|
1124
|
+
if (isOldVxeTree || isTransformVxeTree) {
|
|
1125
|
+
if (column.treeNode) {
|
|
1126
|
+
return {
|
|
1127
|
+
rowspan: 1,
|
|
1128
|
+
colspan
|
|
1129
|
+
};
|
|
1130
|
+
} else if (!column.property) {
|
|
1131
|
+
return {
|
|
1132
|
+
rowspan: 1,
|
|
1133
|
+
colspan: 1
|
|
1134
|
+
};
|
|
1135
|
+
} else {
|
|
1136
|
+
return {
|
|
1137
|
+
rowspan: 0,
|
|
1138
|
+
colspan: 0
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1117
1141
|
}
|
|
1118
1142
|
}
|
|
1119
1143
|
};
|
|
@@ -1530,11 +1554,15 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
1530
1554
|
return createVNode(NPopconfirm, {
|
|
1531
1555
|
"onPositiveClick": () => confirmScanMulti(params)
|
|
1532
1556
|
}, {
|
|
1533
|
-
trigger
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1557
|
+
trigger() {
|
|
1558
|
+
return createVNode(SvgIcon, {
|
|
1559
|
+
"class": "scan-multi-delete",
|
|
1560
|
+
"iconClass": "shanchu"
|
|
1561
|
+
}, null);
|
|
1562
|
+
},
|
|
1563
|
+
default() {
|
|
1564
|
+
return "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F";
|
|
1565
|
+
}
|
|
1538
1566
|
});
|
|
1539
1567
|
};
|
|
1540
1568
|
const showEditForm = (row, column, $rowIndex) => {
|
|
@@ -1817,7 +1845,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
1817
1845
|
recordClickBtnInfo(row, index);
|
|
1818
1846
|
emit("setNestTableClick", props.isNestTable);
|
|
1819
1847
|
emit("setCurRowIndex", index);
|
|
1820
|
-
emit("clickBtn", row, btn, row[
|
|
1848
|
+
emit("clickBtn", row, btn, row[handleRowId.value], index);
|
|
1821
1849
|
};
|
|
1822
1850
|
const getBtnIcon = (btn, mr = "8px") => {
|
|
1823
1851
|
let icon;
|
|
@@ -1933,7 +1961,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
1933
1961
|
vxeTable.setCurrentRow(row);
|
|
1934
1962
|
emit("setNestTableClick", props.isNestTable);
|
|
1935
1963
|
emit("setCurRowIndex", index);
|
|
1936
|
-
emit("linkDetail", row, col, row[
|
|
1964
|
+
emit("linkDetail", row, col, row[handleRowId.value], null, false, index);
|
|
1937
1965
|
};
|
|
1938
1966
|
const hanldeCopyContent = (e, value) => {
|
|
1939
1967
|
e.preventDefault();
|
|
@@ -2219,17 +2247,13 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2219
2247
|
border: "",
|
|
2220
2248
|
"show-overflow": "",
|
|
2221
2249
|
"show-header-overflow": "",
|
|
2222
|
-
"highlight-hover-row": "",
|
|
2223
|
-
"highlight-current-row": "",
|
|
2224
2250
|
"show-footer-overflow": "title",
|
|
2225
2251
|
"keep-source": "",
|
|
2226
|
-
resizable: "",
|
|
2227
2252
|
"auto-resize": "",
|
|
2228
2253
|
height: props.height ? "auto" : void 0
|
|
2229
2254
|
}, _ctx.$attrs, {
|
|
2230
2255
|
"seq-config": unref(handleSeqConfig),
|
|
2231
2256
|
"tree-config": unref(treeConfig),
|
|
2232
|
-
"row-id": unref(handleRowId),
|
|
2233
2257
|
"row-class-name": getRowClassName,
|
|
2234
2258
|
"cell-class-name": _ctx.columnConfig.cellClassName || null,
|
|
2235
2259
|
"row-config": state.rowConfig,
|
|
@@ -2340,7 +2364,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
2340
2364
|
}
|
|
2341
2365
|
})]),
|
|
2342
2366
|
_: 3
|
|
2343
|
-
}, 16, ["height", "seq-config", "tree-config", "
|
|
2367
|
+
}, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2344
2368
|
class: "refresh",
|
|
2345
2369
|
onClick: hanldeClickRefresh
|
|
2346
2370
|
}, [createVNode(unref(NIcon), {
|
|
@@ -24,7 +24,7 @@ const useFormat = (state) => {
|
|
|
24
24
|
} = data;
|
|
25
25
|
const { nobutton = false } = ((_a = state.options) == null ? void 0 : _a.config) || {};
|
|
26
26
|
return tableList.map((_item, index) => {
|
|
27
|
-
|
|
27
|
+
const item = vexutils.clone(_item, true);
|
|
28
28
|
item.origin = vexutils.clone(_item, true);
|
|
29
29
|
if (isNestTabel) {
|
|
30
30
|
Object.assign(item, {
|
|
@@ -6,7 +6,7 @@ const useNestTable = (props, state, emit) => {
|
|
|
6
6
|
return props.showNestTable || props.isNestTable;
|
|
7
7
|
});
|
|
8
8
|
const isExpandTable = computed(() => {
|
|
9
|
-
|
|
9
|
+
const { isBatchSelect } = props.columnConfig || {};
|
|
10
10
|
return !props.isNestTable && isBatchSelect == 1;
|
|
11
11
|
});
|
|
12
12
|
const handleRowId = computed(() => {
|
|
@@ -16,6 +16,10 @@ export declare const checkMethod: ({ row }: {
|
|
|
16
16
|
row: any;
|
|
17
17
|
}) => boolean;
|
|
18
18
|
export declare const visibleMethod: ({ row }: any) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 单选行数据 树形结构转列表
|
|
21
|
+
*/
|
|
22
|
+
export declare const treeToList: (treeData: any[]) => any[];
|
|
19
23
|
/**
|
|
20
24
|
* 单选行数据 树结构 扁平化处理
|
|
21
25
|
*/
|
|
@@ -29,7 +33,7 @@ export declare const setFilterStatus: (state: any, props: any) => false | undefi
|
|
|
29
33
|
export declare const getRowStyle: ({ row }: any) => string | null;
|
|
30
34
|
export declare const handleTableHeight: (state: any, props: any) => any;
|
|
31
35
|
export declare const handleName: (item: any, key?: string) => any;
|
|
32
|
-
export declare const handleImgArr: (imgs: any, type: any, imgs2imgArr:
|
|
36
|
+
export declare const handleImgArr: (imgs: any, type: any, imgs2imgArr: (imgs: any) => any[]) => any[];
|
|
33
37
|
export declare const handleImgSrc: (curSrc: any, imageArr: any, type: any) => any;
|
|
34
38
|
export declare const modalDetailImage: (imageArr: any, type: any, defaultHeight: any) => any;
|
|
35
39
|
/** 选人组件数据解析 */
|