Skip to content

Commit

Permalink
Transfer renderFormat support html element
Browse files Browse the repository at this point in the history
Transfer renderFormat support html element
  • Loading branch information
icarusion committed Feb 15, 2017
1 parent 8f48491 commit 3fd9788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/transfer/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:class="itemClasses(item)"
@click.prevent="select(item)">
<Checkbox :checked="isCheck(item)" :disabled="item.disabled"></Checkbox>
<span>{{ showLabel(item) }}</span>
<span>{{{ showLabel(item) }}}</span>
</li>
<li :class="prefixCls + '-content-not-found'">{{ notFoundText }}</li>
</ul>
Expand Down
4 changes: 4 additions & 0 deletions test/routers/transfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:data="data2"
:target-keys="targetKeys2"
filterable
:render-format="rf"
:filter-method="filterMethod"
@on-change="handleChange2"></Transfer>
</template>
Expand Down Expand Up @@ -37,6 +38,9 @@
},
filterMethod (data, query) {
return data.label.indexOf(query) > -1;
},
rf (data) {
return '<i class="ivu-icon ivu-icon-alert"></i>' + data.label;
}
}
}
Expand Down

0 comments on commit 3fd9788

Please sign in to comment.