tiny-vue/examples/sites/demos/pc/app/fall-menu/webdoc/fall-menu.js

47 lines
1.7 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
column: '1',
owner: '',
demos: [
{
demoId: 'data-basic',
name: {
'zh-CN': '基本用法',
'en-US': 'Basic Usage'
},
desc: {
'zh-CN': '可通过<code>data</code>属性设置瀑布菜单数据。',
'en-US': 'Menu data can be set through the<code>data</code>attribute.'
},
codeFiles: ['data-resource.vue']
},
{
demoId: 'custom-slider-icon',
name: {
'zh-CN': '自定义左/右侧图标',
'en-US': 'Customizing Left/Right Icons'
},
desc: {
'zh-CN':
'<p>可通过 <code>left</code> 属性设置插槽自定义左侧切换图标为 IconLeft <code>right</code> 属性设置插槽右侧切换图标 IconRight 。</p>\n',
'en-US':
'<p>Use the <code>left</code> slot to set the left switch icon to IconLeft, and use the <code>right</code> slot to set the right switch icon to IconRight. </p>\n'
},
codeFiles: ['custom-slider-icon.vue']
},
{
demoId: 'custom-menuitem',
name: {
'zh-CN': '自定义内容',
'en-US': 'Custom Content'
},
desc: {
'zh-CN':
'<p>可通过 <code>level1</code>属性设置插槽自定义一级菜单内容,<code>level2</code> 属性设置插槽自定义二级菜单内容,<code>level3</code>属性设置插槽自定义三级菜单内容。</p>\n',
'en-US':
'<p>The level-1 menu content is customized through the <code>level1</code> slot, the level-2 menu content is customized through the <code>level2</code> slot, and the level-3 menu content is customized through the <code>level3</code> slot. </p>\n'
},
codeFiles: ['custom-menuitem.vue']
}
]
}