diff --git a/docs/assets/guide/en/Developer_Ecology/react.md b/docs/assets/guide/en/Developer_Ecology/react.md index 05b5a9d2b..e73d901a3 100644 --- a/docs/assets/guide/en/Developer_Ecology/react.md +++ b/docs/assets/guide/en/Developer_Ecology/react.md @@ -176,6 +176,7 @@ return ( ); ``` + Grammatical label demo: [PivotTable demo](../../demo-react/grammatical-tag/pivot-table) [PivotChart demo](../../demo-react/grammatical-tag/pivot-chart) #### Components outside the table @@ -220,6 +221,8 @@ interface EventsProps { onResizeColumn?: EventCallback; onResizeColumnEnd?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionStart?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onFreezeClick?: EventCallback; onScroll?: EventCallback; @@ -290,4 +293,4 @@ import VChart from '@visactor/vchart'; register.chartModule('vchart', VChart); // ...... -``` \ No newline at end of file +``` diff --git a/docs/assets/guide/en/Developer_Ecology/vue.md b/docs/assets/guide/en/Developer_Ecology/vue.md index 0161bfe20..65fd3a466 100644 --- a/docs/assets/guide/en/Developer_Ecology/vue.md +++ b/docs/assets/guide/en/Developer_Ecology/vue.md @@ -229,6 +229,8 @@ interface EventsProps { onResizeColumn?: EventCallback; onResizeColumnEnd?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionStart?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onFreezeClick?: EventCallback; onScroll?: EventCallback; diff --git a/docs/assets/guide/zh/Developer_Ecology/react.md b/docs/assets/guide/zh/Developer_Ecology/react.md index cd2db953f..f0b821fb7 100644 --- a/docs/assets/guide/zh/Developer_Ecology/react.md +++ b/docs/assets/guide/zh/Developer_Ecology/react.md @@ -222,6 +222,8 @@ interface EventsProps { onResizeColumn?: EventCallback; onResizeColumnEnd?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionStart?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onFreezeClick?: EventCallback; onScroll?: EventCallback; @@ -283,7 +285,7 @@ function App() { ### register -在VTable中,图表、编辑器等组件需要通过resigister方法注册,才能正常使用;在React-VTable中,暴露了相应的register方法,可以直接使用。 +在 VTable 中,图表、编辑器等组件需要通过 resigister 方法注册,才能正常使用;在 React-VTable 中,暴露了相应的 register 方法,可以直接使用。 ```jsx import { register } from '@visactor/react-vtable'; @@ -292,4 +294,4 @@ import VChart from '@visactor/vchart'; register.chartModule('vchart', VChart); // ...... -``` \ No newline at end of file +``` diff --git a/docs/assets/guide/zh/Developer_Ecology/vue.md b/docs/assets/guide/zh/Developer_Ecology/vue.md index dd1bfe6ee..c89804007 100644 --- a/docs/assets/guide/zh/Developer_Ecology/vue.md +++ b/docs/assets/guide/zh/Developer_Ecology/vue.md @@ -229,6 +229,8 @@ interface EventsProps { onResizeColumn?: EventCallback; onResizeColumnEnd?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionStart?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onFreezeClick?: EventCallback; onScroll?: EventCallback; diff --git a/packages/react-vtable/src/eventsUtils.ts b/packages/react-vtable/src/eventsUtils.ts index 0577f6c74..0fa3c4ae0 100644 --- a/packages/react-vtable/src/eventsUtils.ts +++ b/packages/react-vtable/src/eventsUtils.ts @@ -35,6 +35,7 @@ export interface EventsProps { onResizeRowEnd?: EventCallback; onChangeHeaderPositionStart?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onAfterSort?: EventCallback; @@ -105,6 +106,7 @@ export const TABLE_EVENTS = { onResizeRowEnd: EVENT_TYPE.RESIZE_ROW_END, onChangeHeaderPositionStart: EVENT_TYPE.CHANGE_HEADER_POSITION_START, onChangeHeaderPosition: EVENT_TYPE.CHANGE_HEADER_POSITION, + onChangeHeaderPositionFail: EVENT_TYPE.CHANGE_HEADER_POSITION_FAIL, onSortClick: EVENT_TYPE.SORT_CLICK, onAfterSort: EVENT_TYPE.AFTER_SORT, diff --git a/packages/vue-vtable/src/eventsUtils.ts b/packages/vue-vtable/src/eventsUtils.ts index e4820885b..89b69ed07 100644 --- a/packages/vue-vtable/src/eventsUtils.ts +++ b/packages/vue-vtable/src/eventsUtils.ts @@ -26,6 +26,8 @@ export interface EventsProps { onResizeColumn?: EventCallback; onResizeColumnEnd?: EventCallback; onChangeHeaderPosition?: EventCallback; + onChangeHeaderPositionStart?: EventCallback; + onChangeHeaderPositionFail?: EventCallback; onSortClick?: EventCallback; onFreezeClick?: EventCallback; onScroll?: EventCallback; @@ -90,6 +92,8 @@ export const TABLE_EVENTS = { onResizeColumn: EVENT_TYPE.RESIZE_COLUMN, onResizeColumnEnd: EVENT_TYPE.RESIZE_COLUMN_END, onChangeHeaderPosition: EVENT_TYPE.CHANGE_HEADER_POSITION, + onChangeHeaderPositionStart: EVENT_TYPE.CHANGE_HEADER_POSITION_START, + onChangeHeaderPositionFail: EVENT_TYPE.CHANGE_HEADER_POSITION_FAIL, onSortClick: EVENT_TYPE.SORT_CLICK, onFreezeClick: EVENT_TYPE.FREEZE_CLICK, onScroll: EVENT_TYPE.SCROLL,