@morya-ui/mcp 0.3.0 → 0.3.2

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-22T12:50:04.888Z",
3
- "catalogGeneratedAt": "2026-09-22T12:49:59.311Z",
2
+ "generatedAt": "2026-09-24T03:18:19.583Z",
3
+ "catalogGeneratedAt": "2026-09-24T03:18:15.247Z",
4
4
  "components": [
5
5
  {
6
6
  "id": "Accordion",
@@ -198,12 +198,14 @@
198
198
  "exportName": "MButton",
199
199
  "examples": 20,
200
200
  "props": {
201
- "total": 24,
201
+ "total": 26,
202
202
  "covered": 21,
203
203
  "missing": [
204
204
  "variant",
205
- "autofocus",
206
- "nativeType"
205
+ "ripple",
206
+ "press",
207
+ "nativeType",
208
+ "autofocus"
207
209
  ]
208
210
  },
209
211
  "events": {
@@ -231,7 +233,7 @@
231
233
  {
232
234
  "id": "Card",
233
235
  "exportName": "MCard",
234
- "examples": 8,
236
+ "examples": 10,
235
237
  "props": {
236
238
  "total": 8,
237
239
  "covered": 4,
@@ -279,8 +281,8 @@
279
281
  ]
280
282
  },
281
283
  "slots": {
282
- "total": 0,
283
- "covered": 0,
284
+ "total": 1,
285
+ "covered": 1,
284
286
  "missing": []
285
287
  },
286
288
  "methods": {
@@ -608,9 +610,14 @@
608
610
  ]
609
611
  },
610
612
  "slots": {
611
- "total": 0,
612
- "covered": 0,
613
- "missing": []
613
+ "total": 5,
614
+ "covered": 1,
615
+ "missing": [
616
+ "list",
617
+ "empty",
618
+ "header",
619
+ "loading"
620
+ ]
614
621
  },
615
622
  "methods": {
616
623
  "total": 0,
@@ -1017,9 +1024,11 @@
1017
1024
  "missing": []
1018
1025
  },
1019
1026
  "slots": {
1020
- "total": 0,
1021
- "covered": 0,
1022
- "missing": []
1027
+ "total": 2,
1028
+ "covered": 1,
1029
+ "missing": [
1030
+ "label"
1031
+ ]
1023
1032
  },
1024
1033
  "methods": {
1025
1034
  "total": 0,
@@ -1060,14 +1069,22 @@
1060
1069
  "exportName": "MForm",
1061
1070
  "examples": 10,
1062
1071
  "props": {
1063
- "total": 0,
1064
- "covered": 0,
1065
- "missing": []
1072
+ "total": 20,
1073
+ "covered": 15,
1074
+ "missing": [
1075
+ "requireMark",
1076
+ "disabled",
1077
+ "size",
1078
+ "pt",
1079
+ "error"
1080
+ ]
1066
1081
  },
1067
1082
  "events": {
1068
- "total": 0,
1069
- "covered": 0,
1070
- "missing": []
1083
+ "total": 2,
1084
+ "covered": 1,
1085
+ "missing": [
1086
+ "validate"
1087
+ ]
1071
1088
  },
1072
1089
  "slots": {
1073
1090
  "total": 1,
@@ -1119,9 +1136,14 @@
1119
1136
  "exportName": "MGrid",
1120
1137
  "examples": 10,
1121
1138
  "props": {
1122
- "total": 0,
1123
- "covered": 0,
1124
- "missing": []
1139
+ "total": 13,
1140
+ "covered": 9,
1141
+ "missing": [
1142
+ "responsive",
1143
+ "layoutShiftDisabled",
1144
+ "itemStyle",
1145
+ "pt"
1146
+ ]
1125
1147
  },
1126
1148
  "events": {
1127
1149
  "total": 0,
@@ -1156,8 +1178,8 @@
1156
1178
  "missing": []
1157
1179
  },
1158
1180
  "slots": {
1159
- "total": 0,
1160
- "covered": 0,
1181
+ "total": 1,
1182
+ "covered": 1,
1161
1183
  "missing": []
1162
1184
  },
1163
1185
  "methods": {
@@ -1183,8 +1205,8 @@
1183
1205
  "missing": []
1184
1206
  },
1185
1207
  "slots": {
1186
- "total": 0,
1187
- "covered": 0,
1208
+ "total": 2,
1209
+ "covered": 2,
1188
1210
  "missing": []
1189
1211
  },
1190
1212
  "methods": {
@@ -1217,8 +1239,8 @@
1217
1239
  ]
1218
1240
  },
1219
1241
  "slots": {
1220
- "total": 0,
1221
- "covered": 0,
1242
+ "total": 2,
1243
+ "covered": 2,
1222
1244
  "missing": []
1223
1245
  },
1224
1246
  "methods": {
@@ -1312,9 +1334,11 @@
1312
1334
  "exportName": "MInputGroup",
1313
1335
  "examples": 4,
1314
1336
  "props": {
1315
- "total": 0,
1337
+ "total": 1,
1316
1338
  "covered": 0,
1317
- "missing": []
1339
+ "missing": [
1340
+ "pt"
1341
+ ]
1318
1342
  },
1319
1343
  "events": {
1320
1344
  "total": 0,
@@ -1322,8 +1346,8 @@
1322
1346
  "missing": []
1323
1347
  },
1324
1348
  "slots": {
1325
- "total": 0,
1326
- "covered": 0,
1349
+ "total": 1,
1350
+ "covered": 1,
1327
1351
  "missing": []
1328
1352
  },
1329
1353
  "methods": {
@@ -1546,8 +1570,8 @@
1546
1570
  "missing": []
1547
1571
  },
1548
1572
  "slots": {
1549
- "total": 0,
1550
- "covered": 0,
1573
+ "total": 1,
1574
+ "covered": 1,
1551
1575
  "missing": []
1552
1576
  },
1553
1577
  "methods": {
@@ -1561,14 +1585,34 @@
1561
1585
  "exportName": "MLayout",
1562
1586
  "examples": 16,
1563
1587
  "props": {
1564
- "total": 0,
1565
- "covered": 0,
1566
- "missing": []
1588
+ "total": 24,
1589
+ "covered": 11,
1590
+ "missing": [
1591
+ "fillViewport",
1592
+ "contentClass",
1593
+ "contentStyle",
1594
+ "height",
1595
+ "padding",
1596
+ "radius",
1597
+ "pt",
1598
+ "defaultCollapsed",
1599
+ "showCollapsedContent",
1600
+ "triggerClass",
1601
+ "triggerStyle",
1602
+ "collapsedTriggerClass",
1603
+ "collapsedTriggerStyle"
1604
+ ]
1567
1605
  },
1568
1606
  "events": {
1569
- "total": 0,
1570
- "covered": 0,
1571
- "missing": []
1607
+ "total": 6,
1608
+ "covered": 1,
1609
+ "missing": [
1610
+ "scroll",
1611
+ "after-enter",
1612
+ "after-leave",
1613
+ "collapse",
1614
+ "expand"
1615
+ ]
1572
1616
  },
1573
1617
  "slots": {
1574
1618
  "total": 1,
@@ -1576,9 +1620,11 @@
1576
1620
  "missing": []
1577
1621
  },
1578
1622
  "methods": {
1579
- "total": 0,
1623
+ "total": 1,
1580
1624
  "covered": 0,
1581
- "missing": []
1625
+ "missing": [
1626
+ "scrollTo"
1627
+ ]
1582
1628
  }
1583
1629
  },
1584
1630
  {
@@ -1623,8 +1669,8 @@
1623
1669
  "exportName": "MLoading",
1624
1670
  "examples": 14,
1625
1671
  "props": {
1626
- "total": 12,
1627
- "covered": 4,
1672
+ "total": 15,
1673
+ "covered": 5,
1628
1674
  "missing": [
1629
1675
  "ariaLabel",
1630
1676
  "background",
@@ -1633,7 +1679,9 @@
1633
1679
  "lock",
1634
1680
  "delay",
1635
1681
  "transition",
1636
- "pt"
1682
+ "pt",
1683
+ "body",
1684
+ "spinner"
1637
1685
  ]
1638
1686
  },
1639
1687
  "events": {
@@ -1717,8 +1765,8 @@
1717
1765
  ]
1718
1766
  },
1719
1767
  "slots": {
1720
- "total": 0,
1721
- "covered": 0,
1768
+ "total": 1,
1769
+ "covered": 1,
1722
1770
  "missing": []
1723
1771
  },
1724
1772
  "methods": {
@@ -1767,9 +1815,17 @@
1767
1815
  "exportName": "MMessage",
1768
1816
  "examples": 9,
1769
1817
  "props": {
1770
- "total": 0,
1771
- "covered": 0,
1772
- "missing": []
1818
+ "total": 8,
1819
+ "covered": 1,
1820
+ "missing": [
1821
+ "teleport",
1822
+ "transition",
1823
+ "placement",
1824
+ "max",
1825
+ "auto",
1826
+ "messages",
1827
+ "pt"
1828
+ ]
1773
1829
  },
1774
1830
  "events": {
1775
1831
  "total": 0,
@@ -1782,9 +1838,19 @@
1782
1838
  "missing": []
1783
1839
  },
1784
1840
  "methods": {
1785
- "total": 0,
1841
+ "total": 9,
1786
1842
  "covered": 0,
1787
- "missing": []
1843
+ "missing": [
1844
+ "message.success",
1845
+ "message.info",
1846
+ "message.warn",
1847
+ "message.error",
1848
+ "message.open",
1849
+ "message.close",
1850
+ "message.closeAll",
1851
+ "message.destroyAll",
1852
+ "message.config"
1853
+ ]
1788
1854
  }
1789
1855
  },
1790
1856
  {
@@ -1840,9 +1906,12 @@
1840
1906
  ]
1841
1907
  },
1842
1908
  "slots": {
1843
- "total": 0,
1909
+ "total": 2,
1844
1910
  "covered": 0,
1845
- "missing": []
1911
+ "missing": [
1912
+ "item",
1913
+ "empty"
1914
+ ]
1846
1915
  },
1847
1916
  "methods": {
1848
1917
  "total": 0,
@@ -1853,11 +1922,17 @@
1853
1922
  {
1854
1923
  "id": "Page",
1855
1924
  "exportName": "MPageContent",
1856
- "examples": 6,
1925
+ "examples": 10,
1857
1926
  "props": {
1858
- "total": 0,
1859
- "covered": 0,
1860
- "missing": []
1927
+ "total": 24,
1928
+ "covered": 19,
1929
+ "missing": [
1930
+ "bands",
1931
+ "expandLabel",
1932
+ "collapseLabel",
1933
+ "headingLevel",
1934
+ "minHeight"
1935
+ ]
1861
1936
  },
1862
1937
  "events": {
1863
1938
  "total": 0,
@@ -1865,9 +1940,15 @@
1865
1940
  "missing": []
1866
1941
  },
1867
1942
  "slots": {
1868
- "total": 0,
1869
- "covered": 0,
1870
- "missing": []
1943
+ "total": 8,
1944
+ "covered": 3,
1945
+ "missing": [
1946
+ "active",
1947
+ "breadcrumb",
1948
+ "tags",
1949
+ "icon",
1950
+ "extra"
1951
+ ]
1871
1952
  },
1872
1953
  "methods": {
1873
1954
  "total": 0,
@@ -1961,9 +2042,11 @@
1961
2042
  "missing": []
1962
2043
  },
1963
2044
  "slots": {
1964
- "total": 0,
1965
- "covered": 0,
1966
- "missing": []
2045
+ "total": 2,
2046
+ "covered": 1,
2047
+ "missing": [
2048
+ "empty"
2049
+ ]
1967
2050
  },
1968
2051
  "methods": {
1969
2052
  "total": 0,
@@ -2175,9 +2258,29 @@
2175
2258
  "exportName": "MScrollbar",
2176
2259
  "examples": 16,
2177
2260
  "props": {
2178
- "total": 0,
2179
- "covered": 0,
2180
- "missing": []
2261
+ "total": 23,
2262
+ "covered": 4,
2263
+ "missing": [
2264
+ "ariaLabel",
2265
+ "ariaOrientation",
2266
+ "distance",
2267
+ "id",
2268
+ "minSize",
2269
+ "noresize",
2270
+ "role",
2271
+ "tabindex",
2272
+ "tag",
2273
+ "trigger",
2274
+ "viewClass",
2275
+ "viewStyle",
2276
+ "wrapClass",
2277
+ "wrapStyle",
2278
+ "width",
2279
+ "maxWidth",
2280
+ "ariaMultiselectable",
2281
+ "pt",
2282
+ "fitContent"
2283
+ ]
2181
2284
  },
2182
2285
  "events": {
2183
2286
  "total": 2,
@@ -2233,7 +2336,7 @@
2233
2336
  {
2234
2337
  "id": "Select",
2235
2338
  "exportName": "MSelect",
2236
- "examples": 26,
2339
+ "examples": 32,
2237
2340
  "props": {
2238
2341
  "total": 28,
2239
2342
  "covered": 18,
@@ -2263,8 +2366,8 @@
2263
2366
  ]
2264
2367
  },
2265
2368
  "slots": {
2266
- "total": 2,
2267
- "covered": 0,
2369
+ "total": 4,
2370
+ "covered": 2,
2268
2371
  "missing": [
2269
2372
  "value",
2270
2373
  "option"
@@ -2738,9 +2841,19 @@
2738
2841
  ]
2739
2842
  },
2740
2843
  "slots": {
2741
- "total": 0,
2742
- "covered": 0,
2743
- "missing": []
2844
+ "total": 10,
2845
+ "covered": 1,
2846
+ "missing": [
2847
+ "body-cell",
2848
+ "empty",
2849
+ "loading",
2850
+ "pagination",
2851
+ "body",
2852
+ "body-append",
2853
+ "body-prepend",
2854
+ "customize-headers",
2855
+ "header"
2856
+ ]
2744
2857
  },
2745
2858
  "methods": {
2746
2859
  "total": 14,
@@ -2955,9 +3068,14 @@
2955
3068
  "missing": []
2956
3069
  },
2957
3070
  "slots": {
2958
- "total": 0,
2959
- "covered": 0,
2960
- "missing": []
3071
+ "total": 5,
3072
+ "covered": 1,
3073
+ "missing": [
3074
+ "content",
3075
+ "opposite",
3076
+ "marker",
3077
+ "connector"
3078
+ ]
2961
3079
  },
2962
3080
  "methods": {
2963
3081
  "total": 0,
@@ -2970,19 +3088,14 @@
2970
3088
  "exportName": "MToast",
2971
3089
  "examples": 10,
2972
3090
  "props": {
2973
- "total": 14,
2974
- "covered": 3,
3091
+ "total": 8,
3092
+ "covered": 2,
2975
3093
  "missing": [
2976
3094
  "max",
2977
3095
  "teleport",
2978
3096
  "appendTo",
2979
3097
  "auto",
2980
3098
  "transition",
2981
- "id",
2982
- "summary",
2983
- "detail",
2984
- "closable",
2985
- "life",
2986
3099
  "pt"
2987
3100
  ]
2988
3101
  },
@@ -2997,9 +3110,18 @@
2997
3110
  "missing": []
2998
3111
  },
2999
3112
  "methods": {
3000
- "total": 0,
3113
+ "total": 8,
3001
3114
  "covered": 0,
3002
- "missing": []
3115
+ "missing": [
3116
+ "toast.success / info / warn / error",
3117
+ "toast.add",
3118
+ "toast.remove",
3119
+ "toast.close",
3120
+ "toast.clear",
3121
+ "toast.closeAll",
3122
+ "toast.destroyAll",
3123
+ "toast.setDefaults"
3124
+ ]
3003
3125
  }
3004
3126
  },
3005
3127
  {
@@ -3117,12 +3239,15 @@
3117
3239
  ]
3118
3240
  },
3119
3241
  "events": {
3120
- "total": 7,
3121
- "covered": 0,
3242
+ "total": 11,
3243
+ "covered": 1,
3122
3244
  "missing": [
3123
- "node-select",
3245
+ "update:expandedKeys",
3246
+ "check",
3124
3247
  "node-expand",
3125
3248
  "node-collapse",
3249
+ "node-drop",
3250
+ "node-select",
3126
3251
  "node-load-error",
3127
3252
  "node-unselect",
3128
3253
  "update:modelValue",
@@ -3130,9 +3255,10 @@
3130
3255
  ]
3131
3256
  },
3132
3257
  "slots": {
3133
- "total": 1,
3258
+ "total": 2,
3134
3259
  "covered": 0,
3135
3260
  "missing": [
3261
+ "default",
3136
3262
  "empty"
3137
3263
  ]
3138
3264
  },
@@ -3230,11 +3356,13 @@
3230
3356
  "exportName": "MVirtualScroller",
3231
3357
  "examples": 4,
3232
3358
  "props": {
3233
- "total": 5,
3359
+ "total": 7,
3234
3360
  "covered": 3,
3235
3361
  "missing": [
3236
3362
  "buffer",
3237
- "pt"
3363
+ "pt",
3364
+ "role",
3365
+ "ariaLabel"
3238
3366
  ]
3239
3367
  },
3240
3368
  "events": {
@@ -3243,8 +3371,8 @@
3243
3371
  "missing": []
3244
3372
  },
3245
3373
  "slots": {
3246
- "total": 0,
3247
- "covered": 0,
3374
+ "total": 1,
3375
+ "covered": 1,
3248
3376
  "missing": []
3249
3377
  },
3250
3378
  "methods": {
@@ -3258,7 +3386,7 @@
3258
3386
  ],
3259
3387
  "summary": {
3260
3388
  "components": 93,
3261
- "componentsWithMissingCoverage": 88,
3262
- "totalExamples": 805
3389
+ "componentsWithMissingCoverage": 93,
3390
+ "totalExamples": 817
3263
3391
  }
3264
3392
  }
@@ -13,8 +13,8 @@ import {
13
13
  MLayoutContent,
14
14
  MLayoutHeader,
15
15
  MPageContent,
16
+ MEmpty,
16
17
  MPageHeader,
17
- MPagePlaceholder,
18
18
  MPageStat,
19
19
  MStatus,
20
20
  MTable,
@@ -23,9 +23,9 @@ import {
23
23
  } from 'morya-ui'
24
24
 
25
25
  const stats = [
26
- { label: '总用户', value: '12,480', trend: '+8.2%', icon: 'users' },
27
- { label: '今日活跃', value: '1,926', trend: '+3.1%', icon: 'activity' },
28
- { label: '待处理工单', value: '47', trend: '-12%', trendSeverity: 'warn' as const, icon: 'clipboard' },
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
29
  { label: '系统健康', value: '99.9%', trend: '稳定', trendSeverity: 'secondary' as const, icon: 'heart' },
30
30
  ]
31
31
 
@@ -88,6 +88,8 @@ function statusSeverity(s: string) {
88
88
  :value="item.value"
89
89
  :trend="item.trend"
90
90
  :trend-severity="item.trendSeverity ?? 'primary'"
91
+ :trend-direction="item.trendDirection"
92
+ :trend-label="item.trendLabel"
91
93
  :icon="item.icon"
92
94
  />
93
95
  </MGridItem>
@@ -95,15 +97,15 @@ function statusSeverity(s: string) {
95
97
 
96
98
  <MGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen">
97
99
  <MGridItem :span="1">
98
- <MCard title="趋势概览">
99
- <MPagePlaceholder
100
- aria-label="图表占位"
100
+ <MCard title="趋势概览" shadow="always">
101
+ <MEmpty
101
102
  description="接入图表组件后展示近 7 日活跃与转化。"
103
+ icon="chart-bar"
102
104
  />
103
105
  </MCard>
104
106
  </MGridItem>
105
107
  <MGridItem :span="1">
106
- <MCard title="最近工单">
108
+ <MCard title="最近工单" shadow="always">
107
109
  <MTable
108
110
  :columns="recentColumns"
109
111
  :rows="recentRows"