@datawhale/prosemirror-render 0.0.1 → 0.0.2
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-BTIBSu4p.js} +2 -2
- package/dist/AttachmentBlock-W05YY8zN.cjs +1 -0
- package/dist/{AttachmentInline-tbC8BJBy.mjs → AttachmentInline-BF7QTLxZ.js} +2 -2
- package/dist/AttachmentInline-CgV-t0WF.cjs +1 -0
- package/dist/{AttachmentMenu-B5x8P9_n.mjs → AttachmentMenu-BjM7LAlw.js} +1 -1
- package/dist/AttachmentMenu-vc18PNLc.cjs +1 -0
- package/dist/{Callout-Cu6HI-xq.mjs → Callout-BH6_xPHP.js} +2 -2
- package/dist/Callout-BgG8-zJn.cjs +1 -0
- package/dist/{CellOutput-DiKZlIFa.js → CellOutput-CXb77W7X.cjs} +1 -1
- package/dist/{CellOutput-C33VK0df.mjs → CellOutput-DJqn5MJH.js} +1 -1
- package/dist/{CodeBlock-DWniNUQB.js → CodeBlock-BejcPvxj.cjs} +1 -1
- package/dist/{CodeBlock-Cjuxuq7B.mjs → CodeBlock-D9lrTXj3.js} +1 -1
- package/dist/FoldBlock-CMDkkdoU.cjs +1 -0
- package/dist/{FoldBlock-DRdlU-DX.mjs → FoldBlock-CZwxKsSG.js} +2 -2
- package/dist/{Grid-GfmJxM93.mjs → Grid-B53O57Vv.js} +1 -1
- package/dist/Grid-Cw9joyDF.cjs +1 -0
- package/dist/IFrame-CP2oHuDb.cjs +1 -0
- package/dist/{IFrame-CaAOVLGN.mjs → IFrame-DRvqa1hl.js} +1 -1
- package/dist/Image-B9Rer9RA.cjs +1 -0
- package/dist/{Image-C8v5dCij.mjs → Image-BjIZuyk1.js} +1 -1
- package/dist/{MathDisplay-CoGsFzXW.mjs → MathDisplay-BficZWEq.js} +2 -2
- package/dist/MathDisplay-D5rx_pee.cjs +1 -0
- package/dist/{MathInline-0xTZoIIq.mjs → MathInline-Ca8s53fu.js} +2 -2
- package/dist/MathInline-DZ86cc6g.cjs +1 -0
- package/dist/{McChoices-Aj394G5E.mjs → McChoices-B8W03KdG.js} +1 -1
- package/dist/McChoices-CW1gsp_V.cjs +1 -0
- package/dist/McQuestion-DwBWk5S2.cjs +1 -0
- package/dist/{McQuestion-DvD-J47M.mjs → McQuestion-WyxeDFjM.js} +1 -1
- package/dist/McSolution-BtY7RBEb.cjs +1 -0
- package/dist/{McSolution-C5sTXz3y.mjs → McSolution-CRahjdmW.js} +1 -1
- package/dist/{MultipleChoice-Dv-k1zUU.mjs → MultipleChoice-BgGHy-NW.js} +4 -4
- package/dist/MultipleChoice-mFFm3sQv.cjs +1 -0
- package/dist/{Paragraph-DGcZy8t_.mjs → Paragraph-C3uQVRMm.js} +1 -1
- package/dist/Paragraph-CU-CMQz2.cjs +1 -0
- package/dist/{SlotNode-6OpoUcOa.mjs → SlotNode-BThSEhpr.js} +1 -1
- package/dist/SlotNode-ivBAGFTX.cjs +1 -0
- package/dist/Text-3RT27QJn.cjs +1 -0
- package/dist/{Text-Br_pcGz4.mjs → Text-cG9dlJgd.js} +1 -1
- package/dist/{index-DVmWCrQE.mjs → index-C97tUvOp.js} +30 -30
- package/dist/index-DuVSDVpW.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +8 -2
- 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,359 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="attachment-menu">
|
|
3
|
-
<ul v-for="(menuGroup, index) in menuGroups" :key="index" class="attachment-menu-group">
|
|
4
|
-
<li
|
|
5
|
-
v-for="item in menuGroup"
|
|
6
|
-
:key="item.id"
|
|
7
|
-
class="attachment-menu-item"
|
|
8
|
-
@click="item.handler"
|
|
9
|
-
:style="{ backgroundColor: item.type === node.attrs.dispType ? 'rgb(224, 233, 255)' : '' }"
|
|
10
|
-
>
|
|
11
|
-
<!-- <el-tooltip :content="item.name" placement="top"> -->
|
|
12
|
-
<component :is="item.icon" :is-selected="item.type === node.attrs.dispType" class="attachment-menu-item-icon" />
|
|
13
|
-
<!-- </el-tooltip> -->
|
|
14
|
-
</li>
|
|
15
|
-
</ul>
|
|
16
|
-
<!-- <el-dialog
|
|
17
|
-
class="attachment-fullscreen-dialog"
|
|
18
|
-
v-model="showFullScreenDialog"
|
|
19
|
-
fullscreen
|
|
20
|
-
append-to-body
|
|
21
|
-
destroy-on-close
|
|
22
|
-
:show-close="false"
|
|
23
|
-
style="padding: 0"
|
|
24
|
-
>
|
|
25
|
-
<template #header>
|
|
26
|
-
<div class="attachment-fullscreen-dialog-header">
|
|
27
|
-
<button class="attachment-fullscreen-dialog-header-close" @click="showFullScreenDialog = false">
|
|
28
|
-
<CloseIcon class="attachment-fullscreen-dialog-header-close-icon"></CloseIcon
|
|
29
|
-
><span class="attachment-fullscreen-dialog-header-close-text">退出</span>
|
|
30
|
-
</button>
|
|
31
|
-
<div class="attachment-fullscreen-dialog-header-line"></div>
|
|
32
|
-
<div class="attachment-fullscreen-dialog-header-title">
|
|
33
|
-
<component :is="icon" class="attachment-fullscreen-dialog-header-title-icon"></component>
|
|
34
|
-
<div class="attachment-fullscreen-dialog-header-title-info">
|
|
35
|
-
<div class="attachment-fullscreen-dialog-header-title-info-filename">
|
|
36
|
-
{{ node.attrs.fileName }}.{{ node.attrs.fileType }}
|
|
37
|
-
</div>
|
|
38
|
-
<div class="attachment-fullscreen-dialog-header-title-info-filesize">{{ calculatedFileSize }}</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<el-tooltip content="下载该文件" placement="bottom"
|
|
42
|
-
><button class="attachment-fullscreen-dialog-header-download" @click="handleDownload">
|
|
43
|
-
<DownloadIcon class="attachment-fullscreen-dialog-header-download-icon"></DownloadIcon>
|
|
44
|
-
<span>下载</span>
|
|
45
|
-
</button></el-tooltip
|
|
46
|
-
>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
49
|
-
<template #default>
|
|
50
|
-
<div class="attachment-fullscreen-preview-iframe-wrapper" v-if="canPreview">
|
|
51
|
-
<iframe :src="genPreviewSrc(node.attrs.src)"></iframe>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="attachment-fullscreen-preview-unable" v-else>
|
|
54
|
-
<img
|
|
55
|
-
class="attachment-fullscreen-preview-unable-img"
|
|
56
|
-
:src="cannotPreviewImgDataUrl"
|
|
57
|
-
alt="该文件类型无法预览"
|
|
58
|
-
/>
|
|
59
|
-
<div class="attachment-fullscreen-preview-unable-text">
|
|
60
|
-
<strong style="font-weight: bold">.{{ node.attrs.fileType }}</strong
|
|
61
|
-
>文件类型无法预览
|
|
62
|
-
</div>
|
|
63
|
-
<div class="attachment-fullscreen-preview-unable-text">
|
|
64
|
-
{{ node.attrs.fileName }}.{{ node.attrs.fileType }} · {{ calculatedFileSize }}
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</template>
|
|
68
|
-
</el-dialog> -->
|
|
69
|
-
</div>
|
|
70
|
-
</template>
|
|
71
|
-
|
|
72
|
-
<script setup lang="ts">
|
|
73
|
-
import { type Component, useId } from 'vue';
|
|
74
|
-
import FullScreenIcon from '@datawhale/dipwap-render/icons/Attachment/FullScreen.vue';
|
|
75
|
-
import DownloadIcon from '@datawhale/dipwap-render/icons/Common/Download.vue';
|
|
76
|
-
import { resolvedFileUrl } from '@datawhale/dipwap-render/utils/common';
|
|
77
|
-
import type { PMAttachmentBlock, PMAttachmentInline } from '@datawhale/dipwap-types/index';
|
|
78
|
-
|
|
79
|
-
const { node } = defineProps<{
|
|
80
|
-
node: PMAttachmentBlock | PMAttachmentInline;
|
|
81
|
-
}>();
|
|
82
|
-
|
|
83
|
-
// const { icon, canPreview, genPreviewSrc, cannotPreviewImgDataUrl, calculatedFileSize } = useAttachment(
|
|
84
|
-
// node.attrs.fileType,
|
|
85
|
-
// node.attrs.fileSize,
|
|
86
|
-
// );
|
|
87
|
-
|
|
88
|
-
// 这个model仅在卡片视图点击右侧小眼睛时需要传值进来,否则仅在组件内部使用即可
|
|
89
|
-
const showFullScreenDialog = defineModel('showFullScreenDialog', { type: Boolean });
|
|
90
|
-
|
|
91
|
-
const toFullScreenPreview = () => {
|
|
92
|
-
showFullScreenDialog.value = true;
|
|
93
|
-
alert('全屏预览功能将在后续版本中开放');
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const handleDownload = async () => {
|
|
97
|
-
if (!node.attrs.src || !node.attrs.src.length) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const a = document.createElement('a');
|
|
101
|
-
a.href = resolvedFileUrl(node.attrs.src);
|
|
102
|
-
a.download = `${node.attrs.fileName}.${node.attrs.fileType}`;
|
|
103
|
-
a.target = '_blank';
|
|
104
|
-
a.rel = 'noopener noreferrer';
|
|
105
|
-
a.click();
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
type MenuItem = {
|
|
109
|
-
id: string;
|
|
110
|
-
name: string;
|
|
111
|
-
icon: Component;
|
|
112
|
-
handler: (e: MouseEvent) => void;
|
|
113
|
-
type?: string;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
const menuGroups: MenuItem[][] = [
|
|
117
|
-
[
|
|
118
|
-
{
|
|
119
|
-
id: useId(),
|
|
120
|
-
name: '全屏',
|
|
121
|
-
icon: FullScreenIcon,
|
|
122
|
-
handler: toFullScreenPreview,
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: useId(),
|
|
126
|
-
name: '下载',
|
|
127
|
-
icon: DownloadIcon,
|
|
128
|
-
handler: handleDownload,
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
// [
|
|
132
|
-
// {
|
|
133
|
-
// id: useId(),
|
|
134
|
-
// name: '复制链接',
|
|
135
|
-
// icon: CopyAnchorLinkIcon,
|
|
136
|
-
// handler: () => {
|
|
137
|
-
// ElMessage.warning('敬请期待');
|
|
138
|
-
// },
|
|
139
|
-
// },
|
|
140
|
-
// {
|
|
141
|
-
// id: useId(),
|
|
142
|
-
// name: '分享',
|
|
143
|
-
// icon: ShareTextLinkIcon,
|
|
144
|
-
// handler: () => {
|
|
145
|
-
// ElMessage.warning('敬请期待');
|
|
146
|
-
// },
|
|
147
|
-
// },
|
|
148
|
-
// ],
|
|
149
|
-
// [
|
|
150
|
-
// {
|
|
151
|
-
// id: useId(),
|
|
152
|
-
// name: '评论',
|
|
153
|
-
// icon: CommentIcon,
|
|
154
|
-
// handler: () => {
|
|
155
|
-
// ElMessage.warning('敬请期待');
|
|
156
|
-
// },
|
|
157
|
-
// },
|
|
158
|
-
// ],
|
|
159
|
-
];
|
|
160
|
-
</script>
|
|
161
|
-
|
|
162
|
-
<style scoped lang="scss">
|
|
163
|
-
* {
|
|
164
|
-
outline: none !important;
|
|
165
|
-
}
|
|
166
|
-
.attachment-menu {
|
|
167
|
-
height: 40px;
|
|
168
|
-
box-sizing: border-box;
|
|
169
|
-
box-shadow: rgba(31, 35, 41, 0.1) 0px 4px 8px 0px;
|
|
170
|
-
background-color: #fff;
|
|
171
|
-
border: 1px solid rgb(222, 224, 227);
|
|
172
|
-
border-radius: 6px;
|
|
173
|
-
display: flex;
|
|
174
|
-
align-items: center;
|
|
175
|
-
justify-content: center;
|
|
176
|
-
padding: 8px 0;
|
|
177
|
-
&-group {
|
|
178
|
-
margin: 0 !important;
|
|
179
|
-
padding: 0 8px;
|
|
180
|
-
height: 24px;
|
|
181
|
-
display: flex;
|
|
182
|
-
align-items: center;
|
|
183
|
-
justify-content: center;
|
|
184
|
-
border-right: 1px solid rgb(222, 224, 227);
|
|
185
|
-
&:last-child {
|
|
186
|
-
border-right: none;
|
|
187
|
-
}
|
|
188
|
-
.attachment-menu-item:first-child {
|
|
189
|
-
margin-left: 0 !important;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
&-item {
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
width: 24px;
|
|
195
|
-
height: 24px;
|
|
196
|
-
border-radius: 4px;
|
|
197
|
-
margin-left: 8px !important;
|
|
198
|
-
color: rgb(43, 47, 54);
|
|
199
|
-
box-sizing: border-box;
|
|
200
|
-
display: flex;
|
|
201
|
-
align-items: center;
|
|
202
|
-
justify-content: center;
|
|
203
|
-
&:hover {
|
|
204
|
-
background-color: rgba(31, 35, 41, 0.08);
|
|
205
|
-
}
|
|
206
|
-
&:active {
|
|
207
|
-
background-color: rgba(16, 16, 16, 0.16);
|
|
208
|
-
}
|
|
209
|
-
&:first-child {
|
|
210
|
-
margin-left: 0;
|
|
211
|
-
}
|
|
212
|
-
&-icon {
|
|
213
|
-
width: 18px;
|
|
214
|
-
height: 18px;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
.attachment-fullscreen-dialog {
|
|
219
|
-
&-header {
|
|
220
|
-
width: 100%;
|
|
221
|
-
height: 64px;
|
|
222
|
-
padding: 0;
|
|
223
|
-
border-bottom: 1px solid rgb(222, 224, 227);
|
|
224
|
-
box-sizing: border-box;
|
|
225
|
-
background-color: #fff;
|
|
226
|
-
display: flex;
|
|
227
|
-
align-items: center;
|
|
228
|
-
&-close {
|
|
229
|
-
display: flex;
|
|
230
|
-
align-items: center;
|
|
231
|
-
margin: 0;
|
|
232
|
-
padding: 0;
|
|
233
|
-
border: none;
|
|
234
|
-
outline: none;
|
|
235
|
-
background-color: #fff;
|
|
236
|
-
width: 72px;
|
|
237
|
-
height: 30px;
|
|
238
|
-
margin-left: 12px;
|
|
239
|
-
padding: 4px 8px;
|
|
240
|
-
border-radius: 6px;
|
|
241
|
-
font-size: 16px;
|
|
242
|
-
color: rgb(31, 35, 41);
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
&:hover {
|
|
245
|
-
background-color: rgba(31, 35, 41, 0.1);
|
|
246
|
-
}
|
|
247
|
-
&:active {
|
|
248
|
-
background-color: rgba(31, 35, 41, 0.2);
|
|
249
|
-
}
|
|
250
|
-
&-icon {
|
|
251
|
-
margin-right: 4px;
|
|
252
|
-
}
|
|
253
|
-
&-text {
|
|
254
|
-
margin-left: 4px;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
&-line {
|
|
258
|
-
margin-left: 8px;
|
|
259
|
-
margin-right: 16px;
|
|
260
|
-
height: 36px;
|
|
261
|
-
border-right: 1px solid rgb(222, 224, 227);
|
|
262
|
-
}
|
|
263
|
-
&-title {
|
|
264
|
-
display: flex;
|
|
265
|
-
align-items: center;
|
|
266
|
-
max-height: 48px;
|
|
267
|
-
overflow: hidden;
|
|
268
|
-
max-width: calc(100% - 120px);
|
|
269
|
-
-webkit-box-flex: 1;
|
|
270
|
-
-ms-flex: 1;
|
|
271
|
-
flex: 1;
|
|
272
|
-
&-icon {
|
|
273
|
-
margin: 6px 14px 6px 0;
|
|
274
|
-
width: 36px;
|
|
275
|
-
height: 36px;
|
|
276
|
-
}
|
|
277
|
-
&-info {
|
|
278
|
-
display: flex;
|
|
279
|
-
flex-direction: column;
|
|
280
|
-
justify-content: center;
|
|
281
|
-
line-height: 1.7;
|
|
282
|
-
&-filename {
|
|
283
|
-
color: #1f2329;
|
|
284
|
-
overflow: hidden;
|
|
285
|
-
font-size: 16px !important;
|
|
286
|
-
-o-text-overflow: ellipsis;
|
|
287
|
-
text-overflow: ellipsis;
|
|
288
|
-
text-align: left;
|
|
289
|
-
white-space: nowrap;
|
|
290
|
-
}
|
|
291
|
-
&-filesize {
|
|
292
|
-
color: #646a73;
|
|
293
|
-
font-size: 12px;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
&-download {
|
|
298
|
-
display: flex;
|
|
299
|
-
justify-content: center;
|
|
300
|
-
align-items: center;
|
|
301
|
-
margin: 0;
|
|
302
|
-
padding: 0;
|
|
303
|
-
border: none;
|
|
304
|
-
outline: none;
|
|
305
|
-
margin-right: 28px;
|
|
306
|
-
margin-left: 4px;
|
|
307
|
-
box-sizing: border-box;
|
|
308
|
-
height: 32px;
|
|
309
|
-
width: 80px;
|
|
310
|
-
border-radius: 6px;
|
|
311
|
-
background-color: #fff;
|
|
312
|
-
border: 1px solid rgb(208, 211, 214);
|
|
313
|
-
cursor: pointer;
|
|
314
|
-
font-size: 14px;
|
|
315
|
-
&:hover {
|
|
316
|
-
background-color: rgb(242, 243, 245);
|
|
317
|
-
}
|
|
318
|
-
&:active {
|
|
319
|
-
background-color: rgb(239, 240, 241);
|
|
320
|
-
}
|
|
321
|
-
&-icon {
|
|
322
|
-
margin-right: 4px;
|
|
323
|
-
width: 14px;
|
|
324
|
-
height: 14px;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
.attachment-fullscreen-preview-iframe-wrapper {
|
|
329
|
-
width: 100%;
|
|
330
|
-
height: calc(100vh - 64px);
|
|
331
|
-
margin-top: -16px;
|
|
332
|
-
iframe {
|
|
333
|
-
width: 100%;
|
|
334
|
-
height: calc(100% - 2px);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
.attachment-fullscreen-preview-unable {
|
|
338
|
-
width: 100%;
|
|
339
|
-
height: calc(100vh - 64px);
|
|
340
|
-
margin-top: -16px;
|
|
341
|
-
display: flex;
|
|
342
|
-
flex-direction: column;
|
|
343
|
-
align-items: center;
|
|
344
|
-
justify-content: center;
|
|
345
|
-
.attachment-fullscreen-preview-unable-img {
|
|
346
|
-
width: 120px;
|
|
347
|
-
height: 120px;
|
|
348
|
-
display: block;
|
|
349
|
-
margin-bottom: 16px;
|
|
350
|
-
}
|
|
351
|
-
.attachment-fullscreen-preview-unable-text {
|
|
352
|
-
font-size: 14px;
|
|
353
|
-
color: rgb(100, 106, 115);
|
|
354
|
-
margin-top: 4px;
|
|
355
|
-
line-height: 1.8;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
</style>
|