bpmax-cli 0.1.44-beta.9 → 0.2.1-beta.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 +49 -0
- package/dist/bin.js +10757 -4313
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-ai-taskbook/SKILL.md +226 -0
- package/skills/bpmax-ai-taskbook/agents/openai.yaml +3 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +68 -0
- package/skills/bpmax-approval-matrix/SKILL.md +87 -0
- package/skills/bpmax-cli/SKILL.md +3 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +3 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +8 -8
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +26 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +4 -1
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +160 -3
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +333 -0
- package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +2 -2
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +3 -3
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +6 -4
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +11 -11
- package/skills/bpmax-flow-template-editor/SKILL.md +30 -2
- package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +3 -3
- package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +7 -4
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +54 -2
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +3 -0
- package/skills/bpmax-form-template-editor/SKILL.md +23 -9
- package/skills/bpmax-list-template-editor/SKILL.md +10 -0
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +17 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +9 -4
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +17 -10
- package/skills/bpmax-list-template-editor/references/special-formats.md +17 -0
- package/skills/bpmax-nav-config-editor/SKILL.md +6 -3
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +6 -4
- package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +5 -0
- package/skills/bpmax-plugin-config/SKILL.md +42 -0
- package/skills/bpmax-project/SKILL.md +16 -1
- package/skills/bpmax-project-detail-template-editor/SKILL.md +26 -0
- package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +73 -0
- package/skills/bpmax-workspace-editor/SKILL.md +78 -0
- package/skills/bpmax-workspace-editor/agents/openai.yaml +4 -0
- package/skills/form-control-library/references/form-controls.md +37 -37
|
@@ -8,6 +8,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
|
|
|
8
8
|
## 写入路径硬约束
|
|
9
9
|
- 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `nav-config`;只有 `build_status` 和 `submit_status` 都是 `supported` 时才允许进入 build/submit。
|
|
10
10
|
- 当前 bpmax-cli typed adapter 支持按 workspace 聚合导出 `navmenu`、`shortcut`、`navmenu_mobile`、`shortcut_mobile` 四类配置,并通过 operation plan dry-run / 确认提交 / 回读 hash。
|
|
11
|
+
- `lint/build/submit/verify` 的可执行门禁在 TypeScript CLI 核心中实现;不要新增或调用旧 Python verify 脚本作为主路径。
|
|
11
12
|
- 旧来源脚本 `scripts/submit*.py` 只保留为结构参考;不得用它们直调 BPMAX API。
|
|
12
13
|
- 不得用 `bpmax-cli api POST/PUT/DELETE /configuration*` 或其它 raw API 绕过 typed config submit。
|
|
13
14
|
|
|
@@ -68,6 +69,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
|
|
|
68
69
|
- `shortcut`
|
|
69
70
|
- `navmenu_mobile`
|
|
70
71
|
- `shortcut_mobile`
|
|
72
|
+
- TypeScript build 阶段会执行防清空门禁:如果远端某类配置已有入口,而本次 work/submit 会把对应数组写成空数组,必须停止并重新 export 当前远端配置后合并修改。不得用旧 dry-run payload 或单 tab 保存思维覆盖其他配置。
|
|
71
73
|
- 导航权限只解决“入口可见性”,不解决“列表数据可见性”:
|
|
72
74
|
- `permission` / `visibility` / `visibility_scope` 只控制入口能否出现
|
|
73
75
|
- 业务字段归属、身份映射、跨数据集联动导致的数据范围收口,默认应落数据集 `pre_process_script`
|
|
@@ -118,7 +120,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
|
|
|
118
120
|
- 读取线上真实结构
|
|
119
121
|
- 辅助定位 icon / 权限 / 页面行为
|
|
120
122
|
- 最终刷新回页验收
|
|
121
|
-
-
|
|
123
|
+
- 不得把 `submitData()` 或脚本直提 `/api/configuration` 当作提交路径;它们只用于理解页面结构和验收行为,真实写入必须走 typed CLI。
|
|
122
124
|
|
|
123
125
|
### 3. 读取四类配置
|
|
124
126
|
- 优先从页面运行时拿四类配置,而不是只看 DOM。
|
|
@@ -181,6 +183,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
|
|
|
181
183
|
- H5 流程页:`/pages/index/project?flow_type=...`
|
|
182
184
|
- PC 工作台:`/myProject`
|
|
183
185
|
- H5 工作台:应优先参考当前工作区已有移动端可用路径
|
|
186
|
+
- 如果目标流程有非空 `flow_key`,PC/H5 路径都必须保留 `flow_key` 参数,例如 `/project?flow_type=<flowType>&flow_key=<flowKey>`;不要让导航入口落到默认流程列表。
|
|
184
187
|
- 外链不要自动映射到 H5 内页;先按原路径保留,必要时提示用户。
|
|
185
188
|
- 如果用户提供的是跨工作区路径,默认不擅自改写 workspace 前缀。
|
|
186
189
|
|
|
@@ -274,10 +277,10 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
|
|
|
274
277
|
- 顺序正确
|
|
275
278
|
- 权限模式正确
|
|
276
279
|
- 四类配置没有互相覆盖坏
|
|
277
|
-
-
|
|
280
|
+
- 如果 `bpmax-cli config nav-config verify` 已通过:
|
|
278
281
|
- `zhCN` 语言默认状态应视为 `runtime_pending`
|
|
279
282
|
- 非 `zhCN` 语言默认状态应视为 `manual_followup_required`
|
|
280
|
-
-
|
|
283
|
+
- 导航变更必须进入工作区首页或移动端首页检查渲染结果;至少确认入口可见、点击后 URL 带有正确 `flow_type` / `flow_key`,并能进入目标列表、创建页或详情页。
|
|
281
284
|
- 验证通过后,把新的路径映射、权限模型和入口组织规则写回 Mem0。
|
|
282
285
|
|
|
283
286
|
## 输出要求
|
|
@@ -62,7 +62,9 @@ GET /api/group/sub_groups?group_ids=<id1,id2>&with_full_info=0
|
|
|
62
62
|
其他三类仅替换 `type` 和 `content` 字段名。
|
|
63
63
|
|
|
64
64
|
## 推荐调用顺序
|
|
65
|
-
1.
|
|
66
|
-
2.
|
|
67
|
-
3.
|
|
68
|
-
4.
|
|
65
|
+
1. 从页面运行时读取四类配置和请求骨架。
|
|
66
|
+
2. 在本地 work 文件中同时更新四类数据。
|
|
67
|
+
3. 执行 `bpmax-cli config nav-config lint/build/submit`,先 dry-run,再用精确 `--confirm` 正式提交。
|
|
68
|
+
4. 提交后回读四类配置,并在浏览器首页点击入口验证。
|
|
69
|
+
|
|
70
|
+
`submitData()`、页面 `$post` 或直接 `POST/PUT /api/configuration` 只可用于理解页面行为,不得作为真实写入路径。
|
|
@@ -7,14 +7,19 @@
|
|
|
7
7
|
|
|
8
8
|
```text
|
|
9
9
|
/project?flow_type=<flowType>
|
|
10
|
+
/project?flow_type=<flowType>&flow_key=<flowKey>
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
- H5:
|
|
13
14
|
|
|
14
15
|
```text
|
|
15
16
|
/pages/index/project?flow_type=<flowType>
|
|
17
|
+
/pages/index/project?flow_type=<flowType>&flow_key=<flowKey>
|
|
16
18
|
```
|
|
17
19
|
|
|
20
|
+
- `flow_key` 为空时省略;非空时必须保留。多变体流程如果丢掉 `flow_key`,导航会进入默认流程列表,属于验收失败。
|
|
21
|
+
- 浏览器验收必须点击入口后确认 URL 中的 `flow_type` 和 `flow_key` 与目标流程一致。
|
|
22
|
+
|
|
18
23
|
### 控制台 / 看板 / 外链
|
|
19
24
|
- 不要机械把所有 PC 路径改成 `/pages/index/...`
|
|
20
25
|
- 如果当前工作区已有同类移动端路径,优先复用现有样例。
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bpmax-plugin-config
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: Discover BPMAX plugin-scoped Agent skills and install them explicitly with bpmax-cli.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# BPMAX Plugin Config
|
|
8
|
+
|
|
9
|
+
Use this skill when a BPMAX task involves a plugin-provided capability and the exact plugin-specific skill may need to be installed locally first.
|
|
10
|
+
|
|
11
|
+
## Required Flow
|
|
12
|
+
|
|
13
|
+
1. Confirm the target profile and workspace from the user's context or existing `bpmax-cli` profile.
|
|
14
|
+
2. List available plugin skills:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
bpmax-cli plugin skills list --profile <profile> --format json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
3. If the needed plugin skill is not installed locally, install it explicitly:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
4. Read the installed plugin-specific `SKILL.md` before editing or testing that plugin's configuration.
|
|
27
|
+
|
|
28
|
+
## Safety Rules
|
|
29
|
+
|
|
30
|
+
- Do not assume plugin installation also installed local Agent skills.
|
|
31
|
+
- Do not manually copy plugin skill folders unless `bpmax-cli plugin skills ensure` fails and the user explicitly approves a fallback.
|
|
32
|
+
- Treat `config.plugin.*` capabilities like other BPMAX configuration capabilities: they require an authorized profile and organization-admin configuration access.
|
|
33
|
+
- If `ensure` reports a checksum, name, version, or lint failure, stop and report the failure instead of using the package.
|
|
34
|
+
|
|
35
|
+
## Useful Commands
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
bpmax-cli plugin skills list --profile <profile> --format json
|
|
39
|
+
bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
|
|
40
|
+
bpmax-cli plugin skills update <plugin_name> --profile <profile> --agent codex --format json
|
|
41
|
+
bpmax-cli plugin skills state --profile <profile> --agent codex --format json
|
|
42
|
+
```
|
|
@@ -52,6 +52,7 @@ bpmax-cli project create --flow-id 123 --json '{"form":{"priority":"P1"}}' --for
|
|
|
52
52
|
- 已有结构化字段时仍使用默认 `project create --json ...`,CLI 会把 JSON 作为已填写值继续引导
|
|
53
53
|
- 如果 CLI 报 `Missing required fields`,把缺失字段转成自然语言继续问用户
|
|
54
54
|
- 如果用户明确要求“打开表单填写”“我自己去页面填”“给我创建页链接”,命令必须追加 `--allow-form-handoff`
|
|
55
|
+
- 如果自动化场景只需要稳定拿到 handoff JSON,不希望进入交互确认,使用 `bpmax-cli project create ... --json @payload.json --handoff-only --format json`;不要改走非交互直提硬冲。
|
|
55
56
|
|
|
56
57
|
### Handoff 回复前 gate
|
|
57
58
|
|
|
@@ -65,12 +66,15 @@ CLI 返回 `handoff: true` 时,回复用户前必须全部满足:
|
|
|
65
66
|
- `reason: "form_template_requires_page_handoff"` 说明表单包含页面专属能力,例如流水号、自动初始化或复杂控件;必须把 handoff 链接发给用户,不能回复“项目已创建”
|
|
66
67
|
- 如果链接只有 `flow_type`,或既没有 `prefill_token` 也没有 `init_value`,不得发给用户;重新运行默认 `project create` 或报告无法生成预填链接
|
|
67
68
|
- 如果 CLI 没有返回 URL,不要自己拼 URL
|
|
69
|
+
- 如果需要检查 handoff token 是否还能被平台读取,使用 `bpmax-cli project handoff status --prefill-token <token> --format json`。即使返回 `ok: true`,也只代表 token 可读;`browser_verified: false` 时必须打开真实浏览器页面验证表单预填和提交结果。若返回 `supported: false`,说明当前平台不支持 token 状态查询。
|
|
68
70
|
|
|
69
71
|
### 禁止/例外
|
|
70
72
|
|
|
71
73
|
- 用户自然语言创建流程单时禁止使用 `--no-interactive`
|
|
72
74
|
- 只有用户明确要求自动化直提,且确认不是人工填单流程,才允许考虑 `--no-interactive`
|
|
73
75
|
- 即使使用 `--no-interactive`,只要模板存在 `lambdaInit: true`、流水号/自动编号、复杂选择器、上传、富文本、关联表单/子表单等页面专属能力,CLI 也只生成创建页链接,不会调用创建接口
|
|
76
|
+
- 矩阵规则记录创建属于项目创建的一种高风险场景。`project create --json` 可能返回 handoff 链接;`--no-interactive` 直提不是稳定自动化路径,尤其当矩阵表单依赖页面初始化、用户选择器、枚举或复杂控件时。
|
|
77
|
+
- 批量准备矩阵规则前,先运行 `bpmax-cli matrix seed <matrix_flow_type> --rules @seed-rules.json --approver-field <owner_field> --format json`,让 CLI 检查 seed 中没有 UUID、审批人字段不为空,并输出后续安全的 `project create` 命令。
|
|
74
78
|
- `--unsafe-direct-create` 只允许本地专家调试旧行为;OpenClaw/Agent/BBS 永远不要使用
|
|
75
79
|
- 表单校验失败时修正字段 key/type/选项值,不要绕过校验重试
|
|
76
80
|
|
|
@@ -82,7 +86,9 @@ bpmax-cli project get --project-id 1001 --format json
|
|
|
82
86
|
bpmax-cli project my-step --format table
|
|
83
87
|
bpmax-cli project my-step --flow-type flow802926525 --format json
|
|
84
88
|
bpmax-cli project my-step --key-of-flow-node 'flow802926525::1776572829122' --format json
|
|
89
|
+
bpmax-cli project my-step --workspace store_mgr --flow-type flow802926525 --format json
|
|
85
90
|
bpmax-cli project approval-context 1001 --step-id 2002 --format json
|
|
91
|
+
bpmax-cli project handoff status --prefill-token <token> --format json
|
|
86
92
|
bpmax-cli project search --body @project-search-query.json --page 1 --page-size 20 --format json
|
|
87
93
|
bpmax-cli es project-search --body @project-search-query.json --page 1 --page-size 20 --format json
|
|
88
94
|
bpmax-cli step get 2002 --format json
|
|
@@ -165,9 +171,18 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
|
|
|
165
171
|
- 行程类子表单如果有开始时间、结束时间、出发地、目的地等必填子字段,缺任一字段时不要生成 handoff URL;继续问用户补齐
|
|
166
172
|
- 只有用户明确要求去页面填写时才走 Web 表单接管;接管会把已填内容写入 `init_value.key_to_value`,关联表单同样使用父字段 key 对应行对象数组
|
|
167
173
|
|
|
174
|
+
### 复杂控件 handoff 失败后的处理顺序
|
|
175
|
+
|
|
176
|
+
- 先运行 `bpmax-cli project create ... --explain-validation --format json`,读取字段 `schema`、合法 `options`、`handoff_hint` 和本地校验错误;不要靠反复提交猜控件结构。
|
|
177
|
+
- `i_select` / 枚举选择字段只能填 CLI 输出的合法候选值;例如错误提示“智能制造平台不是合法选项,可选:泳池机器人/割草机器人”时,必须改成候选之一或追问用户。
|
|
178
|
+
- 只有标量字段、数字、布尔、日期、普通文本、明确枚举值才适合预填;项目选择器、人员选择器、团队选择器、预算项目、城市/组织等复杂控件默认转页面选择。
|
|
179
|
+
- `es_project_selector`、项目选择器等字段如果没有平台返回的真实 selector 对象,不要把名称、编号或 raw value 直接塞进 handoff JSON;应让用户在 BPMAX 页面选择,或先通过业务查询拿到平台对象后再预填。
|
|
180
|
+
- `sub_form` 必须使用“父字段 key -> 行对象数组”的 schema;如果 `--explain-validation` 输出子字段 schema,按该 schema 补齐行对象,不要把平台 `raw.value` 结构直接转换成 handoff JSON。
|
|
181
|
+
|
|
168
182
|
## 异常处理
|
|
169
183
|
|
|
170
184
|
- 本地参数校验失败:先修正 `--flow-id`、`--name` 或 JSON
|
|
171
185
|
- 表单校验失败:按错误补齐必填字段、修正字段 key/type/选项值,不要绕过校验重试
|
|
172
186
|
- 服务端校验失败:保留错误原文
|
|
173
|
-
-
|
|
187
|
+
- 500 或服务端校验失败:查看 CLI 输出的 `local_form_validation`、`handoff_available`、`server_error_summary` 和 `next_action`;如果建议 handoff,就改用页面接管,不要追加 `--no-interactive` 硬冲。
|
|
188
|
+
- 创建路径不满足业务变体:优先改走 `project create --json ...` 的默认引导或 handoff;不得退回原始 `api POST`
|
|
@@ -78,6 +78,16 @@ description: "用于在 BPMAX 的项目详情模板页面中创建、编辑、
|
|
|
78
78
|
- 模块顺序就是页面展示顺序。
|
|
79
79
|
- `main_col` / `side_col` 的模块允许范围默认以 `moduleRegistry.js` 为准;源码存在但 registry 未收录的模块,允许作为高级 JSON 模式候选,不默认承诺可视化面板可直接支持。
|
|
80
80
|
- flow 绑定默认以当前页面 query 的 `flow_type/flow_key` 为准,不假设从 `flow.data.meta` 直接读取到详情模板绑定。
|
|
81
|
+
- `/project_detail/0/<project_id>` 里的 `0` 是运行态默认入口占位,不等于可以直接编辑的 flow_page_template 数字 ID。不要把 `bpmax-cli config project-detail-template export --id 0` 当成目标流程默认详情模板;它只代表全局默认模板。
|
|
82
|
+
- 编辑运行态默认详情模板前,必须先解析真实数字 ID:
|
|
83
|
+
- 优先运行 `bpmax-cli config project-detail-template resolve-default --flow-type <flow_type> --flow-key "<flow_key>" --profile <profile> --format json`。
|
|
84
|
+
- 若只拿到本地 sysconfig UUID,先运行 `bpmax-cli config resolve-id --domain project-detail-template --uuid <uuid> --repo <sysconfig_repo> --profile <profile> --format json`。本地镜像可能只有 UUID 没有数字 ID;只有 `resolved_id` 是平台数字 ID 时才允许 export/submit。
|
|
85
|
+
- 当详情模板被绑定到流程节点 `node.step_detail_id` 时,必须按节点业务动作选型:
|
|
86
|
+
- 需要填写当前环节表单的节点,详情模板应包含“项目详情 + 当前环节表单填写模块”。
|
|
87
|
+
- 审批/审核/确认/验收类节点,详情模板应以“项目详情”为主,不默认暴露当前环节表单填写模块。
|
|
88
|
+
- 打回修改、发起人补充等 `enable_relate_project_form=true` 的节点,应使用“只填写项目表单”的模板,且节点不应再额外挂独立 `form_template`。
|
|
89
|
+
- 纯系统自动化动作不要配置成单独需要用户进入处理的详情页;如果节点带子流程联动,应优先做系统等待/汇总页或禁止人工处理入口。
|
|
90
|
+
- 详情模板修改后的验收不能只看模板接口回读;还要回读绑定它的流程节点,确认 `step_detail_id`、`form_template`、`enable_relate_project_form` 与节点动作一致。
|
|
81
91
|
- 详情模块脚本默认查询口径:
|
|
82
92
|
- 前端模块脚本默认优先 `raw-es-search`
|
|
83
93
|
- 后端 helper 默认优先 `ctx.$esQuery(...)` 或已验证的 `rootUser` helper
|
|
@@ -138,6 +148,20 @@ export BPMAX_WORKSPACE='store_mgr'
|
|
|
138
148
|
- 至少检查 3 件事:模块是否出现在详情页、是否真的渲染出表格/卡片主体、页面是否发出了符合预期的列表请求或已经出现目标行数据。
|
|
139
149
|
- 只要模块目标是列表数据,模板回读成功不等于页面真实生效。
|
|
140
150
|
|
|
151
|
+
### 3.0 默认详情模板解析
|
|
152
|
+
- 如果用户给的是运行态 URL `/project_detail/0/<project_id>`,先通过项目详情、列表入口或用户提供信息确认 `flow_type/flow_key`,然后解析真实模板 ID:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
bpmax-cli config project-detail-template resolve-default \
|
|
156
|
+
--flow-type <flow_type> \
|
|
157
|
+
--flow-key "<flow_key>" \
|
|
158
|
+
--profile <profile> \
|
|
159
|
+
--format json
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- `resolved_id` 为空时,不得继续用 `--id 0` 猜测编辑;必须回到浏览器列表页或配置列表接口确认目标模板。
|
|
163
|
+
- `bpmax-cli config project-detail-template export --id 0` 只能用于查看全局默认结构,不能作为某个流程的默认详情模板修改目标。
|
|
164
|
+
|
|
141
165
|
### 3.1 优先检索现有模板
|
|
142
166
|
- 只要需求涉及“新建项目详情模板”或“参考已有模板改一个版本”,先在当前已激活配置仓库检索 `think_flow_page_template` 里的 `type = 2` 候选模板。
|
|
143
167
|
- 输出至少包含:
|
|
@@ -317,6 +341,8 @@ bpmax-cli config project-detail-template submit \
|
|
|
317
341
|
|
|
318
342
|
```bash
|
|
319
343
|
bpmax-cli config project-detail-template export --id <id> --out .codex/tmp/project-detail-template-editor
|
|
344
|
+
bpmax-cli config project-detail-template resolve-default --flow-type <flow_type> --flow-key "<flow_key>" --profile <profile> --format json
|
|
345
|
+
bpmax-cli config resolve-id --domain project-detail-template --uuid <uuid> --repo <sysconfig_repo> --profile <profile> --format json
|
|
320
346
|
bpmax-cli config project-detail-template lint --work .codex/tmp/project-detail-template-editor/work/<file>.json
|
|
321
347
|
bpmax-cli config project-detail-template build --work .codex/tmp/project-detail-template-editor/work/<file>.json --meta .codex/tmp/project-detail-template-editor/meta/<file>.meta.json --out .codex/tmp/project-detail-template-editor/submit/<file>.json
|
|
322
348
|
bpmax-cli config project-detail-template submit --id <id> --payload .codex/tmp/project-detail-template-editor/submit/<file>.json
|
package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md
CHANGED
|
@@ -45,3 +45,76 @@
|
|
|
45
45
|
- 必须显式配置 `flow_step_id`
|
|
46
46
|
- 模块顺序:
|
|
47
47
|
- 数组顺序就是页面渲染顺序
|
|
48
|
+
|
|
49
|
+
## 可复用最小 JSON 示例
|
|
50
|
+
|
|
51
|
+
### meta-form:展示当前项目表单字段/子表
|
|
52
|
+
|
|
53
|
+
用于展示主项目表单的基础信息、字段和子表。适合主区。
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"type": "meta-form",
|
|
58
|
+
"title": "项目表单",
|
|
59
|
+
"config": {
|
|
60
|
+
"showTitle": true,
|
|
61
|
+
"fields": [],
|
|
62
|
+
"subForms": []
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
说明:
|
|
68
|
+
- `fields: []` 表示按表单默认字段展示;需要控制字段时再显式列 key。
|
|
69
|
+
- 子表展示依赖表单模板本身存在 sub_form 控件;详情模板只负责展示,不负责创建表单结构。
|
|
70
|
+
|
|
71
|
+
### project-list:展示关联子流程/子项目
|
|
72
|
+
|
|
73
|
+
用于在当前项目详情页展示关联的下游流程、子流程或子项目列表。优先使用已验证的父子关联表格模式。
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"type": "project-list",
|
|
78
|
+
"title": "关联项目",
|
|
79
|
+
"config": {
|
|
80
|
+
"mode": "",
|
|
81
|
+
"format": "table",
|
|
82
|
+
"template_id": 954573597,
|
|
83
|
+
"flow_type": "flow123456789",
|
|
84
|
+
"flow_key": ""
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
说明:
|
|
90
|
+
- `template_id` 必须是列表模板数字 ID,不得使用 UUID。
|
|
91
|
+
- 只有运行态确认 ES 列表模式可稳定加载时,才使用 `mode: "project"`。
|
|
92
|
+
|
|
93
|
+
### project-info:展示项目基础信息
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"type": "project-info",
|
|
98
|
+
"title": "项目信息",
|
|
99
|
+
"config": {
|
|
100
|
+
"showCreator": true,
|
|
101
|
+
"showCreateTime": true,
|
|
102
|
+
"showStatus": true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### step-log:展示流程流转记录
|
|
108
|
+
|
|
109
|
+
适合侧栏,用于验收审批/退回/转交痕迹。
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"type": "step-log",
|
|
114
|
+
"title": "流转记录",
|
|
115
|
+
"config": {
|
|
116
|
+
"showComment": true,
|
|
117
|
+
"showTime": true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "bpmax-workspace-editor"
|
|
3
|
+
description: "用于在 BPMAX 中创建、编辑、导出、验证或删除平台工作区。只要用户提到“创建工作区”“编辑工作区配置”“workspace 配置”“工作区入口路径”“工作区管理员/白名单/icon/logo/背景图”“删除工作区”或等价表达,就应使用这个 skill。它要求 Codex 使用 bpmax-cli 的 typed `config workspace` adapter 完成 export、lint、build、submit、verify/delete 闭环,不得把它和本地配置库 `config workspace init <env>` 或流程绑定 `config workspace-flow` 混用。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BPMAX Workspace Editor
|
|
7
|
+
|
|
8
|
+
## 写入路径硬约束
|
|
9
|
+
- 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `workspace`;只有 `export_status`、`build_status`、`submit_status`、`create_status`、`delete_status` 都是 `supported` 时,才允许进入真实写入。
|
|
10
|
+
- 当前平台工作区配置只能走 typed CLI:
|
|
11
|
+
- 导出:`bpmax-cli config workspace export --id key:<workspace_key> --profile <profile> --format json`
|
|
12
|
+
- 构建:`bpmax-cli config workspace build --work <work-file> --meta <meta-file> --out <submit-file> --format json`
|
|
13
|
+
- 提交:`bpmax-cli config workspace submit --id <id|key:key> --payload <submit-file> --confirm "submit workspace <workspace_key>" --profile <profile> --format json`
|
|
14
|
+
- 新建:先准备 `mode=create` 的 work/meta,再用 `bpmax-cli config workspace create --id create:workspace --payload <submit-file> --confirm "submit workspace <workspace_key>" --profile <profile> --format json`
|
|
15
|
+
- 删除:`bpmax-cli config workspace delete --id <numeric_id> --confirm "delete workspace <numeric_id>" --profile <profile> --format json`
|
|
16
|
+
- 不得用 `bpmax-cli api POST/PUT/DELETE /workspace*`、浏览器 fetch、curl 或旧脚本绕过 typed adapter。
|
|
17
|
+
- 不要把本 skill 用于配置库目录初始化;配置库 clone/bind 使用 `bpmax-cli config workspace init <env> --workspace-dir <dir>`,对应 skill 是 `bpmax-config-latest`。
|
|
18
|
+
- 不要把本 skill 用于给工作区绑定流程;流程绑定使用 `bpmax-cli config workspace-flow build/submit`,通常由 `bpmax-flow-template-editor` 或 `bpmax-e2e-flow-config-orchestrator` 编排。
|
|
19
|
+
|
|
20
|
+
## 范围门禁
|
|
21
|
+
- 修改前必须明确目标工作区 key、用户要求改哪些字段,以及哪些字段必须保持不变。
|
|
22
|
+
- 只允许改用户明确要求的工作区字段;不得顺手调整 `workspace_flow`、导航、角色、权限点或配置库环境。
|
|
23
|
+
- 对 `entry_path`、`m_entry_path`、`origin`、`white_list`、`admin_ids` 这类可能影响访问入口和权限的字段,提交前必须在 dry-run 中逐项说明变更。
|
|
24
|
+
- 删除工作区是高风险操作;必须确认 numeric id,且只在用户明确要求删除时执行。
|
|
25
|
+
|
|
26
|
+
## Mem0 协议
|
|
27
|
+
- 开始前先调用 [$bpmax-memory-protocol](../bpmax-memory-protocol/SKILL.md),检索词至少包含:
|
|
28
|
+
- `workspace`
|
|
29
|
+
- 工作区 key / 名称
|
|
30
|
+
- `entry_path` / `admin_ids` / `white_list` / `icon` / `logo` 等本次相关字段
|
|
31
|
+
- 回读验证通过后,只写可复用结论:
|
|
32
|
+
- `decision`:工作区 key 命名、入口路径、管理员模型选择
|
|
33
|
+
- `task_learning`:某类工作区字段的稳定配置方式
|
|
34
|
+
- `anti_pattern`:误把平台工作区和配置库 workspace init 混用、raw API 绕过 typed adapter
|
|
35
|
+
- 不写 API Key、Authorization、密码、手机号、验证码、cookie、完整 payload 或大段接口响应。
|
|
36
|
+
|
|
37
|
+
## 标准闭环
|
|
38
|
+
1. 确认 profile 和能力:
|
|
39
|
+
```bash
|
|
40
|
+
bpmax-cli auth status --profile <profile> --format json
|
|
41
|
+
bpmax-cli capabilities refresh --profile <profile> --format json
|
|
42
|
+
bpmax-cli config adapters --format json
|
|
43
|
+
```
|
|
44
|
+
2. 编辑现有工作区:
|
|
45
|
+
```bash
|
|
46
|
+
bpmax-cli config workspace export --id key:<workspace_key> --profile <profile> --out .codex/tmp/workspace-editor --format json
|
|
47
|
+
bpmax-cli config workspace lint --work .codex/tmp/workspace-editor/work/workspace-key-<workspace_key>.json --format json
|
|
48
|
+
bpmax-cli config workspace build --work <work-file> --meta <meta-file> --out <submit-file> --format json
|
|
49
|
+
bpmax-cli config workspace submit --id key:<workspace_key> --payload <submit-file> --profile <profile> --format json
|
|
50
|
+
bpmax-cli config workspace submit --id key:<workspace_key> --payload <submit-file> --confirm "submit workspace <workspace_key>" --profile <profile> --format json
|
|
51
|
+
```
|
|
52
|
+
3. 新建工作区:
|
|
53
|
+
- work 文件必须包含 `mode: "create"`、`name`、`key`、`entry_path`。
|
|
54
|
+
- `key` 必须 2-20 位,字母开头,只能包含字母、数字、`_`、`-`。
|
|
55
|
+
- `entry_path` 默认可用 `/myProject`,但必须确认是否符合业务入口。
|
|
56
|
+
```bash
|
|
57
|
+
bpmax-cli config workspace build --work <create-work-file> --meta <create-meta-file> --out <submit-file> --format json
|
|
58
|
+
bpmax-cli config workspace create --id create:workspace --payload <submit-file> --profile <profile> --format json
|
|
59
|
+
bpmax-cli config workspace create --id create:workspace --payload <submit-file> --confirm "submit workspace <workspace_key>" --profile <profile> --format json
|
|
60
|
+
```
|
|
61
|
+
4. 验证:
|
|
62
|
+
```bash
|
|
63
|
+
bpmax-cli config workspace export --id key:<workspace_key> --profile <profile> --format json
|
|
64
|
+
```
|
|
65
|
+
必须确认回读中的 `name`、`key`、`entry_path`、`m_entry_path`、`origin`、`admin_ids`、`white_list` 与预期一致。
|
|
66
|
+
|
|
67
|
+
## 字段约束
|
|
68
|
+
- `name`:2-20 字符。
|
|
69
|
+
- `key`:2-20 位,字母开头,只能包含字母、数字、`_`、`-`。命令输入可写 `w:<key>` 或 `key:<key>`,提交 payload 会规范成纯 key。
|
|
70
|
+
- `entry_path`:必填,决定 PC 默认入口。
|
|
71
|
+
- `m_entry_path`:移动端入口;不确定时保持原值或空字符串。
|
|
72
|
+
- `is_system_admin`、`admin_ids`、`white_list`:权限相关字段,必须按用户要求或导出现状保守保留。
|
|
73
|
+
- `logo`、`bg_img`、`icon`、`description`、`origin`:只在需求明确时修改。
|
|
74
|
+
|
|
75
|
+
## 验收
|
|
76
|
+
- dry-run 输出必须显示 endpoint、method、payload 和 diff。
|
|
77
|
+
- confirmed submit 后必须有 readback hash。
|
|
78
|
+
- 浏览器验收时打开 `.../w:<workspace_key>/workspaceConfiguration/<workspace_key>` 或当前平台对应工作区配置页,确认名称、入口、图标和管理员范围显示正确。
|
|
@@ -19,32 +19,32 @@
|
|
|
19
19
|
|
|
20
20
|
| field_type | 出现次数 | 典型标签 | 样例路径 |
|
|
21
21
|
| --- | ---: | --- | --- |
|
|
22
|
-
| `i_input` | 104 | SN、产品SN、关联SO订单 | `think_form_template
|
|
23
|
-
| `i_textarea` | 20 | 备注、退货原因、项目内容描述 | `think_form_template
|
|
24
|
-
| `i_input_number` | 16 | 数量、金额、项目预算 | `think_form_template
|
|
25
|
-
| `input` | 10 | SN码、异常照片、扫描时间 | `think_form_template
|
|
26
|
-
| `code_control` | 2 | 代码编辑器 | `think_form_template
|
|
27
|
-
| `fc-editor` | 2 | 富文本组件 | `think_form_template
|
|
28
|
-
| `i_markdown` | 2 | Markdown | `think_form_template
|
|
29
|
-
| `i_rate` | 2 | 评分 | `think_form_template
|
|
30
|
-
| `sn_number` | 8 | 流水单号、门店编号 | `think_form_template
|
|
22
|
+
| `i_input` | 104 | SN、产品SN、关联SO订单 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'tl01qtfgax3mf/form_rule.value` |
|
|
23
|
+
| `i_textarea` | 20 | 备注、退货原因、项目内容描述 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fmwpmn403mqvahc/form_rule.value` |
|
|
24
|
+
| `i_input_number` | 16 | 数量、金额、项目预算 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'k4a6ag2dbenp/form_rule.value` |
|
|
25
|
+
| `input` | 10 | SN码、异常照片、扫描时间 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'pda_exception_sn/form_rule.value` |
|
|
26
|
+
| `code_control` | 2 | 代码编辑器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F679mn30d9lfawc/form_rule.value` |
|
|
27
|
+
| `fc-editor` | 2 | 富文本组件 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'vvc1qw4d0o8yp/form_rule.value` |
|
|
28
|
+
| `i_markdown` | 2 | Markdown | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fgllmn30eyduazc/form_rule.value` |
|
|
29
|
+
| `i_rate` | 2 | 评分 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F7zbmn30dylbaxc/form_rule.value` |
|
|
30
|
+
| `sn_number` | 8 | 流水单号、门店编号 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.value` |
|
|
31
31
|
|
|
32
32
|
### 选择类
|
|
33
33
|
|
|
34
34
|
| field_type | 出现次数 | 典型标签 | 样例路径 |
|
|
35
35
|
| --- | ---: | --- | --- |
|
|
36
|
-
| `i_select` | 30 | 国家、地区、产品线 | `think_form_template
|
|
37
|
-
| `group_select` | 28 | 门店、仓库、申请部门 | `think_form_template
|
|
38
|
-
| `radio` | 14 | 是否样机、是否一口价 | `think_form_template
|
|
39
|
-
| `user_select` | 14 | 申请人、负责人、项目经理 | `think_form_template
|
|
40
|
-
| `bp-cascader` | 4 | 级联选择器 | `think_form_template
|
|
41
|
-
| `project_selector_new` | 4 | 关联项目 | `think_form_template
|
|
42
|
-
| `checkbox` | 2 | 多选框 | `think_form_template
|
|
43
|
-
| `enum_select` | 2 | 枚举选择器 | `think_form_template
|
|
44
|
-
| `es_project_selector` | 8 | 产品层次、关联订单、项目选择器(ES) | `think_form_template
|
|
45
|
-
| `knowledge_form` | 2 | 知识库 | `think_form_template
|
|
46
|
-
| `model_selector` | 2 | 模型选择器 | `think_form_template
|
|
47
|
-
| `plugin_address_select` | 2 | 选择地址 | `think_form_template
|
|
36
|
+
| `i_select` | 30 | 国家、地区、产品线 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'xss6ag2dah9q/form_rule.value` |
|
|
37
|
+
| `group_select` | 28 | 门店、仓库、申请部门 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5861qtfg9fs6d/form_rule.value` |
|
|
38
|
+
| `radio` | 14 | 是否样机、是否一口价 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'x4m1qqt8bxj73/form_rule.value` |
|
|
39
|
+
| `user_select` | 14 | 申请人、负责人、项目经理 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'eye69vdud9mn/form_rule.value` |
|
|
40
|
+
| `bp-cascader` | 4 | 级联选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5qu1qw4cpok4o/form_rule.value` |
|
|
41
|
+
| `project_selector_new` | 4 | 关联项目 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'e6c1q8bj9mbqk/form_rule.value` |
|
|
42
|
+
| `checkbox` | 2 | 多选框 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'nfy6aeu1p9wd/form_rule.value` |
|
|
43
|
+
| `enum_select` | 2 | 枚举选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'q9s1qw4cytbe8/form_rule.value` |
|
|
44
|
+
| `es_project_selector` | 8 | 产品层次、关联订单、项目选择器(ES) | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'fyb69u27kudl/form_rule.value` |
|
|
45
|
+
| `knowledge_form` | 2 | 知识库 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'F46omn30ct8dauc/form_rule.value` |
|
|
46
|
+
| `model_selector` | 2 | 模型选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fj4smn30cxi3avc/form_rule.value` |
|
|
47
|
+
| `plugin_address_select` | 2 | 选择地址 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'5sy6a4vgqdpg/form_rule.value` |
|
|
48
48
|
|
|
49
49
|
`group_select` 不是简单的静态选择控件。它的 `filterConditions.parentGroups / models / modelFieldsData`、`hideUnmatchedTeams`、`excludeMatched` 在运行时的真实消费方式,以及 `/api/group/group_user` 是否真的按这些参数过滤,见 [group-select-runtime.md](./group-select-runtime.md)。
|
|
50
50
|
|
|
@@ -52,28 +52,28 @@
|
|
|
52
52
|
|
|
53
53
|
| field_type | 出现次数 | 典型标签 | 样例路径 |
|
|
54
54
|
| --- | ---: | --- | --- |
|
|
55
|
-
| `bp-date-picker` | 18 | 发货日期、申请日期、立项时间 | `think_form_template
|
|
56
|
-
| `bp-time-picker` | 2 | 时间选择器 | `think_form_template
|
|
57
|
-
| `i_time_selector` | 2 | 时间步骤选择器 | `think_form_template
|
|
58
|
-
| `i_address` | 2 | 地址 | `think_form_template
|
|
55
|
+
| `bp-date-picker` | 18 | 发货日期、申请日期、立项时间 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'n161qtgpjd01j/form_rule.value` |
|
|
56
|
+
| `bp-time-picker` | 2 | 时间选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'4ee1qw4cw4nzt/form_rule.value` |
|
|
57
|
+
| `i_time_selector` | 2 | 时间步骤选择器 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'hxk1qw4d6rx7z/form_rule.value` |
|
|
58
|
+
| `i_address` | 2 | 地址 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'xdo1qw4cy1eri/form_rule.value` |
|
|
59
59
|
|
|
60
60
|
### 上传与插件
|
|
61
61
|
|
|
62
62
|
| field_type | 出现次数 | 典型标签 | 样例路径 |
|
|
63
63
|
| --- | ---: | --- | --- |
|
|
64
|
-
| `image_upload` | 18 | 上传照片、拍照、退货照片 | `think_form_template
|
|
65
|
-
| `bp-upload` | 12 | 发票上传、附件上传、文件上传 | `think_form_template
|
|
66
|
-
| `plugin-pda-scan-demo` | 2 | PDA扫码Demo | `think_form_template
|
|
64
|
+
| `image_upload` | 18 | 上传照片、拍照、退货照片 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'r5j1qtfgc6sdk/form_rule.value` |
|
|
65
|
+
| `bp-upload` | 12 | 发票上传、附件上传、文件上传 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'9wp6ag2dbxqe/form_rule.value` |
|
|
66
|
+
| `plugin-pda-scan-demo` | 2 | PDA扫码Demo | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'htk6ahnv58w0/form_rule.value` |
|
|
67
67
|
|
|
68
68
|
## 展示与结构控件
|
|
69
69
|
|
|
70
70
|
| field_type | 出现次数 | 典型用途 | 样例路径 |
|
|
71
71
|
| --- | ---: | --- | --- |
|
|
72
|
-
| `h_label` | 28 | 标题、段落标签 | `think_form_template
|
|
73
|
-
| `i_hr` | 8 | 分割线、分区标题 | `think_form_template
|
|
74
|
-
| `description` | 4 | 说明文案、描述块 | `think_form_template
|
|
75
|
-
| `raw` | 116 | 只读数据回显、公式结果 | `think_form_template
|
|
76
|
-
| `sub_form` | 22 | 子表单容器、明细列表 | `think_form_template
|
|
72
|
+
| `h_label` | 28 | 标题、段落标签 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffngml5381vbafc/form_rule.value` |
|
|
73
|
+
| `i_hr` | 8 | 分割线、分区标题 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fb4hmn3092ljatc/form_rule.value` |
|
|
74
|
+
| `description` | 4 | 说明文案、描述块 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fwfcmn303rs0abc/form_rule.value` |
|
|
75
|
+
| `raw` | 116 | 只读数据回显、公式结果 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.value` |
|
|
76
|
+
| `sub_form` | 22 | 子表单容器、明细列表 | `think_form_template/<local-mirror-template-dir>/think_form_rule/field'i1u6ahnv7jfx/form_rule.value` |
|
|
77
77
|
|
|
78
78
|
## 使用建议
|
|
79
79
|
- 如果用户问“有多少种表单控件”,默认回答:当前仓库实际落地 `33` 种 `field_type`。
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
- 不要手动预填最终流水号;后端只在当前值为空时生成,已有值会被视为编辑态并跳过生成。
|
|
147
147
|
|
|
148
148
|
真实样例:
|
|
149
|
-
- `think_form_template
|
|
150
|
-
- `think_form_template
|
|
149
|
+
- `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.rule`
|
|
150
|
+
- `think_form_template/<local-mirror-template-dir>/think_form_rule/field'Fhz3mny90d26alc/form_rule.value`
|
|
151
151
|
|
|
152
152
|
### `raw`(只读数据字段)
|
|
153
153
|
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
- `props.disabled` 对 `raw` 不是主要只读保障;只读来自控件本身。不要把 `raw` 当成可编辑输入框使用。
|
|
196
196
|
|
|
197
197
|
真实样例:
|
|
198
|
-
- 条件显示回显:`think_form_template
|
|
199
|
-
- 隐藏兼容传值:`think_form_template
|
|
198
|
+
- 条件显示回显:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'Ffa7ml07zs4uafc/form_rule.rule`
|
|
199
|
+
- 隐藏兼容传值:`think_form_template/<local-mirror-template-dir>/think_form_rule/field'F2rtucp0a3/form_rule.rule`
|