tiny-vue/examples/sites/demos/apis/bulletin-board.js

96 lines
3.2 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 {
mode: ['pc'],
apis: [
{
name: 'bulletin-board',
type: 'component',
props: [
{
name: 'active-name',
type: 'string',
defaultValue: '1',
desc: {
'zh-CN': "默认显示第1栏可选'1' '2' '3'等",
'en-US': 'By default, column 1 is displayed. You can select 1, 2, or 3.'
},
mode: ['pc'],
pcDemo: 'active-name'
},
{
name: 'data',
type: 'Array',
defaultValue: '',
desc: {
'zh-CN': 'tab-item 数据;tab-item 数据',
'en-US': 'tab-item data; tab-item data'
},
mode: ['pc'],
pcDemo: 'base'
},
{
name: 'icon',
type: 'object , string',
defaultValue: '',
desc: {
'zh-CN': 'tab-item中第一条信息的字体图标;tab-item中第一条信息的字体图标',
'en-US':
'Font icon of the first information in tab-item; Font icon of the first piece of information in tab-item'
},
mode: ['pc'],
pcDemo: 'icon'
},
{
name: 'more-link',
type: 'object',
defaultValue: '',
desc: {
'zh-CN':
"更多按钮跳转地址show-more 为true 的时候生效;moreLink: { url: 'localhost:3000/', // 跳转地址url 和 route 属性二选一url优先级高 route: 'Alert', // 跳转路由url 和 route 属性二选一url优先级高 target: '_blank', // 跳转方式 text: '更多' // 链接文本 }",
'en-US':
"More button redirection URL. This parameter is valid only when show-more is set to true. moreLink: {url:'localhost:3000/', //Redirection address. Either the URL or route attribute must be selected. The URL has a higher priority. route:'Alert', //Redirection route. Either the URL or route attribute must be selected. URL has a high priority target: '_blank', //Redirection mode text: 'More' //Link text}"
},
mode: ['pc'],
pcDemo: 'more-link'
},
{
name: 'show-more',
type: 'boolean',
defaultValue: 'true',
desc: {
'zh-CN': '是否显示更多按钮,默认显示,需要与 more-link 同时使用',
'en-US':
'Indicates whether to display the More button. The More button is displayed by default and must be used together with more-link.'
},
mode: ['pc'],
pcDemo: 'more-link'
},
{
name: 'tab-title',
type: 'Array',
defaultValue: '',
desc: {
'zh-CN': 'tab栏数据',
'en-US': 'Data in the tab column'
},
mode: ['pc'],
pcDemo: 'tab-title'
},
{
name: 'title',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '公告牌的标题',
'en-US': 'Billboard title'
},
mode: ['pc'],
pcDemo: 'title'
}
],
events: [],
methods: [],
slots: []
}
]
}