@morya-ui/mcp 0.3.5 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "generatedAt": "2026-09-25T05:07:47.526Z",
3
- "catalogGeneratedAt": "2026-09-25T05:07:42.993Z",
2
+ "generatedAt": "2026-09-29T02:20:58.845Z",
3
+ "catalogGeneratedAt": "2026-09-29T02:20:54.304Z",
4
4
  "components": [
5
5
  {
6
6
  "id": "Accordion",
@@ -781,15 +781,14 @@
781
781
  {
782
782
  "id": "Drawer",
783
783
  "exportName": "MDrawer",
784
- "examples": 6,
784
+ "examples": 8,
785
785
  "props": {
786
786
  "total": 16,
787
- "covered": 3,
787
+ "covered": 4,
788
788
  "missing": [
789
789
  "modal",
790
790
  "dismissable",
791
791
  "showCloseIcon",
792
- "width",
793
792
  "height",
794
793
  "blockScroll",
795
794
  "teleport",
@@ -813,8 +812,8 @@
813
812
  ]
814
813
  },
815
814
  "slots": {
816
- "total": 2,
817
- "covered": 1,
815
+ "total": 3,
816
+ "covered": 2,
818
817
  "missing": [
819
818
  "header"
820
819
  ]
@@ -2763,14 +2762,20 @@
2763
2762
  {
2764
2763
  "id": "Table",
2765
2764
  "exportName": "MTable",
2766
- "examples": 26,
2765
+ "examples": 36,
2767
2766
  "props": {
2768
- "total": 66,
2769
- "covered": 16,
2767
+ "total": 72,
2768
+ "covered": 27,
2770
2769
  "missing": [
2771
2770
  "fit",
2772
2771
  "selectedItem",
2772
+ "pageSizes",
2773
+ "showHeader",
2774
+ "showRowsPerPage",
2773
2775
  "fill",
2776
+ "columnOrder",
2777
+ "expandConfig",
2778
+ "radioConfig",
2774
2779
  "rowHover",
2775
2780
  "sortField",
2776
2781
  "sortOrder",
@@ -2778,7 +2783,6 @@
2778
2783
  "searchField",
2779
2784
  "searchValue",
2780
2785
  "filterOptions",
2781
- "maxHeight",
2782
2786
  "showOverflowTooltip",
2783
2787
  "rowKey",
2784
2788
  "size",
@@ -2788,11 +2792,9 @@
2788
2792
  "bodyRowClassName",
2789
2793
  "bodyTextDirection",
2790
2794
  "checkboxColumnWidth",
2791
- "clickEventType",
2792
2795
  "clickRowToExpand",
2793
2796
  "currentRowKey",
2794
2797
  "expandColumnWidth",
2795
- "expandedRowKeys",
2796
2798
  "filters",
2797
2799
  "fixedCheckbox",
2798
2800
  "fixedExpand",
@@ -2801,51 +2803,42 @@
2801
2803
  "headerClassName",
2802
2804
  "headerItemClassName",
2803
2805
  "headerTextDirection",
2804
- "hideHeader",
2805
- "hideRowsPerPage",
2806
2806
  "indexColumnWidth",
2807
2807
  "multiSort",
2808
2808
  "mustSort",
2809
- "preventContextMenuRow",
2810
- "rowsItems",
2811
- "rowsOfPageSeparatorMessage",
2812
- "rowsPerPageMessage",
2813
- "showHeader",
2814
2809
  "showIndex",
2815
2810
  "showIndexSymbol",
2816
2811
  "tableClassName",
2817
2812
  "tableHeight",
2818
2813
  "tableMinHeight",
2819
- "tableNodeId",
2820
2814
  "pt"
2821
2815
  ]
2822
2816
  },
2823
2817
  "events": {
2824
- "total": 19,
2825
- "covered": 3,
2818
+ "total": 20,
2819
+ "covered": 6,
2826
2820
  "missing": [
2827
2821
  "sort",
2828
- "page",
2829
2822
  "row-click",
2823
+ "row-dblclick",
2824
+ "row-contextmenu",
2825
+ "select-row",
2826
+ "deselect-row",
2827
+ "select-all",
2830
2828
  "current-change",
2831
2829
  "expand",
2832
2830
  "update:current-row-key",
2833
- "contextmenuRow",
2834
- "deselectRow",
2835
2831
  "filter",
2836
- "selectAll",
2837
- "selectRow",
2838
- "update:expandedRowKeys",
2839
2832
  "update:filters",
2840
- "update:selectedItem",
2841
- "updatePageItems",
2842
- "updateTotalItems"
2833
+ "update:columnOrder",
2834
+ "update:selectedItem"
2843
2835
  ]
2844
2836
  },
2845
2837
  "slots": {
2846
- "total": 10,
2838
+ "total": 11,
2847
2839
  "covered": 1,
2848
2840
  "missing": [
2841
+ "footer",
2849
2842
  "body-cell",
2850
2843
  "empty",
2851
2844
  "loading",
@@ -2858,7 +2851,7 @@
2858
2851
  ]
2859
2852
  },
2860
2853
  "methods": {
2861
- "total": 14,
2854
+ "total": 39,
2862
2855
  "covered": 0,
2863
2856
  "missing": [
2864
2857
  "currentPageFirstIndex",
@@ -2874,7 +2867,32 @@
2874
2867
  "rowsPerPageOptions",
2875
2868
  "rowsPerPageActiveOption",
2876
2869
  "updateRowsPerPageActiveOption",
2877
- "setFilters"
2870
+ "setFilters",
2871
+ "clearFilter",
2872
+ "setColumnWidths",
2873
+ "setHiddenColumns",
2874
+ "setColumnOrder",
2875
+ "clearSort",
2876
+ "getCheckboxRecords",
2877
+ "setCheckboxRow",
2878
+ "clearCheckboxRow",
2879
+ "isCheckedByCheckboxRow",
2880
+ "isAllCheckboxChecked",
2881
+ "getCheckboxIndeterminateRecords",
2882
+ "scrollTo",
2883
+ "scrollToRow",
2884
+ "setRowExpand",
2885
+ "setAllRowExpand",
2886
+ "toggleRowExpand",
2887
+ "clearRowExpand",
2888
+ "isRowExpandByRow",
2889
+ "getRowExpandRecords",
2890
+ "setTreeExpand",
2891
+ "setAllTreeExpand",
2892
+ "toggleTreeExpand",
2893
+ "clearTreeExpand",
2894
+ "isTreeExpandByRow",
2895
+ "getTreeExpandRecords"
2878
2896
  ]
2879
2897
  }
2880
2898
  },
@@ -3317,42 +3335,6 @@
3317
3335
  "missing": []
3318
3336
  }
3319
3337
  },
3320
- {
3321
- "id": "TreeTable",
3322
- "exportName": "MTreeTable",
3323
- "examples": 8,
3324
- "props": {
3325
- "total": 5,
3326
- "covered": 2,
3327
- "missing": [
3328
- "emptyMessage",
3329
- "expandedKeys",
3330
- "pt"
3331
- ]
3332
- },
3333
- "events": {
3334
- "total": 3,
3335
- "covered": 0,
3336
- "missing": [
3337
- "node-expand",
3338
- "node-collapse",
3339
- "update:expandedKeys"
3340
- ]
3341
- },
3342
- "slots": {
3343
- "total": 2,
3344
- "covered": 0,
3345
- "missing": [
3346
- "expansion",
3347
- "empty"
3348
- ]
3349
- },
3350
- "methods": {
3351
- "total": 0,
3352
- "covered": 0,
3353
- "missing": []
3354
- }
3355
- },
3356
3338
  {
3357
3339
  "id": "VirtualScroller",
3358
3340
  "exportName": "MVirtualScroller",
@@ -3387,8 +3369,8 @@
3387
3369
  }
3388
3370
  ],
3389
3371
  "summary": {
3390
- "components": 93,
3391
- "componentsWithMissingCoverage": 93,
3392
- "totalExamples": 817
3372
+ "components": 92,
3373
+ "componentsWithMissingCoverage": 92,
3374
+ "totalExamples": 821
3393
3375
  }
3394
3376
  }
