Coder Social home page Coder Social logo

省市区三级联动使用 about form-builder HOT 10 OPEN

xaboy avatar xaboy commented on June 1, 2024
省市区三级联动使用

from form-builder.

Comments (10)

xaboy avatar xaboy commented on June 1, 2024

可以直接看源码 https://github.com/xaboy/form-builder/blob/master/src/traits/form/FormCascaderTrait.php#L69

from form-builder.

SnowmanNunu avatar SnowmanNunu commented on June 1, 2024

from form-builder.

xaboy avatar xaboy commented on June 1, 2024

发一下你的成功规则我看看
然后检查一下省区市的数据有没有加载

from form-builder.

SnowmanNunu avatar SnowmanNunu commented on June 1, 2024

from form-builder.

SnowmanNunu avatar SnowmanNunu commented on June 1, 2024

province_city_area.js 这个文件好像有问题,问题解决了。打扰了,感谢

from form-builder.

xaboy avatar xaboy commented on June 1, 2024

@SnowmanNunu 怎么解决的? 是不是 cdn 加载的省市区数据有问题?

from form-builder.

SnowmanNunu avatar SnowmanNunu commented on June 1, 2024

@xaboy 是生成的表单页面没有引入 province_city_area.js

from form-builder.

xaboy avatar xaboy commented on June 1, 2024

好吧,我检查一下.
最近有点忙 忘记这个问题了,不好意思

from form-builder.

xaboy avatar xaboy commented on June 1, 2024

@SnowmanNunu 怎么复现这个问题?我这边测试没有问题呀

$form = \FormBuilder\Form::create('');

$form->append(\FormBuilder\Form::city('city','city',['陕西省','西安市']));
$form->append(\FormBuilder\Form::cityArea('cityArea','cityArea',[]));
echo $form->view();

from form-builder.

SnowmanNunu avatar SnowmanNunu commented on June 1, 2024

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.