diff --git a/app/views/WidgetWithGrid.vue b/app/views/WidgetWithGrid.vue index 22c9d31..fb65023 100644 --- a/app/views/WidgetWithGrid.vue +++ b/app/views/WidgetWithGrid.vue @@ -4,7 +4,9 @@ :row-height="48" :margin="[15, 15]" :is-static="isStatic" - @layout-updated="onLayoutUpdated"> + @layout-updated="onLayoutUpdated" + @move="onMove" + >

Simple Widget Without Header

diff --git a/src/packages/SmartWidget.vue b/src/packages/SmartWidget.vue index 7e8a324..e6cf9bc 100644 --- a/src/packages/SmartWidget.vue +++ b/src/packages/SmartWidget.vue @@ -172,13 +172,13 @@ export default { }, widgetHeaderHeight () { return { - 'height': `${this.rowHeight}px`, + height: `${this.rowHeight}px`, 'line-height': `${this.rowHeight}px` } }, widgetBodyStyle () { return { - 'height': `calc(100% - ${this.rowHeight}px)` + height: `calc(100% - ${this.rowHeight}px)` } }, widgetBodyContentStyle () { @@ -284,14 +284,14 @@ export default { const smartWidgetStyle = this.smartWidgetStyle this.smartWidgetStyle = { ...smartWidgetStyle, - 'transform': `translateY(${-this.translateY}px)` + transform: `translateY(${-this.translateY}px)` } }, handleMouseout () { const smartWidgetStyle = this.smartWidgetStyle this.smartWidgetStyle = { ...smartWidgetStyle, - 'transform': `translateY(0px)` + transform: 'translateY(0px)' } } } @@ -300,6 +300,9 @@ export default {