Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
feat: 增加文档链接
Browse files Browse the repository at this point in the history
  • Loading branch information
dream2023 committed Feb 2, 2020
1 parent 77f3844 commit 63a3d06
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
<template>
<ele-form
v-model="formAttr"
:form-desc="computedFormDesc"
:isShowBackBtn="false"
:isShowSubmitBtn="false"
:span="20"
ref="ele-form"
labelPosition="top"
></ele-form>
<div>
<div class="app-main-right-link">
<el-link
type="primary"
target="_blank"
href="https://www.yuque.com/chaojie-vjiel/vbwzgu/dyw8a7"
>点击查看表单配置</el-link
>&nbsp;
<span style="vertical-align: middle;">属性详细解释</span>
</div>

<ele-form
v-model="formAttr"
:form-desc="computedFormDesc"
:isShowBackBtn="false"
:isShowSubmitBtn="false"
:span="20"
ref="ele-form"
labelPosition="top"
></ele-form>
</div>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<template v-if="isShow">
<div v-if="attrLink" class="attr-link">
<div v-if="attrLink" class="app-main-right-link">
<el-link type="primary" target="_blank" :href="attrLink"
>点击查看&nbsp;{{ currentFormItem.type }}组件</el-link
>&nbsp;
Expand Down Expand Up @@ -47,14 +47,3 @@ export default {
}
}
</script>

<style>
.attr-link {
color: #666;
font-size: 14px;
margin-left: 24px;
padding-left: 10px;
margin-bottom: 10px;
border-left: 3px solid #eee;
}
</style>
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<template>
<div>
<template v-if="currentFormItem">
<div class="app-main-right-link">
<el-link
type="primary"
target="_blank"
href="https://www.yuque.com/chaojie-vjiel/vbwzgu/iw5dzf"
>点击查看通用配置</el-link
>&nbsp;
<span style="vertical-align: middle;">属性详细解释</span>
</div>
<ele-form
:formData="currentFormItem"
:formDesc="formDesc"
Expand Down Expand Up @@ -98,7 +107,9 @@ export default {
type: 'textarea',
label: '校检规则',
title: '新增校检规则',
displayFormatter: val => (val ? serialize(val, { space: 2 }) : '')
displayFormatter: val => (val ? serialize(val, { space: 2 }) : ''),
tip:
'校检规则文档, 请<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/qzzkpd" class="el-link el-link--primary">点击查看</a>'
},
tip: {
type: 'input',
Expand Down
9 changes: 9 additions & 0 deletions src/components/app-main/components/main-right/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,13 @@ export default {
margin-top: 0 !important;
padding-top: 0 !important;
}
.app-main-right-link {
color: #666;
font-size: 14px;
margin-left: 24px;
padding-left: 10px;
margin-bottom: 10px;
border-left: 3px solid #eee;
}
</style>
3 changes: 2 additions & 1 deletion src/config/cascader.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/checkbox-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/radio-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down
3 changes: 2 additions & 1 deletion src/config/tree-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export default {
},
options: {
type: 'json-editor',
label: '选项'
label: '选项',
tip: 'options支持`API接口`、`数组`、`函数`、`Promise`等, 具体看<a target="_blank" href="https://www.yuque.com/chaojie-vjiel/vbwzgu/rgenav" class="el-link el-link--primary">文档</a>'
}
},
commonData: {
Expand Down

0 comments on commit 63a3d06

Please sign in to comment.