@@ -1,138 +1,138 @@
1
- <script setup lang="ts">
2
- /**
3
- * 黄金样例:仪表盘页
4
- * @see DESIGN.md · morya-ui-pages references/page-layouts.md · visual-craft § Ops polish
5
- */
6
- import {
7
- MBreadcrumb,
8
- MCard,
9
- MConfigProvider,
10
- MGrid,
11
- MGridItem,
12
- MLayout,
13
- MLayoutContent,
14
- MLayoutHeader,
15
- MPageContent,
16
- MEmpty,
17
- MPageHeader,
18
- MPageStat,
19
- MStatus,
20
- MTable,
21
- MTag,
22
- zhCN,
23
- } from 'morya-ui'
24
-
25
- const stats = [
26
- { label: '总用户', value: '12,480', trend: '+8.2%', trendDirection: 'up' as const, trendLabel: '较上月', icon: 'users' },
27
- { label: '今日活跃', value: '1,926', trend: '+3.1%', trendDirection: 'up' as const, trendLabel: '较昨日', icon: 'activity' },
28
- { label: '待处理工单', value: '47', trend: '-12%', trendDirection: 'down' as const, trendLabel: '较上周', trendSeverity: 'warn' as const, icon: 'clipboard' },
29
- { label: '系统健康', value: '99.9%', trend: '稳定', trendSeverity: 'secondary' as const, icon: 'heart' },
30
- ]
31
-
32
- const recentColumns = [
33
- { key: 'id', label: '工单号', width: 96 },
34
- { key: 'title', label: '标题' },
35
- { key: 'priority', label: '优先级', width: 96 },
36
- { key: 'status', label: '状态', width: 110 },
37
- ]
38
-
39
- const recentRows = [
40
- { id: 'WO-1024', title: '登录异常反馈', priority: 'high', status: 'open' },
41
- { id: 'WO-1023', title: '导出任务超时', priority: 'medium', status: 'progress' },
42
- { id: 'WO-1022', title: '权限配置咨询', priority: 'low', status: 'done' },
43
- ]
44
-
45
- function prioritySeverity(p: string) {
46
- if (p === 'high') return 'danger'
47
- if (p === 'medium') return 'warn'
48
- return 'secondary'
49
- }
50
-
51
- function priorityLabel(p: string) {
52
- if (p === 'high') return '高'
53
- if (p === 'medium') return '中'
54
- return '低'
55
- }
56
-
57
- function statusLabel(s: string) {
58
- if (s === 'open') return '待处理'
59
- if (s === 'progress') return '进行中'
60
- return '已完成'
61
- }
62
-
63
- function statusSeverity(s: string) {
64
- if (s === 'open') return 'warn'
65
- if (s === 'progress') return 'info'
66
- return 'success'
67
- }
68
- </script>
69
-
70
- <template>
71
- <MConfigProvider :locale="zhCN">
72
- <MLayout fill-viewport>
73
- <MLayoutHeader padding="var(--m-space-4) var(--m-space-6)">
74
- <MBreadcrumb :model="[{ label: '首页' }, { label: '仪表盘' }]" />
75
- </MLayoutHeader>
76
-
77
- <MLayoutContent>
78
- <MPageContent density="spacious">
79
- <MPageHeader
80
- title="运营概览"
81
- description="关注今日活跃与待处理工单,异常优先下钻。"
82
- />
83
-
84
- <MGrid :cols="4" :x-gap="16" :y-gap="16" responsive="screen">
85
- <MGridItem v-for="item in stats" :key="item.label" :span="1">
86
- <MPageStat
87
- :label="item.label"
88
- :value="item.value"
89
- :trend="item.trend"
90
- :trend-severity="item.trendSeverity ?? 'primary'"
91
- :trend-direction="item.trendDirection"
92
- :trend-label="item.trendLabel"
93
- :icon="item.icon"
94
- />
95
- </MGridItem>
96
- </MGrid>
97
-
98
- <MGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen">
99
- <MGridItem :span="1">
100
- <MCard title="趋势概览" shadow="always">
101
- <MEmpty
102
- description="接入图表组件后展示近 7 日活跃与转化。"
103
- icon="chart-bar"
104
- />
105
- </MCard>
106
- </MGridItem>
107
- <MGridItem :span="1">
108
- <MCard title="最近工单" shadow="always">
109
- <MTable
110
- :columns="recentColumns"
111
- :rows="recentRows"
112
- size="small"
113
- :paginator="false"
114
- bordered
115
- row-key="id"
116
- aria-label="最近工单"
117
- >
118
- <template #cell-priority="{ value }">
119
- <MTag
120
- :value="priorityLabel(String(value))"
121
- :severity="prioritySeverity(String(value))"
122
- />
123
- </template>
124
- <template #cell-status="{ value }">
125
- <MStatus
126
- :label="statusLabel(String(value))"
127
- :severity="statusSeverity(String(value))"
128
- />
129
- </template>
130
- </MTable>
131
- </MCard>
132
- </MGridItem>
133
- </MGrid>
134
- </MPageContent>
135
- </MLayoutContent>
136
- </MLayout>
137
- </MConfigProvider>
138
- </template>
1
+ <script setup lang="ts">
2
+ /**
3
+ * 黄金样例:仪表盘页
4
+ * @see DESIGN.md · morya-ui-pages references/page-layouts.md · visual-craft § Ops polish
5
+ */
6
+ import {
7
+ MBreadcrumb,
8
+ MCard,
9
+ MConfigProvider,
10
+ MGrid,
11
+ MGridItem,
12
+ MLayout,
13
+ MLayoutContent,
14
+ MLayoutHeader,
15
+ MPageContent,
16
+ MEmpty,
17
+ MPageHeader,
18
+ MPageStat,
19
+ MStatus,
20
+ MTable,
21
+ MTag,
22
+ zhCN,
23
+ } from 'morya-ui'
24
+
25
+ const stats = [
26
+ { label: '总用户', value: '12,480', trend: '+8.2%', trendDirection: 'up' as const, trendLabel: '较上月', icon: 'users' },
27
+ { label: '今日活跃', value: '1,926', trend: '+3.1%', trendDirection: 'up' as const, trendLabel: '较昨日', icon: 'activity' },
28
+ { label: '待处理工单', value: '47', trend: '-12%', trendDirection: 'down' as const, trendLabel: '较上周', trendSeverity: 'warn' as const, icon: 'clipboard' },
29
+ { label: '系统健康', value: '99.9%', trend: '稳定', trendSeverity: 'secondary' as const, icon: 'heart' },
30
+ ]
31
+
32
+ const recentColumns = [
33
+ { key: 'id', label: '工单号', width: 96 },
34
+ { key: 'title', label: '标题' },
35
+ { key: 'priority', label: '优先级', width: 96 },
36
+ { key: 'status', label: '状态', width: 110 },
37
+ ]
38
+
39
+ const recentRows = [
40
+ { id: 'WO-1024', title: '登录异常反馈', priority: 'high', status: 'open' },
41
+ { id: 'WO-1023', title: '导出任务超时', priority: 'medium', status: 'progress' },
42
+ { id: 'WO-1022', title: '权限配置咨询', priority: 'low', status: 'done' },
43
+ ]
44
+
45
+ function prioritySeverity(p: string) {
46
+ if (p === 'high') return 'danger'
47
+ if (p === 'medium') return 'warn'
48
+ return 'secondary'
49
+ }
50
+
51
+ function priorityLabel(p: string) {
52
+ if (p === 'high') return '高'
53
+ if (p === 'medium') return '中'
54
+ return '低'
55
+ }
56
+
57
+ function statusLabel(s: string) {
58
+ if (s === 'open') return '待处理'
59
+ if (s === 'progress') return '进行中'
60
+ return '已完成'
61
+ }
62
+
63
+ function statusSeverity(s: string) {
64
+ if (s === 'open') return 'warn'
65
+ if (s === 'progress') return 'info'
66
+ return 'success'
67
+ }
68
+ </script>
69
+
70
+ <template>
71
+ <MConfigProvider :locale="zhCN">
72
+ <MLayout fill-viewport>
73
+ <MLayoutHeader padding="var(--m-space-4) var(--m-space-6)">
74
+ <MBreadcrumb :model="[{ label: '首页' }, { label: '仪表盘' }]" />
75
+ </MLayoutHeader>
76
+
77
+ <MLayoutContent>
78
+ <MPageContent density="spacious">
79
+ <MPageHeader
80
+ title="运营概览"
81
+ description="关注今日活跃与待处理工单,异常优先下钻。"
82
+ />
83
+
84
+ <MGrid :cols="4" :x-gap="16" :y-gap="16" responsive="screen">
85
+ <MGridItem v-for="item in stats" :key="item.label" :span="1">
86
+ <MPageStat
87
+ :label="item.label"
88
+ :value="item.value"
89
+ :trend="item.trend"
90
+ :trend-severity="item.trendSeverity ?? 'primary'"
91
+ :trend-direction="item.trendDirection"
92
+ :trend-label="item.trendLabel"
93
+ :icon="item.icon"
94
+ />
95
+ </MGridItem>
96
+ </MGrid>
97
+
98
+ <MGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen">
99
+ <MGridItem :span="1">
100
+ <MCard title="趋势概览" shadow="always">
101
+ <MEmpty
102
+ description="接入图表组件后展示近 7 日活跃与转化。"
103
+ icon="chart-bar"
104
+ />
105
+ </MCard>
106
+ </MGridItem>
107
+ <MGridItem :span="1">
108
+ <MCard title="最近工单" shadow="always">
109
+ <MTable
110
+ :columns="recentColumns"
111
+ :rows="recentRows"
112
+ size="small"
113
+ :paginator="false"
114
+ bordered
115
+ row-key="id"
116
+ aria-label="最近工单"
117
+ >
118
+ <template #cell-priority="{ value }">
119
+ <MTag
120
+ :value="priorityLabel(String(value))"
121
+ :severity="prioritySeverity(String(value))"
122
+ />
123
+ </template>
124
+ <template #cell-status="{ value }">
125
+ <MStatus
126
+ :label="statusLabel(String(value))"
127
+ :severity="statusSeverity(String(value))"
128
+ />
129
+ </template>
130
+ </MTable>
131
+ </MCard>
132
+ </MGridItem>
133
+ </MGrid>
134
+ </MPageContent>
135
+ </MLayoutContent>
136
+ </MLayout>
137
+ </MConfigProvider>
138
+ </template>