L7Draw icon indicating copy to clipboard operation
L7Draw copied to clipboard

🥰 [FEATURE] 在实例化之后通过函数设置是否允许二次编辑

Open MarkLei7 opened this issue 2 years ago • 2 comments

💻 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]

MarkLei7 avatar Feb 06 '23 11:02 MarkLei7

@lzxue

MarkLei7 avatar Feb 06 '23 11:02 MarkLei7