压缩字符

This commit is contained in:
Harvey committed 2019-11-27 15:46:55 +08:00
1 parent 2df60a78ff
commit 5f40463713
40 files changed
+385 -481

No files matched your search

+12 -10
View File
@@ -153,16 +153,18 @@ export default class Control extends Component {
break;
}
const control = super.add(option, callback);
super.add(option, $ref => {
if (
!option.disable &&
option.position !== 'top' &&
!($ref.firstElementChild && $ref.firstElementChild.tagName === 'I')
) {
addClass($ref, 'art-control-onlyText');
}
if (
!option.disable &&
option.position !== 'top' &&
!(control.$ref.firstElementChild && control.$ref.firstElementChild.tagName === 'I')
) {
addClass(control.$ref, 'art-control-onlyText');
}
return control;
if (callback) {
callback($ref, this, this.art);
}
});
}
}