Skip to content

Commit 495eaeb

Browse files
committed
兼容v2.5.3特性
根据childrenType定义子参数类型,渲染不同结构数据展示 优化crud数据表字段长度支持小数位输入
1 parent 51270b4 commit 495eaeb

File tree

7 files changed

+386
-344
lines changed

7 files changed

+386
-344
lines changed

apidoc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>apidoc</title><script src=./config.js></script><link href=static/css/app.9ad53ef8.css rel=preload as=style><link href=static/css/chunk-vendors.97045985.css rel=preload as=style><link href=static/js/app.20ba8e58.js rel=preload as=script><link href=static/js/chunk-vendors.3d189a61.js rel=preload as=script><link href=static/css/chunk-vendors.97045985.css rel=stylesheet><link href=static/css/app.9ad53ef8.css rel=stylesheet></head><body><noscript><strong>We're sorry but apidoc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.3d189a61.js></script><script src=static/js/app.20ba8e58.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>apidoc</title><script src=./config.js></script><link href=static/css/app.fca02634.css rel=preload as=style><link href=static/css/chunk-vendors.97045985.css rel=preload as=style><link href=static/js/app.5eb34bdd.js rel=preload as=script><link href=static/js/chunk-vendors.3d189a61.js rel=preload as=script><link href=static/css/chunk-vendors.97045985.css rel=stylesheet><link href=static/css/app.fca02634.css rel=stylesheet></head><body><noscript><strong>We're sorry but apidoc doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.3d189a61.js></script><script src=static/js/app.5eb34bdd.js></script></body></html>

apidoc/static/css/app.9ad53ef8.css renamed to apidoc/static/css/app.fca02634.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apidoc/static/js/app.20ba8e58.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

apidoc/static/js/app.5eb34bdd.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/content/DocTable.vue

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ export default {
121121
title: "类型",
122122
dataIndex: "type",
123123
align: "center",
124-
width: 100
124+
width: 130,
125+
customRender: (text, record) => {
126+
if (text == "array" && record.childrenType) {
127+
return `${text}<${record.childrenType}>`;
128+
} else {
129+
return text;
130+
}
131+
}
125132
},
126133
{
127134
title: "必填",
@@ -158,7 +165,14 @@ export default {
158165
title: "类型",
159166
dataIndex: "type",
160167
align: "center",
161-
width: 100
168+
width: 130,
169+
customRender: text => {
170+
if (text == 1) {
171+
return <Icon type="check" style="color:#1890ff" />;
172+
} else {
173+
return "";
174+
}
175+
}
162176
},
163177
{
164178
title: "默认值",

0 commit comments

Comments
 (0)