Commit 5da2e1a3 by 胡悦

修改样式

1 parent 3308eab8
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
// 创建a标签 // 创建a标签
let node = document.createElement('img') let node = document.createElement('img')
node.src = url node.src = url
node.setAttribute('ondragstart', 'return false;') // node.setAttribute('ondragstart', 'return false;')
this.insertNode(node) this.insertNode(node)
}, },
onFocus() { onFocus() {
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
'右太极' '右太极'
] ]
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '') const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
const replaceImg = cutImg.replace(/(\d){1,2}.gif" ondragstart="return false;">/g, function(str) { const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) {
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
}) })
...@@ -559,6 +559,9 @@ export default { ...@@ -559,6 +559,9 @@ export default {
img { img {
width: 24px; width: 24px;
height: 24px; height: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
} }
.active { .active {
background: #dcdfe6; background: #dcdfe6;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!