1.0.1 • Published 6 years ago

suz-claim-repo v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Vue Dadata

It's a vue component for hinting addresses using DaData.ru.

Install

npm package

$ npm install vue-dadata --save

yarn package

$ yarn add vue-dadata

Usage

Global

import VueDadata from 'vue-dadata'

Vue.use(VueDadata)

Local

<template>
  <div id="app">
    <vue-dadata token="dadata_api_key"></vue-dadata>
  </div>
</template>

<script>
import VueDadata from 'vue-dadata'

export default {
  name: 'VueDadataTest',
  components: {
    'vue-dadata': VueDadata
  }
}
</script>

Properties

PropRequiredTypeDescription
tokenYesstringAuth token DaData.ru
placeholderNostringText placeholder
queryNostringInitial state input field
autoloadNobooleanIf true, then a request for tips will be initialed in the background in the created hook
onChangeNofunction(suggestion: DadataSuggestion) -> voidFunction called when selecting a tooltip
autocompleteNostringAutocomplete field
defaultClassNostringDefault class ofr component, default value - vue-dadata
classesNostringExtra classes

Dependencies

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

ToDo

Show project Vue Dadata

Milestones

Show milestones

Contact me

Contributors

CHANGELOG

CONTRIBUTING

LICENSE

Copyright (c) 2019 Ivan Monastyrev ikloster@yandex.ru. Licensed under the MIT license.