当前位置:网站首页>el-switch 赋值后状态不变化
el-switch 赋值后状态不变化
2022-07-03 14:55:00 【---清心寡欲---】
现象:
scope.row.value 返回的数据是0和1,但是绑定value开关不显示
原始代码:
<template slot-scope="scope">
<el-switch
v-model="scope.row.value"
active-value="1"
inactive-value="0"
active-color="#13ce66"
inactive-color="#D3D3D3"
active-text="开启"
disabled >
</el-switch>
解决方法:
active-value="1"
inactive-value="0"
修改为
:active-value="1"
:inactive-value="0"
边栏推荐
- [engine development] rendering architecture and advanced graphics programming
- 7-9 one way in, two ways out (25 points)
- C language to implement a password manager (under update)
- [opengl] advanced chapter of texture - principle of flowmap
- Byte practice surface longitude
- [graphics] efficient target deformation animation based on OpenGL es 3.0
- [graphics] adaptive shadow map
- 牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
- Devaxpress: range selection control rangecontrol uses
- Dllexport and dllimport
猜你喜欢
Vs+qt application development, set software icon icon
5.2-5.3
链表有环,快慢指针走3步可以吗
4-20-4-23 concurrent server, TCP state transition;
How to color ordinary landscape photos, PS tutorial
C language fcntl function
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial
Rasterization: a practical implementation (2)
随机推荐
Global and Chinese markets for flexible chips 2022-2028: Research Report on technology, participants, trends, market size and share
Web server code parsing - thread pool
Tencent internship interview sorting
7-9 one way in, two ways out (25 points)
Amazon, express, lazada, shopee, eBay, wish, Wal Mart, Alibaba international, meikeduo and other cross-border e-commerce platforms evaluate how Ziyang account can seize traffic by using products in th
Yolov5进阶之九 目标追踪实例1
C language STR function
Zzuli:1040 sum of sequence 1
ASTC texture compression (adaptive scalable texture compression)
[opengl] pre bake using computational shaders
Zzuli:1048 factorial table
Zzuli:1058 solving inequalities
My QT learning path -- how qdatetimeedit is empty
CentOS7部署哨兵Redis(带架构图,清晰易懂)
PS tips - draw green earth with a brush
牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
Zero copy underlying analysis
NOI OPENJUDGE 1.4(15)
C language dup2 function
Zzuli:1059 highest score