naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

n-tree组件node-props的onClick点击复选框没反应

Open xiaomaoJT opened this issue 1 month ago • 2 comments

Describe the bug

2.36.0版本正常,2.38.2版本点击复选框无反应,只有点击node才能激活onClick方法。

const nodeProps = ({ option }: { option: TreeOption }) => { return { onClick(e) { } } } }

Steps to reproduce

1、点击复选框 2、onClick方法无反应

Link to minimal reproduction

System Info

2.36.0为可用版本 
System:
    OS: macOS 13.6.4
    CPU: (8) arm64 Apple M1
    Memory: 65.67 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 124.0.6367.80
    Safari: 17.3
  npmPackages:
    naive-ui: 2.36.0 => 2.36.0
    vue: ^3.4.5 => 3.4.27

Used Package Manager

npm

Validations

xiaomaoJT avatar Jun 07 '24 03:06 xiaomaoJT