Logo
Explore Help
Register Sign In
by2025/admin-vben5
9
0
Fork 0
You've already forked admin-vben5
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
dbe5b33db6d23af6a671dccfbe3772b3ec71b2f8
admin-vben5/packages/effects/common-ui/src/components/captcha/utils.ts

8 lines
203 B
TypeScript
Raw Normal View History

refactor: refactor code structure and improve demo page (#4389) * feat: captcha example * fix: fix lint errors * chore: event handling and methods * chore: add accessibility features ARIA labels and roles * refactor: refactor code structure and improve captcha demo page * feat: add captcha internationalization * chore: 适配时间戳国际化展示 --------- Co-authored-by: vince <vince292007@gmail.com>
2024-09-14 09:53:06 +08:00
export const parseValue = (value: number | string) => {
if (typeof value === 'number') {
return value;
}
const parsed = Number.parseFloat(value);
return Number.isNaN(parsed) ? 0 : parsed;
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 19ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API