@datawhale/prosemirror-render 0.0.1 → 0.0.3
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/{AttachmentBlock-ChMNTUOo.mjs → AttachmentBlock-BU56Jral.js} +100 -107
- package/dist/AttachmentBlock-D4287MIh.cjs +1 -0
- package/dist/AttachmentInline-DjENK-yS.cjs +1 -0
- package/dist/{AttachmentInline-tbC8BJBy.mjs → AttachmentInline-Dpuxwof6.js} +2 -2
- package/dist/{AttachmentMenu-B5x8P9_n.mjs → AttachmentMenu-CGVTP1Yv.js} +1 -1
- package/dist/AttachmentMenu-DbbJfEmt.cjs +1 -0
- package/dist/{Callout-Cu6HI-xq.mjs → Callout-BXchNfJk.js} +2 -2
- package/dist/Callout-DaFC0yQ4.cjs +1 -0
- package/dist/{CellOutput-DiKZlIFa.js → CellOutput-B7Lb-RKC.cjs} +1 -1
- package/dist/{CellOutput-C33VK0df.mjs → CellOutput-DvijyrkS.js} +1 -1
- package/dist/{CodeBlock-Cjuxuq7B.mjs → CodeBlock-B2ZZtPly.js} +1 -1
- package/dist/{CodeBlock-DWniNUQB.js → CodeBlock-CdWT5lK0.cjs} +1 -1
- package/dist/{FoldBlock-DRdlU-DX.mjs → FoldBlock-DndxoDsF.js} +2 -2
- package/dist/FoldBlock-HGN28wvI.cjs +1 -0
- package/dist/{Grid-GfmJxM93.mjs → Grid-253iqCMF.js} +1 -1
- package/dist/Grid-xOWRvjRR.cjs +1 -0
- package/dist/{IFrame-CaAOVLGN.mjs → IFrame-CY4qkGFL.js} +1 -1
- package/dist/IFrame-k7fk5enb.cjs +1 -0
- package/dist/Image-DkfpQMVQ.cjs +1 -0
- package/dist/{Image-C8v5dCij.mjs → Image-R6iVek-9.js} +1 -1
- package/dist/MathDisplay-Bimaa4Y6.cjs +1 -0
- package/dist/{MathDisplay-CoGsFzXW.mjs → MathDisplay-CEY2k2fV.js} +2 -2
- package/dist/{MathInline-0xTZoIIq.mjs → MathInline-Bz9Baz68.js} +2 -2
- package/dist/MathInline-C3GWYu2n.cjs +1 -0
- package/dist/McChoices-Cq68UY4X.cjs +1 -0
- package/dist/{McChoices-Aj394G5E.mjs → McChoices-D3HhRraE.js} +1 -1
- package/dist/{McQuestion-DvD-J47M.mjs → McQuestion-BtWjhEnd.js} +1 -1
- package/dist/McQuestion-D7skHE3m.cjs +1 -0
- package/dist/{McSolution-C5sTXz3y.mjs → McSolution-DiMXYCQt.js} +1 -1
- package/dist/McSolution-ytOHw96W.cjs +1 -0
- package/dist/MultipleChoice-Byg7IpwO.cjs +1 -0
- package/dist/{MultipleChoice-Dv-k1zUU.mjs → MultipleChoice-Cl8wfstN.js} +4 -4
- package/dist/Paragraph-Bc08aEUA.cjs +1 -0
- package/dist/{Paragraph-DGcZy8t_.mjs → Paragraph-BipTa7mo.js} +1 -1
- package/dist/SlotNode-BBgyADP6.cjs +1 -0
- package/dist/{SlotNode-6OpoUcOa.mjs → SlotNode-Dy-7S7b1.js} +1 -1
- package/dist/{Text-Br_pcGz4.mjs → Text-CRiw47FV.js} +1 -1
- package/dist/Text-DmgJshdk.cjs +1 -0
- package/dist/index-CEnrh8_5.cjs +1 -0
- package/dist/{index-DVmWCrQE.mjs → index-CnHgx6Xd.js} +30 -30
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/prosemirror-render.css +1 -1
- package/package.json +10 -3
- package/dist/AttachmentBlock-DsmJP3Kw.js +0 -1
- package/dist/AttachmentInline-Dc3dp0g-.js +0 -1
- package/dist/AttachmentMenu-ExoCOe4B.js +0 -1
- package/dist/Callout-DPdOqTb4.js +0 -1
- package/dist/FoldBlock-ZPMf0QsR.js +0 -1
- package/dist/Grid-QToZdaRT.js +0 -1
- package/dist/IFrame-DcCpSoDC.js +0 -1
- package/dist/Image-cHL85CXs.js +0 -1
- package/dist/MathDisplay-CESKZV46.js +0 -1
- package/dist/MathInline-C_1SJUVz.js +0 -1
- package/dist/McChoices-B4euzY7M.js +0 -1
- package/dist/McQuestion-Dq0aM5tC.js +0 -1
- package/dist/McSolution-N79CllH9.js +0 -1
- package/dist/MultipleChoice-DTCF3Q8m.js +0 -1
- package/dist/Paragraph-CzRSCJNr.js +0 -1
- package/dist/SlotNode-DMG0R6Vf.js +0 -1
- package/dist/Text-DlUfrsNI.js +0 -1
- package/dist/index-D2CtpNvR.js +0 -1
- package/src/apis/monitor.ts +0 -8
- package/src/apis/tingwu.ts +0 -22
- package/src/apis/types.ts +0 -45
- package/src/components/TreeRecursive.vue +0 -47
- package/src/components/TreeRender.vue +0 -404
- package/src/components/collections/async/AsyncError.vue +0 -17
- package/src/components/collections/async/AsyncLoading.vue +0 -1
- package/src/components/collections/attachment/AttachmentBlock.vue +0 -561
- package/src/components/collections/attachment/AttachmentInline.vue +0 -90
- package/src/components/collections/attachment/AttachmentMenu.vue +0 -359
- package/src/components/collections/attachment/VideoDetail.vue +0 -375
- package/src/components/collections/attachment/index.ts +0 -6
- package/src/components/collections/basic/Blockquote.vue +0 -15
- package/src/components/collections/basic/BulletList.vue +0 -15
- package/src/components/collections/basic/HardBreak.vue +0 -11
- package/src/components/collections/basic/Heading.vue +0 -15
- package/src/components/collections/basic/HorizontalRule.vue +0 -11
- package/src/components/collections/basic/ListItem.vue +0 -15
- package/src/components/collections/basic/OrderedList.vue +0 -15
- package/src/components/collections/basic/Paragraph.vue +0 -19
- package/src/components/collections/basic/Text.vue +0 -73
- package/src/components/collections/basic/index.ts +0 -13
- package/src/components/collections/callout/Callout.vue +0 -77
- package/src/components/collections/callout/index.ts +0 -5
- package/src/components/collections/code/CellOutput.vue +0 -72
- package/src/components/collections/code/CodeBlock.vue +0 -83
- package/src/components/collections/code/index.ts +0 -6
- package/src/components/collections/fold/FoldBlock.vue +0 -130
- package/src/components/collections/fold/index.ts +0 -5
- package/src/components/collections/grid/Grid.vue +0 -70
- package/src/components/collections/grid/index.ts +0 -5
- package/src/components/collections/iframe/IFrame.vue +0 -19
- package/src/components/collections/iframe/index.ts +0 -5
- package/src/components/collections/img/Image.vue +0 -318
- package/src/components/collections/img/index.ts +0 -5
- package/src/components/collections/index.ts +0 -29
- package/src/components/collections/math/MathDisplay.vue +0 -42
- package/src/components/collections/math/MathInline.vue +0 -42
- package/src/components/collections/math/index.ts +0 -6
- package/src/components/collections/multipleChoice/McChoices.vue +0 -72
- package/src/components/collections/multipleChoice/McQuestion.vue +0 -61
- package/src/components/collections/multipleChoice/McSolution.vue +0 -47
- package/src/components/collections/multipleChoice/MultipleChoice.vue +0 -62
- package/src/components/collections/multipleChoice/index.ts +0 -8
- package/src/components/collections/table/TableCell.vue +0 -20
- package/src/components/collections/table/TableContainer.vue +0 -32
- package/src/components/collections/table/TableHeader.vue +0 -15
- package/src/components/collections/table/TableRow.vue +0 -15
- package/src/components/collections/table/index.ts +0 -8
- package/src/components/collections/utils.ts +0 -17
- package/src/components/collections/wrapper/Doc.vue +0 -15
- package/src/components/collections/wrapper/SlotNode.vue +0 -5
- package/src/components/collections/wrapper/index.ts +0 -6
- package/src/components/index.ts +0 -1
- package/src/icons/Attachment/CardView.vue +0 -21
- package/src/icons/Attachment/Code/Bat.vue +0 -26
- package/src/icons/Attachment/Code/C.vue +0 -26
- package/src/icons/Attachment/Code/Cpp.vue +0 -26
- package/src/icons/Attachment/Code/Css.vue +0 -34
- package/src/icons/Attachment/Code/Go.vue +0 -26
- package/src/icons/Attachment/Code/Html.vue +0 -34
- package/src/icons/Attachment/Code/Java.vue +0 -42
- package/src/icons/Attachment/Code/Js.vue +0 -26
- package/src/icons/Attachment/Code/Json.vue +0 -26
- package/src/icons/Attachment/Code/Jsx.vue +0 -30
- package/src/icons/Attachment/Code/Md.vue +0 -26
- package/src/icons/Attachment/Code/Php.vue +0 -26
- package/src/icons/Attachment/Code/Python.vue +0 -30
- package/src/icons/Attachment/Code/Rb.vue +0 -26
- package/src/icons/Attachment/Code/Sh.vue +0 -30
- package/src/icons/Attachment/Code/Sql.vue +0 -30
- package/src/icons/Attachment/Code/Swift.vue +0 -26
- package/src/icons/Attachment/Code/Ts.vue +0 -26
- package/src/icons/Attachment/Code/Tsx.vue +0 -30
- package/src/icons/Attachment/Code/Vue.vue +0 -24
- package/src/icons/Attachment/Excel.vue +0 -26
- package/src/icons/Attachment/Eye.vue +0 -15
- package/src/icons/Attachment/FullScreen.vue +0 -15
- package/src/icons/Attachment/InlineView.vue +0 -21
- package/src/icons/Attachment/Pdf.vue +0 -25
- package/src/icons/Attachment/Ppt.vue +0 -26
- package/src/icons/Attachment/PreviewView.vue +0 -21
- package/src/icons/Attachment/UnknownFile.vue +0 -26
- package/src/icons/Attachment/VideoIcon.vue +0 -25
- package/src/icons/Attachment/VideoPlay.vue +0 -15
- package/src/icons/Attachment/Word.vue +0 -26
- package/src/icons/Code/Confirm.vue +0 -38
- package/src/icons/Code/Paste.vue +0 -8
- package/src/icons/Common/Choice.vue +0 -28
- package/src/icons/Common/Close.vue +0 -15
- package/src/icons/Common/Comment.vue +0 -16
- package/src/icons/Common/CopyAnchorLink.vue +0 -15
- package/src/icons/Common/Delete.vue +0 -15
- package/src/icons/Common/Download.vue +0 -15
- package/src/icons/Common/FoldClose.vue +0 -9
- package/src/icons/Common/FoldOpen.vue +0 -9
- package/src/icons/Common/Plate.vue +0 -23
- package/src/icons/Common/Question.vue +0 -8
- package/src/icons/Common/ShareTextLink.vue +0 -15
- package/src/index.ts +0 -3
- package/src/types.ts +0 -236
- package/src/utils/common.ts +0 -6
- package/src/utils/emoji.ts +0 -3715
- package/src/utils/globalStatus.ts +0 -19
- package/src/utils/shiki.ts +0 -25
- package/src/utils/useAttachment.ts +0 -215
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -23
- package/vite.config.ts +0 -24
- /package/dist/{Blockquote-BamWUQND.mjs → Blockquote-BamWUQND.js} +0 -0
- /package/dist/{Blockquote-CQSBFnsu.js → Blockquote-CQSBFnsu.cjs} +0 -0
- /package/dist/{BulletList-BQTUD69X.mjs → BulletList-BQTUD69X.js} +0 -0
- /package/dist/{BulletList-CFjF3U-l.js → BulletList-CFjF3U-l.cjs} +0 -0
- /package/dist/{Doc-6s4VMDsx.mjs → Doc-6s4VMDsx.js} +0 -0
- /package/dist/{Doc-D2yvlSII.js → Doc-D2yvlSII.cjs} +0 -0
- /package/dist/{HardBreak-B2tFO31P.mjs → HardBreak-B2tFO31P.js} +0 -0
- /package/dist/{HardBreak-Dbf5Zg5o.js → HardBreak-Dbf5Zg5o.cjs} +0 -0
- /package/dist/{Heading-BElRvhGn.mjs → Heading-BElRvhGn.js} +0 -0
- /package/dist/{Heading-BUnffIAz.js → Heading-BUnffIAz.cjs} +0 -0
- /package/dist/{HorizontalRule-BRG45oT0.mjs → HorizontalRule-BRG45oT0.js} +0 -0
- /package/dist/{HorizontalRule-CE09LZGf.js → HorizontalRule-CE09LZGf.cjs} +0 -0
- /package/dist/{ListItem-BrjxeGxz.js → ListItem-BrjxeGxz.cjs} +0 -0
- /package/dist/{ListItem-X0T7a_z8.mjs → ListItem-X0T7a_z8.js} +0 -0
- /package/dist/{OrderedList-B8v1gchv.mjs → OrderedList-B8v1gchv.js} +0 -0
- /package/dist/{OrderedList-DMl3tvwP.js → OrderedList-DMl3tvwP.cjs} +0 -0
- /package/dist/{TableCell-BY9gdldc.js → TableCell-BY9gdldc.cjs} +0 -0
- /package/dist/{TableCell-Bp52L368.mjs → TableCell-Bp52L368.js} +0 -0
- /package/dist/{TableContainer-C5KXY6f7.js → TableContainer-C5KXY6f7.cjs} +0 -0
- /package/dist/{TableContainer-C9PhNGlz.mjs → TableContainer-C9PhNGlz.js} +0 -0
- /package/dist/{TableHeader-BTuqvorM.js → TableHeader-BTuqvorM.cjs} +0 -0
- /package/dist/{TableHeader-C7KKz3e1.mjs → TableHeader-C7KKz3e1.js} +0 -0
- /package/dist/{TableRow-D4F6AKFt.js → TableRow-D4F6AKFt.cjs} +0 -0
- /package/dist/{TableRow-OzpVq1qW.mjs → TableRow-OzpVq1qW.js} +0 -0
- /package/dist/{emoji-Bk6FG72F.js → emoji-Bk6FG72F.cjs} +0 -0
- /package/dist/{emoji-CmOToDEU.mjs → emoji-CmOToDEU.js} +0 -0
- /package/dist/{katex-CS0ZfoxP.js → katex-CS0ZfoxP.cjs} +0 -0
- /package/dist/{katex-r9TeExgs.mjs → katex-r9TeExgs.js} +0 -0
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tree-render">
|
|
3
|
-
<TreeRecursive :node="node" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
import { provide, watch } from 'vue';
|
|
9
|
-
import { type HTTPClientType, axiosKey } from '@datawhale/dipwap-render/apis/types';
|
|
10
|
-
import type { PMNode } from '@datawhale/dipwap-types/index';
|
|
11
|
-
import { getAllImageNodes, imageNodes, imageNodesKey } from '../utils/globalStatus';
|
|
12
|
-
import TreeRecursive from './TreeRecursive.vue';
|
|
13
|
-
|
|
14
|
-
const { node, axios } = defineProps<{
|
|
15
|
-
node: PMNode;
|
|
16
|
-
axios: HTTPClientType;
|
|
17
|
-
}>();
|
|
18
|
-
|
|
19
|
-
provide(imageNodesKey, imageNodes);
|
|
20
|
-
provide(axiosKey, axios);
|
|
21
|
-
|
|
22
|
-
watch(
|
|
23
|
-
() => node,
|
|
24
|
-
(newNode) => {
|
|
25
|
-
imageNodes.value = getAllImageNodes(newNode);
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<style lang="scss">
|
|
31
|
-
.tree-render {
|
|
32
|
-
mark {
|
|
33
|
-
color: inherit;
|
|
34
|
-
background-color: inherit;
|
|
35
|
-
}
|
|
36
|
-
min-height: calc(100vh - 232.25px);
|
|
37
|
-
outline: none;
|
|
38
|
-
width: 100%;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
::selection {
|
|
41
|
-
background-color: rgba(20, 86, 240, 0.18);
|
|
42
|
-
/* 选中背景颜色 */
|
|
43
|
-
}
|
|
44
|
-
color: rgb(31, 35, 41);
|
|
45
|
-
letter-spacing: 0.28px;
|
|
46
|
-
word-wrap: break-word;
|
|
47
|
-
font-family:
|
|
48
|
-
LarkHackSafariFont,
|
|
49
|
-
LarkEmojiFont,
|
|
50
|
-
LarkChineseQuote,
|
|
51
|
-
-apple-system,
|
|
52
|
-
BlinkMacSystemFont,
|
|
53
|
-
Helvetica Neue,
|
|
54
|
-
Tahoma,
|
|
55
|
-
PingFang SC,
|
|
56
|
-
Microsoft Yahei,
|
|
57
|
-
Arial,
|
|
58
|
-
Hiragino Sans GB,
|
|
59
|
-
sans-serif,
|
|
60
|
-
Apple Color Emoji,
|
|
61
|
-
Segoe UI Emoji,
|
|
62
|
-
Segoe UI Symbol,
|
|
63
|
-
Noto Color Emoji;
|
|
64
|
-
code {
|
|
65
|
-
font-family: 'Source Code Pro', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', 'Microsoft Yahei';
|
|
66
|
-
}
|
|
67
|
-
h1,
|
|
68
|
-
h2,
|
|
69
|
-
h3,
|
|
70
|
-
h4,
|
|
71
|
-
h5,
|
|
72
|
-
h6 {
|
|
73
|
-
font-weight: 600;
|
|
74
|
-
letter-spacing: -0.52px;
|
|
75
|
-
code {
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
margin: 0 3px;
|
|
78
|
-
padding: 1px 2px;
|
|
79
|
-
background-color: rgb(245, 246, 247);
|
|
80
|
-
border-radius: 4px;
|
|
81
|
-
border: 1px solid rgb(222, 224, 227);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
& .doc > h1:first-child {
|
|
85
|
-
margin-top: 22px;
|
|
86
|
-
}
|
|
87
|
-
h1 {
|
|
88
|
-
margin-top: 26px;
|
|
89
|
-
margin-bottom: 10px;
|
|
90
|
-
font-size: 26px;
|
|
91
|
-
line-height: 36.4px;
|
|
92
|
-
}
|
|
93
|
-
h2 {
|
|
94
|
-
margin-top: 22px;
|
|
95
|
-
margin-bottom: 8px;
|
|
96
|
-
font-size: 22px;
|
|
97
|
-
line-height: 30.8px;
|
|
98
|
-
}
|
|
99
|
-
h3 {
|
|
100
|
-
margin-top: 20px;
|
|
101
|
-
margin-bottom: 8px;
|
|
102
|
-
font-size: 20px;
|
|
103
|
-
line-height: 28px;
|
|
104
|
-
}
|
|
105
|
-
h4 {
|
|
106
|
-
margin-top: 18px;
|
|
107
|
-
margin-bottom: 8px;
|
|
108
|
-
font-size: 18px;
|
|
109
|
-
line-height: 25.2px;
|
|
110
|
-
}
|
|
111
|
-
h5 {
|
|
112
|
-
margin-top: 18px;
|
|
113
|
-
margin-bottom: 8px;
|
|
114
|
-
font-size: 16px;
|
|
115
|
-
line-height: 22.4px;
|
|
116
|
-
}
|
|
117
|
-
h6 {
|
|
118
|
-
margin-top: 16px;
|
|
119
|
-
margin-bottom: 8px;
|
|
120
|
-
font-size: 16px;
|
|
121
|
-
line-height: 22.4px;
|
|
122
|
-
}
|
|
123
|
-
hr {
|
|
124
|
-
border: none;
|
|
125
|
-
margin: 8px 0;
|
|
126
|
-
height: 26px;
|
|
127
|
-
position: relative;
|
|
128
|
-
&::after {
|
|
129
|
-
content: '';
|
|
130
|
-
position: absolute;
|
|
131
|
-
top: 50%;
|
|
132
|
-
left: 0;
|
|
133
|
-
width: 100%;
|
|
134
|
-
height: 1px;
|
|
135
|
-
background-color: rgba(31, 35, 41, 0.15);
|
|
136
|
-
transform: translateY(-50%);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
blockquote {
|
|
140
|
-
border-left: 2px solid rgb(187, 191, 196);
|
|
141
|
-
padding-left: 12px;
|
|
142
|
-
p {
|
|
143
|
-
color: rgb(100, 106, 115);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
span.math-src {
|
|
147
|
-
div[contenteditable='true'] {
|
|
148
|
-
outline: none;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
p {
|
|
152
|
-
margin: 8px 0;
|
|
153
|
-
line-height: 26px;
|
|
154
|
-
font-size: 16px;
|
|
155
|
-
font-weight: 400;
|
|
156
|
-
white-space-collapse: break-spaces;
|
|
157
|
-
text-wrap-mode: wrap;
|
|
158
|
-
a {
|
|
159
|
-
color: rgb(51, 109, 244);
|
|
160
|
-
text-decoration: none;
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
&:hover {
|
|
163
|
-
text-decoration: underline;
|
|
164
|
-
text-decoration-color: rgb(51, 109, 244);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
strong {
|
|
168
|
-
font-weight: 700;
|
|
169
|
-
}
|
|
170
|
-
em {
|
|
171
|
-
font-style: italic;
|
|
172
|
-
}
|
|
173
|
-
del {
|
|
174
|
-
text-decoration: line-through;
|
|
175
|
-
}
|
|
176
|
-
u {
|
|
177
|
-
text-decoration: underline;
|
|
178
|
-
}
|
|
179
|
-
code {
|
|
180
|
-
box-sizing: border-box;
|
|
181
|
-
margin: 0 3px;
|
|
182
|
-
padding: 1px 2px;
|
|
183
|
-
background-color: rgb(245, 246, 247);
|
|
184
|
-
border-radius: 4px;
|
|
185
|
-
border: 1px solid rgb(222, 224, 227);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
ul {
|
|
189
|
-
margin-left: 22px;
|
|
190
|
-
margin-top: 8px;
|
|
191
|
-
margin-bottom: 8px;
|
|
192
|
-
& > li::marker {
|
|
193
|
-
content: '• ';
|
|
194
|
-
color: rgb(20, 86, 240);
|
|
195
|
-
font-size: 16px;
|
|
196
|
-
}
|
|
197
|
-
ul {
|
|
198
|
-
& > li::marker {
|
|
199
|
-
content: '◦ ';
|
|
200
|
-
color: rgb(20, 86, 240);
|
|
201
|
-
font-size: 16px;
|
|
202
|
-
}
|
|
203
|
-
ul {
|
|
204
|
-
& > li::marker {
|
|
205
|
-
content: '▪ ';
|
|
206
|
-
color: rgb(20, 86, 240);
|
|
207
|
-
font-size: 16px;
|
|
208
|
-
}
|
|
209
|
-
ul {
|
|
210
|
-
& > li::marker {
|
|
211
|
-
content: '• ';
|
|
212
|
-
color: rgb(20, 86, 240);
|
|
213
|
-
font-size: 16px;
|
|
214
|
-
}
|
|
215
|
-
ul {
|
|
216
|
-
& > li::marker {
|
|
217
|
-
content: '◦ ';
|
|
218
|
-
color: rgb(20, 86, 240);
|
|
219
|
-
font-size: 16px;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
li {
|
|
227
|
-
margin: 8px 0;
|
|
228
|
-
}
|
|
229
|
-
ol {
|
|
230
|
-
margin-left: 29px;
|
|
231
|
-
list-style-type: decimal;
|
|
232
|
-
li::marker {
|
|
233
|
-
color: rgb(20, 86, 240);
|
|
234
|
-
font-family: 'Helvetica Neue', Consolas;
|
|
235
|
-
}
|
|
236
|
-
ol {
|
|
237
|
-
list-style-type: lower-alpha;
|
|
238
|
-
ol {
|
|
239
|
-
list-style-type: lower-roman;
|
|
240
|
-
ol {
|
|
241
|
-
list-style-type: decimal;
|
|
242
|
-
ol {
|
|
243
|
-
list-style-type: lower-alpha;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
.tiptap .shiki {
|
|
250
|
-
border-radius: 4px;
|
|
251
|
-
padding: 8px;
|
|
252
|
-
}
|
|
253
|
-
.tiptap .shiki:focus-visible {
|
|
254
|
-
outline: 2px solid transparent;
|
|
255
|
-
outline-offset: 2px;
|
|
256
|
-
}
|
|
257
|
-
pre {
|
|
258
|
-
padding: 24px;
|
|
259
|
-
border-radius: 6px;
|
|
260
|
-
margin: 16px 0;
|
|
261
|
-
outline: none;
|
|
262
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
263
|
-
overflow-x: auto;
|
|
264
|
-
background-color: rgb(245, 246, 247);
|
|
265
|
-
code {
|
|
266
|
-
width: 100%;
|
|
267
|
-
outline: none;
|
|
268
|
-
line-height: 22px;
|
|
269
|
-
font-size: 14px;
|
|
270
|
-
span {
|
|
271
|
-
text-wrap-mode: nowrap;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
.tableWrapper {
|
|
276
|
-
margin: 24px 0;
|
|
277
|
-
max-width: 100%;
|
|
278
|
-
overflow-x: auto;
|
|
279
|
-
}
|
|
280
|
-
table {
|
|
281
|
-
th,
|
|
282
|
-
td {
|
|
283
|
-
min-width: 39px;
|
|
284
|
-
border: 1px solid rgb(222, 224, 227);
|
|
285
|
-
padding: 12px;
|
|
286
|
-
position: relative;
|
|
287
|
-
:not(a.grip-column):not(a.grip-row):nth-child(1),
|
|
288
|
-
a.grip-column + :not(a.grip-row):nth-child(2),
|
|
289
|
-
a.grip-row + :not(a.grip-column):nth-child(2),
|
|
290
|
-
a.grip-column + *:nth-child(3),
|
|
291
|
-
a.grip-row + *:nth-child(3) {
|
|
292
|
-
margin-top: 0;
|
|
293
|
-
}
|
|
294
|
-
:not(a.grip-column):not(a.grip-row):nth-last-child(1),
|
|
295
|
-
:not(a.grip-column):not(a.grip-row):nth-last-child(2) {
|
|
296
|
-
margin-bottom: 0;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
.column-resize-handle {
|
|
300
|
-
background-color: rgb(20, 86, 240);
|
|
301
|
-
bottom: 0px;
|
|
302
|
-
pointer-events: none;
|
|
303
|
-
position: absolute;
|
|
304
|
-
right: -1px;
|
|
305
|
-
top: 0;
|
|
306
|
-
width: 2px;
|
|
307
|
-
}
|
|
308
|
-
.selectedCell {
|
|
309
|
-
background-color: rgba(20, 86, 240, 0.18) !important;
|
|
310
|
-
// filter: brightness(0.9);
|
|
311
|
-
}
|
|
312
|
-
.grip-column,
|
|
313
|
-
.grip-row {
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
justify-content: center;
|
|
317
|
-
position: absolute;
|
|
318
|
-
z-index: 10;
|
|
319
|
-
background-color: rgb(239, 240, 241);
|
|
320
|
-
cursor: pointer;
|
|
321
|
-
}
|
|
322
|
-
.grip-column {
|
|
323
|
-
width: 100%;
|
|
324
|
-
height: 8px;
|
|
325
|
-
left: 0;
|
|
326
|
-
top: -8px;
|
|
327
|
-
margin-left: -1px;
|
|
328
|
-
margin-top: -1px;
|
|
329
|
-
border-left: 1px solid rgb(239, 240, 241);
|
|
330
|
-
border-right: 1px solid rgb(239, 240, 241);
|
|
331
|
-
&:hover,
|
|
332
|
-
&.selected {
|
|
333
|
-
z-index: 15;
|
|
334
|
-
&::before {
|
|
335
|
-
content: '';
|
|
336
|
-
width: 10px;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
&:hover {
|
|
340
|
-
border-left: 1px solid rgb(227, 227, 227);
|
|
341
|
-
border-right: 1px solid rgb(227, 227, 227);
|
|
342
|
-
background-color: rgb(227, 227, 227);
|
|
343
|
-
&::before {
|
|
344
|
-
border-bottom: 2px dotted rgb(95, 95, 95);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
&.selected {
|
|
348
|
-
border-left: 1px solid rgb(20, 86, 240);
|
|
349
|
-
border-right: 1px solid rgb(20, 86, 240);
|
|
350
|
-
background-color: rgb(20, 86, 240);
|
|
351
|
-
&::before {
|
|
352
|
-
border-bottom: 2px dotted rgb(251, 251, 251);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
&.first {
|
|
356
|
-
border-top-left-radius: 4px;
|
|
357
|
-
}
|
|
358
|
-
&.last {
|
|
359
|
-
border-top-right-radius: 4px;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
.grip-row {
|
|
363
|
-
width: 8px;
|
|
364
|
-
height: 100%;
|
|
365
|
-
top: 0;
|
|
366
|
-
left: -8px;
|
|
367
|
-
margin-top: -1px;
|
|
368
|
-
margin-left: -1px;
|
|
369
|
-
border-top: 1px solid rgb(239, 240, 241);
|
|
370
|
-
border-bottom: 1px solid rgb(239, 240, 241);
|
|
371
|
-
&:hover,
|
|
372
|
-
&.selected {
|
|
373
|
-
z-index: 15;
|
|
374
|
-
&::before {
|
|
375
|
-
content: '';
|
|
376
|
-
height: 10px;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
&:hover {
|
|
380
|
-
border-top: 1px solid rgb(227, 227, 227);
|
|
381
|
-
border-bottom: 1px solid rgb(227, 227, 227);
|
|
382
|
-
background-color: rgb(227, 227, 227);
|
|
383
|
-
&::before {
|
|
384
|
-
border-left: 2px dotted rgb(95, 95, 95);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
&.selected {
|
|
388
|
-
border-top: 1px solid rgb(20, 86, 240);
|
|
389
|
-
border-bottom: 1px solid rgb(20, 86, 240);
|
|
390
|
-
background-color: rgb(20, 86, 240);
|
|
391
|
-
&::before {
|
|
392
|
-
border-left: 2px dotted rgb(251, 251, 251);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
&.first {
|
|
396
|
-
border-top-left-radius: 4px;
|
|
397
|
-
}
|
|
398
|
-
&.last {
|
|
399
|
-
border-bottom-left-radius: 4px;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="error-wrapper">组件加载失败</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<style scoped>
|
|
6
|
-
.error-wrapper {
|
|
7
|
-
width: 160px;
|
|
8
|
-
height: 90px;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
color: rgb(136, 46, 46);
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
border: 1px solid #888;
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<template>loading...</template>
|