edu360-web-ui 1.0.126 → 1.0.128
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/main.css +1 -1
- package/dist/shizhanyun-web-ui.js +81 -3
- package/dist/shizhanyun-web-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
|
|
8
8
|
Outdated base version: https://github.com/primer/github-syntax-light
|
|
9
9
|
Current colors taken from GitHub's CSS
|
|
10
|
-
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-fb5ad3e3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-fb5ad3e3]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-fb5ad3e3]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-fb5ad3e3],.toolbar .flex-center .upload-demo[data-v-fb5ad3e3]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-fb5ad3e3]{color:#333}.toolbar .el-dropdown[data-v-fb5ad3e3]{height:22px}.is-active[data-v-fb5ad3e3]{color:#256cfb}.icon-gray[data-v-fb5ad3e3]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-fb5ad3e3]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-fb5ad3e3]{display:flex;align-items:center;gap:4px}.table-content[data-v-fb5ad3e3]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-fb5ad3e3]{margin:0!important}.el-dropdown-link.disabled[data-v-fb5ad3e3]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-cedcbcbc]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-cedcbcbc]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-cedcbcbc] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-cedcbcbc]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-cedcbcbc]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-cedcbcbc]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-cedcbcbc]{color:#999;font-size:12px}.editor-content-container[data-v-cedcbcbc]{flex:1;height:0;position:relative}.editor-content[data-v-cedcbcbc]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-cedcbcbc]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-cedcbcbc]{display:flex;align-items:center}.bubble-menu[data-v-cedcbcbc]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-cedcbcbc]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-cedcbcbc]{display:flex;flex-direction:column}.table-toolbar[data-v-cedcbcbc]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-cedcbcbc]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle{background-color:#adf;bottom:-2px;pointer-events:auto!important;position:absolute;right:-2px;top:0;width:4px;cursor:col-resize!important;z-index:10;opacity:.3;transition:opacity .2s}.tiptap-vue .editor-content table .column-resize-handle:hover{opacity:1;background-color:#4a9eff}.tiptap-vue .editor-content table td:hover>.column-resize-handle,.tiptap-vue .editor-content table th:hover>.column-resize-handle{opacity:.8}.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
|
|
10
|
+
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-fb5ad3e3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-fb5ad3e3]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-fb5ad3e3]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-fb5ad3e3],.toolbar .flex-center .upload-demo[data-v-fb5ad3e3]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-fb5ad3e3]{color:#333}.toolbar .el-dropdown[data-v-fb5ad3e3]{height:22px}.is-active[data-v-fb5ad3e3]{color:#256cfb}.icon-gray[data-v-fb5ad3e3]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-fb5ad3e3]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-fb5ad3e3]{display:flex;align-items:center;gap:4px}.table-content[data-v-fb5ad3e3]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-fb5ad3e3]{margin:0!important}.el-dropdown-link.disabled[data-v-fb5ad3e3]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-127fb976]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-127fb976]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-127fb976] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-127fb976]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-127fb976]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-127fb976]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-127fb976]{color:#999;font-size:12px}.editor-content-container[data-v-127fb976]{flex:1;height:0;position:relative}.editor-content[data-v-127fb976]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-127fb976]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-127fb976]{display:flex;align-items:center}.bubble-menu[data-v-127fb976]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-127fb976]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-127fb976]{display:flex;flex-direction:column}.table-toolbar[data-v-127fb976]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-127fb976]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle{background-color:#adf;bottom:-2px;pointer-events:auto!important;position:absolute;right:-2px;top:0;width:4px;cursor:col-resize!important;z-index:10;opacity:.3;transition:opacity .2s}.tiptap-vue .editor-content table .column-resize-handle:hover{opacity:1;background-color:#4a9eff}.tiptap-vue .editor-content table td:hover>.column-resize-handle,.tiptap-vue .editor-content table th:hover>.column-resize-handle{opacity:.8}.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
|
|
@@ -148659,6 +148659,16 @@ const CustomImage = index_default$6.extend({
|
|
|
148659
148659
|
const h2 = element.getAttribute("height") || element.style.height;
|
|
148660
148660
|
return h2 ? parseInt(h2) : null;
|
|
148661
148661
|
}
|
|
148662
|
+
},
|
|
148663
|
+
// 添加一个隐藏属性用于强制触发 NodeView 重新渲染
|
|
148664
|
+
viewMode: {
|
|
148665
|
+
default: null,
|
|
148666
|
+
renderHTML: () => {
|
|
148667
|
+
return {};
|
|
148668
|
+
},
|
|
148669
|
+
parseHTML: () => {
|
|
148670
|
+
return null;
|
|
148671
|
+
}
|
|
148662
148672
|
}
|
|
148663
148673
|
};
|
|
148664
148674
|
},
|
|
@@ -148676,9 +148686,24 @@ const CustomImage = index_default$6.extend({
|
|
|
148676
148686
|
})
|
|
148677
148687
|
];
|
|
148678
148688
|
},
|
|
148689
|
+
addCommands() {
|
|
148690
|
+
return {
|
|
148691
|
+
setImage: (options) => ({ commands }) => {
|
|
148692
|
+
const viewMode = this.options.isInline ? "inline" : "edit";
|
|
148693
|
+
return commands.insertContent({
|
|
148694
|
+
type: this.name,
|
|
148695
|
+
attrs: {
|
|
148696
|
+
...options,
|
|
148697
|
+
viewMode: options.viewMode || viewMode
|
|
148698
|
+
}
|
|
148699
|
+
});
|
|
148700
|
+
}
|
|
148701
|
+
};
|
|
148702
|
+
},
|
|
148679
148703
|
addNodeView() {
|
|
148680
148704
|
return ({ node, editor, getPos }) => {
|
|
148681
|
-
const
|
|
148705
|
+
const viewMode = node.attrs.viewMode;
|
|
148706
|
+
const isInlineMode = viewMode === "inline" || viewMode === null && this.options.isInline;
|
|
148682
148707
|
const wrapper = document.createElement("div");
|
|
148683
148708
|
wrapper.style.position = "relative";
|
|
148684
148709
|
wrapper.style.display = "inline-block";
|
|
@@ -148692,15 +148717,25 @@ const CustomImage = index_default$6.extend({
|
|
|
148692
148717
|
if (node.attrs.width) img.style.width = node.attrs.width + "px";
|
|
148693
148718
|
if (node.attrs.height) img.style.height = node.attrs.height + "px";
|
|
148694
148719
|
if (isInlineMode) {
|
|
148720
|
+
img.style.cursor = "pointer";
|
|
148721
|
+
img.title = img.title || "点击查看大图";
|
|
148722
|
+
img.addEventListener("click", (e) => {
|
|
148723
|
+
e.preventDefault();
|
|
148724
|
+
e.stopPropagation();
|
|
148725
|
+
window.dispatchEvent(new CustomEvent("tiptap-image-click", { detail: img.src }));
|
|
148726
|
+
});
|
|
148695
148727
|
wrapper.appendChild(img);
|
|
148696
148728
|
return {
|
|
148697
148729
|
dom: wrapper,
|
|
148698
148730
|
contentDOM: null,
|
|
148699
148731
|
update: (updatedNode) => {
|
|
148700
148732
|
if (updatedNode.type.name !== "image") return false;
|
|
148733
|
+
if (updatedNode.attrs.viewMode !== node.attrs.viewMode) {
|
|
148734
|
+
return false;
|
|
148735
|
+
}
|
|
148701
148736
|
img.src = updatedNode.attrs.src;
|
|
148702
148737
|
img.alt = updatedNode.attrs.alt || "";
|
|
148703
|
-
img.title = updatedNode.attrs.title || "";
|
|
148738
|
+
img.title = updatedNode.attrs.title || "点击查看大图";
|
|
148704
148739
|
if (updatedNode.attrs.width) img.style.width = updatedNode.attrs.width + "px";
|
|
148705
148740
|
else img.style.width = "";
|
|
148706
148741
|
if (updatedNode.attrs.height) img.style.height = updatedNode.attrs.height + "px";
|
|
@@ -148943,6 +148978,9 @@ const CustomImage = index_default$6.extend({
|
|
|
148943
148978
|
contentDOM: null,
|
|
148944
148979
|
update: (updatedNode) => {
|
|
148945
148980
|
if (updatedNode.type.name !== "image") return false;
|
|
148981
|
+
if (updatedNode.attrs.viewMode !== node.attrs.viewMode) {
|
|
148982
|
+
return false;
|
|
148983
|
+
}
|
|
148946
148984
|
img.src = updatedNode.attrs.src;
|
|
148947
148985
|
img.alt = updatedNode.attrs.alt || "";
|
|
148948
148986
|
img.title = updatedNode.attrs.title || "";
|
|
@@ -152855,6 +152893,28 @@ const _sfc_main = {
|
|
|
152855
152893
|
watch(() => props.isInline, (newIsInline) => {
|
|
152856
152894
|
if (editor) {
|
|
152857
152895
|
editor.setEditable(!newIsInline);
|
|
152896
|
+
const imageExtension = editor.extensionManager.extensions.find((ext) => ext.name === "image");
|
|
152897
|
+
if (imageExtension) {
|
|
152898
|
+
imageExtension.options.isInline = newIsInline;
|
|
152899
|
+
nextTick(() => {
|
|
152900
|
+
const { state } = editor;
|
|
152901
|
+
const { tr: tr2 } = state;
|
|
152902
|
+
let updated = false;
|
|
152903
|
+
state.doc.descendants((node, pos) => {
|
|
152904
|
+
if (node.type.name === "image") {
|
|
152905
|
+
const newViewMode = newIsInline ? "inline" : "edit";
|
|
152906
|
+
tr2.setNodeMarkup(pos, null, {
|
|
152907
|
+
...node.attrs,
|
|
152908
|
+
viewMode: newViewMode
|
|
152909
|
+
});
|
|
152910
|
+
updated = true;
|
|
152911
|
+
}
|
|
152912
|
+
});
|
|
152913
|
+
if (updated) {
|
|
152914
|
+
editor.view.dispatch(tr2);
|
|
152915
|
+
}
|
|
152916
|
+
});
|
|
152917
|
+
}
|
|
152858
152918
|
}
|
|
152859
152919
|
});
|
|
152860
152920
|
onMounted(() => {
|
|
@@ -152885,6 +152945,24 @@ const _sfc_main = {
|
|
|
152885
152945
|
if (index > -1) {
|
|
152886
152946
|
activeChunkLoaders.splice(index, 1);
|
|
152887
152947
|
}
|
|
152948
|
+
nextTick(() => {
|
|
152949
|
+
const { state } = editor;
|
|
152950
|
+
const { tr: tr2 } = state;
|
|
152951
|
+
let updated = false;
|
|
152952
|
+
const currentViewMode = props.isInline ? "inline" : "edit";
|
|
152953
|
+
state.doc.descendants((node, pos) => {
|
|
152954
|
+
if (node.type.name === "image" && node.attrs.viewMode !== currentViewMode) {
|
|
152955
|
+
tr2.setNodeMarkup(pos, null, {
|
|
152956
|
+
...node.attrs,
|
|
152957
|
+
viewMode: currentViewMode
|
|
152958
|
+
});
|
|
152959
|
+
updated = true;
|
|
152960
|
+
}
|
|
152961
|
+
});
|
|
152962
|
+
if (updated) {
|
|
152963
|
+
editor.view.dispatch(tr2);
|
|
152964
|
+
}
|
|
152965
|
+
});
|
|
152888
152966
|
}
|
|
152889
152967
|
});
|
|
152890
152968
|
if (loader) {
|
|
@@ -153112,7 +153190,7 @@ const _sfc_main = {
|
|
|
153112
153190
|
};
|
|
153113
153191
|
}
|
|
153114
153192
|
};
|
|
153115
|
-
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
153193
|
+
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-127fb976"]]);
|
|
153116
153194
|
if (!Array.prototype.findLast) {
|
|
153117
153195
|
Array.prototype.findLast = function(predicate, thisArg) {
|
|
153118
153196
|
for (let i = this.length - 1; i >= 0; i--) {
|