Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
vue-autonumeric-directive
Advanced tools
vue-autonumeric-directive
是一个基于autoNumeric的Vue插件,使用简单的指令方式,对需要的元素添加格式化功能。
# with `yarn` :
yarn add vue-autonumeric-directive
# or with `npm` :
npm install vue-autonumeric-directive --save
按照Vue插件方式注册插件。
在浏览器中插件的全局名称为VueNumberFormat
。
<input name="input1" id="input1" v-model="input1" v-number="config1">
new Vue({
el: '#demo',
data: {
input1: '123.00',
config1: { bind: 'input1' },
input2: 32,
}
})
On which elements can it be used
只支持下列input类型
支持element-ui Input组件
export type PluginsOptions = {
unsafeSet: boolean; // use unsafe method to set value to element and vnode (eval, more powerful)
pure: boolean; // 是否不使用分隔符(例如千分位逗号)
presion: number; // 精确到小数点后几位
}
declare type InputOptions = {
unsafeSet: boolean;
bind: string;
min: string,
max: string,
presion: string, // 精确到小数点后几位
local: string, // autoNumeric本地化配置,
predifined: string, // autoNumeric预定义配置
numricOptions: AutoNumericOptions;
};
参考numberic numricOptions autoNumeric options
FAQs
Vue directive plugin to assure number to be number
The npm package vue-autonumeric-directive receives a total of 20 weekly downloads. As such, vue-autonumeric-directive popularity was classified as not popular.
We found that vue-autonumeric-directive 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.