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