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

文档列表内容内无法取消或者增加子列表 #440

Open
zhaoxuanHome opened this issue Feb 29, 2024 · 2 comments
Open

文档列表内容内无法取消或者增加子列表 #440

zhaoxuanHome opened this issue Feb 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zhaoxuanHome
Copy link

version

1.0v(demo界面测试复现)

Link to minimal reproduction

No response

Steps to reproduce

image
步骤:
1、编写一段文字选中列表,回车自动增加序号
2、回车增加子列表时,列表序号/标识无法取消

What is expected?

预期效果:
1、换行列表内容内可以增加子列表(不同子类型图标)
2、换行列表内容换行或者断句,段落内可以取消列表

What is actually happening?

1、编写一段文字选中列表,回车自动增加序号
2、回车增加子列表时,列表序号/标识无法取消
3、列表序号重新排序,无法沿用之前序号
4、自列表也无法使用带有需要的列表,否则自动排序(无子父层级划分)

System Info

No response

Any additional comments?

No response

@Hufe921
Copy link
Owner

Hufe921 commented Feb 29, 2024

暂不支持子列表

@Hufe921 Hufe921 added the enhancement New feature or request label Feb 29, 2024
@douglasmatheus
Copy link
Contributor

Hello, I would like to pass on some considerations to @Hufe921 when implementing this feat. I once tried to implement this improvement and I didn't finish the work (I still have the changes). However, one thing I noticed is that before implementing nested lists with different types, it is necessary to make a change in how the editor positions the cursor at the beginning of the line when it has one or more tabs.

In other editors, such as Goolge docs, when you have a list regardless of whether it is normal or nested, the initial position of the cursor always respects the tabs added at the beginning of the line.

google.doc.mp4

In the case of canvas editor, the cursor will always go to the first position of the line, regardless of whether it has tabs or not.

canvas.editor.mp4

I didn't have more time to work on this, I had some problems when making the first change, the cursor position according to the key pressed (up, down, right, left, Enter...). If there is some time left, I will work again to send a PR, or I can also send the style as it is for someone else to work on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants