@mdui/mcp 2.1.0 → 2.1.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.
@@ -17,7 +17,7 @@ export const components = [
17
17
  "name": "fit",
18
18
  "attribute": "fit",
19
19
  "reflects": true,
20
- "description": "图片如何适应容器框,与原生的 [`object-fit`](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) 属性相同。可选值包括:\n\n* `contain`:保持图片原有尺寸比例,内容会被等比例缩放\n* `cover`:保持图片原有尺寸比例,但部分内容可能被剪切\n* `fill`:默认值,不保持图片原有尺寸比例,内容会被拉伸以填充整个容器\n* `none`:保留图片原有尺寸,内容不会被缩放或拉伸\n* `scale-down`:保持图片原有尺寸比例,内容尺寸与 `none` 或 `contain` 中较小的一个相同",
20
+ "description": "图片如何适应容器框,与原生的 [`object-fit`](https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit) 属性相同。可选值包括:\n\n* `contain`:保持图片原有尺寸比例,内容会被等比例缩放\n* `cover`:保持图片原有尺寸比例,但部分内容可能被剪切\n* `fill`:默认值,不保持图片原有尺寸比例,内容会被拉伸以填充整个容器\n* `none`:保留图片原有尺寸,内容不会被缩放或拉伸\n* `scale-down`:保持图片原有尺寸比例,内容尺寸与 `none` 或 `contain` 中较小的一个相同",
21
21
  "type": "'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | undefined"
22
22
  },
