@morya-ui/mcp 0.4.4 → 0.4.5

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-10-10T16:01:08.098Z",
3
- "catalogGeneratedAt": "2026-10-10T16:01:00.709Z",
2
+ "generatedAt": "2026-10-12T07:47:11.724Z",
3
+ "catalogGeneratedAt": "2026-10-12T07:47:04.752Z",
4
4
  "components": [
5
5
  {
6
6
  "id": "Accordion",
@@ -794,17 +794,13 @@
794
794
  {
795
795
  "id": "DatePicker",
796
796
  "exportName": "MDatePicker",
797
- "examples": 24,
797
+ "examples": 50,
798
798
  "props": {
799
- "total": 21,
800
- "covered": 13,
799
+ "total": 25,
800
+ "covered": 21,
801
801
  "missing": [
802
- "showSeconds",
803
- "format",
804
802
  "clearable",
805
- "teleport",
806
803
  "transition",
807
- "errorMessage",
808
804
  "id",
809
805
  "pt"
810
806
  ]
@@ -821,11 +817,9 @@
821
817
  ]
822
818
  },
823
819
  "slots": {
824
- "total": 1,
825
- "covered": 0,
826
- "missing": [
827
- "trigger"
828
- ]
820
+ "total": 3,
821
+ "covered": 3,
822
+ "missing": []
829
823
  },
830
824
  "methods": {
831
825
  "total": 0,
@@ -2237,12 +2231,12 @@
2237
2231
  {
2238
2232
  "id": "OrderList",
2239
2233
  "exportName": "MOrderList",
2240
- "examples": 4,
2234
+ "examples": 8,
2241
2235
  "props": {
2242
- "total": 6,
2243
- "covered": 1,
2236
+ "total": 8,
2237
+ "covered": 3,
2244
2238
  "missing": [
2245
- "dataKey",
2239
+ "selection",
2246
2240
  "listStyle",
2247
2241
  "dragdrop",
2248
2242
  "emptyMessage",
@@ -2250,18 +2244,18 @@
2250
2244
  ]
2251
2245
  },
2252
2246
  "events": {
2253
- "total": 2,
2247
+ "total": 3,
2254
2248
  "covered": 0,
2255
2249
  "missing": [
2256
2250
  "update:modelValue",
2251
+ "update:selection",
2257
2252
  "reorder"
2258
2253
  ]
2259
2254
  },
2260
2255
  "slots": {
2261
2256
  "total": 2,
2262
- "covered": 0,
2257
+ "covered": 1,
2263
2258
  "missing": [
2264
- "item",
2265
2259
  "empty"
2266
2260
  ]
2267
2261
  },
@@ -3241,10 +3235,10 @@
3241
3235
  {
3242
3236
  "id": "Table",
3243
3237
  "exportName": "MTable",
3244
- "examples": 36,
3238
+ "examples": 56,
3245
3239
  "props": {
3246
- "total": 72,
3247
- "covered": 27,
3240
+ "total": 80,
3241
+ "covered": 35,
3248
3242
  "missing": [
3249
3243
  "fit",
3250
3244
  "selectedItem",
@@ -3252,19 +3246,22 @@
3252
3246
  "showHeader",
3253
3247
  "showRowsPerPage",
3254
3248
  "fill",
3255
- "columnOrder",
3249
+ "virtualOverscan",
3256
3250
  "expandConfig",
3257
3251
  "radioConfig",
3258
3252
  "rowHover",
3259
3253
  "sortField",
3260
3254
  "sortOrder",
3255
+ "multiSort",
3256
+ "mustSort",
3261
3257
  "sortMode",
3262
3258
  "searchField",
3263
3259
  "searchValue",
3264
3260
  "filterOptions",
3261
+ "filterModel",
3262
+ "filters",
3265
3263
  "showOverflowTooltip",
3266
3264
  "rowKey",
3267
- "size",
3268
3265
  "ariaLabel",
3269
3266
  "bodyExpandRowClassName",
3270
3267
  "bodyItemClassName",
@@ -3274,7 +3271,6 @@
3274
3271
  "clickRowToExpand",
3275
3272
  "currentRowKey",
3276
3273
  "expandColumnWidth",
3277
- "filters",
3278
3274
  "fixedCheckbox",
3279
3275
  "fixedExpand",
3280
3276
  "fixedHeader",
@@ -3283,8 +3279,6 @@
3283
3279
  "headerItemClassName",
3284
3280
  "headerTextDirection",
3285
3281
  "indexColumnWidth",
3286
- "multiSort",
3287
- "mustSort",
3288
3282
  "showIndex",
3289
3283
  "showIndexSymbol",
3290
3284
  "tableClassName",
@@ -3295,9 +3289,11 @@
3295
3289
  },
3296
3290
  "events": {
3297
3291
  "total": 20,
3298
- "covered": 6,
3292
+ "covered": 7,
3299
3293
  "missing": [
3300
- "sort",
3294
+ "sort-change",
3295
+ "filter-change",
3296
+ "expand-change",
3301
3297
  "row-click",
3302
3298
  "row-dblclick",
3303
3299
  "row-contextmenu",
@@ -3305,12 +3301,9 @@
3305
3301
  "deselect-row",
3306
3302
  "select-all",
3307
3303
  "current-change",
3308
- "expand",
3309
3304
  "update:current-row-key",
3310
- "filter",
3311
- "update:filters",
3312
- "update:columnOrder",
3313
- "update:selectedItem"
3305
+ "update:filter-model",
3306
+ "update:selected-item"
3314
3307
  ]
3315
3308
  },
3316
3309
  "slots": {
@@ -4004,6 +3997,6 @@
4004
3997
  "summary": {
4005
3998
  "components": 107,
4006
3999
  "componentsWithMissingCoverage": 106,
4007
- "totalExamples": 957
4000
+ "totalExamples": 1007
4008
4001
  }
4009
4002
  }
@@ -1,161 +1,161 @@
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
- MAlert,
8
- MBreadcrumb,
9
- MCard,
10
- MConfigProvider,
11
- MGrid,
12
- MGridItem,
13
- MLayout,
14
- MLayoutContent,
15
- MLayoutHeader,
16
- MPageContent,
17
- MEmpty,
18
- MPageHeader,
19
- MPageStat,
20
- MStatistic,
21
- MStatus,
22
- MTable,
23
- MTag,
24
- zhCN,
25
- } from 'morya-ui'
26
-
27
- const stats = [
28
- { label: '总用户', value: '12,480', trend: '+8.2%', trendDirection: 'up' as const, trendLabel: '较上月', icon: 'users' },
29
- { label: '今日活跃', value: '1,926', trend: '+3.1%', trendDirection: 'up' as const, trendLabel: '较昨日', icon: 'activity' },
30
- { label: '待处理工单', value: '47', trend: '-12%', trendDirection: 'down' as const, trendLabel: '较上周', trendType: 'warning' as const, icon: 'clipboard' },
31
- { label: '系统健康', value: '99.9%', trend: '稳定', trendType: 'secondary' as const, icon: 'heart' },
32
- ]
33
-
34
- const recentColumns = [
35
- { key: 'id', label: '工单号', width: 96 },
36
- { key: 'title', label: '标题' },
37
- { key: 'priority', label: '优先级', width: 96 },
38
- { key: 'status', label: '状态', width: 110 },
39
- ]
40
-
41
- const recentRows = [
42
- { id: 'WO-1024', title: '登录异常反馈', priority: 'high', status: 'open' },
43
- { id: 'WO-1023', title: '导出任务超时', priority: 'medium', status: 'progress' },
44
- { id: 'WO-1022', title: '权限配置咨询', priority: 'low', status: 'done' },
45
- ]
46
-
47
- function priorityType(p: string) {
48
- if (p === 'high') return 'danger'
49
- if (p === 'medium') return 'warning'
50
- return 'secondary'
51
- }
52
-
53
- function priorityLabel(p: string) {
54
- if (p === 'high') return '高'
55
- if (p === 'medium') return '中'
56
- return '低'
57
- }
58
-
59
- function statusLabel(s: string) {
60
- if (s === 'open') return '待处理'
61
- if (s === 'progress') return '进行中'
62
- return '已完成'
63
- }
64
-
65
- function statusType(s: string) {
66
- if (s === 'open') return 'warning'
67
- if (s === 'progress') return 'info'
68
- return 'success'
69
- }
70
- </script>
71
-
72
- <template>
73
- <MConfigProvider :locale="zhCN">
74
- <MLayout fill-viewport>
75
- <MLayoutHeader padding="var(--m-space-4) var(--m-space-6)">
76
- <MBreadcrumb :model="[{ label: '首页' }, { label: '仪表盘' }]" />
77
- </MLayoutHeader>
78
-
79
- <MLayoutContent>
80
- <MPageContent density="spacious">
81
- <MPageHeader
82
- title="运营概览"
83
- description="关注今日活跃与待处理工单,异常优先下钻。"
84
- />
85
-
86
- <MAlert
87
- type="info"
88
- title="报表管道延迟约 15 分钟"
89
- description="实时告警仍可用;看板数字以管道落库为准。"
90
- closable
91
- />
92
-
93
- <MGrid :cols="4" :x-gap="16" :y-gap="16" responsive="screen">
94
- <MGridItem v-for="item in stats" :key="item.label" :span="1">
95
- <MPageStat
96
- :label="item.label"
97
- :value="item.value"
98
- :trend="item.trend"
99
- :trend-type="item.trendType ?? 'primary'"
100
- :trend-direction="item.trendDirection"
101
- :trend-label="item.trendLabel"
102
- :icon="item.icon"
103
- />
104
- </MGridItem>
105
- </MGrid>
106
-
107
- <MGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen">
108
- <MGridItem :span="1">
109
- <MCard title="趋势概览" shadow="always">
110
- <MEmpty
111
- title="还没有趋势数据"
112
- description="接入图表后将展示近 7 日活跃与转化。"
113
- illustration="activity-low"
114
- />
115
- </MCard>
116
- </MGridItem>
117
- <MGridItem :span="1">
118
- <MCard title="最近工单" shadow="always">
119
- <div class="dashboard-plain-stats">
120
- <MStatistic title="本周新建" :value="128" />
121
- <MStatistic title="平均处理时长" :value="2.4" suffix="h" :precision="1" />
122
- </div>
123
- <MTable
124
- :columns="recentColumns"
125
- :rows="recentRows"
126
- size="small"
127
- :paginator="false"
128
- bordered
129
- row-key="id"
130
- aria-label="最近工单"
131
- >
132
- <template #cell-priority="{ value }">
133
- <MTag
134
- :value="priorityLabel(String(value))"
135
- :type="priorityType(String(value))"
136
- />
137
- </template>
138
- <template #cell-status="{ value }">
139
- <MStatus
140
- :label="statusLabel(String(value))"
141
- :type="statusType(String(value))"
142
- />
143
- </template>
144
- </MTable>
145
- </MCard>
146
- </MGridItem>
147
- </MGrid>
148
- </MPageContent>
149
- </MLayoutContent>
150
- </MLayout>
151
- </MConfigProvider>
152
- </template>
153
-
154
- <style scoped>
155
- .dashboard-plain-stats {
156
- display: flex;
157
- flex-wrap: wrap;
158
- gap: var(--m-space-6);
159
- margin-bottom: var(--m-space-4);
160
- }
161
- </style>
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
+ MAlert,
8
+ MBreadcrumb,
9
+ MCard,
10
+ MConfigProvider,
11
+ MGrid,
12
+ MGridItem,
13
+ MLayout,
14
+ MLayoutContent,
15
+ MLayoutHeader,
16
+ MPageContent,
17
+ MEmpty,
18
+ MPageHeader,
19
+ MPageStat,
20
+ MStatistic,
21
+ MStatus,
22
+ MTable,
23
+ MTag,
24
+ zhCN,
25
+ } from 'morya-ui'
26
+
27
+ const stats = [
28
+ { label: '总用户', value: '12,480', trend: '+8.2%', trendDirection: 'up' as const, trendLabel: '较上月', icon: 'users' },
29
+ { label: '今日活跃', value: '1,926', trend: '+3.1%', trendDirection: 'up' as const, trendLabel: '较昨日', icon: 'activity' },
30
+ { label: '待处理工单', value: '47', trend: '-12%', trendDirection: 'down' as const, trendLabel: '较上周', trendType: 'warning' as const, icon: 'clipboard' },
31
+ { label: '系统健康', value: '99.9%', trend: '稳定', trendType: 'secondary' as const, icon: 'heart' },
32
+ ]
33
+
34
+ const recentColumns = [
35
+ { key: 'id', label: '工单号', width: 96 },
36
+ { key: 'title', label: '标题' },
37
+ { key: 'priority', label: '优先级', width: 96 },
38
+ { key: 'status', label: '状态', width: 110 },
39
+ ]
40
+
41
+ const recentRows = [
42
+ { id: 'WO-1024', title: '登录异常反馈', priority: 'high', status: 'open' },
43
+ { id: 'WO-1023', title: '导出任务超时', priority: 'medium', status: 'progress' },
44
+ { id: 'WO-1022', title: '权限配置咨询', priority: 'low', status: 'done' },
45
+ ]
46
+
47
+ function priorityType(p: string) {
48
+ if (p === 'high') return 'danger'
49
+ if (p === 'medium') return 'warning'
50
+ return 'secondary'
51
+ }
52
+
53
+ function priorityLabel(p: string) {
54
+ if (p === 'high') return '高'
55
+ if (p === 'medium') return '中'
56
+ return '低'
57
+ }
58
+
59
+ function statusLabel(s: string) {
60
+ if (s === 'open') return '待处理'
61
+ if (s === 'progress') return '进行中'
62
+ return '已完成'
63
+ }
64
+
65
+ function statusType(s: string) {
66
+ if (s === 'open') return 'warning'
67
+ if (s === 'progress') return 'info'
68
+ return 'success'
69
+ }
70
+ </script>
71
+
72
+ <template>
73
+ <MConfigProvider :locale="zhCN">
74
+ <MLayout fill-viewport>
75
+ <MLayoutHeader padding="var(--m-space-4) var(--m-space-6)">
76
+ <MBreadcrumb :model="[{ label: '首页' }, { label: '仪表盘' }]" />
77
+ </MLayoutHeader>
78
+
79
+ <MLayoutContent>
80
+ <MPageContent density="spacious">
81
+ <MPageHeader
82
+ title="运营概览"
83
+ description="关注今日活跃与待处理工单,异常优先下钻。"
84
+ />
85
+
86
+ <MAlert
87
+ type="info"
88
+ title="报表管道延迟约 15 分钟"
89
+ description="实时告警仍可用;看板数字以管道落库为准。"
90
+ closable
91
+ />
92
+
93
+ <MGrid :cols="4" :x-gap="16" :y-gap="16" responsive="screen">
94
+ <MGridItem v-for="item in stats" :key="item.label" :span="1">
95
+ <MPageStat
96
+ :label="item.label"
97
+ :value="item.value"
98
+ :trend="item.trend"
99
+ :trend-type="item.trendType ?? 'primary'"
100
+ :trend-direction="item.trendDirection"
101
+ :trend-label="item.trendLabel"
102
+ :icon="item.icon"
103
+ />
104
+ </MGridItem>
105
+ </MGrid>
106
+
107
+ <MGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen">
108
+ <MGridItem :span="1">
109
+ <MCard title="趋势概览" shadow="always">
110
+ <MEmpty
111
+ title="还没有趋势数据"
112
+ description="接入图表后将展示近 7 日活跃与转化。"
113
+ illustration="activity-low"
114
+ />
115
+ </MCard>
116
+ </MGridItem>
117
+ <MGridItem :span="1">
118
+ <MCard title="最近工单" shadow="always">
119
+ <div class="dashboard-plain-stats">
120
+ <MStatistic title="本周新建" :value="128" />
121
+ <MStatistic title="平均处理时长" :value="2.4" suffix="h" :precision="1" />
122
+ </div>
123
+ <MTable
124
+ :columns="recentColumns"
125
+ :rows="recentRows"
126
+ size="small"
127
+ :paginator="false"
128
+ bordered
129
+ row-key="id"
130
+ aria-label="最近工单"
131
+ >
132
+ <template #cell-priority="{ value }">
133
+ <MTag
134
+ :value="priorityLabel(String(value))"
135
+ :type="priorityType(String(value))"
136
+ />
137
+ </template>
138
+ <template #cell-status="{ value }">
139
+ <MStatus
140
+ :label="statusLabel(String(value))"
141
+ :type="statusType(String(value))"
142
+ />
143
+ </template>
144
+ </MTable>
145
+ </MCard>
146
+ </MGridItem>
147
+ </MGrid>
148
+ </MPageContent>
149
+ </MLayoutContent>
150
+ </MLayout>
151
+ </MConfigProvider>
152
+ </template>
153
+
154
+ <style scoped>
155
+ .dashboard-plain-stats {
156
+ display: flex;
157
+ flex-wrap: wrap;
158
+ gap: var(--m-space-6);
159
+ margin-bottom: var(--m-space-4);
160
+ }
161
+ </style>