Skip to content

Commit 5e87136

Browse files
committed
Merge branch 'v1.3' of github.com:dataease/dataease into v1.3
2 parents 6f8e756 + 3f8088d commit 5e87136

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ DataEase 是开源的数据可视化分析工具,帮助用户快速分析数
2424
- 秒级响应:集成 Apache Doris,超大数据量下秒级查询返回延时;
2525
- 安全分享:支持多种数据分享方式,确保数据安全。
2626

27+
### DataEase 已支持的数据源:
28+
29+
- MySQL
30+
- Oracle
31+
- SQL Server
32+
- PostgreSQL
33+
- Elasticsearch
34+
- MariaDB
35+
- Doris
36+
- ClickHouse
37+
2738
## UI 展示
2839

2940
![de-ui](https://www.fit2cloud.com/dataease/images/screenshot/dataease-v1.gif)

frontend/src/components/DeDrag/shadow.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default {
1818
let top = 0
1919
let width = 0
2020
let height = 0
21+
let transition = 0
2122
// if (this.dragComponentInfo && !this.dragComponentInfo.auxiliaryMatrix) {
2223
if (this.dragComponentInfo) {
2324
// console.log('shadowDrag=')
@@ -28,6 +29,7 @@ export default {
2829
2930
width = this.dragComponentInfo.sizex * this.curCanvasScale.matrixStyleWidth
3031
height = this.dragComponentInfo.sizey * this.curCanvasScale.matrixStyleHeight
32+
transition = 0.1
3133
} else {
3234
left = this.dragComponentInfo.shadowStyle.x
3335
top = this.dragComponentInfo.shadowStyle.y
@@ -45,6 +47,9 @@ export default {
4547
4648
width = this.curComponent.style.width * this.curCanvasScale.scalePointWidth
4749
height = this.curComponent.style.height * this.curCanvasScale.scalePointHeight
50+
if (this.curComponent.optStatus.dragging) {
51+
transition = 0.1
52+
}
4853
// console.log('curComponent left:' + left + 'top:' + top + 'width:' + width + 'height:' + height)
4954
}
5055
@@ -59,6 +64,9 @@ export default {
5964
width: width + 'px',
6065
height: height + 'px'
6166
}
67+
if (transition > 0) {
68+
style.transition = transition + 's'
69+
}
6270
// console.log('style=>' + JSON.stringify(style))
6371
// 记录外部拖拽进入仪表板时阴影区域宽高
6472
if (this.dragComponentInfo) {

frontend/src/components/canvas/components/Editor/index.vue

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,14 +1480,31 @@ export default {
14801480
nowX = nowX > 0 ? nowX : 1
14811481
nowY = nowY > 0 ? nowY : 1
14821482
1483-
debounce((function(addSizex, addSizey) {
1483+
const oldX = infoBox.oldX
1484+
const oldY = infoBox.oldY
1485+
let newX = Math.round((item.style.left * this.scalePointWidth) / this.matrixStyle.width) + 1
1486+
let newY = Math.round((item.style.top * this.scalePointHeight) / this.matrixStyle.height) + 1
1487+
newX = newX > 0 ? newX : 1
1488+
newY = newY > 0 ? newY : 1
1489+
debounce((function(newX, oldX, newY, oldY, addSizex, addSizey) {
14841490
return function() {
1491+
// console.log('move1')
1492+
if (newX !== oldX || oldY !== newY) {
1493+
// console.log('move2')
1494+
movePlayer.call(vm, resizeItem, {
1495+
x: newX,
1496+
y: newY
1497+
})
1498+
1499+
infoBox.oldX = newX
1500+
infoBox.oldY = newY
1501+
}
14851502
resizePlayer.call(vm, resizeItem, {
14861503
sizex: nowX,
14871504
sizey: nowY
14881505
})
14891506
}
1490-
})(addSizex, addSizey), 10)
1507+
})(newX, oldX, newY, oldY, addSizex, addSizey), 10)
14911508
},
14921509
onDragging(e, item) {
14931510
const infoBox = this.infoBox

frontend/src/components/widget/serviceImpl/TimeDateRangeServiceImpl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const dialogPanel = {
1111
attrs: {
1212
type: 'daterange',
1313
rangeSeparator: 'dedaterange.split_placeholder',
14-
startPlaceholder: 'dedaterange.to_placeholder',
15-
endPlaceholder: 'dedaterange.from_placeholder',
14+
startPlaceholder: 'dedaterange.from_placeholder',
15+
endPlaceholder: 'dedaterange.to_placeholder',
1616
viewIds: []
1717
},
1818
value: ''

0 commit comments

Comments
 (0)