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,246 +0,0 @@
1
- {
2
- "name": "Alert",
3
- "nameZh": "警告提示",
4
- "description": "Display warning messages that require attention.",
5
- "props": [
6
- {
7
- "name": "type",
8
- "type": "'success' \\| 'info' \\| 'warning' \\| 'error'",
9
- "default": "`info`, in `banner` mode default is `warning`",
10
- "description": "Type of Alert styles, options: `success`, `info`, `warning`, `error`",
11
- "descriptionZh": "指定警告提示的样式,有四种选择 `success`、`info`、`warning`、`error`"
12
- },
13
- {
14
- "name": "closable",
15
- "type": "ClosableType",
16
- "default": "`false`",
17
- "description": "The config of closable, >=5.15.0: support `aria-*`",
18
- "descriptionZh": "可关闭配置,>=5.15.0: 支持 `aria-*`"
19
- },
20
- {
21
- "name": "title",
22
- "type": "VueNode",
23
- "default": "-",
24
- "description": "Content of Alert",
25
- "descriptionZh": "警告提示内容"
26
- },
27
- {
28
- "name": "message",
29
- "type": "VueNode",
30
- "default": "-",
31
- "description": "Content of Alert, please use `title` instead",
32
- "descriptionZh": "警告提示内容,请使用 `title` 替换"
33
- },
34
- {
35
- "name": "description",
36
- "type": "VueNode",
37
- "default": "-",
38
- "description": "Additional content of Alert",
39
- "descriptionZh": "警告提示的辅助性文字介绍"
40
- },
41
- {
42
- "name": "afterClose",
43
- "type": "() => void",
44
- "default": "-",
45
- "description": "Called when close animation is finished, please use `closable.afterClose` instead",
46
- "descriptionZh": "关闭动画结束后触发的回调函数,请使用 `closable.afterClose` 替换"
47
- },
48
- {
49
- "name": "showIcon",
50
- "type": "boolean",
51
- "default": "false, in `banner` mode default is true",
52
- "description": "Whether to show icon",
53
- "descriptionZh": "是否显示辅助图标"
54
- },
55
- {
56
- "name": "role",
57
- "type": "string",
58
- "default": "-",
59
- "description": "https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute",
60
- "descriptionZh": "https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute"
61
- },
62
- {
63
- "name": "classes",
64
- "type": "AlertClassNamesType",
65
- "default": "-",
66
- "description": "Customize class for each semantic structure inside the component. Supports object or function",
67
- "descriptionZh": "自定义组件内部各语义化结构的类名。支持对象或函数"
68
- },
69
- {
70
- "name": "styles",
71
- "type": "AlertStylesType",
72
- "default": "-",
73
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function",
74
- "descriptionZh": "自定义组件内部各语义化结构的内联样式。支持对象或函数"
75
- },
76
- {
77
- "name": "banner",
78
- "type": "boolean",
79
- "default": "false",
80
- "description": "Whether to show as banner",
81
- "descriptionZh": "是否用作顶部公告"
82
- },
83
- {
84
- "name": "icon",
85
- "type": "VueNode",
86
- "default": "-",
87
- "description": "Custom icon, effective when `showIcon` is true",
88
- "descriptionZh": "自定义图标,`showIcon` 为 true 时有效"
89
- },
90
- {
91
- "name": "successIcon",
92
- "type": "VueNode",
93
- "default": "-",
94
- "description": "(Only supports global configuration) Custom success icon in Alert icon",
95
- "descriptionZh": "(仅支持全局配置)自定义成功图标"
96
- },
97
- {
98
- "name": "infoIcon",
99
- "type": "VueNode",
100
- "default": "-",
101
- "description": "(Only supports global configuration) Custom info icon in Alert icon",
102
- "descriptionZh": "(仅支持全局配置)自定义信息图标"
103
- },
104
- {
105
- "name": "warningIcon",
106
- "type": "VueNode",
107
- "default": "-",
108
- "description": "(Only supports global configuration) Custom warning icon in Alert icon",
109
- "descriptionZh": "(仅支持全局配置)自定义警告图标"
110
- },
111
- {
112
- "name": "errorIcon",
113
- "type": "VueNode",
114
- "default": "-",
115
- "description": "(Only supports global configuration) Custom error icon in Alert icon",
116
- "descriptionZh": "(仅支持全局配置)自定义错误图标"
117
- },
118
- {
119
- "name": "closeIcon",
120
- "type": "VueNode",
121
- "default": "-",
122
- "description": "-",
123
- "descriptionZh": "-"
124
- },
125
- {
126
- "name": "action",
127
- "type": "VueNode",
128
- "default": "-",
129
- "description": "The action of Alert",
130
- "descriptionZh": "自定义操作项"
131
- },
132
- {
133
- "name": "id",
134
- "type": "string",
135
- "default": "-",
136
- "description": "-",
137
- "descriptionZh": "-"
138
- }
139
- ],
140
- "events": [
141
- {
142
- "name": "close",
143
- "type": "(e: any) => any",
144
- "default": "",
145
- "description": "Callback when close Alert",
146
- "descriptionZh": "Callback when close Alert"
147
- },
148
- {
149
- "name": "mouseenter",
150
- "type": "(e: any) => any",
151
- "default": "",
152
- "description": "-",
153
- "descriptionZh": "-"
154
- },
155
- {
156
- "name": "mouseleave",
157
- "type": "(e: any) => any",
158
- "default": "",
159
- "description": "-",
160
- "descriptionZh": "-"
161
- },
162
- {
163
- "name": "click",
164
- "type": "(e: any) => any",
165
- "default": "",
166
- "description": "-",
167
- "descriptionZh": "-"
168
- }
169
- ],
170
- "slots": [
171
- {
172
- "name": "message",
173
- "type": "() => any",
174
- "default": "",
175
- "description": "Content of Alert, please use `title` instead",
176
- "descriptionZh": "警告提示内容,请使用 `title` 替换"
177
- },
178
- {
179
- "name": "title",
180
- "type": "() => any",
181
- "default": "",
182
- "description": "Content of Alert",
183
- "descriptionZh": "警告提示内容"
184
- },
185
- {
186
- "name": "description",
187
- "type": "() => any",
188
- "default": "",
189
- "description": "Additional content of Alert",
190
- "descriptionZh": "警告提示的辅助性文字介绍"
191
- },
192
- {
193
- "name": "icon",
194
- "type": "() => any",
195
- "default": "",
196
- "description": "Custom icon, effective when `showIcon` is true",
197
- "descriptionZh": "自定义图标,`showIcon` 为 true 时有效"
198
- },
199
- {
200
- "name": "closeIcon",
201
- "type": "() => any",
202
- "default": "",
203
- "description": "-",
204
- "descriptionZh": "-"
205
- },
206
- {
207
- "name": "action",
208
- "type": "() => any",
209
- "default": "",
210
- "description": "The action of Alert",
211
- "descriptionZh": "自定义操作项"
212
- }
213
- ],
214
- "methods": [],
215
- "subComponentProps": {},
216
- "commonProps": [
217
- {
218
- "name": "style",
219
- "type": "CSSProperties",
220
- "default": "-",
221
- "description": "The additional style",
222
- "descriptionZh": "自定义样式"
223
- },
224
- {
225
- "name": "class",
226
- "type": "string",
227
- "default": "-",
228
- "description": "The additional css class",
229
- "descriptionZh": "自定义类名"
230
- },
231
- {
232
- "name": "rootClass",
233
- "type": "string",
234
- "default": "-",
235
- "description": "ClassName on the root element",
236
- "descriptionZh": "添加在组件最外层的 className"
237
- },
238
- {
239
- "name": "autoFocus",
240
- "type": "boolean",
241
- "default": "false",
242
- "description": "Auto focus when component mounted, only effective for focusable elements like forms, links, etc.",
243
- "descriptionZh": "自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效"
244
- }
245
- ]
246
- }
@@ -1,40 +0,0 @@
1
- {
2
- "name": "Alert",
3
- "semanticStructure": [
4
- {
5
- "key": "root",
6
- "description": "Root element with border, background, padding, border-radius, and positioning styles for the alert container",
7
- "descriptionZh": "根元素,包含边框、背景色、内边距、圆角、位置布局等警告提示框的基础样式"
8
- },
9
- {
10
- "key": "section",
11
- "description": "Content element with flex layout controlling content area typography and minimum width",
12
- "descriptionZh": "内容元素,采用 flex 布局控制内容区域的排版和最小宽度"
13
- },
14
- {
15
- "key": "icon",
16
- "description": "Icon element with color, line-height, and margin styles, supporting different status icon types",
17
- "descriptionZh": "图标元素,包含图标的颜色、行高、外边距等样式,支持不同类型的状态图标"
18
- },
19
- {
20
- "key": "title",
21
- "description": "Title element with text color and font styling for the alert title",
22
- "descriptionZh": "标题元素,包含标题文字的颜色、字体等样式"
23
- },
24
- {
25
- "key": "description",
26
- "description": "Description element with font-size and line-height styles for additional content",
27
- "descriptionZh": "描述元素,包含描述文字的字体大小、行高等排版样式"
28
- },
29
- {
30
- "key": "actions",
31
- "description": "Actions element with layout and spacing styles for action buttons",
32
- "descriptionZh": "操作组元素,包含操作按钮的布局和间距样式"
33
- },
34
- {
35
- "key": "close",
36
- "description": "Close button element with basic button styling",
37
- "descriptionZh": "关闭按钮元素,包含按钮的基础样式"
38
- }
39
- ]
40
- }
@@ -1,32 +0,0 @@
1
- {
2
- "token": [
3
- {
4
- "name": "borderRadius",
5
- "type": "BorderRadius<string | number> | undefined",
6
- "default": "8",
7
- "description": "Border radius of alert",
8
- "descriptionZh": "组件圆角"
9
- },
10
- {
11
- "name": "defaultPadding",
12
- "type": "Padding<string | number> | undefined",
13
- "default": "8px 12px",
14
- "description": "Default padding",
15
- "descriptionZh": "默认内间距"
16
- },
17
- {
18
- "name": "withDescriptionIconSize",
19
- "type": "string | number",
20
- "default": "24",
21
- "description": "Icon size with description",
22
- "descriptionZh": "带有描述时的图标尺寸"
23
- },
24
- {
25
- "name": "withDescriptionPadding",
26
- "type": "Padding<string | number> | undefined",
27
- "default": "20px 24px",
28
- "description": "Padding with description",
29
- "descriptionZh": "带有描述的内间距"
30
- }
31
- ]
32
- }
@@ -1,7 +0,0 @@
1
- {
2
- "component": "Button",
3
- "name": "basic",
4
- "title": "Syntactic sugar",
5
- "description": "Through the `type` syntactic sugar, use the preset button styles: `primary` buttons, `default` buttons, `dashed` buttons, `text` buttons, and `link` buttons.",
6
- "code": "<template>\n <a-flex gap=\"small\" wrap>\n <a-button type=\"primary\">\n Primary Button\n </a-button>\n <a-button>Default Button</a-button>\n <a-button type=\"dashed\">\n Dashed Button\n </a-button>\n <a-button type=\"text\">\n Text Button\n </a-button>\n <a-button type=\"link\">\n Link Button\n </a-button>\n </a-flex>\n</template>"
7
- }
@@ -1,190 +0,0 @@
1
- {
2
- "name": "Button",
3
- "nameZh": "按钮",
4
- "description": "To trigger an operation.",
5
- "props": [
6
- {
7
- "name": "autoInsertSpace",
8
- "type": "boolean",
9
- "default": "`true`",
10
- "description": "We add a space between two Chinese characters by default. Set `autoInsertSpace` to `false` to disable.",
11
- "descriptionZh": "我们默认提供两个汉字之间的空格,可以设置 `autoInsertSpace` 为 `false` 关闭"
12
- },
13
- {
14
- "name": "block",
15
- "type": "boolean",
16
- "default": "false",
17
- "description": "Option to fit button width to its parent width",
18
- "descriptionZh": "将按钮宽度调整为其父宽度的选项"
19
- },
20
- {
21
- "name": "classes",
22
- "type": "Record&lt;[SemanticDOM](#semantic-dom), string&gt; \\| (info: &#123; props &#125;)=&gt; Record&lt;[SemanticDOM](#semantic-dom), string&gt;",
23
- "default": "-",
24
- "description": "Customize class for each semantic structure inside the component. Supports object or function.",
25
- "descriptionZh": "用于自定义组件内部各语义化结构的 class,支持对象或函数"
26
- },
27
- {
28
- "name": "color",
29
- "type": "`default` \\| `primary` \\| `danger` \\| [PresetColors](#presetcolors)",
30
- "default": "-",
31
- "description": "Set button color",
32
- "descriptionZh": "设置按钮的颜色"
33
- },
34
- {
35
- "name": "danger",
36
- "type": "boolean",
37
- "default": "false",
38
- "description": "Syntactic sugar. Set the danger status of button. Will follow `color` if provided",
39
- "descriptionZh": "语法糖,设置危险按钮。当设置 `color` 时会以后者为准"
40
- },
41
- {
42
- "name": "disabled",
43
- "type": "boolean",
44
- "default": "false",
45
- "description": "Disabled state of button",
46
- "descriptionZh": "设置按钮失效状态"
47
- },
48
- {
49
- "name": "ghost",
50
- "type": "boolean",
51
- "default": "false",
52
- "description": "Make background transparent and invert text and border colors",
53
- "descriptionZh": "幽灵属性,使按钮背景透明"
54
- },
55
- {
56
- "name": "href",
57
- "type": "string",
58
- "default": "-",
59
- "description": "Redirect url of link button",
60
- "descriptionZh": "点击跳转的地址,指定此属性 button 的行为和 a 链接一致"
61
- },
62
- {
63
- "name": "htmlType",
64
- "type": "`submit` \\| `reset` \\| `button`",
65
- "default": "`button`",
66
- "description": "Set the original html `type` of `button`, see: [HTML Standard](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type)",
67
- "descriptionZh": "设置 `button` 原生的 `type` 值,可选值请参考 [HTML 标准](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/button#type)"
68
- },
69
- {
70
- "name": "iconPlacement",
71
- "type": "`start` \\| `end`",
72
- "default": "`start`",
73
- "description": "Set the icon position of button",
74
- "descriptionZh": "设置按钮图标组件的位置"
75
- },
76
- {
77
- "name": "loading",
78
- "type": "boolean \\| &#123; delay: number, icon: VueNode &#125;",
79
- "default": "false",
80
- "description": "Set the loading status of button",
81
- "descriptionZh": "设置按钮载入状态"
82
- },
83
- {
84
- "name": "loadingIcon",
85
- "type": "VueNode",
86
- "default": "`<LoadingOutlined />`",
87
- "description": "(Global config only) Set the loading icon of button",
88
- "descriptionZh": "(仅支持全局配置)设置按钮的加载图标"
89
- },
90
- {
91
- "name": "shape",
92
- "type": "`default` \\| `circle` \\| `round`",
93
- "default": "`default`",
94
- "description": "Can be used to set button shape",
95
- "descriptionZh": "设置按钮形状"
96
- },
97
- {
98
- "name": "size",
99
- "type": "`large` \\| `middle` \\| `small`",
100
- "default": "`middle`",
101
- "description": "Set the size of button",
102
- "descriptionZh": "设置按钮大小"
103
- },
104
- {
105
- "name": "styles",
106
- "type": "Record&lt;[SemanticDOM](#semantic-dom), CSSProperties&gt; \\| (info: &#123; props &#125;)=&gt; Record&lt;[SemanticDOM](#semantic-dom), CSSProperties&gt;",
107
- "default": "-",
108
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function.",
109
- "descriptionZh": "用于自定义组件内部各语义化结构的行内 style,支持对象或函数"
110
- },
111
- {
112
- "name": "target",
113
- "type": "string",
114
- "default": "-",
115
- "description": "Same as target attribute of a, works when href is specified",
116
- "descriptionZh": "相当于 a 链接的 target 属性,href 存在时生效"
117
- },
118
- {
119
- "name": "type",
120
- "type": "`primary` \\| `dashed` \\| `link` \\| `text` \\| `default`",
121
- "default": "`default`",
122
- "description": "Syntactic sugar. Set button type. Will follow `variant` & `color` if provided",
123
- "descriptionZh": "语法糖,设置按钮类型。当设置 `variant` 与 `color` 时以后者为准"
124
- },
125
- {
126
- "name": "variant",
127
- "type": "`outlined` \\| `dashed` \\| `solid` \\| `filled` \\| `text` \\| `link`",
128
- "default": "-",
129
- "description": "Set button variant",
130
- "descriptionZh": "设置按钮的变体"
131
- }
132
- ],
133
- "events": [
134
- {
135
- "name": "click",
136
- "type": "`(event: MouseEvent) =&gt; void`",
137
- "default": "",
138
- "description": "Callback executed when button is clicked",
139
- "descriptionZh": "点击按钮时的回调"
140
- }
141
- ],
142
- "slots": [
143
- {
144
- "name": "icon",
145
- "type": "-",
146
- "default": "",
147
- "description": "Set the icon component of button",
148
- "descriptionZh": "设置按钮的图标组件"
149
- },
150
- {
151
- "name": "loadingIcon",
152
- "type": "-",
153
- "default": "",
154
- "description": "Set the loading icon component of button",
155
- "descriptionZh": "设置按钮载入的图标组件"
156
- }
157
- ],
158
- "methods": [],
159
- "subComponentProps": {},
160
- "commonProps": [
161
- {
162
- "name": "style",
163
- "type": "CSSProperties",
164
- "default": "-",
165
- "description": "The additional style",
166
- "descriptionZh": "自定义样式"
167
- },
168
- {
169
- "name": "class",
170
- "type": "string",
171
- "default": "-",
172
- "description": "The additional css class",
173
- "descriptionZh": "自定义类名"
174
- },
175
- {
176
- "name": "rootClass",
177
- "type": "string",
178
- "default": "-",
179
- "description": "ClassName on the root element",
180
- "descriptionZh": "添加在组件最外层的 className"
181
- },
182
- {
183
- "name": "autoFocus",
184
- "type": "boolean",
185
- "default": "false",
186
- "description": "Auto focus when component mounted, only effective for focusable elements like forms, links, etc.",
187
- "descriptionZh": "自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效"
188
- }
189
- ]
190
- }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "Button",
3
- "semanticStructure": [
4
- {
5
- "key": "root",
6
- "description": "Root element with comprehensive button styling including border, background, padding, border-radius, box-shadow, transitions, cursor, font-weight, alignment, and layout properties",
7
- "descriptionZh": "根元素,包含边框样式、背景色、内边距、圆角、阴影效果、过渡动画、光标样式、文字权重、对齐方式等完整的按钮外观样式"
8
- },
9
- {
10
- "key": "content",
11
- "description": "Content element that wraps button text with typography styles including nowrap, text-align center, and Chinese character spacing optimization",
12
- "descriptionZh": "内容元素,包装按钮文本内容,控制文本的不换行显示、居中对齐、中文字符间距优化等文本排版样式"
13
- },
14
- {
15
- "key": "icon",
16
- "description": "Icon element with font-size, color inheritance, and SVG style reset for proper icon display",
17
- "descriptionZh": "图标元素,包含图标的字体大小、颜色继承、SVG 样式重置等图标显示相关样式"
18
- }
19
- ]
20
- }