3.0.0-beta.13 • Published 12 months ago

vue-dadata v3.0.0-beta.13

Weekly downloads
99
License
MIT
Repository
github
Last release
12 months ago

Vue Dadata

npm version npm downloads NPM license npm type definitions

comment: <> (Publish(https://github.com/ikloster03/vue-dadata/workflows/Publish/badge.svg))

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

VersionDescription
1.*.*Old version for vue2
2.*.*New version for vue2
3.*.*New version for vue3

Install

npm package

# old version vue2
$ npm install vue-dadata@1.4.12 --save
# new version vue2 (in progress)
$ npm install vue-dadata@2.0.0-beta.2 --save
# vue3 (in progress)
$ npm install vue-dadata --save

Usage

<template>
  <div class="vue-truncate-html-example">
    <vue-dadata
      v-model="query"
      :token="token" />
  </div>
</template>

<script lang="ts">
  import { defineComponent, ref } from 'vue';
  import { VueDadata } from 'vue-dadata';
  import 'vue-dadata/dist/style.css';

  export default defineComponent({
    name: 'VueTruncateHtmlExample',
    components: {
      VueDadata,
    },
    setup() {
      const query = ref('');

      return {
        token: import.meta.env.VITE_APP_DADATA_API_KEY,
        query,

      };
    },
  });
</script>

Properties

PropRequiredTypeDescriptionDefault
tokenYesstringAuth token DaData.ru-
modelValueYesstringv-model for query-
suggestionNoobjectv-model for suggestionundefined
placeholderNostringText placeholder''
urlNostringspecial url for dadata api'https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/address'
debounceWaitNostringwaiting time'1000ms'
disabledNobooleandisabledfalse
fromBoundNostringDadata bound type FROMundefined
toBoundNostringDadata bound type TOundefined
inputNameNostringInput name attribute'vue-dadata-input'
locationOptionsNoobjectLocation options for choosing cities or countriesundefined
classesNoobjectclassesDEFAULT_CLASSES
highlightOptionsNoobjecthighlight options for vue-word-highlighterDEFAULT_HIGHLIGHT_OPTIONS
autocompleteNobooleancan autocomplete query, after blurundefined

Peer dependencies

Dependencies

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

3.0.0-beta.10

1 year ago

3.0.0-beta.11

12 months ago

3.0.0-beta.12

12 months ago

3.0.0-beta.13

12 months ago

3.0.0-beta.1

2 years ago

3.0.0-beta.3

2 years ago

3.0.0-beta.2

2 years ago

3.0.0-beta.5

2 years ago

3.0.0-beta.4

2 years ago

3.0.0-beta.7

2 years ago

3.0.0-beta.6

2 years ago

3.0.0-beta.9

2 years ago

3.0.0-beta.8

2 years ago

2.0.0-beta.2

2 years ago

1.4.12

3 years ago

1.4.11

3 years ago

1.4.10

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.4

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago