From 97f2231ca9eeacc292f0c0a6ecc3f31d7f71775b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 3 Aug 2022 00:17:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/package.json | 2 +- .../src/component/table/TableRow.vue | 8 ++--- .../component/src/component/table/index.vue | 17 ++++------ .../src/document/zh-CN/components/table.md | 33 ++++++++++--------- .../src/document/zh-CN/guide/changelog.md | 21 ++++++++++++ 5 files changed, 51 insertions(+), 30 deletions(-) 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)" >