Skip to content

Commit 69bacbf

Browse files
romanmartushevbastidest
authored andcommitted
feat!: add Vue 3 support
BREAKING CHANGES: drop Vue 2 support
1 parent 97b9f4d commit 69bacbf

7 files changed

+392
-411
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
],
1212
"extends": [
1313
"eslint:recommended",
14-
"plugin:vue/recommended",
14+
"plugin:vue/vue3-recommended",
1515
"plugin:import/errors",
1616
"plugin:import/warnings"
1717
],
@@ -50,4 +50,4 @@ module.exports = {
5050
"warn"
5151
]
5252
}
53-
};
53+
};

dev/App.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
:passiveThickness='passiveThickness'
1313
)
1414
.buttons
15-
button(@click='currentStep--') <
16-
button(@click='currentStep++') >
17-
button(@click='activeColor = "purple" ') Set active color to purple
18-
button(@click='passiveColor = "pink" ') Set passive color to pink
15+
button(@click='currentStep--') &lt;
16+
button(@click='currentStep++') >
17+
button(@click='activeColor = "purple" ') Set active color to purple
18+
button(@click='passiveColor = "pink" ') Set passive color to pink
1919
div(style='margin-top:10px')
20-
label Thickness:
20+
label Thickness:
2121
input(type = 'text' v-model='lineThickness')
2222
div(style='margin-top:10px')
23-
label Active Step Thickness
23+
label Active Step Thickness
2424
input(type = 'text' v-model='activeThickness')
2525
div(style='margin-top:10px')
26-
label Passive Step Thickness
27-
input(type = 'text' v-model='passiveThickness')
26+
label Passive Step Thickness
27+
input(type = 'text' v-model='passiveThickness')
2828
</template>
2929

3030
<script>
@@ -61,4 +61,4 @@ body
6161
text-align: center
6262
button
6363
margin-left: 10px
64-
</style>
64+
</style>

dev/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Vue from 'vue';
1+
import {createApp} from 'vue';
22

33
import App from './App.vue';
44

5-
let app = new Vue(App);
6-
app.$mount('#app');
5+
let app = createApp(App);
6+
app.mount('#app');

0 commit comments

Comments
 (0)