起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1352|回复: 1

[处理中2] html ul

[复制链接]

4

主题

9

帖子

17

积分

新手上路

Rank: 1

积分
17
QQ
发表于 2016-4-19 19:34:04 | 显示全部楼层 |阅读模式
在页面中添加HTML的ul后,无法在ul里添加li

12

主题

2627

帖子

2866

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2866
发表于 2016-4-20 11:14:32 | 显示全部楼层
嗯, 是平台的bug, 后续版本将解决。当前版本你可以这么做:
修改/UI2/system/components/html/designer/html.xml文件中关于ul和li的定义, 改为下面的格式:
  1.         <element name="ul(html)" tag-name="ul" icon="span.gif" text="ul" canAddChild="true"
  2.                         
  3.                  component-class="UL"  child-range="li(html)"
  4.                  component-type="layout-container"  >
  5.                 <properties>
  6.                         <property name="xid" text="编号" />
  7.                         <property name="class" text="class" editor-extend-data="xui-ul:ul"/>
  8.                         <property name="dir" editor-ref="edit-dir" text="文本方向" />
  9.                         <property name="lang" text="语言代码" />
  10.                         <property name="style" text="样式" editor-ref="styleDialog"/>  
  11.                         <property name="title" text="额外信息(可在工具提示中显示)"/>
  12.                         <property name="xml:lang" text="XHTML语言代码" />
  13.                         <include path="$UI/system/components/designerCommon/commonConfig.xml#//common-properties/group[@name='bind']"/>
  14.                 </properties>
  15.                        
  16.                 <events>
  17.                         <include path="$UI/system/components/designerCommon/commonConfig.xml#//html-evens/*"/>
  18.                 </events>
  19.                        
  20.                 <templates>
  21.                    <template name="default"><![CDATA[
  22.                      <ul></ul>
  23.                    ]]></template>
  24.                 </templates>

  25.         </element>

  26.         <element name="li(html)" tag-name="li" icon="span.gif" text="li" canAddChild="true"
  27.                         
  28.                  component-class="Li"  parent-range="ul(html)"
  29.                  component-type="layout-container"  >
  30.                 <properties>
  31.                         <property name="xid" text="编号" />
  32.                         <property name="class" text="class" editor-extend-data="xui-li:li"/>
  33.                         <property name="dir" editor-ref="edit-dir" text="文本方向" />
  34.                         <property name="lang" text="语言代码" />
  35.                         <property name="style" text="样式" editor-ref="styleDialog"/>  
  36.                         <property name="title" text="额外信息(可在工具提示中显示)"/>
  37.                         <property name="xml:lang" text="XHTML语言代码" />
  38.                         <include path="$UI/system/components/designerCommon/commonConfig.xml#//common-properties/group[@name='bind']"/>
  39.                 </properties>
  40.                        
  41.                 <events>
  42.                         <include path="$UI/system/components/designerCommon/commonConfig.xml#//html-evens/*"/>
  43.                 </events>
  44.                        
  45.                 <templates>
  46.                    <template name="default"><![CDATA[
  47.                      <li></li>
  48.                    ]]></template>
  49.                 </templates>

  50.         </element>
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-17 16:57 , Processed in 0.055109 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表