### 表单事件: **loaded** - 说明:当页面渲染完成,并且表单数据赋值后,触发loaded事件,此时可以设置表单的默认值或是修改已有的值 - 示例: ![](https://img.kancloud.cn/aa/6c/aa6c2053efe8e9335851cbbf3a28bc4b_788x377.png) - 代码 ``` loaded(){ this.$nextTick(()=>{ let text = '测试js增强设置默认值'; if(this.isUpdate.value === true){ text = '测试js增强修改表单值'; } this.setFieldsValue({ name: text }) }) } ``` - 表单效果: ![](https://img.kancloud.cn/0a/88/0a8822e7be078ae1ceb130f6a41c598f_802x434.png) ![](https://img.kancloud.cn/39/e5/39e5e3d0ac87b7fee8e1f636ebe5717d_803x430.png)