x-next 1.13.0 → 1.14.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 (138) hide show
  1. package/AI_CODING.md +6 -5
  2. package/AI_USAGE/catalog.md +106 -105
  3. package/AI_USAGE/components/alert-api.md +48 -0
  4. package/AI_USAGE/components/alert.md +222 -3
  5. package/AI_USAGE/components/bar-chart-api.md +177 -0
  6. package/AI_USAGE/components/bar-chart.md +297 -3
  7. package/AI_USAGE/components/boxicons.md +147 -0
  8. package/AI_USAGE/components/button-api.md +144 -0
  9. package/AI_USAGE/components/button.md +447 -3
  10. package/AI_USAGE/components/charts.md +81 -0
  11. package/AI_USAGE/components/checkbox-api.md +145 -0
  12. package/AI_USAGE/components/checkbox.md +365 -3
  13. package/AI_USAGE/components/color-picker-api.md +52 -0
  14. package/AI_USAGE/components/color-picker.md +211 -3
  15. package/AI_USAGE/components/config-provider-api.md +38 -0
  16. package/AI_USAGE/components/config-provider.md +250 -3
  17. package/AI_USAGE/components/date-picker-api.md +1114 -0
  18. package/AI_USAGE/components/date-picker.md +378 -3
  19. package/AI_USAGE/components/dialog-api.md +142 -0
  20. package/AI_USAGE/components/dialog.md +284 -3
  21. package/AI_USAGE/components/draggable-api.md +146 -0
  22. package/AI_USAGE/components/draggable.md +259 -0
  23. package/AI_USAGE/components/drawer-api.md +78 -0
  24. package/AI_USAGE/components/drawer.md +227 -0
  25. package/AI_USAGE/components/dropdown-api.md +529 -0
  26. package/AI_USAGE/components/dropdown.md +392 -3
  27. package/AI_USAGE/components/empty-api.md +36 -0
  28. package/AI_USAGE/components/empty.md +227 -3
  29. package/AI_USAGE/components/finicon.md +88 -0
  30. package/AI_USAGE/components/form-api.md +524 -0
  31. package/AI_USAGE/components/form.md +454 -0
  32. package/AI_USAGE/components/grid-api.md +527 -0
  33. package/AI_USAGE/components/grid.md +224 -0
  34. package/AI_USAGE/components/heatmap-api.md +122 -0
  35. package/AI_USAGE/components/heatmap.md +220 -0
  36. package/AI_USAGE/components/icon-api.md +4707 -0
  37. package/AI_USAGE/components/icon.md +257 -0
  38. package/AI_USAGE/components/image-api.md +440 -0
  39. package/AI_USAGE/components/image.md +465 -0
  40. package/AI_USAGE/components/input-api.md +184 -0
  41. package/AI_USAGE/components/input-number-api.md +66 -0
  42. package/AI_USAGE/components/input-number.md +294 -0
  43. package/AI_USAGE/components/input-tag-api.md +114 -0
  44. package/AI_USAGE/components/input-tag.md +482 -0
  45. package/AI_USAGE/components/input.md +293 -3
  46. package/AI_USAGE/components/layout-api.md +147 -0
  47. package/AI_USAGE/components/layout.md +230 -0
  48. package/AI_USAGE/components/line-chart-api.md +197 -0
  49. package/AI_USAGE/components/line-chart.md +279 -3
  50. package/AI_USAGE/components/link-api.md +42 -0
  51. package/AI_USAGE/components/link.md +197 -0
  52. package/AI_USAGE/components/menu-api.md +516 -0
  53. package/AI_USAGE/components/menu.md +268 -0
  54. package/AI_USAGE/components/message-api.md +215 -0
  55. package/AI_USAGE/components/message-box-api.md +108 -0
  56. package/AI_USAGE/components/message-box.md +268 -3
  57. package/AI_USAGE/components/message.md +231 -3
  58. package/AI_USAGE/components/network-api.md +91 -0
  59. package/AI_USAGE/components/network.md +378 -0
  60. package/AI_USAGE/components/notification-api.md +236 -0
  61. package/AI_USAGE/components/notification.md +275 -3
  62. package/AI_USAGE/components/pagination-api.md +62 -0
  63. package/AI_USAGE/components/pagination.md +380 -3
  64. package/AI_USAGE/components/pie-chart-api.md +109 -0
  65. package/AI_USAGE/components/pie-chart.md +245 -3
  66. package/AI_USAGE/components/popconfirm-api.md +75 -0
  67. package/AI_USAGE/components/popconfirm.md +231 -3
  68. package/AI_USAGE/components/popover-api.md +75 -0
  69. package/AI_USAGE/components/popover.md +208 -3
  70. package/AI_USAGE/components/popup-api.md +75 -0
  71. package/AI_USAGE/components/popup.md +52 -0
  72. package/AI_USAGE/components/progress-api.md +44 -0
  73. package/AI_USAGE/components/progress.md +248 -3
  74. package/AI_USAGE/components/radio-api.md +165 -0
  75. package/AI_USAGE/components/radio.md +259 -3
  76. package/AI_USAGE/components/rate-api.md +54 -0
  77. package/AI_USAGE/components/rate.md +233 -3
  78. package/AI_USAGE/components/resize-box-api.md +56 -0
  79. package/AI_USAGE/components/resize-box.md +231 -0
  80. package/AI_USAGE/components/scrollbar-api.md +77 -0
  81. package/AI_USAGE/components/scrollbar.md +218 -0
  82. package/AI_USAGE/components/select-api.md +758 -0
  83. package/AI_USAGE/components/select.md +640 -3
  84. package/AI_USAGE/components/skeleton-api.md +85 -0
  85. package/AI_USAGE/components/skeleton.md +150 -0
  86. package/AI_USAGE/components/slider-api.md +51 -0
  87. package/AI_USAGE/components/slider.md +233 -3
  88. package/AI_USAGE/components/space-api.md +38 -0
  89. package/AI_USAGE/components/space.md +145 -0
  90. package/AI_USAGE/components/spin-api.md +43 -0
  91. package/AI_USAGE/components/spin.md +205 -0
  92. package/AI_USAGE/components/steps-api.md +111 -0
  93. package/AI_USAGE/components/steps.md +201 -3
  94. package/AI_USAGE/components/switch-api.md +58 -0
  95. package/AI_USAGE/components/switch.md +290 -3
  96. package/AI_USAGE/components/table-api.md +2919 -0
  97. package/AI_USAGE/components/table.md +1414 -0
  98. package/AI_USAGE/components/tabs-api.md +135 -0
  99. package/AI_USAGE/components/tabs.md +308 -3
  100. package/AI_USAGE/components/tag-api.md +124 -0
  101. package/AI_USAGE/components/tag.md +292 -0
  102. package/AI_USAGE/components/textarea-api.md +55 -0
  103. package/AI_USAGE/components/textarea.md +326 -3
  104. package/AI_USAGE/components/time-picker-api.md +137 -0
  105. package/AI_USAGE/components/time-picker.md +271 -3
  106. package/AI_USAGE/components/time-range-selector-api.md +44 -0
  107. package/AI_USAGE/components/time-range-selector.md +355 -0
  108. package/AI_USAGE/components/timeline-api.md +93 -0
  109. package/AI_USAGE/components/timeline.md +312 -0
  110. package/AI_USAGE/components/tooltip-api.md +77 -0
  111. package/AI_USAGE/components/tooltip.md +182 -0
  112. package/AI_USAGE/components/trend-chart-api.md +119 -0
  113. package/AI_USAGE/components/trend-chart.md +335 -0
  114. package/AI_USAGE/components/trigger-api.md +124 -0
  115. package/AI_USAGE/components/trigger.md +185 -0
  116. package/AI_USAGE/components/upload-api.md +200 -0
  117. package/AI_USAGE/components/upload.md +711 -3
  118. package/AI_USAGE/components/watermark-api.md +87 -0
  119. package/AI_USAGE/components/watermark.md +200 -0
  120. package/AI_USAGE/core.md +1 -1
  121. package/AI_USAGE/index.md +35 -7
  122. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  123. package/AI_USAGE.md +33651 -5
  124. package/CHANGELOG.md +18 -0
  125. package/dist/_utils/inherit-component-type.d.ts +11 -0
  126. package/dist/components/date-picker/index.d.ts +420 -5
  127. package/dist/components/form-input/index.d.ts +617 -2
  128. package/dist/components/layout/index.d.ts +689 -1
  129. package/dist/components/menu/index.d.ts +786 -1
  130. package/dist/es/_utils/inherit-component-type.js +6 -0
  131. package/dist/es/components/date-picker/index.js +18 -17
  132. package/dist/es/components/form-input/index.js +12 -11
  133. package/dist/es/components/layout/index.js +10 -9
  134. package/dist/es/components/menu/hooks/use-level.js +5 -5
  135. package/dist/es/components/menu/index.js +13 -10
  136. package/dist/index.cjs +3 -3
  137. package/dist/index.umd.js +3 -3
  138. package/package.json +10 -5
