惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
K
Kaspersky official blog
Cisco Talos Blog
Cisco Talos Blog
P
Privacy International News Feed
T
Tenable Blog
T
Threat Research - Cisco Blogs
Spread Privacy
Spread Privacy
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
月光博客
月光博客
美团技术团队
N
Netflix TechBlog - Medium
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
NISL@THU
NISL@THU
G
Google Developers Blog
P
Privacy & Cybersecurity Law Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
Intezer
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
MyScale Blog
MyScale Blog
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Project Zero
Project Zero
Latest news
Latest news
博客园_首页
C
Cisco Blogs
The Register - Security
The Register - Security
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
H
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AWS News Blog
AWS News Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
Vercel News
Vercel News
Know Your Adversary
Know Your Adversary
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
云风的 BLOG
云风的 BLOG

博客园 - 子福当自强

centos 8 安装 nodejs npm centos 8 安装 minio centos 8 安装 ngingx 1.20 centos 8 安装 mysql 8 centos 8 安装 redis 6 centos 8 rpm安装oracle jdk 11 CentOS 8.2远程连接vncserver升级后1.10.1无法启动解决记录 Eclipse:Cannot complete the install because of a conflicting dependency.问题解决 Android SDK更新以及ADT更新出现问题的解决办法 Visual Studio 2013开启JavaScript的智能提示功能 linux中mysql密码找回的两种方式 Oracle 物化视图 说明 linux下mysql字符集编码问题的修改 mysql 启动错误-server PID file could not be found 在linux安装mysql,并设置远程访问 mysql安装过程中出现错误ERROR 1820 (HY000): You must SET PASSWORD before executing this statement解决 linux 下面 jdk1.7 rpm 包的安装 java数据库连接池性能对比 网页导航栏设计模式
vue element plus el-dropdown实现command传递多个参数最简单方式
子福当自强 · 2025-04-08 · via 博客园 - 子福当自强

默认只能传递一个参数.可将对象序列化成json字符串传递

<el-dropdown @command="handleCommand">

  <el-dropdown-item :command="JSON.stringify({ cmd: dict.value, id: scope.row.id })">

    {{ dict.label }}

  </el-dropdown-item>

</el-dropdown>

//下拉菜单的点击事件

const handleCommand = (command: string) => {

  var jsonCmd = JSON.parse(command)//将传递进来的字符串还原成json对象.

  switch (jsonCmd.cmd) {

    case 0:

      handleDelete(jsonCmd.id)

      break

  }

}