Skip to content

useTextSelection ​

描述 ​

监听用户文本选择。

示例 ​

ts
import { useTextSelection } from '@base-web-kits/base-tools-react';

const { text } = useTextSelection();

来源 ​

ahooks