Skip to content

Commit 8839c6c

Browse files
authored
fix(image): fix 'appendToBody' definition placement error (#3067)
1 parent 4acd556 commit 8839c6c

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

examples/sites/demos/apis/image.js

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ export default {
146146
mode: ['pc', 'mobile-first'],
147147
pcDemo: 'keep-style',
148148
mfDemo: ''
149+
},
150+
{
151+
name: 'appendToBody',
152+
type: 'boolean',
153+
defaultValue: 'true',
154+
meta: {
155+
stable: '3.19.0'
156+
},
157+
desc: {
158+
'zh-CN': '预览弹框是否显示在 body 下面。\n为 <code>false</code> 时显示在当前节点下面',
159+
'en-US':
160+
'Indicates whether the preview dialog box is displayed under the body.\nWhen <code>false</code>, it is displayed under the current node.'
161+
},
162+
mode: ['pc', 'mobile-first'],
163+
pcDemo: 'preview',
164+
mfDemo: ''
149165
}
150166
],
151167
events: [
@@ -222,21 +238,6 @@ export default {
222238
mode: ['pc', 'mobile-first'],
223239
pcDemo: 'count-slot',
224240
mfDemo: ''
225-
},
226-
{
227-
name: 'appendToBody',
228-
type: 'boolean',
229-
defaultValue: 'true',
230-
meta: {
231-
stable: '3.19.0'
232-
},
233-
desc: {
234-
'zh-CN': '预览弹框是否显示在当前节点下面',
235-
'en-US': 'Indicates whether the preview dialog box is displayed under the current node.'
236-
},
237-
mode: ['pc', 'mobile-first'],
238-
pcDemo: 'preview',
239-
mfDemo: ''
240241
}
241242
]
242243
}

0 commit comments

Comments
 (0)