@moheng-design/ui-skill 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/cli.js +0 -0
- package/bin/lib/upgrade.mjs +27 -6
- package/generated/SKILL.md +49 -36
- package/generated/contracts.json +1504 -620
- package/generated/plugin-data.js +113 -19
- package/generated/reference.md +570 -258
- package/generated/rules.json +93 -19
- package/generated/skills/moheng-ui-bootstrap/SKILL.md +1 -1
- package/generated/skills/moheng-ui-page/SKILL.md +7 -4
- package/generated/skills/moheng-ui-review/SKILL.md +1 -1
- package/generated/skills/moheng-ui-upgrade/SKILL.md +5 -3
- package/handwritten/anti-patterns.md +7 -5
- package/handwritten/canvas-model.md +18 -9
- package/handwritten/conventions.md +156 -82
- package/handwritten/skills/page.md +4 -1
- package/handwritten/skills/upgrade.md +5 -3
- package/package.json +11 -11
package/generated/plugin-data.js
CHANGED
|
@@ -569,7 +569,7 @@ export default {
|
|
|
569
569
|
"targets": [
|
|
570
570
|
"js"
|
|
571
571
|
],
|
|
572
|
-
"message": "<Icon> 的 name 取值须为 'activity' | 'arrow-down' | 'arrow-up' | 'calendar' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-alert' | 'circle-check' | 'circle-check-big' | 'columns-2' | 'download' | 'ellipsis' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'pencil' | 'plus' | 'refresh-cw' | 'search' | 'settings' | 'shield-check' | 'sliders-horizontal' | 'trash-2' | 'triangle-alert' | 'upload' | 'x' 之一",
|
|
572
|
+
"message": "<Icon> 的 name 取值须为 'activity' | 'arrow-down' | 'arrow-up' | 'calendar' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-left' | 'chevrons-right' | 'circle-alert' | 'circle-check' | 'circle-check-big' | 'columns-2' | 'download' | 'ellipsis' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'pencil' | 'plus' | 'refresh-cw' | 'search' | 'settings' | 'shield-check' | 'sliders-horizontal' | 'trash-2' | 'triangle-alert' | 'upload' | 'x' 之一",
|
|
573
573
|
"rationale": "取值与顺序取自契约 contracts/foundation/icon/icon.ts,不得在别处另立一份。",
|
|
574
574
|
"component": "Icon",
|
|
575
575
|
"prop": "name",
|
|
@@ -583,6 +583,8 @@ export default {
|
|
|
583
583
|
"chevron-left",
|
|
584
584
|
"chevron-right",
|
|
585
585
|
"chevron-up",
|
|
586
|
+
"chevrons-left",
|
|
587
|
+
"chevrons-right",
|
|
586
588
|
"circle-alert",
|
|
587
589
|
"circle-check",
|
|
588
590
|
"circle-check-big",
|
|
@@ -664,7 +666,7 @@ export default {
|
|
|
664
666
|
"targets": [
|
|
665
667
|
"js"
|
|
666
668
|
],
|
|
667
|
-
"message": "<Button> 的 variant 取值须为 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link' 之一",
|
|
669
|
+
"message": "<Button> 的 variant 取值须为 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'destructive-outline' | 'link' 之一",
|
|
668
670
|
"rationale": "取值与顺序取自契约 contracts/foundation/actions/button.ts,不得在别处另立一份。",
|
|
669
671
|
"component": "Button",
|
|
670
672
|
"prop": "variant",
|
|
@@ -674,6 +676,7 @@ export default {
|
|
|
674
676
|
"outline",
|
|
675
677
|
"ghost",
|
|
676
678
|
"destructive",
|
|
679
|
+
"destructive-outline",
|
|
677
680
|
"link"
|
|
678
681
|
]
|
|
679
682
|
},
|
|
@@ -936,6 +939,37 @@ export default {
|
|
|
936
939
|
"defaultValue"
|
|
937
940
|
]
|
|
938
941
|
},
|
|
942
|
+
{
|
|
943
|
+
"id": "props-whitelist-date-input",
|
|
944
|
+
"kind": "props-whitelist",
|
|
945
|
+
"scope": "both",
|
|
946
|
+
"severity": "warn",
|
|
947
|
+
"targets": [
|
|
948
|
+
"js"
|
|
949
|
+
],
|
|
950
|
+
"message": "<DateInput> 不接受该 prop。已声明的 props:value、defaultValue、onValueChange、placeholder、disabled、invalid、today。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
951
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/date-input.ts",
|
|
952
|
+
"component": "DateInput",
|
|
953
|
+
"allowed": [
|
|
954
|
+
"value",
|
|
955
|
+
"defaultValue",
|
|
956
|
+
"onValueChange",
|
|
957
|
+
"placeholder",
|
|
958
|
+
"disabled",
|
|
959
|
+
"invalid",
|
|
960
|
+
"today",
|
|
961
|
+
"key",
|
|
962
|
+
"ref",
|
|
963
|
+
"className",
|
|
964
|
+
"style",
|
|
965
|
+
"children"
|
|
966
|
+
],
|
|
967
|
+
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
968
|
+
"omitted": [
|
|
969
|
+
"defaultValue",
|
|
970
|
+
"onChange"
|
|
971
|
+
]
|
|
972
|
+
},
|
|
939
973
|
{
|
|
940
974
|
"id": "props-whitelist-field",
|
|
941
975
|
"kind": "props-whitelist",
|
|
@@ -2090,7 +2124,7 @@ export default {
|
|
|
2090
2124
|
"targets": [
|
|
2091
2125
|
"js"
|
|
2092
2126
|
],
|
|
2093
|
-
"message": "<Table> 不接受该 prop。已声明的 props:columns、rows、rowKey、selectable、selected、onSelectedChange、onRowClick、sort、onSortChange、empty、density。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2127
|
+
"message": "<Table> 不接受该 prop。已声明的 props:columns、rows、rowKey、selectable、selected、onSelectedChange、onRowClick、sort、onSortChange、empty、density、trailingRow。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2094
2128
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/table.ts",
|
|
2095
2129
|
"component": "Table",
|
|
2096
2130
|
"allowed": [
|
|
@@ -2105,6 +2139,7 @@ export default {
|
|
|
2105
2139
|
"onSortChange",
|
|
2106
2140
|
"empty",
|
|
2107
2141
|
"density",
|
|
2142
|
+
"trailingRow",
|
|
2108
2143
|
"key",
|
|
2109
2144
|
"ref",
|
|
2110
2145
|
"className",
|
|
@@ -2240,7 +2275,7 @@ export default {
|
|
|
2240
2275
|
"targets": [
|
|
2241
2276
|
"js"
|
|
2242
2277
|
],
|
|
2243
|
-
"message": "<Dialog> 不接受该 prop。已声明的 props:open、title、description、size、footer、onClose、initialFocus、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2278
|
+
"message": "<Dialog> 不接受该 prop。已声明的 props:open、title、description、size、footer、footerNote、onClose、initialFocus、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2244
2279
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/dialog.ts",
|
|
2245
2280
|
"component": "Dialog",
|
|
2246
2281
|
"allowed": [
|
|
@@ -2249,6 +2284,7 @@ export default {
|
|
|
2249
2284
|
"description",
|
|
2250
2285
|
"size",
|
|
2251
2286
|
"footer",
|
|
2287
|
+
"footerNote",
|
|
2252
2288
|
"onClose",
|
|
2253
2289
|
"initialFocus",
|
|
2254
2290
|
"children",
|
|
@@ -2623,6 +2659,36 @@ export default {
|
|
|
2623
2659
|
"right"
|
|
2624
2660
|
]
|
|
2625
2661
|
},
|
|
2662
|
+
{
|
|
2663
|
+
"id": "props-whitelist-application-date-range-filter",
|
|
2664
|
+
"kind": "props-whitelist",
|
|
2665
|
+
"scope": "both",
|
|
2666
|
+
"severity": "warn",
|
|
2667
|
+
"targets": [
|
|
2668
|
+
"js"
|
|
2669
|
+
],
|
|
2670
|
+
"message": "<ApplicationDateRangeFilter> 不接受该 prop。已声明的 props:label、labelText、value、onValueChange、disabled、today。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2671
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/application-date-range-filter.ts",
|
|
2672
|
+
"component": "ApplicationDateRangeFilter",
|
|
2673
|
+
"allowed": [
|
|
2674
|
+
"label",
|
|
2675
|
+
"labelText",
|
|
2676
|
+
"value",
|
|
2677
|
+
"onValueChange",
|
|
2678
|
+
"disabled",
|
|
2679
|
+
"today",
|
|
2680
|
+
"key",
|
|
2681
|
+
"ref",
|
|
2682
|
+
"className",
|
|
2683
|
+
"style",
|
|
2684
|
+
"children"
|
|
2685
|
+
],
|
|
2686
|
+
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
2687
|
+
"omitted": [
|
|
2688
|
+
"defaultValue",
|
|
2689
|
+
"onChange"
|
|
2690
|
+
]
|
|
2691
|
+
},
|
|
2626
2692
|
{
|
|
2627
2693
|
"id": "props-whitelist-application-filter-menu",
|
|
2628
2694
|
"kind": "props-whitelist",
|
|
@@ -2704,7 +2770,7 @@ export default {
|
|
|
2704
2770
|
"targets": [
|
|
2705
2771
|
"js"
|
|
2706
2772
|
],
|
|
2707
|
-
"message": "<ListTablePagination> 不接受该 prop。已声明的 props:page、pageSize、total、pageSizeOptions、onPageChange、onPageSizeChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2773
|
+
"message": "<ListTablePagination> 不接受该 prop。已声明的 props:page、pageSize、total、pageSizeOptions、showJumper、onPageChange、onPageSizeChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2708
2774
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/list-table-pagination.ts",
|
|
2709
2775
|
"component": "ListTablePagination",
|
|
2710
2776
|
"allowed": [
|
|
@@ -2712,6 +2778,7 @@ export default {
|
|
|
2712
2778
|
"pageSize",
|
|
2713
2779
|
"total",
|
|
2714
2780
|
"pageSizeOptions",
|
|
2781
|
+
"showJumper",
|
|
2715
2782
|
"onPageChange",
|
|
2716
2783
|
"onPageSizeChange",
|
|
2717
2784
|
"key",
|
|
@@ -2840,7 +2907,7 @@ export default {
|
|
|
2840
2907
|
"targets": [
|
|
2841
2908
|
"js"
|
|
2842
2909
|
],
|
|
2843
|
-
"message": "<SystemButton> 的 intent 取值须为 'primary' | 'secondary' | 'quiet' | 'link' | 'destructive' 之一",
|
|
2910
|
+
"message": "<SystemButton> 的 intent 取值须为 'primary' | 'secondary' | 'quiet' | 'link' | 'destructive' | 'destructive-outline' 之一",
|
|
2844
2911
|
"rationale": "取值与顺序取自契约 contracts/application-atomic/system-button.ts,不得在别处另立一份。",
|
|
2845
2912
|
"component": "SystemButton",
|
|
2846
2913
|
"prop": "intent",
|
|
@@ -2849,7 +2916,8 @@ export default {
|
|
|
2849
2916
|
"secondary",
|
|
2850
2917
|
"quiet",
|
|
2851
2918
|
"link",
|
|
2852
|
-
"destructive"
|
|
2919
|
+
"destructive",
|
|
2920
|
+
"destructive-outline"
|
|
2853
2921
|
]
|
|
2854
2922
|
},
|
|
2855
2923
|
{
|
|
@@ -2878,14 +2946,13 @@ export default {
|
|
|
2878
2946
|
"targets": [
|
|
2879
2947
|
"js"
|
|
2880
2948
|
],
|
|
2881
|
-
"message": "<ApplicationModuleSwitcher> 不接受该 prop。已声明的 props:moduleName、modules、currentModule、
|
|
2949
|
+
"message": "<ApplicationModuleSwitcher> 不接受该 prop。已声明的 props:moduleName、modules、currentModule、open、onOpenChange、onSelect。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2882
2950
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-module-switcher.ts",
|
|
2883
2951
|
"component": "ApplicationModuleSwitcher",
|
|
2884
2952
|
"allowed": [
|
|
2885
2953
|
"moduleName",
|
|
2886
2954
|
"modules",
|
|
2887
2955
|
"currentModule",
|
|
2888
|
-
"glyph",
|
|
2889
2956
|
"open",
|
|
2890
2957
|
"onOpenChange",
|
|
2891
2958
|
"onSelect",
|
|
@@ -2908,17 +2975,16 @@ export default {
|
|
|
2908
2975
|
"targets": [
|
|
2909
2976
|
"js"
|
|
2910
2977
|
],
|
|
2911
|
-
"message": "<ApplicationPrimaryNavigation> 不接受该 prop。已声明的 props:appName、
|
|
2978
|
+
"message": "<ApplicationPrimaryNavigation> 不接受该 prop。已声明的 props:appName、appGlyph、activeAction、actionBadges、onAction、account。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2912
2979
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-primary-navigation.ts",
|
|
2913
2980
|
"component": "ApplicationPrimaryNavigation",
|
|
2914
2981
|
"allowed": [
|
|
2915
2982
|
"appName",
|
|
2916
|
-
"appDescription",
|
|
2917
2983
|
"appGlyph",
|
|
2918
2984
|
"activeAction",
|
|
2919
2985
|
"actionBadges",
|
|
2920
2986
|
"onAction",
|
|
2921
|
-
"
|
|
2987
|
+
"account",
|
|
2922
2988
|
"key",
|
|
2923
2989
|
"ref",
|
|
2924
2990
|
"className",
|
|
@@ -2936,7 +3002,7 @@ export default {
|
|
|
2936
3002
|
"targets": [
|
|
2937
3003
|
"js"
|
|
2938
3004
|
],
|
|
2939
|
-
"message": "<ApplicationPrimaryNavigation> 的 appGlyph 取值须为 'activity' | 'arrow-down' | 'arrow-up' | 'calendar' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-alert' | 'circle-check' | 'circle-check-big' | 'columns-2' | 'download' | 'ellipsis' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'pencil' | 'plus' | 'refresh-cw' | 'search' | 'settings' | 'shield-check' | 'sliders-horizontal' | 'trash-2' | 'triangle-alert' | 'upload' | 'x' 之一",
|
|
3005
|
+
"message": "<ApplicationPrimaryNavigation> 的 appGlyph 取值须为 'activity' | 'arrow-down' | 'arrow-up' | 'calendar' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-left' | 'chevrons-right' | 'circle-alert' | 'circle-check' | 'circle-check-big' | 'columns-2' | 'download' | 'ellipsis' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'pencil' | 'plus' | 'refresh-cw' | 'search' | 'settings' | 'shield-check' | 'sliders-horizontal' | 'trash-2' | 'triangle-alert' | 'upload' | 'x' 之一",
|
|
2940
3006
|
"rationale": "取值与顺序取自契约 contracts/application-module/navigation/application-primary-navigation.ts,不得在别处另立一份。",
|
|
2941
3007
|
"component": "ApplicationPrimaryNavigation",
|
|
2942
3008
|
"prop": "appGlyph",
|
|
@@ -2950,6 +3016,8 @@ export default {
|
|
|
2950
3016
|
"chevron-left",
|
|
2951
3017
|
"chevron-right",
|
|
2952
3018
|
"chevron-up",
|
|
3019
|
+
"chevrons-left",
|
|
3020
|
+
"chevrons-right",
|
|
2953
3021
|
"circle-alert",
|
|
2954
3022
|
"circle-check",
|
|
2955
3023
|
"circle-check-big",
|
|
@@ -3004,7 +3072,7 @@ export default {
|
|
|
3004
3072
|
"targets": [
|
|
3005
3073
|
"js"
|
|
3006
3074
|
],
|
|
3007
|
-
"message": "<ApplicationSecondaryNavigation> 不接受该 prop。已声明的 props:moduleSwitcher、tabs、value、onValueChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3075
|
+
"message": "<ApplicationSecondaryNavigation> 不接受该 prop。已声明的 props:moduleSwitcher、tabs、value、onValueChange、onNavigationSettings、navigationSettingsOpen、onCloseSettings。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3008
3076
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-secondary-navigation.ts",
|
|
3009
3077
|
"component": "ApplicationSecondaryNavigation",
|
|
3010
3078
|
"allowed": [
|
|
@@ -3012,6 +3080,9 @@ export default {
|
|
|
3012
3080
|
"tabs",
|
|
3013
3081
|
"value",
|
|
3014
3082
|
"onValueChange",
|
|
3083
|
+
"onNavigationSettings",
|
|
3084
|
+
"navigationSettingsOpen",
|
|
3085
|
+
"onCloseSettings",
|
|
3015
3086
|
"key",
|
|
3016
3087
|
"ref",
|
|
3017
3088
|
"className",
|
|
@@ -3371,7 +3442,7 @@ export default {
|
|
|
3371
3442
|
"targets": [
|
|
3372
3443
|
"js"
|
|
3373
3444
|
],
|
|
3374
|
-
"message": "<ApplicationPageHeader> 不接受该 prop。已声明的 props:title、subtitle、dataStatus、updatedAt、onRefresh、actions、pageModes、pageMode、onPageModeChange、breadcrumb。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3445
|
+
"message": "<ApplicationPageHeader> 不接受该 prop。已声明的 props:title、subtitle、dataStatus、updatedAt、onRefresh、onBack、backLabel、taskStatus、actions、pageModes、pageMode、onPageModeChange、breadcrumb。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3375
3446
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-page-header.ts",
|
|
3376
3447
|
"component": "ApplicationPageHeader",
|
|
3377
3448
|
"allowed": [
|
|
@@ -3380,6 +3451,9 @@ export default {
|
|
|
3380
3451
|
"dataStatus",
|
|
3381
3452
|
"updatedAt",
|
|
3382
3453
|
"onRefresh",
|
|
3454
|
+
"onBack",
|
|
3455
|
+
"backLabel",
|
|
3456
|
+
"taskStatus",
|
|
3383
3457
|
"actions",
|
|
3384
3458
|
"pageModes",
|
|
3385
3459
|
"pageMode",
|
|
@@ -3551,12 +3625,13 @@ export default {
|
|
|
3551
3625
|
"targets": [
|
|
3552
3626
|
"js"
|
|
3553
3627
|
],
|
|
3554
|
-
"message": "<ApplicationRecordDetailBody> 不接受该 prop。已声明的 props:summary、sections。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3628
|
+
"message": "<ApplicationRecordDetailBody> 不接受该 prop。已声明的 props:summary、sections、aside。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3555
3629
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-record-detail-body.ts",
|
|
3556
3630
|
"component": "ApplicationRecordDetailBody",
|
|
3557
3631
|
"allowed": [
|
|
3558
3632
|
"summary",
|
|
3559
3633
|
"sections",
|
|
3634
|
+
"aside",
|
|
3560
3635
|
"key",
|
|
3561
3636
|
"ref",
|
|
3562
3637
|
"className",
|
|
@@ -3705,7 +3780,7 @@ export default {
|
|
|
3705
3780
|
"targets": [
|
|
3706
3781
|
"js"
|
|
3707
3782
|
],
|
|
3708
|
-
"message": "<ApplicationFormDialog> 不接受该 prop。已声明的 props:open、title、description、size、columns、submitText、cancelText、submitting、error、onSubmit、onCancel、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3783
|
+
"message": "<ApplicationFormDialog> 不接受该 prop。已声明的 props:open、title、description、size、columns、submitText、cancelText、submitting、error、onSubmit、onCancel、secondaryActions、footerNote、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3709
3784
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/application-form-dialog.ts",
|
|
3710
3785
|
"component": "ApplicationFormDialog",
|
|
3711
3786
|
"allowed": [
|
|
@@ -3720,6 +3795,8 @@ export default {
|
|
|
3720
3795
|
"error",
|
|
3721
3796
|
"onSubmit",
|
|
3722
3797
|
"onCancel",
|
|
3798
|
+
"secondaryActions",
|
|
3799
|
+
"footerNote",
|
|
3723
3800
|
"children",
|
|
3724
3801
|
"key",
|
|
3725
3802
|
"ref",
|
|
@@ -3739,13 +3816,14 @@ export default {
|
|
|
3739
3816
|
"targets": [
|
|
3740
3817
|
"js"
|
|
3741
3818
|
],
|
|
3742
|
-
"message": "<ApplicationFormDialog> 的 size 取值须为 'small' | 'large' 之一",
|
|
3819
|
+
"message": "<ApplicationFormDialog> 的 size 取值须为 'small' | 'large' | 'xlarge' 之一",
|
|
3743
3820
|
"rationale": "取值与顺序取自契约 contracts/application-module/overlays/application-form-dialog.ts,不得在别处另立一份。",
|
|
3744
3821
|
"component": "ApplicationFormDialog",
|
|
3745
3822
|
"prop": "size",
|
|
3746
3823
|
"allowed": [
|
|
3747
3824
|
"small",
|
|
3748
|
-
"large"
|
|
3825
|
+
"large",
|
|
3826
|
+
"xlarge"
|
|
3749
3827
|
]
|
|
3750
3828
|
},
|
|
3751
3829
|
{
|
|
@@ -6878,6 +6956,14 @@ export default {
|
|
|
6878
6956
|
"defaultValue"
|
|
6879
6957
|
]
|
|
6880
6958
|
},
|
|
6959
|
+
{
|
|
6960
|
+
"name": "DateInput",
|
|
6961
|
+
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
6962
|
+
"omitted": [
|
|
6963
|
+
"defaultValue",
|
|
6964
|
+
"onChange"
|
|
6965
|
+
]
|
|
6966
|
+
},
|
|
6881
6967
|
{
|
|
6882
6968
|
"name": "Field",
|
|
6883
6969
|
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
@@ -7176,6 +7262,14 @@ export default {
|
|
|
7176
7262
|
"content"
|
|
7177
7263
|
]
|
|
7178
7264
|
},
|
|
7265
|
+
{
|
|
7266
|
+
"name": "ApplicationDateRangeFilter",
|
|
7267
|
+
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
7268
|
+
"omitted": [
|
|
7269
|
+
"defaultValue",
|
|
7270
|
+
"onChange"
|
|
7271
|
+
]
|
|
7272
|
+
},
|
|
7179
7273
|
{
|
|
7180
7274
|
"name": "ApplicationFilterMenu",
|
|
7181
7275
|
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|