Extending CdkTextareaAutosize features. heightChanges / setHeight
未关闭
area: cdk/text-field
feature
P4
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
## Proposal
Add for [MatTextareaAutosize](https://material.angular.io/components/input/api#MatTextareaAutosize) Callback with height and return custom sum and set it as height for textarea element.
```
CdkTextareaAutosize {
...
// Options by default parameter emitEvent is false
setHeight(height: number, {emitEvent: boolean}): void;
// Return number after calculation height textarea element
heightChanges(): Observable;
...
}
```
贡献指南
调研方向
首先阅读现有的 MatTextareaAutosize/CdkTextareaAutosize API 和实现,并将链接的 Angular Material API 参考作为上下文。确定提议的 setHeight 和 heightChanges 行为应如何适配当前组件;当这两个方法对于 textarea 高度更新和事件发出都具有明确定义且可正常工作的行为时,即可认为该提议已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100