Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

组件不兼容 contenteditable? #17

Open
emilymansw opened this issue Feb 28, 2024 · 4 comments
Open

组件不兼容 contenteditable? #17

emilymansw opened this issue Feb 28, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@emilymansw
Copy link

请教一下,像base-text那种简单组件能实现contenteditable 吗?

@xiaopujun
Copy link
Owner

请教一下,像base-text那种简单组件能实现contenteditable 吗?

能否描述下具体效果?是类似双击后就进入编辑模式这种效果嘛?

@xiaopujun xiaopujun added the question Further information is requested label Mar 1, 2024
@emilymansw
Copy link
Author

像这样https://daybrush.com/moveable/storybook/?path=/story/options--options-drag-focused-input
我在BPMovable加了 dragFocusedInput={true},然后在BaseTextComponent 加上ref 用上onDoubleClick={() => ref.current!.focus()} 是可以直接编辑内容, 可是不知道要怎去更新组件配置

@xiaopujun
Copy link
Owner

BPMovable

BPMovable? 这个是蓝图节点的拖拽组件,需要在蓝图上二次开发吗?还是指的DesignerMovable? 如果是想达到类似双击文字直接进入文字编辑模式的效果。下一个版本会支持 @emilymansw

@xiaopujun
Copy link
Owner

light chaser v1.0.0已发布,可体验文本组件,是否满足上述的editable效果 @emilymansw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants