spec.md
1.36 KB
ui-component-library Specification
Purpose
TBD - created by archiving change migrate-textarea-to-tdesign. Update Purpose after archive.
Requirements
Requirement: 页面级多行输入组件
官网岗位 Tab 编辑页和组件库 Demo 页 SHALL 使用 TDesign 多行输入组件承载页面级多行输入,不再直接渲染或展示非 TDesign Textarea。
Scenario: Official site job tab editor uses TDesign Textarea
- WHEN a user opens the official site job tab editor
-
THEN the job description field SHALL render with
tdesign-reactTextarea behavior and styling -
AND the page SHALL NOT render a raw native
<textarea>for that field
Scenario: Components demo uses TDesign Textarea
- WHEN a user opens the component demo page
-
THEN the remark textarea example SHALL render with
tdesign-reactTextarea behavior and styling -
AND the demo SHALL NOT use
packages/ui/Textareafor that example
Scenario: Job description editing remains available
- WHEN a user edits the job description field
-
THEN the page SHALL update
sub_titlewith the next string value - AND saving SHALL continue to submit the edited value
Scenario: Job description count display remains available
- WHEN the job description field has a maximum length
- THEN the field SHALL show a current length and maximum length indicator