Skip to content

Added vue 3 support with minimum amount of changes #19

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 3 commits into from
Jul 28, 2022
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
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
],
"extends": [
"eslint:recommended",
"plugin:vue/recommended",
"plugin:vue/vue3-recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
Expand Down Expand Up @@ -50,4 +50,4 @@ module.exports = {
"warn"
]
}
};
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.vscode
.npmrc
/dist/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

Install the plugin with npm:
```shell
# Vue 3.x
npm install --save vue-step-progress

# Vue 2.x
npm install --save vue-step-progress@0
```

## Usage
Expand Down
18 changes: 9 additions & 9 deletions dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
:passiveThickness='passiveThickness'
)
.buttons
button(@click='currentStep--') <
button(@click='currentStep++') >
button(@click='activeColor = "purple" ') Set active color to purple
button(@click='passiveColor = "pink" ') Set passive color to pink
button(@click='currentStep--') &lt;
button(@click='currentStep++') >
button(@click='activeColor = "purple" ') Set active color to purple
button(@click='passiveColor = "pink" ') Set passive color to pink
div(style='margin-top:10px')
label Thickness:
label Thickness:
input(type = 'text' v-model='lineThickness')
div(style='margin-top:10px')
label Active Step Thickness
label Active Step Thickness
input(type = 'text' v-model='activeThickness')
div(style='margin-top:10px')
label Passive Step Thickness
input(type = 'text' v-model='passiveThickness')
label Passive Step Thickness
input(type = 'text' v-model='passiveThickness')
</template>

<script>
Expand Down Expand Up @@ -61,4 +61,4 @@ body
text-align: center
button
margin-left: 10px
</style>
</style>
6 changes: 3 additions & 3 deletions dev/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue';
import {createApp} from 'vue';

import App from './App.vue';

let app = new Vue(App);
app.$mount('#app');
let app = createApp(App);
app.mount('#app');
2 changes: 0 additions & 2 deletions dist/main.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/main.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/vue-step-progress.min.js

This file was deleted.

Loading