Skip to content

Commit

Permalink
Update WidgetPaplin.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
pernucia committed Nov 17, 2024
1 parent 5df9c45 commit 4de4b6e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/frontend/src/widgets/WidgetPaplin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ import { i18n } from '@/i18n.js';
const name = i18n.ts._widgets.paplin;

const widgetPropsDef = {
transparent: {
showHeader: {
type: 'boolean' as const,
default: false,
default: true,
},
height: {
type: 'number' as const,
default: 100,
},
};

Expand All @@ -40,9 +44,11 @@ const { widgetProps, configure } = useWidgetPropsManager(name,
);

const style = reactive({});
const deg = ref(0);

const rotation = () => {
style.transform = `rotate(360deg)`
deg.deg += 360;

Check failure on line 50 in packages/frontend/src/widgets/WidgetPaplin.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Must use `.value` to read or write the value wrapped by `ref()`
style.transform = `rotate(${deg.deg}deg)`

Check failure on line 51 in packages/frontend/src/widgets/WidgetPaplin.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Must use `.value` to read or write the value wrapped by `ref()`

Check failure on line 51 in packages/frontend/src/widgets/WidgetPaplin.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Missing semicolon
};

defineExpose<WidgetComponentExpose>({
Expand Down

1 comment on commit 4de4b6e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.