This commit is contained in:
Harvey Zack committed 2019-07-19 18:18:32 +08:00
1 parent 8b16c0fc29
commit 385fc7bda2
4 files changed
+12 -8

No files matched your search

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