edu360-web-ui 1.0.111 → 1.0.112
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 +94 -22
- package/dist/shizhanyun-web-ui.umd.cjs +3 -3
- 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-df6b62d1]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-df6b62d1]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-df6b62d1]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-df6b62d1]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-df6b62d1]{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-df6b62d1]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-df6b62d1]{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-df6b62d1]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-df6b62d1]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-df6b62d1]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-df6b62d1]{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-df6b62d1]{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-df6b62d1]{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-df6b62d1]{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-df6b62d1]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-df6b62d1]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-df6b62d1]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-df6b62d1]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-df6b62d1]{color:#999!important}.block-menu-item[data-v-df6b62d1]{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-df6b62d1]{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-df6b62d1]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-df6b62d1]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-be715d1d]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-be715d1d]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-be715d1d]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-be715d1d]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-146ec70a]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-146ec70a]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-146ec70a]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-146ec70a],.toolbar .flex-center .upload-demo[data-v-146ec70a]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-146ec70a]{color:#333}.toolbar .el-dropdown[data-v-146ec70a]{height:22px}.is-active[data-v-146ec70a]{color:#256cfb}.icon-gray[data-v-146ec70a]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-146ec70a]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-146ec70a]{display:flex;align-items:center;gap:4px}.table-content[data-v-146ec70a]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-146ec70a]{margin:0!important}.el-dropdown-link.disabled[data-v-146ec70a]{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-1f02baea]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-1f02baea]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-1f02baea]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-1f02baea]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-1f02baea]{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-1f02baea]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-1f02baea]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-1f02baea]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-1f02baea]{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-1f02baea]{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-1f02baea]{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-1f02baea]{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-1f02baea]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-1f02baea]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-61adf0aa]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-61adf0aa]{position:relative}.table-side-icon[data-v-61adf0aa]{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-61adf0aa]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-61adf0aa]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-61adf0aa]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-61adf0aa]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-61adf0aa]{color:#f56c6c}.merge-control-panel[data-v-61adf0aa]{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-61adf0aa]{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-61adf0aa]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-61adf0aa]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-61adf0aa]{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-61adf0aa]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]: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-0c8620c3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-0c8620c3]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-0c8620c3] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-0c8620c3]{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-0c8620c3]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-0c8620c3]{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-0c8620c3]{color:#999;font-size:12px}.editor-content-container[data-v-0c8620c3]{flex:1;height:0;position:relative}.editor-content[data-v-0c8620c3]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-0c8620c3]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-0c8620c3]{display:flex;align-items:center}.bubble-menu[data-v-0c8620c3]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-0c8620c3]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-0c8620c3]{display:flex;flex-direction:column}.table-toolbar[data-v-0c8620c3]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-0c8620c3]{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,.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}@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-d72f0e9a]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-d72f0e9a]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-d72f0e9a]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-d72f0e9a]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-d72f0e9a]{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-d72f0e9a]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-d72f0e9a]{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-d72f0e9a]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-d72f0e9a]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-d72f0e9a]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-d72f0e9a]{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-d72f0e9a]{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-d72f0e9a]{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-d72f0e9a]{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-d72f0e9a]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-d72f0e9a]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-d72f0e9a]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-d72f0e9a]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-d72f0e9a]{color:#999!important}.block-menu-item[data-v-d72f0e9a]{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-d72f0e9a]{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-d72f0e9a]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-d72f0e9a]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-be715d1d]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-be715d1d]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-be715d1d]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-be715d1d]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-8a153055]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-8a153055]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-8a153055]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-8a153055],.toolbar .flex-center .upload-demo[data-v-8a153055]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-8a153055]{color:#333}.toolbar .el-dropdown[data-v-8a153055]{height:22px}.is-active[data-v-8a153055]{color:#256cfb}.icon-gray[data-v-8a153055]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-8a153055]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-8a153055]{display:flex;align-items:center;gap:4px}.table-content[data-v-8a153055]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-8a153055]{margin:0!important}.el-dropdown-link.disabled[data-v-8a153055]{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-1f02baea]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-1f02baea]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-1f02baea]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-1f02baea]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-1f02baea]{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-1f02baea]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-1f02baea]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-1f02baea]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-1f02baea]{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-1f02baea]{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-1f02baea]{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-1f02baea]{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-1f02baea]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-1f02baea]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-61adf0aa]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-61adf0aa]{position:relative}.table-side-icon[data-v-61adf0aa]{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-61adf0aa]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-61adf0aa]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-61adf0aa]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-61adf0aa]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-61adf0aa]{color:#f56c6c}.merge-control-panel[data-v-61adf0aa]{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-61adf0aa]{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-61adf0aa]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-61adf0aa]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-61adf0aa]{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-61adf0aa]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]: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-c80a7e6c]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-c80a7e6c]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-c80a7e6c] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-c80a7e6c]{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-c80a7e6c]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-c80a7e6c]{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-c80a7e6c]{color:#999;font-size:12px}.editor-content-container[data-v-c80a7e6c]{flex:1;height:0;position:relative}.editor-content[data-v-c80a7e6c]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-c80a7e6c]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-c80a7e6c]{display:flex;align-items:center}.bubble-menu[data-v-c80a7e6c]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-c80a7e6c]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-c80a7e6c]{display:flex;flex-direction:column}.table-toolbar[data-v-c80a7e6c]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-c80a7e6c]{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,.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:""}
|
|
@@ -137879,7 +137879,7 @@ const _hoisted_6$3 = {
|
|
|
137879
137879
|
const _hoisted_7$3 = ["onClick"];
|
|
137880
137880
|
const _hoisted_8$3 = ["src"];
|
|
137881
137881
|
const _hoisted_9$3 = { class: "result-image-checkbox" };
|
|
137882
|
-
const _hoisted_10$
|
|
137882
|
+
const _hoisted_10$1 = { class: "result-text" };
|
|
137883
137883
|
const _hoisted_11 = { class: "result-actions" };
|
|
137884
137884
|
const _sfc_main$b = {
|
|
137885
137885
|
__name: "AiComponent",
|
|
@@ -138295,7 +138295,7 @@ const _sfc_main$b = {
|
|
|
138295
138295
|
], 8, _hoisted_7$3);
|
|
138296
138296
|
}), 128))
|
|
138297
138297
|
])) : createCommentVNode("", true),
|
|
138298
|
-
createElementVNode("div", _hoisted_10$
|
|
138298
|
+
createElementVNode("div", _hoisted_10$1, [
|
|
138299
138299
|
unref(previewEditor) ? (openBlock(), createBlock(unref(EditorContent), {
|
|
138300
138300
|
key: 0,
|
|
138301
138301
|
editor: unref(previewEditor)
|
|
@@ -147596,11 +147596,10 @@ const _hoisted_2$4 = { class: "floating-menu-top-btns" };
|
|
|
147596
147596
|
const _hoisted_3$4 = { class: "floating-menu-common" };
|
|
147597
147597
|
const _hoisted_4$2 = { class: "floating-menu-common-list" };
|
|
147598
147598
|
const _hoisted_5$2 = { class: "block-menu-item-icon" };
|
|
147599
|
-
const _hoisted_6$2 = { class: "block-menu-item" };
|
|
147599
|
+
const _hoisted_6$2 = { class: "block-menu-item-icon" };
|
|
147600
147600
|
const _hoisted_7$2 = { class: "block-menu-item-icon" };
|
|
147601
147601
|
const _hoisted_8$2 = { class: "block-menu-item-icon" };
|
|
147602
147602
|
const _hoisted_9$2 = { class: "block-menu-item-icon" };
|
|
147603
|
-
const _hoisted_10$1 = { class: "block-menu-item-icon" };
|
|
147604
147603
|
const _sfc_main$6 = {
|
|
147605
147604
|
__name: "BlockMenu",
|
|
147606
147605
|
props: {
|
|
@@ -148064,18 +148063,21 @@ const _sfc_main$6 = {
|
|
|
148064
148063
|
},
|
|
148065
148064
|
accept: ".jpg,.png,.jpeg,.gif",
|
|
148066
148065
|
"before-upload": handleImageUpload,
|
|
148067
|
-
"on-success": uploadFileSuccess
|
|
148066
|
+
"on-success": uploadFileSuccess,
|
|
148067
|
+
disabled: isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList")
|
|
148068
148068
|
}, {
|
|
148069
148069
|
default: withCtx(() => [
|
|
148070
|
-
createElementVNode("div",
|
|
148071
|
-
|
|
148070
|
+
createElementVNode("div", {
|
|
148071
|
+
class: normalizeClass(["block-menu-item", { "icon-gray": isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList") }])
|
|
148072
|
+
}, [
|
|
148073
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
148072
148074
|
createVNode(unref(Icon), { icon: "material-symbols:imagesmode-outline-sharp" })
|
|
148073
148075
|
]),
|
|
148074
148076
|
_cache[25] || (_cache[25] = createElementVNode("div", null, "上传本地图片", -1))
|
|
148075
|
-
])
|
|
148077
|
+
], 2)
|
|
148076
148078
|
]),
|
|
148077
148079
|
_: 1
|
|
148078
|
-
}, 8, ["action", "headers"]), [
|
|
148080
|
+
}, 8, ["action", "headers", "disabled"]), [
|
|
148079
148081
|
[vShow, unref(isShowMenu)("image", __props.showMenu)]
|
|
148080
148082
|
]),
|
|
148081
148083
|
withDirectives(createElementVNode("div", null, [
|
|
@@ -148091,7 +148093,7 @@ const _sfc_main$6 = {
|
|
|
148091
148093
|
class: normalizeClass(["block-menu-item", { "icon-gray": isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList") }]),
|
|
148092
148094
|
ref: "tableRef"
|
|
148093
148095
|
}, [
|
|
148094
|
-
createElementVNode("div",
|
|
148096
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
148095
148097
|
createVNode(unref(Icon), {
|
|
148096
148098
|
icon: "material-symbols:table-outline-sharp",
|
|
148097
148099
|
width: "20"
|
|
@@ -148129,7 +148131,7 @@ const _sfc_main$6 = {
|
|
|
148129
148131
|
createElementVNode("div", {
|
|
148130
148132
|
class: normalizeClass(["block-menu-item", { "icon-gray": isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList") }])
|
|
148131
148133
|
}, [
|
|
148132
|
-
createElementVNode("div",
|
|
148134
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
148133
148135
|
createVNode(unref(Icon), { icon: "tabler:file-word" })
|
|
148134
148136
|
]),
|
|
148135
148137
|
_cache[27] || (_cache[27] = createElementVNode("div", null, "上传word文件", -1))
|
|
@@ -148158,7 +148160,7 @@ const _sfc_main$6 = {
|
|
|
148158
148160
|
createElementVNode("div", {
|
|
148159
148161
|
class: normalizeClass(["block-menu-item", { "icon-gray": isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList") }])
|
|
148160
148162
|
}, [
|
|
148161
|
-
createElementVNode("div",
|
|
148163
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
148162
148164
|
createVNode(JupyterSvg, {
|
|
148163
148165
|
width: 20,
|
|
148164
148166
|
height: 20,
|
|
@@ -148184,7 +148186,7 @@ const _sfc_main$6 = {
|
|
|
148184
148186
|
};
|
|
148185
148187
|
}
|
|
148186
148188
|
};
|
|
148187
|
-
const BlockMenu = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
148189
|
+
const BlockMenu = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d72f0e9a"]]);
|
|
148188
148190
|
function BlockMenuPlugin(editor, options) {
|
|
148189
148191
|
const PLUGIN_KEY = new PluginKey("blockMenu");
|
|
148190
148192
|
let wrapperEl = options.wrapperEl || null;
|
|
@@ -148854,9 +148856,7 @@ const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2
|
|
|
148854
148856
|
]
|
|
148855
148857
|
}),
|
|
148856
148858
|
EnhancedOrderedList,
|
|
148857
|
-
|
|
148858
|
-
index_default$3,
|
|
148859
|
-
index_default$4,
|
|
148859
|
+
// TableRow, TableHeader, TableCell 已在 TableKit.extensions 中配置,移除重复
|
|
148860
148860
|
CodeBlockCustom.configure({
|
|
148861
148861
|
isInline: isInline2
|
|
148862
148862
|
}),
|
|
@@ -148938,6 +148938,20 @@ const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2
|
|
|
148938
148938
|
const items = Array.from(((_a3 = event.clipboardData) == null ? void 0 : _a3.items) || []);
|
|
148939
148939
|
const imageItem = items.find((item) => item.type.startsWith("image/"));
|
|
148940
148940
|
if (imageItem) {
|
|
148941
|
+
const { selection } = view.state;
|
|
148942
|
+
const { $from } = selection;
|
|
148943
|
+
let inTableCell = false;
|
|
148944
|
+
for (let i = $from.depth; i > 0; i--) {
|
|
148945
|
+
if ($from.node(i).type.name === "tableCell" || $from.node(i).type.name === "tableHeader") {
|
|
148946
|
+
inTableCell = true;
|
|
148947
|
+
break;
|
|
148948
|
+
}
|
|
148949
|
+
}
|
|
148950
|
+
if (inTableCell) {
|
|
148951
|
+
event.preventDefault();
|
|
148952
|
+
ElMessage.warning("表格中不支持粘贴图片");
|
|
148953
|
+
return true;
|
|
148954
|
+
}
|
|
148941
148955
|
event.preventDefault();
|
|
148942
148956
|
const file = imageItem.getAsFile();
|
|
148943
148957
|
if (!file) {
|
|
@@ -149111,6 +149125,62 @@ const createEditor = ({ content = "", info = {}, limit = 50, isInline: isInline2
|
|
|
149111
149125
|
return true;
|
|
149112
149126
|
}
|
|
149113
149127
|
return false;
|
|
149128
|
+
},
|
|
149129
|
+
// 全局粘贴转换,过滤表格中的图片、表格、代码块
|
|
149130
|
+
transformPasted: (slice2, view) => {
|
|
149131
|
+
const { selection } = view.state;
|
|
149132
|
+
const { $from } = selection;
|
|
149133
|
+
let inTableCell = false;
|
|
149134
|
+
for (let i = $from.depth; i > 0; i--) {
|
|
149135
|
+
if ($from.node(i).type.name === "tableCell" || $from.node(i).type.name === "tableHeader") {
|
|
149136
|
+
inTableCell = true;
|
|
149137
|
+
break;
|
|
149138
|
+
}
|
|
149139
|
+
}
|
|
149140
|
+
if (!inTableCell) {
|
|
149141
|
+
return slice2;
|
|
149142
|
+
}
|
|
149143
|
+
let hasFilteredContent = false;
|
|
149144
|
+
const filteredTypes = /* @__PURE__ */ new Set();
|
|
149145
|
+
const filterNode = (node) => {
|
|
149146
|
+
if (node.type.name === "image" || node.type.name === "table" || node.type.name === "codeBlock" || node.type.name === "codeBlockCustom") {
|
|
149147
|
+
hasFilteredContent = true;
|
|
149148
|
+
if (node.type.name === "image") {
|
|
149149
|
+
filteredTypes.add("图片");
|
|
149150
|
+
} else if (node.type.name === "table") {
|
|
149151
|
+
filteredTypes.add("表格");
|
|
149152
|
+
} else if (node.type.name === "codeBlock" || node.type.name === "codeBlockCustom") {
|
|
149153
|
+
filteredTypes.add("代码块");
|
|
149154
|
+
}
|
|
149155
|
+
return null;
|
|
149156
|
+
}
|
|
149157
|
+
if (node.content && node.content.size > 0) {
|
|
149158
|
+
const newContent2 = [];
|
|
149159
|
+
node.content.forEach((child) => {
|
|
149160
|
+
const filtered = filterNode(child);
|
|
149161
|
+
if (filtered) {
|
|
149162
|
+
newContent2.push(filtered);
|
|
149163
|
+
}
|
|
149164
|
+
});
|
|
149165
|
+
if (newContent2.length === 0 && node.type.name !== "paragraph") {
|
|
149166
|
+
return null;
|
|
149167
|
+
}
|
|
149168
|
+
return node.copy(Fragment.from(newContent2));
|
|
149169
|
+
}
|
|
149170
|
+
return node;
|
|
149171
|
+
};
|
|
149172
|
+
const newContent = [];
|
|
149173
|
+
slice2.content.forEach((node) => {
|
|
149174
|
+
const filtered = filterNode(node);
|
|
149175
|
+
if (filtered) {
|
|
149176
|
+
newContent.push(filtered);
|
|
149177
|
+
}
|
|
149178
|
+
});
|
|
149179
|
+
if (hasFilteredContent) {
|
|
149180
|
+
const types = Array.from(filteredTypes).join("、");
|
|
149181
|
+
ElMessage.warning(`表格中不支持粘贴${types},已自动过滤`);
|
|
149182
|
+
}
|
|
149183
|
+
return new Slice(Fragment.from(newContent), slice2.openStart, slice2.openEnd);
|
|
149114
149184
|
}
|
|
149115
149185
|
},
|
|
149116
149186
|
editable: !isInline2,
|
|
@@ -150257,16 +150327,18 @@ const _sfc_main$4 = {
|
|
|
150257
150327
|
},
|
|
150258
150328
|
accept: ".jpg,.png,.jpeg,.gif",
|
|
150259
150329
|
"before-upload": handleImageUpload,
|
|
150260
|
-
"on-success": uploadFileSuccess
|
|
150330
|
+
"on-success": uploadFileSuccess,
|
|
150331
|
+
disabled: isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList")
|
|
150261
150332
|
}, {
|
|
150262
150333
|
default: withCtx(() => [
|
|
150263
150334
|
createVNode(unref(Icon), {
|
|
150264
150335
|
icon: "mdi:file-image-box",
|
|
150265
|
-
width: "20"
|
|
150266
|
-
|
|
150336
|
+
width: "20",
|
|
150337
|
+
class: normalizeClass(isActive2("codeBlock") || isActive2("table") || isActive2("bulletList") || isActive2("orderedList") || isActive2("taskList") ? "icon-gray" : "")
|
|
150338
|
+
}, null, 8, ["class"])
|
|
150267
150339
|
]),
|
|
150268
150340
|
_: 1
|
|
150269
|
-
}, 8, ["action", "headers"])
|
|
150341
|
+
}, 8, ["action", "headers", "disabled"])
|
|
150270
150342
|
]),
|
|
150271
150343
|
_: 1
|
|
150272
150344
|
})) : createCommentVNode("", true)
|
|
@@ -150536,7 +150608,7 @@ const _sfc_main$4 = {
|
|
|
150536
150608
|
};
|
|
150537
150609
|
}
|
|
150538
150610
|
};
|
|
150539
|
-
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
150611
|
+
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-8a153055"]]);
|
|
150540
150612
|
const _hoisted_1$2 = { class: "bubble-menu" };
|
|
150541
150613
|
const _sfc_main$3 = {
|
|
150542
150614
|
__name: "BubbleMenu",
|
|
@@ -152425,7 +152497,7 @@ const _sfc_main = {
|
|
|
152425
152497
|
};
|
|
152426
152498
|
}
|
|
152427
152499
|
};
|
|
152428
|
-
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
152500
|
+
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c80a7e6c"]]);
|
|
152429
152501
|
const components = [
|
|
152430
152502
|
{
|
|
152431
152503
|
name: "TiptapVue",
|