|
问题是这样的,首先,我用代码创建了一个CONTENTS控件,并挂在父content中:
contents=new Contents({
"xid":"testcontents_timu",
"class":"x-full x-contents",
"active":0,
"wrap":true,
"slidable":true,
"routable":true,
"parentNode" :me.comp('testcontent').domNode,//me.getElementByXid('content8') ,
}
);
然后,我在界面上看不到这个创建的控件,查看调试面版,发现已经创建并挂载,但是控件的CLASS,不是我设置的值:
<div xid="testcontents_timu" class="x-contents c7N3Abm slidable" component="$model/UI2/system/components/justep/contents/contents" data-bind="component:{name:'$model/UI2/system/components/justep/contents/contents'}" __cid="c7N3Abm" id="C7E829D14D000001707E1B2515EF16B0_testcontents_timu">
少了X-FULL,所以页面上看不到了,什么情况? |
|