面板设置editProperty

学会下面几个,前台方面就解决了

组件添加快捷通道

所有前台用户看到的组件都在dataDefines里面设置,由dataDefine划分不同的组件如:

<ui>
  <view>
    <container>    
      <editProperty>
        <dataDefines>
      <dataDefine name="title_define" type="text" description="请输入标题" contentSize="20" propertyName="标题"/>
    </dataDefines>    
</editProperty>
</container>
</view>
</ui>

如果dataDefine是单一值则用 

<dataDefine />

 多值则用 

<dataDefine>...</dataDefine>

 

单选按钮radio

<dataDefine name="mk5_btxx" type="radio" description="标题" propertyName="标题" isNull="true">
    <config type="sync">
        <data text="显示" value="true" defaultSelect="true" />
        <data text="隐藏" value="false" defaultSelect="false" />
    </config>
</dataDefine>

下拉菜单select

 <dataDefine name="mk5_End_height" type="select"  description="边距" propertyName="模块下边距" isNull="true">
    <config type="sync">
        <data text="8" value="1" defaultSelect="false" />
        <data text="16" value="2" defaultSelect="true" />
        <data text="24" value="3" defaultSelect="false" />
        <data text="32" value="4" defaultSelect="false" />
        <data text="40" value="5" defaultSelect="false" />
        <data text="48" value="6" defaultSelect="false" />
        <data text="56" value="7" defaultSelect="false" />
        <data text="自定义下边距" value="9" defaultSelect="false" />
        <data text="无" value="8" defaultSelect="false" />
    </config>
</dataDefine>

 

 价格区间price

<dataDefine name="filterPrice" type="price"  isNull="true" propertyName="价格" description="价格"  validateType="price">
    <param name="startPrice" type="text"  isNull="true" propertyName="起始价格" description="起始价格" validateType="price"/>
    <param name="endPrice" type="text"  isNull="true"   propertyName="结束价格" description="结束价格" validateType="price"/>
</dataDefine>

链接url

外表和文本相同,但添加了数据要求,要淘宝的无线链接,type为url

 <dataDefine name="mk12_bt_link" type="url" validateType="taokeurl||wirelessurl" description=" 链接"  propertyName="标题链接" isNull="true"/>

 

文本和文本框text

<dataDefine name="title_define" type="text" description="请输入标题" contentSize="20" propertyName="标题"/>

文本字数多少控制文本或文本框

<dataDefine name="content_define" type="text" description="请输入正文" contentSize="500" propertyName="内容"/>

 

 

图片image

<dataDefine name="mk14_hb_img" type="image" width="640"  description="图片地址" propertyName="图片地址" isNull="true"  />

 

图片数组jsonArray

<dataDefine name="banner_array" type="jsonArray" min="1"
max="4" propertyName="焦点图">
<param name="image" type="image" description="请输入图片url"
width="608" height="110" propertyName="图片" />
<param name="url" type="url" description="请输入跳转页面url"
validateType="taokeurl||wirelessurl" isNull="true" propertyName="链接" />
</dataDefine>

 

posted @ 2020-08-26 20:50  tinyphp  Views(276)  Comments(0Edit  收藏  举报