思源笔记
0 篇文章
seehttps://ld246.com/article/1741777522652 参考这个:https://github.com/frostime/siyuan-plugin-kits/blob/667c2621ebc6fa11028e4e53e447afc5f00639ea/src/dailynote.ts#L72 不想自己实现也可以手动安装 npminstall@frostime/siyuan-p
seehttps://github.com/siyuan-note/siyuan/blob/2d2420794c89a86e9cbbddbd05fc5edf17c26a7b/app/src/window/openNewWindow.ts#L36
seehttps://github.com/siyuan-note/siyuan/issues/14310seehttps://ld246.com/article/1741527865453调用方式:getLute().Md2BlockDOM(xxxxx);封装函数如下:functiongetLute(){constsetLute=(options)=>{constlute=window.Lut
图表和数据库联动
seehttps://ld246.com/article/1722828811581 类似 https://ld246.com/article/1740558177875 类似 https://ld246.com/article/1741622377103 表格和数据库联动当数据库更新数据时,图表会自动更新数据哦。效果如下原理:通过 echarts 中的脚本,动态获取数据库块的数据,然后把数据再格式化为图表的数据
文档树和大纲显示不全自动换行
seehttps://ld246.com/article/1727826244841seehttps://ld246.com/article/1741790614241.b3-list-item{line-height:160%;}.b3-list-item__text{word-wrap:break-word;-webkit-line-clamp:inherit;word-break:inheri
//功能:建文档的时候自动设置为自定义的某个图标//seehttps://ld246.com/article/1726920727424(()=>{//默认图标//根据 iconType 参数不同而不同//当 iconType 参数是 keyword 时,该值是关键词,如:嘿嘿,获取方式参考 iconType 参数//当 iconType 参数是 unicode 时,该词是表情 unicode,如:1f4c4,获取方式请参考
seehttps://ld246.com/article/1729773295142 必须设置快捷键 ctrl+f才行(()=>{//等待元素渲染完成后执行 functionwhenElementExist(selector){returnnewPromise(resolve=>{constcheckForElement=()=>{letisExist=false;if(typeofselector==
表格和数据库联动
seehttps://ld246.com/article/1741622377103//!js//数据库块 idconstavBlockId='20250311063435-9066xpv';//表格块 idconsttableBlockId='20250311063452-p03kxva';//数据库变更后自动更新延迟,单位是毫秒,默认是 1 秒,0 则不自动更新//注意:更新该参数后需要刷新页面才能生效 c
可参考 URLScheme:思源笔记一款利用挂件 Web 服务重定向至笔记内链接的挂件(专治各种不支持 URLScheme 的软件)或 https://sspai.com/post/66896