diff --git a/package/component/package.json b/package/component/package.json index 28d5dabf..2bdc42e0 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layui-vue", - "version": "1.3.9", + "version": "1.3.11", "author": "就眠儀式", "license": "MIT", "description": "a component library for Vue 3 base on layui-vue", diff --git a/package/component/src/component/table/TableRow.vue b/package/component/src/component/table/TableRow.vue index ae9bbc2d..32f9fe04 100644 --- a/package/component/src/component/table/TableRow.vue +++ b/package/component/src/component/table/TableRow.vue @@ -37,7 +37,7 @@ const slot = useSlots(); const emit = defineEmits([ "row", "row-double", - "contextmenu", + "row-contextmenu", "update:selectedKeys", "update:selectedKey", ]); @@ -84,8 +84,8 @@ const rowDoubleClick = function (data: any, evt: MouseEvent) { emit("row-double", data, evt); }; -const contextmenu = function (data: any, evt: MouseEvent) { - emit("contextmenu", data, evt); +const rowContextmenu = function (data: any, evt: MouseEvent) { + emit("row-contextmenu", data, evt); }; const expandIconType = computed(() => { @@ -196,7 +196,7 @@ const renderFixedClassName = (column: any, columnIndex: number) => { :class="[renderRowClassName(data, index)]" @click.stop="rowClick(data, $event)" @dblclick.stop="rowDoubleClick(data, $event)" - @contextmenu.stop="contextmenu(data, $event)" + @contextmenu.stop="rowContextmenu(data, $event)" >