@sdata/web-vue-mcp 3.2.0 → 3.3.0
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 +36 -18
- 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: "5.
|
|
9
|
-
generatedAt: "2026-09-
|
|
8
|
+
version: "5.1.1",
|
|
9
|
+
generatedAt: "2026-09-24T08:11:10.162Z",
|
|
10
10
|
library: {
|
|
11
11
|
"name": "@sdata/web-vue",
|
|
12
12
|
"framework": "Vue 3",
|
|
@@ -435,6 +435,15 @@ const data = {
|
|
|
435
435
|
"en": "Default config for ColorPicker"
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
|
+
{
|
|
439
|
+
"name": "table",
|
|
440
|
+
"type": "ConfigProviderTable",
|
|
441
|
+
"default": "",
|
|
442
|
+
"description": {
|
|
443
|
+
"zh": "Table 组件默认配置",
|
|
444
|
+
"en": "Default config for Table"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
438
447
|
{
|
|
439
448
|
"name": "spin-props",
|
|
440
449
|
"type": "SpinProps",
|
|
@@ -4318,7 +4327,7 @@ const data = {
|
|
|
4318
4327
|
{
|
|
4319
4328
|
"name": "bordered",
|
|
4320
4329
|
"type": "boolean | TableBorder",
|
|
4321
|
-
"default": "true",
|
|
4330
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.bordered ?? true",
|
|
4322
4331
|
"description": {
|
|
4323
4332
|
"zh": "是否显示边框",
|
|
4324
4333
|
"en": "Whether to show the border"
|
|
@@ -4327,7 +4336,7 @@ const data = {
|
|
|
4327
4336
|
{
|
|
4328
4337
|
"name": "hoverable",
|
|
4329
4338
|
"type": "boolean",
|
|
4330
|
-
"default": "true",
|
|
4339
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.hoverable ?? true",
|
|
4331
4340
|
"description": {
|
|
4332
4341
|
"zh": "是否显示选中效果",
|
|
4333
4342
|
"en": "Whether to show the hover effect"
|
|
@@ -4336,7 +4345,7 @@ const data = {
|
|
|
4336
4345
|
{
|
|
4337
4346
|
"name": "stripe",
|
|
4338
4347
|
"type": "boolean",
|
|
4339
|
-
"default": "false",
|
|
4348
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.stripe ?? false",
|
|
4340
4349
|
"description": {
|
|
4341
4350
|
"zh": "是否开启斑马纹效果",
|
|
4342
4351
|
"en": "Whether to enable the stripe effect"
|
|
@@ -4354,7 +4363,7 @@ const data = {
|
|
|
4354
4363
|
{
|
|
4355
4364
|
"name": "table-layout-fixed",
|
|
4356
4365
|
"type": "boolean",
|
|
4357
|
-
"default": "false",
|
|
4366
|
+
"default": "() =>\n inject(configProviderInjectionKey, undefined)?.table?.tableLayoutFixed ?? false",
|
|
4358
4367
|
"description": {
|
|
4359
4368
|
"zh": "表格的 table-layout 属性设置为 fixed,设置为 fixed 后,表格的宽度不会被内容撑开超出 100%。",
|
|
4360
4369
|
"en": "The table-layout property of the table is set to fixed. After it is set to fixed, the width of the table will not be stretched beyond 100% by the content."
|
|
@@ -4408,7 +4417,7 @@ const data = {
|
|
|
4408
4417
|
{
|
|
4409
4418
|
"name": "pagination",
|
|
4410
4419
|
"type": "boolean | PaginationProps",
|
|
4411
|
-
"default": "true",
|
|
4420
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.pagination ?? true",
|
|
4412
4421
|
"description": {
|
|
4413
4422
|
"zh": "分页的属性配置",
|
|
4414
4423
|
"en": "Pagination properties configuration"
|
|
@@ -4417,7 +4426,7 @@ const data = {
|
|
|
4417
4426
|
{
|
|
4418
4427
|
"name": "page-position",
|
|
4419
4428
|
"type": "TablePagePosition",
|
|
4420
|
-
"default": "'br'",
|
|
4429
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.pagePosition ?? 'br'",
|
|
4421
4430
|
"description": {
|
|
4422
4431
|
"zh": "分页选择器的位置",
|
|
4423
4432
|
"en": "The position of the page selector"
|
|
@@ -4426,7 +4435,7 @@ const data = {
|
|
|
4426
4435
|
{
|
|
4427
4436
|
"name": "indent-size",
|
|
4428
4437
|
"type": "number",
|
|
4429
|
-
"default": "16",
|
|
4438
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.indentSize ?? 16",
|
|
4430
4439
|
"description": {
|
|
4431
4440
|
"zh": "树形表格的缩进距离",
|
|
4432
4441
|
"en": "The indentation distance of the tree table"
|
|
@@ -4444,7 +4453,7 @@ const data = {
|
|
|
4444
4453
|
{
|
|
4445
4454
|
"name": "show-header",
|
|
4446
4455
|
"type": "boolean",
|
|
4447
|
-
"default": "true",
|
|
4456
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.showHeader ?? true",
|
|
4448
4457
|
"description": {
|
|
4449
4458
|
"zh": "是否显示表头",
|
|
4450
4459
|
"en": "Whether to show the header"
|
|
@@ -4489,7 +4498,7 @@ const data = {
|
|
|
4489
4498
|
{
|
|
4490
4499
|
"name": "filter-icon-align-left",
|
|
4491
4500
|
"type": "boolean",
|
|
4492
|
-
"default": "false",
|
|
4501
|
+
"default": "() =>\n inject(configProviderInjectionKey, undefined)?.table?.filterIconAlignLeft ?? false",
|
|
4493
4502
|
"description": {
|
|
4494
4503
|
"zh": "筛选图标是否左对齐",
|
|
4495
4504
|
"en": "Whether the filter icon is aligned to the left"
|
|
@@ -4498,7 +4507,7 @@ const data = {
|
|
|
4498
4507
|
{
|
|
4499
4508
|
"name": "hide-expand-button-on-empty",
|
|
4500
4509
|
"type": "boolean",
|
|
4501
|
-
"default": "false",
|
|
4510
|
+
"default": "() =>\n inject(configProviderInjectionKey, undefined)?.table?.hideExpandButtonOnEmpty ?? false",
|
|
4502
4511
|
"description": {
|
|
4503
4512
|
"zh": "是否在子树为空时隐藏展开按钮",
|
|
4504
4513
|
"en": "Whether to hide expand button when subtree is empty"
|
|
@@ -4525,7 +4534,7 @@ const data = {
|
|
|
4525
4534
|
{
|
|
4526
4535
|
"name": "column-resizable",
|
|
4527
4536
|
"type": "boolean",
|
|
4528
|
-
"default": "",
|
|
4537
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.columnResizable ?? false",
|
|
4529
4538
|
"description": {
|
|
4530
4539
|
"zh": "是否允许调整列宽",
|
|
4531
4540
|
"en": "Whether to allow the column width to be adjusted"
|
|
@@ -4543,7 +4552,7 @@ const data = {
|
|
|
4543
4552
|
{
|
|
4544
4553
|
"name": "summary-text",
|
|
4545
4554
|
"type": "string",
|
|
4546
|
-
"default": "'Summary'",
|
|
4555
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.summaryText ?? 'Summary'",
|
|
4547
4556
|
"description": {
|
|
4548
4557
|
"zh": "总结行的首列文字",
|
|
4549
4558
|
"en": "The first column of text in the summary line"
|
|
@@ -4606,7 +4615,7 @@ const data = {
|
|
|
4606
4615
|
{
|
|
4607
4616
|
"name": "sticky-header",
|
|
4608
4617
|
"type": "boolean|number",
|
|
4609
|
-
"default": "false",
|
|
4618
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.stickyHeader ?? false",
|
|
4610
4619
|
"description": {
|
|
4611
4620
|
"zh": "是否开启表头吸顶",
|
|
4612
4621
|
"en": "Whether to open the sticky header"
|
|
@@ -4615,7 +4624,7 @@ const data = {
|
|
|
4615
4624
|
{
|
|
4616
4625
|
"name": "scrollbar",
|
|
4617
4626
|
"type": "boolean | ScrollbarProps",
|
|
4618
|
-
"default": "true",
|
|
4627
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.scrollbar ?? true",
|
|
4619
4628
|
"description": {
|
|
4620
4629
|
"zh": "是否开启虚拟滚动条",
|
|
4621
4630
|
"en": "Whether to enable virtual scroll bar"
|
|
@@ -4624,7 +4633,7 @@ const data = {
|
|
|
4624
4633
|
{
|
|
4625
4634
|
"name": "show-empty-tree",
|
|
4626
4635
|
"type": "boolean",
|
|
4627
|
-
"default": "false",
|
|
4636
|
+
"default": "() => inject(configProviderInjectionKey, undefined)?.table?.showEmptyTree ?? false",
|
|
4628
4637
|
"description": {
|
|
4629
4638
|
"zh": "是否展示空子树",
|
|
4630
4639
|
"en": "Whether to display empty subtrees"
|
|
@@ -8283,6 +8292,15 @@ const data = {
|
|
|
8283
8292
|
"en": "Whether the model selector is visible by default"
|
|
8284
8293
|
}
|
|
8285
8294
|
},
|
|
8295
|
+
{
|
|
8296
|
+
"name": "default-expanded",
|
|
8297
|
+
"type": "boolean",
|
|
8298
|
+
"default": "",
|
|
8299
|
+
"description": {
|
|
8300
|
+
"zh": "分组默认是否全部展开",
|
|
8301
|
+
"en": "Whether all groups are expanded by default"
|
|
8302
|
+
}
|
|
8303
|
+
},
|
|
8286
8304
|
{
|
|
8287
8305
|
"name": "close-on-select",
|
|
8288
8306
|
"type": "boolean",
|
|
@@ -8489,7 +8507,7 @@ const findByProp = (prop) => {
|
|
|
8489
8507
|
const createServer = () => {
|
|
8490
8508
|
const server = new McpServer({
|
|
8491
8509
|
name: PKG_NAME,
|
|
8492
|
-
version: "3.
|
|
8510
|
+
version: "3.3.0"
|
|
8493
8511
|
});
|
|
8494
8512
|
server.registerTool("list_components", {
|
|
8495
8513
|
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.",
|