@lx-frontend/wrap-element-ui 1.0.12-beta.3 → 1.0.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/package.json
CHANGED
|
@@ -105,7 +105,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
105
105
|
const closeSortAndFilterPopover = (exceptProp?: string) => {
|
|
106
106
|
document.querySelectorAll('span[data-popper-name]').forEach((item: any) => {
|
|
107
107
|
if (!exceptProp || exceptProp !== item.dataset.prop) {
|
|
108
|
-
item?.__vue__?.doClose();
|
|
108
|
+
item?.__vue__?.doClose?.();
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
slot="reference"
|
|
10
10
|
class="editable-table-operation-popover__operation-reference btn-pointer"
|
|
11
11
|
>
|
|
12
|
-
<el-button class="editable-table-operation-popover__operation-btn">
|
|
12
|
+
<el-button :class="['editable-table-operation-popover__operation-btn', hoveringCellInfo.rowIndex === scope.$index && 'editable-table-operation-popover__operation-btn--active']">
|
|
13
13
|
操作
|
|
14
14
|
</el-button>
|
|
15
15
|
</div>
|
|
@@ -46,10 +46,10 @@ import { IDefaultOperationType } from '../types';
|
|
|
46
46
|
|
|
47
47
|
defineProps<{
|
|
48
48
|
defaultOperations: IDefaultOperationType[]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
hoveringCellInfo: {
|
|
50
|
+
rowIndex: number
|
|
51
|
+
columnProperty: string
|
|
52
|
+
}
|
|
53
53
|
scope: any
|
|
54
54
|
}>()
|
|
55
55
|
|
|
@@ -412,13 +412,12 @@
|
|
|
412
412
|
|
|
413
413
|
.el-radio__label {
|
|
414
414
|
white-space: nowrap;
|
|
415
|
-
overflow
|
|
415
|
+
overflow: hidden;
|
|
416
416
|
text-overflow: ellipsis;
|
|
417
417
|
width: calc(100% - 20px);
|
|
418
418
|
display: inline-block;
|
|
419
419
|
vertical-align: middle;
|
|
420
420
|
font-size: 12px;
|
|
421
|
-
line-height: normal;
|
|
422
421
|
}
|
|
423
422
|
}
|
|
424
423
|
|
|
@@ -509,13 +508,12 @@
|
|
|
509
508
|
|
|
510
509
|
.el-checkbox__label {
|
|
511
510
|
white-space: nowrap;
|
|
512
|
-
overflow
|
|
511
|
+
overflow: hidden;
|
|
513
512
|
text-overflow: ellipsis;
|
|
514
513
|
width: calc(100% - 20px);
|
|
515
514
|
display: inline-block;
|
|
516
515
|
vertical-align: middle;
|
|
517
516
|
font-size: 12px;
|
|
518
|
-
line-height: normal;
|
|
519
517
|
}
|
|
520
518
|
}
|
|
521
519
|
|
|
@@ -719,7 +717,9 @@
|
|
|
719
717
|
}
|
|
720
718
|
|
|
721
719
|
&__operation-btn {
|
|
722
|
-
|
|
720
|
+
&--active {
|
|
721
|
+
color: @--theme-blue-- !important;
|
|
722
|
+
}
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
|
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
v-if="editingRowIndex !== scope.$index"
|
|
206
206
|
ref="operationPopoverRef"
|
|
207
207
|
:default-operations="defaultOperations"
|
|
208
|
+
:hovering-cell-info="hoveringCellInfo"
|
|
208
209
|
:scope="scope"
|
|
209
210
|
@edit="() => handleEdit(scope)"
|
|
210
211
|
@delete="() => handleDelete(scope.row, scope.$index)"
|