mirror of
https://github.com/motajs/template.git
synced 2026-12-03 04:36:32 +08:00
feat: container-custom 也添加 bindings 参数
This commit is contained in:
1 parent
49124fdc29
commit
ca90a221a7
3 files changed
+11
-2
No files matched your search
@@ -188,6 +188,11 @@ export class CustomContainer extends Container {
|
||||
this.setPropagateFn(nextValue);
|
||||
return true;
|
||||
}
|
||||
case 'bindings': {
|
||||
if (!this.assertType(nextValue, Array, key)) return false;
|
||||
this.update();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return super.handleProps(key, prevValue, nextValue);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user