feat: Add count-to demo

feat: Add useWatermark hook and add useWatermark demo
This commit is contained in:
陈凯龙
2022-01-26 14:08:37 +08:00
parent e4b7a76912
commit d3fbd3a06c
10 changed files with 432 additions and 7 deletions

View File

@@ -87,7 +87,10 @@ export default {
workplace: 'Workplace',
guide: 'Guide',
component: 'Component',
icon: 'Icon'
icon: 'Icon',
echart: 'Echart',
countTo: 'Count to',
watermark: 'Watermark'
},
analysis: {
newUser: 'New user',
@@ -203,5 +206,30 @@ export default {
recommendeDes:
'Iconify component basically contains all icons. You can query any icon you want. And packaging will only package the icons used.',
accessAddress: 'Access address'
},
echartDemo: {
echart: 'Echart',
echartDes:
'Based on the secondary packaging components of eckarts, the width is adaptive. The corresponding chart can be displayed by passing in the options and height attributes.'
},
countToDemo: {
countTo: 'CountTo',
countToDes:
'The transformation is based on vue-count-to and supports all vue-count-to parameters.',
suffix: 'Suffix',
prefix: 'Prefix',
separator: 'Separator',
duration: 'Duration',
endVal: 'End val',
startVal: 'Start val',
start: 'Start',
pause: 'Pause',
resume: 'Resume'
},
watermarkDemo: {
watermark: 'Watermark',
createdWatermark: 'Created watermark',
clearWatermark: 'Clear watermark',
resetWatermark: 'Reset watermark'
}
}

View File

@@ -87,7 +87,10 @@ export default {
workplace: '工作台',
guide: '引导',
component: '组件',
icon: '图标'
icon: '图标',
echart: '图表',
countTo: '数字动画',
watermark: '水印'
},
analysis: {
newUser: '新增用户',
@@ -203,5 +206,29 @@ export default {
recommendeDes:
'Iconify组件基本包含所有的图标你可以查询到你想要的任何图标。并且打包只会打包所用到的图标。',
accessAddress: '访问地址'
},
echartDemo: {
echart: '图表',
echartDes:
'基于 echarts 二次封装组件,自适应宽度,只需传入 options 与 height 属性即可展示对应的图表。'
},
countToDemo: {
countTo: '数字动画',
countToDes: '基于 vue-count-to 进行改造,支持所有 vue-count-to 参数。',
suffix: '后缀',
prefix: '前缀',
separator: '分割符号',
duration: '持续时间',
endVal: '结束值',
startVal: '开始值',
start: '开始',
pause: '暂停',
resume: '继续'
},
watermarkDemo: {
watermark: '水印',
createdWatermark: '创建水印',
clearWatermark: '清除水印',
resetWatermark: '重置水印'
}
}