Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
refactor: widget
Browse files Browse the repository at this point in the history
  • Loading branch information
sousuke0422 committed Aug 9, 2022
1 parent ebea606 commit f126027
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/client/app/common/views/widgets/analog-clock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import define from '../../../common/define-widget-define-component';
const widget = define({
name: 'analog-clock',
props: () => ({
Expand Down
10 changes: 8 additions & 2 deletions src/client/app/common/views/widgets/instance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
</template>

<script lang="ts">
import define from '../../../common/define-widget';
export default define({
import { defineComponent } from 'vue';
import define from '../../../common/define-widget-define-component';
const widget = define({
name: 'instance'
});
export default defineComponent({
extends: widget,
})
</script>
10 changes: 8 additions & 2 deletions src/client/app/common/views/widgets/nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
</template>

<script lang="ts">
import define from '../../../common/define-widget';
export default define({
import { defineComponent } from 'vue';
import define from '../../../common/define-widget-define-component';
const widget = define({
name: 'nav'
});
export default defineComponent({
extends: widget,
})
</script>

<style lang="stylus" scoped>
Expand Down

0 comments on commit f126027

Please sign in to comment.