@sdata/web-vue-mcp 2.4.1 → 2.4.3
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/dist/index.js +66 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import * as z from "zod/v4";
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/index.ts
|
|
7
7
|
const data = {
|
|
8
|
-
version: "4.4.
|
|
9
|
-
generatedAt: "2026-09-
|
|
8
|
+
version: "4.4.1",
|
|
9
|
+
generatedAt: "2026-09-08T16:00:50.151Z",
|
|
10
10
|
library: {
|
|
11
11
|
"name": "@sdata/web-vue",
|
|
12
12
|
"framework": "Vue 3",
|
|
@@ -1110,21 +1110,47 @@ const data = {
|
|
|
1110
1110
|
"zh": "是否在用户选择后隐藏弹出框",
|
|
1111
1111
|
"en": "Whether to hide popup when the user selects"
|
|
1112
1112
|
}
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "is-empty",
|
|
1116
|
+
"type": "boolean",
|
|
1117
|
+
"default": "false",
|
|
1118
|
+
"description": {
|
|
1119
|
+
"zh": "下拉内容是否为空(为空时面板显示空态、隐藏页脚)",
|
|
1120
|
+
"en": "Whether the dropdown content is empty (shows the empty state and hides the footer)"
|
|
1121
|
+
}
|
|
1113
1122
|
}
|
|
1114
1123
|
],
|
|
1115
|
-
"events": [
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
"
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1124
|
+
"events": [
|
|
1125
|
+
{
|
|
1126
|
+
"name": "popup-visible-change",
|
|
1127
|
+
"description": {
|
|
1128
|
+
"zh": "下拉框显示状态发生改变时触发",
|
|
1129
|
+
"en": "Triggered when the display status of the drop-down box changes"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "select",
|
|
1134
|
+
"description": {
|
|
1135
|
+
"zh": "用户选择时触发",
|
|
1136
|
+
"en": "Triggered when the user selects"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "scroll",
|
|
1141
|
+
"description": {
|
|
1142
|
+
"zh": "面板滚动时触发",
|
|
1143
|
+
"en": "Triggered when the panel scrolls"
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "reach-bottom",
|
|
1148
|
+
"description": {
|
|
1149
|
+
"zh": "面板滚动到底部时触发",
|
|
1150
|
+
"en": "Triggered when the panel is scrolled to the bottom"
|
|
1151
|
+
}
|
|
1126
1152
|
}
|
|
1127
|
-
|
|
1153
|
+
],
|
|
1128
1154
|
"slots": []
|
|
1129
1155
|
},
|
|
1130
1156
|
{
|
|
@@ -1669,11 +1695,11 @@ const data = {
|
|
|
1669
1695
|
},
|
|
1670
1696
|
{
|
|
1671
1697
|
"name": "scroll-to-first-error",
|
|
1672
|
-
"type": "boolean",
|
|
1698
|
+
"type": "boolean | ScrollIntoViewOptions",
|
|
1673
1699
|
"default": "false",
|
|
1674
1700
|
"description": {
|
|
1675
|
-
"zh": "
|
|
1676
|
-
"en": "Scroll to the first error field after verification fails"
|
|
1701
|
+
"zh": "验证失败后滚动到第一个错误字段,支持传入 scrollIntoView 的选项对象",
|
|
1702
|
+
"en": "Scroll to the first error field after verification fails; accepts a scrollIntoView options object"
|
|
1677
1703
|
}
|
|
1678
1704
|
}
|
|
1679
1705
|
],
|
|
@@ -1906,7 +1932,15 @@ const data = {
|
|
|
1906
1932
|
"docUrl": "https://sd-design.js.org/components/input-number",
|
|
1907
1933
|
"importPath": "@sdata/web-vue",
|
|
1908
1934
|
"importName": "InputNumber",
|
|
1909
|
-
"props": [
|
|
1935
|
+
"props": [{
|
|
1936
|
+
"name": "string-mode",
|
|
1937
|
+
"type": "boolean",
|
|
1938
|
+
"default": "false",
|
|
1939
|
+
"description": {
|
|
1940
|
+
"zh": "开启高精度小数支持,update:modelValue 返回 string 类型;内部不再把值转换为 Number,避免超过 2^53 丢失精度",
|
|
1941
|
+
"en": "Enables high-precision decimal support; update:modelValue emits string values. The accepted digit string is kept verbatim instead of being converted to Number, avoiding precision loss beyond Number.MAX_SAFE_INTEGER"
|
|
1942
|
+
}
|
|
1943
|
+
}],
|
|
1910
1944
|
"events": [],
|
|
1911
1945
|
"slots": []
|
|
1912
1946
|
},
|
|
@@ -3435,8 +3469,8 @@ const data = {
|
|
|
3435
3469
|
{
|
|
3436
3470
|
"name": "search",
|
|
3437
3471
|
"description": {
|
|
3438
|
-
"zh": "
|
|
3439
|
-
"en": "Triggered when the
|
|
3472
|
+
"zh": "搜索框值改变时触发(按下 Enter、失焦或清空搜索内容时触发,非逐键触发)",
|
|
3473
|
+
"en": "Triggered when the search input value changes (on Enter, blur, or clearing the input — not on every keystroke)"
|
|
3440
3474
|
}
|
|
3441
3475
|
}
|
|
3442
3476
|
],
|
|
@@ -3607,7 +3641,15 @@ const data = {
|
|
|
3607
3641
|
"docUrl": "https://sd-design.js.org/components/json-form",
|
|
3608
3642
|
"importPath": "@sdata/web-vue",
|
|
3609
3643
|
"importName": "JsonForm",
|
|
3610
|
-
"props": [
|
|
3644
|
+
"props": [{
|
|
3645
|
+
"name": "model-value",
|
|
3646
|
+
"type": "JsonFormModel",
|
|
3647
|
+
"default": "undefined",
|
|
3648
|
+
"description": {
|
|
3649
|
+
"zh": "表单数据对象(v-model)",
|
|
3650
|
+
"en": "Form data object (v-model)"
|
|
3651
|
+
}
|
|
3652
|
+
}],
|
|
3611
3653
|
"events": [],
|
|
3612
3654
|
"slots": []
|
|
3613
3655
|
},
|
|
@@ -3833,7 +3875,7 @@ const data = {
|
|
|
3833
3875
|
{
|
|
3834
3876
|
"name": "bordered",
|
|
3835
3877
|
"type": "boolean",
|
|
3836
|
-
"default": "
|
|
3878
|
+
"default": "undefined",
|
|
3837
3879
|
"description": {
|
|
3838
3880
|
"zh": "是否显示边框",
|
|
3839
3881
|
"en": "Whether the tag is bordered"
|
|
@@ -5262,15 +5304,6 @@ const data = {
|
|
|
5262
5304
|
"en": "Decimal reserved digits (used in digital mode)"
|
|
5263
5305
|
}
|
|
5264
5306
|
},
|
|
5265
|
-
{
|
|
5266
|
-
"name": "separator",
|
|
5267
|
-
"type": "string",
|
|
5268
|
-
"default": "",
|
|
5269
|
-
"description": {
|
|
5270
|
-
"zh": "进位分隔符(数字模式使用)",
|
|
5271
|
-
"en": "Carry separator (used in number mode)"
|
|
5272
|
-
}
|
|
5273
|
-
},
|
|
5274
5307
|
{
|
|
5275
5308
|
"name": "show-group-separator",
|
|
5276
5309
|
"type": "boolean",
|
|
@@ -6863,7 +6896,7 @@ const data = {
|
|
|
6863
6896
|
{
|
|
6864
6897
|
"name": "visible",
|
|
6865
6898
|
"type": "boolean",
|
|
6866
|
-
"default": "
|
|
6899
|
+
"default": "undefined",
|
|
6867
6900
|
"description": {
|
|
6868
6901
|
"zh": "抽屉是否可见",
|
|
6869
6902
|
"en": "Whether the drawer is visible"
|
|
@@ -8461,7 +8494,7 @@ const findByProp = (prop) => {
|
|
|
8461
8494
|
const createServer = () => {
|
|
8462
8495
|
const server = new McpServer({
|
|
8463
8496
|
name: PKG_NAME,
|
|
8464
|
-
version: "2.4.
|
|
8497
|
+
version: "2.4.3"
|
|
8465
8498
|
});
|
|
8466
8499
|
server.registerTool("list_components", {
|
|
8467
8500
|
description: "List all SD Design components with their category, bilingual title and API size. Optionally filter by category. Use this first to discover what is available.",
|