添加utools.markdown支持

This commit is contained in:
fofolee 2025-04-19 09:12:08 +08:00
parent c1f86c20d2
commit ebde8999bf
2 changed files with 18 additions and 0 deletions

View File

@ -323,6 +323,19 @@ export const ubrowserOperationConfigs = {
},
],
},
markdown: {
value: "markdown",
label: "转markdown",
icon: "get_app",
config: [
{
label: "CSS 或 XPath 选择器,不传递则转换整个网页内容",
icon: "find_in_page",
component: "VariableInput",
width: 12,
},
],
},
setCookies: {
value: "setCookies",
label: "设置Cookie",

View File

@ -138,6 +138,11 @@ interface UBrowser {
* when 使
*/
end(): this;
/**
* markdown
* @param selector CSS XPath
*/
markdown(selector: string): this;
/**
*
*/