mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
fix(image): preview toolbar error (#4159)
close https://github.com/tusen-ai/naive-ui/issues/4157
This commit is contained in:
parent
673f081f30
commit
f145984d1f
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## NEXT_VERSION
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix 'n-image' preview toolbar error, close [#4157](https://github.com/tusen-ai/naive-ui/issues/4157).
|
||||
|
||||
## 2.34.2
|
||||
|
||||
### Fixes
|
||||
|
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## NEXT_VERSION
|
||||
|
||||
### Fixes
|
||||
|
||||
- 修复 `n-image` 的预览工具栏报错,关闭 [#4157](https://github.com/tusen-ai/naive-ui/issues/4157)
|
||||
|
||||
## 2.34.2
|
||||
|
||||
### Fixes
|
||||
|
@ -342,7 +342,7 @@ export default defineComponent({
|
||||
if (!preview) return
|
||||
const { style } = preview
|
||||
const controlledStyle = normalizeStyle(
|
||||
imageContext?.previewedImgPropsRef.value.style
|
||||
imageContext?.previewedImgPropsRef?.value?.style
|
||||
)
|
||||
let controlledStyleString = ''
|
||||
if (typeof controlledStyle === 'string') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user