create-yss-spec 3.4.10 → 3.5.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.
Files changed (174) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/api/_sync-service.js +111 -18
  4. package/src/cli/args.js +1 -0
  5. package/src/cli/help.js +10 -1
  6. package/src/cli/index.js +3 -0
  7. package/src/cli/prompts.js +5 -1
  8. package/src/cli/router.js +2 -0
  9. package/src/commands/attach.js +12 -2
  10. package/src/commands/init.js +2 -0
  11. package/src/commands/skills.js +253 -0
  12. package/src/commands/sync.js +3 -0
  13. package/src/family-identity.js +1 -1
  14. package/src/template/asset-runtime.js +220 -0
  15. package/src/template/distribution-runtime.js +165 -0
  16. package/src/template/instance-runtime.js +76 -29
  17. package/src/template/ownership-policy.js +17 -1
  18. package/src/template/prune-planner.js +6 -1
  19. package/src/template/sync-planner.js +3 -0
  20. package/src/template/verification-runtime.js +56 -1
  21. package/src/validation/metadata.js +24 -1
  22. package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
  23. package/template/.agents/skills/yss-cache/SKILL.md +6 -5
  24. package/template/.agents/skills/yss-cache/references/annotations.md +3 -1
  25. package/template/.agents/skills/yss-cache/references/architecture.md +4 -2
  26. package/template/.agents/skills/yss-cache/references/configuration.md +6 -3
  27. package/template/.agents/skills/yss-cache/references/jetcache.md +21 -0
  28. package/template/.agents/skills/yss-cache/references/redis-fallback.md +5 -3
  29. package/template/.agents/skills/yss-cache/references/verification.md +10 -4
  30. package/template/.agents/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  31. package/template/.agents/skills/yss-distributed-id/SKILL.md +14 -58
  32. package/template/.agents/skills/yss-distributed-id/agents/openai.yaml +2 -2
  33. package/template/.agents/skills/yss-distributed-id/references/README.md +11 -47
  34. package/template/.agents/skills/yss-mybatis/SKILL.md +14 -2
  35. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +5 -4
  36. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +8 -8
  37. package/template/.agents/skills/yss-prototype-stage/SKILL.md +2 -2
  38. package/template/.agents/skills/yss-repository/SKILL.md +1 -0
  39. package/template/.codex/skills/yss-cache/SKILL.md +6 -5
  40. package/template/.codex/skills/yss-cache/references/annotations.md +3 -1
  41. package/template/.codex/skills/yss-cache/references/architecture.md +4 -2
  42. package/template/.codex/skills/yss-cache/references/configuration.md +6 -3
  43. package/template/.codex/skills/yss-cache/references/jetcache.md +21 -0
  44. package/template/.codex/skills/yss-cache/references/redis-fallback.md +5 -3
  45. package/template/.codex/skills/yss-cache/references/verification.md +10 -4
  46. package/template/.codex/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  47. package/template/.codex/skills/yss-distributed-id/SKILL.md +14 -58
  48. package/template/.codex/skills/yss-distributed-id/agents/openai.yaml +2 -2
  49. package/template/.codex/skills/yss-distributed-id/references/README.md +11 -47
  50. package/template/.codex/skills/yss-mybatis/SKILL.md +14 -2
  51. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +5 -4
  52. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +8 -8
  53. package/template/.codex/skills/yss-prototype-stage/SKILL.md +2 -2
  54. package/template/.codex/skills/yss-repository/SKILL.md +1 -0
  55. package/template/.cursor/skills/yss-cache/SKILL.md +6 -5
  56. package/template/.cursor/skills/yss-cache/references/annotations.md +3 -1
  57. package/template/.cursor/skills/yss-cache/references/architecture.md +4 -2
  58. package/template/.cursor/skills/yss-cache/references/configuration.md +6 -3
  59. package/template/.cursor/skills/yss-cache/references/jetcache.md +21 -0
  60. package/template/.cursor/skills/yss-cache/references/redis-fallback.md +5 -3
  61. package/template/.cursor/skills/yss-cache/references/verification.md +10 -4
  62. package/template/.cursor/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  63. package/template/.cursor/skills/yss-distributed-id/SKILL.md +14 -58
  64. package/template/.cursor/skills/yss-distributed-id/agents/openai.yaml +2 -2
  65. package/template/.cursor/skills/yss-distributed-id/references/README.md +11 -47
  66. package/template/.cursor/skills/yss-mybatis/SKILL.md +14 -2
  67. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +5 -4
  68. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +8 -8
  69. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +2 -2
  70. package/template/.cursor/skills/yss-repository/SKILL.md +1 -0
  71. package/template/.pi/skills/yss-cache/SKILL.md +6 -5
  72. package/template/.pi/skills/yss-cache/references/annotations.md +3 -1
  73. package/template/.pi/skills/yss-cache/references/architecture.md +4 -2
  74. package/template/.pi/skills/yss-cache/references/configuration.md +6 -3
  75. package/template/.pi/skills/yss-cache/references/jetcache.md +21 -0
  76. package/template/.pi/skills/yss-cache/references/redis-fallback.md +5 -3
  77. package/template/.pi/skills/yss-cache/references/verification.md +10 -4
  78. package/template/.pi/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  79. package/template/.pi/skills/yss-distributed-id/SKILL.md +14 -58
  80. package/template/.pi/skills/yss-distributed-id/agents/openai.yaml +2 -2
  81. package/template/.pi/skills/yss-distributed-id/references/README.md +11 -47
  82. package/template/.pi/skills/yss-mybatis/SKILL.md +14 -2
  83. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +5 -4
  84. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +8 -8
  85. package/template/.pi/skills/yss-prototype-stage/SKILL.md +2 -2
  86. package/template/.pi/skills/yss-repository/SKILL.md +1 -0
  87. package/template/README.md +2 -5
  88. package/template/docs/agents/skill-migrations.md +4 -0
  89. package/template/docs/agents/yss-skill-registry.yaml +7 -6
  90. package/template/docs/design/README.md +0 -1
  91. package/template/docs/design/design.md +2 -2
  92. package/template/docs/design/templates/interaction-spec-template.md +1 -1
  93. package/template/docs/engineering/evidence/aliyun-artifact-resolution.json +446 -0
  94. package/template/scripts/design-md +2 -0
  95. package/template/scripts/lib/design-md.mjs +230 -0
  96. package/template/scripts/lib/skill-registry.mjs +9 -2
  97. package/template/scripts/lib/skill-supply-chain.mjs +33 -14
  98. package/template/scripts/verify-project-instance +11 -10
  99. package/template/skills-lock.json +11 -26
  100. package/template.manifest.json +18 -3
  101. package/template.snapshot.json +5 -5
  102. package/template/.agents/skills/grill-me/SKILL.md +0 -7
  103. package/template/.agents/skills/grill-me/agents/openai.yaml +0 -5
  104. package/template/.agents/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  105. package/template/.agents/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  106. package/template/.agents/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  107. package/template/.codex/skills/grill-me/SKILL.md +0 -7
  108. package/template/.codex/skills/grill-me/agents/openai.yaml +0 -5
  109. package/template/.codex/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  110. package/template/.codex/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  111. package/template/.codex/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  112. package/template/.cursor/skills/grill-me/SKILL.md +0 -7
  113. package/template/.cursor/skills/grill-me/agents/openai.yaml +0 -5
  114. package/template/.cursor/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  115. package/template/.cursor/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  116. package/template/.cursor/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  117. package/template/.pi/skills/grill-me/SKILL.md +0 -7
  118. package/template/.pi/skills/grill-me/agents/openai.yaml +0 -5
  119. package/template/.pi/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  120. package/template/.pi/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  121. package/template/.pi/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  122. package/template/docs/agents/yss-plugin-dependency-contract.md +0 -45
  123. package/template/docs/api/.gitkeep +0 -0
  124. package/template/docs/api/specs/.gitkeep +0 -0
  125. package/template/docs/architecture/.gitkeep +0 -0
  126. package/template/docs/design/facts/antdv-next/1.5.2/cli-help.txt +0 -38
  127. package/template/docs/design/facts/antdv-next/1.5.2/component-list.json +0 -434
  128. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/demo-basic.json +0 -7
  129. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/info.json +0 -246
  130. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/semantic.json +0 -40
  131. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/token.json +0 -32
  132. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/demo-basic.json +0 -7
  133. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/info.json +0 -190
  134. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/semantic.json +0 -20
  135. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/token.json +0 -256
  136. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/demo-basic.json +0 -7
  137. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/info.json +0 -460
  138. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/semantic.json +0 -70
  139. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/token.json +0 -123
  140. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/demo-basic.json +0 -7
  141. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/info.json +0 -646
  142. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/semantic.json +0 -50
  143. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/token.json +0 -130
  144. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/demo-basic.json +0 -7
  145. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/info.json +0 -640
  146. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/semantic.json +0 -70
  147. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/token.json +0 -172
  148. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/demo-basic.json +0 -7
  149. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/info.json +0 -1010
  150. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/semantic.json +0 -70
  151. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/token.json +0 -263
  152. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/demo-basic.json +0 -7
  153. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/info.json +0 -321
  154. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/semantic.json +0 -25
  155. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/token.json +0 -25
  156. package/template/docs/design/facts/antdv-next/1.5.2/design-md.json +0 -3
  157. package/template/docs/design/facts/antdv-next/1.5.2/manifest.json +0 -215
  158. package/template/docs/design/facts/antdv-next/1.5.2/resolution-probe.json +0 -5
  159. package/template/docs/design/prototypes/.gitkeep +0 -1
  160. package/template/docs/implementation/.gitkeep +0 -1
  161. package/template/docs/plan/IDEATION.md +0 -96
  162. package/template/docs/process/PDCA-SCRUM.md +0 -10
  163. package/template/docs/process/harness-executive-blueprint.md +0 -10
  164. package/template/docs/releases/.gitkeep +0 -1
  165. package/template/docs/requirements/README.md +0 -85
  166. package/template/docs/requirements/tickets/.gitkeep +0 -1
  167. package/template/docs/templates/agent-brief-template.md +0 -46
  168. package/template/docs/templates/architecture-proposal-template.md +0 -18
  169. package/template/docs/templates/implementation-plan-template.md +0 -16
  170. package/template/docs/templates/implementation-routing-template.md +0 -350
  171. package/template/docs/templates/requirement-freeze-template.md +0 -63
  172. package/template/docs/templates/risk-register-template.md +0 -11
  173. package/template/docs/templates/user-story-template.md +0 -20
  174. package/template/docs/testing/README.md +0 -110
