2024-01-11 13:42:20 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
import MeterGroupStyle from 'primevue/metergroup/style';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'MeterGroup',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
type: Array,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
min: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
max: {
|
|
|
|
type: Number,
|
|
|
|
default: 100
|
|
|
|
},
|
|
|
|
orientation: {
|
|
|
|
type: String,
|
|
|
|
default: 'horizontal'
|
|
|
|
},
|
|
|
|
labelPosition: {
|
|
|
|
type: String,
|
|
|
|
default: 'end'
|
|
|
|
},
|
|
|
|
labelOrientation: {
|
|
|
|
type: String,
|
|
|
|
default: 'horizontal'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: MeterGroupStyle,
|
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcMeterGroup: this,
|
2024-01-11 13:42:20 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|