doc: update typescript.md

This commit is contained in:
jaywcjlove
2022-11-25 14:09:57 +08:00
parent 8a6042bffc
commit 33ed20a7ea
3 changed files with 87 additions and 27 deletions

View File

@ -10,30 +10,6 @@ export function search({ homePath = '', isHome } = {}) {
const dataJSUrl = relativePath + 'data.js';
const svgSearchNode = getSVGNode(ICONS_SEARCH_PATH);
return [
{
type: 'element',
tagName: 'script',
properties: {
src: dataJSUrl,
defer: true,
},
},
{
type: 'element',
tagName: 'script',
properties: {
src: fuseJSUrl,
defer: true,
},
},
{
type: 'element',
tagName: 'script',
properties: {
src: manJSUrl,
defer: true,
},
},
{
type: 'element',
tagName: 'div',
@ -108,5 +84,32 @@ export function search({ homePath = '', isHome } = {}) {
},
],
},
{
type: 'element',
tagName: 'script',
properties: {
src: dataJSUrl,
type: 'text/javascript',
defer: true,
},
},
{
type: 'element',
tagName: 'script',
properties: {
src: fuseJSUrl,
type: 'text/javascript',
defer: true,
},
},
{
type: 'element',
tagName: 'script',
properties: {
src: manJSUrl,
type: 'text/javascript',
defer: true,
},
},
];
}

View File

@ -207,9 +207,6 @@ table {
border-color: inherit;
border-collapse: collapse;
}
table td:first-child {
white-space: nowrap;
}
table.shortcuts td:not(:last-child) > code,
table.shortcuts td:not(:last-child) > del > code,