fix: some bug

This commit is contained in:
xiaoxian521 2021-04-15 00:04:52 +08:00
parent 23e14c2ea2
commit db237d2f51

View File

@ -24,32 +24,32 @@
<script lang="ts"> <script lang="ts">
import splitpane, { import splitpane, {
ContextProps, ContextProps
} from "/@/components/SplitPane/index.vue"; } from "../../../components/splitPane/index.vue";
import { reactive } from "vue"; import { reactive } from "vue";
export default { export default {
name: "split", name: "split",
components: { components: {
splitpane, splitpane
}, },
setup() { setup() {
const settingLR: ContextProps = reactive({ const settingLR: ContextProps = reactive({
minPercent: 20, minPercent: 20,
defaultPercent: 40, defaultPercent: 40,
split: "vertical", split: "vertical"
}); });
const settingTB: ContextProps = reactive({ const settingTB: ContextProps = reactive({
minPercent: 20, minPercent: 20,
defaultPercent: 40, defaultPercent: 40,
split: "horizontal", split: "horizontal"
}); });
return { return {
settingLR, settingLR,
settingTB, settingTB
}; };
}, }
}; };
</script> </script>