x-next 1.11.1 → 1.12.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/AI_USAGE/catalog.md +1 -1
- package/AI_USAGE/components/alert.md +1 -1
- package/AI_USAGE/components/bar-chart.md +1 -1
- package/AI_USAGE/components/button.md +1 -1
- package/AI_USAGE/components/checkbox.md +1 -1
- package/AI_USAGE/components/color-picker.md +1 -1
- package/AI_USAGE/components/config-provider.md +1 -1
- package/AI_USAGE/components/date-picker.md +1 -1
- package/AI_USAGE/components/dialog.md +1 -1
- package/AI_USAGE/components/dropdown.md +1 -1
- package/AI_USAGE/components/empty.md +1 -1
- package/AI_USAGE/components/input.md +1 -1
- package/AI_USAGE/components/line-chart.md +1 -1
- package/AI_USAGE/components/message-box.md +1 -1
- package/AI_USAGE/components/message.md +1 -1
- package/AI_USAGE/components/notification.md +1 -1
- package/AI_USAGE/components/pagination.md +1 -1
- package/AI_USAGE/components/pie-chart.md +1 -1
- package/AI_USAGE/components/popconfirm.md +1 -1
- package/AI_USAGE/components/popover.md +1 -1
- package/AI_USAGE/components/progress.md +1 -1
- package/AI_USAGE/components/radio.md +1 -1
- package/AI_USAGE/components/rate.md +1 -1
- package/AI_USAGE/components/select.md +1 -1
- package/AI_USAGE/components/slider.md +1 -1
- package/AI_USAGE/components/steps.md +1 -1
- package/AI_USAGE/components/switch.md +1 -1
- package/AI_USAGE/components/tabs.md +1 -1
- package/AI_USAGE/components/textarea.md +1 -1
- package/AI_USAGE/components/time-picker.md +1 -1
- package/AI_USAGE/components/upload.md +1 -1
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +1 -1
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +2 -2
- package/CHANGELOG.md +18 -0
- package/dist/components/network/Network.vue.d.ts +1 -1
- package/dist/components/network/index.d.ts +3 -3
- package/dist/components/table/Table.d.ts +11 -0
- package/dist/components/table/context.d.ts +5 -0
- package/dist/components/table/dom-listeners.d.ts +23 -0
- package/dist/components/table/hooks/use-column-resize.d.ts +2 -1
- package/dist/components/table/hooks/use-drag.d.ts +6 -3
- package/dist/components/table/hooks/use-keyboard-navigation.d.ts +27 -0
- package/dist/components/table/hooks/use-sorter.d.ts +3 -1
- package/dist/components/table/index.d.ts +15 -0
- package/dist/components/table/interface.d.ts +9 -2
- package/dist/components/table/locale.d.ts +8 -7
- package/dist/components/table/table-operation-td.d.ts +34 -0
- package/dist/components/table/table-td.d.ts +36 -2
- package/dist/components/table/table-th.d.ts +34 -0
- package/dist/components/table/table-tr.d.ts +34 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +1 -1
- package/dist/components/trend-chart/index.d.ts +3 -3
- package/dist/components/upload/Upload.d.ts +1 -1
- package/dist/components/upload/index.d.ts +3 -3
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
- package/dist/es/_container/resize-observer-v2.js +1 -1
- package/dist/es/_container/resize-observer.js +1 -1
- package/dist/es/_hooks/use-resize-observer.js +1 -1
- package/dist/es/_virtual/advancedFormat.js +1 -1
- package/dist/es/_virtual/customParseFormat.js +1 -1
- package/dist/es/_virtual/dayjs.min.js +1 -1
- package/dist/es/_virtual/isBetween.js +1 -1
- package/dist/es/_virtual/quarterOfYear.js +1 -1
- package/dist/es/_virtual/weekOfYear.js +1 -1
- package/dist/es/_virtual/weekYear.js +1 -1
- package/dist/es/_virtual/zh-cn.js +1 -1
- package/dist/es/components/draggable/useDraggable.js +1 -1
- package/dist/es/components/form/Form.vue2.js +1 -1
- package/dist/es/components/form/FormItem.vue2.js +1 -1
- package/dist/es/components/form-input-number/InputNumber.js +1 -1
- package/dist/es/components/form-slider/Slider.vue2.js +1 -1
- package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
- package/dist/es/components/form-slider/utils.js +1 -1
- package/dist/es/components/menu/MenuItem.js +1 -1
- package/dist/es/components/menu/overflow-wrap.js +1 -1
- package/dist/es/components/progress/circle.vue2.js +1 -1
- package/dist/es/components/progress/line.vue2.js +1 -1
- package/dist/es/components/progress/steps.vue2.js +1 -1
- package/dist/es/components/rate/Rate.js +1 -1
- package/dist/es/components/table/Table.js +947 -713
- package/dist/es/components/table/dom-listeners.js +23 -0
- package/dist/es/components/table/hooks/use-column-resize.js +27 -18
- package/dist/es/components/table/hooks/use-column-sorter.js +22 -29
- package/dist/es/components/table/hooks/use-drag.js +23 -20
- package/dist/es/components/table/hooks/use-filter.js +43 -43
- package/dist/es/components/table/hooks/use-keyboard-navigation.js +69 -0
- package/dist/es/components/table/hooks/use-row-selection.js +33 -29
- package/dist/es/components/table/hooks/use-sorter.js +86 -38
- package/dist/es/components/table/hooks/use-span.js +28 -35
- package/dist/es/components/table/locale.js +27 -10
- package/dist/es/components/table/table-col-group.vue2.js +9 -9
- package/dist/es/components/table/table-operation-td.js +72 -51
- package/dist/es/components/table/table-operation-th.js +41 -34
- package/dist/es/components/table/table-td.js +100 -77
- package/dist/es/components/table/table-th.js +221 -188
- package/dist/es/components/table/table-tr.js +11 -8
- package/dist/es/components/table/utils.js +104 -94
- package/dist/es/components/virtual-list-v2/hooks/use-size.js +47 -41
- package/dist/es/components/virtual-list-v2/virtual-list-item.js +29 -16
- package/dist/es/locale/en-US.js +7 -1
- package/dist/es/locale/index.js +3 -3
- package/dist/es/locale/zh-CN.js +7 -1
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/locale/interface.d.ts +9 -0
- package/dist/style/table.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
package/AI_USAGE/catalog.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
从当前构建的根公共声明生成,包含 100 个具名组件/服务导出(含子组件和别名,不等于组件族数量)。本页导航不宣称每项有精选示例。运行时仅从 `x-next` 导入,不深导入这些声明路径;未列出的 hooks、指令和类型继续查 [公共入口声明](../dist/index.d.ts)。
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Alert`;模型:v-model:visible;已核对事件:close。
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`BarChart`;模型:无;已核对事件:barClick、legendChange。
|
|
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 AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Button`;模型:无;已核对事件:click。
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Checkbox`;模型:v-model;已核对事件:change。
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`ColorPicker`;模型:v-model、v-model:show;已核对事件:change、showChange、clear、confirm。
|
|
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.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`ConfigProvider`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# DatePicker AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`DatePicker`;模型:v-model、v-model:popup-visible;已核对事件:change。
|
|
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
|
# Dialog AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`DialogComponent, Dialog`;模型:v-model;已核对事件:close、closed。
|
|
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
|
# Dropdown AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Dropdown`;模型:v-model:popup-visible;已核对事件:select、popupVisibleChange。
|
|
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
|
# Empty AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Empty`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# Input AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Input`;模型:v-model;已核对事件:input、change、clear。
|
|
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
|
# LineChart AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`LineChart`;模型:无;已核对事件:lineClick、legendChange。
|
|
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
|
# MessageBox AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`MessageBox`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# Message AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Message, MessageComponent`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# Notification AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Notification, NotificationComponent`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# Pagination AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Pagination`;模型:v-model:current、v-model:page-size;已核对事件:change、pageSizeChange。
|
|
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
|
# PieChart AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`PieChart`;模型:无;已核对事件:itemClick、legendChange。
|
|
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
|
# Popconfirm AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Popconfirm`;模型:v-model;已核对事件:ok、cancel。
|
|
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
|
# Popover AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Popover`;模型:v-model:popup-visible;已核对事件:popupVisibleChange。
|
|
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
|
# Progress AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Progress`;模型:无;已核对事件:未在精选映射登记事件;其他 API 见下方用法。
|
|
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
|
# Radio AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Radio`;模型:v-model;已核对事件:change。
|
|
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
|
# Rate AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Rate`;模型:v-model;已核对事件:change。
|
|
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
|
# Select AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Select`;模型:v-model、v-model:popup-visible;已核对事件:change、popupVisibleChange。
|
|
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
|
# Slider AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Slider`;模型:v-model;已核对事件:change。
|
|
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
|
# Steps AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Steps`;模型:v-model:current;已核对事件:change。
|
|
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
|
# Switch AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Switch`;模型:v-model;已核对事件:change。
|
|
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
|
# Tabs AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Tabs`;模型:v-model:active-key;已核对事件:change。
|
|
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
|
# Textarea AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Textarea`;模型:v-model;已核对事件:input、change、clear。
|
|
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
|
# TimePicker AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`TimePicker`;模型:v-model、v-model:popup-visible;已核对事件:change。
|
|
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
|
# Upload AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Upload`;模型:v-model:file-list;已核对事件:change、success、error、remove、exceed、reject、progress。
|
|
7
7
|
|
package/AI_USAGE/core.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# x-next AI 通用接入
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
7
|
npm install x-next
|
package/AI_USAGE/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# x-next AI 按需入口
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
AI 专用资料,与文档站独立分发。先读 [core.md](./core.md),再只读本任务需要的组件页;每页提供真实约束、公共导出、模型/事件/样式和完整 Vue SFC。代码与同版本完整手册同源并严格检查;本索引不塞入完整示例。
|
|
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
|
# 按需样式与表单接入
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.
|
|
4
|
+
适用版本:x-next@1.12.0;来源指纹:`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md),相关组件规则:[config-provider](../components/config-provider.md)、[input](../components/input.md)、[textarea](../components/textarea.md)、[select](../components/select.md)、[checkbox](../components/checkbox.md)。
|
|
7
7
|
|
package/AI_USAGE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/manifest.js. -->
|
|
2
2
|
# x-next AI 使用手册
|
|
3
3
|
|
|
4
|
-
适用版本:**x-next@1.
|
|
4
|
+
适用版本:**x-next@1.12.0**。Vue:`^3.5.0`;Node:`>=20.19.0`。
|
|
5
5
|
|
|
6
|
-
来源指纹(精选示例、映射、样式依赖、版本与公开类型声明):`
|
|
6
|
+
来源指纹(精选示例、映射、样式依赖、版本与公开类型声明):`9f9adf42b42dc1e551f500aabdcb7fb07b69a93ea44ff3dc1d16dab1a4c85843`。
|
|
7
7
|
|
|
8
8
|
本手册覆盖 30 个常用组件与服务;包内还有更多导出可用,只是未在此逐个展开。按业务需要选择即可,不必全部使用。
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [1.12.0] - 2026-10-07
|
|
6
|
+
|
|
7
|
+
### 新增
|
|
8
|
+
|
|
9
|
+
- Table 支持按 `sortable.sortPriority` 配置多列排序,并在 `change` 的 `extra.sorters` 中报告全部条件;未声明优先级的列继续使用单列排序。
|
|
10
|
+
- Table 新增可选 `keyboardNavigation`,支持方向键、Home / End 和虚拟窗口导航;拖拽手柄支持 Alt + 方向键移动及触屏拖动。
|
|
11
|
+
- 虚拟列表持续测量动态行高,异步详情变化后自动更新滚动范围;补齐 Table 排序、键盘、动态高度与组合场景 live demo 和完整 SFC。
|
|
12
|
+
|
|
13
|
+
### 修复
|
|
14
|
+
|
|
15
|
+
- Table 默认加载动画统一为标准主题色圆环,默认主题下为蓝色;保留对象形式的 Spin 自定义配置,并提供可切换加载态的文档示例。
|
|
16
|
+
- Table 默认展开 / 收起图标统一为标准 Plus / Minus;修复筛选、排序、分页拖拽、树选择、懒加载、合并单元格及受控状态的审查问题。
|
|
17
|
+
- 修复固定列和多层表头对齐、吸顶、虚拟滚动、总结行、选中背景与数字滚动高度;补齐内部 DOM 事件类型与无障碍交互。
|
|
18
|
+
|
|
19
|
+
### 工程与验证
|
|
20
|
+
|
|
21
|
+
- 补充 Table 与动态虚拟行高回归,更新审查记录;随版本重新生成并校验 AI 手册。
|
|
22
|
+
|
|
5
23
|
## [1.11.1] - 2026-10-07
|
|
6
24
|
|
|
7
25
|
### 修复
|
|
@@ -168,11 +168,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
168
168
|
onProbe?: ((status: NetworkStatus) => any) | undefined;
|
|
169
169
|
}>, {
|
|
170
170
|
size: NetworkSize;
|
|
171
|
-
ariaLive: "off" | "polite" | "assertive";
|
|
172
171
|
showTooltip: boolean;
|
|
173
172
|
showMetrics: boolean;
|
|
174
173
|
signalStrengthColor: [string, string];
|
|
175
174
|
statusColors: Partial<Record<NetworkQuality, string>>;
|
|
176
175
|
timeout: number;
|
|
176
|
+
ariaLive: "off" | "polite" | "assertive";
|
|
177
177
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
178
178
|
export default _default;
|
|
@@ -68,12 +68,12 @@ export declare const Network: {
|
|
|
68
68
|
probe: (status: import('./utils').NetworkStatus) => true;
|
|
69
69
|
}, import('vue').PublicProps, {
|
|
70
70
|
size: import('./props').NetworkSize;
|
|
71
|
-
ariaLive: "off" | "polite" | "assertive";
|
|
72
71
|
showTooltip: boolean;
|
|
73
72
|
showMetrics: boolean;
|
|
74
73
|
signalStrengthColor: [string, string];
|
|
75
74
|
statusColors: Partial<Record<import('./utils').NetworkQuality, string>>;
|
|
76
75
|
timeout: number;
|
|
76
|
+
ariaLive: "off" | "polite" | "assertive";
|
|
77
77
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
78
78
|
P: {};
|
|
79
79
|
B: {};
|
|
@@ -145,12 +145,12 @@ export declare const Network: {
|
|
|
145
145
|
refresh: () => Promise<import('./utils').NetworkStatus>;
|
|
146
146
|
}, {}, {}, {}, {
|
|
147
147
|
size: import('./props').NetworkSize;
|
|
148
|
-
ariaLive: "off" | "polite" | "assertive";
|
|
149
148
|
showTooltip: boolean;
|
|
150
149
|
showMetrics: boolean;
|
|
151
150
|
signalStrengthColor: [string, string];
|
|
152
151
|
statusColors: Partial<Record<import('./utils').NetworkQuality, string>>;
|
|
153
152
|
timeout: number;
|
|
153
|
+
ariaLive: "off" | "polite" | "assertive";
|
|
154
154
|
}>;
|
|
155
155
|
__isFragment?: never;
|
|
156
156
|
__isTeleport?: never;
|
|
@@ -224,12 +224,12 @@ export declare const Network: {
|
|
|
224
224
|
probe: (status: import('./utils').NetworkStatus) => true;
|
|
225
225
|
}, string, {
|
|
226
226
|
size: import('./props').NetworkSize;
|
|
227
|
-
ariaLive: "off" | "polite" | "assertive";
|
|
228
227
|
showTooltip: boolean;
|
|
229
228
|
showMetrics: boolean;
|
|
230
229
|
signalStrengthColor: [string, string];
|
|
231
230
|
statusColors: Partial<Record<import('./utils').NetworkQuality, string>>;
|
|
232
231
|
timeout: number;
|
|
232
|
+
ariaLive: "off" | "polite" | "assertive";
|
|
233
233
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
234
234
|
install(app: import('vue').App): void;
|
|
235
235
|
};
|
|
@@ -14,6 +14,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
type: PropType<TableColumnData[]>;
|
|
15
15
|
default: () => never[];
|
|
16
16
|
};
|
|
17
|
+
/** @zh 启用表体单元格方向键、Home / End 导航,保留原生 table 语义。 */
|
|
18
|
+
keyboardNavigation: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
17
22
|
/**
|
|
18
23
|
* @zh 表格的数据
|
|
19
24
|
* @en Table data
|
|
@@ -560,6 +565,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
560
565
|
type: PropType<TableColumnData[]>;
|
|
561
566
|
default: () => never[];
|
|
562
567
|
};
|
|
568
|
+
/** @zh 启用表体单元格方向键、Home / End 导航,保留原生 table 语义。 */
|
|
569
|
+
keyboardNavigation: {
|
|
570
|
+
type: BooleanConstructor;
|
|
571
|
+
default: boolean;
|
|
572
|
+
};
|
|
563
573
|
/**
|
|
564
574
|
* @zh 表格的数据
|
|
565
575
|
* @en Table data
|
|
@@ -911,6 +921,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
911
921
|
defaultExpandAllRows: boolean;
|
|
912
922
|
filterIconAlignLeft: boolean;
|
|
913
923
|
indentSize: number;
|
|
924
|
+
keyboardNavigation: boolean;
|
|
914
925
|
stripe: boolean;
|
|
915
926
|
tableLayoutFixed: boolean;
|
|
916
927
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
@@ -4,14 +4,18 @@ import { Filters, Sorter, TableColumnData, TableData, TableDataWithRaw } from '.
|
|
|
4
4
|
export interface TableContext {
|
|
5
5
|
loadMore?: (record: TableData, done: (children?: TableData[]) => void) => void;
|
|
6
6
|
addLazyLoadData: (children: TableData[] | undefined, record: TableDataWithRaw) => void;
|
|
7
|
+
loadChildren: (record: TableDataWithRaw) => Promise<TableData[] | undefined>;
|
|
7
8
|
slots: Slots;
|
|
8
9
|
sorter: Sorter | undefined;
|
|
10
|
+
sorters: Sorter[];
|
|
9
11
|
currentAllEnabledRowKeys: BaseType[];
|
|
10
12
|
currentSelectedRowKeys: BaseType[];
|
|
13
|
+
expandedRowKeys: BaseType[];
|
|
11
14
|
checkStrictly: boolean;
|
|
12
15
|
filters: Filters;
|
|
13
16
|
filterIconAlignLeft: boolean;
|
|
14
17
|
resizingColumn: string;
|
|
18
|
+
selectionName: string;
|
|
15
19
|
addColumn: (id: number, column: TableColumnData) => void;
|
|
16
20
|
removeColumn: (id: number) => void;
|
|
17
21
|
onSelectAll: (checked: boolean) => void;
|
|
@@ -20,6 +24,7 @@ export interface TableContext {
|
|
|
20
24
|
onSorterChange: (dataIndex: string, direction: 'ascend' | 'descend' | '', ev: Event) => void;
|
|
21
25
|
onFilterChange: (dataIndex: string, filteredValues: string[], ev: Event) => void;
|
|
22
26
|
onThMouseDown: (dataIndex: string, ev: MouseEvent) => void;
|
|
27
|
+
onThKeyDown: (dataIndex: string, ev: KeyboardEvent) => void;
|
|
23
28
|
}
|
|
24
29
|
export interface TableColumnContext {
|
|
25
30
|
addChild: (id: number, column: TableColumnData) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const tableDomListeners: {
|
|
3
|
+
tabindex: (StringConstructor | NumberConstructor)[];
|
|
4
|
+
onClick: PropType<(event: MouseEvent) => void>;
|
|
5
|
+
onDblclick: PropType<(event: MouseEvent) => void>;
|
|
6
|
+
onContextmenu: PropType<(event: MouseEvent) => void>;
|
|
7
|
+
onMouseenter: PropType<(event: MouseEvent) => void>;
|
|
8
|
+
onMouseleave: PropType<(event: MouseEvent) => void>;
|
|
9
|
+
onDragstart: PropType<(event: DragEvent) => void>;
|
|
10
|
+
onDragend: PropType<(event: DragEvent) => void>;
|
|
11
|
+
onDragenter: PropType<(event: DragEvent) => void>;
|
|
12
|
+
onDragover: PropType<(event: DragEvent) => void>;
|
|
13
|
+
onDrop: PropType<(event: DragEvent) => void>;
|
|
14
|
+
onKeydown: PropType<(event: KeyboardEvent) => void>;
|
|
15
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
16
|
+
onPointerdown: PropType<(event: PointerEvent) => void>;
|
|
17
|
+
onPointermove: PropType<(event: PointerEvent) => void>;
|
|
18
|
+
onPointerup: PropType<(event: PointerEvent) => void>;
|
|
19
|
+
onPointercancel: PropType<(event: PointerEvent) => void>;
|
|
20
|
+
};
|
|
21
|
+
export declare const getTableDomListeners: (props: Record<string, unknown>) => {
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
@@ -2,9 +2,10 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { EmitFn2 } from '../../../_hooks/_types';
|
|
3
3
|
export declare const useColumnResize: (thRefs: Ref<Record<string, HTMLElement>>, emit: EmitFn2<{
|
|
4
4
|
columnResize: (dataIndex: string, width: number) => true;
|
|
5
|
-
}
|
|
5
|
+
}>, getMinWidth?: (dataIndex: string) => number) => {
|
|
6
6
|
resizingColumn: Ref<string, string>;
|
|
7
7
|
columnWidth: Record<string, number>;
|
|
8
8
|
handleThMouseDown: (dataIndex: string, ev: MouseEvent) => void;
|
|
9
9
|
handleThMouseUp: () => void;
|
|
10
|
+
handleThKeyDown: (dataIndex: string, ev: KeyboardEvent) => void;
|
|
10
11
|
};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { TableDraggable } from '../interface';
|
|
3
|
+
import { BaseType } from '../../../_hooks/_types';
|
|
3
4
|
export declare const useDrag: (draggable: Ref<TableDraggable | undefined>) => {
|
|
5
|
+
beginDrag: (sourceKey: BaseType, sourcePath: number[], data: Record<string, unknown>) => void;
|
|
6
|
+
clearDragState: () => void;
|
|
4
7
|
dragType: import('vue').ComputedRef<"row" | "handle" | undefined>;
|
|
5
8
|
dragState: {
|
|
6
9
|
dragging: boolean;
|
|
7
|
-
sourceKey:
|
|
10
|
+
sourceKey: BaseType;
|
|
8
11
|
sourcePath: number[];
|
|
9
12
|
targetPath: number[];
|
|
10
13
|
data: Record<string, unknown>;
|
|
11
14
|
};
|
|
12
|
-
handleDragStart: (ev: DragEvent, sourceKey:
|
|
15
|
+
handleDragStart: (ev: DragEvent, sourceKey: BaseType, sourcePath: number[], data: Record<string, unknown>) => void;
|
|
13
16
|
handleDragEnter: (ev: DragEvent, targetPath: number[]) => void;
|
|
14
17
|
handleDragover: (ev: DragEvent) => void;
|
|
15
|
-
handleDragEnd: (
|
|
18
|
+
handleDragEnd: (_ev: DragEvent) => void;
|
|
16
19
|
handleDrop: (ev: DragEvent) => void;
|
|
17
20
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { BaseType } from '../../../_hooks/_types';
|
|
3
|
+
import { TableDataWithRaw } from '../interface';
|
|
4
|
+
type Row = {
|
|
5
|
+
record: TableDataWithRaw;
|
|
6
|
+
detail?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** Optional navigation of native table cells. Embedded controls keep their own keys. */
|
|
9
|
+
export declare const useKeyboardNavigation: ({ enabled, rows, root, scrollToRow, mountedKeys, }: {
|
|
10
|
+
enabled: Ref<boolean>;
|
|
11
|
+
rows: Ref<Row[]>;
|
|
12
|
+
root: Ref<HTMLElement | undefined>;
|
|
13
|
+
scrollToRow: (index: number) => void;
|
|
14
|
+
mountedKeys?: Ref<BaseType[] | undefined>;
|
|
15
|
+
}) => {
|
|
16
|
+
getCellProps: (key: BaseType, column: number, firstColumn: number) => {
|
|
17
|
+
'data-x-table-cell-index'?: undefined;
|
|
18
|
+
tabindex?: undefined;
|
|
19
|
+
onFocus?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
'data-x-table-cell-index': number;
|
|
22
|
+
tabindex: number;
|
|
23
|
+
onFocus: (ev: FocusEvent) => void;
|
|
24
|
+
};
|
|
25
|
+
handleCellKeydown: (key: BaseType, column: number, ev: KeyboardEvent) => Promise<void>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -11,7 +11,9 @@ export declare const useSorter: ({ columns, onSorterChange, }: {
|
|
|
11
11
|
field: string;
|
|
12
12
|
direction: "ascend" | "descend";
|
|
13
13
|
} | undefined>;
|
|
14
|
-
computedSorter: import('vue').ComputedRef<Sorter
|
|
14
|
+
computedSorter: import('vue').ComputedRef<Sorter>;
|
|
15
|
+
computedSorters: import('vue').ComputedRef<Sorter[]>;
|
|
16
|
+
setSorter: (field: string, direction: "ascend" | "descend" | "") => void;
|
|
15
17
|
resetSorters: () => void;
|
|
16
18
|
clearSorters: () => void;
|
|
17
19
|
};
|