Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
璃白.
markdown-editor
提交
f78b7f90
M
markdown-editor
项目概览
璃白.
/
markdown-editor
上一次同步 接近 2 年
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
markdown-editor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f78b7f90
编写于
9月 13, 2021
作者:
璃白.
🌻
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:添加@快捷工具
上级
0ad1f0de
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
10 deletion
+27
-10
src/App.vue
src/App.vue
+8
-8
src/assets/style/font/iconfont.ttf
src/assets/style/font/iconfont.ttf
+0
-0
src/assets/style/iconfont.less
src/assets/style/iconfont.less
+4
-1
src/components/header/components/tool-button.vue
src/components/header/components/tool-button.vue
+3
-1
src/components/header/md-header.vue
src/components/header/md-header.vue
+12
-0
未找到文件。
src/App.vue
浏览文件 @
f78b7f90
...
...
@@ -5,7 +5,7 @@
>
<markdown-header
:id=
"textareaId"
:ref=
"'md_header' + id"
:ref=
"'md_header
_
' + id"
:text.sync=
"text"
:selectionInfo.sync=
"selectionInfo"
:showPreview.sync=
"showPreview"
...
...
@@ -63,9 +63,9 @@
:show-help=
"showHelp"
:formatType=
"formatType"
:userList=
"userList"
:ref=
"'md_textarea' + id"
:ref=
"'md_textarea
_
' + id"
:renderLinks=
"renderLinks"
@
tab=
"$refs['md_header' + id].tab()"
@
tab=
"$refs['md_header
_
' + id].tab()"
@
submit=
"submit"
@
enter=
"handleEnter"
@
getFilteredTags=
"filteredTags = $event"
...
...
@@ -213,7 +213,7 @@ export default {
return
"
textarea_
"
+
this
.
id
;
},
headId
()
{
return
"
md_header
"
+
this
.
id
;
return
"
md_header
_
"
+
this
.
id
;
},
textareaHeight
()
{
const
height
=
this
.
height
;
...
...
@@ -235,12 +235,12 @@ export default {
_this
.
text
=
newText
;
_this
.
$refs
.
mdUploadFile
.
value
=
""
;
_this
.
uploadImgPercent
=
100
;
_this
.
$refs
[
"
md_textarea
"
+
_this
.
id
].
waiting
=
false
;
_this
.
$refs
[
"
md_textarea
_
"
+
_this
.
id
].
waiting
=
false
;
}
else
{
_this
.
$refs
[
"
md_textarea
"
+
_this
.
id
].
waiting
=
true
;
_this
.
$refs
[
"
md_textarea
_
"
+
_this
.
id
].
waiting
=
true
;
_this
.
uploadImgPercent
=
parseInt
(
url
);
}
_this
.
$refs
[
"
md_header
"
+
_this
.
id
].
loading
(
_this
.
$refs
[
"
md_header
_
"
+
_this
.
id
].
loading
(
"
img
"
,
_this
.
uploadImgPercent
);
...
...
@@ -279,7 +279,7 @@ export default {
}
else
{
_this
.
uploadVideoPercent
=
parseInt
(
url
);
}
_this
.
$refs
[
"
md_header
"
+
_this
.
id
].
loading
(
_this
.
$refs
[
"
md_header
_
"
+
_this
.
id
].
loading
(
"
video
"
,
_this
.
uploadVideoPercent
);
...
...
src/assets/style/font/iconfont.ttf
浏览文件 @
f78b7f90
无法预览此类型文件
src/assets/style/iconfont.less
浏览文件 @
f78b7f90
...
...
@@ -83,6 +83,9 @@
content: "\e63d";
}
.icon-aite:before {
content: "\e634";
}
.icon-fengexian:before {
content: "\e60a";
}
...
...
@@ -104,7 +107,7 @@
}
.icon-help:before {
content: "\e64
1
";
content: "\e64
2
";
}
.icon-file:before {
...
...
src/components/header/components/tool-button.vue
浏览文件 @
f78b7f90
...
...
@@ -235,6 +235,7 @@ export default {
case
"
ul
"
:
case
"
task
"
:
case
"
table
"
:
case
"
call
"
:
this
.
$emit
(
"
updateText
"
,
{
startStr
,
endStr
});
break
;
case
"
format
"
:
...
...
@@ -361,7 +362,8 @@ export default {
&.icon-lianjie {
font-size: 16px;
}
&.icon-file {
&.icon-file,
&.icon-aite {
font-size: 19px;
}
}
...
...
src/components/header/md-header.vue
浏览文件 @
f78b7f90
...
...
@@ -180,6 +180,13 @@ export default {
tip
:
"
全屏模式
"
},
toolButtonList
:
[
{
name
:
"
call
"
,
icon
:
"
aite
"
,
tip
:
"
@用户
"
,
startStr
:
"
@
"
,
endStr
:
""
},
{
name
:
"
headline
"
,
icon
:
"
biaoti
"
,
...
...
@@ -399,6 +406,11 @@ export default {
selectionInfo
.
selectionStart
+
startStr
.
length
;
this
.
updateText
(
newText
,
len
);
if
(
startStr
===
"
@
"
)
{
setTimeout
(()
=>
{
this
.
$parent
.
$refs
[
"
md_
"
+
this
.
id
].
createSelectUserDialog
(
'
android
'
);
},
200
);
}
},
updateText
(
val
,
len
=
0
)
{
const
textEl
=
document
.
getElementById
(
this
.
id
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录