Skip to content

Minor updates to fix tests #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Table of contents:

## Prerequisites

- [Node.js 18.0 or later](https://nodejs.org/en/)
- [Node.js 20.0 or later](https://nodejs.org/en/)

## Installation

Expand Down
3 changes: 2 additions & 1 deletion nuxt/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ body {
}

.chart-container {
margin-top: 70px;
margin-top: 50px;
}

.first-description-block {
Expand Down Expand Up @@ -78,6 +78,7 @@ body {
margin: 5px 5px 5px 0;
position: relative;
width: auto;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-webkit-box-sizing: border-box;
Expand Down
7 changes: 2 additions & 5 deletions nuxt/components/SideMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<router-link to="/pivot-table-demo">PIVOT TABLE DEMO</router-link>
</li>
<li class="tab-button">
<router-link to="/composition-api-demo">PIVOT TABLE DEMO (Composition API)</router-link>
<router-link to="/options-api-demo">PIVOT TABLE DEMO (Options API)</router-link>
</li>
</ol>
<div class="sub-title">API and Events</div>
Expand Down Expand Up @@ -43,8 +43,5 @@
</div>
</template>

<script>
export default {
name: "SideMenu",
};
<script setup>
</script>
39 changes: 19 additions & 20 deletions nuxt/components/ToggleButton.vue
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
<template>
<div class="toggle-button noselect" :id="id">
<div
class="toggle-button noselect"
:id="id"
>
<input
class="button-checkbox"
:id="labelOn"
type="checkbox"
v-model="checked"
v-on:click="onClick"
v-on:click="$emit('clicked', checked)"
/>
<label :for="labelOn" class="button-checkbox-label">
<label
:for="labelOn"
class="button-checkbox-label"
>
<span class="on">{{ checked ? labelOn : labelOff }}</span>
</label>
</div>
</template>

<script>
export default {
name: "ToggleButton",
inheritAttrs: false,
props: {
<script setup>
import { ref } from "vue";

defineProps({
labelOn: String,
labelOff: String,
id: String,
},
data: function () {
return {
checked: true,
};
},
methods: {
onClick: function () {
this.$emit("clicked", this.checked);
},
},
};
});
defineOptions({
inheritAttrs: false,
});

const checked = ref(true);
</script>
39 changes: 19 additions & 20 deletions nuxt/components/ToggleSwitch.vue
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
<template>
<div class="toggle-switch noselect" :id="id">
<div
class="toggle-switch noselect"
:id="id"
>
<input
class="button-checkbox"
:id="labelOn"
type="checkbox"
v-model="checked"
v-on:click="onClick"
v-on:click="$emit('clicked', checked)"
/>
<label :for="labelOn" class="button-checkbox-label">
<label
:for="labelOn"
class="button-checkbox-label"
>
<span class="on">{{ checked ? labelOn : labelOff }}</span>
</label>
</div>
</template>

<script>
export default {
name: "ToggleSwitch",
inheritAttrs: false,
props: {
<script setup>
import { ref } from "vue";

defineProps({
labelOn: String,
labelOff: String,
id: String,
},
data: function () {
return {
checked: true,
};
},
methods: {
onClick: function () {
this.$emit("clicked", this.checked);
},
},
};
});
defineOptions({
inheritAttrs: false,
});

const checked = ref(true);
</script>
11 changes: 4 additions & 7 deletions nuxt/components/TopMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<a href="https://www.flexmonster.com/?r=rm_vue" target="blank" class="logo">
<img
src="https://www.flexmonster.com/base/assets/img/svg/logo.svg"
alt
alt=""
/>
</a>
<ul class="mainnav">
<li>
<a href="https://www.flexmonster.com/doc/integration-with-vue-3/?r=rm_vue" target="blank">
Integration with Vue 3</a>
<a href="https://www.flexmonster.com/doc/integration-with-nuxt/?r=rm_vue" target="blank">
Integration with Nuxt</a>
</li>
<li>
<a href="https://www.flexmonster.com/doc/?r=rm_vue" target="blank">Docs</a>
Expand All @@ -30,8 +30,5 @@
</header>
</template>

<script>
export default {
name: "TopMenu",
};
<script setup>
</script>
Loading