gpt4 book ai didi

apostrophe-cms - 撇号默认值

转载 作者:行者123 更新时间:2023-12-04 06:42:40 24 4
gpt4 key购买 nike

module.exports = {
extend: 'apostrophe-widgets',
label: 'Learn More',
instructions: 'Learn More Widgets',
addFields: [
{
name: 'learnMore',
type: 'string',
label: 'Name for the Link',
required: false,
},

]
};

我们如何设置默认值。

最佳答案

我是 P'unk Avenue 的 Apostrophe 的首席开发人员。

只需使用 def 属性:

{
name: 'learnMore',
type: 'string',
label: 'Name for the Link',
required: false,
def: 'Learn More'
}

关于apostrophe-cms - 撇号默认值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41945540/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com