From 3fd978800fb1d3e9d84c15cac13271836ed868cb Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 15 Feb 2017 17:30:30 +0800 Subject: [PATCH] Transfer renderFormat support html element --- src/components/transfer/list.vue | 2 +- test/routers/transfer.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/transfer/list.vue b/src/components/transfer/list.vue index e8e323e..9f5fc8b 100644 --- a/src/components/transfer/list.vue +++ b/src/components/transfer/list.vue @@ -18,7 +18,7 @@ :class="itemClasses(item)" @click.prevent="select(item)"> - {{ showLabel(item) }} + {{{ showLabel(item) }}}
  • {{ notFoundText }}
  • diff --git a/test/routers/transfer.vue b/test/routers/transfer.vue index 7b04e0c..a8c0ba4 100644 --- a/test/routers/transfer.vue +++ b/test/routers/transfer.vue @@ -3,6 +3,7 @@ :data="data2" :target-keys="targetKeys2" filterable + :render-format="rf" :filter-method="filterMethod" @on-change="handleChange2"> @@ -37,6 +38,9 @@ }, filterMethod (data, query) { return data.label.indexOf(query) > -1; + }, + rf (data) { + return '' + data.label; } } } -- libgit2 0.21.4