From ddaaa9f333720f599d4b601a75a5c892f18c07d1 Mon Sep 17 00:00:00 2001 From: Aaron <427787340@qq.com> Date: Tue, 27 Aug 2019 18:04:27 +0800 Subject: [PATCH] 完善Detail文档 --- examples/styles/markdown.scss | 1 + examples/views/docs/component/detail.md | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- packages/form/index.vue | 2 +- packages/search/index.vue | 2 +- 4 files changed, 75 insertions(+), 13 deletions(-) diff --git a/examples/styles/markdown.scss b/examples/styles/markdown.scss index 11fe39b..e09e08e 100644 --- a/examples/styles/markdown.scss +++ b/examples/styles/markdown.scss @@ -89,6 +89,7 @@ border-bottom: 1px solid $border; text-align: left; padding: 10px 15px; + max-width: 250px; } & > table th { white-space: nowrap; diff --git a/examples/views/docs/component/detail.md b/examples/views/docs/component/detail.md index f93281b..b1e4a72 100644 --- a/examples/views/docs/component/detail.md +++ b/examples/views/docs/component/detail.md @@ -10,7 +10,7 @@ ```html +``` + +::: ## API @@ -139,6 +197,8 @@ value / v-model | 绑定值 | Object | - | {} list | 表单项配置列表 | Array | - | [] formProps | [el-form组件参数](https://element.eleme.cn/#/zh-CN/component/form#form-attributes) | Object | - | {} span | 数据项占位 | Number | 0 - 24 | 8 +formatter | 格式化 | Function | - | - +agentKey | 代理key,用另一个key的值表示当前内容 | String | - | - ## List 表单项配置列表 @@ -146,4 +206,5 @@ span | 数据项占位 | Number | 0 - 24 | 8 -|-|-|-|- key | 参数名 | String | - | - label | 参数标签 | String | - | - -span | 数据项占位 | Number | 0 - 24 | - \ No newline at end of file +span | 数据项占位 | Number | 0 - 24 | - +group | 数据项分组,为**Object**类型时,格式为{ key, icon, label },key=>分组标识、icon=>Element默认图标名、label=>分组标题 | String,Object | - | - diff --git a/packages/form/index.vue b/packages/form/index.vue index a24d197..41dadb9 100644 --- a/packages/form/index.vue +++ b/packages/form/index.vue @@ -33,7 +33,7 @@