23
23
  {
@@ -130,7 +130,7 @@ export const components = [
130
130
  "name": "scrollThreshold",
131
131
  "attribute": "scroll-threshold",
132
132
  "reflects": true,
133
- "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
133
+ "description": "触发滚动行为所需的滚动距离,单位为 `px`",
134
134
  "type": "number | undefined"
135
135
  },
136
136
  {
@@ -886,7 +886,7 @@ export const components = [
886
886
  "name": "value",
887
887
  "attribute": "value",
888
888
  "reflects": true,
889
- "description": "复选框的值,将于表单数据一起提交",
889
+ "description": "复选框的值,将与表单数据一起提交",
890
890
  "type": "string",
891
891
  "default": "'on'"
892
892
  },
@@ -1036,7 +1036,7 @@ export const components = [
1036
1036
  },
1037
1037
  {
1038
1038
  "tagName": "mdui-chip",
1039
- "description": "纸片组件",
1039
+ "description": "标签组件",
1040
1040
  "docUrl": "https://www.mdui.org/docs/2/components/chip",
1041
1041
  "usage": "<mdui-chip>Chip</mdui-chip>",
1042
1042
  "properties": [
@@ -1044,7 +1044,7 @@ export const components = [
1044
1044
  "name": "variant",
1045
1045
  "attribute": "variant",
1046
1046
  "reflects": true,
1047
- "description": "纸片的形状。可选值包括:\n\n* `assist`:用于显示与当前上下文相关的辅助操作,如在点餐页面提供分享、收藏等功能\n* `filter`:用于对内容进行筛选,如在搜索结果页过滤搜索结果\n* `input`:用于表示用户输入的信息片段,如在 Gmail 的“收件人”字段中的联系人\n* `suggestion`:用于提供动态生成的推荐信息,以简化用户操作,如在聊天应用中预测用户可能想发送的信息",
1047
+ "description": "标签的形状。可选值包括:\n\n* `assist`:用于显示与当前上下文相关的辅助操作,如在点餐页面提供分享、收藏等功能\n* `filter`:用于对内容进行筛选,如在搜索结果页过滤搜索结果\n* `input`:用于表示用户输入的信息片段,如在 Gmail 的“收件人”字段中的联系人\n* `suggestion`:用于提供动态生成的推荐信息,以简化用户操作,如在聊天应用中预测用户可能想发送的信息",
1048
1048
  "type": "'assist' | 'filter' | 'input' | 'suggestion'",
1049
1049
  "default": "'assist'"
1050
1050
  },
@@ -1076,7 +1076,7 @@ export const components = [
1076
1076
  "name": "deletable",
1077
1077
  "attribute": "deletable",
1078
1078
  "reflects": true,
1079
- "description": "是否可删除。为 `true` 时,纸片右侧会显示删除图标",
1079
+ "description": "是否可删除。为 `true` 时,标签右侧会显示删除图标",
1080
1080
  "type": "boolean",
1081
1081
  "default": "false"
1082
1082
  },
@@ -1303,7 +1303,7 @@ export const components = [
1303
1303
  "slots": [
1304
1304
  {
1305
1305
  "name": "",
1306
- "description": "纸片文本"
1306
+ "description": "标签文本"
1307
1307
  },
1308
1308
  {
1309
1309
  "name": "icon",
@@ -1329,7 +1329,7 @@ export const components = [
1329
1329
  },
1330
1330
  {
1331
1331
  "name": "label",
1332
- "description": "纸片文本"
1332
+ "description": "标签文本"
1333
1333
  },
1334
1334
  {
1335
1335
  "name": "icon",
@@ -1361,7 +1361,7 @@ export const components = [
1361
1361
  },
1362
1362
  {
1363
1363
  "tagName": "mdui-circular-progress",
1364
- "description": "圆形进度指示器组件",
1364
+ "description": "环形进度条组件",
1365
1365
  "docUrl": "https://www.mdui.org/docs/2/components/circular-progress",
1366
1366
  "usage": "<mdui-circular-progress></mdui-circular-progress>",
1367
1367
  "properties": [
@@ -1369,14 +1369,14 @@ export const components = [
1369
1369
  "name": "max",
1370
1370
  "attribute": "max",
1371
1371
  "reflects": true,
1372
- "description": "进度指示器的最大值。默认为 `1`",
1372
+ "description": "进度条的最大值。默认为 `1`",
1373
1373
  "type": "number",
1374
1374
  "default": "1"
1375
1375
  },
1376
1376
  {
1377
1377
  "name": "value",
1378
1378
  "attribute": "value",
1379
- "description": "进度指示器的当前值。如果未指定该值,则显示为不确定状态",
1379
+ "description": "进度条的当前值。如果未指定该值,则显示为不确定状态",
1380
1380
  "type": "number | undefined"
1381
1381
  }
1382
1382
  ],
@@ -1671,7 +1671,7 @@ export const components = [
1671
1671
  },
1672
1672
  {
1673
1673
  "tagName": "mdui-divider",
1674
- "description": "分割线组件",
1674
+ "description": "分隔线组件",
1675
1675
  "docUrl": "https://www.mdui.org/docs/2/components/divider",
1676
1676
  "usage": "<mdui-divider></mdui-divider>",
1677
1677
  "properties": [
@@ -1679,7 +1679,7 @@ export const components = [
1679
1679
  "name": "vertical",
1680
1680
  "attribute": "vertical",
1681
1681
  "reflects": true,
1682
- "description": "是否为垂直分割线",
1682
+ "description": "是否为垂直分隔线",
1683
1683
  "type": "boolean",
1684
1684
  "default": "false"
1685
1685
  },
@@ -2197,7 +2197,7 @@ export const components = [
2197
2197
  },
2198
2198
  {
2199
2199
  "tagName": "mdui-linear-progress",
2200
- "description": "线性进度指示器组件",
2200
+ "description": "线性进度条组件",
2201
2201
  "docUrl": "https://www.mdui.org/docs/2/components/linear-progress",
2202
2202
  "usage": "<mdui-linear-progress></mdui-linear-progress>",
2203
2203
  "properties": [
@@ -2205,14 +2205,14 @@ export const components = [
2205
2205
  "name": "max",
2206
2206
  "attribute": "max",
2207
2207
  "reflects": true,
2208
- "description": "进度指示器的最大值。默认为 `1`",
2208
+ "description": "进度条的最大值。默认为 `1`",
2209
2209
  "type": "number",
2210
2210
  "default": "1"
2211
2211
  },
2212
2212
  {
2213
2213
  "name": "value",
2214
2214
  "attribute": "value",
2215
- "description": "进度指示器的当前值。如果未指定该值,则处于不确定状态",
2215
+ "description": "进度条的当前值。如果未指定该值,则处于不确定状态",
2216
2216
  "type": "number | undefined"
2217
2217
  }
2218
2218
  ],
@@ -2761,7 +2761,7 @@ export const components = [
2761
2761
  "slots": [
2762
2762
  {
2763
2763
  "name": "",
2764
- "description": "子菜单项(`<mdui-menu-item>`)、分割线([`<mdui-divider>`](https://www.mdui.org/docs/2/components/divider))等元素"
2764
+ "description": "子菜单项(`<mdui-menu-item>`)、分隔线([`<mdui-divider>`](https://www.mdui.org/docs/2/components/divider))等元素"
2765
2765
  }
2766
2766
  ],
2767
2767
  "cssParts": [],
@@ -2966,7 +2966,7 @@ export const components = [
2966
2966
  "name": "scrollThreshold",
2967
2967
  "attribute": "scroll-threshold",
2968
2968
  "reflects": true,
2969
- "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
2969
+ "description": "触发滚动行为所需的滚动距离,单位为 `px`",
2970
2970
  "type": "number | undefined"
2971
2971
  },
2972
2972
  {
@@ -3020,7 +3020,7 @@ export const components = [
3020
3020
  },
3021
3021
  {
3022
3022
  "tagName": "mdui-navigation-drawer",
3023
- "description": "侧边抽屉栏组件",
3023
+ "description": "抽屉导航栏组件",
3024
3024
  "docUrl": "https://www.mdui.org/docs/2/components/navigation-drawer",
3025
3025
  "usage": "<mdui-navigation-drawer>content</mdui-navigation-drawer>",
3026
3026
  "properties": [
@@ -3028,7 +3028,7 @@ export const components = [
3028
3028
  "name": "open",
3029
3029
  "attribute": "open",
3030
3030
  "reflects": true,
3031
- "description": "是否打开抽屉栏",
3031
+ "description": "是否打开抽屉导航栏",
3032
3032
  "type": "boolean",
3033
3033
  "default": "false"
3034
3034
  },
@@ -3036,7 +3036,7 @@ export const components = [
3036
3036
  "name": "modal",
3037
3037
  "attribute": "modal",
3038
3038
  "reflects": true,
3039
- "description": "抽屉栏打开时,是否显示遮罩层\n\n在窄屏设备上(屏幕宽度小于 [`--mdui-breakpoint-md`](https://www.mdui.org/docs/2/styles/design-tokens#breakpoint)),会始终显示遮罩层,无视该参数",
3039
+ "description": "抽屉导航栏打开时,是否显示遮罩层\n\n在窄屏设备上(屏幕宽度小于 [`--mdui-breakpoint-md`](https://www.mdui.org/docs/2/styles/design-tokens#breakpoint)),会始终显示遮罩层,无视该参数",
3040
3040
  "type": "boolean",
3041
3041
  "default": "false"
3042
3042
  },
@@ -3044,7 +3044,7 @@ export const components = [
3044
3044
  "name": "closeOnEsc",
3045
3045
  "attribute": "close-on-esc",
3046
3046
  "reflects": true,
3047
- "description": "在有遮罩层的情况下,按下 ESC 键是否关闭抽屉栏",
3047
+ "description": "在有遮罩层的情况下,按下 ESC 键是否关闭抽屉导航栏",
3048
3048
  "type": "boolean",
3049
3049
  "default": "false"
3050
3050
  },
@@ -3052,7 +3052,7 @@ export const components = [
3052
3052
  "name": "closeOnOverlayClick",
3053
3053
  "attribute": "close-on-overlay-click",
3054
3054
  "reflects": true,
3055
- "description": "点击遮罩层时,是否关闭抽屉栏",
3055
+ "description": "点击遮罩层时,是否关闭抽屉导航栏",
3056
3056
  "type": "boolean",
3057
3057
  "default": "false"
3058
3058
  },
@@ -3060,7 +3060,7 @@ export const components = [
3060
3060
  "name": "placement",
3061
3061
  "attribute": "placement",
3062
3062
  "reflects": true,
3063
- "description": "抽屉栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
3063
+ "description": "抽屉导航栏的位置。可选值包括:\n\n* `left`:左侧\n* `right`:右侧",
3064
3064
  "type": "'left' | 'right'",
3065
3065
  "default": "'left'"
3066
3066
  },
@@ -3068,7 +3068,7 @@ export const components = [
3068
3068
  "name": "contained",
3069
3069
  "attribute": "contained",
3070
3070
  "reflects": true,
3071
- "description": "默认情况下,抽屉栏相对于 `body` 元素显示。当该参数设置为 `true` 时,抽屉栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative; overflow: hidden;`。",
3071
+ "description": "默认情况下,抽屉导航栏相对于 `body` 元素显示。当该属性设置为 `true` 时,抽屉导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative; overflow: hidden;`。",
3072
3072
  "type": "boolean",
3073
3073
  "default": "false"
3074
3074
  },
@@ -3084,19 +3084,19 @@ export const components = [
3084
3084
  "events": [
3085
3085
  {
3086
3086
  "name": "open",
3087
- "description": "抽屉栏打开之前触发。可以通过调用 `event.preventDefault()` 阻止抽屉栏打开"
3087
+ "description": "抽屉导航栏打开之前触发。可以通过调用 `event.preventDefault()` 阻止抽屉导航栏打开"
3088
3088
  },
3089
3089
  {
3090
3090
  "name": "opened",
3091
- "description": "抽屉栏打开动画完成之后触发"
3091
+ "description": "抽屉导航栏打开动画完成之后触发"
3092
3092
  },
3093
3093
  {
3094
3094
  "name": "close",
3095
- "description": "抽屉栏关闭之前触发。可以通过调用 `event.preventDefault()` 阻止抽屉栏关闭"
3095
+ "description": "抽屉导航栏关闭之前触发。可以通过调用 `event.preventDefault()` 阻止抽屉导航栏关闭"
3096
3096
  },
3097
3097
  {
3098
3098
  "name": "closed",
3099
- "description": "抽屉栏关闭动画完成之后触发"
3099
+ "description": "抽屉导航栏关闭动画完成之后触发"
3100
3100
  },
3101
3101
  {
3102
3102
  "name": "overlay-click",
@@ -3106,7 +3106,7 @@ export const components = [
3106
3106
  "slots": [
3107
3107
  {
3108
3108
  "name": "",
3109
- "description": "抽屉栏中的内容"
3109
+ "description": "抽屉导航栏中的内容"
3110
3110
  }
3111
3111
  ],
3112
3112
  "cssParts": [
@@ -3116,7 +3116,7 @@ export const components = [
3116
3116
  },
3117
3117
  {
3118
3118
  "name": "panel",
3119
- "description": "抽屉栏容器"
3119
+ "description": "抽屉导航栏容器"
3120
3120
  }
3121
3121
  ],
3122
3122
  "cssProperties": [
@@ -3311,7 +3311,7 @@ export const components = [
3311
3311
  "name": "contained",
3312
3312
  "attribute": "contained",
3313
3313
  "reflects": true,
3314
- "description": "默认情况下,导航栏相对于 `body` 元素显示。当该参数设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
3314
+ "description": "默认情况下,导航栏相对于 `body` 元素显示。当该属性设置为 `true` 时,导航栏将相对于其父元素显示。\n\n**Note**:设置该属性时,必须在父元素上手动设置样式 `position: relative;`。",
3315
3315
  "type": "boolean",
3316
3316
  "default": "false"
3317
3317
  },
@@ -3319,7 +3319,7 @@ export const components = [
3319
3319
  "name": "divider",
3320
3320
  "attribute": "divider",
3321
3321
  "reflects": true,
3322
- "description": "是否在导航栏和页面内容之间添加分割线",
3322
+ "description": "是否在导航栏和页面内容之间添加分隔线",
3323
3323
  "type": "boolean",
3324
3324
  "default": "false"
3325
3325
  },
@@ -3410,7 +3410,7 @@ export const components = [
3410
3410
  "name": "value",
3411
3411
  "attribute": "value",
3412
3412
  "reflects": true,
3413
- "description": "单选框组的名称,将于表单数据一起提交",
3413
+ "description": "单选框组当前选中的值,将与表单数据一起提交",
3414
3414
  "type": "string",
3415
3415
  "default": "''"
3416
3416
  },
@@ -3622,7 +3622,7 @@ export const components = [
3622
3622
  {
3623
3623
  "name": "value",
3624
3624
  "attribute": null,
3625
- "description": "滑块的值,为数组格式,将于表单数据一起提交。\n\n**NOTE**:该属性无法通过 HTML 属性设置初始值,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
3625
+ "description": "滑块的值,为数组格式,将与表单数据一起提交。\n\n**NOTE**:该属性无法通过 HTML 属性设置初始值,如果要修改该值,只能通过修改 JavaScript 属性值实现。",
3626
3626
  "type": "number[]"
3627
3627
  },
3628
3628
  {
@@ -4551,7 +4551,7 @@ export const components = [
4551
4551
  {
4552
4552
  "name": "value",
4553
4553
  "attribute": "value",
4554
- "description": "滑块的值,将于表单数据一起提交",
4554
+ "description": "滑块的值,将与表单数据一起提交",
4555
4555
  "type": "number",
4556
4556
  "default": "0"
4557
4557
  },
@@ -4953,7 +4953,7 @@ export const components = [
4953
4953
  "name": "value",
4954
4954
  "attribute": "value",
4955
4955
  "reflects": true,
4956
- "description": "开关的值,将于表单数据一起提交",
4956
+ "description": "开关的值,将与表单数据一起提交",
4957
4957
  "type": "string",
4958
4958
  "default": "'on'"
4959
4959
  },
@@ -6027,7 +6027,7 @@ export const components = [
6027
6027
  "name": "scrollThreshold",
6028
6028
  "attribute": "scroll-threshold",
6029
6029
  "reflects": true,
6030
- "description": "在滚动多少距离之后触发滚动行为,单位为 `px`",
6030
+ "description": "触发滚动行为所需的滚动距离,单位为 `px`",
6031
6031
  "type": "number | undefined"
6032
6032
  },
6033
6033
  {
@@ -2,26 +2,26 @@
2
2
  export const cssClasses = [
3
3
  {
4
4
  "name": "mdui-theme-light",
5
- "description": "将此 class 添加到元素上,该元素及其子元素将使用亮色模式显示。",
5
+ "description": "将此 class 添加到元素上,该元素及其子元素将使用浅色模式显示。",
6
6
  "example": "```html\n<div class=\"mdui-theme-light\"></div>\n```",
7
7
  "docUrl": "https://www.mdui.org/docs/2/styles/dark-mode"
8
8
  },
9
9
  {
10
10
  "name": "mdui-theme-dark",
11
- "description": "将此 class 添加到 `<html>` 元素上,整个页面将使用暗色模式显示。也可以添加到其他元素上,使该元素及其子元素使用暗色模式显示。",
12
- "example": "```html\n<!-- 整个页面使用暗色模式显示 -->\n<html class=\"mdui-theme-dark\"></html>\n\n<!-- 该元素及其子元素使用暗色模式显示 -->\n<div class=\"mdui-theme-dark\"></div>\n```",
11
+ "description": "将此 class 添加到 `<html>` 元素上,整个页面将使用深色模式显示。也可以添加到其他元素上,使该元素及其子元素使用深色模式显示。",
12
+ "example": "```html\n<!-- 整个页面使用深色模式显示 -->\n<html class=\"mdui-theme-dark\"></html>\n\n<!-- 该元素及其子元素使用深色模式显示 -->\n<div class=\"mdui-theme-dark\"></div>\n```",
13
13
  "docUrl": "https://www.mdui.org/docs/2/styles/dark-mode"
14
14
  },
15
15
  {
16
16
  "name": "mdui-theme-auto",
17
- "description": "将此 class 添加到 `<html>` 上,整个页面将根据操作系统设置自动切换亮色模式和暗色模式。也可添加到其他元素上,使该元素及其子元素自动切换亮色模式和暗色模式。",
18
- "example": "```html\n<!-- 整个页面自动切换亮色模式和暗色模式 -->\n<html class=\"mdui-theme-auto\"></html>\n\n<!-- 该元素及其子元素自动切换亮色模式和暗色模式 -->\n<div class=\"mdui-theme-auto\"></div>\n```",
17
+ "description": "将此 class 添加到 `<html>` 上,整个页面将根据操作系统设置自动切换浅色模式和深色模式。也可添加到其他元素上,使该元素及其子元素自动切换浅色模式和深色模式。",
18
+ "example": "```html\n<!-- 整个页面自动切换浅色模式和深色模式 -->\n<html class=\"mdui-theme-auto\"></html>\n\n<!-- 该元素及其子元素自动切换浅色模式和深色模式 -->\n<div class=\"mdui-theme-auto\"></div>\n```",
19
19
  "docUrl": "https://www.mdui.org/docs/2/styles/dark-mode"
20
20
  },
21
21
  {
22
22
  "name": "mdui-prose",
23
23
  "description": "添加此 class,将优化文章的排版样式。",
24
- "example": "```html\n<div class=\"mdui-prose\">\n <h1>文章标题</h2>\n <p>文章正文</p>\n</div>\n```",
24
+ "example": "```html\n<div class=\"mdui-prose\">\n <h1>文章标题</h1>\n <p>文章正文</p>\n</div>\n```",
25
25
  "docUrl": "https://www.mdui.org/docs/2/styles/prose"
26
26
  },
27
27
  {