2021-05-26 01:57:02 +00:00
|
|
|
<template>
|
2021-06-12 04:38:16 +00:00
|
|
|
<div v-frag>
|
2021-05-27 06:14:43 +00:00
|
|
|
<slot />
|
2021-06-12 04:38:16 +00:00
|
|
|
</div>
|
2021-05-26 01:57:02 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-06-12 04:38:16 +00:00
|
|
|
import { ReactiveProvideMixin } from 'vue-reactive-provide';
|
|
|
|
|
2021-05-26 01:57:02 +00:00
|
|
|
export default {
|
|
|
|
name: 'LayerProvider',
|
2021-06-12 04:38:16 +00:00
|
|
|
mixins: [
|
|
|
|
ReactiveProvideMixin({
|
|
|
|
name: 'tab',
|
|
|
|
props: true
|
|
|
|
})
|
|
|
|
],
|
2021-05-26 01:57:02 +00:00
|
|
|
props: {
|
|
|
|
layer: String,
|
|
|
|
index: Number
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
</style>
|