* Modify module create style.

This commit is contained in:
caoyanyi
2023-03-24 15:11:03 +08:00
parent edbd45e502
commit 885eeaa338
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -89,4 +89,4 @@ table.table > thead > tr {height: 32px;}
[lang^=zh] #leftBar .selectBox #currentItem {width: 180px;}
#leftBar .selectBox #currentItem > .text {overflow: hidden; text-align: left; flex: 0 1 100%;}
.has-input {overflow: hidden;}
.tree li.has-input {overflow: hidden;}
+3 -5
View File
@@ -191,8 +191,9 @@ $(function()
case 'addCataBro' :
moduleData.createType = 'same';
var $input = $('[data-id=liTreeModal]').html();
var $rootDom = $('#fileTree [data-id=' + item.id + ']li');
var $rootDom = $('#fileTree li[data-id=' + item.id + ']');
$rootDom.after($input);
$rootDom.closest('ul').find('.has-input').css('padding-left', '0');
$('#fileTree').find('input').focus();
break;
case 'addCataChild' :
@@ -257,9 +258,6 @@ $(function()
});
}).on('keydown', '.file-tree input.input-tree', function(e)
{
if(e.keyCode == 13)
{
$(this).trigger('blur');
}
if(e.keyCode == 13) $(this).trigger('blur');
});
});