diff --git a/src/lang/en.js b/src/lang/en.js index e6dee741..f84f0de2 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -77,6 +77,10 @@ export default { roles: 'Your roles', switchRoles: 'Switch roles' }, + guide: { + description: 'The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ', + button: 'Show Guide' + }, components: { documentation: 'Documentation', tinymceTips: 'Rich text editor is a core part of management system, but at the same time is a place with lots of problems. In the process of selecting rich texts, I also walked a lot of detours. The common rich text editors in the market are basically used, and the finally chose Tinymce. See documentation for more detailed rich text editor comparisons and introductions.', diff --git a/src/lang/zh.js b/src/lang/zh.js index 39cbc287..6ef13eec 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -77,6 +77,10 @@ export default { roles: '你的权限', switchRoles: '切换权限' }, + guide: { + description: '引导页对于一些第一次进入项目的人很有用,你可以简单介绍下项目的功能。本 Demo 是基于', + button: '打开引导' + }, components: { documentation: '文档', tinymceTips: '富文本是管理后台一个核心的功能,但同时又是一个有很多坑的地方。在选择富文本的过程中我也走了不少的弯路,市面上常见的富文本都基本用过了,最终权衡了一下选择了Tinymce。更详细的富文本比较和介绍见', diff --git a/src/views/guide/defineSteps.js b/src/views/guide/defineSteps.js new file mode 100644 index 00000000..fde78926 --- /dev/null +++ b/src/views/guide/defineSteps.js @@ -0,0 +1,52 @@ +const steps = [ + { + element: '.hamburger-container', + popover: { + title: 'Hamburger', + description: 'Open && Close sidebar', + position: 'bottom' + } + }, + { + element: '.breadcrumb-container', + popover: { + title: 'Breadcrumb', + description: 'Indicate the current page location', + position: 'bottom' + } + }, + { + element: '.screenfull', + popover: { + title: 'Screenfull', + description: 'Bring the page into fullscreen', + position: 'left' + } + }, + { + element: '.international-icon', + popover: { + title: 'Switch language', + description: 'Switch the system language', + position: 'left' + } + }, + { + element: '.theme-switch', + popover: { + title: 'Theme Switch', + description: 'Custom switch system theme', + position: 'left' + } + }, + { + element: '.tags-view-container', + popover: { + title: 'Tags view', + description: 'The history of the page you visited', + position: 'bottom' + } + } +] + +export default steps diff --git a/src/views/guide/index.vue b/src/views/guide/index.vue index fac94cc1..99788caf 100644 --- a/src/views/guide/index.vue +++ b/src/views/guide/index.vue @@ -1,75 +1,34 @@ - - -