Skip to content

Commit

Permalink
docs: fix docs problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Nov 15, 2024
1 parent a828421 commit 9920e10
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"name": "sync-bnpm",
"summary": "Sync bnpm",
"description": "Sync bnpm",
"shellCommand": "bnpm sync @visactor/vtable && bnpm sync @visactor/vtable-editors && bnpm sync @visactor/react-vtable && bnpm sync @visactor/openinula-vtable && bnpm sync @visactor/vtable-export && bnpm sync @visactor/vtable-search && bnpm sync @visactor/vtable-gantt && bnpm sync @visactor/vue-vtable"
"shellCommand": "bnpm sync @visactor/vtable && bnpm sync @visactor/vtable-editors && bnpm sync @visactor/react-vtable && bnpm sync @visactor/openinula-vtable && bnpm sync @visactor/vtable-export && bnpm sync @visactor/vtable-search && bnpm sync @visactor/vtable-gantt && bnpm sync @visactor/vue-vtable && bnpm sync @visactor/vtable-calendar"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/calendar/calendar-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const unicColorPool = ['red', 'blue', 'green', 'yellow', 'purple', 'orange', 'pi
});
}

const calendar = new Calendar(document.getElementById(CONTAINER_ID), {
const calendar = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID), {
tableOptions: {
theme: {
headerStyle: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/calendar/calendar-custom-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const unicColorPool = ['red', 'blue', 'green', 'yellow', 'purple', 'orange', 'pi

const customEvents = [];
const container = document.getElementById(CONTAINER_ID);
const calendar = new Calendar(container, {
const calendar = new VTableCalendar.Calendar(container, {
tableOptions: {
theme: {
headerStyle: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/interaction/head-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const option = {
columns,
rowSeriesNumber: {}
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;

const highlightPlugin = new VTable.HeaderHighlightPlugin(tableInstance, {});
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/interaction/invert-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const option = {
columns,
theme: VTable.themes.DARK
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;

const highlightPlugin = new VTable.InvertHighlightPlugin(tableInstance, {});
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/calendar/calendar-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const unicColorPool = ['red', 'blue', 'green', 'yellow', 'purple', 'orange', 'pi
});
}

const calendar = new Calendar(document.getElementById(CONTAINER_ID), {
const calendar = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID), {
tableOptions: {
theme: {
headerStyle: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/calendar/calendar-custom-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const unicColorPool = ['red', 'blue', 'green', 'yellow', 'purple', 'orange', 'pi

const customEvents = [];
const container = document.getElementById(CONTAINER_ID);
const calendar = new Calendar(container, {
const calendar = new VTableCalendar.Calendar(container, {
tableOptions: {
theme: {
headerStyle: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/interaction/head-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const option = {
columns,
rowSeriesNumber: {}
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;

const highlightPlugin = new VTable.HeaderHighlightPlugin(tableInstance, {});
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/interaction/invert-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const option = {
columns,
theme: VTable.themes.DARK
};
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option);
window['tableInstance'] = tableInstance;

const highlightPlugin = new VTable.InvertHighlightPlugin(tableInstance, {});
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/guide/en/calendar/Getting_Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Before drawing, we need to prepare a DOM container with height and width for Cal
Next, we create a `Calendar` instance and pass in the calendar configuration items:

```javascript livedemo template=vtable
const calendarInstance = new Calendar(document.getElementById(CONTAINER_ID));
const calendarInstance = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID));
window['calendarInstance'] = calendarInstance;
```

Expand Down
4 changes: 2 additions & 2 deletions docs/assets/guide/en/calendar/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ When creating a calendar, you can pass in the configuration corresponding to the
```js
import { Calendar } from '@visactor/vtable-calendar';

const calendar = new Calendar(domContainer, options);
const calendar = new VTableCalendar.Calendar(domContainer, options);
```

Among them, option supports the following attributes
Expand All @@ -32,7 +32,7 @@ Among them, option supports the following attributes
The properties configured in `tableOptions` can be referred to [VTable configuration](../../option/ListTable) for further configuration of the table. For example, if you want Saturday to be displayed in blue and Sunday in red in the calendar title, you can use the following configuration:

```javascript livedemo template=vtable
const calendarInstance = new Calendar(document.getElementById(CONTAINER_ID), {
const calendarInstance = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID), {
tableOptions: {
theme: {
headerStyle: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/guide/zh/calendar/Getting_Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const calendarInstance = new Calendar(domContainer, option);
接下来,我们创建一个 `Calendar` 实例,传入日历图配置项:

```javascript livedemo template=vtable
const calendarInstance = new Calendar(document.getElementById(CONTAINER_ID));
const calendarInstance = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID));
window['calendarInstance'] = calendarInstance;
```

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/guide/zh/calendar/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const calendar = new Calendar(domContainer, options);
`tableOptions` 配置的属性可以参考 [VTable的配置](../../option/ListTable),用于表格的进一步配置。例如,如果希望日历图标题中周六显示为蓝色,周日显示为红色,可以使用以下配置:

```javascript livedemo template=vtable
const calendarInstance = new Calendar(document.getElementById(CONTAINER_ID), {
const calendarInstance = new VTableCalendar.Calendar(document.getElementById(CONTAINER_ID), {
tableOptions: {
theme: {
headerStyle: {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Inula from 'openinula';
import * as VTable from '@visactor/vtable';
import * as VRender from '@visactor/vtable/es/vrender';
import * as VTableGantt from '@visactor/vtable-gantt';
import { Calendar } from '@visactor/vtable-calendar';
import * as VTableCalendar from '@visactor/vtable-calendar';
import * as VChart from '@visactor/vchart';
import * as VTableEditors from '@visactor/vtable-editors';
import { downloadCsv, exportVTableToCsv, downloadExcel, exportVTableToExcel } from '@visactor/vtable-export';
Expand All @@ -26,7 +26,7 @@ import { createApp, ref, onMounted, h } from 'vue';
(window as any).VTable = VTable;
(window as any).VRender = VRender;
(window as any).VTableGantt = VTableGantt;
(window as any).Calendar = Calendar;
(window as any).VTableCalendar = VTableCalendar;
(window as any).VTable_editors = VTableEditors;
(window as any).VChart = VChart.VChart;

Expand Down

0 comments on commit 9920e10

Please sign in to comment.