
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
vue-number-smarty
Advanced tools
npm i vue-number-smarty
or with yarn:
yarn add vue-number-smarty
Just include plugin in your component:
import VNumberSmarty from 'vue-number-smarty';
components: {
...
VNumberSmarty,
},
Now you can use it:
<v-number-smarty
v-model="myModel"
number-type="integer"
unsigned
placeholder="Focus me and scroll"
font-family="Roboto Condensed"
font-size="1rem"
:step="5"
:max="1000"
/>
<v-number-smarty
v-model="myModel"
number-type="float"
text-color="#eee"
:step="5.5"
:int-part-max-len="3"
:float-part-max-len="1"
:min="-1000"
:max="1000"
/>
description: text-align within input
required: false
default: 'left'
allowed: 'left', 'center', 'right', 'justify'
required: false
default: ''
type: String
description: true - number can be negative, false - number can't be negative
required: false
default: false
type: Boolean
required: true
allowed: 'integer', 'float'
description: number will be bring to min value if it is exceeded, when field becomes inactive (on blur)
required: false
type: Number
default: -9999999
description: number will be bring to max value if it is exceeded, when field becomes inactive (on blur)
required: false
type: Number
default: 9999999
description: increment/decrement size
required: false
type: Number
default: 1
description: max length of string (only for integer type)
required: false
type: Number
default: 6
description: max length of string (only for integer type)
required: false
type: Number
default: 6
description: max length of integer part of number (only for float type)
required: false
type: Number
default: 4
description: max length of fractional part of number (only for float type)
required: false
type: Number
default: 2
description: field's error state
required: false
type: Boolean
default: false
required: false
type: Boolean
default: false
required: false
type: String
default: 'rgba(0,0,0,.9)'
description: it is just a string - write what you want here ('bold', '500' or whatever)
required: false
type: String
default: 'normal'
required: false
type: String
default: 'monospace'
description: it is just a string - write what you want here ('18px', '1.5em' or whatever)
required: false
type: String
default: '1.3em'
description: it is just a string - write what you want here ('100px', '3.5em', '50%' or whatever)
required: false
type: String
default: '250px'
description: it is just a string - write what you want here ('10px auto', '0px 10px 15px' or whatever)
required: false
type: String
default: '0 auto'
description: it is just a string - write what you want here ('10px auto', '0px 10px 15px' or whatever)
required: false
type: String
default: '5px 10px'
Component styles are override-friendly. So you can configure the desired field style.
The css classes of the component are listed here:
.vns__wrapper
.vns__input (.vns__input-error)
.vns-arrows
.vns-arrows__arrow-up
.vns-arrows__arrow-down
yarn install || npm i
Go to the root folder and type:
yarn serve || npm run serve
You can work with /src/plugin/NumberInput.vue and see it in your browser.
Go to /src/plugin/ and do:
npx bili
Go to the root folder and type:
yarn test:unit || npm run test:unit
FAQs
Number input with rich functionality for Vue.js
The npm package vue-number-smarty receives a total of 17 weekly downloads. As such, vue-number-smarty popularity was classified as not popular.
We found that vue-number-smarty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.