mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 03:58:07 +01:00
This commit is contained in:
parent
6acf780269
commit
80ebf8586c
4 changed files with 55 additions and 100 deletions
3
app/src/types/config.d.ts
vendored
3
app/src/types/config.d.ts
vendored
|
|
@ -1925,7 +1925,7 @@ declare namespace Config {
|
|||
* - `1`: Group by document
|
||||
*/
|
||||
group: number;
|
||||
hasReplace: any;
|
||||
hasReplace: boolean;
|
||||
/**
|
||||
* Readable path list
|
||||
*/
|
||||
|
|
@ -1961,6 +1961,7 @@ declare namespace Config {
|
|||
r: string;
|
||||
/**
|
||||
* Whether to clear the search box after removing the currently used query condition group
|
||||
* 移除后需记录搜索内容 https://github.com/siyuan-note/siyuan/issues/7745
|
||||
*/
|
||||
removed?: boolean;
|
||||
replaceTypes: IUILayoutTabSearchConfigReplaceTypes;
|
||||
|
|
|
|||
38
app/src/types/index.d.ts
vendored
38
app/src/types/index.d.ts
vendored
|
|
@ -259,44 +259,6 @@ interface ISearchAssetOption {
|
|||
k: string,
|
||||
}
|
||||
|
||||
interface ISearchOption {
|
||||
page: number
|
||||
removed?: boolean // 移除后需记录搜索内容 https://github.com/siyuan-note/siyuan/issues/7745
|
||||
name?: string
|
||||
sort: number, // 0:按块类型(默认),1:按创建时间升序,2:按创建时间降序,3:按更新时间升序,4:按更新时间降序,5:按内容顺序(仅在按文档分组时),6:按相关度升序,7:按相关度降序
|
||||
group: number, // 0:不分组,1:按文档分组
|
||||
hasReplace: boolean,
|
||||
method: number // 0:文本,1:查询语法,2:SQL,3:正则表达式
|
||||
hPath: string
|
||||
idPath: string[]
|
||||
k: string
|
||||
r: string
|
||||
types: ISearchType,
|
||||
replaceTypes: {
|
||||
[key: string]: boolean;
|
||||
},
|
||||
}
|
||||
|
||||
interface ISearchType {
|
||||
audioBlock: boolean
|
||||
videoBlock: boolean
|
||||
iframeBlock: boolean
|
||||
widgetBlock: boolean
|
||||
mathBlock: boolean
|
||||
table: boolean
|
||||
blockquote: boolean
|
||||
superBlock: boolean
|
||||
paragraph: boolean
|
||||
document: boolean
|
||||
heading: boolean
|
||||
list: boolean
|
||||
listItem: boolean
|
||||
codeBlock: boolean
|
||||
htmlBlock: boolean
|
||||
embedBlock: boolean
|
||||
databaseBlock: boolean
|
||||
}
|
||||
|
||||
interface ITextOption {
|
||||
color?: string,
|
||||
type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue