优化DEMO

This commit is contained in:
Harvey Zack committed 2019-07-09 09:45:02 +08:00
1 parent d17104ed3b
commit dd8397f14e
9 files changed
+48 -22

No files matched your search

+5 -1
View File
@@ -158,7 +158,11 @@ export default class Controls {
errorHandle(parent, 'Controls option.position can not be empty');
this.id += 1;
return component(this.art, this, parent, option, callback, 'control');
const control = component(this.art, this, parent, option, callback, 'control');
if (!(control.$ref.firstElementChild && control.$ref.firstElementChild.tagName === 'I')) {
control.$ref.classList.add('art-control-onlyText');
}
return control;
}
set show(value) {