tiny-vue_version0/examples/sites/demos/apis/statistic.js

137 lines
3.1 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: 'statistic',
type: 'component',
props: [
{
name: 'value',
type: 'number',
defaultValue: '0',
desc: {
'zh-CN': '数字显示内容',
'en-US': 'Digital display content'
},
mode: ['pc'],
pcDemo: 'basic-usage',
mfDemo: ''
},
{
name: 'precision',
type: 'number',
defaultValue: '0',
desc: {
'zh-CN': '精度值',
'en-US': 'Take precision value'
},
mode: ['pc'],
pcDemo: 'basic-usage',
mfDemo: ''
},
{
name: 'title',
type: 'string | ITitleType',
typeAnchorName: 'ITitleType',
defaultValue: '',
desc: {
'zh-CN': '设置数字内容标题',
'en-US': 'Set digital content titles'
},
mode: ['pc'],
pcDemo: 'basic-usage',
mfDemo: ''
},
{
name: 'prefix',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '设置数字内容前缀',
'en-US': 'Set numerical content prefix'
},
mode: ['pc'],
pcDemo: 'basic-usage',
mfDemo: ''
},
{
name: 'suffix',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '设置数字内容后缀',
'en-US': 'Set numeric content suffix'
},
mode: ['pc'],
pcDemo: 'basic-usage',
mfDemo: ''
},
{
name: 'value-style',
type: 'object | array',
defaultValue: '',
desc: {
'zh-CN': '设置数字样式',
'en-US': 'Set Number Style'
},
mode: ['pc'],
pcDemo: 'prefix-suffix-slot',
mfDemo: ''
}
],
events: [],
methods: [],
slots: [
{
name: 'prefix',
type: '',
defaultValue: '',
desc: {
'zh-CN': '数字内容前置插槽',
'en-US': 'Digital content front slot'
},
mode: ['pc'],
pcDemo: 'prefix-suffix-slot',
mfDemo: ''
},
{
name: 'suffix',
type: '',
defaultValue: '',
desc: {
'zh-CN': '数字内容后置插槽',
'en-US': 'Digital content rear slot'
},
mode: ['pc'],
pcDemo: 'prefix-suffix-slot',
mfDemo: ''
},
{
name: 'title',
type: '',
defaultValue: '',
desc: {
'zh-CN': '数字内容标题插槽',
'en-US': 'Digital content title slot'
},
mode: ['pc'],
pcDemo: 'statistic-slot',
mfDemo: ''
}
]
}
],
types: [
{
name: 'ITitleType',
type: '',
code: `
interface ITitleType {
value?: string // 标题文本
position?: string // 标题位置取值top | bottom
}
`
}
]
}