dockview-vue
Advanced tools
Comparing version 1.15.3 to 1.16.0
@@ -168,2 +168,3 @@ "use strict"; | ||
disableDnd: { type: Boolean }, | ||
className: {}, | ||
gap: {}, | ||
@@ -211,3 +212,2 @@ watermarkComponent: {}, | ||
const frameworkOptions = { | ||
parentElement: el.value, | ||
createComponent(options) { | ||
@@ -277,3 +277,3 @@ const component = findComponent( | ||
}; | ||
const dockview = new dockviewCore.DockviewComponent({ | ||
const api = dockviewCore.createDockview(el.value, { | ||
...extractCoreOptions(props), | ||
@@ -283,5 +283,5 @@ ...frameworkOptions | ||
const { clientWidth, clientHeight } = el.value; | ||
dockview.layout(clientWidth, clientHeight); | ||
instance.value = vue.markRaw(dockview); | ||
emit("ready", { api: new dockviewCore.DockviewApi(dockview) }); | ||
api.layout(clientWidth, clientHeight); | ||
instance.value = vue.markRaw(api); | ||
emit("ready", { api }); | ||
}); | ||
@@ -288,0 +288,0 @@ vue.onBeforeUnmount(() => { |
@@ -7,3 +7,3 @@ var __defProp = Object.defineProperty; | ||
}; | ||
import { PROPERTY_KEYS, DockviewComponent, DockviewApi } from "dockview-core"; | ||
import { PROPERTY_KEYS, createDockview } from "dockview-core"; | ||
export * from "dockview-core"; | ||
@@ -168,2 +168,3 @@ import { createVNode, render, cloneVNode, defineComponent, ref, watch, onMounted, getCurrentInstance, markRaw, onBeforeUnmount, openBlock, createElementBlock } from "vue"; | ||
disableDnd: { type: Boolean }, | ||
className: {}, | ||
gap: {}, | ||
@@ -211,3 +212,2 @@ watermarkComponent: {}, | ||
const frameworkOptions = { | ||
parentElement: el.value, | ||
createComponent(options) { | ||
@@ -277,3 +277,3 @@ const component = findComponent( | ||
}; | ||
const dockview = new DockviewComponent({ | ||
const api = createDockview(el.value, { | ||
...extractCoreOptions(props), | ||
@@ -283,5 +283,5 @@ ...frameworkOptions | ||
const { clientWidth, clientHeight } = el.value; | ||
dockview.layout(clientWidth, clientHeight); | ||
instance.value = markRaw(dockview); | ||
emit("ready", { api: new DockviewApi(dockview) }); | ||
api.layout(clientWidth, clientHeight); | ||
instance.value = markRaw(api); | ||
emit("ready", { api }); | ||
}); | ||
@@ -288,0 +288,0 @@ onBeforeUnmount(() => { |
@@ -168,2 +168,3 @@ (function(global, factory) { | ||
disableDnd: { type: Boolean }, | ||
className: {}, | ||
gap: {}, | ||
@@ -211,3 +212,2 @@ watermarkComponent: {}, | ||
const frameworkOptions = { | ||
parentElement: el.value, | ||
createComponent(options) { | ||
@@ -277,3 +277,3 @@ const component = findComponent( | ||
}; | ||
const dockview = new dockviewCore.DockviewComponent({ | ||
const api = dockviewCore.createDockview(el.value, { | ||
...extractCoreOptions(props), | ||
@@ -283,5 +283,5 @@ ...frameworkOptions | ||
const { clientWidth, clientHeight } = el.value; | ||
dockview.layout(clientWidth, clientHeight); | ||
instance.value = vue.markRaw(dockview); | ||
emit("ready", { api: new dockviewCore.DockviewApi(dockview) }); | ||
api.layout(clientWidth, clientHeight); | ||
instance.value = vue.markRaw(api); | ||
emit("ready", { api }); | ||
}); | ||
@@ -288,0 +288,0 @@ vue.onBeforeUnmount(() => { |
{ | ||
"name": "dockview-vue", | ||
"version": "1.15.3", | ||
"version": "1.16.0", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews", | ||
@@ -55,4 +55,4 @@ "keywords": [ | ||
"dependencies": { | ||
"dockview-core": "^1.15.3" | ||
"dockview-core": "^1.16.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60512
1827
Updateddockview-core@^1.16.0