90 lines
1.9 KiB
Vue
90 lines
1.9 KiB
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import OrderListStyle from 'primevue/orderlist/style';
|
|
|
|
export default {
|
|
name: 'BaseOrderList',
|
|
extends: BaseComponent,
|
|
props: {
|
|
modelValue: {
|
|
type: Array,
|
|
default: null
|
|
},
|
|
selection: {
|
|
type: Array,
|
|
default: null
|
|
},
|
|
dataKey: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
listStyle: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
metaKeySelection: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
autoOptionFocus: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
focusOnHover: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
responsive: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
breakpoint: {
|
|
type: String,
|
|
default: '960px'
|
|
},
|
|
stripedRows: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
tabindex: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
listProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
moveUpButtonProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
moveTopButtonProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
moveDownButtonProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
moveBottomButtonProps: {
|
|
type: null,
|
|
default: null
|
|
},
|
|
ariaLabelledby: {
|
|
type: String,
|
|
default: null
|
|
},
|
|
ariaLabel: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
},
|
|
style: OrderListStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|