Vuept

handy style of validation for prop types of Vue

Version: 1.2.0 Updated: 12/13/2016

By: Ginhing License: MIT

Downloads Last 30 Days: 197

Install

npm i vuept
yarn add vuept

Repository: https://github.com/Ginhing/vuept

CDNs

bundle.run: https://bundle.run/vuept

jsDelivr: https://cdn.jsdelivr.net/npm/vuept

unpkg: https://unpkg.com/vuept

vuept

Another style to declare the props type for vue components.

Supported these types

import { num, str } from 'vuept'
//...
{
  props: {
    propA: Function,
    propB: num.default(() => 'bar'), // {type: Number, default: () => 'bar'}
    propC: str.required // {type: String, required: true}
  }
  //...
}
Categories: Vue js
Tags: vue