<loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
<view class="main-class-source" style="margin:40rpx;">
  <view class="main-foot-source">

    <view class="table-content">
      <!-- 标题行 -->
      <view class="table-content-row">
        <view class="table-content-row-title-two">
          <!-- 标题 -->
          <view class="title-class" style="width: 50%;">
            <dk-text textDecoration="underline" fontSize="15px" value="{{formType}}"></dk-text>
          </view>
        </view>
      </view>

      <view class="table-content-row titleFont" style="display: flex;padding-top: 30px;">
        <view class="titleFont" style="width: 75%;">{{$t['informationBasicDataSort']}}</view>
        <view style="width: 30%;text-align: right;">
          {{$t['longPressDrag']}}  <van-image width="36rpx" height="28rpx" src="{{'/static/image/sort.png'}}" />
          
        </view>
      </view>
    </view>


    <view style="padding:20rpx">
      <view class="item" wx:if="{{flgDefaultItem.length > 0}}">
        <view slot="body" class="body font">{{flgDefaultItem[0][titleKey]}}</view>
          <view slot="btn" class="btn">
            <view class="btn-sign">
            
              <view class="status-detail-class-flg-default" >{{$t['default']}}</view>
            </view>
          </view>
      </view>
    
      <!-- 排序 -->
      <dk-drag-to-sort length="{{tableData.length}}" drag-y bind:change="sortChange" bind:poschange="posChange">
        <dk-drag-item  wx:for="{{tableData}}" wx:key="item" class="item" idx="{{index}}" >
          <view slot="body" class="body font">{{item[titleKey]}}</view>
          <view slot="btn" class="btn">
            <view class="btn-sign">
              <van-image  width="44rpx" height="40rpx" src="{{'/static/image/sort.png'}}" />
              <!-- <view wx:if="{{item.flgDefault}}" class="status-detail-class-flg-default" >默认</view> -->
            </view>
          </view>
        </dk-drag-item>
      </dk-drag-to-sort>
    </view>


  </view>
</view>



<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="save"></dk-save-button>