vue-desktop icon indicating copy to clipboard operation
vue-desktop copied to clipboard

Schema中嵌套对象在form表单中无法使用property.nestedProperty绑定

Open featherfly opened this issue 9 years ago • 3 comments

像下面这样

<d-form :model='post' :schema='postSchema'> <d-text-field property="privilege.startTime" :editor-width="140"> </d-text-field> </d-form>

var postSchema = new Schema({ privilege: { type: 'object', default () { return {}; }, fields: { startTime: { label: '开始时间', type: 'datetime', required: true, rules: { type: 'custom', message: '输入不是一个有效时间', validate() { return this.privilegeStartTime instanceof Date; } } } } } }

featherfly avatar Aug 03 '16 09:08 featherfly

@Leopoldthecoder

furybean avatar Aug 04 '16 03:08 furybean

@featherfly fixed in [email protected]

Leopoldthecoder avatar Aug 08 '16 09:08 Leopoldthecoder

嵌套的对象可以绑定到表单中,但是对象中fields定义的mapping不起作用

BITDM avatar Aug 17 '16 19:08 BITDM