@@ -1,12 +1,14 @@
1
1
  <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
2
  # Notification AI 使用
3
3
 
4
- 适用版本:x-next@1.13.0;来源指纹:`18e9b8eefa53b4bd91134fb4486778509ccf3a8d614a1bd387a6d469b623ddcf`。
4
+ 适用版本:x-next@1.14.0;来源指纹:`014984639d816a2c7e25eb22690c586b0b2e8efba6846bec8a4e424db41a09e9`。
5
5
 
6
- 先读 [通用接入](../core.md)。公开导出:`Notification, NotificationComponent`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
6
+ 先读 [通用接入](../core.md)。公开导出:`Notification, NotificationComponent`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./notification-api.md),包含本组件族全部子组件和别名。
7
7
 
8
8
  按需样式:`x-next/style/notification`(包含 base.css、notification.css)。代码块未单独引样式时在应用入口加载全量样式,或按实际所有组件加载 JS 入口;不要仅因复制一个组件页就漏掉其中的 Button 等组合依赖。
9
9
 
10
+ ## 已核验行为与示例
11
+
10
12
  [组件文档与 live demo](https://x-next.yjmf.com/components/notification)。`Notification(options)` 或 `.success()` 等显示通知。服务默认 `type='info'`、`duration=3000` 毫秒、`position='top-right'`、`offset=20`、`showClose=true`;四角位置可选,`duration=0` 持续显示。
11
13
 
12
14
  根入口 `NotificationComponent` 是模板组件,默认 `offset=0`,与命令式服务不同;模板组件和服务选项按各自公开类型使用。
@@ -36,4 +38,274 @@ onBeforeUnmount(() => handle?.close());
36
38
  </template>
37
39
  ```
38
40
 
39
- 返回 [AI 索引](../index.md)。精选示例不是完整 API 表,新能力先查同版本公开类型与组件文档。
41
+ ## 场景用法
42
+
43
+ 以下示例从本地 `src/docs/components/notification.md` 显式导入到独立 AI 源,补齐局部注册、状态和样式后进行严格模板检查。上方已核验行为优先;原始 prop 默认值、包装透传和示例业务适配分别查 [完整 API](./notification-api.md) 与场景说明。类型通过不代表所有散文和交互已验证。
44
+
45
+ ### 用途与选型
46
+
47
+ 用于在页面角落展示较完整的通知内容,通常由命令式方法触发。
48
+
49
+
50
+ ### 基础用法
51
+
52
+ ```vue
53
+ <script setup lang="ts">
54
+ import 'x-next/style.css';
55
+ import { Space, Button } from 'x-next';
56
+ import { Notification } from 'x-next';
57
+
58
+ const showBasicNotification = () => {
59
+ Notification.success({
60
+ title: '处理完成',
61
+ message: '后台任务已成功处理',
62
+ });
63
+ };
64
+
65
+ const showCloseableNotification = () => {
66
+ Notification.info({
67
+ title: '常驻通知',
68
+ message: 'duration=0 时不会自动关闭',
69
+ duration: 0,
70
+ showClose: true,
71
+ });
72
+ };
73
+ </script>
74
+ <template>
75
+ <Space>
76
+ <Button type="primary" @click="showBasicNotification">显示通知</Button>
77
+ <Button @click="showCloseableNotification">常驻通知</Button>
78
+ </Space>
79
+ </template>
80
+ ```
81
+
82
+ ### 通知类型
83
+
84
+ ```vue
85
+ <script setup lang="ts">
86
+ import 'x-next/style.css';
87
+ import { Button } from 'x-next';
88
+ import { Notification } from 'x-next';
89
+ type NotificationType = 'success' | 'info' | 'warning' | 'error' | 'strong';
90
+
91
+ const showTypedNotification = (type: NotificationType) => {
92
+ Notification[type]({
93
+ title: `${type} 通知`,
94
+ message: '不同类型会使用不同的状态图标和强调色',
95
+ });
96
+ };
97
+ </script>
98
+ <template>
99
+ <div class="demo-inline-group">
100
+ <Button @click="showTypedNotification('info')">Info</Button>
101
+ <Button status="success" @click="showTypedNotification('success')">Success</Button>
102
+ <Button status="warning" @click="showTypedNotification('warning')">Warning</Button>
103
+ <Button status="strong" @click="showTypedNotification('strong')">Strong</Button>
104
+ <Button status="danger" @click="showTypedNotification('error')">Error</Button>
105
+ </div>
106
+ </template>
107
+ ```
108
+
109
+ ### 位置
110
+
111
+ ```vue
112
+ <script setup lang="ts">
113
+ import 'x-next/style.css';
114
+ import { Button } from 'x-next';
115
+ import { Notification } from 'x-next';
116
+ type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
117
+
118
+ const showPositionNotification = (position: NotificationPosition) => {
119
+ Notification.info({
120
+ title: position,
121
+ message: '通知会从对应角落弹出',
122
+ position,
123
+ });
124
+ };
125
+ </script>
126
+ <template>
127
+ <div class="demo-inline-group">
128
+ <Button @click="showPositionNotification('top-right')">右上角</Button>
129
+ <Button @click="showPositionNotification('top-left')">左上角</Button>
130
+ <Button @click="showPositionNotification('bottom-right')">右下角</Button>
131
+ <Button @click="showPositionNotification('bottom-left')">左下角</Button>
132
+ </div>
133
+ </template>
134
+ ```
135
+
136
+ ### 手动关闭和清空
137
+
138
+ ```vue
139
+ <script setup lang="ts">
140
+ import 'x-next/style.css';
141
+ import { Space, Button } from 'x-next';
142
+ import { Notification } from 'x-next';
143
+
144
+ const showManualCloseNotification = () => {
145
+ const handler = Notification.warning({
146
+ title: '手动关闭',
147
+ message: '这条通知会在 2 秒后关闭',
148
+ duration: 0,
149
+ });
150
+ window.setTimeout(() => handler.close(), 2000);
151
+ };
152
+
153
+ const clearNotifications = () => Notification.clear();
154
+ </script>
155
+ <template>
156
+ <Space>
157
+ <Button type="primary" @click="showManualCloseNotification">2 秒后关闭</Button>
158
+ <Button @click="clearNotifications">清空通知</Button>
159
+ </Space>
160
+ </template>
161
+ ```
162
+
163
+ ### 更新通知
164
+
165
+ ```vue
166
+ <script setup lang="ts">
167
+ import 'x-next/style.css';
168
+ import { Space, Button } from 'x-next';
169
+ import { ref } from 'vue';
170
+ import { Notification } from 'x-next';
171
+
172
+ const progress = ref(1);
173
+
174
+ const showUpdatedNotification = () => {
175
+ Notification.info({
176
+ id: 'notification-update-demo',
177
+ title: '任务进度',
178
+ message: `当前进度 ${progress.value++}`,
179
+ duration: 3000,
180
+ });
181
+ };
182
+
183
+ const removeUpdatedNotification = () => {
184
+ Notification.remove('notification-update-demo');
185
+ };
186
+ </script>
187
+ <template>
188
+ <Space>
189
+ <Button @click="showUpdatedNotification">更新同一条</Button>
190
+ <Button @click="removeUpdatedNotification">移除指定通知</Button>
191
+ </Space>
192
+ </template>
193
+ ```
194
+
195
+ ### 自定义内容
196
+
197
+ ```vue
198
+ <script setup lang="ts">
199
+ import 'x-next/style.css';
200
+ import { Space, Button } from 'x-next';
201
+ import { h } from 'vue';
202
+ import { Notification } from 'x-next';
203
+
204
+ const showCustomIconNotification = () => {
205
+ Notification.info({
206
+ title: '自定义图标',
207
+ message: '可以传入 icon 渲染函数',
208
+ icon: () => h('span', { class: 'notification-custom-icon' }, '★'),
209
+ });
210
+ };
211
+
212
+ const showFooterNotification = () => {
213
+ const handler = Notification.warning({
214
+ title: '需要处理',
215
+ message: '通知底部可以承载业务操作',
216
+ duration: 0,
217
+ footer: () =>
218
+ h('div', { style: 'display:flex;gap:8px;justify-content:flex-end;' }, [
219
+ h('button', { onClick: () => handler.close() }, '稍后'),
220
+ h('button', { onClick: () => handler.close() }, '处理'),
221
+ ]),
222
+ });
223
+ };
224
+ </script>
225
+ <template>
226
+ <Space>
227
+ <Button @click="showCustomIconNotification">自定义图标</Button>
228
+ <Button @click="showFooterNotification">底部操作</Button>
229
+ </Space>
230
+ </template>
231
+ ```
232
+
233
+ ### 局部容器
234
+
235
+ ```vue
236
+ <script setup lang="ts">
237
+ import 'x-next/style.css';
238
+ import { Button } from 'x-next';
239
+ import { Notification } from 'x-next';
240
+
241
+ const showLocalNotification = () => {
242
+ Notification.success({
243
+ title: '局部通知',
244
+ message: '通知挂载到指定容器内',
245
+ renderTo: '#notification-local-container',
246
+ position: 'top-right',
247
+ duration: 4000,
248
+ });
249
+ };
250
+ </script>
251
+ <template>
252
+ <Button @click="showLocalNotification">显示到局部容器</Button>
253
+ <div id="notification-local-container" class="notification-local-container"></div>
254
+ </template>
255
+ ```
256
+
257
+ ### 组件形态与原生属性
258
+
259
+ 组件形态的 id、data-*、ARIA 和原生鼠标事件落到通知根节点;class/style 与结构样式合并。默认 role 为 alert,可以按业务语义设置为 status。点击关闭按钮会派发 close,需要父级决定移除节点。
260
+
261
+ 命令式 `Notification(options)` 只接受下表列出的选项,不会自动接收任意原生属性。局部 ConfigProvider 的注入也不会自动传入独立创建的命令式实例;需要局部主题时使用组件形态,或指定实际位于主题边界内的 renderTo 容器。
262
+
263
+ ```vue
264
+ <script setup lang="ts">
265
+ import 'x-next/style.css';
266
+ import { Button } from 'x-next';
267
+ import { ref } from 'vue';
268
+ import { NotificationComponent } from 'x-next';
269
+ const visible = ref(true);
270
+ const count = ref(0);
271
+ const nativeEvents = { mouseenter: () => { count.value++; } };
272
+ import type { HTMLAttributes } from 'vue';
273
+ const nativeAttrs1 = { "id": "inline-note", "data-testid": "note", "role": "status", "aria-label": "任务进度通知" } satisfies HTMLAttributes & { "data-testid"?: string };
274
+ </script>
275
+ <template>
276
+ <Button @click="visible = true">恢复组件通知</Button>
277
+ <NotificationComponent v-bind="nativeAttrs1" v-if="visible"
278
+ message="移动鼠标到通知上查看回调"
279
+ :duration="0" v-on="nativeEvents" @close="visible = false" />
280
+ <p role="status">鼠标进入 {{ count }} 次;通知{{ visible ? '显示' : '已关闭' }}</p>
281
+ </template>
282
+ ```
283
+
284
+ ### NotificationOptions
285
+
286
+ | 参数 | 说明 | 类型 | 默认值 |
287
+ | --- | --- | --- | --- |
288
+ | `id` | 通知唯一标识,相同 id 会更新已有通知 | `string \| number` | `-` |
289
+ | `title` | 通知标题 | `NotificationContent` | `-` |
290
+ | `message` | 通知内容 | `NotificationContent` | `-` |
291
+ | `content` | `message` 的别名 | `NotificationContent` | `-` |
292
+ | `type` | 通知类型 | `'success' \| 'strong' \| 'warning' \| 'error' \| 'info'` | `'info'` |
293
+ | `duration` | 自动关闭时间,单位毫秒,`0` 表示不自动关闭 | `number` | `3000` |
294
+ | `position` | 通知弹出位置 | `'top-right' \| 'top-left' \| 'bottom-right' \| 'bottom-left'` | `'top-right'` |
295
+ | `offset` | 与容器边缘的初始偏移 | `number` | `20` |
296
+ | `renderTo` | 挂载容器,找不到时回退到 body | `string \| HTMLElement` | `'body'` |
297
+ | `showClose` | 是否显示关闭按钮 | `boolean` | `true` |
298
+ | `closable` | `showClose` 的别名 | `boolean` | `true` |
299
+ | `showIcon` | 是否显示图标 | `boolean` | `true` |
300
+ | `icon` | 自定义图标 | `RenderFunction \| VNode` | `-` |
301
+ | `footer` | 自定义底部 | `RenderFunction \| VNode` | `-` |
302
+ | `closeIcon` | 自定义关闭图标 | `RenderFunction \| VNode` | `-` |
303
+ | `popupClass` | 自定义类名 | `string` | `-` |
304
+ | `class` | 自定义类名 | `string` | `-` |
305
+ | `style` | 自定义样式 | `CSSProperties` | `-` |
306
+ | `onClick` | 点击通知回调 | `() => void` | `-` |
307
+ | `onClose` | 关闭回调 | `(id?: string \| number) => void` | `-` |
308
+
309
+
310
+
311
+ 返回 [AI 索引](../index.md)。先查本页与 [本地 API](./notification-api.md);需要更深类型时查 [公开组件导航](../catalog.md),不默认上网查找本包用法。
@@ -0,0 +1,62 @@
1
+ <!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
2
+ # Pagination 完整公开 API
3
+
4
+ 适用版本:x-next@1.14.0;来源指纹:`014984639d816a2c7e25eb22690c586b0b2e8efba6846bec8a4e424db41a09e9`。
5
+
6
+ 从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
7
+
8
+ ## Pagination API
9
+
10
+ 公开声明:`dist/components/pagination/index.d.ts`。 类型中的 undefined 表示可省略;原始 prop 默认值不等于继承配置或服务默认值。
11
+
12
+ ### Props
13
+
14
+ | 名称 | 用途 | 公开类型 | 必填 | 声明默认值 |
15
+ | --- | --- | --- | --- | --- |
16
+ | total | 数据总数 | number | 是 | 未声明 |
17
+ | current | 当前页码 | undefined &#124; number | 否 | 未声明 |
18
+ | defaultCurrent | 默认页码,非受控模式 | undefined &#124; number | 否 | 1 |
19
+ | pageSize | 每页条数 | undefined &#124; number | 否 | 未声明 |
20
+ | defaultPageSize | 默认每页条数,非受控模式 | undefined &#124; number | 否 | 10 |
21
+ | disabled | 是否禁用 | undefined &#124; false &#124; true | 否 | false |
22
+ | hideOnSinglePage | 单页时是否隐藏 | undefined &#124; false &#124; true | 否 | false |
23
+ | simple | 是否为简单模式 | undefined &#124; false &#124; true | 否 | false |
24
+ | showTotal | 是否显示总数 | undefined &#124; false &#124; true | 否 | false |
25
+ | showMore | 是否显示更多按钮 | undefined &#124; false &#124; true | 否 | false |
26
+ | showJumper | 是否显示跳转输入 | undefined &#124; false &#124; true | 否 | false |
27
+ | showPageSize | 是否显示每页条数选择器 | undefined &#124; false &#124; true | 否 | false |
28
+ | pageSizeOptions | 正安全整数条数选项,过滤非法值并去重排序;并入当前值 | undefined &#124; number[] | 否 | 工厂函数(每个实例初始化;有效值见行为说明) |
29
+ | pageSizeProps | Select 附加配置,受分页维护的字段见使用说明 | undefined &#124; SelectProps | 否 | 未声明 |
30
+ | size | 分页尺寸 | undefined &#124; "mini" &#124; "small" &#124; "medium" &#124; "large" | 否 | 未声明 |
31
+ | pageItemStyle | 页码、步进和省略按钮的共有样式 | undefined &#124; CSSProperties | 否 | 未声明 |
32
+ | activePageItemStyle | 当前页码覆盖共有样式的部分 | undefined &#124; CSSProperties | 否 | 未声明 |
33
+ | baseSize | 折叠阈值的基础数,取整限制在 1–100 | undefined &#124; number | 否 | 6 |
34
+ | bufferSize | 当前页左右页码个数,取整限制在 0–100 | undefined &#124; number | 否 | 2 |
35
+ | autoAdjust | 改变每页条数或总页数时是否自动调整页码 | undefined &#124; false &#124; true | 否 | true |
36
+
37
+ ### Events
38
+
39
+ | 事件 | 用途 | 监听器签名(即事件参数) |
40
+ | --- | --- | --- |
41
+ | update:current | 当前页码变化时触发 | undefined &#124; (current: number) => any |
42
+ | update:pageSize | 每页条数变化时触发 | undefined &#124; (pageSize: number) => any |
43
+ | change | 页码改变时触发 | undefined &#124; (current: number) => any |
44
+ | pageSizeChange | 每页条数改变时触发 | undefined &#124; (pageSize: number) => any |
45
+
46
+ ### Slots
47
+
48
+ | 名称 | 用途 | 公开类型 |
49
+ | --- | --- | --- |
50
+ | page-item | 自定义页码按钮 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
51
+ | page-item-step | 自定义上一页/下一页按钮 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
52
+ | page-item-ellipsis | 自定义省略按钮 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
53
+ | total | 自定义总数内容 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
54
+ | jumper-prepend | 普通模式跳转输入前置内容 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
55
+ | jumper-append | 普通模式跳转输入后置内容 | 文档列出的实际插槽;公开类型未细化,作用域见场景用法 |
56
+
57
+ ### 实例方法
58
+
59
+ 没有检索到显式 expose 或 Options API methods 的公开方法;不把 setup 内部函数当成稳定实例 API。
60
+
61
+
62
+ 返回 [Pagination 用法](./pagination.md)。