辣橙
辣橙
经过进一步测试,初步排出:该问题是因为子节点为`$ref` 对比测试,直接使用对应的Object内容而非`$ref`,[对应的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":...
> 子节点不是 $ref 的时候是可以正常取到标题的对吧 ? 😄是的,上面提到的两个对比测试: - 子节点是$ref,标题变成“选项 1,2...”:[Playground链接](https://form.lljj.me/v3/#/demo?type=Simple&schema=%7B%22$defs%22:%7B%22ClassA%22:%7B%22properties%22:%7B%22fooA%22:%7B%22default%22:0,%22title%22:%22ClassA%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22%7D%7D,%22title%22:%22%E7%B1%BB%E5%9E%8BA%22,%22type%22:%22object%22%7D,%22ClassB%22:%7B%22properties%22:%7B%22fooB%22:%7B%22default%22:0,%22title%22:%22ClassB%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22%7D%7D,%22title%22:%22%E7%B1%BB%E5%9E%8BB%22,%22type%22:%22object%22%7D%7D,%22properties%22:%7B%22common%22:%7B%22oneOf%22:%5B%7B%22$ref%22:%22%23/$defs/ClassA%22%7D,%7B%22$ref%22:%22%23/$defs/ClassB%22%7D%5D,%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%7D%7D,%22title%22:%22OneOf%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%22,%22type%22:%22object%22%7D&formData=%7B%22common%22:%7B%22fooA%22:0%7D%7D&uiSchema=%7B%7D&errorSchema=%7B%7D&formFooter=%7B%22formItemAttrs%22:%7B%22wrapperCol%22:%7B%22span%22:24,%22offset%22:0%7D%7D%7D&formProps=%7B%22inline%22:false,%22labelPosition%22:%22top%22,%22inlineFooter%22:false,%22layoutColumn%22:1,%22labelCol%22:%7B%22span%22:6%7D,%22wrapperCol%22:%7B%22span%22:16%7D,%22labelWidth%22:%22100px%22%7D&ui=VueNaiveForm) - 不是 $ref,可以正常取到标题“类型A,B”:[Playground链接](https://form.lljj.me/v3/#/demo?ui=VueNaiveForm&type=Test&schema=%7B%22properties%22:%7B%22common%22:%7B%22oneOf%22:%5B%7B%22properties%22:%7B%22fooA%22:%7B%22default%22:0,%22title%22:%22ClassA%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22%7D%7D,%22title%22:%22%E7%B1%BB%E5%9E%8BA%22,%22type%22:%22object%22%7D,%7B%22properties%22:%7B%22fooB%22:%7B%22default%22:0,%22title%22:%22ClassB%E7%9A%84%E5%B1%9E%E6%80%A7%22,%22type%22:%22number%22%7D%7D,%22title%22:%22%E7%B1%BB%E5%9E%8BB%22,%22type%22:%22object%22%7D%5D,%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%7D%7D,%22title%22:%22OneOf%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%22,%22type%22:%22object%22%7D&formData=%7B%22common%22:%7B%22fooB%22:0%7D%7D&uiSchema=%7B%7D&errorSchema=%7B%7D&formFooter=%7B%22formItemAttrs%22:%7B%22wrapperCol%22:%7B%22span%22:24,%22offset%22:0%7D%7D%7D&formProps=%7B%22inline%22:false,%22labelPosition%22:%22top%22,%22inlineFooter%22:false,%22layoutColumn%22:1,%22labelCol%22:%7B%22span%22:6%7D,%22wrapperCol%22:%7B%22span%22:16%7D,%22labelWidth%22:%22100px%22%7D)
@zcf0508 相似的,我也思考了GUI的开发方式,计划用前后端分离的方式(例如sanic + vue.js)进行开发, 目前主要设想了三个页面: - [ ] 选择视频页面 - [ ] 语音转字幕的等待页面 - [ ] 选取字幕页面 为了避免编译文件对git的污染,前端页面托管于GitHub Page 使用方式为 `autocut --gui` 1. 启动后端,端口号为 `PORT` 2. 提示用户访问 xxx.github.io/autocut?port=`PORT` (在访问时带上本地后端的端口号) 3....