Socket
Socket
Sign inDemoInstall

vue-treeselect-mask

Package Overview
Dependencies
20
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-treeselect-mask

A multi-select component with nested options support for Vue.js


Version published
Weekly downloads
36
increased by28.57%
Maintainers
1
Install size
3.37 MB
Created
Weekly downloads
 

Readme

Source

Forked library from: https://github.com/riophae/vue-treeselect

All rights reserved to https://github.com/riophae/vue-treeselect

Added Feature

  • Input mask

Getting Started

It's recommended to install vue-treeselect via npm, and build your app using a bundler like webpack.

npm install --save vue-treeselect-mask

This example shows how to integrate vue-treeselect with your Vue SFCs.

<!-- Vue SFC -->
<template>
  <div id="app">
    <Treeselect
      v-model="value"
      inputMask="+7(###)###-####"
      :multiple="true"
      :options="options"
    />
  </div>
</template>

<script>
// import the component
import Treeselect from "vue-treeselect-mask";
// import the styles
import "vue-treeselect-mask/dist/vue-treeselect.css";

export default {
  // register the component
  components: { Treeselect },
  data() {
    return {
      // define the default value
      value: null,
      // define options
      options: [
        {
          id: "a",
          label: "a",
          children: [
            {
              id: "aa",
              label: "aa",
            },
            {
              id: "ab",
              label: "ab",
            },
          ],
        },
        {
          id: "b",
          label: "b",
        },
        {
          id: "c",
          label: "c",
        },
      ],
    };
  },
};
</script>

Keywords

FAQs

Last updated on 14 Apr 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc