Skip to content

Commit

Permalink
Merge pull request #2539 from VisActor/release/1.8.0
Browse files Browse the repository at this point in the history
[Auto release] release 1.8.0
  • Loading branch information
fangsmile authored Sep 29, 2024
2 parents a45e1fd + b7c2a92 commit b167f20
Show file tree
Hide file tree
Showing 136 changed files with 12,253 additions and 300 deletions.
339 changes: 325 additions & 14 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.7.9","mainProject":"@visactor/vtable","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.8.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
20 changes: 20 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# v1.7.9

2024-09-28


**🐛 Bug fix**

- **@visactor/vtable**: fix estimate position in updateAutoRow() [#2494](https://github.com/VisActor/VTable/issues/2494)
- **@visactor/vtable**: fix drag check state update [#2518](https://github.com/VisActor/VTable/issues/2518)
- **@visactor/vtable**: fix group cell in vtable-export [#2487](https://github.com/VisActor/VTable/issues/2487)
- **@visactor/vtable**: fix react component update problem when resize column

**📖 Site / documentation update**

- **@visactor/vtable**: add functionalIconsStyle on theme [#1308](https://github.com/VisActor/VTable/issues/1308)



[more detail about v1.7.9](https://github.com/VisActor/VTable/releases/tag/v1.7.9)

# v1.7.8

2024-09-24
Expand Down
20 changes: 20 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# v1.7.9

2024-09-28


**🐛 功能修复**

- **@visactor/vtable**: fix estimate position in updateAutoRow() [#2494](https://github.com/VisActor/VTable/issues/2494)
- **@visactor/vtable**: fix drag check state update [#2518](https://github.com/VisActor/VTable/issues/2518)
- **@visactor/vtable**: fix group cell in vtable-export [#2487](https://github.com/VisActor/VTable/issues/2487)
- **@visactor/vtable**: fix react component update problem when resize column

**📖 文档更新**

- **@visactor/vtable**: add functionalIconsStyle on theme [#1308](https://github.com/VisActor/VTable/issues/1308)



[更多详情请查看 v1.7.9](https://github.com/VisActor/VTable/releases/tag/v1.7.9)

# v1.7.8

2024-09-24
Expand Down
265 changes: 265 additions & 0 deletions docs/assets/demo-vue/en/compilation/list-table-integrated-chart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
---
category: examples
group: compilation
title: Basic Table Integrated with Charts
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-chart.png
order: 1-1
link: '../guide/cell_type/chart'
option: ListTable-columns-chart#cellType
---

# Basic Table Integrated with Charts

Integrate the vchart library into the table to enrich visualization forms and enhance multi-chart rendering performance. This example references the bar progress chart from vchart.

## Code Demonstration

```javascript livedemo template=vtable-vue
const app = createApp({
template: `
<ListTable :options="tableOptions" ref="pivotChartRef"/>
`,
setup() {
const pivotChartRef = ref(null);
const tableOptions = ref({});

const records = [
{
projectName: 'Project No.1',
startTime: '2023/5/1',
endTime: '2023/5/10',
estimateDays: 10,
goal: 0.6,
progress: [
{
value: 0.5,
label: '50%',
goal: 0.6
}
],
master: 'Julin'
},
{
projectName: 'Project No.2',
startTime: '2023/5/1',
endTime: '2023/5/5',
estimateDays: 5,
goal: 0.5,
progress: [
{
value: 0.5,
label: '50%',
goal: 0.5
}
],
master: 'Jack'
},
{
projectName: 'Project No.3',
startTime: '2023/5/7',
endTime: '2023/5/8',
estimateDays: 3,
goal: 0.2,
progress: [
{
value: 0.3,
label: '30%',
goal: 0.2
}
],
master: 'Mary'
},
{
projectName: 'Project No.4',
startTime: '2023/5/11',
endTime: '2023/5/12',
estimateDays: 2,
goal: 0.8,
progress: [
{
value: 0.9,
label: '90%',
goal: 0.8
}
],
master: 'Porry'
},
{
projectName: 'Project No.5',
startTime: '2023/5/0',
endTime: '2023/5/10',
estimateDays: 2,
goal: 1,
progress: [
{
value: 0.8,
label: '80%',
goal: 1
}
],
master: 'Sheery'
}
];

const columns = [
{
field: 'projectName',
title: 'Project Name',
width: 'auto',
style: {
color: '#ff689d',
fontWeight: 'bold'
}
},
{
field: 'progress',
title: 'Schedule',
width: 300,
cellType: 'chart',
chartModule: 'vchart',
style: {
padding: 1
},
chartSpec: {
type: 'linearProgress',
progress: {
style: {
fill: '#32a645',
lineCap: ''
}
},
data: {
id: 'id0'
},
direction: 'horizontal',
xField: 'value',
yField: 'label',
seriesField: 'type',
cornerRadius: 20,
bandWidth: 12,
padding: 10,
axes: [
{
orient: 'right',
type: 'band',
domainLine: { visible: false },
tick: { visible: false },
label: {
formatMethod: val => val,
style: {
fontSize: 14,
fontWeight: 'bold',
fill: '#32a645'
}
},
maxWidth: '60%' // Configure the maximum space for the axis
},
{
orient: 'bottom',
label: { visible: true, inside: true },
type: 'linear',
visible: false,
grid: {
visible: false
}
}
],
extensionMark: [
{
type: 'rule',
dataId: 'id0',
visible: true,
style: {
x: (datum, ctx, elements, dataView) => {
return ctx.valueToX([datum.goal]);
},
y: (datum, ctx, elements, dataView) => {
return ctx.valueToY([datum.label]) - 5;
},
x1: (datum, ctx, elements, dataView) => {
return ctx.valueToX([datum.goal]);
},
y1: (datum, ctx, elements, dataView) => {
return ctx.valueToY([datum.label]) + 5;
},
stroke: 'red',
lineWidth: 2
}
},
{
type: 'symbol',
dataId: 'id0',
visible: true,
style: {
symbolType: 'triangleDown',
x: (datum, ctx, elements, dataView) => {
return ctx.valueToX([datum.goal]);
},
y: (datum, ctx, elements, dataView) => {
return ctx.valueToY([datum.label]) - 10;
},
size: 15,
scaleY: 0.5,
fill: 'red'
}
}
]
}
},
{
field: 'goal',
title: 'Target',
width: 'auto',
fieldFormat(rec) {
return rec.goal * 100 + '%';
},
style: {
color: 'red',
fontWeight: 'bold'
}
},
{
field: 'startTime',
title: 'Start Time',
width: 'auto'
},
{
field: 'endTime',
title: 'End Time',
width: 'auto'
},
{
field: 'master',
title: 'Master',
width: 'auto',
style: {
color: 'purple',
fontWeight: 'bold'
}
}
];

tableOptions.value = {
records,
columns
};

return {
pivotChartRef,
tableOptions
};
}
});

VueVTable.registerChartModule('vchart', VChart);

app.component('ListTable', VueVTable.ListTable);

app.mount(`#${CONTAINER_ID}`);

// release Vue instance, do not copy
window.customRelease = () => {
app.unmount();
};
```

Loading

0 comments on commit b167f20

Please sign in to comment.