🥰 [FEATURE] 在实例化之后通过函数设置是否允许二次编辑
- Dominant language
- TypeScript
- Stars
- 52
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
### 💻 Features description [Please make everyone to understand it]
提供在实例化之后设置是否允许二次编辑的方法
### 🏞 What problem does this feature solve
目前只能在初始化的时候用 editable 参数设置是否允许二次编辑的方法,如果用户要在允许编辑和不允许编辑中切换需要重新实例化
### 🧐 What does the proposed API look like
拓展 enable 函数,类似 allowCreate 参数增加 allowEdit 参数控制是否允许二次编辑
### 🚑 Any additional [like screenshots]
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the existing enable function and the initialization handling for the editable and allowCreate options. Trace how editing state is stored and switched, then verify that the API can toggle editing after instantiation without requiring a new instance.
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
- 45/100