@reviewpush/rp-treeselect 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rp-treeselect.cjs.js +52 -33
- package/dist/rp-treeselect.cjs.js.map +1 -1
- package/dist/rp-treeselect.cjs.min.js +1 -1
- package/dist/rp-treeselect.cjs.min.js.map +1 -1
- package/dist/rp-treeselect.umd.js +52 -33
- package/dist/rp-treeselect.umd.js.map +1 -1
- package/dist/rp-treeselect.umd.min.js +1 -1
- package/dist/rp-treeselect.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/HiddenFields.vue +1 -0
- package/src/components/Input.vue +5 -5
- package/src/components/Menu.vue +6 -5
- package/src/components/MultiValue.vue +5 -5
- package/src/components/MultiValueItem.vue +5 -5
- package/src/components/Placeholder.vue +5 -4
- package/src/components/SingleValue.vue +5 -5
- package/src/components/Treeselect.vue +2 -4
package/package.json
CHANGED
package/src/components/Input.vue
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { inject } from 'vue'
|
|
2
3
|
import { debounce, deepExtend, includes } from '../utils'
|
|
3
4
|
import { MIN_INPUT_WIDTH, KEY_CODES, INPUT_DEBOUNCE_DELAY } from '../constants'
|
|
4
5
|
|
|
@@ -12,13 +13,12 @@
|
|
|
12
13
|
KEY_CODES.ARROW_DOWN,
|
|
13
14
|
]
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
export default {
|
|
16
|
+
export default {
|
|
17
17
|
name: 'rp-treeselect--input',
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
setup() {
|
|
20
|
-
const instance = inject('instance')
|
|
21
|
-
return {instance}
|
|
20
|
+
const instance = inject('instance')
|
|
21
|
+
return { instance }
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
data: () => ({
|
package/src/components/Menu.vue
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { inject } from 'vue'
|
|
2
3
|
import { MENU_BUFFER } from '../constants'
|
|
3
4
|
import { watchSize, setupResizeAndScrollEventListeners } from '../utils'
|
|
4
5
|
import Option from './Option'
|
|
@@ -11,13 +12,13 @@
|
|
|
11
12
|
below: 'bottom',
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
export default {
|
|
15
|
+
|
|
16
|
+
export default {
|
|
16
17
|
name: 'rp-treeselect--menu',
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
setup() {
|
|
19
|
-
const instance = inject('instance')
|
|
20
|
-
return {instance}
|
|
20
|
+
const instance = inject('instance')
|
|
21
|
+
return { instance }
|
|
21
22
|
},
|
|
22
23
|
|
|
23
24
|
computed: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { inject } from 'vue'
|
|
2
3
|
import MultiValueItem from './MultiValueItem'
|
|
3
4
|
import Input from './Input'
|
|
4
5
|
import Placeholder from './Placeholder'
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
export default {
|
|
7
|
+
export default {
|
|
8
8
|
name: 'rp-treeselect--multi-value',
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
setup() {
|
|
11
|
-
const instance = inject('instance')
|
|
12
|
-
return {instance}
|
|
11
|
+
const instance = inject('instance')
|
|
12
|
+
return { instance }
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
methods: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { inject } from 'vue'
|
|
2
3
|
import { onLeftClick } from '../utils'
|
|
3
4
|
import DeleteIcon from './icons/Delete'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
export default {
|
|
6
|
+
export default {
|
|
7
7
|
name: 'rp-treeselect--multi-value-item',
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
setup() {
|
|
10
|
-
const instance = inject('instance')
|
|
11
|
-
return {instance}
|
|
10
|
+
const instance = inject('instance')
|
|
11
|
+
return { instance }
|
|
12
12
|
},
|
|
13
13
|
|
|
14
14
|
props: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { inject } from 'vue'
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export default {
|
|
4
5
|
name: 'rp-treeselect--placeholder',
|
|
5
|
-
|
|
6
|
+
|
|
6
7
|
setup() {
|
|
7
|
-
const instance = inject('instance')
|
|
8
|
-
return {instance}
|
|
8
|
+
const instance = inject('instance')
|
|
9
|
+
return { instance }
|
|
9
10
|
},
|
|
10
11
|
|
|
11
12
|
render() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { inject } from 'vue'
|
|
2
3
|
import Input from './Input'
|
|
3
4
|
import Placeholder from './Placeholder'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
export default {
|
|
6
|
+
export default {
|
|
7
7
|
name: 'rp-treeselect--single-value',
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
setup() {
|
|
10
|
-
const instance = inject('instance')
|
|
11
|
-
return {instance}
|
|
10
|
+
const instance = inject('instance')
|
|
11
|
+
return { instance }
|
|
12
12
|
},
|
|
13
13
|
methods: {
|
|
14
14
|
renderSingleValueLabel() {
|
|
@@ -68,10 +68,6 @@
|
|
|
68
68
|
export default {
|
|
69
69
|
name: 'rp-treeselect',
|
|
70
70
|
|
|
71
|
-
setup() {
|
|
72
|
-
provide('instance', this)
|
|
73
|
-
},
|
|
74
|
-
|
|
75
71
|
props: {
|
|
76
72
|
/**
|
|
77
73
|
* Whether to allow resetting value even if there are disabled selected nodes.
|
|
@@ -906,6 +902,8 @@
|
|
|
906
902
|
created() {
|
|
907
903
|
this.verifyProps()
|
|
908
904
|
this.resetFlags()
|
|
905
|
+
|
|
906
|
+
provide('instance', this)
|
|
909
907
|
},
|
|
910
908
|
|
|
911
909
|
mounted() {
|