0.3.5 • Published 4 years ago

tg-smart-input v0.3.5

Weekly downloads
73
License
-
Repository
github
Last release
4 years ago

Description

a vue component of smart tips input box. cotain two components: {TgSmartInput, BaseTag}

install

npm install --save-dev tg-smart-input

import

import TgSmartInput from "tg-smart-input"

use

/*app.vue*/
<template>
<tg-smart-input 
  :multiple="multiple"
  :data-api="dataApi"
  :key-name="keyName"
  ref="smartInput"
/>

<base-tag 
  closeable
  size="small"
  type="info"
  effect="light"
  bgColor="yellow"
>
{{ msg }}
</base-tag>
</template>
<script>
import TgSmartInput from 'tg-smart-input';

export default {
  name: 'App',
  data() {
    return {
      msg: 'test',
      multiple: true,
      dataApi: 'http://tgtest.local/members/members?q=',
      keyName: 'zhongwen',
      //members: [{"name":"john","zhongwen": "小强"},{"name":"allan","zhongwen": "老王"},{"name":"krwakg","zhongwen": "老吴"}],
    }
  },
  components: {
    TgSmartInput: TgSmartInput.TgSmartInput,    // register component tg-smart-input
    BaseTag: TgSmartInput.BaseTag
  }
}
</script>
<style></style>
0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.6

5 years ago

0.2.8

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago