Skip to content

Commit c00a973

Browse files
committed
feat: Vue 2.7 compatibility
1 parent 013e2d8 commit c00a973

30 files changed

+336
-352
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
## v2.5.0.
1+
## v2.5.1
2+
3+
> `2022-07-11`
4+
5+
### 🎉 Feature
6+
- Vue `2.7` compatibility.
7+
8+
## v2.5.0
29

310
> `2022-07-11`
411

build/vue2.rollup.config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import vue from 'vue-prev-rollup-plugin-vue'
2-
import alias from '@rollup/plugin-alias'
32
import { terser } from 'rollup-plugin-terser'
43

54
export default [
@@ -10,11 +9,6 @@ export default [
109
format: 'esm',
1110
},
1211
plugins: [
13-
alias({
14-
entries: [
15-
{ find: 'composition-api', replacement: 'vue' },
16-
]
17-
}),
1812
vue(),
1913
],
2014
external: ['vue'],
@@ -30,11 +24,6 @@ export default [
3024
}
3125
},
3226
plugins: [
33-
alias({
34-
entries: [
35-
{ find: 'composition-api', replacement: 'vue' },
36-
]
37-
}),
3827
vue(),
3928
terser()
4029
],

build/vue3.rollup.config.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ export default [
1010
format: 'esm',
1111
},
1212
plugins: [
13-
alias({
14-
entries: [
15-
{ find: 'composition-api', replacement: 'vue' },
16-
]
17-
}),
1813
vue(),
1914
],
2015
external: ['vue'],
@@ -30,11 +25,6 @@ export default [
3025
}
3126
},
3227
plugins: [
33-
alias({
34-
entries: [
35-
{ find: 'composition-api', replacement: 'vue' },
36-
]
37-
}),
3828
vue(),
3929
terser(),
4030
],

dist/multiselect.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ function useOptions (props, context, dep)
694694
};
695695

696696
// no export
697-
const getOptionByTrackBy = (val, norm) => {
697+
const getOptionByTrackBy = (val, norm = true) => {
698698
return eo.value.map(o => parseInt(o[trackBy.value]) == o[trackBy.value] ? parseInt(o[trackBy.value]) : o[trackBy.value]).indexOf(
699699
parseInt(val) == val ? parseInt(val) : val
700700
)

dist/multiselect.vue2.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)