From a6a1d581597114e995500adfaddcd7325baf90ca Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 3 Dec 2021 17:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=96=87=E6=A1=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b0d12c..f6c9b90 100644 --- a/README.md +++ b/README.md @@ -621,6 +621,57 @@ xml中定义如下 ### 层级标题头 (hierarchy title) 在多行数据或者深层次嵌套的数据中,如果数据字段较多,填写时不易区分子元素。luban提供层级标题实现深层次的子字段对应。以上面的多行数据列表为例,第一列为##+表示这是个子字段行。 +- 普通bean结构的子标题 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
##idnamestage
##typeintstringStage
##+ + + namedesclocationitem_idnum
##idnamedesc2desc3desc4desc5desc6
+1task1stage1stage desc11,2,310011
+2task2stage2stage desc23,4,520013
+ +- list,bean 的多行展开多级子标题 + @@ -681,6 +732,12 @@ xml中定义如下
+- list,bean 的水平展开多级子标题 + + + + + @@ -699,9 +756,22 @@ xml中定义如下 - - + +
##idnameitems
##typeintstringlist,Item
##+
1task1110desc1212desc2313desc3
2task1330desc3440desc4
3task1550desc5
2task1330desc3440desc4
3task1550desc5
+ +- map 类型的多级子标题 + + + + + + + + + +
##idlans
##typeintmap,string,string
##+ch-znenjpfr
1苹果appleaaaaaa
2香蕉bananabbbbbb
+ ### 可空数据类型 配置数据中经常有空值的语义需求,实际项目中往往混杂地使用0或-1表达空值,既不自然清晰也不统一。luban借鉴了c#中的可空变量的概念,特地提供可空数据支持。所有原生数据类型,以及enum、bean、和多态bean类型都有相应的可空数据类型。定义方式为 <类型名>?,与c#里的Nullable类型定义方式相同。例如 bool?,int?,long?,double?, EColor?, DemoType?