@@ -1,646 +0,0 @@
1
- {
2
- "name": "Modal",
3
- "nameZh": "对话框",
4
- "description": "Display a modal dialog box, providing a title, content area, and action buttons.",
5
- "props": [
6
- {
7
- "name": "afterClose",
8
- "type": "() => void",
9
- "default": "-",
10
- "description": "Specify a function that will be called when modal is closed completely",
11
- "descriptionZh": "Modal 完全关闭后的回调"
12
- },
13
- {
14
- "name": "afterOpenChange",
15
- "type": "(open: boolean) => void",
16
- "default": "-",
17
- "description": "Callback when the animation ends when Modal is turned on and off",
18
- "descriptionZh": "打开和关闭 Modal 时动画结束后的回调"
19
- },
20
- {
21
- "name": "cancelButtonProps",
22
- "type": "ButtonProps",
23
- "default": "-",
24
- "description": "The cancel button props",
25
- "descriptionZh": "cancel 按钮 props"
26
- },
27
- {
28
- "name": "cancelText",
29
- "type": "VueNode",
30
- "default": "`Cancel`",
31
- "description": "Text of the Cancel button",
32
- "descriptionZh": "取消按钮文字"
33
- },
34
- {
35
- "name": "centered",
36
- "type": "boolean",
37
- "default": "false",
38
- "description": "Centered Modal",
39
- "descriptionZh": "垂直居中展示 Modal"
40
- },
41
- {
42
- "name": "classes",
43
- "type": "ModalClassNamesType",
44
- "default": "-",
45
- "description": "Customize class for each semantic structure inside the Modal component. Supports object or function.",
46
- "descriptionZh": "用于自定义 Modal 组件内部各语义化结构的 class,支持对象或函数"
47
- },
48
- {
49
- "name": "closable",
50
- "type": "boolean \\| [ClosableType](#closabletype)",
51
- "default": "true",
52
- "description": "Whether a close (x) button is visible on top right or not",
53
- "descriptionZh": "是否显示右上角的关闭按钮"
54
- },
55
- {
56
- "name": "closeIcon",
57
- "type": "VueNode",
58
- "default": "<CloseOutlined />",
59
- "description": "Custom close icon. Close button will be hidden when setting to `null` or `false`",
60
- "descriptionZh": "自定义关闭图标。设置为 `null` 或 `false` 时隐藏关闭按钮"
61
- },
62
- {
63
- "name": "confirmLoading",
64
- "type": "boolean",
65
- "default": "false",
66
- "description": "Whether to apply loading visual effect for OK button or not",
67
- "descriptionZh": "确定按钮 loading"
68
- },
69
- {
70
- "name": "destroyOnHidden",
71
- "type": "boolean",
72
- "default": "false",
73
- "description": "Whether to unmount child components on close",
74
- "descriptionZh": "关闭时销毁 Modal 里的子元素"
75
- },
76
- {
77
- "name": "focusTriggerAfterClose",
78
- "type": "boolean",
79
- "default": "true",
80
- "description": "Whether need to focus trigger element after dialog is closed",
81
- "descriptionZh": "对话框关闭后是否需要聚焦触发元素"
82
- },
83
- {
84
- "name": "footer",
85
- "type": "VueNode \\| (params: { originNode: VueNode, extra: { OkBtn: any, CancelBtn: any } }) => any",
86
- "default": "(OK and Cancel buttons)",
87
- "description": "Footer content, set as `footer={null}` when you don't need default buttons",
88
- "descriptionZh": "底部内容,当不需要默认底部按钮时,可以设为 `footer={null}`"
89
- },
90
- {
91
- "name": "forceRender",
92
- "type": "boolean",
93
- "default": "false",
94
- "description": "Force render Modal",
95
- "descriptionZh": "强制渲染 Modal"
96
- },
97
- {
98
- "name": "focusable",
99
- "type": "`{ trap?: boolean, focusTriggerAfterClose?: boolean }`",
100
- "default": "-",
101
- "description": "Configuration for focus management in the Modal",
102
- "descriptionZh": "对话框内焦点管理的配置"
103
- },
104
- {
105
- "name": "getContainer",
106
- "type": "string \\| HTMLElement \\| (() => HTMLElement) \\| false",
107
- "default": "document.body",
108
- "description": "The mounted node for Modal but still display at fullscreen",
109
- "descriptionZh": "指定 Modal 挂载的节点,但依旧为全屏展示,`false` 为挂载在当前位置"
110
- },
111
- {
112
- "name": "keyboard",
113
- "type": "boolean",
114
- "default": "true",
115
- "description": "Whether support press esc to close",
116
- "descriptionZh": "是否支持键盘 esc 关闭"
117
- },
118
- {
119
- "name": "loading",
120
- "type": "boolean",
121
- "default": "false",
122
- "description": "Show the skeleton",
123
- "descriptionZh": "显示骨架屏"
124
- },
125
- {
126
- "name": "mask",
127
- "type": "boolean \\| `{enabled?: boolean, blur?: boolean, closable?: boolean}`",
128
- "default": "true",
129
- "description": "Mask effect",
130
- "descriptionZh": "遮罩效果"
131
- },
132
- {
133
- "name": "~~maskClosable~~",
134
- "type": "boolean",
135
- "default": "true",
136
- "description": "Whether to close the modal dialog when the mask (area outside the modal) is clicked",
137
- "descriptionZh": ""
138
- },
139
- {
140
- "name": "modalRender",
141
- "type": "(node: any) => any",
142
- "default": "-",
143
- "description": "Custom modal content render",
144
- "descriptionZh": "自定义渲染对话框"
145
- },
146
- {
147
- "name": "mousePosition",
148
- "type": "MousePosition",
149
- "default": "-",
150
- "description": "Set animation start position",
151
- "descriptionZh": "设置动画起点位置"
152
- },
153
- {
154
- "name": "okButtonProps",
155
- "type": "ButtonProps",
156
- "default": "-",
157
- "description": "The ok button props",
158
- "descriptionZh": "ok 按钮 props"
159
- },
160
- {
161
- "name": "okText",
162
- "type": "VueNode",
163
- "default": "`OK`",
164
- "description": "Text of the OK button",
165
- "descriptionZh": "确认按钮文字"
166
- },
167
- {
168
- "name": "okType",
169
- "type": "LegacyButtonType",
170
- "default": "`primary`",
171
- "description": "Button `type` of the OK button",
172
- "descriptionZh": "确认按钮类型"
173
- },
174
- {
175
- "name": "open",
176
- "type": "boolean",
177
- "default": "false",
178
- "description": "Whether the modal dialog is visible or not, support `v-model:open`",
179
- "descriptionZh": "对话框是否可见,支持 `v-model:open`"
180
- },
181
- {
182
- "name": "rootClass",
183
- "type": "string",
184
- "default": "-",
185
- "description": "Root container class",
186
- "descriptionZh": "根容器 class"
187
- },
188
- {
189
- "name": "rootStyle",
190
- "type": "CSSProperties",
191
- "default": "-",
192
- "description": "Root container style",
193
- "descriptionZh": "根容器样式"
194
- },
195
- {
196
- "name": "scrollLock",
197
- "type": "boolean",
198
- "default": "true",
199
- "description": "Whether to lock body scroll when modal opens",
200
- "descriptionZh": "弹窗打开时是否锁定 body 滚动"
201
- },
202
- {
203
- "name": "styles",
204
- "type": "ModalStylesType",
205
- "default": "-",
206
- "description": "Customize inline style for each semantic structure inside the Modal component. Supports object or function.",
207
- "descriptionZh": "用于自定义 Modal 组件内部各语义化结构的行内 style,支持对象或函数"
208
- },
209
- {
210
- "name": "title",
211
- "type": "VueNode",
212
- "default": "-",
213
- "description": "The modal dialog's title",
214
- "descriptionZh": "标题"
215
- },
216
- {
217
- "name": "transitionName",
218
- "type": "string",
219
- "default": "-",
220
- "description": "Transition name of dialog",
221
- "descriptionZh": "对话框过渡动效名称"
222
- },
223
- {
224
- "name": "maskTransitionName",
225
- "type": "string",
226
- "default": "-",
227
- "description": "Transition name of mask",
228
- "descriptionZh": "遮罩过渡动效名称"
229
- },
230
- {
231
- "name": "width",
232
- "type": "string \\| number \\| Partial<Record<Breakpoint, string \\| number>>",
233
- "default": "520",
234
- "description": "Width of the modal dialog",
235
- "descriptionZh": "宽度"
236
- },
237
- {
238
- "name": "wrapClassName",
239
- "type": "string",
240
- "default": "-",
241
- "description": "The class name of the container of the modal dialog",
242
- "descriptionZh": "对话框外层容器的类名"
243
- },
244
- {
245
- "name": "wrapProps",
246
- "type": "Record<string, any>",
247
- "default": "-",
248
- "description": "Wrapper element props",
249
- "descriptionZh": "对话框外层容器属性"
250
- },
251
- {
252
- "name": "zIndex",
253
- "type": "number",
254
- "default": "1000",
255
- "description": "The `z-index` of the Modal",
256
- "descriptionZh": "设置 Modal 的 `z-index`"
257
- },
258
- {
259
- "name": "maskClosable",
260
- "type": "boolean",
261
- "default": "true",
262
- "description": "",
263
- "descriptionZh": "点击蒙层是否允许关闭"
264
- }
265
- ],
266
- "events": [
267
- {
268
- "name": "ok",
269
- "type": "(e: MouseEvent) => void",
270
- "default": "",
271
- "description": "Callback when the OK button is clicked",
272
- "descriptionZh": "点击确定回调"
273
- },
274
- {
275
- "name": "cancel",
276
- "type": "(e: MouseEvent) => void",
277
- "default": "",
278
- "description": "Callback when the mask, close button or Cancel button is clicked",
279
- "descriptionZh": "点击遮罩层或右上角叉或取消按钮的回调"
280
- },
281
- {
282
- "name": "update:open",
283
- "type": "(open: boolean) => void",
284
- "default": "",
285
- "description": "",
286
- "descriptionZh": "对话框显隐变化"
287
- }
288
- ],
289
- "slots": [
290
- {
291
- "name": "default",
292
- "type": "() => any",
293
- "default": "",
294
- "description": "Modal content",
295
- "descriptionZh": "内容"
296
- },
297
- {
298
- "name": "title",
299
- "type": "() => any",
300
- "default": "",
301
- "description": "Title",
302
- "descriptionZh": "标题"
303
- },
304
- {
305
- "name": "footer",
306
- "type": "(params: { originNode: VueNode, extra: { OkBtn: any, CancelBtn: any } }) => any",
307
- "default": "",
308
- "description": "Footer content",
309
- "descriptionZh": "底部内容"
310
- },
311
- {
312
- "name": "okText",
313
- "type": "() => any",
314
- "default": "",
315
- "description": "OK button text",
316
- "descriptionZh": "确认按钮文字"
317
- },
318
- {
319
- "name": "cancelText",
320
- "type": "() => any",
321
- "default": "",
322
- "description": "Cancel button text",
323
- "descriptionZh": "取消按钮文字"
324
- },
325
- {
326
- "name": "closeIcon",
327
- "type": "() => any",
328
- "default": "",
329
- "description": "Custom close icon",
330
- "descriptionZh": "自定义关闭图标"
331
- },
332
- {
333
- "name": "modalRender",
334
- "type": "(node: any) => any",
335
- "default": "",
336
- "description": "Custom modal content render",
337
- "descriptionZh": "自定义渲染内容"
338
- }
339
- ],
340
- "methods": [],
341
- "subComponentProps": {
342
- "Modalmethod": {
343
- "properties": [
344
- {
345
- "name": "afterClose",
346
- "type": "() => void",
347
- "default": "-",
348
- "description": "Specify a function that will be called when modal is closed completely",
349
- "descriptionZh": "Modal 完全关闭后的回调"
350
- },
351
- {
352
- "name": "autoFocusButton",
353
- "type": "null \\| `ok` \\| `cancel`",
354
- "default": "`ok`",
355
- "description": "Specify which button to autofocus",
356
- "descriptionZh": "指定自动获得焦点的按钮"
357
- },
358
- {
359
- "name": "cancelButtonProps",
360
- "type": "ButtonProps",
361
- "default": "-",
362
- "description": "The cancel button props",
363
- "descriptionZh": "cancel 按钮 props"
364
- },
365
- {
366
- "name": "cancelText",
367
- "type": "string",
368
- "default": "`Cancel`",
369
- "description": "Text of the Cancel button with Modal.confirm",
370
- "descriptionZh": "设置 Modal.confirm 取消按钮文字"
371
- },
372
- {
373
- "name": "centered",
374
- "type": "boolean",
375
- "default": "false",
376
- "description": "Centered Modal",
377
- "descriptionZh": "垂直居中展示 Modal"
378
- },
379
- {
380
- "name": "class",
381
- "type": "string",
382
- "default": "-",
383
- "description": "Container class",
384
- "descriptionZh": "容器类名"
385
- },
386
- {
387
- "name": "rootClass",
388
- "type": "string",
389
- "default": "-",
390
- "description": "Root container class",
391
- "descriptionZh": "根容器 class"
392
- },
393
- {
394
- "name": "closable",
395
- "type": "boolean \\| [ClosableType](#closabletype)",
396
- "default": "false",
397
- "description": "Whether a close (x) button is visible on top right of the confirm dialog or not",
398
- "descriptionZh": "是否显示右上角的关闭按钮"
399
- },
400
- {
401
- "name": "closeIcon",
402
- "type": "VueNode",
403
- "default": "-",
404
- "description": "Custom close icon",
405
- "descriptionZh": "自定义关闭图标"
406
- },
407
- {
408
- "name": "content",
409
- "type": "VueNode",
410
- "default": "-",
411
- "description": "Content",
412
- "descriptionZh": "内容"
413
- },
414
- {
415
- "name": "footer",
416
- "type": "VueNode \\| (params: { originNode: VueNode, extra: { OkBtn: any, CancelBtn: any } }) => any",
417
- "default": "-",
418
- "description": "Footer content, set as `footer: null` when you don't need default buttons",
419
- "descriptionZh": "底部内容,当不需要默认底部按钮时,可以设为 `footer: null`"
420
- },
421
- {
422
- "name": "getContainer",
423
- "type": "string \\| HTMLElement \\| (() => HTMLElement) \\| false",
424
- "default": "document.body",
425
- "description": "Return the mount node for Modal",
426
- "descriptionZh": "指定 Modal 挂载的 HTML 节点,false 为挂载在当前 dom"
427
- },
428
- {
429
- "name": "icon",
430
- "type": "VueNode",
431
- "default": "&lt;ExclamationCircleFilled />",
432
- "description": "Custom icon",
433
- "descriptionZh": "自定义图标"
434
- },
435
- {
436
- "name": "keyboard",
437
- "type": "boolean",
438
- "default": "true",
439
- "description": "Whether support press esc to close",
440
- "descriptionZh": "是否支持键盘 esc 关闭"
441
- },
442
- {
443
- "name": "mask",
444
- "type": "boolean \\| [MaskType](#masktype)",
445
- "default": "true",
446
- "description": "Mask effect",
447
- "descriptionZh": "遮罩效果"
448
- },
449
- {
450
- "name": "maskClosable",
451
- "type": "boolean",
452
- "default": "false",
453
- "description": "Whether to close the modal dialog when the mask is clicked",
454
- "descriptionZh": ""
455
- },
456
- {
457
- "name": "okButtonProps",
458
- "type": "ButtonProps",
459
- "default": "-",
460
- "description": "The ok button props",
461
- "descriptionZh": "ok 按钮 props"
462
- },
463
- {
464
- "name": "okText",
465
- "type": "string",
466
- "default": "`OK`",
467
- "description": "Text of the OK button",
468
- "descriptionZh": "确认按钮文字"
469
- },
470
- {
471
- "name": "okType",
472
- "type": "LegacyButtonType",
473
- "default": "`primary`",
474
- "description": "Button `type` of the OK button",
475
- "descriptionZh": "确认按钮类型"
476
- },
477
- {
478
- "name": "scrollLock",
479
- "type": "boolean",
480
- "default": "true",
481
- "description": "Whether to lock body scroll when modal opens",
482
- "descriptionZh": "弹窗打开时是否锁定 body 滚动"
483
- },
484
- {
485
- "name": "style",
486
- "type": "CSSProperties",
487
- "default": "-",
488
- "description": "Style of floating layer, typically used at least for adjusting the position",
489
- "descriptionZh": "可用于设置浮层的样式,调整浮层位置等"
490
- },
491
- {
492
- "name": "title",
493
- "type": "VueNode",
494
- "default": "-",
495
- "description": "Title",
496
- "descriptionZh": "标题"
497
- },
498
- {
499
- "name": "type",
500
- "type": "`info` \\| `success` \\| `error` \\| `warn` \\| `warning` \\| `confirm`",
501
- "default": "`confirm`",
502
- "description": "Dialog type",
503
- "descriptionZh": "对话框类型"
504
- },
505
- {
506
- "name": "width",
507
- "type": "string \\| number",
508
- "default": "416",
509
- "description": "Width of the modal dialog",
510
- "descriptionZh": "宽度"
511
- },
512
- {
513
- "name": "wrapClassName",
514
- "type": "string",
515
- "default": "-",
516
- "description": "The class name of the container of the modal dialog",
517
- "descriptionZh": "对话框外层容器的类名"
518
- },
519
- {
520
- "name": "zIndex",
521
- "type": "number",
522
- "default": "1000",
523
- "description": "The `z-index` of the Modal",
524
- "descriptionZh": "设置 Modal 的 `z-index`"
525
- },
526
- {
527
- "name": "onCancel",
528
- "type": "(close?: () => void) => void",
529
- "default": "-",
530
- "description": "Click to onCancel callback, the parameter is the closing function",
531
- "descriptionZh": "点击取消回调,参数为关闭函数"
532
- },
533
- {
534
- "name": "onOk",
535
- "type": "(close?: () => void) => void",
536
- "default": "-",
537
- "description": "Click to onOk callback, the parameter is the closing function",
538
- "descriptionZh": "点击确定回调,参数为关闭函数"
539
- },
540
- {
541
- "name": "~~maskClosable~~",
542
- "type": "boolean",
543
- "default": "false",
544
- "description": "",
545
- "descriptionZh": "点击蒙层是否允许关闭"
546
- }
547
- ],
548
- "events": [],
549
- "slots": [],
550
- "methods": []
551
- },
552
- "ClosableType": {
553
- "properties": [
554
- {
555
- "name": "afterClose",
556
- "type": "() => void",
557
- "default": "-",
558
- "description": "Specify a function that will be called when modal is closed completely",
559
- "descriptionZh": "Modal 完全关闭后的回调"
560
- },
561
- {
562
- "name": "closeIcon",
563
- "type": "VueNode",
564
- "default": "undefined",
565
- "description": "Custom close icon",
566
- "descriptionZh": "自定义关闭图标"
567
- },
568
- {
569
- "name": "disabled",
570
- "type": "boolean",
571
- "default": "false",
572
- "description": "Whether disabled close icon",
573
- "descriptionZh": "关闭图标是否禁用"
574
- },
575
- {
576
- "name": "onClose",
577
- "type": "() => void",
578
- "default": "undefined",
579
- "description": "Trigger when modal close",
580
- "descriptionZh": "弹窗关闭即时调用"
581
- }
582
- ],
583
- "events": [],
584
- "slots": [],
585
- "methods": []
586
- },
587
- "MaskType": {
588
- "properties": [
589
- {
590
- "name": "enabled",
591
- "type": "boolean",
592
- "default": "true",
593
- "description": "Do you want to enable masking",
594
- "descriptionZh": "是否启用蒙层"
595
- },
596
- {
597
- "name": "blur",
598
- "type": "boolean",
599
- "default": "false",
600
- "description": "Whether to enable virtualization effect",
601
- "descriptionZh": "是否启用虚化效果"
602
- },
603
- {
604
- "name": "closable",
605
- "type": "boolean",
606
- "default": "true",
607
- "description": "Whether to close the modal dialog when the mask is clicked, When using functional calls, the default value is `false`",
608
- "descriptionZh": "点击蒙层是否允许关闭,函数式调用时默认 `false`"
609
- }
610
- ],
611
- "events": [],
612
- "slots": [],
613
- "methods": []
614
- }
615
- },
616
- "commonProps": [
617
- {
618
- "name": "style",
619
- "type": "CSSProperties",
620
- "default": "-",
621
- "description": "The additional style",
622
- "descriptionZh": "自定义样式"
623
- },
624
- {
625
- "name": "class",
626
- "type": "string",
627
- "default": "-",
628
- "description": "The additional css class",
629
- "descriptionZh": "自定义类名"
630
- },
631
- {
632
- "name": "rootClass",
633
- "type": "string",
634
- "default": "-",
635
- "description": "ClassName on the root element",
636
- "descriptionZh": "添加在组件最外层的 className"
637
- },
638
- {
639
- "name": "autoFocus",
640
- "type": "boolean",
641
- "default": "false",
642
- "description": "Auto focus when component mounted, only effective for focusable elements like forms, links, etc.",
643
- "descriptionZh": "自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效"
644
- }
645
- ]
646
- }