tiny-vue/examples/sites/demos/apis/user-account.js

94 lines
2.8 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: 'user-account',
type: 'component',
props: [
{
name: 'beforeLogout',
type: 'Function(params)',
defaultValue: '',
desc: {
'zh-CN': '注销前的回调函数',
'en-US': 'Callback function before deregistration'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'getUserImageUrl',
type: 'Function',
defaultValue: '',
desc: {
'zh-CN': '自定义配置获取用户头像服务',
'en-US': 'Customized configuration for obtaining user avatars'
},
mode: ['pc'],
pcDemo: 'custom-service'
},
{
name: 'getUserInfo',
type: 'Function',
defaultValue: '',
desc: {
'zh-CN': '自定义配置用户查询服务',
'en-US': 'User-defined configuration query service'
},
mode: ['pc'],
pcDemo: 'custom-service'
},
{
name: 'popper-append-to-body',
type: 'boolean',
defaultValue: '该属性的默认值为 true',
desc: {
'zh-CN':
'是否将弹出框插入至 body 元素。在弹出框的定位出现问题时,可将该属性设置为 false (可参考 select 组件)',
'en-US':
'Indicates whether to insert the pop-up box to the body element. If a fault occurs in locating the fault in the dialog box that is displayed, you can set this attribute to false (for details, see the select component).'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'popper-class',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '为 popper 添加类名(可参考 popover 组件)',
'en-US': 'Add a class name for the popper. For details, see the popover component.'
},
mode: ['pc'],
pcDemo: ''
},
{
name: 'showArrow',
type: 'boolean',
defaultValue: '',
desc: {
'zh-CN': '设置为true时箭头会与Roles组件的箭头方向保持一致',
'en-US': 'If this parameter is set to true, the arrow direction is the same as that of the Roles component.'
},
mode: ['pc'],
pcDemo: 'custom-service'
}
],
events: [],
methods: [],
slots: [
{
name: 'default',
defaultValue: '',
desc: {
'zh-CN': '默认插槽',
'en-US': 'Default slot'
},
mode: ['pc'],
pcDemo: 'custom-operation'
}
]
}
]
}