@moheng-design/ui-skill 3.0.0 → 3.1.1
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 +6 -4
- package/bin/cli.js +62 -11
- package/bin/lib/upgrade.mjs +58 -0
- package/generated/SKILL.md +37 -14
- package/generated/contracts.json +52 -28
- package/generated/plugin-data.js +16 -6
- package/generated/reference.md +98 -58
- package/generated/rules.json +16 -6
- package/generated/skills/moheng-ui-audit/SKILL.md +1 -1
- package/generated/skills/moheng-ui-bootstrap/SKILL.md +1 -1
- package/generated/skills/moheng-ui-feedback/SKILL.md +5 -4
- package/generated/skills/moheng-ui-page/SKILL.md +5 -3
- package/generated/skills/moheng-ui-review/SKILL.md +1 -1
- package/generated/skills/moheng-ui-upgrade/SKILL.md +4 -2
- package/handwritten/canvas-model.md +23 -1
- package/handwritten/conventions.md +27 -24
- package/handwritten/skills/feedback.md +3 -2
- package/handwritten/skills/page.md +4 -2
- package/handwritten/skills/upgrade.md +3 -1
- package/package.json +2 -2
package/generated/contracts.json
CHANGED
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
"columns-2",
|
|
42
42
|
"download",
|
|
43
43
|
"ellipsis",
|
|
44
|
+
"eye",
|
|
45
|
+
"file-text",
|
|
44
46
|
"funnel",
|
|
45
47
|
"info",
|
|
46
48
|
"kanban",
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
"list",
|
|
49
51
|
"message-square",
|
|
50
52
|
"minus",
|
|
53
|
+
"paperclip",
|
|
51
54
|
"pencil",
|
|
52
55
|
"plus",
|
|
53
56
|
"refresh-cw",
|
|
@@ -119,14 +122,15 @@
|
|
|
119
122
|
"props": [
|
|
120
123
|
{
|
|
121
124
|
"name": "variant",
|
|
122
|
-
"type": "'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'destructive-outline' | 'link'",
|
|
125
|
+
"type": "'primary' | 'secondary' | 'outline' | 'ghost' | 'ghost-accent' | 'destructive' | 'destructive-outline' | 'link'",
|
|
123
126
|
"required": false,
|
|
124
|
-
"doc": "
|
|
127
|
+
"doc": "视觉语义。有 GAP Design kit 对应类型的五档逐态对齐按钮组件集 24:2110:\n`primary` 用于页面主操作,每个动作组内至多一个;主色实心底,移入变浅、按下变深,\n 禁用为浅主色底白字(kit「类型=主要」,三态从换肤主色派生);\n`secondary` 用于次要操作,是默认值;白底、线条色描边,移入只把文字变为主色,\n 按下为主色 15% 底 + 主色描边 + 主色字,禁用为文字3(kit「类型=二级」);\n`ghost` 透明底、文字1,移入中性 6% 底、按下中性 25% 底,禁用为文字3(kit「类型=幽灵」,\n `iconOnly` 即 kit「类型=图标」);\n`ghost-accent` 透明底、主色字,移入主色 6% 底、按下主色 15% 底(kit「类型=幽灵主要」),\n 用于表格与记录列表的行内动作;\n`destructive` 用于不可逆的删除类操作(实心危险色);\n`destructive-outline` 白底、线条色描边、危险色文字;移入时描边变为危险色,按下时再加危险色 10% 底(GAP Design kit「按钮 / 类型=危险」三态),\n 用于与次要按钮并排的删除类动作;\n`link` 用于行内跳转,无内边距、带下划线。\n`outline`、`destructive`、`link` 在 kit 里没有对应类型。",
|
|
125
128
|
"values": [
|
|
126
129
|
"primary",
|
|
127
130
|
"secondary",
|
|
128
131
|
"outline",
|
|
129
132
|
"ghost",
|
|
133
|
+
"ghost-accent",
|
|
130
134
|
"destructive",
|
|
131
135
|
"destructive-outline",
|
|
132
136
|
"link"
|
|
@@ -625,8 +629,8 @@
|
|
|
625
629
|
"group": "input-selection",
|
|
626
630
|
"order": 2,
|
|
627
631
|
"contract": "contracts/foundation/input-selection/date-input.ts",
|
|
628
|
-
"summary": "单个日期的录入控件:与 `Input` 同高同壳(32px、12px 圆角、1px 描边),右侧带 16px
|
|
629
|
-
"doc": "单个日期的录入控件:与 `Input` 同高同壳(32px、12px 圆角、1px 描边),右侧带 16px\n
|
|
632
|
+
"summary": "单个日期的录入控件:与 `Input` 同高同壳(32px、12px 圆角、1px 描边),右侧带 16px 日历图标(文字1,与值间隔 4,GAP Design kit「表单/选择」),点击弹出 `Calendar` 月格,选中即回填并收起。",
|
|
633
|
+
"doc": "单个日期的录入控件:与 `Input` 同高同壳(32px、12px 圆角、1px 描边),右侧带 16px\n日历图标(文字1,与值间隔 4,GAP Design kit「表单/选择」),点击弹出 `Calendar` 月格,选中即回填并收起。\n\n值一律是本地时区的 ISO 日期串 `yyyy-mm-dd`(不是 `Date`,也不是带时区的时间戳)——\n表单提交与接口对接都按字符串走,组件内部用本地时区换算,不经 `toISOString()`。\n\n只选一个日期。日期区间筛选用 `ApplicationDateRangeFilter`;带时分的时刻本库暂无组件。\n\n在 `Field` 里使用时,`Field` 的 `htmlFor` 指向本组件的 `id`(落在触发按钮上)。",
|
|
630
634
|
"replaces": [],
|
|
631
635
|
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
632
636
|
"omitted": [
|
|
@@ -915,8 +919,8 @@
|
|
|
915
919
|
"group": "input-selection",
|
|
916
920
|
"order": 2,
|
|
917
921
|
"contract": "contracts/foundation/input-selection/label.ts",
|
|
918
|
-
"summary": "独立控件标签,14/20
|
|
919
|
-
"doc": "独立控件标签,14/20
|
|
922
|
+
"summary": "独立控件标签,14/20 字号,文字2(`--ds-color-text-secondary`,GAP Design kit「字段名称」)。",
|
|
923
|
+
"doc": "独立控件标签,14/20 字号,文字2(`--ds-color-text-secondary`,GAP Design kit「字段名称」)。\n\n用于 `Field` **之外**的场景 —— 行内筛选器、工具栏控件、表格单元格编辑器。\n标准表单行请用 `Field`,它自带标签。\n\n本组件是标签视觉的 Foundation Owner:必填星号的样式、间距与颜色以此为准。",
|
|
920
924
|
"replaces": [
|
|
921
925
|
"label"
|
|
922
926
|
],
|
|
@@ -3048,7 +3052,7 @@
|
|
|
3048
3052
|
"order": 4,
|
|
3049
3053
|
"contract": "contracts/foundation/data-content-layout/table.ts",
|
|
3050
3054
|
"summary": "DataTable 承载面 —— LIST 页面模式、LEDGER 台账页、SPLIT 右栏。",
|
|
3051
|
-
"doc": "DataTable 承载面 —— LIST 页面模式、LEDGER 台账页、SPLIT 右栏。\n\n表头位于 `--application-table-header`,高 44;表体行最小高 56(两行内容 72)。\n行与行之间、表头列与列之间是 0.5px 分隔线(`--application-hairline`),**不是投影**。\n\n⚠ 当本组件是当前的 Data Presentation 时,\n其上方的设置按钮**必须**写作「列设置」,不得写成通用的「视图设置」。\n\n勾选行应当唤出 `ListBatchActionBar`。",
|
|
3055
|
+
"doc": "DataTable 承载面 —— LIST 页面模式、LEDGER 台账页、SPLIT 右栏。\n\n表头位于 `--application-table-header`,高 44,文字 14/20 medium 文字2;表体行最小高 56(两行内容 72)。\n单元格里放了按钮(行内「编辑 / 删除」)时上下内边距收为 12,32 高的按钮不撑高行。\n行与行之间、表头列与列之间是 0.5px 分隔线(`--application-hairline`),**不是投影**。\n\n⚠ 当本组件是当前的 Data Presentation 时,\n其上方的设置按钮**必须**写作「列设置」,不得写成通用的「视图设置」。\n\n勾选行应当唤出 `ListBatchActionBar`。",
|
|
3052
3056
|
"replaces": [
|
|
3053
3057
|
"table"
|
|
3054
3058
|
],
|
|
@@ -3176,7 +3180,7 @@
|
|
|
3176
3180
|
"name": "width",
|
|
3177
3181
|
"type": "number | string",
|
|
3178
3182
|
"required": false,
|
|
3179
|
-
"doc": "列宽。数字按 px
|
|
3183
|
+
"doc": "列宽。数字按 px,字符串原样透传。不写的列是弹性列:表格用固定布局,弹性列均分\n「表格宽 − 固定列」的剩余宽度(GAP Design kit「列表」),最窄 88px,不够分时表格横向滚动"
|
|
3180
3184
|
},
|
|
3181
3185
|
{
|
|
3182
3186
|
"name": "align",
|
|
@@ -3218,13 +3222,13 @@
|
|
|
3218
3222
|
"name": "content",
|
|
3219
3223
|
"type": "ReactNode",
|
|
3220
3224
|
"required": true,
|
|
3221
|
-
"doc": "
|
|
3225
|
+
"doc": "行内容,横跨全部列居中显示,行高与表体行同为最小 56。例如「识别中…」「正在加载更多」"
|
|
3222
3226
|
},
|
|
3223
3227
|
{
|
|
3224
3228
|
"name": "busy",
|
|
3225
3229
|
"type": "boolean",
|
|
3226
3230
|
"required": false,
|
|
3227
|
-
"doc": "
|
|
3231
|
+
"doc": "进行中。文字取强调色并叠加一层扫光动效;系统开启减少动效时不播放扫光"
|
|
3228
3232
|
}
|
|
3229
3233
|
]
|
|
3230
3234
|
},
|
|
@@ -4154,7 +4158,7 @@
|
|
|
4154
4158
|
"order": 6,
|
|
4155
4159
|
"contract": "contracts/application-atomic/application-date-range-filter.ts",
|
|
4156
4160
|
"summary": "查询工具栏主控制行中的**日期区间**快捷筛选,与 `ApplicationFilterMenu` 同为一个 常驻维度,放进 `ApplicationQueryToolbar` 的 `commonFilters`。",
|
|
4157
|
-
"doc": "查询工具栏主控制行中的**日期区间**快捷筛选,与 `ApplicationFilterMenu` 同为一个\n常驻维度,放进 `ApplicationQueryToolbar` 的 `commonFilters`。\n\n触发器与 `ApplicationFilterMenu`
|
|
4161
|
+
"doc": "查询工具栏主控制行中的**日期区间**快捷筛选,与 `ApplicationFilterMenu` 同为一个\n常驻维度,放进 `ApplicationQueryToolbar` 的 `commonFilters`。\n\n触发器与 `ApplicationFilterMenu` 同高同壳、同一套 GAP Design kit「筛选/选择」五态:生效时维度名变为主色、\n不回显区间,区间经可访问名读出(「接收时间:2026-07-01 – 2026-07-28」),视觉上只在已筛选标签里。\n面板里是起止两张 `Calendar` 月格,由「应用」提交、「清空」撤销 —— 选到一半不生效。\n\n⚠ **已生效的区间必须回写到工具栏第三行的筛选标签行**(`appliedTags`),且标签可移除。\n与 `ApplicationFilterMenu` 同一条规矩:筛选状态只存在于触发器上是不合规的。",
|
|
4158
4162
|
"replaces": [],
|
|
4159
4163
|
"nativeBase": "HTMLAttributes<HTMLDivElement>",
|
|
4160
4164
|
"omitted": [
|
|
@@ -4174,7 +4178,7 @@
|
|
|
4174
4178
|
"name": "labelText",
|
|
4175
4179
|
"type": "string",
|
|
4176
4180
|
"required": false,
|
|
4177
|
-
"doc": "
|
|
4181
|
+
"doc": "维度名称的纯文本,用于触发器的可访问名「维度名:起 – 止」与面板的组名。\n`label` 为非字符串时**必须**提供,否则可访问名缺维度名。",
|
|
4178
4182
|
"values": null,
|
|
4179
4183
|
"deprecated": null
|
|
4180
4184
|
},
|
|
@@ -4250,7 +4254,7 @@
|
|
|
4250
4254
|
"name": "label",
|
|
4251
4255
|
"type": "ReactNode",
|
|
4252
4256
|
"required": false,
|
|
4253
|
-
"doc": "
|
|
4257
|
+
"doc": "维度名称,显示在触发器上。生效时维度名与字形变为主色,**不回显取值** ——\nGAP Design kit「筛选/选择 · 已选择」(39:2349)只显示标签,取值在工具栏第三行的已筛选标签里。\n读屏经视觉隐藏文本读到「:当前值」",
|
|
4254
4258
|
"values": null,
|
|
4255
4259
|
"deprecated": null
|
|
4256
4260
|
},
|
|
@@ -4290,7 +4294,7 @@
|
|
|
4290
4294
|
"name": "multiple",
|
|
4291
4295
|
"type": "boolean",
|
|
4292
4296
|
"required": false,
|
|
4293
|
-
"doc": "
|
|
4297
|
+
"doc": "多选。读屏读到的取值为「N 项」,且选中后菜单不自动关闭",
|
|
4294
4298
|
"values": null,
|
|
4295
4299
|
"deprecated": null
|
|
4296
4300
|
},
|
|
@@ -4330,7 +4334,7 @@
|
|
|
4330
4334
|
"name": "labelText",
|
|
4331
4335
|
"type": "string",
|
|
4332
4336
|
"required": false,
|
|
4333
|
-
"doc": "
|
|
4337
|
+
"doc": "取值的纯文本,触发器经视觉隐藏文本读给读屏(视觉上不回显取值,见 `label`)。\n`label` 为非字符串时**必须**提供,否则读出 `[object Object]`。见 T11。"
|
|
4334
4338
|
}
|
|
4335
4339
|
]
|
|
4336
4340
|
}
|
|
@@ -4654,13 +4658,14 @@
|
|
|
4654
4658
|
"props": [
|
|
4655
4659
|
{
|
|
4656
4660
|
"name": "intent",
|
|
4657
|
-
"type": "'primary' | 'secondary' | 'quiet' | 'link' | 'destructive' | 'destructive-outline'",
|
|
4661
|
+
"type": "'primary' | 'secondary' | 'quiet' | 'quiet-accent' | 'link' | 'destructive' | 'destructive-outline'",
|
|
4658
4662
|
"required": false,
|
|
4659
|
-
"doc": "应用意图。映射到 Foundation Button 的 variant:`quiet` → ghost
|
|
4663
|
+
"doc": "应用意图。映射到 Foundation Button 的 variant:`quiet` → ghost,`quiet-accent` → ghost-accent,\n其余同名。\n\n记录级的行内动作(`Table` 操作列、`ApplicationRecordList` 行尾的「编辑 / 删除」)用\n`quiet-accent`:透明底、主色字,移入主色 6% 底、按下主色 15% 底(GAP Design kit\n「按钮 / 类型=幽灵主要」,列表操作单元 123:5796)。行内删除同样用它,危险提示交给删除前的\n`AlertDialog`(kit 行内没有红色删除)。`link` 只留给句中或卡片页脚那种行内链接式动作。\n\n删除类动作两档:`destructive-outline`(白底、线条色描边、危险色文字;移入时描边变为危险色,按下时再加危险色 10% 底(GAP Design kit「按钮 / 类型=危险」三态))用于与次要按钮\n并排出现的删除,例如表单里「删除此附件」;`destructive`(实心危险色)只用于\n确认弹窗里那个不可逆的最终动作。同一动作组内不得同时出现两档。",
|
|
4660
4664
|
"values": [
|
|
4661
4665
|
"primary",
|
|
4662
4666
|
"secondary",
|
|
4663
4667
|
"quiet",
|
|
4668
|
+
"quiet-accent",
|
|
4664
4669
|
"link",
|
|
4665
4670
|
"destructive",
|
|
4666
4671
|
"destructive-outline"
|
|
@@ -4845,6 +4850,8 @@
|
|
|
4845
4850
|
"columns-2",
|
|
4846
4851
|
"download",
|
|
4847
4852
|
"ellipsis",
|
|
4853
|
+
"eye",
|
|
4854
|
+
"file-text",
|
|
4848
4855
|
"funnel",
|
|
4849
4856
|
"info",
|
|
4850
4857
|
"kanban",
|
|
@@ -4852,6 +4859,7 @@
|
|
|
4852
4859
|
"list",
|
|
4853
4860
|
"message-square",
|
|
4854
4861
|
"minus",
|
|
4862
|
+
"paperclip",
|
|
4855
4863
|
"pencil",
|
|
4856
4864
|
"plus",
|
|
4857
4865
|
"refresh-cw",
|
|
@@ -5041,7 +5049,7 @@
|
|
|
5041
5049
|
"order": 7,
|
|
5042
5050
|
"contract": "contracts/application-module/navigation/global-sidebar.ts",
|
|
5043
5051
|
"summary": "工作台左侧 72px 菜单栏,由 `SidebarRailButton` 构成。",
|
|
5044
|
-
"doc": "工作台左侧 72px 菜单栏,由 `SidebarRailButton` 构成。\n\n⚠ **这是一个工作台面组件,位于 Content Canvas 内部,\n不是应用外层 Shell 的一部分。**\n应用外层 Shell
|
|
5052
|
+
"doc": "工作台左侧 72px 菜单栏,由 `SidebarRailButton` 构成。\n\n⚠ **这是一个工作台面组件,位于 Content Canvas 内部,\n不是应用外层 Shell 的一部分。**\n应用外层 Shell 是刻意设计的**无侧栏、全宽导航带堆叠**:基础版两带(应用一级 + 应用二级),\n集团版三带(再加集团顶部导航),见 GAP Design kit「框架结构」——\n不要因为有了这个组件就往 Shell 上加一条全局左栏。\n\nContent Canvas 内的通用垂直导航请用 Foundation `Sidebar`;\n本组件专指工作台的图标栏。",
|
|
5045
5053
|
"replaces": [],
|
|
5046
5054
|
"nativeBase": "HTMLAttributes<HTMLElement>",
|
|
5047
5055
|
"omitted": [],
|
|
@@ -6108,7 +6116,7 @@
|
|
|
6108
6116
|
"name": "taskStatus",
|
|
6109
6117
|
"type": "ApplicationPageHeaderTaskStatus",
|
|
6110
6118
|
"required": false,
|
|
6111
|
-
"doc": "页面级进行中任务的状态胶囊,居中显示在页头中部。例如批量识别的「正在识别 14/100」。\n`busy` 为 true
|
|
6119
|
+
"doc": "页面级进行中任务的状态胶囊,居中显示在页头中部。例如批量识别的「正在识别 14/100」。\n`busy` 为 true 时胶囊前带 16px 强调色转圈。胶囊 32 高、内边距 6/10、圆角 20、主色 6% 底,\n文字 14/20 文字1。\n\n只表达**本页正在进行的一项任务**的进度;**不得**用它显示数据刷新状态(那是\n`dataStatus`)、页面说明(那是 `subtitle`)或筛选摘要(那属于 `ApplicationQueryToolbar`)。",
|
|
6112
6120
|
"values": null,
|
|
6113
6121
|
"deprecated": null
|
|
6114
6122
|
},
|
|
@@ -6116,7 +6124,7 @@
|
|
|
6116
6124
|
"name": "actions",
|
|
6117
6125
|
"type": "ReactNode",
|
|
6118
6126
|
"required": false,
|
|
6119
|
-
"doc": "页面级动作组。**至多一个 primary
|
|
6127
|
+
"doc": "页面级动作组。**至多一个 primary**。动作之间由组件统一给出 4 的间隔\n(GAP Design kit「数据更新、操作」的页面操作插槽),调用方不得包一层 `ButtonGroup` 或自带外边距",
|
|
6120
6128
|
"values": null,
|
|
6121
6129
|
"deprecated": null
|
|
6122
6130
|
},
|
|
@@ -6282,7 +6290,15 @@
|
|
|
6282
6290
|
"name": "resultSummary",
|
|
6283
6291
|
"type": "ReactNode",
|
|
6284
6292
|
"required": false,
|
|
6285
|
-
"doc": "结果摘要,渲染为一枚胶囊,如 `<>共 <strong>1,284</strong> 条</>`。\n数字用 `<strong>`
|
|
6293
|
+
"doc": "结果摘要,渲染为一枚胶囊,如 `<>共 <strong>1,284</strong> 条</>`。\n数字用 `<strong>` 包裹即加粗为正文色。已选数不写在这里,传 `selectedSummary`。",
|
|
6294
|
+
"values": null,
|
|
6295
|
+
"deprecated": null
|
|
6296
|
+
},
|
|
6297
|
+
{
|
|
6298
|
+
"name": "selectedSummary",
|
|
6299
|
+
"type": "ReactNode",
|
|
6300
|
+
"required": false,
|
|
6301
|
+
"doc": "已选数,如「已选 3 张」。渲染在结果摘要胶囊内、主文之后,间隔 8,12/16 三级文字色\n(GAP Design kit「查询结果摘要」39:2304)。只在有勾选时传,没有勾选时不传、不写「已选 0」;\n必须与 `resultSummary` 一起传,单独传不渲染。数字与 `resultSummary` 同一口径,计的是行勾选数",
|
|
6286
6302
|
"values": null,
|
|
6287
6303
|
"deprecated": null
|
|
6288
6304
|
},
|
|
@@ -6490,7 +6506,7 @@
|
|
|
6490
6506
|
"name": "summary",
|
|
6491
6507
|
"type": "ReactNode",
|
|
6492
6508
|
"required": false,
|
|
6493
|
-
"doc": "
|
|
6509
|
+
"doc": "对象头:对象名、状态徽标、关键标识。渲染在白卡之外、落在载体灰底上,占满整行;\n有 `aside` 时横跨两栏(GAP Design kit「抽屉 / 常规」151:1135)。对象名用 24/32 medium\n(`--application-font-size-display` / `--application-line-height-display`),与状态徽标间隔 8",
|
|
6494
6510
|
"values": null,
|
|
6495
6511
|
"deprecated": null
|
|
6496
6512
|
},
|
|
@@ -6506,7 +6522,7 @@
|
|
|
6506
6522
|
"name": "aside",
|
|
6507
6523
|
"type": "DetailSection",
|
|
6508
6524
|
"required": false,
|
|
6509
|
-
"doc": "侧栏分节。提供时主体变为两栏:左栏(`summary`
|
|
6525
|
+
"doc": "侧栏分节。提供时主体变为两栏:左栏(`sections`)弹性伸展,右栏固定 360px,\n两栏各是一张内边距 12 的白卡,间距 12;`summary` 在两栏之上。侧栏内元素间距 12,\n主栏分节间距 16(GAP Design kit「抽屉 / 流程类左右」151:1941)。用于「处理记录」\n「审批流转」这类**伴随主内容、随它一起看**的内容。\n\n只放一个分节;**不得**把主要字段分节挪进侧栏,也不得用它放对象级动作\n(动作在载体的动作区)。可用宽度不足 960px 时侧栏落到主栏下方。",
|
|
6510
6526
|
"values": null,
|
|
6511
6527
|
"deprecated": null
|
|
6512
6528
|
}
|
|
@@ -6544,13 +6560,13 @@
|
|
|
6544
6560
|
"name": "key",
|
|
6545
6561
|
"type": "string",
|
|
6546
6562
|
"required": false,
|
|
6547
|
-
"doc": "React key。`title`
|
|
6563
|
+
"doc": "React key。`title` 省略或为非字符串时**必须**提供。见 M8"
|
|
6548
6564
|
},
|
|
6549
6565
|
{
|
|
6550
6566
|
"name": "title",
|
|
6551
6567
|
"type": "ReactNode",
|
|
6552
|
-
"required":
|
|
6553
|
-
"doc": "分节标题,16/20 medium 字重,左侧带 2×14
|
|
6568
|
+
"required": false,
|
|
6569
|
+
"doc": "分节标题,16/20 medium 字重,左侧带 2×14 强调色竖条。\n\n可省略:内容自带版式标题、再加分节标题会重复时(票面、单据影像这类整块呈现的内容),\n不渲染标题行与竖条。只有第一个分节可以省略 —— 后续分节没有标题,读者分不清\n分节边界。省略时 `action` 仍右对齐渲染。"
|
|
6554
6570
|
},
|
|
6555
6571
|
{
|
|
6556
6572
|
"name": "fields",
|
|
@@ -6885,7 +6901,7 @@
|
|
|
6885
6901
|
"name": "subtitle",
|
|
6886
6902
|
"type": "ReactNode",
|
|
6887
6903
|
"required": false,
|
|
6888
|
-
"doc": "
|
|
6904
|
+
"doc": "副标题,通常是对象编号。与标题同行,同为 14/20 medium 文字2,间隔 10(GAP Design kit「抽屉 / 常规」页头)",
|
|
6889
6905
|
"values": null,
|
|
6890
6906
|
"deprecated": null
|
|
6891
6907
|
},
|
|
@@ -6993,7 +7009,7 @@
|
|
|
6993
7009
|
"name": "size",
|
|
6994
7010
|
"type": "'small' | 'large' | 'xlarge'",
|
|
6995
7011
|
"required": false,
|
|
6996
|
-
"doc": "宽度档位。`small` 720px / `large` 960px / `xlarge` 1280px。\n`xlarge` 是 GAP Design kit 弹窗宽度区间(680–1280
|
|
7012
|
+
"doc": "宽度档位。`small` 720px / `large` 960px / `xlarge` 1280px。\n`xlarge` 是 GAP Design kit 弹窗宽度区间(680–1280)的上限,用于字段多、或字段之上带原件预览\n(`preview`)的编辑场景(业财平台 round-01 · editor/dialog/width 裁决,2026-11-10)",
|
|
6997
7013
|
"values": [
|
|
6998
7014
|
"small",
|
|
6999
7015
|
"large",
|
|
@@ -7073,6 +7089,14 @@
|
|
|
7073
7089
|
"values": null,
|
|
7074
7090
|
"deprecated": null
|
|
7075
7091
|
},
|
|
7092
|
+
{
|
|
7093
|
+
"name": "preview",
|
|
7094
|
+
"type": "ReactNode",
|
|
7095
|
+
"required": false,
|
|
7096
|
+
"doc": "原件 / 单据影像预览区,渲染在白卡内、字段网格之上,横跨全部列,与字段网格间隔 10。\n用于对照原件录入的编辑场景(发票、合同影像)。只放预览与它的查看动作,不放字段;\n原件**不得**作为非 `Field` 子元素塞进 `children` 再用外部 CSS 跨列(规则冲突 R8)",
|
|
7097
|
+
"values": null,
|
|
7098
|
+
"deprecated": null
|
|
7099
|
+
},
|
|
7076
7100
|
{
|
|
7077
7101
|
"name": "children",
|
|
7078
7102
|
"type": "ReactNode",
|
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' | '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' 之一",
|
|
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' | 'eye' | 'file-text' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'paperclip' | '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",
|
|
@@ -591,6 +591,8 @@ export default {
|
|
|
591
591
|
"columns-2",
|
|
592
592
|
"download",
|
|
593
593
|
"ellipsis",
|
|
594
|
+
"eye",
|
|
595
|
+
"file-text",
|
|
594
596
|
"funnel",
|
|
595
597
|
"info",
|
|
596
598
|
"kanban",
|
|
@@ -598,6 +600,7 @@ export default {
|
|
|
598
600
|
"list",
|
|
599
601
|
"message-square",
|
|
600
602
|
"minus",
|
|
603
|
+
"paperclip",
|
|
601
604
|
"pencil",
|
|
602
605
|
"plus",
|
|
603
606
|
"refresh-cw",
|
|
@@ -666,7 +669,7 @@ export default {
|
|
|
666
669
|
"targets": [
|
|
667
670
|
"js"
|
|
668
671
|
],
|
|
669
|
-
"message": "<Button> 的 variant 取值须为 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'destructive-outline' | 'link' 之一",
|
|
672
|
+
"message": "<Button> 的 variant 取值须为 'primary' | 'secondary' | 'outline' | 'ghost' | 'ghost-accent' | 'destructive' | 'destructive-outline' | 'link' 之一",
|
|
670
673
|
"rationale": "取值与顺序取自契约 contracts/foundation/actions/button.ts,不得在别处另立一份。",
|
|
671
674
|
"component": "Button",
|
|
672
675
|
"prop": "variant",
|
|
@@ -675,6 +678,7 @@ export default {
|
|
|
675
678
|
"secondary",
|
|
676
679
|
"outline",
|
|
677
680
|
"ghost",
|
|
681
|
+
"ghost-accent",
|
|
678
682
|
"destructive",
|
|
679
683
|
"destructive-outline",
|
|
680
684
|
"link"
|
|
@@ -2907,7 +2911,7 @@ export default {
|
|
|
2907
2911
|
"targets": [
|
|
2908
2912
|
"js"
|
|
2909
2913
|
],
|
|
2910
|
-
"message": "<SystemButton> 的 intent 取值须为 'primary' | 'secondary' | 'quiet' | 'link' | 'destructive' | 'destructive-outline' 之一",
|
|
2914
|
+
"message": "<SystemButton> 的 intent 取值须为 'primary' | 'secondary' | 'quiet' | 'quiet-accent' | 'link' | 'destructive' | 'destructive-outline' 之一",
|
|
2911
2915
|
"rationale": "取值与顺序取自契约 contracts/application-atomic/system-button.ts,不得在别处另立一份。",
|
|
2912
2916
|
"component": "SystemButton",
|
|
2913
2917
|
"prop": "intent",
|
|
@@ -2915,6 +2919,7 @@ export default {
|
|
|
2915
2919
|
"primary",
|
|
2916
2920
|
"secondary",
|
|
2917
2921
|
"quiet",
|
|
2922
|
+
"quiet-accent",
|
|
2918
2923
|
"link",
|
|
2919
2924
|
"destructive",
|
|
2920
2925
|
"destructive-outline"
|
|
@@ -3002,7 +3007,7 @@ export default {
|
|
|
3002
3007
|
"targets": [
|
|
3003
3008
|
"js"
|
|
3004
3009
|
],
|
|
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' 之一",
|
|
3010
|
+
"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' | 'eye' | 'file-text' | 'funnel' | 'info' | 'kanban' | 'layout-grid' | 'list' | 'message-square' | 'minus' | 'paperclip' | 'pencil' | 'plus' | 'refresh-cw' | 'search' | 'settings' | 'shield-check' | 'sliders-horizontal' | 'trash-2' | 'triangle-alert' | 'upload' | 'x' 之一",
|
|
3006
3011
|
"rationale": "取值与顺序取自契约 contracts/application-module/navigation/application-primary-navigation.ts,不得在别处另立一份。",
|
|
3007
3012
|
"component": "ApplicationPrimaryNavigation",
|
|
3008
3013
|
"prop": "appGlyph",
|
|
@@ -3024,6 +3029,8 @@ export default {
|
|
|
3024
3029
|
"columns-2",
|
|
3025
3030
|
"download",
|
|
3026
3031
|
"ellipsis",
|
|
3032
|
+
"eye",
|
|
3033
|
+
"file-text",
|
|
3027
3034
|
"funnel",
|
|
3028
3035
|
"info",
|
|
3029
3036
|
"kanban",
|
|
@@ -3031,6 +3038,7 @@ export default {
|
|
|
3031
3038
|
"list",
|
|
3032
3039
|
"message-square",
|
|
3033
3040
|
"minus",
|
|
3041
|
+
"paperclip",
|
|
3034
3042
|
"pencil",
|
|
3035
3043
|
"plus",
|
|
3036
3044
|
"refresh-cw",
|
|
@@ -3562,7 +3570,7 @@ export default {
|
|
|
3562
3570
|
"targets": [
|
|
3563
3571
|
"js"
|
|
3564
3572
|
],
|
|
3565
|
-
"message": "<ApplicationQueryToolbar> 不接受该 prop。已声明的 props:businessViews、businessView、onBusinessViewChange、resultSummary、searchValue、onSearchChange、onSearchSubmit、searchPlaceholder、searchAriaLabel、commonFilters、moreFilters、sort、appliedTags、onRemoveTag、onResetTags、presentation、hasPresentationSettings、onPresentationSettings、presentationSettingsOpen、viewModeSwitch。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3573
|
+
"message": "<ApplicationQueryToolbar> 不接受该 prop。已声明的 props:businessViews、businessView、onBusinessViewChange、resultSummary、selectedSummary、searchValue、onSearchChange、onSearchSubmit、searchPlaceholder、searchAriaLabel、commonFilters、moreFilters、sort、appliedTags、onRemoveTag、onResetTags、presentation、hasPresentationSettings、onPresentationSettings、presentationSettingsOpen、viewModeSwitch。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3566
3574
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-query-toolbar.ts",
|
|
3567
3575
|
"component": "ApplicationQueryToolbar",
|
|
3568
3576
|
"allowed": [
|
|
@@ -3570,6 +3578,7 @@ export default {
|
|
|
3570
3578
|
"businessView",
|
|
3571
3579
|
"onBusinessViewChange",
|
|
3572
3580
|
"resultSummary",
|
|
3581
|
+
"selectedSummary",
|
|
3573
3582
|
"searchValue",
|
|
3574
3583
|
"onSearchChange",
|
|
3575
3584
|
"onSearchSubmit",
|
|
@@ -3780,7 +3789,7 @@ export default {
|
|
|
3780
3789
|
"targets": [
|
|
3781
3790
|
"js"
|
|
3782
3791
|
],
|
|
3783
|
-
"message": "<ApplicationFormDialog> 不接受该 prop。已声明的 props:open、title、description、size、columns、submitText、cancelText、submitting、error、onSubmit、onCancel、secondaryActions、footerNote、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3792
|
+
"message": "<ApplicationFormDialog> 不接受该 prop。已声明的 props:open、title、description、size、columns、submitText、cancelText、submitting、error、onSubmit、onCancel、secondaryActions、footerNote、preview、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3784
3793
|
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/application-form-dialog.ts",
|
|
3785
3794
|
"component": "ApplicationFormDialog",
|
|
3786
3795
|
"allowed": [
|
|
@@ -3797,6 +3806,7 @@ export default {
|
|
|
3797
3806
|
"onCancel",
|
|
3798
3807
|
"secondaryActions",
|
|
3799
3808
|
"footerNote",
|
|
3809
|
+
"preview",
|
|
3800
3810
|
"children",
|
|
3801
3811
|
"key",
|
|
3802
3812
|
"ref",
|