style: typo

This commit is contained in:
John
2021-01-12 11:50:54 +08:00
parent 92c897bbd2
commit 421d5fa0bd
5 changed files with 11 additions and 11 deletions

View File

@@ -4100,7 +4100,7 @@ const apis = [
list: []
},
{
name: 'clostTooltip()',
name: 'closeTooltip()',
desc: '手动关闭 tooltip 提示(某些特殊场景可能会用到)',
version: '',
type: 'Promise<any>',

View File

@@ -433,7 +433,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
$xetable.clearCopyCellArea()
}
}
$xetable.clostTooltip()
$xetable.closeTooltip()
editMethods.clearActived(evnt)
type = 'edit-actived'
column.renderHeight = cell.offsetHeight

View File

@@ -26,7 +26,7 @@ function getPaddingTopBottomSize (elem: HTMLElement) {
const tableComponentPropKeys = Object.keys(tableComponentProps as any)
const tableComponentMethodKeys: (keyof TableMethods)[] = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'clostTooltip', 'isAllCheckboxChecked', 'isCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadExpandContent', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'focus', 'blur', 'connect']
const tableComponentMethodKeys: (keyof TableMethods)[] = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadExpandContent', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'focus', 'blur', 'connect']
const gridComponentEmits: VxeGridEmits = [
...tableComponentEmits,

View File

@@ -352,7 +352,7 @@ export default defineComponent({
const tooltipOpts = computeTooltipOpts.value
setTimeout(() => {
if (!internalData.tooltipActive) {
tableMethods.clostTooltip()
tableMethods.closeTooltip()
}
}, tooltipOpts.leaveDelay)
return false
@@ -1796,7 +1796,7 @@ export default defineComponent({
tablePrivateMethods.updateScrollXData()
}
}
tableMethods.clostTooltip()
tableMethods.closeTooltip()
}
const handleColumn = (collectColumn: any) => {
@@ -2521,7 +2521,7 @@ export default defineComponent({
/**
* 关闭 tooltip
*/
clostTooltip () {
closeTooltip () {
const { tooltipStore } = internalData
const $tooltip = refTooltip.value
const $commTip = refCommTooltip.value
@@ -3567,7 +3567,7 @@ export default defineComponent({
* 全局滚动事件
*/
const handleGlobalMousewheelEvent = () => {
tableMethods.clostTooltip()
tableMethods.closeTooltip()
if ($xetable.closeMenu) {
$xetable.closeMenu()
}
@@ -3866,7 +3866,7 @@ export default defineComponent({
const handleTargetEnterEvent = () => {
clearTimeout(internalData.tooltipTimeout)
internalData.tooltipActive = true
tableMethods.clostTooltip()
tableMethods.closeTooltip()
}
/**
@@ -4338,11 +4338,11 @@ export default defineComponent({
internalData.tooltipTimeout = setTimeout(() => {
const $tooltip = refTooltip.value
if ($tooltip && !$tooltip.reactData.isHover) {
tableMethods.clostTooltip()
tableMethods.closeTooltip()
}
}, tooltipOpts.leaveDelay)
} else {
tableMethods.clostTooltip()
tableMethods.closeTooltip()
}
},
triggerHeaderCellClickEvent (evnt, params) {

2
types/table.d.ts vendored
View File

@@ -313,7 +313,7 @@ export interface TablePublicMethods {
/**
* 关闭 tooltip 提示
*/
clostTooltip(): Promise<any>;
closeTooltip(): Promise<any>;
/**
* 用于 type=checkbox设置行为选中状态第二个参数为选中与否
* @param rows 指定行