Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
amis-sms-code-renderer
Advanced tools
yarn add amis-sms-code-control
载入组件
import 'amis-sms-code-control';
自定义
import { FormItem } from 'amis';
import { SmsCodeControl } from 'amis-sms-code-control';
@FormItem({
type: 'custom-sms-code',
})
class CustomSmsCodeControl extends SmsCodeControl {
// 自定义代码
}
配置
{
type: 'form',
controls: [
{
"type": "text",
"name": "phone",
"required": true,
"validations": "isPhoneNumber",
"placeholder": "请输入手机",
"label": "手机",
},
{
"type": "sms-code",
"label": '验证码',
"placeholder": "请输入验证码",
"name": "code",
"phoneField": "phone", // 与填写手机的字段 name 对应
"api": {
"method": "post",
"url": "/code",
"data": {
"phone": "${phone}" // 与填写手机的字段 name 对应
},
},
"validations": {
isNumeric: true,
isLength: 6
},
"required": true,
},
]
}
FAQs
```bash yarn add amis-sms-code-control ```
The npm package amis-sms-code-renderer receives a total of 2 weekly downloads. As such, amis-sms-code-renderer popularity was classified as not popular.
We found that amis-sms-code-renderer 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.