rendererresourcests_object本页总览ts_object函数源码 v_1: str = ts_object(value: Any, indent: int = 2, base_indent: int = 0) 将值导出为 json,并将其置入一个 typescript 对象中。 信息这是一个定制的 Jinja2 模板过滤器。 参数 输入 参数类型必选说明valueAny待过滤的值。indentint所导出 json 的缩进。base_indentint当前位置的缩进。当对象需要放置在一个已经存在缩进的位置时,需要设置该值与当前缩进一致。 输出 参数类型说明v_1str所渲染的多行 typescript 对象数据。