-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化代码注释,优化注释规则逻辑。优化代码模块,新增对go、c和c++文件默认注释规则
- Loading branch information
1 parent
2ede878
commit 42aecdf
Showing
14 changed files
with
1,738 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 39 additions & 39 deletions
78
src/renderer/common/CItem.vue → src/renderer/component/CItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
<template> | ||
<FormItem> | ||
<div slot="label"> | ||
{{itemData.title}} | ||
<Tooltip :content="itemData.tooltip"> | ||
<Icon type="help-circled" size="16" color="#2d8cf0" class="cursor" /> | ||
</Tooltip> | ||
</div> | ||
<i-switch v-model="itemData.enabled"> | ||
<Icon type="android-done" slot="open"></Icon> | ||
<Icon type="android-close" slot="close"></Icon> | ||
</i-switch> | ||
<Button | ||
v-show="itemData.enabled" | ||
size="small" | ||
class="exclude_btn" | ||
type="dashed" | ||
@click="itemData.isModal = true">添加{{itemData.title}}</Button> | ||
</FormItem> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
itemData: { | ||
type: Object, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="css" scoped> | ||
.exclude_btn { | ||
margin-left: 40px; | ||
} | ||
.cursor { | ||
cursor: pointer; | ||
} | ||
<template> | ||
<FormItem> | ||
<div slot="label"> | ||
<Tooltip :content="itemData.tooltip" placement="bottom-start"> | ||
{{itemData.title}} | ||
<Icon type="help-circled" size="16" color="#2d8cf0" class="cursor" /> | ||
</Tooltip> | ||
</div> | ||
<i-switch v-model="itemData.enabled"> | ||
<Icon type="android-done" slot="open"></Icon> | ||
<Icon type="android-close" slot="close"></Icon> | ||
</i-switch> | ||
<Button | ||
v-show="itemData.enabled" | ||
size="small" | ||
class="exclude_btn" | ||
type="dashed" | ||
@click="itemData.isModal = true">添加{{itemData.title}}</Button> | ||
</FormItem> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
itemData: { | ||
type: Object, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="css" scoped> | ||
.exclude_btn { | ||
margin-left: 40px; | ||
} | ||
.cursor { | ||
cursor: pointer; | ||
} | ||
</style> |
140 changes: 70 additions & 70 deletions
140
src/renderer/common/CModal.vue → src/renderer/component/CModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,71 @@ | ||
<template> | ||
<Modal v-model="modal.isModal" :styles="{marginTop: '-20px'}"> | ||
<p slot="header" style="color:#2d8cf0;text-align:center"> | ||
<Icon type="information-circled" /> | ||
<span>{{modal.title}} 配置</span> | ||
</p> | ||
<p slot="footer" style="color:#2d8cf0;text-align:center"> | ||
<Button long @click="modal.isModal=false">确 定</Button> | ||
</p> | ||
<div> | ||
<div class="inline"> | ||
<p>{{modal.input.label}}</p> | ||
<Input | ||
v-model.trim="ipnutVal" | ||
placeholder="按enter键添加" | ||
style="width: 160px" | ||
clearable | ||
@on-enter="add" /> | ||
</div> | ||
<div class="tagContent"> | ||
<Tag | ||
v-for="(item, i) of modal.list" | ||
:key="i" | ||
:name="item" | ||
color="blue" | ||
closable | ||
type="border" | ||
@on-close="del">{{item}}</Tag> | ||
</div> | ||
</div> | ||
</Modal> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
modal: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
data() { | ||
return { | ||
ipnutVal: '', | ||
formData: {} | ||
} | ||
}, | ||
methods: { | ||
add() { | ||
this.$emit('addTag', this.ipnutVal) | ||
this.ipnutVal = '' | ||
}, | ||
del(e, name) { | ||
this.$emit('delTag', name) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="css" scoped> | ||
.tagContent { | ||
height: 100px; | ||
overflow: auto; | ||
} | ||
.inline { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-bottom: 20px; | ||
} | ||
<template> | ||
<Modal v-model="modal.isModal" :styles="{marginTop: '-20px'}"> | ||
<p slot="header" style="color:#2d8cf0;text-align:center"> | ||
<Icon type="information-circled" /> | ||
<span>{{modal.title}} 配置</span> | ||
</p> | ||
<p slot="footer" style="color:#2d8cf0;text-align:center"> | ||
<Button long @click="modal.isModal=false">确 定</Button> | ||
</p> | ||
<div> | ||
<div class="inline"> | ||
<p>{{modal.input.label}}</p> | ||
<Input | ||
v-model.trim="ipnutVal" | ||
placeholder="按enter键添加" | ||
style="width: 160px" | ||
clearable | ||
@on-enter="add" /> | ||
</div> | ||
<div class="tagContent"> | ||
<Tag | ||
v-for="(item, i) of modal.list" | ||
:key="i" | ||
:name="item" | ||
color="blue" | ||
closable | ||
type="border" | ||
@on-close="del">{{item}}</Tag> | ||
</div> | ||
</div> | ||
</Modal> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
modal: { | ||
type: Object, | ||
required: true | ||
} | ||
}, | ||
data() { | ||
return { | ||
ipnutVal: '', | ||
formData: {} | ||
} | ||
}, | ||
methods: { | ||
add() { | ||
this.$emit('addTag', this.ipnutVal) | ||
this.ipnutVal = '' | ||
}, | ||
del(e, name) { | ||
this.$emit('delTag', name) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="css" scoped> | ||
.tagContent { | ||
height: 100px; | ||
overflow: auto; | ||
} | ||
.inline { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-bottom: 20px; | ||
} | ||
</style> |
Oops, something went wrong.