@morya-ui/setup 0.3.6 → 0.3.7
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morya-ui/setup",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.7",
|
|
5
5
|
"description": "One-shot setup for morya-ui: install the library, multi-editor MCP, Agent skills, and design config.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/morya-space/morya-ui/tree/main/packages/setup#readme",
|
|
@@ -30,7 +30,7 @@ Full API: docs site `/components` or MCP (`get_component`, `search`, `validate_u
|
|
|
30
30
|
|
|
31
31
|
## Data
|
|
32
32
|
|
|
33
|
-
`MTable` (`columns` + **`rows`**, not `data`
|
|
33
|
+
`MTable` (`columns` + **`rows`**, not `data`; optional `virtual`, `resizable`/`filterable`, `children`, `span-method`, `tree-config`), `MDataView`, `MTree`, `MPagination`, `MOrderList`, `MPickList`, `MStatus` / `MTag` / `MChip` / `MBadge`, `MAvatar` / `MAvatarGroup`, `MTimeline`, `MMeterGroup`, `MVirtualScroller`
|
|
34
34
|
|
|
35
35
|
## Feedback
|
|
36
36
|
|
|
@@ -64,7 +64,7 @@ Open MCP `recommend_component({ decision })` or the matching section in [decisio
|
|
|
64
64
|
| --- | --- |
|
|
65
65
|
| Create / edit from a list (few–medium fields) vs long form page | `form-surface-choice` |
|
|
66
66
|
| Dialog vs Drawer vs Popover vs Tooltip | `overlay-choice` |
|
|
67
|
-
| Table vs DataView vs Tree
|
|
67
|
+
| Table vs DataView vs Tree(树表用 Table `tree-config`) | `data-display-choice` |
|
|
68
68
|
| Select vs TreeSelect vs AutoComplete vs Radio / … | `selection-choice` |
|
|
69
69
|
| Card vs Panel vs Fieldset | `surface-choice` |
|
|
70
70
|
| PageContent vs Flex vs Space vs Grid | `layout-spacing-choice` |
|
|
@@ -289,17 +289,23 @@ This file is the **offline** mirror for agents without MCP.
|
|
|
289
289
|
- 全视口主列表可 MPageContent fill + MTable fill;嵌入/短页跳过
|
|
290
290
|
- 分页:paginator + rows-per-page 或 v-model:page
|
|
291
291
|
- 行选择:selectionMode + v-model:selection
|
|
292
|
+
- 大行数:virtual + maxHeight/tableHeight/fill
|
|
293
|
+
- 列宽/表头筛选:resizable / filterable
|
|
294
|
+
- 树表:tree-config + v-model:expanded-row-keys(children 或 transform)
|
|
292
295
|
|
|
293
296
|
**Recipe · slots**
|
|
294
297
|
|
|
295
298
|
- #cell-{key} 自定义单元格
|
|
296
299
|
- #empty 放 MEmpty
|
|
300
|
+
- 多级表头 children;表尾 show-footer + footer-method
|
|
297
301
|
|
|
298
302
|
**Anti-patterns**
|
|
299
303
|
|
|
300
304
|
- :data → :rows
|
|
301
305
|
- 手写 <table> → MTable
|
|
302
306
|
- 嵌入表硬套 fill → 去掉 fill
|
|
307
|
+
- 无高度开 virtual → 配 maxHeight/tableHeight/fill
|
|
308
|
+
- 无层级硬套 treeConfig → 普通 Table
|
|
303
309
|
|
|
304
310
|
|
|
305
311
|
### DataView
|
|
@@ -330,33 +336,6 @@ This file is the **offline** mirror for agents without MCP.
|
|
|
330
336
|
- 需要列对齐比较仍用 DataView → Table
|
|
331
337
|
|
|
332
338
|
|
|
333
|
-
### TreeTable
|
|
334
|
-
|
|
335
|
-
**When**
|
|
336
|
-
|
|
337
|
-
- 数据同时具有表格列和父子层级
|
|
338
|
-
- 用户需要展开、收起层级节点
|
|
339
|
-
|
|
340
|
-
**Avoid when**
|
|
341
|
-
|
|
342
|
-
- 数据没有真实层级关系
|
|
343
|
-
- 普通 Table 已能表达关系
|
|
344
|
-
|
|
345
|
-
**Recipe · props**
|
|
346
|
-
|
|
347
|
-
- columns + 带 children 的行数据
|
|
348
|
-
- 展开相关 prop 按文档(expandedKeys 等)
|
|
349
|
-
- row-key 稳定
|
|
350
|
-
|
|
351
|
-
**Recipe · slots**
|
|
352
|
-
|
|
353
|
-
- #cell-{key}
|
|
354
|
-
|
|
355
|
-
**Anti-patterns**
|
|
356
|
-
|
|
357
|
-
- 无层级硬用 TreeTable → Table
|
|
358
|
-
|
|
359
|
-
|
|
360
339
|
### Tree
|
|
361
340
|
|
|
362
341
|
**When**
|