Coder Social home page Coder Social logo

Comments (3)

geqianqian-shihan avatar geqianqian-shihan commented on July 22, 2024

自动填充影响布局

input.dataRange 增加 autocomplate = “off”

from alexuse.

geqianqian-shihan avatar geqianqian-shihan commented on July 22, 2024

treeSelect

treeSelect 文档地址

layui.use(['treeSelect','form'], function () {
        var treeSelect= layui.treeSelect;

        treeSelect.render({
            // 选择器
            elem: '#tree',
            // 数据
            data: 'data/data3.json',
            // 异步加载方式:get/post,默认get
            type: 'get',
            // 占位符
            placeholder: '修改默认提示信息',
            // 是否开启搜索功能:true/false,默认false
            search: true,
            // 点击回调
            click: function(obj){
                console.log(obj);
           // obj.data   树形组件全部数据  
           // obj.current   树形组件当前点击   checked  是否选中   id   name  open  children   level 0 ~ n  
           // obj.data   树形组件全部数据  
            },
            // 加载完成后的回调函数
            success: function (d) {
                console.log(d);
//                选中节点,根据id筛选
//                treeSelect.checkNode('tree', 3);

//                获取zTree对象,可以调用zTree方法
//                var treeObj = treeSelect.zTree('tree');
//                console.log(treeObj);

//                刷新树结构
//                treeSelect.refresh();
            }
        });
    });

from alexuse.

geqianqian-shihan avatar geqianqian-shihan commented on July 22, 2024

一、 layui form.on('select(statistical)',function(){}) 全局

from alexuse.

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.