New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-dadata

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-dadata

Vue component for hinting addresses using dadata.ru

latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
320
21.21%
Maintainers
3
Weekly downloads
 
Created
Source

Vue Dadata

npm version npm downloads NPM license npm type definitions

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

  • vue

Dependencies

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

Keywords

vue

FAQs

Package last updated on 11 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts