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

split通过default-size值修改触发面板大小变化没反应 #5526

Closed
mfish-qf opened this issue Jan 2, 2024 · 2 comments · Fixed by #5527
Closed

split通过default-size值修改触发面板大小变化没反应 #5526

mfish-qf opened this issue Jan 2, 2024 · 2 comments · Fixed by #5527
Labels
bug Something isn't working

Comments

@mfish-qf
Copy link

mfish-qf commented Jan 2, 2024

TuSimple/naive-ui version (版本)

2.36.0

Vue version (Vue 版本)

3.4.3

Browser and its version (浏览器及其版本)

120.0.6099.130

System and its version (系统及其版本)

windows11

Node version (Node 版本)

20.10.0

Reappearance link (重现链接)

https://codesandbox.io/p/devbox/navie-ui-test-forked-g379xl

Reappearance steps (重现步骤)

切换比例值,面板不会随着值的变化改变大小

Expected results (期望的结果)

值改变后面板比例跟随变化

Actual results (实际的结果)

面板比例不变

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jan 2, 2024
@jahnli jahnli added bug Something isn't working and removed untriaged need to sort labels Jan 2, 2024
@M1CK431
Copy link
Contributor

M1CK431 commented Jan 17, 2024

This is not a bug, but a feature request IMHO. We need a "controled" mode on this component, exactly like NInput which have default-value prop (not reactive as expected for a default value) and a value prop (reactive, as expected for a "controlled" mode).

Exposing a method to set the value might be a great addition too (very useful if someone what to implement a reset to default value on separator dbl click, for example 😉).

wdyt @07akioni @amadeus711 ?

@mfish-qf
Copy link
Author

This is not a bug, but a feature request IMHO. We need a "controled" mode on this component, exactly like NInput which have default-value prop (not reactive as expected for a default value) and a value prop (reactive, as expected for a "controlled" mode).

Exposing a method to set the value might be a great addition too (very useful if someone what to implement a reset to default value on separator dbl click, for example 😉).

wdyt @07akioni @amadeus711 ?

嗯 我也觉得增加一个value参数比较合适

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants