Tags input demo

https://github.com/gurudin/vue-tags-input


安装 (Installation)


Demo


使用:


<html>
  <body>
    <tags-input placeholder="Tags input"></tags-input>
  </body>
</html>

<script>
  Vue.component('tags-input', VueTagsInput.tagsInput);
</script>

示例:

<tags-input
  placeholder="{{sample.placeholder}}"
  bootstrap="{{sample.bootstrap}}"
  label-style="{{sample.labelStyle}}"
  :on-change="onChange"
  :callback="callback"
  data-value="{{sample.dataValue}}"
  ref="tags"></tags-input>

回调:

/* 改变回调方法 */
function onChange(value)
Result
{{funcData.changeData}}
/* 操作回调方法 */
function callback(data, index){
  return true|false;
}
Result
index: {{funcData.callInx}}
data:{{funcData.callData}}

参数:

占位符.
bootstrap 版本风格
tags 样式
{{sample.dataValue}}

方法:

{{funcData.tags}}