3

我已经使用 dragula [ng2-dragula] 实现了拖放。它在浏览器中完美运行,但是当我在 iphone 上运行此应用程序时它不起作用。

<ion-card>
    <ion-card-content style="white-space: nowrap; overflow: auto;">
      <span *ngFor="let word of codeStream;let i = index">        
        <div *ngIf="word.indexOf('??') != -1 && droppableModels[i].length==0" class="blanks-bag" [dragula]="'option-bag'" [dragulaOptions]="dragulaOptionsNonDragable" [dragulaModel]="droppableModels[i]">

        </div>
        <span *ngIf="word.indexOf('??') != -1 && droppableModels[i][0]">
          {{droppableModels[i][0].text}}
        </span>
        <span *ngIf="word == '\t'">&nbsp;&nbsp;&nbsp;&nbsp;</span>       
        <span *ngIf="word == '\n'"><br style="clear:both;"/></span>
        <span *ngIf="(word.indexOf('??') == -1) && (word != '\t') && (word != '\n')" class="word-bag">{{word}} </span>
      </span>
    </ion-card-content>
  </ion-card>  
  <ion-card *ngIf="fillBlanksObj.options.length > 0">
    <ion-card-header>
      Options
    </ion-card-header>
    <ion-card-content style="white-space: nowrap; overflow: auto;">
      <div class="options-bag" [dragula]="'option-bag'" [dragulaModel]="fillBlanksObj.options">
        <span class="option" *ngFor="let option of fillBlanksObj.options">
          {{option.text}}
        </span>
      </div>
    </ion-card-content>
  </ion-card>

我似乎在 ng2-dragula for ios 上找不到任何未解决的问题,但不确定为什么它不能在 iphone [iphone 6、ios 11.1] 上运行。

4

0 回答 0