
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
v-form-dialog
Advanced tools
基于vue、element-ui的表格弹窗组件,用于信息的添加、编辑等操作。
install with npm
npm install --save v-form-dialog
Import into your component:
import FormDialog from 'v-form-dialog';
Useage:
const schema = [
{ "prop": "name", "label": "姓名","tooltip":"姓名格式为字母数字" },
{ "prop": "sex", "label": "性别","type":"radio","options":[{"label":"男","value": 1},{"label":"女","value": 2}],"default": 1 },
{ "prop": "age", "label": "年龄","type":"number","controlsPosition": "right","min": 1,"max": 200 },
{ "prop": "birth", "label": "生日","type":"date" },
{ "prop": "city","label": "城市","type":"select", "options":[{"label":"北京","value": "beijing"},{"label":"上海","value": "shasnghai"}],"default": "beijing"},
{ "prop": "like","label": "兴趣爱好","type":"checkbox", "options":[{"label":"唱歌"},{"label":"跳舞"}],"valueKey": "label","default":[]}
]
const rules = {
"name":[
{"required":true,"message":"请输入姓名","trigger":"blur"},
{"pattern":"^[a-zA-Z0-9]+$","message":"姓名格式不正确","trigger":"blur"}
],
"city":[
{"required":true,"message":"请选择城市","trigger":"blur"}
]
}
FormDialog.show({
title:"例子",
schema: schema,
rules: rules,
submit: (form, cb)=>{
//模拟保存,显示loading
const loading=this.$loading({ fullscreen: true })
setTimeout(()=>{
this.$message({type:'success',message:'保存成功',duration: 2000})
loading.close()
cb && cb();
},1000)
}
})
FAQs
基于vue、element-ui的表格弹窗组件,用于信息的添加、编辑等操作。
We found that v-form-dialog 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.