Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
56cbff35
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
56cbff35
编写于
7月 08, 2018
作者:
T
Tim Zallmann
提交者:
Fatih Acet
7月 08, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Resolve "MR Refactor: Improve performance by setting v-once"
上级
53760e8d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
29 deletion
+20
-29
app/assets/javascripts/diffs/components/diff_file_header.vue
app/assets/javascripts/diffs/components/diff_file_header.vue
+1
-0
app/assets/javascripts/diffs/components/diff_line_gutter_content.vue
...javascripts/diffs/components/diff_line_gutter_content.vue
+1
-0
app/assets/javascripts/diffs/components/diff_table_cell.vue
app/assets/javascripts/diffs/components/diff_table_cell.vue
+0
-8
app/assets/javascripts/diffs/components/inline_diff_table_row.vue
...ts/javascripts/diffs/components/inline_diff_table_row.vue
+6
-5
app/assets/javascripts/diffs/components/parallel_diff_table_row.vue
.../javascripts/diffs/components/parallel_diff_table_row.vue
+12
-16
未找到文件。
app/assets/javascripts/diffs/components/diff_file_header.vue
浏览文件 @
56cbff35
...
...
@@ -145,6 +145,7 @@ export default {
@
click.stop=
"handleToggle"
/>
<a
v-once
ref=
"titleWrapper"
:href=
"titleLink"
class=
"append-right-4"
...
...
app/assets/javascripts/diffs/components/diff_line_gutter_content.vue
浏览文件 @
56cbff35
...
...
@@ -189,6 +189,7 @@ export default {
</button>
<a
v-if=
"lineNumber"
v-once
:data-linenumber=
"lineNumber"
:href=
"lineHref"
>
...
...
app/assets/javascripts/diffs/components/diff_table_cell.vue
浏览文件 @
56cbff35
...
...
@@ -117,14 +117,6 @@ export default {
<
template
>
<td
v-if=
"isContentLine"
:class=
"lineType"
class=
"line_content"
v-html=
"normalizedLine.richText"
>
</td>
<td
v-else
:class=
"classNameMap"
>
<diff-line-gutter-content
...
...
app/assets/javascripts/diffs/components/inline_diff_table_row.vue
浏览文件 @
56cbff35
...
...
@@ -94,11 +94,12 @@ export default {
:is-hover=
"isHover"
class=
"diff-line-num new_line"
/>
<diff-table-cell
<td
v-once
:class=
"line.type"
:diff-file=
"diffFile
"
:line=
"line
"
:is-content-line=
"true"
/
>
class=
"line_content
"
v-html=
"line.richText
"
>
</td
>
</tr>
</
template
>
app/assets/javascripts/diffs/components/parallel_diff_table_row.vue
浏览文件 @
56cbff35
...
...
@@ -113,17 +113,15 @@ export default {
:diff-view-type=
"parallelDiffViewType"
class=
"diff-line-num old_line"
/>
<diff-table-cell
<td
v-once
:id=
"line.left.lineCode"
:diff-file=
"diffFile"
:line=
"line"
:is-content-line=
"true"
:line-position=
"linePositionLeft"
:line-type=
"parallelViewLeftLineType"
:diff-view-type=
"parallelDiffViewType"
:class=
"parallelViewLeftLineType"
class=
"line_content parallel left-side"
@
mousedown.native=
"handleParallelLineMouseDown"
/>
v-html=
"line.left.richText"
>
</td>
<diff-table-cell
:diff-file=
"diffFile"
:line=
"line"
...
...
@@ -135,16 +133,14 @@ export default {
:diff-view-type=
"parallelDiffViewType"
class=
"diff-line-num new_line"
/>
<diff-table-cell
<td
v-once
:id=
"line.right.lineCode"
:diff-file=
"diffFile"
:line=
"line"
:is-content-line=
"true"
:line-position=
"linePositionRight"
:line-type=
"line.right.type"
:diff-view-type=
"parallelDiffViewType"
:class=
"line.right.type"
class=
"line_content parallel right-side"
@
mousedown.native=
"handleParallelLineMouseDown"
/>
v-html=
"line.right.richText"
>
</td>
</tr>
</
template
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录