@lx-frontend/wrap-element-ui 1.0.20-beta.1 → 1.0.21-beta.1
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
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
@selection-change="handleSelectionChange"
|
|
45
45
|
@cell-mouse-enter="debouncedHoverHandler"
|
|
46
46
|
@header-dragend="doTableLayout"
|
|
47
|
+
@row-dblclick="handleRowDblClick"
|
|
47
48
|
>
|
|
48
49
|
<el-table-column
|
|
49
50
|
v-if="rowDragAble"
|
|
@@ -404,6 +405,8 @@ interface IEmits {
|
|
|
404
405
|
(e: 'search', param: Record<string, any>): void
|
|
405
406
|
/** 排序 */
|
|
406
407
|
(e: 'sort-change', param: { order: 'descending' | 'ascending' | null, prop: string }): void
|
|
408
|
+
/** 双击某一行 */
|
|
409
|
+
(e: 'row-dblclick', param: any): void
|
|
407
410
|
/** 筛选条件打开 */
|
|
408
411
|
(e: 'open-filter', prop: string): void
|
|
409
412
|
/** 重置筛选 */
|
|
@@ -578,6 +581,8 @@ const beforeDragStart = () => {
|
|
|
578
581
|
return true;
|
|
579
582
|
};
|
|
580
583
|
|
|
584
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
585
|
+
// @ts-ignore ts-plugin存在间歇性抛出「类型实例化过深,且可能无限」的错误
|
|
581
586
|
useDragSort({
|
|
582
587
|
emit,
|
|
583
588
|
props,
|
|
@@ -617,6 +622,10 @@ const handleSelectionChange = (e) => {
|
|
|
617
622
|
emit('selection-change', e);
|
|
618
623
|
};
|
|
619
624
|
|
|
625
|
+
const handleRowDblClick = (e) => {
|
|
626
|
+
emit('row-dblclick', e);
|
|
627
|
+
};
|
|
628
|
+
|
|
620
629
|
const handleOpenFilter = (column: IColumnConfig) => {
|
|
621
630
|
emit('open-filter', column.prop);
|
|
622
631
|
nextTick(() => {
|
|
@@ -94,6 +94,7 @@ type _IColumnConfigRequired = {
|
|
|
94
94
|
/** 自定义颜色表头label */
|
|
95
95
|
customColorLabel?: boolean;
|
|
96
96
|
filters?: FilterListType;
|
|
97
|
+
selectOptions?: any
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
export type IColumnConfigRequired = _IColumnConfigRequired & Partial<Omit<TableColumn, keyof _IColumnConfigRequired>>
|