tiny-vue/examples/sites/demos/apis/toast.js

71 lines
1.6 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: ['mobile'],
apis: [
{
name: 'Toast',
type: 'component',
props: [
{
name: 'text',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '<p>展示的文本</p>',
'en-US': 'display text'
},
mode: ['mobile'],
mobileDemo: 'base'
},
{
name: 'time',
type: 'Number',
defaultValue: '2000',
desc: {
'zh-CN': '<p>展示持续时间单位ms</p>',
'en-US': 'display times'
},
mode: ['mobile'],
mobileDemo: 'base'
},
{
name: 'type',
type: 'string',
defaultValue: 'text',
desc: {
'zh-CN': '<p>类型, text纯文本 correct成功 error失败</p>',
'en-US': 'type'
},
mode: ['mobile'],
mobileDemo: 'base'
},
{
name: 'zIndex',
type: 'Number',
defaultValue: '100',
desc: {
'zh-CN': '<p>弹框层级</p>',
'en-US': ''
},
mode: ['mobile'],
mobileDemo: 'base'
}
],
events: [],
methods: [
{
name: 'timeout',
type: 'Function',
defaultValue: '',
desc: {
'zh-CN': '<p>消失前的回调</p>',
'en-US': ''
},
mode: ['mobile'],
mobileDemo: 'base'
}
],
slots: []
}
]
}