2023-05-24 08:54:19 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
import SplitterStyle from 'primevue/splitter/style';
|
2023-05-24 08:54:19 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'BaseSplitter',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
layout: {
|
|
|
|
type: String,
|
|
|
|
default: 'horizontal'
|
|
|
|
},
|
|
|
|
gutterSize: {
|
|
|
|
type: Number,
|
|
|
|
default: 4
|
|
|
|
},
|
|
|
|
stateKey: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
stateStorage: {
|
|
|
|
type: String,
|
|
|
|
default: 'session'
|
|
|
|
},
|
|
|
|
step: {
|
|
|
|
type: Number,
|
|
|
|
default: 5
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: SplitterStyle,
|
2023-05-30 11:06:57 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-25 01:26:06 +00:00
|
|
|
$pcSplitter: this,
|
2023-05-30 11:06:57 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-24 08:54:19 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|