Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-input-calculator

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-input-calculator

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) [![Latest Version on NPM](https://img.shields.io/npm/v/vue-input-calculator.svg?style=flat-square)](https://www.npmjs.com/package/vue-input-calculat

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by34.48%
Maintainers
1
Weekly downloads
 
Created
Source

vue-input-calculator

Software License Latest Version on NPM npm Vue 2.x

Calculator input component. Mobile friendly.

Demo

View demo.

Install

yarn add vue-input-calculator

Or

npm install --save vue-input-calculator

Add to project

Global
// main.js
import VueInputCalculator from "vue-input-calculator";
Vue.component('vue-input-calculator', VueInputCalculator);
Local
// component.vue
import VueInputCalculator from "vue-input-calculator";
export default {
    components: {VueInputCalculator}
    ...
  }

Usage

<VueInputCalculator v-model="targetVariable">Calc</VueInputCalculator>

Setup

Parameters

Props(Parameter)TypeDefaultDescription
v-model (required)String, Number-target input value
auto-applyBooleanfalseauto continue/close on calc result
persistentBooleanfalsedisable backdrop click to cancel (outside click)
readonly-inputBooleantruecalculator input read only
is-history-logsBooleantrueshow math operations log
trigger-classString-trigger for open styling class
text-colorString#ffffffcalculator text color
bg-colorString#2f2f31calculator background color
event-buttons-bg-colorString#424345calculator buttons color(c, ›, ±)
number-buttons-bg-colorString#616163calculator buttons color(0-9.)
action-buttons-bg-colorString#f49e3fcalculator buttons color(+-*=)
action-success-button-bg-colorString#3ff451calculator OK button color

License

The MIT License

Vue CLI configuration

See Configuration Reference.

FAQs

Package last updated on 22 Aug 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc