feat: 修复 eslint 报错, 删除多余生成文件
- 删除 vite.config.ts 自动生成的 vite.config.ts.timestamp... - eslint 报错修复
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
<template>
|
||||
<div class="flex contenteditable align-center space-between" :class="className">
|
||||
<p
|
||||
:id="'editor' + id"
|
||||
ref="editor"
|
||||
:contenteditable="active"
|
||||
class="van-field contenteditable-content"
|
||||
@focus="onFocus"
|
||||
v-html="modelValue"
|
||||
:id="'editor' + id" ref="editor" :contenteditable="active" class="van-field contenteditable-content"
|
||||
@focus="onFocus" v-html="modelValue"
|
||||
></p>
|
||||
<div class="right-icon ml10">
|
||||
<slot name="right-icon"></slot>
|
||||
@@ -75,7 +71,7 @@ const functions = {
|
||||
const [file] = e.target.files;
|
||||
if (!file) return;
|
||||
if (file.size > 2 * 1024 * 1024) {
|
||||
console.error('文件大小不能超过2M');
|
||||
// console.error('文件大小不能超过2M');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -175,7 +171,7 @@ const onFocus = (e) => {
|
||||
// 阻止
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('Editor focused');
|
||||
// console.log('Editor focused');
|
||||
};
|
||||
|
||||
// 保存当前光标位置
|
||||
@@ -247,7 +243,7 @@ const insertImageAtCaret = (html) => {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button + button {
|
||||
button+button {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user