x-next 1.16.1 → 1.18.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.
Files changed (179) hide show
  1. package/AI_USAGE/catalog.md +3 -2
  2. package/AI_USAGE/components/alert-api.md +1 -1
  3. package/AI_USAGE/components/alert.md +33 -1
  4. package/AI_USAGE/components/bar-chart-api.md +1 -1
  5. package/AI_USAGE/components/bar-chart.md +1 -1
  6. package/AI_USAGE/components/boxicons.md +1 -1
  7. package/AI_USAGE/components/button-api.md +13 -16
  8. package/AI_USAGE/components/button.md +242 -31
  9. package/AI_USAGE/components/charts.md +1 -1
  10. package/AI_USAGE/components/checkbox-api.md +1 -1
  11. package/AI_USAGE/components/checkbox.md +1 -1
  12. package/AI_USAGE/components/color-picker-api.md +1 -1
  13. package/AI_USAGE/components/color-picker.md +1 -1
  14. package/AI_USAGE/components/config-provider-api.md +1 -1
  15. package/AI_USAGE/components/config-provider.md +1 -1
  16. package/AI_USAGE/components/date-picker-api.md +1 -1
  17. package/AI_USAGE/components/date-picker.md +1 -1
  18. package/AI_USAGE/components/dialog-api.md +1 -1
  19. package/AI_USAGE/components/dialog.md +1 -1
  20. package/AI_USAGE/components/draggable-api.md +1 -1
  21. package/AI_USAGE/components/draggable.md +1 -1
  22. package/AI_USAGE/components/drawer-api.md +3 -3
  23. package/AI_USAGE/components/drawer.md +1 -1
  24. package/AI_USAGE/components/dropdown-api.md +3 -3
  25. package/AI_USAGE/components/dropdown.md +1 -1
  26. package/AI_USAGE/components/empty-api.md +1 -1
  27. package/AI_USAGE/components/empty.md +1 -1
  28. package/AI_USAGE/components/finicon.md +1 -1
  29. package/AI_USAGE/components/form-api.md +1 -1
  30. package/AI_USAGE/components/form.md +1 -1
  31. package/AI_USAGE/components/grid-api.md +1 -1
  32. package/AI_USAGE/components/grid.md +1 -1
  33. package/AI_USAGE/components/heatmap-api.md +1 -1
  34. package/AI_USAGE/components/heatmap.md +1 -1
  35. package/AI_USAGE/components/icon-api.md +1 -1
  36. package/AI_USAGE/components/icon.md +1 -1
  37. package/AI_USAGE/components/image-api.md +1 -1
  38. package/AI_USAGE/components/image.md +1 -1
  39. package/AI_USAGE/components/input-api.md +2 -2
  40. package/AI_USAGE/components/input-number-api.md +1 -1
  41. package/AI_USAGE/components/input-number.md +1 -1
  42. package/AI_USAGE/components/input-tag-api.md +1 -1
  43. package/AI_USAGE/components/input-tag.md +1 -1
  44. package/AI_USAGE/components/input.md +1 -1
  45. package/AI_USAGE/components/layout-api.md +1 -1
  46. package/AI_USAGE/components/layout.md +1 -1
  47. package/AI_USAGE/components/line-chart-api.md +1 -1
  48. package/AI_USAGE/components/line-chart.md +1 -1
  49. package/AI_USAGE/components/link-api.md +1 -1
  50. package/AI_USAGE/components/link.md +1 -1
  51. package/AI_USAGE/components/menu-api.md +1 -1
  52. package/AI_USAGE/components/menu.md +1 -1
  53. package/AI_USAGE/components/message-api.md +1 -1
  54. package/AI_USAGE/components/message-box-api.md +1 -1
  55. package/AI_USAGE/components/message-box.md +1 -1
  56. package/AI_USAGE/components/message.md +1 -1
  57. package/AI_USAGE/components/network-api.md +1 -1
  58. package/AI_USAGE/components/network.md +1 -1
  59. package/AI_USAGE/components/notification-api.md +1 -1
  60. package/AI_USAGE/components/notification.md +1 -1
  61. package/AI_USAGE/components/pagination-api.md +1 -1
  62. package/AI_USAGE/components/pagination.md +1 -1
  63. package/AI_USAGE/components/pie-chart-api.md +1 -1
  64. package/AI_USAGE/components/pie-chart.md +1 -1
  65. package/AI_USAGE/components/popconfirm-api.md +3 -3
  66. package/AI_USAGE/components/popconfirm.md +1 -1
  67. package/AI_USAGE/components/popover-api.md +1 -1
  68. package/AI_USAGE/components/popover.md +1 -1
  69. package/AI_USAGE/components/popup-api.md +1 -1
  70. package/AI_USAGE/components/popup.md +1 -1
  71. package/AI_USAGE/components/progress-api.md +1 -1
  72. package/AI_USAGE/components/progress.md +1 -1
  73. package/AI_USAGE/components/radio-api.md +1 -1
  74. package/AI_USAGE/components/radio.md +1 -1
  75. package/AI_USAGE/components/rate-api.md +1 -1
  76. package/AI_USAGE/components/rate.md +1 -1
  77. package/AI_USAGE/components/resize-box-api.md +1 -1
  78. package/AI_USAGE/components/resize-box.md +1 -1
  79. package/AI_USAGE/components/scrollbar-api.md +1 -1
  80. package/AI_USAGE/components/scrollbar.md +1 -1
  81. package/AI_USAGE/components/select-api.md +1 -1
  82. package/AI_USAGE/components/select.md +1 -1
  83. package/AI_USAGE/components/skeleton-api.md +1 -1
  84. package/AI_USAGE/components/skeleton.md +1 -1
  85. package/AI_USAGE/components/slider-api.md +1 -1
  86. package/AI_USAGE/components/slider.md +1 -1
  87. package/AI_USAGE/components/space-api.md +1 -1
  88. package/AI_USAGE/components/space.md +1 -1
  89. package/AI_USAGE/components/spin-api.md +1 -1
  90. package/AI_USAGE/components/spin.md +1 -1
  91. package/AI_USAGE/components/steps-api.md +1 -1
  92. package/AI_USAGE/components/steps.md +1 -1
  93. package/AI_USAGE/components/switch-api.md +1 -1
  94. package/AI_USAGE/components/switch.md +1 -1
  95. package/AI_USAGE/components/table-api.md +1 -1
  96. package/AI_USAGE/components/table.md +1 -1
  97. package/AI_USAGE/components/tabs-api.md +1 -1
  98. package/AI_USAGE/components/tabs.md +1 -1
  99. package/AI_USAGE/components/tag-api.md +1 -1
  100. package/AI_USAGE/components/tag.md +1 -1
  101. package/AI_USAGE/components/textarea-api.md +1 -1
  102. package/AI_USAGE/components/textarea.md +1 -1
  103. package/AI_USAGE/components/time-picker-api.md +1 -1
  104. package/AI_USAGE/components/time-picker.md +1 -1
  105. package/AI_USAGE/components/time-range-selector-api.md +1 -1
  106. package/AI_USAGE/components/time-range-selector.md +1 -1
  107. package/AI_USAGE/components/timeline-api.md +3 -3
  108. package/AI_USAGE/components/timeline.md +1 -1
  109. package/AI_USAGE/components/tooltip-api.md +1 -1
  110. package/AI_USAGE/components/tooltip.md +1 -1
  111. package/AI_USAGE/components/transfer-api.md +165 -0
  112. package/AI_USAGE/components/transfer.md +515 -0
  113. package/AI_USAGE/components/tree-select-api.md +1 -1
  114. package/AI_USAGE/components/tree-select.md +1 -1
  115. package/AI_USAGE/components/trend-chart-api.md +1 -1
  116. package/AI_USAGE/components/trend-chart.md +1 -1
  117. package/AI_USAGE/components/trigger-api.md +1 -1
  118. package/AI_USAGE/components/trigger.md +1 -1
  119. package/AI_USAGE/components/upload-api.md +1 -1
  120. package/AI_USAGE/components/upload.md +1 -1
  121. package/AI_USAGE/components/watermark-api.md +1 -1
  122. package/AI_USAGE/components/watermark.md +1 -1
  123. package/AI_USAGE/core.md +1 -1
  124. package/AI_USAGE/index.md +3 -2
  125. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  126. package/AI_USAGE.md +957 -57
  127. package/CHANGELOG.md +40 -0
  128. package/dist/_styles/palette-aliases.d.ts +1 -0
  129. package/dist/components/button/Button.d.ts +0 -9
  130. package/dist/components/button/appearance.d.ts +7 -0
  131. package/dist/components/button/index.d.ts +0 -16
  132. package/dist/components/button/props.d.ts +2 -6
  133. package/dist/components/color-picker/panel.d.ts +0 -9
  134. package/dist/components/date-picker/DatePicker.vue.d.ts +0 -15
  135. package/dist/components/date-picker/index.d.ts +0 -30
  136. package/dist/components/drawer/index.d.ts +0 -30
  137. package/dist/components/drawer/src/Drawer.vue.d.ts +0 -15
  138. package/dist/components/dropdown/DropdownButton.vue.d.ts +0 -15
  139. package/dist/components/dropdown/index.d.ts +0 -30
  140. package/dist/components/index.d.ts +1 -0
  141. package/dist/components/popconfirm/src/popup.vue.d.ts +0 -15
  142. package/dist/components/time-picker/TimePanel.vue.d.ts +0 -15
  143. package/dist/components/time-picker/TimePicker.vue.d.ts +0 -15
  144. package/dist/components/time-picker/index.d.ts +0 -30
  145. package/dist/components/transfer/Transfer.d.ts +211 -0
  146. package/dist/components/transfer/index.d.ts +299 -0
  147. package/dist/components/transfer/interface.d.ts +80 -0
  148. package/dist/components/transfer/transfer-panel.d.ts +82 -0
  149. package/dist/components/transfer/utils.d.ts +5 -0
  150. package/dist/es/_styles/palette-aliases.js +102 -17
  151. package/dist/es/_utils/palette.js +54 -54
  152. package/dist/es/components/button/Button.js +77 -49
  153. package/dist/es/components/button/appearance.js +7 -0
  154. package/dist/es/components/button/props.js +0 -4
  155. package/dist/es/components/index.js +47 -45
  156. package/dist/es/components/transfer/Transfer.js +267 -0
  157. package/dist/es/components/transfer/index.js +7 -0
  158. package/dist/es/components/transfer/transfer-panel.js +251 -0
  159. package/dist/es/components/transfer/utils.js +9 -0
  160. package/dist/es/directives/wave.js +14 -8
  161. package/dist/es/index.js +46 -44
  162. package/dist/es/locale/en-US.js +16 -0
  163. package/dist/es/locale/zh-CN.js +16 -0
  164. package/dist/es/style.css +1 -1
  165. package/dist/index.cjs +3 -3
  166. package/dist/index.umd.js +3 -3
  167. package/dist/locale/interface.d.ts +16 -0
  168. package/dist/style/alert.css +1 -1
  169. package/dist/style/base.css +1 -1
  170. package/dist/style/button.css +1 -1
  171. package/dist/style/color-picker.css +1 -1
  172. package/dist/style/dependencies.json +14 -0
  173. package/dist/style/link.css +1 -1
  174. package/dist/style/transfer.css +1 -0
  175. package/dist/style/transfer.js +12 -0
  176. package/dist/style.css +1 -1
  177. package/dist/types.d.ts +1 -0
  178. package/package.json +3 -1
  179. package/volar.d.ts +1 -0
