在 KeystoneJS 中为 Types.Money 设置默认值
Set default for Types.Money in KeystoneJS
如何在 KeystoneJS 中为 Types.Money 设置默认值?
这个我知道没有选项 — 这不会起作用。
price: { type: Types.Money, format: '[=11=],0.00', currency: 'en-gb', default: '50'}
有什么想法吗?
当前版本的 KeystoneJS 现在支持此功能。
我在更改日志中找不到它,但它现在确实可以使用。
https://github.com/keystonejs/keystone/blob/master/HISTORY.md
如何在 KeystoneJS 中为 Types.Money 设置默认值?
这个我知道没有选项 — 这不会起作用。
price: { type: Types.Money, format: '[=11=],0.00', currency: 'en-gb', default: '50'}
有什么想法吗?
当前版本的 KeystoneJS 现在支持此功能。
我在更改日志中找不到它,但它现在确实可以使用。 https://github.com/keystonejs/keystone/blob/master/HISTORY.md