Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
caijf committed Jan 6, 2023
1 parent 8da47b3 commit d5847ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/calculateCursorPosition.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import normalizeString from './normalizeString';

// 参考了: https://github.com/ant-design/ant-design-mobile/blob/v2/components/input-item/index.tsx#L240
// ref: https://github.com/ant-design/ant-design-mobile/blob/v2/components/input-item/index.tsx#L240

/**
* 计算输入框的值格式化后光标位置
*
* @static
* @alias module:Other.calculateCursorPosition
* @since 4.6.0
* @see 格式化手机号码 {@link https://doly-dev.github.io/util-helpers/module-Processor.html#.formatMobile|formatMobile}
* @see 格式化银行卡号 {@link https://doly-dev.github.io/util-helpers/module-Processor.html#.formatBankCard|formatBankCard}
* @see h5示例 {@link https://2950v9.csb.app/|点击查看}
* @see react示例 {@link https://33ccy9.csb.app/|点击查看}
* @param {number} prevPos 赋值前的光标位置,onChange/onInput的光标位置 e.target.selectionEnd
Expand Down

0 comments on commit d5847ac

Please sign in to comment.