docs: upload 文档修正

This commit is contained in:
lockingreal 2022-03-28 19:33:59 +08:00
parent 77ca42867c
commit bd6becdec5

View File

@ -93,16 +93,16 @@ const change = function (page: any) {
emit("change", page);
};
const rowClick = function (data: any,evt:MouseEvent) {
emit("row", data,evt);
const rowClick = function (data: any, evt: MouseEvent) {
emit("row", data, evt);
};
const rowDoubleClick = function (data: any,evt:MouseEvent) {
emit("row-double", data,evt);
const rowDoubleClick = function (data: any, evt: MouseEvent) {
emit("row-double", data, evt);
};
const contextmenu = function (data: any,evt:MouseEvent) {
emit("contextmenu", data,evt);
const contextmenu = function (data: any, evt: MouseEvent) {
emit("contextmenu", data, evt);
};
// table
@ -292,9 +292,9 @@ onMounted(() => {
<tbody>
<template v-for="data in tableDataSource" :key="data">
<tr
@click.stop="rowClick(data,$event)"
@dblclick.stop="rowDoubleClick(data,$event)"
@contextmenu.stop="contextmenu(data,$event)"
@click.stop="rowClick(data, $event)"
@dblclick.stop="rowDoubleClick(data, $event)"
@contextmenu.stop="contextmenu(data, $event)"
>
<!-- 复选框 -->
<td v-if="checkbox" class="layui-table-col-special">