Coder Social home page Coder Social logo

Comments (10)

hbh112233abc avatar hbh112233abc commented on June 12, 2024 1

找到原因了,我设置的值是从数据库取出来的,类型是字符串的,需要转成整型就没问题了,是我的原因

from form-builder.

mcc7178 avatar mcc7178 commented on June 12, 2024 1

确实,是数据类型的问题。。

from form-builder.

hbh112233abc avatar hbh112233abc commented on June 12, 2024

备注一下,我有尝试$form->setValue('test',1);,有一次显示正常,后续不知道怎么的就没再重现过

from form-builder.

xaboy avatar xaboy commented on June 12, 2024

复现不了了? 使用的是那个版本?

from form-builder.

hbh112233abc avatar hbh112233abc commented on June 12, 2024

最新版本额 composer 安装的最新版本,而且我发现教程里有些用法会报错
比如:Elm::form()会报form方法不存在,需要用Form::elm()

from form-builder.

hbh112233abc avatar hbh112233abc commented on June 12, 2024

版本号2.0.14

from form-builder.

xaboy avatar xaboy commented on June 12, 2024

文档里写错了,应该是Elm::createForm

from form-builder.

hbh112233abc avatar hbh112233abc commented on June 12, 2024

那select那个帮忙看看该怎么设置,我设置了默认值,然后就显示value值 没有显示对应的label,这样体验不好啊

from form-builder.

xaboy avatar xaboy commented on June 12, 2024

怎么复现? 我这边复现不出来
image

from form-builder.

hbh112233abc avatar hbh112233abc commented on June 12, 2024

谢谢xaboy,你这项目挺好的啊

from form-builder.

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.