Skip to content

Commit eb7523c

Browse files
committed
fix: v-emoji-picker组件无效
1 parent 7f9a55d commit eb7523c

File tree

8 files changed

+161
-142
lines changed

8 files changed

+161
-142
lines changed

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
5+
"eslintIntegration": true,
6+
"htmlWhitespaceSensitivity": "ignore",
7+
"endOfLine": "auto"
8+
}

admin/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"homepage": "https://github.com/miqilin21/vue-blog#readme",
2828
"devDependencies": {
29-
"npm-run-all": "^4.1.5"
29+
"npm-run-all": "^4.1.5",
30+
"prettier": "^2.5.1"
3031
}
31-
}
32+
}

web/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/App.vue

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
</template>
66

77
<script>
8-
window.addEventListener("beforeunload", e => {
9-
window.scroll(0, 0);
10-
});
8+
window.addEventListener('beforeunload', (e) => {
9+
window.scroll(0, 0)
10+
})
1111
export default {
12-
name: "app",
12+
name: 'app',
1313
methods: {
1414
love() {
15-
!(function(e, t, a) {
15+
!(function (e, t, a) {
1616
function r() {
1717
for (var e = 0; e < s.length; e++)
1818
s[e].alpha <= 0
@@ -21,81 +21,81 @@ export default {
2121
(s[e].scale += 0.004),
2222
(s[e].alpha -= 0.013),
2323
(s[e].el.style.cssText =
24-
"left:" +
24+
'left:' +
2525
s[e].x +
26-
"px;top:" +
26+
'px;top:' +
2727
s[e].y +
28-
"px;opacity:" +
28+
'px;opacity:' +
2929
s[e].alpha +
30-
";transform:scale(" +
30+
';transform:scale(' +
3131
s[e].scale +
32-
"," +
32+
',' +
3333
s[e].scale +
34-
") rotate(45deg);background:" +
34+
') rotate(45deg);background:' +
3535
s[e].color +
36-
";z-index:99999"));
37-
requestAnimationFrame(r);
36+
';z-index:99999'))
37+
requestAnimationFrame(r)
3838
}
3939
function n() {
40-
var t = "function" == typeof e.onclick && e.onclick;
41-
e.onclick = function(e) {
42-
t && t(), o(e);
43-
};
40+
var t = 'function' == typeof e.onclick && e.onclick
41+
e.onclick = function (e) {
42+
t && t(), o(e)
43+
}
4444
}
4545
function o(e) {
46-
var a = t.createElement("div");
47-
(a.className = "heart"),
46+
var a = t.createElement('div')
47+
;(a.className = 'heart'),
4848
s.push({
4949
el: a,
5050
x: e.clientX - 5,
5151
y: e.clientY - 5,
5252
scale: 1,
5353
alpha: 1,
54-
color: c()
54+
color: c(),
5555
}),
56-
t.body.appendChild(a);
56+
t.body.appendChild(a)
5757
}
5858
function i(e) {
59-
var a = t.createElement("style");
60-
a.type = "text/css";
59+
var a = t.createElement('style')
60+
a.type = 'text/css'
6161
try {
62-
a.appendChild(t.createTextNode(e));
62+
a.appendChild(t.createTextNode(e))
6363
} catch (t) {
64-
a.styleSheet.cssText = e;
64+
a.styleSheet.cssText = e
6565
}
66-
t.getElementsByTagName("head")[0].appendChild(a);
66+
t.getElementsByTagName('head')[0].appendChild(a)
6767
}
6868
function c() {
6969
return (
70-
"rgb(" +
70+
'rgb(' +
7171
~~(255 * Math.random()) +
72-
"," +
72+
',' +
7373
~~(255 * Math.random()) +
74-
"," +
74+
',' +
7575
~~(255 * Math.random()) +
76-
")"
77-
);
76+
')'
77+
)
7878
}
79-
var s = [];
80-
(e.requestAnimationFrame =
79+
var s = []
80+
;(e.requestAnimationFrame =
8181
e.requestAnimationFrame ||
8282
e.webkitRequestAnimationFrame ||
8383
e.mozRequestAnimationFrame ||
8484
e.oRequestAnimationFrame ||
8585
e.msRequestAnimationFrame ||
86-
function(e) {
87-
setTimeout(e, 1e3 / 60);
86+
function (e) {
87+
setTimeout(e, 1e3 / 60)
8888
}),
8989
i(
9090
".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"
9191
),
9292
n(),
93-
r();
94-
})(window, document);
95-
}
93+
r()
94+
})(window, document)
95+
},
9696
},
9797
mounted() {
98-
this.love();
99-
}
100-
};
98+
this.love()
99+
},
100+
}
101101
</script>

0 commit comments

Comments
 (0)