mediacube-ui 0.1.235 → 0.1.237
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.237](https://github.com/MediaCubeCo/mcui/compare/v0.1.236...v0.1.237) (2024-03-20)
|
|
6
|
+
|
|
7
|
+
### [0.1.236](https://github.com/MediaCubeCo/mcui/compare/v0.1.235...v0.1.236) (2024-03-19)
|
|
8
|
+
|
|
5
9
|
### [0.1.235](https://github.com/MediaCubeCo/mcui/compare/v0.1.234...v0.1.235) (2024-03-15)
|
|
6
10
|
|
|
7
11
|
### [0.1.234](https://github.com/MediaCubeCo/mcui/compare/v0.1.233...v0.1.234) (2024-03-14)
|
package/package.json
CHANGED
|
@@ -380,7 +380,7 @@ export default {
|
|
|
380
380
|
!options.some(option => String(option.value) === String(this.value))
|
|
381
381
|
// Если в options нет опции с выбранным значением, то добавляем в общий список
|
|
382
382
|
if (Array.isArray(this.selected_options)) {
|
|
383
|
-
[...(this.selected_options || [])]?.forEach(selectedOption => {
|
|
383
|
+
;[...(this.selected_options || [])]?.forEach(selectedOption => {
|
|
384
384
|
if (selectedOption?.value && !options.some(option => option.value === selectedOption.value)) {
|
|
385
385
|
options.push(selectedOption)
|
|
386
386
|
}
|
|
@@ -490,6 +490,14 @@ export default {
|
|
|
490
490
|
return this.avatar || this.icon
|
|
491
491
|
},
|
|
492
492
|
},
|
|
493
|
+
watch: {
|
|
494
|
+
options: {
|
|
495
|
+
immediate: true,
|
|
496
|
+
handler(val) {
|
|
497
|
+
this.selected_options.push(...val)
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
},
|
|
493
501
|
methods: {
|
|
494
502
|
handleOpen() {
|
|
495
503
|
if (!this.renderAbsoluteList) return
|
|
@@ -553,13 +561,15 @@ export default {
|
|
|
553
561
|
/**
|
|
554
562
|
* Истинное значение инпута
|
|
555
563
|
*/
|
|
556
|
-
this.selected_options = value
|
|
557
564
|
this.$emit('original-input', value)
|
|
558
565
|
if (value !== null) {
|
|
559
566
|
if (this.multiple) {
|
|
560
567
|
value = value.map(v => v.value)
|
|
568
|
+
this.selected_options = value
|
|
561
569
|
} else {
|
|
570
|
+
const orig_value = value
|
|
562
571
|
value = value.value
|
|
572
|
+
this.selected_options = [orig_value]
|
|
563
573
|
}
|
|
564
574
|
}
|
|
565
575
|
this.emitInput(value)
|