调整组件公共函数

This commit is contained in:
Harvey Zack committed 2018-11-22 16:29:00 +08:00
1 parent 8619fa1b8b
commit c882814fb0
8 files changed
+167 -23

No files matched your search

+4
View File
@@ -191,6 +191,10 @@ export default class Controls {
}
commonMethod(control, $control) {
Object.defineProperty(control, '$ref', {
get: () => $control,
});
Object.defineProperty(control, 'hide', {
value: () => {
setStyle($control, 'display', 'none');