import { Search } from "@element-plus/icons-vue"; import { h } from "vue"; import { useCrud } from "../../../hooks"; import { renderNode } from "../../../utils/vnode"; export function renderHeader(item: ClTable.Column, { scope, slots }: any) { const crud = useCrud(); const slot = slots[`header-${item.prop}`]; if (slot) { return slot({ scope }); } if (!item.search || !item.search.component) { return scope.column.label; } // 显示输入框 function show(e: MouseEvent) { item.search.isInput = true; e.stopPropagation(); } // 文字 const text = (