GithubHelp home page GithubHelp logo

Comments (3)

xaboy avatar xaboy commented on July 22, 2024

感谢您的反馈,这块有个 bug,我会尽快修复.可以发下你的错误信息吗

from form-create.

qinst64 avatar qinst64 commented on July 22, 2024
$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.

xaboy avatar xaboy commented on July 22, 2024

感谢您的反馈,这个 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.