NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.85k stars 3.9k forks source link

Cascader自定义已选项 鼠标悬停时【title】显示undefined #7839

Open cgbin24 opened 1 year ago

cgbin24 commented 1 year ago

Reproduction link

https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/cascader/demo/custom-render.ts

Steps to reproduce

以下内容请参考NG-ZORRO - Angular UI component library
1、定位到【自定义已选项】
2、选择任意内容直至结束
3、将鼠标指针在组件上悬停
4、【title】值显示为undefined

What is expected?

【title】值应显示为已选中内容

What is actually happening?

【title】值显示为undefined

Environment Info
ng-zorro-antd 15.0.2
Browser Chrome 版本 110.0.5481.77(正式版本) (arm64)

备注:希望考虑出一个控制Cascader 指针悬停【title】的API

zorro-bot[bot] commented 1 year ago

Translation of this issue:

Cascader customizable mouse hover [title] display undefined

REPRODUCTION LINK

[https://github.com/ng-zorro/ng-zorro-Ntd/blob/master/components/cascadeer/demo/custom- render.ts] (https://github.com/ng-zorro/ng-ng- Zorro-ATD/Blob/Master/Components/Cascader/Demo/Custom- Render.ts)

STEPS To Reproduce

For the following, please refer to [NG-Zorro-Angular UI Component Library] (https://ng.ant.design/components/cascader/zhzponents-cascader-demo- render)

  1. Position to [Customized Options]
  2. Select any content until the end
  3. Hang the mouse pointer on the component
  4. [Title] Value is displayed as undefined

What is exfected?

[Title] The value should be displayed as selected content

What is actually happy?

[Title] Value display as undefined

ENVIRONMENT Info
NG-Zorro-ATD 15.0.2
Browser Chrome version 110.0.5481.77 (formal version) (ARM64)

Remarks: I hope to consider a API that controls the Cascader pointer hovering [Title]