Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
ldp-docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
doc
ldp-docs
Commits
ff8cf170
Commit
ff8cf170
authored
Aug 06, 2020
by
祁新
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: LDP前端框架组件说明
parent
6a7db89b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
LDP前端框架自定义组件使用说明.md
开发文档/LDP前端框架自定义组件使用说明.md
+13
-19
No files found.
开发文档/LDP前端框架自定义组件使用说明.md
View file @
ff8cf170
...
...
@@ -20,9 +20,8 @@
// 设置显示loading状态
showLoading: true
})
```
```
2.
调用接口时
**关闭默认错误提示**
...
...
@@ -34,10 +33,7 @@
// 设置关闭报错提示
noMessage: true
})
```
```
### 会话已过期说明
> 当用户登录token过期后,访问接口会报错401,此时从axios拦截器中获取到错误码,会默认进行跳转到401页面。目前会话失效有两种模式。(跳转模式,弹框模式)
...
...
@@ -59,11 +55,8 @@
checkTokenType: 0,
...
}
```

2.
弹框提示
...
...
@@ -114,7 +107,7 @@
> 当前前端项目中大部分表单处理都是使用此组件
`DynamicForm`
`
参数说明
`DynamicForm`
参数说明
| 参数名 | 类型 | 说明 |
| ------------ | --------- | ---------------------------------- |
...
...
@@ -145,17 +138,18 @@
`formConfig`
表单控件配置说明
| 属性名 | 类型 | 说明 |
| ------------- | --------------- | ------------------------------------------ |
| ------------- | --------------- | ------------------------------------------ |
|
`label`
|
`String`
| 控件标题 |
| `key` | `String` | 表单绑定的字段名 |
| `type` | `String` | 表单类型 `input|select|databox|textarea`等 |
| `span` | `Number` | 一行按照24列分 每一列占用的比例 |
| `placeholder` | `String` | 控件提示信息 |
| `rules` | `Array||Object` | 详情请查看`element-ui`常规验证用 |
|
`key`
|
`String`
| 表单绑定的字段名 |
|
`type`
|
`String`
| 表单类型
`input|select|databox|textarea`
等 |
|
`span`
|
`Number`
| 一行按照24列分 每一列占用的比例 |
|
`placeholder`
|
`String`
| 控件提示信息 |
|
`rules`
|
`Array||Object`
| 详情请查看
`element-ui`
常规验证用 |
使用例子
```vue
<template>
<div class="app-container page-overflow-y">
...
...
@@ -211,7 +205,7 @@
}
</script>
```
### 设计器生成视图运行时组件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment