baidu / baidu/amis

nav 组件的 icon 属性 支持 tpl

Open
#5,504 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 是否关联于某个问题吗:
目前icon属性只能配置字符串, 做不到显示个性化的icon

#### 预期的解决方案:
icon 支持配置tpl

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the nav component and trace how its icon property is parsed and rendered. Check the existing handling for string icons before determining how tpl configuration should be accepted. Done means a nav item can render a personalized icon from tpl while existing string configuration continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.