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

关于配置v-model:mode为text问题 #16

Closed
comxza opened this issue Oct 16, 2022 · 3 comments
Closed

关于配置v-model:mode为text问题 #16

comxza opened this issue Oct 16, 2022 · 3 comments

Comments

@comxza
Copy link

comxza commented Oct 16, 2022

我这边是vue3使用环境
image
image
数据格式为{ "bigint": 124124124124124124124, "boolean": true, "string": "Hello World", "number": 123.456, "color": "#b0a4e3", "null": null, }
这样配置后 一直出现如下错误 如果不是配mode为text 那么就是正常的 我想默认为text模式 需要怎么修改呢
image

@cloydlau
Copy link
Owner

之前有个人提了一样的问题,但我今天再次尝试依然无法复现。能提供一个最小可复现链接吗?(最好是 codesandbox

为什么最小可复现链接是必要的

另友情提示,如果要使用 bigint,需要配置 parser

@cloydlau
Copy link
Owner

跟作者讨论了一下,原文档中说的 text 模式只接受字符串是有误的,在 [email protected] 中已支持在 text 模式下直接传入 JSON。

@comxza
Copy link
Author

comxza commented Oct 18, 2022

谢谢大佬的回复,

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

No branches or pull requests

2 participants