当前位置:网站首页>Antd form - reset method does not work - Basic accumulation - importance of prop
Antd form - reset method does not work - Basic accumulation - importance of prop
2022-07-23 14:16:00 【yehaocheng520】
Today, my colleague asked me a question : That is, the form reset function does not take effect .

Corresponding code :
resetForm() {
this.$refs.ruleForm.resetFields();
},
html Code section :
<a-form-model
ref="ruleForm"
:model="form"
:rules="rules"
:label-col="labelCol"
:wrapper-col="wrapperCol"
>
<a-form-model-item label="Activity name" prop="name">
<a-input
v-model="form.name"
/>
</a-form-model-item>
<a-form-model-item label="Activity password" prop="password">
<a-input
v-model="form.password"
/>
</a-form-model-item>
</a-form-model>
I've been looking for a long time , Didn't find the problem , Finally, baidu found :
Reset form : You need to add prop, To take effect

The problem lies in the third step above , In addition, if you need to verify the form , I need this, too prop.
complete !!!
Accumulate more , Receive more goods .
边栏推荐
- iQOO 10 Pro和小米12 Ultra哪个好 哪个值得买 两者配置对比
- ThreadLocal 面试夺命11连问
- 赛扬N4000和赛扬N5095的区别
- 第十二天笔记
- Notes on the fifth day
- How about the performance of Intel Celeron 7300? What level is it equivalent to
- Swift hex string to uicolor
- 第十天笔记
- Remember that a vulnhub target plane exercise successfully won the root permission
- How many processors is Tianji 720 equivalent to Xiaolong? How about Tianji 720 equivalent to Xiaolong
猜你喜欢

Where does pytorch work?

Notes on the fourth day

What level is the notebook core i5 1135g7 equivalent to? How about i5 1135g7 performance

第十二天笔记
![寻找峰值[抽象二分练习]](/img/99/122e79784f0f07120680d2cbcf89da.png)
寻找峰值[抽象二分练习]

rtx3080相当于gtx什么显卡 rtx3080显卡什么水平 rtx3080显卡怎么样

几种点云(网格)孔洞填充方法(1)

Surrounded Regions

NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘*****‘

锐龙R7 PRO 5875U性能怎么样?相当于什么水平级别
随机推荐
强化學習——策略梯度理解點
MySQL enables scheduled task execution
Design instantiation and connection
Remember that a vulnhub target plane exercise successfully won the root permission
Fastadmin changes the pop-up size of the default table button
js 实现随机生成UUID
赛扬N4000和赛扬N5095的区别
接口interface
天玑1100相当于骁龙多少处理器 天玑1100相当于骁龙多少 天玑1100怎么样
Interface
子序列 --- 编辑距离
494. 目标和
pingbanceshi
Which is the difference between iqoo 10 pro and vivo X80 pro? Detailed parameter configuration comparison
英特尔赛扬7300性能怎么样?相当于什么水平级别
第十一天笔记
js 实现 encode64 加密
Detailed explanation of knapsack problem
达人评测 酷睿i9 12950hx和i9 12900hx区别哪个强
OSPF综合实验