专为 Rails 设计的前端模块化框架

用法

<%= tao_sortable group_selector: '.list', axis: 'x' do %>
  <div class="list">
    <% (1..10).each do |index| %>
      <div class="item" draggable="true"><%= index %></div>
    <% end %>
  </div>
  <div class="list">
    <% (11..20).each do |index| %>
      <div class="item" draggable="true"><%= index %></div>
    <% end %>
  </div>
  <div class="list"></div>
<% end %>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22