feat: Tabular passes editable.binds to add/update/clone Form for cascading dropdowns

This commit is contained in:
Hermes Agent 2026-06-24 10:42:21 +08:00
parent 43ad1c22fe
commit be25feb077

View File

@ -473,6 +473,9 @@ bricks.DataViewer = class extends bricks.VBox {
fs.push(f); fs.push(f);
} }
opts.fields = fs opts.fields = fs
if (this.editable.binds){
opts.binds = this.editable.binds;
}
var formw = new bricks.Form(opts); var formw = new bricks.Form(opts);
return formw; return formw;
} }
@ -493,6 +496,9 @@ bricks.DataViewer = class extends bricks.VBox {
} }
fs.push({name:'id', value:data.id, uitype:'hide'}) fs.push({name:'id', value:data.id, uitype:'hide'})
opts.fields = fs opts.fields = fs
if (this.editable.binds){
opts.binds = this.editable.binds;
}
var formw = new bricks.Form(opts); var formw = new bricks.Form(opts);
return formw; return formw;
} }
@ -511,6 +517,9 @@ bricks.DataViewer = class extends bricks.VBox {
fs.push(f); fs.push(f);
} }
opts.fields = fs opts.fields = fs
if (this.editable.binds){
opts.binds = this.editable.binds;
}
var formw = new bricks.Form(opts); var formw = new bricks.Form(opts);
return formw; return formw;
} }