masoudi/number-plus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

masoudi/number-plus

最新稳定版本:0.2.2

Composer 安装命令:

composer require masoudi/number-plus

包简介

Advance number field for Laravel Nova

README 文档

README

Specially Thanks

This package based on vue-number-format and thanks to Coderstm for maintaining it.

Latest Version on Packagist Total Downloads License: MIT

Number Plus - A advance number field

Number field with many option for customize number input

install

composer require masoudi/number-plus

How to use

NumberPlus::make('Salary')
  ->options([
      "separator" => ',',
      "prefix" => '$ ',
      "suffix" => ' Yearly',
      "precision" => 2,
      "masked" => false,
  ]),

Options

  • prefix: A word, letter, or number placed before value
  • suffix: A word, letter, or number placed after value
  • separator: Character used as the thousands separator
  • decimal: Character used to separate the integer part from the fractional part of a number
  • precision: The precision property returns the number of bits of precision that can be represented.
  • minimumFractionDigits: The minimum number of digits after the decimal separator.
  • prefill: Set initial value before mount the component
  • reverseFill: Fills string from the right side of the mask
  • masked: Value will be masked (with contain separation characters)
  • min: The min attribute specifies the minimum value for an input element.
  • nax: The max attribute specifies the maximum value for an input element.
  • nullValue: Value of input element is set to a default when no value present

Hooks

callAfterChanged Call a URL after exit input focus and you can display request response bottom of field

Example:

NumberPlus::make('Price')
   ->callAfterChanged("https://domain.com/number-to-words.php", displayResponse: true),



统计信息

  • 总下载量: 2.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-17