辣橙
辣橙
试了试这个函数返回的是NoneType,但是在spy.py的第108行: ``socket_client.send(data_length_bytes + data)`` 将查询到的信息直接输出了,但不清楚该怎么调用。 请问有没有办法让查询到的信息成为一个字典或者列表方便后续调用?
### vue和ui框架 **`Vue2 & Vue3 + 所有ui框架`** 均能在playground复现该问题 ### 问题描述 如下图所示,AnyOf/OneOf 子节点为`$ref`时,期望显示:“类型A、类型B”(子节点的 `title`),而不是“选项1、选项2”; > **与RJSF中的表现有较大差异**  ### 如何复现 可用于复现的json-schema([对应Playground的链接](https://form.lljj.me/v3/#/demo?type=Simple&schema={%22$defs%22:{%22ClassA%22:{%22properties%22:{%22fooA%22:{%22default%22:0,%22title%22:%22ClassA%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22}},%22title%22:%22%E7%B1%BB%E5%9E%8BA%22,%22type%22:%22object%22},%22ClassB%22:{%22properties%22:{%22fooB%22:{%22default%22:0,%22title%22:%22ClassB%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22}},%22title%22:%22%E7%B1%BB%E5%9E%8BB%22,%22type%22:%22object%22}},%22properties%22:{%22common%22:{%22oneOf%22:[{%22$ref%22:%22%23/$defs/ClassA%22},{%22$ref%22:%22%23/$defs/ClassB%22}],%22title%22:%22OneOf%E5%B1%9E%E6%80%A7%22,%22description%22:%22A/B%E7%B1%BB%E5%9E%8B%E4%BA%8C%E9%80%89%E4%B8%80%22}},%22title%22:%22OneOf%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%22,%22type%22:%22object%22}&formData={%22common%22:{%22fooA%22:0}}&uiSchema={}&errorSchema={}&formFooter={%22formItemAttrs%22:{%22wrapperCol%22:{%22span%22:24,%22offset%22:0}}}&formProps={%22inline%22:false,%22labelPosition%22:%22top%22,%22inlineFooter%22:false,%22layoutColumn%22:1,%22labelCol%22:{%22span%22:6},%22wrapperCol%22:{%22span%22:16},%22labelWidth%22:%22100px%22}&ui=VueNaiveForm)): ```json {"$defs":{"ClassA":{"properties":{"fooA":{"default":0,"title":"ClassA的属性","type":"number"}},"title":"类型A","type":"object"},"ClassB":{"properties":{"fooB":{"default":0,"title":"ClassB的属性","type":"number"}},"title":"类型B","type":"object"}},"properties":{"common":{"oneOf":[{"$ref":"#/$defs/ClassA"},{"$ref":"#/$defs/ClassB"}],"title":"OneOf属性","description":"A/B类型二选一"}},"title":"OneOf模型测试","type":"object"} ``` 该json的格式为:  ### 初步排查结果 初步排出:该问题是因为子节点为`$ref`;对比测试为:直接使用对应的Object内容而非`$ref`,使用以下json-schema能够正常显示([对应的Playground](https://form.lljj.me/v3/#/demo?ui=VueNaiveForm&type=Test&schema={%22properties%22:{%22common%22:{%22oneOf%22:[{%22properties%22:{%22fooA%22:{%22default%22:0,%22title%22:%22ClassA%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22}},%22title%22:%22%E7%B1%BB%E5%9E%8BA%22,%22type%22:%22object%22},{%22properties%22:{%22fooB%22:{%22default%22:0,%22title%22:%22ClassB%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22}},%22title%22:%22%E7%B1%BB%E5%9E%8BB%22,%22type%22:%22object%22}],%22title%22:%22OneOf%E5%B1%9E%E6%80%A7%22,%22description%22:%22A/B%E7%B1%BB%E5%9E%8B%E4%BA%8C%E9%80%89%E4%B8%80%22}},%22title%22:%22OneOf%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%22,%22type%22:%22object%22}&formData={%22common%22:{%22fooB%22:0}}&uiSchema={}&errorSchema={}&formFooter={%22formItemAttrs%22:{%22wrapperCol%22:{%22span%22:24,%22offset%22:0}}}&formProps={%22inline%22:false,%22labelPosition%22:%22top%22,%22inlineFooter%22:false,%22layoutColumn%22:1,%22labelCol%22:{%22span%22:6},%22wrapperCol%22:{%22span%22:16},%22labelWidth%22:%22100px%22})): ```json {"properties":{"common":{"oneOf":[{"properties":{"fooA":{"default":0,"title":"ClassA的属性","type":"number"}},"title":"类型A","type":"object"},{"properties":{"fooB":{"default":0,"title":"ClassB的属性","type":"number"}},"title":"类型B","type":"object"}],"title":"OneOf属性","description":"A/B类型二选一"}},"title":"OneOf模型测试","type":"object"} ```...
> [来自评论区的建议](https://www.bilibili.com/video/BV1ZG4y1N7oM/#reply191768370000) - [x] 能否支持简繁转换?→ https://github.com/laorange/paper-assistant/pull/19 - [ ] 删除段中换行时能否支持智能检测?比如:以句号、问号等结尾的句子换行不删除;~特定长度的句子换行保留,如有些诗句~;疑似标题的换行保留,比如“一、”、“(1).” 等开头的段落
> [来自评论区的建议](https://www.bilibili.com/video/BV1ZG4y1N7oM/?vd_source=7490b187b13c8874f7ba5e1d47db63d7#reply165553279376) 请问有没有类似于保存“功能设置”的选项之类的功能?我在使用您的这个工具时有一些其他的需求,每次打开网站都需要重新设置一遍功能,有点小麻烦