海報輪播常用面板設置

  • 內容模式:圖片輪播/單列圖片
  • 底部圓點顯示隱藏
  • 輪播方式:自動輪播/手指滑動
  • 高度設置
  • 圖片+鏈接數組
  • 底部下邊距
<ui>
    <view>
        <container>
            <editProperty>
              <dataDefines>
                  <!-- 內容模式 -->
                  <dataDefine name="mk1_1" type="radio" description="內容模式" propertyName="內容模式" isNull="true">
                    <config type="sync">
                        <data text="圖片輪播" value="1" defaultSelect="true" />
                        <data text="單列圖片" value="2" defaultSelect="false" />
                    </config>
                </dataDefine>
                
                <!-- 底部圓點 -->
                <dataDefine name="mk1_2" type="radio" description="底部圓點顯示隱藏" propertyName="底部圓點顯示隱藏" isNull="true" refer="mk1_1:1">
                    <config type="sync">
                        <data text="顯示" value="true" defaultSelect="true" />
                        <data text="隱藏" value="false" defaultSelect="false" />
                    </config>
                </dataDefine>
                
                <!-- 輪播方式 -->
                <dataDefine name="mk1_3" type="radio" description="輪播方式" propertyName="輪播方式" isNull="true">
                    <config type="sync">
                        <data text="自動輪播" value="true" defaultSelect="true" />
                        <data text="手指滑動" value="false" defaultSelect="false" />
                    </config>
                </dataDefine>
                <!-- 高度設置 -->
                <dataDefine name="mk1_4" type="text" description="海報高度" contentSize="20" propertyName="海報高度[設置和圖片一樣高度]" isNull="true" />
                <!-- 圖片和鏈接設置 -->
                <dataDefine name="banner_array" type="jsonArray" min="1" isNull="true" 
                max="10" propertyName="圖片設置">
                <param name="image" type="image" description="請輸入圖片url" isNull="true"
                width="640"  propertyName="上傳圖片(寬640,高自定義)" />
                <param name="url" type="url" description="請輸入跳轉頁面url"
                validateType="taokeurl||wirelessurl" isNull="true" propertyName="鏈接" />
            </dataDefine>
            <!-- 底部邊距 -->
            <dataDefine name="mk1_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>
            <!-- 自定義下邊距 -->
            <dataDefine name="mk1_End_diy_height" type="text" description="自定義下邊距高度" propertyName="下邊距高度" contentSize="6" isNull="true" refer="mk1_End_height:9"/> 
        </dataDefines>
    </editProperty>
</container>
</view>
</ui>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章