mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
style: typo
This commit is contained in:
@@ -4100,7 +4100,7 @@ const apis = [
|
||||
list: []
|
||||
},
|
||||
{
|
||||
name: 'clostTooltip()',
|
||||
name: 'closeTooltip()',
|
||||
desc: '手动关闭 tooltip 提示(某些特殊场景可能会用到)',
|
||||
version: '',
|
||||
type: 'Promise<any>',
|
||||
|
||||
@@ -433,7 +433,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
|
||||
$xetable.clearCopyCellArea()
|
||||
}
|
||||
}
|
||||
$xetable.clostTooltip()
|
||||
$xetable.closeTooltip()
|
||||
editMethods.clearActived(evnt)
|
||||
type = 'edit-actived'
|
||||
column.renderHeight = cell.offsetHeight
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
2
types/table.d.ts
vendored
@@ -313,7 +313,7 @@ export interface TablePublicMethods {
|
||||
/**
|
||||
* 关闭 tooltip 提示
|
||||
*/
|
||||
clostTooltip(): Promise<any>;
|
||||
closeTooltip(): Promise<any>;
|
||||
/**
|
||||
* 用于 type=checkbox,设置行为选中状态,第二个参数为选中与否
|
||||
* @param rows 指定行
|
||||
|
||||
Reference in New Issue
Block a user