refactor: #7090 for OrderList

pull/7007/merge
Mert Sincan 2025-01-14 11:12:08 +00:00
parent a980b2e255
commit 0be05110a8
1 changed files with 1 additions and 10 deletions

View File

@ -34,7 +34,7 @@
</div>
<Listbox
ref="listbox"
:id="id"
:id="$id"
:modelValue="d_selection"
:options="modelValue"
multiple
@ -69,7 +69,6 @@
<script>
import { find, findSingle, scrollInView, setAttribute } from '@primeuix/utils/dom';
import { findIndexInList, isNotEmpty } from '@primeuix/utils/object';
import { UniqueComponentId } from '@primevue/core/utils';
import AngleDoubleDownIcon from '@primevue/icons/angledoubledown';
import AngleDoubleUpIcon from '@primevue/icons/angledoubleup';
import AngleDownIcon from '@primevue/icons/angledown';
@ -90,15 +89,9 @@ export default {
list: null,
data() {
return {
id: this.$attrs.id,
d_selection: this.selection
};
},
watch: {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
}
},
beforeUnmount() {
this.destroyStyle();
},
@ -109,8 +102,6 @@ export default {
}
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.responsive) {
this.createStyle();
}