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

推荐订阅源

Webroot Blog
Webroot Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
SecWiki News
SecWiki News
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
T
Tor Project blog
H
Hacker News: Front Page
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
V
Vulnerabilities – Threatpost
C
CERT Recently Published Vulnerability Notes
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Heimdal Security Blog
AI
AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
P
Privacy & Cybersecurity Law Blog
AWS News Blog
AWS News Blog
Attack and Defense Labs
Attack and Defense Labs
The Last Watchdog
The Last Watchdog
K
Kaspersky official blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Security Latest
Security Latest
Schneier on Security
Schneier on Security
Scott Helme
Scott Helme
L
Lohrmann on Cybersecurity
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
N
News and Events Feed by Topic
S
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
F
Fortinet All Blogs
T
Threatpost
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
云风的 BLOG
云风的 BLOG
博客园_首页
Recent Announcements
Recent Announcements
G
Google Developers Blog
Martin Fowler
Martin Fowler

博客园 - 子福当自强

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

  }

}