139 Star 1.7K Fork 403

maplemei / xm-select

 / 详情

使用tree后不能创建新选项

进行中
创建于  
2020-02-05 00:26

输入图片说明

删除tree能够正常显示创建。
具体代码如下

            layui.xmSelect.render({
                el: '#TagSelect',
                name: 'Tag',
                autoRow: true,
                filterable: true,
                create: function (val, arr) {
                    if (arr.length === 0) {
                        return {
                            name: '创建-' + val,
                            value: val
                        }
                    }
                },
                tree: {
                    show: true,
                    showFolderIcon: true,
                    showLine: true,
                    indent: 20,//间距
                    expandedKeys: true,
                    strict: false
                },
                filterable: true,
                height: '300px',
                data() {
                    return [<%=TagJson%>]
                }
            });

评论 (0)

蜗牛也很牛 创建了任务
蜗牛也很牛 关联仓库设置为maplemei/xm-select
maplemei 任务状态待办的 修改为进行中
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
JavaScript
1
https://gitee.com/maplemei/xm-select.git
git@gitee.com:maplemei/xm-select.git
maplemei
xm-select
xm-select

搜索帮助