omi/components/input-number
YunYouJun 3a3d695206 refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
..
src refactor(common): change common/theme.scss to common/scss/theme.scss 2021-09-08 21:26:12 +08:00
test feat(input-number): test 2021-08-25 20:54:36 +08:00
.gitignore test 2021-08-25 20:48:31 +08:00
README.md test 2021-08-25 20:48:31 +08:00
index.html test 2021-08-25 20:48:31 +08:00
package.json test 2021-08-25 20:48:31 +08:00
tsconfig.json test 2021-08-25 20:48:31 +08:00
vite.config.ts test 2021-08-25 20:48:31 +08:00

README.md

InputNumber

InputNumber

Import

import '@omiu/input-number'

Or use script input-number to ref it.

<script src="https://unpkg.com/@omiu/input-number"></script>

Usage

<o-input-number></o-input-number>

API

Props

  /**
   * 值
   */
  value?: string,
  /**
   * 尺寸
   */
  size?: 'medium' | 'small' | 'mini',
  /**
   * 布局风格
   */
  style?:'justify'| 'right' |'left',
  /**
   * 布局风格
   */
  disabled?:boolean,
  /**
   * 步长
   */
  step?:number,
  /**
   * 严格步长
   */
  strictly?:boolean,
  /**
   * 最大值
  */
  max?:number,
  /**
   * 最小值
  */
  min?:number,
  /**
   * 精度
  */
  precision?:number

Install

npm i

Dev

cd components/input-number
npm start

Release

npm run build