JEECG表格选中状态怎么去掉

ops/2024/9/23 4:50:37/

官网代码(在取消选中状态的时候不生效)

  rowSelection() {return {onChange: (selectedRowKeys, selectedRows) => {console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);},getCheckboxProps: record => ({props: {disabled: record.name === 'Disabled User', // Column configuration not to be checkedname: record.name,},}),};},

修改后台的代码

    rowSelection() {const { selectedRowKeys } = this  //必须加return {selectedRowKeys,  //必须加onChange: (selectedRowKeys, selectedRows) => {this.selectedRowKeys = selectedRowKeysthis.selectedRows = selectedRows},getCheckboxProps: (record) => ({props: {disabled: record.status !== 3, // Column configuration not to be checkedstatus: record.status,},}),}},


http://www.ppmy.cn/ops/4617.html

相关文章

渐变效果-gradient(秒懂网页中的渐变效果)

目录 一、渐变介绍 1.概念 2.特点 3.功能 4.好处 5.高级特性 二、渐变用法 1.线性渐变 1.1 线性渐变-从上到下(默认情况) 1.2 线性渐变-从左到右 1.3 线性渐变-对角 1.4.使用角度 1.5.使用多个颜色节点 1.6,使用透明度 1.7.重复的线性渐变 2.…

【小贴士|Unity】华佗热更版本控制配置

现在越来越多的新项目选择使用HybridCLR,而不是以前的Lua。也不妨有的项目会配置打包机器人以及版本控制,但是这个版本控制的配置还真需要注意一些。(因为我就踩坑了) 如图所示,当你第一次执行HybridCLR/Generate/All后…

NLP预训练模型- GPT-3学习指南与学习总结案例

NLP预训练模型GPT-3学习指南与学习案例 学习指南 GPT-3,作为OpenAI开发的一种先进的语言生成模型,具有强大的语言理解和生成能力。为了有效地学习和应用GPT-3,以下是一些建议的学习指南: 理解模型原理:首先&#xf…

Nginx出现403 Forbidden、404 Not Found错误的解决方案

一、Docker创建Nginx容器 Docker命令 docker run -d \--name nginx \-p 80:80 \-v /root/nginx/dist:/usr/share/nginx/html \-v /root/nginx/nginx.conf:/etc/nginx/nginx.conf \nginxnginx.conf worker_processes 1;events {worker_connections 1024; }http {include …

SQL序列

序列 SEQUENCE 序列是Oracle提供的一组能够自动增长的序号,一般是提供主键值用的。 序列的创建 CREATE SEQUENCE 序列名 ----可以结束了START WITH n ----初始值 n,如果这句话不写,默认是1INC…

【软件设计】

设计原则 单一职责原则Single responsibility principle(SRP) A class should have a single purpose and only one reason to change If a class has more than one responsibility, then the responsibilities becomes coupled SRP is one of the simplest of the principl…

AI推介-大语言模型LLMs论文速览(arXiv方向):2024.04.10-2024.04.15

文章目录~ 1.Unveiling Imitation Learning: Exploring the Impact of Data Falsity to Large Language Model2.Are Large Language Models Reliable Argument Quality Annotators?3.LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large …

计算机视觉动作识别——YOWO用于实时时空动作定位与识别的算法解析

摘要 时空动作定位要求将两种信息源整合到设计的架构中:(1) 来自先前帧的时间信息和(2) 来自关键帧的空间信息。当前的最先进方法通常使用单独的网络提取这些信息,并使用额外的机制进行融合以获得检测结果。YOWO是一个用于视频流中实时时空动作定位的统…