🎨 丰富表情包

This commit is contained in:
ronger 2021-12-22 11:50:20 +08:00
parent 7d4fb252b6
commit ca1c736449
8 changed files with 96 additions and 0 deletions

View File

@ -226,6 +226,9 @@
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -149,6 +149,9 @@ export default {
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -217,6 +217,9 @@ export default {
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -167,6 +167,9 @@
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -67,6 +67,9 @@ export default {
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -66,6 +66,9 @@ export default {
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
hljs: { hljs: {
enable: true, enable: true,

View File

@ -222,6 +222,9 @@ export default {
after() { after() {
_ts.contentEditor.setValue(data.value ? data.value : ''); _ts.contentEditor.setValue(data.value ? data.value : '');
}, },
hint: {
emoji: Vue.emoji
},
preview: { preview: {
markdown: { markdown: {
toc: true, toc: true,

View File

@ -3,5 +3,80 @@ import VditorPreview from 'vditor/dist/method.min';
import Vditor from 'vditor'; import Vditor from 'vditor';
let emoji = {
"+1": "👍",
"-1": "👎",
"100": "💯",
"Accept": "🉑",
"beer": "🍺",
"bug": "🐛",
"bulb": "💡",
"computer": "💻",
"construction": "🚧",
"construction_worker": "👷",
"construction_worker_man": "👷",
"construction_worker_woman": "👷‍♀",
"face_with_head_bandage": "🤕",
"face_with_thermometer": "🤒",
"fearful": "😨",
"flushed": "😳",
"frowning": "😦",
"frowning_face": "☹️",
"full_moon_with_face": "🌝",
"grimacing": "😬",
"grin": "😁",
"grinning": "😀",
"hankey": "💩",
"metal": "🤘",
"money_mouth_face": "🤑",
"nerd_face": "🤓",
"neutral_face": "😐",
"persevere": "😣",
"point_down": "👇",
"point_left": "👈",
"point_right": "👉",
"point_up_2": "👆",
"satisfied": "😆",
"sleeping": "😴",
"sleepy": "😪",
"slightly_frowning_face": "🙁",
"slightly_smiling_face": "🙂",
"smile": "😄",
"smiley": "😃",
"smiling_imp": "😈",
"smirk": "😏",
"sneezing_face": "🤧",
"sob": "😭",
"sparkler": "🎇",
"sparkles": "✨",
"stopwatch": "⏱",
"strawberry": "🍓",
"stuck_out_tongue": "😛",
"stuck_out_tongue_closed_eyes": "😝",
"stuck_out_tongue_winking_eye": "😜",
"sun_behind_large_cloud": "🌥",
"sun_behind_rain_cloud": "🌦",
"sun_behind_small_cloud": "🌤",
"sun_with_face": "🌞",
"sunflower": "🌻",
"sunglasses": "😎",
"sweat": "😓",
"sweat_smile": "😅",
"unamused": "😒",
"unlock": "🔓",
"upside_down_face": "🙃",
"v": "✌️",
"wink": "😉",
"wrench": "🔧",
"writing_hand": "✍️",
"x": "❌",
"yellow_heart": "💛",
"zipper_mouth_face": "🤐",
"zzz": "💤"
}
Vue.emoji = emoji
Vue.VditorPreview = VditorPreview; Vue.VditorPreview = VditorPreview;
Vue.Vditor = Vditor Vue.Vditor = Vditor