mvframe 1.0.82 → 1.0.86
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/.cursor/rules/style-system.mdc +45 -0
- package/README.cn.md +23 -0
- package/README.md +23 -0
- package/dist/composition.js +148 -130
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1176 -1164
- package/package.json +1 -1
- package/scripts/install-codex-agents.js +6 -2
- package/scripts/scaffold-app.js +23 -0
package/package.json
CHANGED
|
@@ -82,8 +82,12 @@ ${getSharedStyleRulesForCodex()}
|
|
|
82
82
|
|
|
83
83
|
## 完成后通知
|
|
84
84
|
|
|
85
|
-
-
|
|
86
|
-
-
|
|
85
|
+
- 每次完成一个开发任务后,都要在宿主项目根目录发送一条完成通知:\`yarn exec mvframe-notify --once --message "<标题>\n<正文>"\`。
|
|
86
|
+
- 通知内容必须使用中文。
|
|
87
|
+
- 标题写为“当前对话请求内容”的简短概括,单独一行,不要展开成长句。
|
|
88
|
+
- 正文写为本次执行反馈的简短概括;需要包含本次实际完成了什么、改到了哪里、当前结果或验证结论(如果已有)。
|
|
89
|
+
- 如果本次明显执行了多个动作,或完成了彼此不同的内容,正文按 \`1.\`、\`2.\`、\`3.\` 依次编号;每个序号之间必须换行成独立段落,不要挤在同一段里。
|
|
90
|
+
- 文案保持简短、可投递、可扫读,不写寒暄,不写无信息量套话。
|
|
87
91
|
- 如果缺少 \`.env.mvframe-notify\`、钉钉 notify 未配置,或命令执行失败,不要伪造成功;需要在最终回复里明确说明通知未发送成功。
|
|
88
92
|
${END}
|
|
89
93
|
`;
|
package/scripts/scaffold-app.js
CHANGED
|
@@ -867,6 +867,29 @@ yarn exec mvframe-d
|
|
|
867
867
|
|
|
868
868
|
\`src/main.js\` 已包含 \`import "mvframe/style"\` 与 \`import "mvframe/style/cpt"\`(分别对应工具类/变量与 **Mvc\*** 组件 scoped 等样式),一般 **无需** 在 \`index.scss\` 再引一遍 mvframe 的 dist CSS,以免重复。项目级覆盖写在 \`src/assets/style/index.scss\` 即可。
|
|
869
869
|
|
|
870
|
+
## 表单 Label
|
|
871
|
+
|
|
872
|
+
\`Input\`、\`Textarea\`、\`Select\`、\`SelectV2\` 支持统一的 label 接口:
|
|
873
|
+
|
|
874
|
+
\`\`\`vue
|
|
875
|
+
<Input v-model="form.name" label="Name" />
|
|
876
|
+
<Input v-model="form.name" label="Material Name" material-label />
|
|
877
|
+
|
|
878
|
+
<Textarea v-model="form.remark" label="Remark" />
|
|
879
|
+
<Textarea v-model="form.remark" label="Material Remark" material-label />
|
|
880
|
+
|
|
881
|
+
<Select v-model="form.type" :options="options" label="Type" />
|
|
882
|
+
<Select v-model="form.type" :options="options" label="Material Type" material-label />
|
|
883
|
+
\`\`\`
|
|
884
|
+
|
|
885
|
+
规则:
|
|
886
|
+
|
|
887
|
+
- 只传 \`label\`:渲染普通上方标题
|
|
888
|
+
- 传 \`label\` + \`material-label\`:渲染 Material 风格浮动标签
|
|
889
|
+
- 不传 \`label\`:保持组件默认外观
|
|
890
|
+
|
|
891
|
+
Material 风格 label 的公共壳样式统一在 \`src/style/chip/element.scss\`。如果你要做 Material 风格表单,优先直接使用 \`label\` + \`material-label\`,不要在业务侧再重复写一套浮动标题。
|
|
892
|
+
|
|
870
893
|
## 子路径(按需)
|
|
871
894
|
|
|
872
895
|
发布包 \`exports\` 还提供 \`mvframe/composition\`、\`mvframe/util\`、\`mvframe/store\`、\`mvframe/notify\` 等,业务侧可 \`import { ... } from "mvframe/composition"\` 等,参见包内 \`package.json\` 的 \`exports\`。
|