@@ -1,9 +1,9 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # 公开组件与服务导航
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
- 从当前构建的根公共声明生成,包含 105 个具名组件/服务导出(含子组件和别名,不等于组件族数量),每项均有包内用法与 API 导航。运行时仅从 `x-next` 导入;未列出的 hooks、指令和类型继续查 [公共入口声明](../dist/index.d.ts)。
6
+ 从当前构建的根公共声明生成,包含 106 个具名组件/服务导出(含子组件和别名,不等于组件族数量),每项均有包内用法与 API 导航。运行时仅从 `x-next` 导入;未列出的 hooks、指令和类型继续查 [公共入口声明](../dist/index.d.ts)。
7
7
 
8
8
  | 导出 | 形式 | 本地用法 | 本地 API | 类型导航 | 样式入口 |
9
9
  | --- | --- | --- | --- | --- | --- |
@@ -104,6 +104,7 @@
104
104
  | TimeRangeSelector | 组件 | [用法](./components/time-range-selector.md) | [API](./components/time-range-selector-api.md#timerangeselector-api) | [公开声明](../dist/components/time-range-selector/index.d.ts) | x-next/style/time-range-selector |
105
105
  | Tooltip | 组件 | [用法](./components/tooltip.md) | [API](./components/tooltip-api.md#tooltip-api) | [公开声明](../dist/components/tooltip/index.d.ts) | x-next/style/tooltip |
106
106
  | Tr | 组件 | [用法](./components/table.md) | [API](./components/table-api.md#tr-api) | [公开声明](../dist/components/table/table-tr.d.ts) | x-next/style/table |
107
+ | Transfer | 组件 | [用法](./components/transfer.md) | [API](./components/transfer-api.md#transfer-api) | [公开声明](../dist/components/transfer/index.d.ts) | x-next/style/transfer |
107
108
  | TreeSelect | 组件 | [用法](./components/tree-select.md) | [API](./components/tree-select-api.md#treeselect-api) | [公开声明](../dist/components/tree-select/index.d.ts) | x-next/style/tree-select |
108
109
  | TreeSelectDropdown | 组件 | [用法](./components/tree-select.md) | [API](./components/tree-select-api.md#treeselectdropdown-api) | [公开声明](../dist/components/tree-select/index.d.ts) | x-next/style/tree-select |
109
110
  | TrendChart | 组件 | [用法](./components/trend-chart.md) | [API](./components/trend-chart-api.md#trendchart-api) | [公开声明](../dist/components/trend-chart/index.d.ts) | x-next/style/base.css |
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Alert 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Alert AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Alert`;主要模型:v-model:visible。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./alert-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -80,6 +80,38 @@ import { Alert } from 'x-next';
80
80
  </template>
81
81
  ```
82
82
 
83
+ ### 暗色主题
84
+
85
+ 暗色提示与 Button 状态按钮、Link 悬浮背景及反馈图标底使用同组状态配色,正文保持浅色,图标保留类型辨识度。`normal` 继续使用中性弱提示背景。下面通过 ConfigProvider 展示局部暗色,页面主题切换时也会应用相同配色。
86
+
87
+ ```vue
88
+ <script setup lang="ts">
89
+ import 'x-next/style.css';
90
+ import { Alert as XAlert, ConfigProvider as XConfigProvider } from 'x-next';
91
+ import 'x-next/style/base.css';
92
+ import 'x-next/style/alert.css';
93
+ </script>
94
+ <template>
95
+ <XConfigProvider :dark="true" class="alert-dark-example">
96
+ <XAlert type="info">用于普通信息提示。</XAlert>
97
+ <XAlert type="success">用于成功状态反馈。</XAlert>
98
+ <XAlert type="warning">用于需要关注的警告信息。</XAlert>
99
+ <XAlert type="strong">用于需要强调的提醒信息。</XAlert>
100
+ <XAlert type="error">用于错误或失败信息。</XAlert>
101
+ <XAlert type="normal">用于弱提示或中性说明。</XAlert>
102
+ </XConfigProvider>
103
+ </template>
104
+ <style scoped>
105
+ .alert-dark-example {
106
+ display: grid;
107
+ gap: 12px;
108
+ padding: 20px;
109
+ border-radius: 8px;
110
+ background: var(--x-color-bg-surface);
111
+ }
112
+ </style>
113
+ ```
114
+
83
115
  ### 标题
84
116
 
85
117
  ```vue
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # BarChart 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # BarChart AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`BarChart`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./bar-chart-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Boxicons AI 用法
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。本地组件文档导入的选型和配套资源用法。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Button 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -19,13 +19,12 @@
19
19
  | loadingFill | 加载时居中覆盖内容并保持尺寸;结束后恢复文字和插槽 | undefined &#124; false &#124; true | 否 | false |
20
20
  | debounce | 点击后保持 loading 态的时间,单位 ms,用于防重复点击 | undefined &#124; number | 否 | 0 |
21
21
  | shape | 胶囊形、圆形或直角;未设置时使用默认圆角 | undefined &#124; "round" &#124; "circle" &#124; "square" | 否 | undefined |
22
- | link | 是否展示为链接按钮样式 | undefined &#124; false &#124; true | 否 | false |
23
- | type | 按钮类型 | undefined &#124; "default" &#124; "primary" &#124; "dashed" &#124; "outline" &#124; "text" | 否 | "default" |
22
+ | type | 按钮形态;primary 是实心形态的快捷类型,默认使用品牌色 | undefined &#124; "default" &#124; "primary" &#124; "solid" &#124; "subtle" &#124; "dashed" &#124; "outline" &#124; "text" | 否 | "default" |
24
23
  | htmlType | 原生按钮类型;模板中使用 html-type | undefined &#124; "button" &#124; "submit" &#124; "reset" | 否 | "button" |
25
- | status | 按钮状态 | undefined &#124; "default" &#124; "success" &#124; "warning" &#124; "strong" &#124; "info" &#124; "danger" | 否 | "default" |
26
- | plain | 是否朴素样式 | undefined &#124; false &#124; true | 否 | false |
24
+ | status | 按钮颜色 | undefined &#124; "default" &#124; "success" &#124; "warning" &#124; "strong" &#124; "info" &#124; "primary" &#124; "danger" | 否 | "default" |
25
+ | plain | 将 default / solid / primary 改为弱底,保留颜色 | undefined &#124; false &#124; true | 否 | false |
27
26
  | size | 按钮尺寸 | undefined &#124; "mini" &#124; "small" &#124; "medium" &#124; "large" &#124; "huge" | 否 | undefined |
28
- | border | 是否显示边框 | undefined &#124; false &#124; true | 否 | true |
27
+ | border | 是否允许形态的边框;false 只隐藏边框 | undefined &#124; false &#124; true | 否 | true |
29
28
  | narrow | 是否使用窄按钮,无内边距 | undefined &#124; false &#124; true | 否 | false |
30
29
 
31
30
  ### Events
@@ -41,7 +40,7 @@
41
40
  | default | 按钮内容 | () => any |
42
41
  | prefix | 前置内容 | () => any |
43
42
  | suffix | 后置内容 | () => any |
44
- | icon | 图标内容,会渲染在文字前;仅有此插槽时按钮等宽高,请设置 aria-label | any |
43
+ | icon | 图标内容,会渲染在文字前;仅有此插槽时通常等宽高,block 时撑满父宽;请设置 aria-label | any |
45
44
 
46
45
  ### 实例方法
47
46
 
@@ -54,9 +53,9 @@
54
53
  ```typescript-reference
55
54
  type ButtonSize = 'mini' | 'small' | 'medium' | 'large' | 'huge';
56
55
 
57
- type ButtonStatus = 'default' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
56
+ type ButtonStatus = 'default' | 'primary' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
58
57
 
59
- type ButtonTypes = 'primary' | 'default' | 'dashed' | 'outline' | 'text';
58
+ type ButtonTypes = 'primary' | 'default' | 'solid' | 'subtle' | 'dashed' | 'outline' | 'text';
60
59
 
61
60
  type ButtonHtmlType = 'button' | 'submit' | 'reset';
62
61
 
@@ -69,7 +68,6 @@ type ButtonProps = {
69
68
  loadingFill?: boolean;
70
69
  debounce?: number;
71
70
  shape?: ButtonShape;
72
- link?: boolean;
73
71
  type?: ButtonTypes;
74
72
  htmlType?: ButtonHtmlType;
75
73
  status?: ButtonStatus;
@@ -89,11 +87,11 @@ type ButtonProps = {
89
87
 
90
88
  | 名称 | 用途 | 公开类型 | 必填 | 声明默认值 |
91
89
  | --- | --- | --- | --- | --- |
92
- | type | 子按钮默认类型 | undefined &#124; "default" &#124; "primary" &#124; "dashed" &#124; "outline" &#124; "text" | 否 | 未声明 |
93
- | status | 子按钮默认状态 | undefined &#124; "default" &#124; "success" &#124; "warning" &#124; "strong" &#124; "info" &#124; "danger" | 否 | 未声明 |
90
+ | type | 子按钮默认类型 | undefined &#124; "default" &#124; "primary" &#124; "solid" &#124; "subtle" &#124; "dashed" &#124; "outline" &#124; "text" | 否 | 未声明 |
91
+ | status | 子按钮默认状态 | undefined &#124; "default" &#124; "success" &#124; "warning" &#124; "strong" &#124; "info" &#124; "primary" &#124; "danger" | 否 | 未声明 |
94
92
  | shape | 子按钮默认形状 | undefined &#124; "round" &#124; "circle" &#124; "square" | 否 | 未声明 |
95
93
  | size | 子按钮默认尺寸 | undefined &#124; "mini" &#124; "small" &#124; "medium" &#124; "large" &#124; "huge" | 否 | 未声明 |
96
- | disabled | 是否禁用所有子按钮 | undefined &#124; false &#124; true | 否 | false(Vue Boolean 转换) |
94
+ | disabled | 子按钮默认禁用值;子按钮显式值优先 | undefined &#124; false &#124; true | 否 | false(Vue Boolean 转换) |
97
95
 
98
96
  ### Events
99
97
 
@@ -114,9 +112,9 @@ type ButtonProps = {
114
112
  ```typescript-reference
115
113
  type ButtonSize = 'mini' | 'small' | 'medium' | 'large' | 'huge';
116
114
 
117
- type ButtonStatus = 'default' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
115
+ type ButtonStatus = 'default' | 'primary' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
118
116
 
119
- type ButtonTypes = 'primary' | 'default' | 'dashed' | 'outline' | 'text';
117
+ type ButtonTypes = 'primary' | 'default' | 'solid' | 'subtle' | 'dashed' | 'outline' | 'text';
120
118
 
121
119
  type ButtonHtmlType = 'button' | 'submit' | 'reset';
122
120
 
@@ -129,7 +127,6 @@ type ButtonProps = {
129
127
  loadingFill?: boolean;
130
128
  debounce?: number;
131
129
  shape?: ButtonShape;
132
- link?: boolean;
133
130
  type?: ButtonTypes;
134
131
  htmlType?: ButtonHtmlType;
135
132
  status?: ButtonStatus;
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Button AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Button, ButtonGroup`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./button-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## 已核验行为与示例
11
11
 
12
- [组件文档与 live demo](https://x-next.yjmf.com/components/button)。`type` 默认 `'default'`,视觉主按钮用 `'primary'`;`htmlType` 默认 `'button'`,原生提交用 `'submit'`。尺寸优先级为显式 `size` → ButtonGroup → ConfigProvider → `'medium'`;Button 不通过 FormItem 继承尺寸。`disabled` / `loading` 默认关闭。
12
+ [组件文档与 live demo](https://x-next.yjmf.com/components/button)。`type` 管形态,默认 `'default'`;实心用 `'solid'`、弱底用 `'subtle'`、透明用 `'outline'/'dashed'/'text'`。`status` 管颜色,默认中性 `'default'`,品牌色显式 `'primary'`。默认与中性 outline 是同一普通操作层级的弱底 / 透明表面差异;品牌描边显式使用 status=primary。兼容 `type='primary'` 解析品牌实心,其他语义 status 优先;`plain` 仅把填充形态转为 subtle,`border=false` 只隐藏边框;语义弱底不额外描边,中性默认保留细边,outline/dashed 需要边框。波纹颜色跟随状态;text、disabled/loading 无外部波纹。深灰实心是独立纯灰的高权重进阶组合,不代表次要或禁用。text 保留按钮点击区域,`type="text" narrow` 去掉水平内边距且保持按钮高度;URL 导航用 Link 的 href 或项目路由方案。Button 不提供 link 类型或布尔 link 属性。`htmlType` 默认 `'button'`,原生提交用 `'submit'`。尺寸优先级为显式 `size` → ButtonGroup → ConfigProvider → `'medium'`;Button 不通过 FormItem 继承尺寸。`disabled` / `loading` 默认关闭。
13
13
 
14
14
  `click` 载荷为 `MouseEvent`,禁用或加载中不会触发。`default`、`prefix`、`suffix`、`icon` 插槽可组合内容;异步业务自行维护 `loading`。
15
15
 
@@ -61,14 +61,141 @@ import { Button } from 'x-next';
61
61
  <template>
62
62
  <Button>默认按钮</Button>
63
63
  <Button type="primary">主要按钮</Button>
64
- <Button type="outline">描边按钮</Button>
64
+ <Button type="outline" status="primary">品牌描边</Button>
65
65
  <Button type="text">文本按钮</Button>
66
66
  </template>
67
67
  ```
68
68
 
69
+ ### 形态与颜色
70
+
71
+ 通过 `type` 设置形态,通过 `status` 设置颜色。品牌色使用 `status="primary"`。
72
+
73
+ | 形态 | 表现 |
74
+ | --- | --- |
75
+ | default | 浅色背景;中性按钮有细边框,状态色按钮无边框 |
76
+ | solid | 实心底、白字 |
77
+ | subtle | 弱填充、无可见边框 |
78
+ | outline / dashed | 透明底、实线 / 虚线边框 |
79
+ | text | 透明文字,保留按钮尺寸与内边距 |
80
+
81
+ ### 文本动作与跳转链接
82
+
83
+ `type="text"` 适合表格或工具栏操作,加上 `narrow` 可去掉水平内边距。跳转页面使用 `x-link` 的 `href`。
84
+
85
+ ### 进阶组合:深灰实心
86
+
87
+ 深灰实心适合黑白品牌或强调操作;次要操作可使用默认或文本按钮。
88
+
89
+ ### 组合预览
90
+
91
+ ```vue
92
+ <script setup lang="ts">
93
+ import 'x-next/style.css';
94
+ import { Button } from 'x-next';
95
+
96
+ </script>
97
+ <template>
98
+ <Button type="solid" status="primary">品牌实心</Button>
99
+ <Button type="subtle" status="primary">品牌弱底</Button>
100
+ <Button type="outline" status="primary">品牌描边</Button>
101
+ <Button type="text" status="primary">品牌文本</Button>
102
+ </template>
103
+ ```
104
+
105
+ ```vue
106
+ <script setup lang="ts">
107
+ import 'x-next/style.css';
108
+ import { ref } from 'vue';
109
+ import { Button as XButton, Link as XLink } from 'x-next';
110
+ import 'x-next/style/button';
111
+ import 'x-next/style/link';
112
+ const textCount = ref(0);
113
+ const compactCount = ref(0);
114
+ </script>
115
+ <template>
116
+ <XButton type="text" status="primary" @click="textCount++">文本操作</XButton>
117
+ <span>行内动作:<XButton type="text" narrow status="primary" @click="compactCount++">紧凑文本操作</XButton></span>
118
+ <XLink href="/components/link" :hoverable="false">查看 Link 文档</XLink>
119
+ <span role="status">文本操作 {{ textCount }} 次,紧凑操作 {{ compactCount }} 次</span>
120
+ </template>
121
+ ```
122
+
123
+ ```vue
124
+ <script setup lang="ts">
125
+ import 'x-next/style.css';
126
+ import { Button } from 'x-next';
127
+
128
+ </script>
129
+ <template>
130
+ <Button type="solid">深灰实心</Button>
131
+ </template>
132
+ ```
133
+
134
+ ```vue
135
+ <script setup lang="ts">
136
+ import 'x-next/style.css';
137
+ import { ref } from 'vue';
138
+ import { Button as XButton, ButtonGroup as XButtonGroup, Select as XSelect, Checkbox as XCheckbox } from 'x-next';
139
+ import type { ButtonTypes, ButtonStatus } from 'x-next';
140
+ import 'x-next/style/button';
141
+ import 'x-next/style/form-select';
142
+ import 'x-next/style/form-checkbox';
143
+ const types = ['default', 'solid', 'subtle', 'outline', 'dashed', 'text', 'primary'] as const;
144
+ const statuses = ['default', 'primary', 'success', 'warning', 'strong', 'danger', 'info'] as const;
145
+ const typeOptions = types.map(value => ({ label: value, value }));
146
+ const statusOptions = statuses.map(value => ({ label: value, value }));
147
+ const typeAttrs = { 'aria-label': '按钮形态' };
148
+ const statusAttrs = { 'aria-label': '按钮颜色' };
149
+ const type = ref<ButtonTypes>('outline');
150
+ const status = ref<ButtonStatus>('default');
151
+ const plain = ref(false), border = ref(true), count = ref(0);
152
+ </script>
153
+ <template>
154
+ <div class="button-controls">
155
+ <div class="button-field">
156
+ <span>形态</span>
157
+ <XSelect v-model="type" :options="typeOptions" v-bind="typeAttrs" class="button-select" />
158
+ </div>
159
+ <div class="button-field">
160
+ <span>颜色</span>
161
+ <XSelect v-model="status" :options="statusOptions" v-bind="statusAttrs" class="button-select" />
162
+ </div>
163
+ <XCheckbox v-model="plain">plain</XCheckbox>
164
+ <XCheckbox v-model="border">border</XCheckbox>
165
+ </div>
166
+ <XButton :type="type" :status="status" :plain="plain" :border="border" @click="count++">组合按钮</XButton>
167
+ <span role="status">已触发 {{ count }} 次</span>
168
+ <XButtonGroup type="outline">
169
+ <XButton :border="false">组内无边框一</XButton>
170
+ <XButton :border="false">组内无边框二</XButton>
171
+ </XButtonGroup>
172
+ </template>
173
+ <style scoped>
174
+ .button-controls {
175
+ display: flex;
176
+ flex-wrap: wrap;
177
+ align-items: center;
178
+ gap: 12px;
179
+ }
180
+ .button-field {
181
+ display: flex;
182
+ align-items: center;
183
+ gap: 8px;
184
+ flex: none;
185
+ }
186
+ .button-field > span {
187
+ white-space: nowrap;
188
+ }
189
+ .button-field :deep(.button-select) {
190
+ width: 136px;
191
+ flex: none;
192
+ }
193
+ </style>
194
+ ```
195
+
69
196
  ### 外部水波纹
70
197
 
71
- Button 默认开启类似 Ant Design Vue 的外部轮廓水波纹。`disabled`、`loading`、`link` 和 `type="text"` 状态不会展示外部水波纹。
198
+ 点击按钮查看反馈。禁用、加载或文本按钮不显示水波纹。
72
199
 
73
200
  ```vue
74
201
  <script setup lang="ts">
@@ -80,6 +207,7 @@ import { Button } from 'x-next';
80
207
  <Button>默认水波纹</Button>
81
208
  <Button type="primary">主要水波纹</Button>
82
209
  <Button status="danger">危险水波纹</Button>
210
+ <Button type="outline" status="danger">危险描边水波纹</Button>
83
211
  <Button loading>加载不触发</Button>
84
212
  <Button disabled>禁用不触发</Button>
85
213
  </template>
@@ -87,6 +215,8 @@ import { Button } from 'x-next';
87
215
 
88
216
  ### 状态
89
217
 
218
+ 通过 `status` 表达成功、警告、危险等状态。
219
+
90
220
  ```vue
91
221
  <script setup lang="ts">
92
222
  import 'x-next/style.css';
@@ -104,15 +234,45 @@ import { Button } from 'x-next';
104
234
  </template>
105
235
  ```
106
236
 
107
- ### 状态色实心按钮
237
+ ### 暗色状态按钮
108
238
 
109
- 五种状态色都提供实心(高亮)形态,**统一使用白字**与主题惯例一致。实心底色即主题种子色:主要 `#1c61ff`、成功 `#00a809`、警告 `#ffb800`、强调 `#ff8200`、危险 `#e02225`。
239
+ 通过 `ConfigProvider` 的 `dark` 属性设置局部暗色。
110
240
 
111
- 危险色种子 `#e02225` 的白字对比为 4.75:1,实心底直接使用种子本身,不再需要压暗变体。
241
+ ```vue
242
+ <script setup lang="ts">
243
+ import 'x-next/style.css';
244
+ import { Button as XButton, ConfigProvider as XConfigProvider } from 'x-next';
245
+ import 'x-next/style/base.css';
246
+ import 'x-next/style/button.css';
247
+ </script>
248
+ <template>
249
+ <XConfigProvider :dark="true" class="button-dark-example">
250
+ <XButton>默认</XButton>
251
+ <XButton status="success">成功</XButton>
252
+ <XButton status="warning">警告</XButton>
253
+ <XButton status="strong">强调</XButton>
254
+ <XButton status="danger">危险</XButton>
255
+ <XButton status="info">信息</XButton>
256
+ <XButton disabled>禁用</XButton>
257
+ </XConfigProvider>
258
+ </template>
259
+ <style scoped>
260
+ .button-dark-example {
261
+ display: flex;
262
+ flex-wrap: wrap;
263
+ gap: 12px;
264
+ padding: 20px;
265
+ border-radius: 8px;
266
+ background: var(--x-color-bg-surface);
267
+ }
268
+ </style>
269
+ ```
270
+
271
+ ### 状态色实心按钮
112
272
 
113
- 实心底与白字在明暗主题下都恒定不翻转,因此暗色下仍是同一块强调色。更换主题种子色(`base.scss` 的 `--x-color-<name>`)后实心按钮整体联动。
273
+ 实心按钮适合强调操作,搭配 `status` 设置颜色。
114
274
 
115
- 亮黄色、亮橙色实底上的白字属于主题惯例内的折中:这类底亮度过高,强行让白字达到正文级 4.5:1 只能压深到底色失去品牌识别。参考 Arco 的橙色实底白字为 2.57:1、Ant Design 的 `warning` 为 1.90:1,本库 `warning` / `strong` 与二者处于同一水平。需要更高可读性时,可改用 `type="outline"`、`plain` 或 `type="text"` 形态,或把种子色选得更深。各状态实测值与回归下限由 `script/check-contrast.js` 守护。
275
+ 黄色、橙色实心按钮的文字对比较弱,需要更高可读性时可选用描边或弱底形态。
116
276
 
117
277
  ```vue
118
278
  <script setup lang="ts">
@@ -131,25 +291,11 @@ import { Button } from 'x-next';
131
291
 
132
292
  ### 类型与边框
133
293
 
134
- `border="false"` 使用弱背景状态色,不会切换成实心危险按钮。需要实心危险按钮时使用 `type="primary" status="danger"`。
135
-
136
- `link` 保持透明背景和对应状态文字色,非圆形链接按钮的高度随文字行高变化、没有水平内边距。禁用和加载期间不会响应悬浮或按下颜色。
137
-
138
- 彩色文字按钮(`plain`、`outline`、`text`、`link`)在亮色主题中沿用品牌主色,暗色主题中使用同色系的亮色档,与 Link、Tag 同源。对比度下限对齐 Arco 同级角色,由 `script/check-contrast.js` 的 `ARCO_BASELINE` 守护。
139
-
140
- ### 交互三态
294
+ `:border="false"` 只隐藏边框。需要弱底危险按钮时使用 `type="subtle" status="danger"`,实心危险按钮使用 `type="solid" status="danger"`。
141
295
 
142
- 按钮的常态、悬浮、按下按**渐深梯度**设计,每一级都可感知且保持轻盈(明度差 ≥ 0.025,由门禁守护):
296
+ ### 交互状态
143
297
 
144
- | 形态 | 常态 | 悬浮 | 按下 |
145
- | --- | --- | --- | --- |
146
- | 默认 / 信息(灰色系) | `fill-2` | `neutral-3` | `neutral-4` |
147
- | 彩色弱底 / 描边 / 文本(除 warning) | 无色或同色浅底 | 同色浅底混入按钮文字色 10% | 同色浅底混入按钮文字色 16% |
148
- | warning 弱底 / 描边 / 文本 | 无色或同色浅底 | 同色浅底混入按钮文字色 25% | 同色浅底混入按钮文字色 40% |
149
- | 链接 | 透明背景、状态文字色 | 保持常态 | 保持常态 |
150
- | 实色 | 种子实底 | 混白 8%(更亮) | 混恒定深 10%(更深) |
151
-
152
- 默认按钮不用 `fill-2/3/4` 递进:全局 fill 灰阶在浅端被压缩,`fill-2` 与 `fill-3` 只差 3 个通道,悬浮态几乎看不出变化;改用 `neutral-3/4` 后与 Arco 的步进一致。
298
+ 悬浮或按住按钮查看状态变化,也可用 Tab 聚焦后按 Space / Enter 操作。第二组展示局部暗色。
153
299
 
154
300
  ```vue
155
301
  <script setup lang="ts">
@@ -163,15 +309,52 @@ import { Button } from 'x-next';
163
309
  <Button type="text">文本按钮</Button>
164
310
  <Button plain status="success">朴素成功</Button>
165
311
  <Button :border="false" status="danger">无边框危险</Button>
166
- <Button link>链接按钮</Button>
167
- <Button link status="danger">危险链接</Button>
168
- <Button link disabled>禁用链接</Button>
312
+ <Button type="text" narrow>紧凑文本</Button>
313
+ <Button type="text" narrow status="danger">危险文本</Button>
314
+ <Button type="text" narrow disabled>禁用文本</Button>
169
315
  </template>
170
316
  ```
171
317
 
172
- ### 状态矩阵
318
+ ```vue
319
+ <script setup lang="ts">
320
+ import 'x-next/style.css';
321
+ import { ref } from 'vue';
322
+ import { Button as XButton, ConfigProvider as XConfigProvider } from 'x-next';
323
+ import 'x-next/style/base.css';
324
+ import 'x-next/style/button.css';
173
325
 
174
- Button 的状态色基于组件 alias token 组织,例如 `--x-button-color-bg-danger-subtle`、`--x-button-color-bg-danger-solid`、`--x-button-color-text-danger`。后续自定义主题可以优先覆盖这些组件级 token。
326
+ const count = ref(0);
327
+ const statuses = ['default', 'primary', 'success', 'warning', 'strong', 'danger', 'info'] as const;
328
+ </script>
329
+ <template>
330
+ <div v-for="status in statuses" :key="status">
331
+ <XButton type="outline" :status="status" @click="count++">描边</XButton>
332
+ <XButton type="dashed" :status="status" @click="count++">虚线</XButton>
333
+ <XButton type="text" :status="status" @click="count++">文本</XButton>
334
+ <XButton type="text" narrow :status="status" @click="count++">紧凑文本</XButton>
335
+ </div>
336
+ <XConfigProvider :dark="true" class="button-dark-example">
337
+ <XButton type="outline" @click="count++">暗色描边</XButton>
338
+ <XButton type="dashed" @click="count++">暗色虚线</XButton>
339
+ <XButton type="text" @click="count++">暗色文本</XButton>
340
+ <XButton type="text" narrow @click="count++">暗色紧凑文本</XButton>
341
+ <XButton type="outline" disabled>禁用</XButton>
342
+ <XButton type="text" loading>加载</XButton>
343
+ </XConfigProvider>
344
+ <span role="status">已触发 {{ count }} 次</span>
345
+ </template>
346
+ <style scoped>
347
+ .button-dark-example {
348
+ display: flex;
349
+ flex-wrap: wrap;
350
+ gap: 12px;
351
+ padding: 20px;
352
+ background: var(--x-color-bg-surface);
353
+ }
354
+ </style>
355
+ ```
356
+
357
+ ### 状态矩阵
175
358
 
176
359
  ```vue
177
360
  <script setup lang="ts">
@@ -283,6 +466,15 @@ const pushLog = (label: string) => {
283
466
 
284
467
  `type` 控制视觉样式,`html-type` 控制原生按钮行为。默认 `html-type="button"`,不会因为放进表单而意外提交。
285
468
 
469
+ ### 原生动作与防重复点击
470
+
471
+ <form class="example-box example-box-column" data-demo="button-native-debounce" @submit.prevent="nativeCount++" @reset="formStatus = '防重复示例已重置'">
472
+ <label>必填内容 <input name="message" required value="初始内容" /></label>
473
+ <span role="status">已提交 {{ nativeCount }} 次;{{ formStatus }}</span>
474
+ </form>
475
+
476
+ `debounce` 用于防止重复点击,提交结果在表单的 submit 事件中处理。
477
+
286
478
  ```vue
287
479
  <script setup lang="ts">
288
480
  import 'x-next/style.css';
@@ -300,6 +492,23 @@ const handleSubmit = () => {
300
492
  </template>
301
493
  ```
302
494
 
495
+ ```vue
496
+ <script setup lang="ts">
497
+ import 'x-next/style.css';
498
+ import { Button } from 'x-next';
499
+ import { ref } from 'vue';
500
+ const count = ref(0), message = ref('尚未重置');
501
+ </script>
502
+ <template>
503
+ <form @submit.prevent="count++" @reset="message = '已重置'">
504
+ <label>必填内容 <input name="message" required value="初始内容" /></label>
505
+ <Button type="solid" status="primary" html-type="submit" :debounce="800">防重复提交</Button>
506
+ <Button html-type="reset" :debounce="800">防重复重置</Button>
507
+ <span role="status">已提交 {{ count }} 次;{{ message }}</span>
508
+ </form>
509
+ </template>
510
+ ```
511
+
303
512
  ### 文字与图标
304
513
 
305
514
  按钮支持中英文混排,可以通过 `prefix`、`suffix` 插槽添加图标或附加文字。下面展示不同尺寸的组合,切换加载状态可查看加载图标与内容的排列。
@@ -433,6 +642,8 @@ const nativeAttrs1 = { "aria-label": "切换填充加载" } satisfies ButtonHTML
433
642
 
434
643
  按钮组只连接相邻边缘,保留两端的形状;只有一个按钮时仍保留完整圆角。
435
644
 
645
+ circle 与 block 同用时保持圆形等宽高;普通纯图标与 block 同用时撑满父宽。按钮组中无边框、subtle 和 text 形态不自动补左侧分隔边框。
646
+
436
647
  ```vue
437
648
  <script setup lang="ts">
438
649
  import 'x-next/style.css';
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Charts AI 用法
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。本地组件文档导入的选型和配套资源用法。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Checkbox 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Checkbox AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`Checkbox, CheckboxGroup`;主要模型:v-model。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./checkbox-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # ColorPicker 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # ColorPicker AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`ColorPicker`;主要模型:v-model、v-model:show。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./color-picker-api.md),包含本组件族全部子组件和别名。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # ConfigProvider 完整公开 API
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
7
 
@@ -1,7 +1,7 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # ConfigProvider AI 使用
3
3
 
4
- 适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
4
+ 适用版本:x-next@1.18.0;来源指纹:`a0432ebab3728998205092a9a7e188702b81ff8c0550430bc02ff73b265af282`。
5
5
 
6
6
  先读 [通用接入](../core.md)。公开导出:`ConfigProvider`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./config-provider-api.md),包含本组件族全部子组件和别名。
7
7