vue-element-ui-x 0.1.6-beta → 0.1.7-beta
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/lib/attachments.js +3082 -0
- package/lib/bubble-list.js +13840 -0
- package/lib/bubble.js +13125 -0
- package/lib/components/Attachments/index.js +2 -2
- package/lib/components/Bubble/index.js +74 -79
- package/lib/components/BubbleList/index.js +75 -80
- package/lib/components/Conversations/index.js +6 -6
- package/lib/components/FilesCard/index.js +1 -1
- package/lib/components/Prompts/index.js +21 -21
- package/lib/components/Sender/index.js +4 -4
- package/lib/components/Think/index.js +1 -1
- package/lib/components/Thinking/index.js +1 -1
- package/lib/components/ThoughtChain/index.js +77 -82
- package/lib/components/Typewriter/index.js +73 -78
- package/lib/components/Welcome/index.js +1 -1
- package/lib/conversations.js +18825 -0
- package/lib/files-card.js +2471 -0
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1454 -1448
- package/lib/index.umd.js +1 -1
- package/lib/mixins/index.js +2 -2
- package/lib/mixins.js +1016 -0
- package/lib/prompts.js +832 -0
- package/lib/sender.js +1911 -0
- package/lib/think.js +799 -0
- package/lib/thinking.js +809 -0
- package/lib/thought-chain.js +30391 -0
- package/lib/typewriter.js +12788 -0
- package/lib/welcome.js +755 -0
- package/package.json +1 -2
- package/src/components/Attachments/index.js +8 -8
- package/src/components/Bubble/index.js +6 -6
- package/src/components/Bubble/src/main.vue +299 -299
- package/src/components/BubbleList/index.js +8 -8
- package/src/components/BubbleList/src/loading.vue +75 -75
- package/src/components/BubbleList/src/main.vue +466 -466
- package/src/components/Conversations/index.js +8 -8
- package/src/components/Conversations/src/main.vue +635 -635
- package/src/components/FilesCard/index.js +8 -8
- package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
- package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
- package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/index.js +46 -46
- package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
- package/src/components/FilesCard/src/options.js +18 -18
- package/src/components/Prompts/index.js +8 -8
- package/src/components/Prompts/src/main.vue +248 -248
- package/src/components/Sender/index.js +8 -8
- package/src/components/Sender/src/components/ClearButton.vue +28 -28
- package/src/components/Sender/src/components/Loading.vue +53 -53
- package/src/components/Sender/src/components/LoadingButton.vue +39 -39
- package/src/components/Sender/src/components/SendButton.vue +26 -26
- package/src/components/Sender/src/components/SpeechButton.vue +24 -24
- package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -43
- package/src/components/Think/index.js +8 -8
- package/src/components/Think/src/main.vue +190 -190
- package/src/components/Thinking/index.js +8 -8
- package/src/components/Thinking/src/main.vue +195 -195
- package/src/components/ThoughtChain/index.js +8 -8
- package/src/components/ThoughtChain/src/main.vue +293 -293
- package/src/components/Typewriter/index.js +8 -8
- package/src/components/Welcome/index.js +8 -8
- package/src/components/Welcome/src/main.vue +151 -151
- package/src/index.js +23 -3
- package/src/styles/Attachments.scss +236 -236
- package/src/styles/Bubble.scss +157 -157
- package/src/styles/BubbleList.scss +148 -148
- package/src/styles/Conversations.scss +260 -260
- package/src/styles/FilesCard.scss +221 -221
- package/src/styles/Prompts.scss +195 -195
- package/src/styles/Sender.scss +199 -199
- package/src/styles/Think.scss +134 -134
- package/src/styles/Thinking.scss +112 -112
- package/src/styles/ThoughtChain.scss +113 -113
- package/src/styles/Typewriter.scss +66 -66
- package/src/styles/button.scss +302 -0
- package/src/styles/var.scss +1052 -0
- package/src/theme/var.scss +72 -72
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
5
|
-
fill="none"
|
|
6
|
-
version="1.1"
|
|
7
|
-
width="1em"
|
|
8
|
-
height="1em"
|
|
9
|
-
viewBox="0 0 150 175"
|
|
10
|
-
>
|
|
11
|
-
<g>
|
|
12
|
-
<g>
|
|
13
|
-
<path
|
|
14
|
-
d="M103.622,0L27.5981,0C12.355,0,0,12.3648,0,27.6155L0,147.384C0,162.637,12.357,175,27.5981,175L122.402,175C137.645,175,150,162.635,150,147.384L150,46.405C150,40.1855,147.532,34.2219,143.136,29.8255L120.191,6.86627C115.797,2.46982,109.837,-0.00000447229,103.622,0Z"
|
|
15
|
-
fill="currentColor"
|
|
16
|
-
fill-opacity="1"
|
|
17
|
-
style="mix-blend-mode: passthrough"
|
|
18
|
-
/>
|
|
19
|
-
</g>
|
|
20
|
-
<g>
|
|
21
|
-
<path
|
|
22
|
-
d="M34.325330513916015,25.79257593970299L48.29132051391602,25.79257593970299C49.82622051391601,25.79257593970299,51.072020513916016,24.545875939702988,51.072020513916016,23.010075939702986L51.072020513916016,9.035265939702988C51.072020513916016,7.497485939702988,49.82622051391601,6.252805939702988,48.29132051391602,6.252805939702988L34.325330513916015,6.252805939702988C32.790480513916016,6.252805939702988,31.544626473216017,7.499445939702988,31.544626473216017,9.035265939702988L31.544626473216017,23.010075939702986C31.544626473216017,24.545875939702988,32.790480513916016,25.79257593970299,34.325330513916015,25.79257593970299ZM67.81882051391602,25.79257593970299L53.85272051391601,25.79257593970299C52.317920513916015,25.79257593970299,51.072020513916016,27.03917593970299,51.072020513916016,28.574975939702988L51.072020513916016,42.549875939702986C51.072020513916016,44.08767593970299,52.317920513916015,45.33227593970299,53.85272051391601,45.33227593970299L67.81882051391602,45.33227593970299C69.35362051391601,45.33227593970299,70.59952051391602,44.08567593970299,70.59952051391602,42.549875939702986L70.59952051391602,28.575075939702987C70.59952051391602,27.03917593970299,69.35362051391601,25.79257593970299,67.81882051391602,25.79257593970299ZM34.325330513916015,64.87207593970298L48.29132051391602,64.87207593970298C49.82622051391601,64.87207593970298,51.072020513916016,63.62547593970299,51.072020513916016,62.08957593970299L51.072020513916016,48.11477593970299C51.072020513916016,46.57697593970299,49.82622051391601,45.33227593970299,48.29132051391602,45.33227593970299L34.325330513916015,45.33227593970299C32.790480513916016,45.33227593970299,31.544626473216017,46.578975939702985,31.544626473216017,48.11477593970299L31.544626473216017,62.08957593970299C31.544626473216017,63.62547593970299,32.790480513916016,64.87207593970298,34.325330513916015,64.87207593970298ZM67.81882051391602,64.87207593970298L53.85272051391601,64.87207593970298C52.317920513916015,64.87207593970298,51.072020513916016,66.11867593970298,51.072020513916016,67.65447593970299L51.072020513916016,81.62937593970298C51.072020513916016,83.16717593970299,52.317920513916015,84.411875939703,53.85272051391601,84.411875939703L67.81882051391602,84.411875939703C69.35362051391601,84.411875939703,70.59952051391602,83.16517593970299,70.59952051391602,81.62937593970298L70.59952051391602,67.65447593970299C70.59952051391602,66.11867593970298,69.35362051391601,64.87207593970298,67.81882051391602,64.87207593970298ZM63.77272051391601,95.19977593970299L37.580550513916016,95.19977593970299C34.24722051391601,95.19977593970299,31.544620513916016,97.90407593970299,31.544620513916016,101.239775939703L31.544620513916016,131.61977593970298C31.544620513916016,134.955775939703,34.24722051391601,137.659775939703,37.580550513916016,137.659775939703L63.77272051391601,137.659775939703C67.10602051391601,137.659775939703,69.80862051391603,134.955775939703,69.80862051391603,131.61977593970298L69.80862051391603,101.239775939703C69.80862051391603,97.90407593970299,67.10602051391601,95.19977593970299,63.77272051391601,95.19977593970299ZM62.810020513916015,127.35977593970298C62.810020513916015,130.040775939703,60.63852051391602,132.213775939703,57.959420513916015,132.213775939703L43.39192051391602,132.213775939703C40.71275051391601,132.213775939703,38.54130051391601,130.040775939703,38.54130051391601,127.35977593970298L38.54130051391601,122.01377593970298C38.54130051391601,119.33377593970299,40.71275051391601,117.16077593970299,43.39192051391602,117.16077593970299L57.959420513916015,117.16077593970299C60.63852051391602,117.16077593970299,62.810020513916015,119.33277593970298,62.810020513916015,122.01377593970298L62.810020513916015,127.35977593970298ZM143.13562051391602,29.825575939702986L120.19142051391601,6.866355939702988C116.89942051391601,3.5725259397029876,112.70152051391601,1.3345199397029877,108.13322051391602,0.43777593970298767L108.13322051391602,26.206775939702986C108.13322051391602,34.388075939702986,114.76082051391602,41.019875939702985,122.93692051391602,41.019875939702985L149.371620513916,41.019875939702985C148.371620513916,36.78157593970299,146.21262051391602,32.905375939702985,143.13562051391602,29.825575939702986Z"
|
|
23
|
-
fill="#000000"
|
|
24
|
-
fill-opacity="0.20000000298023224"
|
|
25
|
-
style="mix-blend-mode: passthrough"
|
|
26
|
-
/>
|
|
27
|
-
</g>
|
|
28
|
-
<g>
|
|
29
|
-
<path
|
|
30
|
-
d="M34.325330513916015,23.44775087814331L48.29132051391602,23.44775087814331C49.82622051391601,23.44775087814331,51.072020513916016,22.20105087814331,51.072020513916016,20.66525087814331L51.072020513916016,6.690410878143311C51.072020513916016,5.15263087814331,49.82622051391601,3.9079508781433105,48.29132051391602,3.9079508781433105L34.325330513916015,3.9079508781433105C32.790480513916016,3.9079508781433105,31.544626473216017,5.154590878143311,31.544626473216017,6.690410878143311L31.544626473216017,20.66525087814331C31.544626473216017,22.20105087814331,32.790480513916016,23.44775087814331,34.325330513916015,23.44775087814331ZM67.81882051391602,23.44775087814331L53.85272051391601,23.44775087814331C52.317920513916015,23.44775087814331,51.072020513916016,24.69435087814331,51.072020513916016,26.23015087814331L51.072020513916016,40.20505087814331C51.072020513916016,41.74275087814331,52.317920513916015,42.987450878143314,53.85272051391601,42.987450878143314L67.81882051391602,42.987450878143314C69.35362051391601,42.987450878143314,70.59952051391602,41.74085087814331,70.59952051391602,40.20505087814331L70.59952051391602,26.23015087814331C70.59952051391602,24.69435087814331,69.35362051391601,23.44775087814331,67.81882051391602,23.44775087814331ZM34.325330513916015,62.52725087814331L48.29132051391602,62.52725087814331C49.82622051391601,62.52725087814331,51.072020513916016,61.28055087814331,51.072020513916016,59.74475087814331L51.072020513916016,45.76995087814331C51.072020513916016,44.23215087814331,49.82622051391601,42.987450878143314,48.29132051391602,42.987450878143314L34.325330513916015,42.987450878143314C32.790480513916016,42.987450878143314,31.544626473216017,44.23405087814331,31.544626473216017,45.76995087814331L31.544626473216017,59.74475087814331C31.544626473216017,61.28055087814331,32.790480513916016,62.52725087814331,34.325330513916015,62.52725087814331ZM67.81882051391602,62.52725087814331L53.85272051391601,62.52725087814331C52.317920513916015,62.52725087814331,51.072020513916016,63.773850878143314,51.072020513916016,65.30965087814332L51.072020513916016,79.2845508781433C51.072020513916016,80.82235087814331,52.317920513916015,82.06695087814332,53.85272051391601,82.06695087814332L67.81882051391602,82.06695087814332C69.35362051391601,82.06695087814332,70.59952051391602,80.82035087814332,70.59952051391602,79.2845508781433L70.59952051391602,65.30965087814332C70.59952051391602,63.773850878143314,69.35362051391601,62.52725087814331,67.81882051391602,62.52725087814331ZM63.77272051391601,92.85485087814331L37.580550513916016,92.85485087814331C34.24722051391601,92.85485087814331,31.544620513916016,95.55915087814331,31.544620513916016,98.8945508781433L31.544620513916016,129.27495087814333C31.544620513916016,132.6099508781433,34.24722051391601,135.31495087814332,37.580550513916016,135.31495087814332L63.77272051391601,135.31495087814332C67.10602051391601,135.31495087814332,69.80862051391603,132.6099508781433,69.80862051391603,129.27495087814333L69.80862051391603,98.8945508781433C69.80862051391603,95.55915087814331,67.10602051391601,92.85485087814331,63.77272051391601,92.85485087814331ZM62.810020513916015,125.01495087814331C62.810020513916015,127.69595087814331,60.63852051391602,129.86895087814332,57.959420513916015,129.86895087814332L43.39192051391602,129.86895087814332C40.71275051391601,129.86895087814332,38.54130051391601,127.69595087814331,38.54130051391601,125.01495087814331L38.54130051391601,119.6689508781433C38.54130051391601,116.98795087814331,40.71275051391601,114.81595087814331,43.39192051391602,114.81595087814331L57.959420513916015,114.81595087814331C60.63852051391602,114.81595087814331,62.810020513916015,116.98795087814331,62.810020513916015,119.6689508781433L62.810020513916015,125.01495087814331Z"
|
|
31
|
-
fill="#FFFFFF"
|
|
32
|
-
fill-opacity="1"
|
|
33
|
-
style="mix-blend-mode: passthrough"
|
|
34
|
-
/>
|
|
35
|
-
</g>
|
|
36
|
-
</g>
|
|
37
|
-
</svg>
|
|
38
|
-
</template>
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
5
|
+
fill="none"
|
|
6
|
+
version="1.1"
|
|
7
|
+
width="1em"
|
|
8
|
+
height="1em"
|
|
9
|
+
viewBox="0 0 150 175"
|
|
10
|
+
>
|
|
11
|
+
<g>
|
|
12
|
+
<g>
|
|
13
|
+
<path
|
|
14
|
+
d="M103.622,0L27.5981,0C12.355,0,0,12.3648,0,27.6155L0,147.384C0,162.637,12.357,175,27.5981,175L122.402,175C137.645,175,150,162.635,150,147.384L150,46.405C150,40.1855,147.532,34.2219,143.136,29.8255L120.191,6.86627C115.797,2.46982,109.837,-0.00000447229,103.622,0Z"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
fill-opacity="1"
|
|
17
|
+
style="mix-blend-mode: passthrough"
|
|
18
|
+
/>
|
|
19
|
+
</g>
|
|
20
|
+
<g>
|
|
21
|
+
<path
|
|
22
|
+
d="M34.325330513916015,25.79257593970299L48.29132051391602,25.79257593970299C49.82622051391601,25.79257593970299,51.072020513916016,24.545875939702988,51.072020513916016,23.010075939702986L51.072020513916016,9.035265939702988C51.072020513916016,7.497485939702988,49.82622051391601,6.252805939702988,48.29132051391602,6.252805939702988L34.325330513916015,6.252805939702988C32.790480513916016,6.252805939702988,31.544626473216017,7.499445939702988,31.544626473216017,9.035265939702988L31.544626473216017,23.010075939702986C31.544626473216017,24.545875939702988,32.790480513916016,25.79257593970299,34.325330513916015,25.79257593970299ZM67.81882051391602,25.79257593970299L53.85272051391601,25.79257593970299C52.317920513916015,25.79257593970299,51.072020513916016,27.03917593970299,51.072020513916016,28.574975939702988L51.072020513916016,42.549875939702986C51.072020513916016,44.08767593970299,52.317920513916015,45.33227593970299,53.85272051391601,45.33227593970299L67.81882051391602,45.33227593970299C69.35362051391601,45.33227593970299,70.59952051391602,44.08567593970299,70.59952051391602,42.549875939702986L70.59952051391602,28.575075939702987C70.59952051391602,27.03917593970299,69.35362051391601,25.79257593970299,67.81882051391602,25.79257593970299ZM34.325330513916015,64.87207593970298L48.29132051391602,64.87207593970298C49.82622051391601,64.87207593970298,51.072020513916016,63.62547593970299,51.072020513916016,62.08957593970299L51.072020513916016,48.11477593970299C51.072020513916016,46.57697593970299,49.82622051391601,45.33227593970299,48.29132051391602,45.33227593970299L34.325330513916015,45.33227593970299C32.790480513916016,45.33227593970299,31.544626473216017,46.578975939702985,31.544626473216017,48.11477593970299L31.544626473216017,62.08957593970299C31.544626473216017,63.62547593970299,32.790480513916016,64.87207593970298,34.325330513916015,64.87207593970298ZM67.81882051391602,64.87207593970298L53.85272051391601,64.87207593970298C52.317920513916015,64.87207593970298,51.072020513916016,66.11867593970298,51.072020513916016,67.65447593970299L51.072020513916016,81.62937593970298C51.072020513916016,83.16717593970299,52.317920513916015,84.411875939703,53.85272051391601,84.411875939703L67.81882051391602,84.411875939703C69.35362051391601,84.411875939703,70.59952051391602,83.16517593970299,70.59952051391602,81.62937593970298L70.59952051391602,67.65447593970299C70.59952051391602,66.11867593970298,69.35362051391601,64.87207593970298,67.81882051391602,64.87207593970298ZM63.77272051391601,95.19977593970299L37.580550513916016,95.19977593970299C34.24722051391601,95.19977593970299,31.544620513916016,97.90407593970299,31.544620513916016,101.239775939703L31.544620513916016,131.61977593970298C31.544620513916016,134.955775939703,34.24722051391601,137.659775939703,37.580550513916016,137.659775939703L63.77272051391601,137.659775939703C67.10602051391601,137.659775939703,69.80862051391603,134.955775939703,69.80862051391603,131.61977593970298L69.80862051391603,101.239775939703C69.80862051391603,97.90407593970299,67.10602051391601,95.19977593970299,63.77272051391601,95.19977593970299ZM62.810020513916015,127.35977593970298C62.810020513916015,130.040775939703,60.63852051391602,132.213775939703,57.959420513916015,132.213775939703L43.39192051391602,132.213775939703C40.71275051391601,132.213775939703,38.54130051391601,130.040775939703,38.54130051391601,127.35977593970298L38.54130051391601,122.01377593970298C38.54130051391601,119.33377593970299,40.71275051391601,117.16077593970299,43.39192051391602,117.16077593970299L57.959420513916015,117.16077593970299C60.63852051391602,117.16077593970299,62.810020513916015,119.33277593970298,62.810020513916015,122.01377593970298L62.810020513916015,127.35977593970298ZM143.13562051391602,29.825575939702986L120.19142051391601,6.866355939702988C116.89942051391601,3.5725259397029876,112.70152051391601,1.3345199397029877,108.13322051391602,0.43777593970298767L108.13322051391602,26.206775939702986C108.13322051391602,34.388075939702986,114.76082051391602,41.019875939702985,122.93692051391602,41.019875939702985L149.371620513916,41.019875939702985C148.371620513916,36.78157593970299,146.21262051391602,32.905375939702985,143.13562051391602,29.825575939702986Z"
|
|
23
|
+
fill="#000000"
|
|
24
|
+
fill-opacity="0.20000000298023224"
|
|
25
|
+
style="mix-blend-mode: passthrough"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
<g>
|
|
29
|
+
<path
|
|
30
|
+
d="M34.325330513916015,23.44775087814331L48.29132051391602,23.44775087814331C49.82622051391601,23.44775087814331,51.072020513916016,22.20105087814331,51.072020513916016,20.66525087814331L51.072020513916016,6.690410878143311C51.072020513916016,5.15263087814331,49.82622051391601,3.9079508781433105,48.29132051391602,3.9079508781433105L34.325330513916015,3.9079508781433105C32.790480513916016,3.9079508781433105,31.544626473216017,5.154590878143311,31.544626473216017,6.690410878143311L31.544626473216017,20.66525087814331C31.544626473216017,22.20105087814331,32.790480513916016,23.44775087814331,34.325330513916015,23.44775087814331ZM67.81882051391602,23.44775087814331L53.85272051391601,23.44775087814331C52.317920513916015,23.44775087814331,51.072020513916016,24.69435087814331,51.072020513916016,26.23015087814331L51.072020513916016,40.20505087814331C51.072020513916016,41.74275087814331,52.317920513916015,42.987450878143314,53.85272051391601,42.987450878143314L67.81882051391602,42.987450878143314C69.35362051391601,42.987450878143314,70.59952051391602,41.74085087814331,70.59952051391602,40.20505087814331L70.59952051391602,26.23015087814331C70.59952051391602,24.69435087814331,69.35362051391601,23.44775087814331,67.81882051391602,23.44775087814331ZM34.325330513916015,62.52725087814331L48.29132051391602,62.52725087814331C49.82622051391601,62.52725087814331,51.072020513916016,61.28055087814331,51.072020513916016,59.74475087814331L51.072020513916016,45.76995087814331C51.072020513916016,44.23215087814331,49.82622051391601,42.987450878143314,48.29132051391602,42.987450878143314L34.325330513916015,42.987450878143314C32.790480513916016,42.987450878143314,31.544626473216017,44.23405087814331,31.544626473216017,45.76995087814331L31.544626473216017,59.74475087814331C31.544626473216017,61.28055087814331,32.790480513916016,62.52725087814331,34.325330513916015,62.52725087814331ZM67.81882051391602,62.52725087814331L53.85272051391601,62.52725087814331C52.317920513916015,62.52725087814331,51.072020513916016,63.773850878143314,51.072020513916016,65.30965087814332L51.072020513916016,79.2845508781433C51.072020513916016,80.82235087814331,52.317920513916015,82.06695087814332,53.85272051391601,82.06695087814332L67.81882051391602,82.06695087814332C69.35362051391601,82.06695087814332,70.59952051391602,80.82035087814332,70.59952051391602,79.2845508781433L70.59952051391602,65.30965087814332C70.59952051391602,63.773850878143314,69.35362051391601,62.52725087814331,67.81882051391602,62.52725087814331ZM63.77272051391601,92.85485087814331L37.580550513916016,92.85485087814331C34.24722051391601,92.85485087814331,31.544620513916016,95.55915087814331,31.544620513916016,98.8945508781433L31.544620513916016,129.27495087814333C31.544620513916016,132.6099508781433,34.24722051391601,135.31495087814332,37.580550513916016,135.31495087814332L63.77272051391601,135.31495087814332C67.10602051391601,135.31495087814332,69.80862051391603,132.6099508781433,69.80862051391603,129.27495087814333L69.80862051391603,98.8945508781433C69.80862051391603,95.55915087814331,67.10602051391601,92.85485087814331,63.77272051391601,92.85485087814331ZM62.810020513916015,125.01495087814331C62.810020513916015,127.69595087814331,60.63852051391602,129.86895087814332,57.959420513916015,129.86895087814332L43.39192051391602,129.86895087814332C40.71275051391601,129.86895087814332,38.54130051391601,127.69595087814331,38.54130051391601,125.01495087814331L38.54130051391601,119.6689508781433C38.54130051391601,116.98795087814331,40.71275051391601,114.81595087814331,43.39192051391602,114.81595087814331L57.959420513916015,114.81595087814331C60.63852051391602,114.81595087814331,62.810020513916015,116.98795087814331,62.810020513916015,119.6689508781433L62.810020513916015,125.01495087814331Z"
|
|
31
|
+
fill="#FFFFFF"
|
|
32
|
+
fill-opacity="1"
|
|
33
|
+
style="mix-blend-mode: passthrough"
|
|
34
|
+
/>
|
|
35
|
+
</g>
|
|
36
|
+
</g>
|
|
37
|
+
</svg>
|
|
38
|
+
</template>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export const colorMap = {
|
|
2
|
-
word: '#0078D4',
|
|
3
|
-
excel: '#00C851',
|
|
4
|
-
ppt: '#FF5722',
|
|
5
|
-
pdf: '#E53935',
|
|
6
|
-
txt: '#424242',
|
|
7
|
-
mark: '#6C6C6C',
|
|
8
|
-
image: '#FF80AB',
|
|
9
|
-
audio: '#FF7878',
|
|
10
|
-
video: '#8B72F7',
|
|
11
|
-
three: '#29B6F6',
|
|
12
|
-
code: '#00008B',
|
|
13
|
-
database: '#FF9800',
|
|
14
|
-
link: '#2962FF',
|
|
15
|
-
zip: '#673AB7',
|
|
16
|
-
file: '#FFC757',
|
|
17
|
-
unknown: '#6E9DA4',
|
|
18
|
-
};
|
|
1
|
+
export const colorMap = {
|
|
2
|
+
word: '#0078D4',
|
|
3
|
+
excel: '#00C851',
|
|
4
|
+
ppt: '#FF5722',
|
|
5
|
+
pdf: '#E53935',
|
|
6
|
+
txt: '#424242',
|
|
7
|
+
mark: '#6C6C6C',
|
|
8
|
+
image: '#FF80AB',
|
|
9
|
+
audio: '#FF7878',
|
|
10
|
+
video: '#8B72F7',
|
|
11
|
+
three: '#29B6F6',
|
|
12
|
+
code: '#00008B',
|
|
13
|
+
database: '#FF9800',
|
|
14
|
+
link: '#2962FF',
|
|
15
|
+
zip: '#673AB7',
|
|
16
|
+
file: '#FFC757',
|
|
17
|
+
unknown: '#6E9DA4',
|
|
18
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import ElXPrompts from './src/main.vue';
|
|
2
|
-
|
|
3
|
-
/* istanbul ignore next */
|
|
4
|
-
ElXPrompts.install = function (Vue) {
|
|
5
|
-
Vue.component(ElXPrompts.name, ElXPrompts);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default ElXPrompts;
|
|
1
|
+
import ElXPrompts from './src/main.vue';
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
ElXPrompts.install = function (Vue) {
|
|
5
|
+
Vue.component(ElXPrompts.name, ElXPrompts);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default ElXPrompts;
|
|
@@ -1,248 +1,248 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="['el-x-prompts', { 'el-x-prompts-rtl': direction === 'rtl' }, rootClassName]"
|
|
4
|
-
:style="customStyle"
|
|
5
|
-
>
|
|
6
|
-
<!-- 标题 -->
|
|
7
|
-
<h5
|
|
8
|
-
v-if="title"
|
|
9
|
-
class="el-x-prompts-title"
|
|
10
|
-
:class="[classNames.title]"
|
|
11
|
-
:style="titleStyle"
|
|
12
|
-
>
|
|
13
|
-
{{ title }}
|
|
14
|
-
</h5>
|
|
15
|
-
|
|
16
|
-
<!-- 提示列表 -->
|
|
17
|
-
<div
|
|
18
|
-
:class="[
|
|
19
|
-
'el-x-prompts-list',
|
|
20
|
-
{
|
|
21
|
-
'el-x-prompts-list-wrap': wrap,
|
|
22
|
-
'el-x-prompts-list-vertical': vertical,
|
|
23
|
-
},
|
|
24
|
-
classNames.list,
|
|
25
|
-
]"
|
|
26
|
-
:style="listStyle"
|
|
27
|
-
>
|
|
28
|
-
<div
|
|
29
|
-
v-for="(info, index) in items"
|
|
30
|
-
:key="info.key || `key_${index}`"
|
|
31
|
-
:class="[
|
|
32
|
-
'el-x-prompts-item',
|
|
33
|
-
{
|
|
34
|
-
'el-x-prompts-item-disabled': info.disabled,
|
|
35
|
-
'el-x-prompts-item-has-nest': hasChildren(info),
|
|
36
|
-
},
|
|
37
|
-
classNames.item,
|
|
38
|
-
]"
|
|
39
|
-
:style="itemStyle"
|
|
40
|
-
@click="handleItemClick(info)"
|
|
41
|
-
>
|
|
42
|
-
<!-- 图标 -->
|
|
43
|
-
<div
|
|
44
|
-
v-if="info.icon"
|
|
45
|
-
class="el-x-prompts-icon"
|
|
46
|
-
>
|
|
47
|
-
<slot
|
|
48
|
-
name="icon"
|
|
49
|
-
:item="info"
|
|
50
|
-
>
|
|
51
|
-
<i :class="info.icon"></i>
|
|
52
|
-
</slot>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<!-- 内容 -->
|
|
56
|
-
<div
|
|
57
|
-
:class="['el-x-prompts-content', classNames.itemContent]"
|
|
58
|
-
:style="itemContentStyle"
|
|
59
|
-
>
|
|
60
|
-
<!-- 标签 -->
|
|
61
|
-
<h6
|
|
62
|
-
v-if="info.label"
|
|
63
|
-
class="el-x-prompts-label"
|
|
64
|
-
>
|
|
65
|
-
<slot
|
|
66
|
-
name="label"
|
|
67
|
-
:item="info"
|
|
68
|
-
>{{ info.label }}</slot
|
|
69
|
-
>
|
|
70
|
-
</h6>
|
|
71
|
-
|
|
72
|
-
<!-- 描述 -->
|
|
73
|
-
<p
|
|
74
|
-
v-if="info.description"
|
|
75
|
-
class="el-x-prompts-desc"
|
|
76
|
-
>
|
|
77
|
-
<slot
|
|
78
|
-
name="description"
|
|
79
|
-
:item="info"
|
|
80
|
-
>{{ info.description }}</slot
|
|
81
|
-
>
|
|
82
|
-
</p>
|
|
83
|
-
|
|
84
|
-
<!-- 子项 -->
|
|
85
|
-
<component
|
|
86
|
-
:is="$options.name"
|
|
87
|
-
v-if="hasChildren(info)"
|
|
88
|
-
class="el-x-prompts-nested"
|
|
89
|
-
:items="info.children"
|
|
90
|
-
:vertical="true"
|
|
91
|
-
@on-item-click="$emit('on-item-click', $event)"
|
|
92
|
-
:class-names="{
|
|
93
|
-
list: classNames.subList,
|
|
94
|
-
item: classNames.subItem,
|
|
95
|
-
}"
|
|
96
|
-
:styles="{
|
|
97
|
-
list: styles.subList,
|
|
98
|
-
item: styles.subItem,
|
|
99
|
-
}"
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
|
|
107
|
-
<script>
|
|
108
|
-
export default {
|
|
109
|
-
name: 'ElXPrompts',
|
|
110
|
-
|
|
111
|
-
props: {
|
|
112
|
-
/**
|
|
113
|
-
* 包含多个提示项的列表
|
|
114
|
-
*/
|
|
115
|
-
items: {
|
|
116
|
-
type: Array,
|
|
117
|
-
default: () => [],
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 显示在提示列表顶部的标题
|
|
122
|
-
*/
|
|
123
|
-
title: {
|
|
124
|
-
type: String,
|
|
125
|
-
default: '',
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Item 提示项被点击时的回调函数
|
|
130
|
-
*/
|
|
131
|
-
onItemClick: {
|
|
132
|
-
type: Function,
|
|
133
|
-
default: null,
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 提示列表是否垂直排列
|
|
138
|
-
*/
|
|
139
|
-
vertical: {
|
|
140
|
-
type: Boolean,
|
|
141
|
-
default: false,
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* 提示列表是否换行
|
|
146
|
-
*/
|
|
147
|
-
wrap: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: false,
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* 自定义样式,用于各个提示项的不同部分
|
|
154
|
-
*/
|
|
155
|
-
styles: {
|
|
156
|
-
type: Object,
|
|
157
|
-
default: () => ({}),
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* 自定义样式类名,用于各个提示项的不同部分
|
|
162
|
-
*/
|
|
163
|
-
classNames: {
|
|
164
|
-
type: Object,
|
|
165
|
-
default: () => ({}),
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* 根节点的样式类名
|
|
170
|
-
*/
|
|
171
|
-
rootClassName: {
|
|
172
|
-
type: String,
|
|
173
|
-
default: '',
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* 自定义样式
|
|
178
|
-
*/
|
|
179
|
-
customStyle: {
|
|
180
|
-
type: Object,
|
|
181
|
-
default: () => ({}),
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* 方向
|
|
186
|
-
*/
|
|
187
|
-
direction: {
|
|
188
|
-
type: String,
|
|
189
|
-
default: 'ltr',
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
computed: {
|
|
194
|
-
titleStyle() {
|
|
195
|
-
return {
|
|
196
|
-
...this.styles.title,
|
|
197
|
-
};
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
listStyle() {
|
|
201
|
-
return {
|
|
202
|
-
...this.styles.list,
|
|
203
|
-
};
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
itemStyle() {
|
|
207
|
-
return {
|
|
208
|
-
...this.styles.item,
|
|
209
|
-
};
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
itemContentStyle() {
|
|
213
|
-
return {
|
|
214
|
-
...this.styles.itemContent,
|
|
215
|
-
};
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
methods: {
|
|
220
|
-
hasChildren(item) {
|
|
221
|
-
return item.children && item.children.length > 0;
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
handleItemClick(info) {
|
|
225
|
-
if (info.disabled) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
// 如果有子项,不触发点击事件
|
|
229
|
-
if (this.hasChildren(info)) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
this.$emit('on-item-click', {
|
|
233
|
-
data: info,
|
|
234
|
-
});
|
|
235
|
-
// 向后兼容性
|
|
236
|
-
if (this.onItemClick) {
|
|
237
|
-
this.onItemClick({
|
|
238
|
-
data: info,
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
};
|
|
244
|
-
</script>
|
|
245
|
-
|
|
246
|
-
<style lang="scss" scoped>
|
|
247
|
-
@import '../../../styles/Prompts.scss';
|
|
248
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="['el-x-prompts', { 'el-x-prompts-rtl': direction === 'rtl' }, rootClassName]"
|
|
4
|
+
:style="customStyle"
|
|
5
|
+
>
|
|
6
|
+
<!-- 标题 -->
|
|
7
|
+
<h5
|
|
8
|
+
v-if="title"
|
|
9
|
+
class="el-x-prompts-title"
|
|
10
|
+
:class="[classNames.title]"
|
|
11
|
+
:style="titleStyle"
|
|
12
|
+
>
|
|
13
|
+
{{ title }}
|
|
14
|
+
</h5>
|
|
15
|
+
|
|
16
|
+
<!-- 提示列表 -->
|
|
17
|
+
<div
|
|
18
|
+
:class="[
|
|
19
|
+
'el-x-prompts-list',
|
|
20
|
+
{
|
|
21
|
+
'el-x-prompts-list-wrap': wrap,
|
|
22
|
+
'el-x-prompts-list-vertical': vertical,
|
|
23
|
+
},
|
|
24
|
+
classNames.list,
|
|
25
|
+
]"
|
|
26
|
+
:style="listStyle"
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
v-for="(info, index) in items"
|
|
30
|
+
:key="info.key || `key_${index}`"
|
|
31
|
+
:class="[
|
|
32
|
+
'el-x-prompts-item',
|
|
33
|
+
{
|
|
34
|
+
'el-x-prompts-item-disabled': info.disabled,
|
|
35
|
+
'el-x-prompts-item-has-nest': hasChildren(info),
|
|
36
|
+
},
|
|
37
|
+
classNames.item,
|
|
38
|
+
]"
|
|
39
|
+
:style="itemStyle"
|
|
40
|
+
@click="handleItemClick(info)"
|
|
41
|
+
>
|
|
42
|
+
<!-- 图标 -->
|
|
43
|
+
<div
|
|
44
|
+
v-if="info.icon"
|
|
45
|
+
class="el-x-prompts-icon"
|
|
46
|
+
>
|
|
47
|
+
<slot
|
|
48
|
+
name="icon"
|
|
49
|
+
:item="info"
|
|
50
|
+
>
|
|
51
|
+
<i :class="info.icon"></i>
|
|
52
|
+
</slot>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<!-- 内容 -->
|
|
56
|
+
<div
|
|
57
|
+
:class="['el-x-prompts-content', classNames.itemContent]"
|
|
58
|
+
:style="itemContentStyle"
|
|
59
|
+
>
|
|
60
|
+
<!-- 标签 -->
|
|
61
|
+
<h6
|
|
62
|
+
v-if="info.label"
|
|
63
|
+
class="el-x-prompts-label"
|
|
64
|
+
>
|
|
65
|
+
<slot
|
|
66
|
+
name="label"
|
|
67
|
+
:item="info"
|
|
68
|
+
>{{ info.label }}</slot
|
|
69
|
+
>
|
|
70
|
+
</h6>
|
|
71
|
+
|
|
72
|
+
<!-- 描述 -->
|
|
73
|
+
<p
|
|
74
|
+
v-if="info.description"
|
|
75
|
+
class="el-x-prompts-desc"
|
|
76
|
+
>
|
|
77
|
+
<slot
|
|
78
|
+
name="description"
|
|
79
|
+
:item="info"
|
|
80
|
+
>{{ info.description }}</slot
|
|
81
|
+
>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
<!-- 子项 -->
|
|
85
|
+
<component
|
|
86
|
+
:is="$options.name"
|
|
87
|
+
v-if="hasChildren(info)"
|
|
88
|
+
class="el-x-prompts-nested"
|
|
89
|
+
:items="info.children"
|
|
90
|
+
:vertical="true"
|
|
91
|
+
@on-item-click="$emit('on-item-click', $event)"
|
|
92
|
+
:class-names="{
|
|
93
|
+
list: classNames.subList,
|
|
94
|
+
item: classNames.subItem,
|
|
95
|
+
}"
|
|
96
|
+
:styles="{
|
|
97
|
+
list: styles.subList,
|
|
98
|
+
item: styles.subItem,
|
|
99
|
+
}"
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script>
|
|
108
|
+
export default {
|
|
109
|
+
name: 'ElXPrompts',
|
|
110
|
+
|
|
111
|
+
props: {
|
|
112
|
+
/**
|
|
113
|
+
* 包含多个提示项的列表
|
|
114
|
+
*/
|
|
115
|
+
items: {
|
|
116
|
+
type: Array,
|
|
117
|
+
default: () => [],
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 显示在提示列表顶部的标题
|
|
122
|
+
*/
|
|
123
|
+
title: {
|
|
124
|
+
type: String,
|
|
125
|
+
default: '',
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Item 提示项被点击时的回调函数
|
|
130
|
+
*/
|
|
131
|
+
onItemClick: {
|
|
132
|
+
type: Function,
|
|
133
|
+
default: null,
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 提示列表是否垂直排列
|
|
138
|
+
*/
|
|
139
|
+
vertical: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: false,
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* 提示列表是否换行
|
|
146
|
+
*/
|
|
147
|
+
wrap: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false,
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* 自定义样式,用于各个提示项的不同部分
|
|
154
|
+
*/
|
|
155
|
+
styles: {
|
|
156
|
+
type: Object,
|
|
157
|
+
default: () => ({}),
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 自定义样式类名,用于各个提示项的不同部分
|
|
162
|
+
*/
|
|
163
|
+
classNames: {
|
|
164
|
+
type: Object,
|
|
165
|
+
default: () => ({}),
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* 根节点的样式类名
|
|
170
|
+
*/
|
|
171
|
+
rootClassName: {
|
|
172
|
+
type: String,
|
|
173
|
+
default: '',
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 自定义样式
|
|
178
|
+
*/
|
|
179
|
+
customStyle: {
|
|
180
|
+
type: Object,
|
|
181
|
+
default: () => ({}),
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* 方向
|
|
186
|
+
*/
|
|
187
|
+
direction: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: 'ltr',
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
computed: {
|
|
194
|
+
titleStyle() {
|
|
195
|
+
return {
|
|
196
|
+
...this.styles.title,
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
listStyle() {
|
|
201
|
+
return {
|
|
202
|
+
...this.styles.list,
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
itemStyle() {
|
|
207
|
+
return {
|
|
208
|
+
...this.styles.item,
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
itemContentStyle() {
|
|
213
|
+
return {
|
|
214
|
+
...this.styles.itemContent,
|
|
215
|
+
};
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
|
|
219
|
+
methods: {
|
|
220
|
+
hasChildren(item) {
|
|
221
|
+
return item.children && item.children.length > 0;
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
handleItemClick(info) {
|
|
225
|
+
if (info.disabled) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
// 如果有子项,不触发点击事件
|
|
229
|
+
if (this.hasChildren(info)) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
this.$emit('on-item-click', {
|
|
233
|
+
data: info,
|
|
234
|
+
});
|
|
235
|
+
// 向后兼容性
|
|
236
|
+
if (this.onItemClick) {
|
|
237
|
+
this.onItemClick({
|
|
238
|
+
data: info,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
</script>
|
|
245
|
+
|
|
246
|
+
<style lang="scss" scoped>
|
|
247
|
+
@import '../../../styles/Prompts.scss';
|
|
248
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import ElXSender from './src/main.vue';
|
|
2
|
-
|
|
3
|
-
/* istanbul ignore next */
|
|
4
|
-
ElXSender.install = function (Vue) {
|
|
5
|
-
Vue.component(ElXSender.name, ElXSender);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default ElXSender;
|
|
1
|
+
import ElXSender from './src/main.vue';
|
|
2
|
+
|
|
3
|
+
/* istanbul ignore next */
|
|
4
|
+
ElXSender.install = function (Vue) {
|
|
5
|
+
Vue.component(ElXSender.name, ElXSender);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default ElXSender;
|