如何将参数传递给自定义模式类型

时间:2019-09-10 09:56:39

标签: sanity

我有一个自定义架构类型

AttributeError                            Traceback (most recent call last)
<ipython-input-1-51db6b6503a5> in <module>
     35     win.promptClose(instructions)
     36 
---> 37 main()

<ipython-input-1-51db6b6503a5> in main()


        3 def main():
          4     win = GraphWin("Addition", 300, 300)
    ----> 5     win.yUp()
          6 
          7     instructions = Text(Point(win.getWidth()/2, 30),


AttributeError: 'GraphWin' object has no attribute 'yUp'

使用此架构类型时,如何将import supportedLanguages from './languages' export default { name: 'localeText', type: 'object', fieldsets: [ { title: 'Translations', name: 'translations', options: {collapsible: true} } ], fields: supportedLanguages.map(lang => ( { title: lang.title, name: lang.id, type: 'text', fieldset: lang.isDefault ? null : 'translations' } )) } 属性传递给字段。

rows

0 个答案:

没有答案