sh-view 2.4.3 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ export default defineComponent({
|
|
|
145
145
|
|
|
146
146
|
const codeRender = async () => {
|
|
147
147
|
let docValue = getTransformValue(props.modelValue)
|
|
148
|
-
let codeState =
|
|
148
|
+
let codeState = EditorState.create({
|
|
149
149
|
doc: docValue,
|
|
150
150
|
extensions: codeExtensions.value
|
|
151
151
|
})
|
|
@@ -67,7 +67,7 @@ export default defineComponent({
|
|
|
67
67
|
if (expand.value && groupItemRef.value && ((mode === 'vertical' && collapsed) || mode === 'horizontal')) {
|
|
68
68
|
nextTick(() => {
|
|
69
69
|
const { offsetHeight, offsetWidth, itemRef } = groupItemRef.value
|
|
70
|
-
const { left, right, top, bottom } = itemRef.
|
|
70
|
+
const { left, right, top, bottom } = itemRef.getBoundingClientRect()
|
|
71
71
|
const winWidth = window.innerWidth
|
|
72
72
|
const winHeight = window.innerHeight
|
|
73
73
|
if (mode === 'vertical') {
|