Comments (3)
感谢您的反馈,这块有个 bug,我会尽快修复.可以发下你的错误信息吗
from form-create.
$f.bind()
form-create.min.js:2 Uncaught TypeError: Cannot read property 'value' of undefined
at Object.<anonymous> (form-create.min.js:2)
at Array.forEach (<anonymous>)
at Object.bind (form-create.min.js:2)
at <anonymous>:1:4
$f.model() //model应该传入参数的, 我不会用
form-create.min.js:2 Uncaught Error: 不通过字段不存在
at Object.<anonymous> (form-create.min.js:2)
at Array.forEach (<anonymous>)
at Object.model (form-create.min.js:2)
at <anonymous>:1:4
写在mounted的赋值没有任何错误, 可能是form还在渲染, 网页上的表单还是空的
...
mounted: function() {
$f = this.$refs.fc.$f;
this.formData = $f.model();
this.formData["xxx1"].value = yy1; //这个没有任何效果
setTimeout(function(){ //之前这样可以, 1.5之后就不行了
app.formData["xxx1"].value = yy1;
}, 1000);
},
...
我之前接触vue较少, 可能是我不会用, 谢谢
from form-create.
感谢您的反馈,这个 bug 会在1.5.1版本中修复,今晚就会发布😃
您可以把 mounted中的操作移动到options.mounted
方法中,这样就不需要延迟了
options:{
mounted($f){
var $m = $f.model();
$m.goods_name.value += " now";
// var $b = $f.bind();
// $b.value += " now";
}
}
from form-create.
Related Issues (20)
- 文档官网打不开了 HOT 2
- adv@4 版本,type为textarea 时,fApi.resetFields()无效 HOT 2
- FormCreate放到 a-modal 弹框中时,resetFields 无效 HOT 1
- 使用iframe嵌入拖拽失效
- 上传组件成功方法里无法使用异步操作
- field 能否支持object形式?
- 监听change事件会触发其他组件的click事件 HOT 1
- 手动提交的问题,验证的问题 HOT 7
- 用cdn的方式.富文本没办法显示???文档也没找到这个使用方式
- 重写内置组件 HOT 1
- control规则控制后使用resetFields() 无法清空上一次数据 HOT 2
- 是否有 手动触发 rule.fetch 的api ? HOT 1
- 2.5版本中的antdv中input组件使用updateRule改变type字段,组件却无法切换 HOT 1
- 分组里面嵌套组件,组件定义的emit事件无法通过emit-event获取到。 HOT 1
- 表单项额外提示 extra/explain/help如何设置? HOT 1
- v3版本修改 v-model 为 v-model:api 问题
- 源码下载之后项目启动报错 HOT 2
- elementui 使用栅格布局设置总分数为24,row值占一半 没有占满整个空间 HOT 3
- form-create <fcTable> 无法解析问题
- 字母拼写问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form-create.