deepsky 1.122.3 → 1.122.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +15 -16
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4128,7 +4128,7 @@ img[data-v-9faeeffa] {
|
|
|
4128
4128
|
|
|
4129
4129
|
|
|
4130
4130
|
.ui-sidebar {
|
|
4131
|
-
&[data-v-
|
|
4131
|
+
&[data-v-560f1579] {
|
|
4132
4132
|
display: flex;
|
|
4133
4133
|
flex-flow: row nowrap;
|
|
4134
4134
|
/* 不设 height,依赖父级 flex stretch 拉伸 */
|
|
@@ -4137,7 +4137,7 @@ img[data-v-9faeeffa] {
|
|
|
4137
4137
|
|
|
4138
4138
|
/* ————— 激活图标:不用 ::before(会覆盖 iconfont 字形),改用 ::after 做指示条 ————— */
|
|
4139
4139
|
}
|
|
4140
|
-
.sidebar-icons[data-v-
|
|
4140
|
+
.sidebar-icons[data-v-560f1579] {
|
|
4141
4141
|
box-sizing: border-box;
|
|
4142
4142
|
padding: 10px 6px;
|
|
4143
4143
|
display: flex;
|
|
@@ -4150,14 +4150,14 @@ img[data-v-9faeeffa] {
|
|
|
4150
4150
|
z-index: calc(var(--ui-z-index) + 1);
|
|
4151
4151
|
flex-shrink: 0;
|
|
4152
4152
|
}
|
|
4153
|
-
.active-sideitem[data-v-
|
|
4153
|
+
.active-sideitem[data-v-560f1579] {
|
|
4154
4154
|
color: var(--sidebar-icon-active-color);
|
|
4155
4155
|
background: var(--sidebar-icon-active-gradient);
|
|
4156
4156
|
text-shadow: var(--sidebar-icon-active-shadow);
|
|
4157
4157
|
position: relative;
|
|
4158
4158
|
}
|
|
4159
4159
|
.iconfont {
|
|
4160
|
-
&[data-v-
|
|
4160
|
+
&[data-v-560f1579] {
|
|
4161
4161
|
font-size: 22px;
|
|
4162
4162
|
cursor: pointer;
|
|
4163
4163
|
background: var(--sidebar-icon-bg);
|
|
@@ -4168,7 +4168,7 @@ img[data-v-9faeeffa] {
|
|
|
4168
4168
|
box-shadow var(--transition-base, 0.24s), transform var(--transition-spring, 0.36s cubic-bezier(0.34, 1.56, 0.64, 1));
|
|
4169
4169
|
will-change: transform;
|
|
4170
4170
|
}
|
|
4171
|
-
&[data-v-
|
|
4171
|
+
&[data-v-560f1579]:hover {
|
|
4172
4172
|
background: var(--sidebar-icon-hover-bg);
|
|
4173
4173
|
color: var(--sidebar-icon-hover-color);
|
|
4174
4174
|
transform: scale(1.15);
|
|
@@ -4179,7 +4179,7 @@ img[data-v-9faeeffa] {
|
|
|
4179
4179
|
|
|
4180
4180
|
/* ————— 面板胶囊 ————— */
|
|
4181
4181
|
.sidebar-panel {
|
|
4182
|
-
&[data-v-
|
|
4182
|
+
&[data-v-560f1579] {
|
|
4183
4183
|
box-sizing: border-box;
|
|
4184
4184
|
position: relative;
|
|
4185
4185
|
/* 与图标胶囊上下对齐,左侧无间距贴近图标 */
|
|
@@ -4189,7 +4189,7 @@ img[data-v-9faeeffa] {
|
|
|
4189
4189
|
max-width: 1200px;
|
|
4190
4190
|
}
|
|
4191
4191
|
.dragger {
|
|
4192
|
-
&[data-v-
|
|
4192
|
+
&[data-v-560f1579] {
|
|
4193
4193
|
position: absolute;
|
|
4194
4194
|
right: 0px;
|
|
4195
4195
|
top: 0px;
|
|
@@ -4203,29 +4203,28 @@ img[data-v-9faeeffa] {
|
|
|
4203
4203
|
opacity: 0.45;
|
|
4204
4204
|
transition: height var(--transition-base, 0.24s), opacity var(--transition-fast, 0.15s);
|
|
4205
4205
|
}
|
|
4206
|
-
&[data-v-
|
|
4206
|
+
&[data-v-560f1579]:hover {
|
|
4207
4207
|
height: 140px;
|
|
4208
4208
|
opacity: 1;
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
4211
4211
|
.sideitem-component {
|
|
4212
|
-
&[data-v-
|
|
4212
|
+
&[data-v-560f1579] {
|
|
4213
4213
|
overflow: hidden;
|
|
4214
4214
|
height: 100%;
|
|
4215
4215
|
width: 100%;
|
|
4216
|
-
background: var(--sidebar-panel-bg);
|
|
4217
4216
|
backdrop-filter: var(--sidebar-panel-backdrop, blur(14px) saturate(140%));
|
|
4218
4217
|
-webkit-backdrop-filter: var(--sidebar-panel-backdrop, blur(14px) saturate(140%));
|
|
4219
4218
|
}
|
|
4220
|
-
&[data-v-
|
|
4219
|
+
&[data-v-560f1579] > *::-webkit-scrollbar {
|
|
4221
4220
|
display: none;
|
|
4222
4221
|
}
|
|
4223
|
-
& > div[data-v-
|
|
4222
|
+
& > div[data-v-560f1579] {
|
|
4224
4223
|
height: 100%;
|
|
4225
4224
|
overflow: scroll;
|
|
4226
4225
|
padding-right: 4px;
|
|
4227
4226
|
}
|
|
4228
|
-
&[data-v-
|
|
4227
|
+
&[data-v-560f1579] .sidebar-panel-toolbox {
|
|
4229
4228
|
position: sticky;
|
|
4230
4229
|
top: 0px;
|
|
4231
4230
|
background: var(--sidebar-panel-toolbox-bg);
|
|
@@ -5877,7 +5876,7 @@ to {
|
|
|
5877
5876
|
|
|
5878
5877
|
/* -------- 输入组件 —— 跟随主题 accent 色 -------- */
|
|
5879
5878
|
--ui-base-input-cover-bg: var(--selection-bg, #08e7ff);
|
|
5880
|
-
--ui-base-input-bg:
|
|
5879
|
+
--ui-base-input-bg: transparent;
|
|
5881
5880
|
--ui-base-input-text: var(--menu-item-color, #333333);
|
|
5882
5881
|
--ui-base-input-border-color: color-mix(in srgb, var(--selection-bg, #dddddd) 18%, #dddddd);
|
|
5883
5882
|
--ui-base-input-border-focus: var(--selection-bg, #08e7ff);
|
|
@@ -5921,7 +5920,7 @@ to {
|
|
|
5921
5920
|
--dialog-header-color: var(--menu-title-icon-color, #1c4448);
|
|
5922
5921
|
|
|
5923
5922
|
/* ------------------------------------------------float--------------------------------------------------- */
|
|
5924
|
-
--float-zindex:6;
|
|
5923
|
+
--float-zindex: 6;
|
|
5925
5924
|
--float-shadow: 0 6px 24px color-mix(in srgb, var(--selection-bg, #0096c8) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--selection-bg, #50c8dc) 20%, transparent);
|
|
5926
5925
|
--float-color: var(--color, black);
|
|
5927
5926
|
--float-rt-bg: color-mix(in srgb, var(--page-bg, #f3feff) 96%, transparent);
|
|
@@ -6164,7 +6163,7 @@ to {
|
|
|
6164
6163
|
--ui-theme-item-odd-bg: transparent;
|
|
6165
6164
|
--ui-theme-title-bg: color-mix(in srgb, var(--selection-bg, #07ffd5) 50%, transparent);
|
|
6166
6165
|
--ui-theme-title-color: var(--menu-item-color, #1f3a3a);
|
|
6167
|
-
|
|
6166
|
+
|
|
6168
6167
|
--ui-theme-list-bg: color-mix(in srgb, var(--selection-bg, #9affee) 22%, transparent);
|
|
6169
6168
|
--ui-theme-list-shadow: 0px 4px 12px color-mix(in srgb, var(--selection-bg, #35b6cb) 16%, transparent);
|
|
6170
6169
|
--ui-theme-item-border: 1px solid color-mix(in srgb, var(--selection-bg, #86d7d9) 50%, transparent);
|
package/dist/index.js
CHANGED
|
@@ -5611,7 +5611,7 @@ function d(e){const t=s.indexOf(e.tool_name);t>=0?s.splice(t,1):s.push(e.tool_na
|
|
|
5611
5611
|
var GP=n(3709);// ./node_modules/.pnpm/swc-loader@0.2.6_@swc+core@1.13.5_webpack@5.102.1/node_modules/swc-loader/src/index.js!./node_modules/.pnpm/vue-loader@17.4.2_@vue+comp_31004bdc4f0d57d0bbec135754da3886/node_modules/vue-loader/dist/index.js??ruleSet[1].rules[9].use[0]!./src/ui-sidebar/ui-sidebar.vue?vue&type=script&setup=true&lang=ts
|
|
5612
5612
|
const qP={key:0,class:"ui-sidebar"},UP={class:"sidebar-icons"},QP={class:"sideitem-component"},YP=(0,l/* defineComponent */.pM)({__name:"ui-sidebar",props:{editor:{}},setup(e){const{sidebar:t}=e.editor,{config:n,root:o}=t;let r,s=!1,a=0;(0,l/* onMounted */.sV)(()=>{document.documentElement.addEventListener("pointermove",u),document.documentElement.addEventListener("pointerup",p)});const c=(0,l/* computed */.EW)(()=>({width:n.data.sidebar_panel_width+"px"}));function d(e){const t=GP/* StatusSidebar */.p.active;GP/* StatusSidebar */.p.active=e,GP/* StatusSidebar */.p.open=t!==e||!GP/* StatusSidebar */.p.open}
|
|
5613
5613
|
// desc : 鼠标移动时改变面板宽度
|
|
5614
|
-
function u(e){if(!s||!r)return;const{sidebar_min_width:t,sidebar_max_width:o}=n,i=e.clientX-r.x;let l=a+i;l<t&&(l=t),l>o&&(l=o),n.data.sidebar_panel_width=l}function p(e){s=!1}function h(e){return e===GP/* StatusSidebar */.p.active?["active-sideitem"]:[]}return(e,n)=>(0/* StatusEditor */,i/* unref */.R1)(LB.QI).fold_sidebar?(0,l/* createCommentVNode */.Q3)("v-if",!0):((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",qP,[(0,l/* createElementVNode */.Lk)("div",UP,[(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-bookmark",h("catalogue")]),title:"书签",onClick:n[0]||(n[0]=e=>d("catalogue"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Search",h("search")]),title:"搜索",onClick:n[1]||(n[1]=e=>d("search"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-theme",h("theme")]),title:"主题",onClick:n[2]||(n[2]=e=>d("theme"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cube",h("presets")]),title:"预设",onClick:n[3]||(n[3]=e=>d("presets"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cursor3",h("ai")]),title:"AI服务",onClick:n[4]||(n[4]=e=>d("ai"))},null,2/* CLASS */),(0,l/* createCommentVNode */.Q3)(' <div class="iconfont icon-keyboard-box-fill" :class="get_class(\'hotkey\')" title="快捷键" @click="open_side(\'hotkey\')"></div> '),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Items",h("toolbar")]),title:"工具栏配置",onClick:n[5]||(n[5]=e=>d("toolbar"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-setting",h("config")]),title:"设置",onClick:n[6]||(n[6]=e=>d("config"))},null,2/* CLASS */)]),(0/* StatusSidebar */,i/* unref */.R1)(GP.p).open?((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:0,class:"sidebar-panel",style:(0,m/* normalizeStyle */.Tr)(c.value)},[(0,l/* createElementVNode */.Lk)("div",QP,["catalogue"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(vB,{key:0,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"search"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(TB,{key:1,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"theme"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(qB,{key:2,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"presets"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(rP,{key:3,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"ai"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* default */,l/* createBlock */.Wv)(iP.A,{key:4,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"toolbar"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,{key:5},[(0,l/* createCommentVNode */.Q3)(' <UIHotkeys v-else-if="StatusSidebar.active === \'hotkey\'" :editor="markRaw(editor)" /> '),(0,l/* createVNode */.bF)(gP,{editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])],2112/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)):"config"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(XP,{key:6,editor:e.editor},null,8/* PROPS */,["editor"])):(0,l/* createCommentVNode */.Q3)("v-if",!0)]),(0,l/* createElementVNode */.Lk)("div",{class:"dragger",onPointerdown:n[7]||(n[7]=e=>function(e,t){s=!0,r={x:e.clientX,y:e.clientY},a=t.config.data.sidebar_panel_width}(e,(0,i/* unref */.R1)(t)))},null,32/* NEED_HYDRATION */)],4/* STYLE */)):(0,l/* createCommentVNode */.Q3)("v-if",!0)]))}}),ZP=(0,J$/* default */.A)(YP,[["__scopeId","data-v-
|
|
5614
|
+
function u(e){if(!s||!r)return;const{sidebar_min_width:t,sidebar_max_width:o}=n,i=e.clientX-r.x;let l=a+i;l<t&&(l=t),l>o&&(l=o),n.data.sidebar_panel_width=l}function p(e){s=!1}function h(e){return e===GP/* StatusSidebar */.p.active?["active-sideitem"]:[]}return(e,n)=>(0/* StatusEditor */,i/* unref */.R1)(LB.QI).fold_sidebar?(0,l/* createCommentVNode */.Q3)("v-if",!0):((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",qP,[(0,l/* createElementVNode */.Lk)("div",UP,[(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-bookmark",h("catalogue")]),title:"书签",onClick:n[0]||(n[0]=e=>d("catalogue"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Search",h("search")]),title:"搜索",onClick:n[1]||(n[1]=e=>d("search"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-theme",h("theme")]),title:"主题",onClick:n[2]||(n[2]=e=>d("theme"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cube",h("presets")]),title:"预设",onClick:n[3]||(n[3]=e=>d("presets"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-cursor3",h("ai")]),title:"AI服务",onClick:n[4]||(n[4]=e=>d("ai"))},null,2/* CLASS */),(0,l/* createCommentVNode */.Q3)(' <div class="iconfont icon-keyboard-box-fill" :class="get_class(\'hotkey\')" title="快捷键" @click="open_side(\'hotkey\')"></div> '),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-Items",h("toolbar")]),title:"工具栏配置",onClick:n[5]||(n[5]=e=>d("toolbar"))},null,2/* CLASS */),(0,l/* createElementVNode */.Lk)("div",{class:(0,m/* normalizeClass */.C4)(["iconfont icon-setting",h("config")]),title:"设置",onClick:n[6]||(n[6]=e=>d("config"))},null,2/* CLASS */)]),(0/* StatusSidebar */,i/* unref */.R1)(GP.p).open?((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:0,class:"sidebar-panel",style:(0,m/* normalizeStyle */.Tr)(c.value)},[(0,l/* createElementVNode */.Lk)("div",QP,["catalogue"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(vB,{key:0,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"search"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(TB,{key:1,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"theme"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(qB,{key:2,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"presets"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(rP,{key:3,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"ai"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* default */,l/* createBlock */.Wv)(iP.A,{key:4,editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])):"toolbar"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,{key:5},[(0,l/* createCommentVNode */.Q3)(' <UIHotkeys v-else-if="StatusSidebar.active === \'hotkey\'" :editor="markRaw(editor)" /> '),(0,l/* createVNode */.bF)(gP,{editor:(0,i/* markRaw */.IG)(e.editor)},null,8/* PROPS */,["editor"])],2112/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */)):"config"===(0/* StatusSidebar */,i/* unref */.R1)(GP.p).active?((0,l/* openBlock */.uX)(),(0,l/* createBlock */.Wv)(XP,{key:6,editor:e.editor},null,8/* PROPS */,["editor"])):(0,l/* createCommentVNode */.Q3)("v-if",!0)]),(0,l/* createElementVNode */.Lk)("div",{class:"dragger",onPointerdown:n[7]||(n[7]=e=>function(e,t){s=!0,r={x:e.clientX,y:e.clientY},a=t.config.data.sidebar_panel_width}(e,(0,i/* unref */.R1)(t)))},null,32/* NEED_HYDRATION */)],4/* STYLE */)):(0,l/* createCommentVNode */.Q3)("v-if",!0)]))}}),ZP=(0,J$/* default */.A)(YP,[["__scopeId","data-v-560f1579"]])
|
|
5615
5615
|
/* harmony default export */,JP={class:"note-statusbar"},eF={class:"statusbar-shell"},tF={class:"statusbar-items"},nF=["title","data-id","onClick"],oF={class:"statusbar-item-text"},rF={class:"statusbar-docid-value"},iF=(0,l/* defineComponent */.pM)({__name:"ui-statusbar",props:{editor:{}},setup(e){const{root:t,statusbar:n,tips:o}=e.editor,{stats:r}=t;function s(){const e=new Blob([t.id],{type:"text/plain"}),n=new ClipboardItem({[e.type]:e});t.clipboard.set_clipboard_data(n).then(e=>{e?o.tip_success("成功复制到粘贴板"):o.tip_error("复制到粘贴板失败")})}return(e,o)=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",JP,[(0,l/* createElementVNode */.Lk)("div",eF,[(0,l/* createElementVNode */.Lk)("div",tF,[((0,l/* openBlock */.uX)(!0),(0/* Fragment */,l/* createElementBlock */.CE)(l.FK,null,(0,l/* renderList */.pI)((0,i/* unref */.R1)(n).items,t=>((0,l/* openBlock */.uX)(),(0,l/* createElementBlock */.CE)("div",{key:t.id,class:(0,m/* normalizeClass */.C4)(["statusbar-item",t.class.join(" ")]),title:t.tooltip,"data-id":t.id,onClick:n=>t.click(n,e.editor)},[(0,l/* createElementVNode */.Lk)("span",oF,(0,m/* toDisplayString */.v_)(t.text),1/* TEXT */)],10/* CLASS, PROPS */,nF))),128/* KEYED_FRAGMENT */))]),(0,l/* createElementVNode */.Lk)("div",{class:"statusbar-docid",title:"文档id,点击复制",onClick:s},[o[0]||(o[0]=(0,l/* createElementVNode */.Lk)("span",{class:"statusbar-docid-label"},"note",-1/* CACHED */)),(0,l/* createElementVNode */.Lk)("span",rF,(0,m/* toDisplayString */.v_)((0,i/* unref */.R1)(t).id),1/* TEXT */)])])]))}}),sF=(0,J$/* default */.A)(iF,[["__scopeId","data-v-1ab5f5dd"]])
|
|
5616
5616
|
/* harmony default export */,aF={class:"toolbar-content"},lF={key:0,class:"tool-group"},cF=["onPointerdown"],dF={class:"toolbar-foot"},uF=["onPointerdown"],pF=(0,l/* defineComponent */.pM)({__name:"ui-toolbar",props:{editor:{}},setup(e){const t=e.editor.toolbar,{config:n,root:r}=t,s=n.data.toolbar_whitelist;let a,c=(0,i/* shallowReactive */.Gc)([]);const d=(0,l/* computed */.EW)(()=>{const e=nB/* StatusEditor */.Q.fold_toolbar,t=nB/* StatusEditor */.Q.mode===o._NoteMode.read;return{display:e||t?"none":"flex"}});
|
|
5617
5617
|
// desc : 滚动工具栏
|
|
@@ -5727,7 +5727,7 @@ async render(e){if(this._editor_dom=e,this.root instanceof o.CubeDoc){const t=(0
|
|
|
5727
5727
|
// desc : 导出PDF专用页面
|
|
5728
5728
|
render_pdf(e){
|
|
5729
5729
|
// 提前展开所有的折叠块
|
|
5730
|
-
const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s/* createApp */.Ef)(nK,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return MK.get_editor_version()}static get_editor_version(){return{version:"1.122.
|
|
5730
|
+
const t=this.root.cubes.get_types_cube(o._NoteCubeTypes.box_folder);for(let e of this.root.children)e.attrs.fold=!1;for(let e of t.values())e.attrs.fold=!1;(0,s/* createApp */.Ef)(nK,{editor:this}).mount(e),Promise.resolve().then(()=>{this.event.emit_render_end()})}get_editor_version(){return MK.get_editor_version()}static get_editor_version(){return{version:"1.122.5",time_publish:1773491146041}}static get meta(){return{type:r/* _UIPart */.d2.editor,version:1}}}},
|
|
5731
5731
|
/***/6941:
|
|
5732
5732
|
/***/function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var s=e.name?e:e.$locale(),a=r(s[t]),l=r(s[n]),c=a||l.map(function(e){return e.slice(0,o)});if(!i)return c;var d=s.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},s=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}}();
|
|
5733
5733
|
/***/},
|