This commit is contained in:
parent
6e0e675afd
commit
1b21f6cad3
|
@ -237,6 +237,16 @@ ul {
|
||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.CodeMirror-hint {
|
||||||
|
padding-right: 18px;
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.CodeMirror-hint:hover {
|
||||||
|
background: #08f;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
/* end editor */
|
/* end editor */
|
||||||
|
|
||||||
/* start bottom-window-group */
|
/* start bottom-window-group */
|
||||||
|
|
|
@ -105,9 +105,20 @@ var editors = {
|
||||||
|
|
||||||
if (autocompleteArray) {
|
if (autocompleteArray) {
|
||||||
for (var i = 0; i < autocompleteArray.length; i++) {
|
for (var i = 0; i < autocompleteArray.length; i++) {
|
||||||
|
var displayText = '';
|
||||||
|
if (autocompleteArray[i].class === 'type') {
|
||||||
|
displayText = '<span class="fn-clear">'// + autocompleteArray[i].class
|
||||||
|
+ '<b class="fn-left">' + autocompleteArray[i].name + '</b>'
|
||||||
|
+ autocompleteArray[i].type + '</span>';
|
||||||
|
} else {
|
||||||
|
displayText = '<span>'// + autocompleteArray[i].class
|
||||||
|
+ '<b>' + autocompleteArray[i].name + '</b> '
|
||||||
|
+ autocompleteArray[i].type.substring(4) + '</span>';
|
||||||
|
}
|
||||||
autocompleteHints[i] = {
|
autocompleteHints[i] = {
|
||||||
// TODO: 添加类型、图标
|
// TODO: 添加类型、图标
|
||||||
displayText: '<b>' + autocompleteArray[i].name + '</b>',
|
|
||||||
|
displayText: displayText,
|
||||||
text: autocompleteArray[i].name
|
text: autocompleteArray[i].name
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue