提交 af332614 编写于 作者: 璃白.'s avatar 璃白. 🌻

🐛 修复@用户异步不生效问题

上级 861af5d1
...@@ -184,14 +184,13 @@ export default { ...@@ -184,14 +184,13 @@ export default {
this.resetPreviewMinHeight(); this.resetPreviewMinHeight();
}, },
watch: { watch: {
// userList: { userList: {
// handler: function(val) { handler: function (val, old) {
// if (!val.length) return; if (!old && val) this.createSelectUserDialog();
// this.activeUserIndex = 0; }
// } },
// },
isFocus: { isFocus: {
handler: function(val) { handler: function (val) {
if (val) { if (val) {
this.resetPreviewMinHeight(); this.resetPreviewMinHeight();
} else { } else {
...@@ -204,14 +203,14 @@ export default { ...@@ -204,14 +203,14 @@ export default {
}, },
text: { text: {
immediate: true, immediate: true,
handler: function(val) { handler: function (val) {
this.textContent = val; this.textContent = val;
this.transferMarkdown(val); this.transferMarkdown(val);
} }
}, },
fullScreen: { fullScreen: {
immediate: true, immediate: true,
handler: function(val) { handler: function (val) {
if (val) { if (val) {
document.body.style.overflow = "hidden"; document.body.style.overflow = "hidden";
} else { } else {
...@@ -224,7 +223,7 @@ export default { ...@@ -224,7 +223,7 @@ export default {
}, },
textContent: { textContent: {
immediate: true, immediate: true,
handler: function() { handler: function () {
setTimeout(() => { setTimeout(() => {
if (!this.autoSize) return; if (!this.autoSize) return;
this.reSizeTextareaHeight(); this.reSizeTextareaHeight();
...@@ -232,7 +231,7 @@ export default { ...@@ -232,7 +231,7 @@ export default {
} }
}, },
showSelectUser: { showSelectUser: {
handler: function(val) { handler: function (val) {
if (!val) { if (!val) {
setTimeout(() => { setTimeout(() => {
this.resetQueryInfo(); this.resetQueryInfo();
...@@ -353,12 +352,10 @@ export default { ...@@ -353,12 +352,10 @@ export default {
const textEl = document.getElementById(this.id); const textEl = document.getElementById(this.id);
if (!textEl) return; if (!textEl) return;
const fontSize = getComputedStyle(textEl).getPropertyValue("font-size"); const fontSize = getComputedStyle(textEl).getPropertyValue("font-size");
const lineHeight = getComputedStyle(textEl).getPropertyValue( const lineHeight =
"line-height" getComputedStyle(textEl).getPropertyValue("line-height");
); const fontFamily =
const fontFamily = getComputedStyle(textEl).getPropertyValue( getComputedStyle(textEl).getPropertyValue("font-family");
"font-family"
);
const hideElId = type + this.id; const hideElId = type + this.id;
let hideEl = document.getElementById(hideElId); let hideEl = document.getElementById(hideElId);
if (!hideEl) { if (!hideEl) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册