@lavida/vue-element-admin-template 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -0
- package/template/.editorconfig +14 -0
- package/template/.env.development +5 -0
- package/template/.env.production +6 -0
- package/template/.env.staging +8 -0
- package/template/.eslintignore +4 -0
- package/template/.eslintrc.js +198 -0
- package/template/.travis.yml +5 -0
- package/template/LICENSE +21 -0
- package/template/README.es.md +222 -0
- package/template/README.ja.md +218 -0
- package/template/README.md +222 -0
- package/template/README.zh-CN.md +245 -0
- package/template/babel.config.js +14 -0
- package/template/build/index.js +35 -0
- package/template/jest.config.js +24 -0
- package/template/jsconfig.json +9 -0
- package/template/mock/article.js +116 -0
- package/template/mock/index.js +60 -0
- package/template/mock/mock-server.js +81 -0
- package/template/mock/remote-search.js +51 -0
- package/template/mock/role/index.js +98 -0
- package/template/mock/role/routes.js +530 -0
- package/template/mock/user.js +84 -0
- package/template/mock/utils.js +48 -0
- package/template/package.json +111 -0
- package/template/plop-templates/component/index.hbs +26 -0
- package/template/plop-templates/component/prompt.js +55 -0
- package/template/plop-templates/store/index.hbs +16 -0
- package/template/plop-templates/store/prompt.js +62 -0
- package/template/plop-templates/utils.js +2 -0
- package/template/plop-templates/view/index.hbs +26 -0
- package/template/plop-templates/view/prompt.js +55 -0
- package/template/plopfile.js +9 -0
- package/template/postcss.config.js +5 -0
- package/template/public/favicon.ico +0 -0
- package/template/public/index.html +15 -0
- package/template/src/App.vue +11 -0
- package/template/src/api/article.js +41 -0
- package/template/src/api/qiniu.js +8 -0
- package/template/src/api/remote-search.js +17 -0
- package/template/src/api/role.js +38 -0
- package/template/src/api/user.js +24 -0
- package/template/src/assets/401_images/401.gif +0 -0
- package/template/src/assets/404_images/404.png +0 -0
- package/template/src/assets/404_images/404_cloud.png +0 -0
- package/template/src/assets/custom-theme/fonts/element-icons.ttf +0 -0
- package/template/src/assets/custom-theme/fonts/element-icons.woff +0 -0
- package/template/src/assets/custom-theme/index.css +1 -0
- package/template/src/components/BackToTop/index.vue +111 -0
- package/template/src/components/Breadcrumb/index.vue +82 -0
- package/template/src/components/Charts/Keyboard.vue +155 -0
- package/template/src/components/Charts/LineMarker.vue +227 -0
- package/template/src/components/Charts/MixChart.vue +271 -0
- package/template/src/components/Charts/mixins/resize.js +56 -0
- package/template/src/components/DndList/index.vue +166 -0
- package/template/src/components/DragSelect/index.vue +65 -0
- package/template/src/components/Dropzone/index.vue +297 -0
- package/template/src/components/ErrorLog/index.vue +78 -0
- package/template/src/components/GithubCorner/index.vue +54 -0
- package/template/src/components/Hamburger/index.vue +44 -0
- package/template/src/components/HeaderSearch/index.vue +180 -0
- package/template/src/components/ImageCropper/index.vue +1779 -0
- package/template/src/components/ImageCropper/utils/data2blob.js +19 -0
- package/template/src/components/ImageCropper/utils/effectRipple.js +39 -0
- package/template/src/components/ImageCropper/utils/language.js +232 -0
- package/template/src/components/ImageCropper/utils/mimes.js +7 -0
- package/template/src/components/JsonEditor/index.vue +77 -0
- package/template/src/components/Kanban/index.vue +99 -0
- package/template/src/components/MDinput/index.vue +360 -0
- package/template/src/components/MarkdownEditor/default-options.js +31 -0
- package/template/src/components/MarkdownEditor/index.vue +118 -0
- package/template/src/components/Pagination/index.vue +101 -0
- package/template/src/components/PanThumb/index.vue +142 -0
- package/template/src/components/RightPanel/index.vue +145 -0
- package/template/src/components/Screenfull/index.vue +60 -0
- package/template/src/components/Share/DropdownMenu.vue +103 -0
- package/template/src/components/SizeSelect/index.vue +57 -0
- package/template/src/components/Sticky/index.vue +91 -0
- package/template/src/components/SvgIcon/index.vue +62 -0
- package/template/src/components/TextHoverEffect/Mallki.vue +113 -0
- package/template/src/components/ThemePicker/index.vue +175 -0
- package/template/src/components/Tinymce/components/EditorImage.vue +111 -0
- package/template/src/components/Tinymce/dynamicLoadScript.js +59 -0
- package/template/src/components/Tinymce/index.vue +250 -0
- package/template/src/components/Tinymce/plugins.js +7 -0
- package/template/src/components/Tinymce/toolbar.js +6 -0
- package/template/src/components/Upload/SingleImage.vue +134 -0
- package/template/src/components/Upload/SingleImage2.vue +130 -0
- package/template/src/components/Upload/SingleImage3.vue +157 -0
- package/template/src/components/UploadExcel/index.vue +138 -0
- package/template/src/directive/clipboard/clipboard.js +49 -0
- package/template/src/directive/clipboard/index.js +13 -0
- package/template/src/directive/el-drag-dialog/drag.js +77 -0
- package/template/src/directive/el-drag-dialog/index.js +13 -0
- package/template/src/directive/el-table/adaptive.js +41 -0
- package/template/src/directive/el-table/index.js +13 -0
- package/template/src/directive/permission/index.js +13 -0
- package/template/src/directive/permission/permission.js +31 -0
- package/template/src/directive/sticky.js +91 -0
- package/template/src/directive/waves/index.js +13 -0
- package/template/src/directive/waves/waves.css +26 -0
- package/template/src/directive/waves/waves.js +72 -0
- package/template/src/filters/index.js +68 -0
- package/template/src/icons/index.js +9 -0
- package/template/src/icons/svg/404.svg +1 -0
- package/template/src/icons/svg/bug.svg +1 -0
- package/template/src/icons/svg/chart.svg +1 -0
- package/template/src/icons/svg/clipboard.svg +1 -0
- package/template/src/icons/svg/component.svg +1 -0
- package/template/src/icons/svg/dashboard.svg +1 -0
- package/template/src/icons/svg/documentation.svg +1 -0
- package/template/src/icons/svg/drag.svg +1 -0
- package/template/src/icons/svg/edit.svg +1 -0
- package/template/src/icons/svg/education.svg +1 -0
- package/template/src/icons/svg/email.svg +1 -0
- package/template/src/icons/svg/example.svg +1 -0
- package/template/src/icons/svg/excel.svg +1 -0
- package/template/src/icons/svg/exit-fullscreen.svg +1 -0
- package/template/src/icons/svg/eye-open.svg +1 -0
- package/template/src/icons/svg/eye.svg +1 -0
- package/template/src/icons/svg/form.svg +1 -0
- package/template/src/icons/svg/fullscreen.svg +1 -0
- package/template/src/icons/svg/guide.svg +1 -0
- package/template/src/icons/svg/icon.svg +1 -0
- package/template/src/icons/svg/international.svg +1 -0
- package/template/src/icons/svg/language.svg +1 -0
- package/template/src/icons/svg/link.svg +1 -0
- package/template/src/icons/svg/list.svg +1 -0
- package/template/src/icons/svg/lock.svg +1 -0
- package/template/src/icons/svg/message.svg +1 -0
- package/template/src/icons/svg/money.svg +1 -0
- package/template/src/icons/svg/nested.svg +1 -0
- package/template/src/icons/svg/password.svg +1 -0
- package/template/src/icons/svg/pdf.svg +1 -0
- package/template/src/icons/svg/people.svg +1 -0
- package/template/src/icons/svg/peoples.svg +1 -0
- package/template/src/icons/svg/qq.svg +1 -0
- package/template/src/icons/svg/search.svg +1 -0
- package/template/src/icons/svg/shopping.svg +1 -0
- package/template/src/icons/svg/size.svg +1 -0
- package/template/src/icons/svg/skill.svg +1 -0
- package/template/src/icons/svg/star.svg +1 -0
- package/template/src/icons/svg/tab.svg +1 -0
- package/template/src/icons/svg/table.svg +1 -0
- package/template/src/icons/svg/theme.svg +1 -0
- package/template/src/icons/svg/tree-table.svg +1 -0
- package/template/src/icons/svg/tree.svg +1 -0
- package/template/src/icons/svg/user.svg +1 -0
- package/template/src/icons/svg/wechat.svg +1 -0
- package/template/src/icons/svg/zip.svg +1 -0
- package/template/src/icons/svgo.yml +22 -0
- package/template/src/layout/components/AppMain.vue +57 -0
- package/template/src/layout/components/Navbar.vue +167 -0
- package/template/src/layout/components/Settings/index.vue +108 -0
- package/template/src/layout/components/Sidebar/FixiOSBug.js +26 -0
- package/template/src/layout/components/Sidebar/Item.vue +41 -0
- package/template/src/layout/components/Sidebar/Link.vue +43 -0
- package/template/src/layout/components/Sidebar/Logo.vue +82 -0
- package/template/src/layout/components/Sidebar/SidebarItem.vue +95 -0
- package/template/src/layout/components/Sidebar/index.vue +54 -0
- package/template/src/layout/components/TagsView/ScrollPane.vue +94 -0
- package/template/src/layout/components/TagsView/index.vue +292 -0
- package/template/src/layout/components/index.js +5 -0
- package/template/src/layout/index.vue +102 -0
- package/template/src/layout/mixin/ResizeHandler.js +45 -0
- package/template/src/main.js +53 -0
- package/template/src/permission.js +74 -0
- package/template/src/router/index.js +404 -0
- package/template/src/router/modules/charts.js +36 -0
- package/template/src/router/modules/components.js +102 -0
- package/template/src/router/modules/nested.js +66 -0
- package/template/src/router/modules/table.js +41 -0
- package/template/src/settings.js +35 -0
- package/template/src/store/getters.js +15 -0
- package/template/src/store/index.js +25 -0
- package/template/src/store/modules/app.js +56 -0
- package/template/src/store/modules/errorLog.js +28 -0
- package/template/src/store/modules/permission.js +69 -0
- package/template/src/store/modules/settings.js +35 -0
- package/template/src/store/modules/tagsView.js +160 -0
- package/template/src/store/modules/user.js +131 -0
- package/template/src/styles/btn.scss +99 -0
- package/template/src/styles/element-ui.scss +84 -0
- package/template/src/styles/element-variables.scss +31 -0
- package/template/src/styles/index.scss +191 -0
- package/template/src/styles/mixin.scss +66 -0
- package/template/src/styles/sidebar.scss +226 -0
- package/template/src/styles/transition.scss +48 -0
- package/template/src/styles/variables.scss +35 -0
- package/template/src/utils/auth.js +15 -0
- package/template/src/utils/clipboard.js +32 -0
- package/template/src/utils/error-log.js +35 -0
- package/template/src/utils/get-page-title.js +10 -0
- package/template/src/utils/index.js +357 -0
- package/template/src/utils/open-window.js +25 -0
- package/template/src/utils/permission.js +25 -0
- package/template/src/utils/request.js +85 -0
- package/template/src/utils/scroll-to.js +58 -0
- package/template/src/utils/validate.js +87 -0
- package/template/src/vendor/Export2Excel.js +220 -0
- package/template/src/vendor/Export2Zip.js +24 -0
- package/template/src/views/charts/keyboard.vue +23 -0
- package/template/src/views/charts/line.vue +23 -0
- package/template/src/views/charts/mix-chart.vue +23 -0
- package/template/src/views/clipboard/index.vue +49 -0
- package/template/src/views/components-demo/avatar-upload.vue +61 -0
- package/template/src/views/components-demo/back-to-top.vue +154 -0
- package/template/src/views/components-demo/count-to.vue +218 -0
- package/template/src/views/components-demo/dnd-list.vue +39 -0
- package/template/src/views/components-demo/drag-dialog.vue +61 -0
- package/template/src/views/components-demo/drag-kanban.vue +66 -0
- package/template/src/views/components-demo/drag-select.vue +43 -0
- package/template/src/views/components-demo/dropzone.vue +31 -0
- package/template/src/views/components-demo/json-editor.vue +36 -0
- package/template/src/views/components-demo/markdown.vue +101 -0
- package/template/src/views/components-demo/mixin.vue +169 -0
- package/template/src/views/components-demo/split-pane.vue +67 -0
- package/template/src/views/components-demo/sticky.vue +135 -0
- package/template/src/views/components-demo/tinymce.vue +36 -0
- package/template/src/views/dashboard/admin/components/BarChart.vue +102 -0
- package/template/src/views/dashboard/admin/components/BoxCard.vue +118 -0
- package/template/src/views/dashboard/admin/components/LineChart.vue +135 -0
- package/template/src/views/dashboard/admin/components/PanelGroup.vue +181 -0
- package/template/src/views/dashboard/admin/components/PieChart.vue +79 -0
- package/template/src/views/dashboard/admin/components/RaddarChart.vue +116 -0
- package/template/src/views/dashboard/admin/components/TodoList/Todo.vue +81 -0
- package/template/src/views/dashboard/admin/components/TodoList/index.scss +320 -0
- package/template/src/views/dashboard/admin/components/TodoList/index.vue +127 -0
- package/template/src/views/dashboard/admin/components/TransactionTable.vue +55 -0
- package/template/src/views/dashboard/admin/components/mixins/resize.js +55 -0
- package/template/src/views/dashboard/admin/index.vue +124 -0
- package/template/src/views/dashboard/editor/index.vue +74 -0
- package/template/src/views/dashboard/index.vue +31 -0
- package/template/src/views/documentation/index.vue +56 -0
- package/template/src/views/error-log/components/ErrorTestA.vue +13 -0
- package/template/src/views/error-log/components/ErrorTestB.vue +11 -0
- package/template/src/views/error-log/index.vue +32 -0
- package/template/src/views/error-page/401.vue +99 -0
- package/template/src/views/error-page/404.vue +228 -0
- package/template/src/views/example/components/ArticleDetail.vue +289 -0
- package/template/src/views/example/components/Dropdown/Comment.vue +41 -0
- package/template/src/views/example/components/Dropdown/Platform.vue +46 -0
- package/template/src/views/example/components/Dropdown/SourceUrl.vue +38 -0
- package/template/src/views/example/components/Dropdown/index.js +3 -0
- package/template/src/views/example/components/Warning.vue +13 -0
- package/template/src/views/example/create.vue +13 -0
- package/template/src/views/example/edit.vue +13 -0
- package/template/src/views/example/list.vue +112 -0
- package/template/src/views/excel/components/AutoWidthOption.vue +34 -0
- package/template/src/views/excel/components/BookTypeOption.vue +39 -0
- package/template/src/views/excel/components/FilenameOption.vue +27 -0
- package/template/src/views/excel/export-excel.vue +116 -0
- package/template/src/views/excel/merge-header.vue +101 -0
- package/template/src/views/excel/select-excel.vue +107 -0
- package/template/src/views/excel/upload-excel.vue +42 -0
- package/template/src/views/guide/index.vue +36 -0
- package/template/src/views/guide/steps.js +53 -0
- package/template/src/views/icons/element-icons.js +3 -0
- package/template/src/views/icons/index.vue +101 -0
- package/template/src/views/icons/svg-icons.js +10 -0
- package/template/src/views/login/auth-redirect.vue +15 -0
- package/template/src/views/login/components/SocialSignin.vue +72 -0
- package/template/src/views/login/index.vue +324 -0
- package/template/src/views/nested/menu1/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-1/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-2/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue +5 -0
- package/template/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue +5 -0
- package/template/src/views/nested/menu1/menu1-3/index.vue +5 -0
- package/template/src/views/nested/menu2/index.vue +5 -0
- package/template/src/views/pdf/content.js +58 -0
- package/template/src/views/pdf/download.vue +201 -0
- package/template/src/views/pdf/index.vue +13 -0
- package/template/src/views/permission/components/SwitchRoles.vue +32 -0
- package/template/src/views/permission/directive.vue +111 -0
- package/template/src/views/permission/page.vue +19 -0
- package/template/src/views/permission/role.vue +270 -0
- package/template/src/views/profile/components/Account.vue +38 -0
- package/template/src/views/profile/components/Activity.vue +185 -0
- package/template/src/views/profile/components/Timeline.vue +43 -0
- package/template/src/views/profile/components/UserCard.vue +134 -0
- package/template/src/views/profile/index.vue +68 -0
- package/template/src/views/qiniu/upload.vue +41 -0
- package/template/src/views/redirect/index.vue +12 -0
- package/template/src/views/tab/components/TabPane.vue +103 -0
- package/template/src/views/tab/index.vue +57 -0
- package/template/src/views/table/complex-table.vue +379 -0
- package/template/src/views/table/drag-table.vue +153 -0
- package/template/src/views/table/dynamic-table/components/FixedThead.vue +62 -0
- package/template/src/views/table/dynamic-table/components/UnfixedThead.vue +50 -0
- package/template/src/views/table/dynamic-table/index.vue +24 -0
- package/template/src/views/table/inline-edit-table.vue +149 -0
- package/template/src/views/theme/index.vue +120 -0
- package/template/src/views/zip/index.vue +77 -0
- package/template/tests/unit/.eslintrc.js +5 -0
- package/template/tests/unit/components/Hamburger.spec.js +18 -0
- package/template/tests/unit/components/SvgIcon.spec.js +22 -0
- package/template/tests/unit/utils/formatTime.spec.js +29 -0
- package/template/tests/unit/utils/param2Obj.spec.js +14 -0
- package/template/tests/unit/utils/parseTime.spec.js +37 -0
- package/template/tests/unit/utils/validate.spec.js +28 -0
- package/template/vue.config.js +125 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<aside>
|
|
4
|
+
When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner
|
|
5
|
+
</aside>
|
|
6
|
+
<aside>
|
|
7
|
+
You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally
|
|
8
|
+
</aside>
|
|
9
|
+
<div class="placeholder-container">
|
|
10
|
+
<div>placeholder</div>
|
|
11
|
+
<div>placeholder</div>
|
|
12
|
+
<div>placeholder</div>
|
|
13
|
+
<div>placeholder</div>
|
|
14
|
+
<div>placeholder</div>
|
|
15
|
+
<div>placeholder</div>
|
|
16
|
+
<div>placeholder</div>
|
|
17
|
+
<div>placeholder</div>
|
|
18
|
+
<div>placeholder</div>
|
|
19
|
+
<div>placeholder</div>
|
|
20
|
+
<div>placeholder</div>
|
|
21
|
+
<div>placeholder</div>
|
|
22
|
+
<div>placeholder</div>
|
|
23
|
+
<div>placeholder</div>
|
|
24
|
+
<div>placeholder</div>
|
|
25
|
+
<div>placeholder</div>
|
|
26
|
+
<div>placeholder</div>
|
|
27
|
+
<div>placeholder</div>
|
|
28
|
+
<div>placeholder</div>
|
|
29
|
+
<div>placeholder</div>
|
|
30
|
+
<div>placeholder</div>
|
|
31
|
+
<div>placeholder</div>
|
|
32
|
+
<div>placeholder</div>
|
|
33
|
+
<div>placeholder</div>
|
|
34
|
+
<div>placeholder</div>
|
|
35
|
+
<div>placeholder</div>
|
|
36
|
+
<div>placeholder</div>
|
|
37
|
+
<div>placeholder</div>
|
|
38
|
+
<div>placeholder</div>
|
|
39
|
+
<div>placeholder</div>
|
|
40
|
+
<div>placeholder</div>
|
|
41
|
+
<div>placeholder</div>
|
|
42
|
+
<div>placeholder</div>
|
|
43
|
+
<div>placeholder</div>
|
|
44
|
+
<div>placeholder</div>
|
|
45
|
+
<div>placeholder</div>
|
|
46
|
+
<div>placeholder</div>
|
|
47
|
+
<div>placeholder</div>
|
|
48
|
+
<div>placeholder</div>
|
|
49
|
+
<div>placeholder</div>
|
|
50
|
+
<div>placeholder</div>
|
|
51
|
+
<div>placeholder</div>
|
|
52
|
+
<div>placeholder</div>
|
|
53
|
+
<div>placeholder</div>
|
|
54
|
+
<div>placeholder</div>
|
|
55
|
+
<div>placeholder</div>
|
|
56
|
+
<div>placeholder</div>
|
|
57
|
+
<div>placeholder</div>
|
|
58
|
+
<div>placeholder</div>
|
|
59
|
+
<div>placeholder</div>
|
|
60
|
+
<div>placeholder</div>
|
|
61
|
+
<div>placeholder</div>
|
|
62
|
+
<div>placeholder</div>
|
|
63
|
+
<div>placeholder</div>
|
|
64
|
+
<div>placeholder</div>
|
|
65
|
+
<div>placeholder</div>
|
|
66
|
+
<div>placeholder</div>
|
|
67
|
+
<div>placeholder</div>
|
|
68
|
+
<div>placeholder</div>
|
|
69
|
+
<div>placeholder</div>
|
|
70
|
+
<div>placeholder</div>
|
|
71
|
+
<div>placeholder</div>
|
|
72
|
+
<div>placeholder</div>
|
|
73
|
+
<div>placeholder</div>
|
|
74
|
+
<div>placeholder</div>
|
|
75
|
+
<div>placeholder</div>
|
|
76
|
+
<div>placeholder</div>
|
|
77
|
+
<div>placeholder</div>
|
|
78
|
+
<div>placeholder</div>
|
|
79
|
+
<div>placeholder</div>
|
|
80
|
+
<div>placeholder</div>
|
|
81
|
+
<div>placeholder</div>
|
|
82
|
+
<div>placeholder</div>
|
|
83
|
+
<div>placeholder</div>
|
|
84
|
+
<div>placeholder</div>
|
|
85
|
+
<div>placeholder</div>
|
|
86
|
+
<div>placeholder</div>
|
|
87
|
+
<div>placeholder</div>
|
|
88
|
+
<div>placeholder</div>
|
|
89
|
+
<div>placeholder</div>
|
|
90
|
+
<div>placeholder</div>
|
|
91
|
+
<div>placeholder</div>
|
|
92
|
+
<div>placeholder</div>
|
|
93
|
+
<div>placeholder</div>
|
|
94
|
+
<div>placeholder</div>
|
|
95
|
+
<div>placeholder</div>
|
|
96
|
+
<div>placeholder</div>
|
|
97
|
+
<div>placeholder</div>
|
|
98
|
+
<div>placeholder</div>
|
|
99
|
+
<div>placeholder</div>
|
|
100
|
+
<div>placeholder</div>
|
|
101
|
+
<div>placeholder</div>
|
|
102
|
+
<div>placeholder</div>
|
|
103
|
+
<div>placeholder</div>
|
|
104
|
+
<div>placeholder</div>
|
|
105
|
+
<div>placeholder</div>
|
|
106
|
+
<div>placeholder</div>
|
|
107
|
+
<div>placeholder</div>
|
|
108
|
+
<div>placeholder</div>
|
|
109
|
+
<div>placeholder</div>
|
|
110
|
+
<div>placeholder</div>
|
|
111
|
+
<div>placeholder</div>
|
|
112
|
+
<div>placeholder</div>
|
|
113
|
+
<div>placeholder</div>
|
|
114
|
+
<div>placeholder</div>
|
|
115
|
+
<div>placeholder</div>
|
|
116
|
+
<div>placeholder</div>
|
|
117
|
+
<div>placeholder</div>
|
|
118
|
+
<div>placeholder</div>
|
|
119
|
+
</div>
|
|
120
|
+
<!-- you can add element-ui's tooltip -->
|
|
121
|
+
<el-tooltip placement="top" content="tooltip">
|
|
122
|
+
<back-to-top :custom-style="myBackToTopStyle" :visibility-height="300" :back-position="50" transition-name="fade" />
|
|
123
|
+
</el-tooltip>
|
|
124
|
+
</div>
|
|
125
|
+
</template>
|
|
126
|
+
|
|
127
|
+
<script>
|
|
128
|
+
import BackToTop from '@/components/BackToTop'
|
|
129
|
+
|
|
130
|
+
export default {
|
|
131
|
+
name: 'BackToTopDemo',
|
|
132
|
+
components: { BackToTop },
|
|
133
|
+
data() {
|
|
134
|
+
return {
|
|
135
|
+
// customizable button style, show/hide critical point, return position
|
|
136
|
+
myBackToTopStyle: {
|
|
137
|
+
right: '50px',
|
|
138
|
+
bottom: '50px',
|
|
139
|
+
width: '40px',
|
|
140
|
+
height: '40px',
|
|
141
|
+
'border-radius': '4px',
|
|
142
|
+
'line-height': '45px', // 请保持与高度一致以垂直居中 Please keep consistent with height to center vertically
|
|
143
|
+
background: '#e7eaf1'// 按钮的背景颜色 The background color of the button
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
</script>
|
|
149
|
+
|
|
150
|
+
<style scoped>
|
|
151
|
+
.placeholder-container div {
|
|
152
|
+
margin: 10px;
|
|
153
|
+
}
|
|
154
|
+
</style>
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<aside>
|
|
4
|
+
<a href="https://github.com/PanJiaChen/vue-countTo" target="_blank">countTo-component</a>
|
|
5
|
+
</aside>
|
|
6
|
+
<count-to
|
|
7
|
+
ref="example"
|
|
8
|
+
:start-val="_startVal"
|
|
9
|
+
:end-val="_endVal"
|
|
10
|
+
:duration="_duration"
|
|
11
|
+
:decimals="_decimals"
|
|
12
|
+
:separator="_separator"
|
|
13
|
+
:prefix="_prefix"
|
|
14
|
+
:suffix="_suffix"
|
|
15
|
+
:autoplay="false"
|
|
16
|
+
class="example"
|
|
17
|
+
/>
|
|
18
|
+
<div style="margin-left: 25%;margin-top: 40px;">
|
|
19
|
+
<label class="label" for="startValInput">startVal:
|
|
20
|
+
<input v-model.number="setStartVal" type="number" name="startValInput">
|
|
21
|
+
</label>
|
|
22
|
+
<label class="label" for="endValInput">endVal:
|
|
23
|
+
<input v-model.number="setEndVal" type="number" name="endVaInput">
|
|
24
|
+
</label>
|
|
25
|
+
<label class="label" for="durationInput">duration:
|
|
26
|
+
<input v-model.number="setDuration" type="number" name="durationInput">
|
|
27
|
+
</label>
|
|
28
|
+
<div class="startBtn example-btn" @click="start">
|
|
29
|
+
Start
|
|
30
|
+
</div>
|
|
31
|
+
<div class="pause-resume-btn example-btn" @click="pauseResume">
|
|
32
|
+
pause/resume
|
|
33
|
+
</div>
|
|
34
|
+
<br>
|
|
35
|
+
<label class="label" for="decimalsInput">decimals:
|
|
36
|
+
<input v-model.number="setDecimals" type="number" name="decimalsInput">
|
|
37
|
+
</label>
|
|
38
|
+
<label class="label" for="separatorInput">separator:
|
|
39
|
+
<input v-model="setSeparator" name="separatorInput">
|
|
40
|
+
</label>
|
|
41
|
+
<label class="label" for="prefixInput">prefix:
|
|
42
|
+
<input v-model="setPrefix" name="prefixInput">
|
|
43
|
+
</label>
|
|
44
|
+
<label class="label" for="suffixInput">suffix:
|
|
45
|
+
<input v-model="setSuffix" name="suffixInput">
|
|
46
|
+
</label>
|
|
47
|
+
</div>
|
|
48
|
+
<aside><count-to :start-val='{{ _startVal }}' :end-val='{{ _endVal }}' :duration='{{ _duration }}'
|
|
49
|
+
:decimals='{{ _decimals }}' :separator='{{ _separator }}' :prefix='{{ _prefix }}' :suffix='{{ _suffix }}'
|
|
50
|
+
:autoplay=false></aside>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<script>
|
|
55
|
+
import countTo from 'vue-count-to'
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
name: 'CountToDemo',
|
|
59
|
+
components: { countTo },
|
|
60
|
+
data() {
|
|
61
|
+
return {
|
|
62
|
+
setStartVal: 0,
|
|
63
|
+
setEndVal: 2017,
|
|
64
|
+
setDuration: 4000,
|
|
65
|
+
setDecimals: 0,
|
|
66
|
+
setSeparator: ',',
|
|
67
|
+
setSuffix: ' rmb',
|
|
68
|
+
setPrefix: '¥ '
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
computed: {
|
|
72
|
+
_startVal() {
|
|
73
|
+
if (this.setStartVal) {
|
|
74
|
+
return this.setStartVal
|
|
75
|
+
} else {
|
|
76
|
+
return 0
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
_endVal() {
|
|
80
|
+
if (this.setEndVal) {
|
|
81
|
+
return this.setEndVal
|
|
82
|
+
} else {
|
|
83
|
+
return 0
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
_duration() {
|
|
87
|
+
if (this.setDuration) {
|
|
88
|
+
return this.setDuration
|
|
89
|
+
} else {
|
|
90
|
+
return 100
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
_decimals() {
|
|
94
|
+
if (this.setDecimals) {
|
|
95
|
+
if (this.setDecimals < 0 || this.setDecimals > 20) {
|
|
96
|
+
alert('digits argument must be between 0 and 20')
|
|
97
|
+
return 0
|
|
98
|
+
}
|
|
99
|
+
return this.setDecimals
|
|
100
|
+
} else {
|
|
101
|
+
return 0
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
_separator() {
|
|
105
|
+
return this.setSeparator
|
|
106
|
+
},
|
|
107
|
+
_suffix() {
|
|
108
|
+
return this.setSuffix
|
|
109
|
+
},
|
|
110
|
+
_prefix() {
|
|
111
|
+
return this.setPrefix
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
methods: {
|
|
115
|
+
start() {
|
|
116
|
+
this.$refs.example.start()
|
|
117
|
+
},
|
|
118
|
+
pauseResume() {
|
|
119
|
+
this.$refs.example.pauseResume()
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
</script>
|
|
124
|
+
|
|
125
|
+
<style scoped>
|
|
126
|
+
.example-btn {
|
|
127
|
+
display: inline-block;
|
|
128
|
+
margin-bottom: 0;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
text-align: center;
|
|
131
|
+
-ms-touch-action: manipulation;
|
|
132
|
+
touch-action: manipulation;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
background-image: none;
|
|
135
|
+
border: 1px solid transparent;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
line-height: 1.5;
|
|
138
|
+
padding: 4px 15px;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
border-radius: 4px;
|
|
141
|
+
-webkit-user-select: none;
|
|
142
|
+
-moz-user-select: none;
|
|
143
|
+
-ms-user-select: none;
|
|
144
|
+
user-select: none;
|
|
145
|
+
-webkit-transition: all .3s cubic-bezier(.645, .045, .355, 1);
|
|
146
|
+
transition: all .3s cubic-bezier(.645, .045, .355, 1);
|
|
147
|
+
position: relative;
|
|
148
|
+
color: rgba(0, 0, 0, .65);
|
|
149
|
+
background-color: #fff;
|
|
150
|
+
border-color: #d9d9d9;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.example-btn:hover {
|
|
154
|
+
color: #4AB7BD;
|
|
155
|
+
background-color: #fff;
|
|
156
|
+
border-color: #4AB7BD;
|
|
157
|
+
}
|
|
158
|
+
.example {
|
|
159
|
+
font-size: 50px;
|
|
160
|
+
color: #F6416C;
|
|
161
|
+
display: block;
|
|
162
|
+
margin: 10px 0;
|
|
163
|
+
text-align: center;
|
|
164
|
+
font-size: 80px;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.label {
|
|
169
|
+
color: #2f4f4f;
|
|
170
|
+
font-size: 16px;
|
|
171
|
+
display: inline-block;
|
|
172
|
+
margin: 15px 30px 15px 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
input {
|
|
176
|
+
position: relative;
|
|
177
|
+
display: inline-block;
|
|
178
|
+
padding: 4px 7px;
|
|
179
|
+
width: 70px;
|
|
180
|
+
height: 28px;
|
|
181
|
+
cursor: text;
|
|
182
|
+
font-size: 12px;
|
|
183
|
+
line-height: 1.5;
|
|
184
|
+
color: rgba(0, 0, 0, .65);
|
|
185
|
+
background-color: #fff;
|
|
186
|
+
background-image: none;
|
|
187
|
+
border: 1px solid #d9d9d9;
|
|
188
|
+
border-radius: 4px;
|
|
189
|
+
-webkit-transition: all .3s;
|
|
190
|
+
transition: all .3s;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.startBtn {
|
|
194
|
+
margin-left: 20px;
|
|
195
|
+
font-size: 20px;
|
|
196
|
+
color: #30B08F;
|
|
197
|
+
background-color: #fff;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.startBtn:hover {
|
|
201
|
+
background-color: #30B08F;
|
|
202
|
+
color: #fff;
|
|
203
|
+
border-color: #30B08F;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.pause-resume-btn {
|
|
207
|
+
font-size: 20px;
|
|
208
|
+
color: #E65D6E;
|
|
209
|
+
background-color: #fff;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.pause-resume-btn:hover {
|
|
213
|
+
background-color: #E65D6E;
|
|
214
|
+
color: #fff;
|
|
215
|
+
border-color: #E65D6E;
|
|
216
|
+
}
|
|
217
|
+
</style>
|
|
218
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<aside>drag-list base on
|
|
4
|
+
<a href="https://github.com/SortableJS/Vue.Draggable" target="_blank">Vue.Draggable</a>
|
|
5
|
+
</aside>
|
|
6
|
+
<div class="editor-container">
|
|
7
|
+
<dnd-list :list1="list1" :list2="list2" list1-title="List" list2-title="Article pool" />
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
import DndList from '@/components/DndList'
|
|
14
|
+
import { fetchList } from '@/api/article'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'DndListDemo',
|
|
18
|
+
components: { DndList },
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
list1: [],
|
|
22
|
+
list2: []
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
created() {
|
|
26
|
+
this.getData()
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
getData() {
|
|
30
|
+
this.listLoading = true
|
|
31
|
+
fetchList().then(response => {
|
|
32
|
+
this.list1 = response.data.items.splice(0, 5)
|
|
33
|
+
this.list2 = response.data.items
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<el-button type="primary" @click="dialogTableVisible = true">
|
|
4
|
+
open a Drag Dialog
|
|
5
|
+
</el-button>
|
|
6
|
+
<el-dialog v-el-drag-dialog :visible.sync="dialogTableVisible" title="Shipping address" @dragDialog="handleDrag">
|
|
7
|
+
<el-select ref="select" v-model="value" placeholder="请选择">
|
|
8
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
9
|
+
</el-select>
|
|
10
|
+
<el-table :data="gridData">
|
|
11
|
+
<el-table-column property="date" label="Date" width="150" />
|
|
12
|
+
<el-table-column property="name" label="Name" width="200" />
|
|
13
|
+
<el-table-column property="address" label="Address" />
|
|
14
|
+
</el-table>
|
|
15
|
+
</el-dialog>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import elDragDialog from '@/directive/el-drag-dialog' // base on element-ui
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'DragDialogDemo',
|
|
24
|
+
directives: { elDragDialog },
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
dialogTableVisible: false,
|
|
28
|
+
options: [
|
|
29
|
+
{ value: '选项1', label: '黄金糕' },
|
|
30
|
+
{ value: '选项2', label: '双皮奶' },
|
|
31
|
+
{ value: '选项3', label: '蚵仔煎' },
|
|
32
|
+
{ value: '选项4', label: '龙须面' }
|
|
33
|
+
],
|
|
34
|
+
value: '',
|
|
35
|
+
gridData: [{
|
|
36
|
+
date: '2016-05-02',
|
|
37
|
+
name: 'John Smith',
|
|
38
|
+
address: 'No.1518, Jinshajiang Road, Putuo District'
|
|
39
|
+
}, {
|
|
40
|
+
date: '2016-05-04',
|
|
41
|
+
name: 'John Smith',
|
|
42
|
+
address: 'No.1518, Jinshajiang Road, Putuo District'
|
|
43
|
+
}, {
|
|
44
|
+
date: '2016-05-01',
|
|
45
|
+
name: 'John Smith',
|
|
46
|
+
address: 'No.1518, Jinshajiang Road, Putuo District'
|
|
47
|
+
}, {
|
|
48
|
+
date: '2016-05-03',
|
|
49
|
+
name: 'John Smith',
|
|
50
|
+
address: 'No.1518, Jinshajiang Road, Putuo District'
|
|
51
|
+
}]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
// v-el-drag-dialog onDrag callback function
|
|
56
|
+
handleDrag() {
|
|
57
|
+
this.$refs.select.blur()
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container board">
|
|
3
|
+
<Kanban :key="1" :list="list1" :group="group" class="kanban todo" header-text="Todo" />
|
|
4
|
+
<Kanban :key="2" :list="list2" :group="group" class="kanban working" header-text="Working" />
|
|
5
|
+
<Kanban :key="3" :list="list3" :group="group" class="kanban done" header-text="Done" />
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
<script>
|
|
9
|
+
import Kanban from '@/components/Kanban'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: 'DragKanbanDemo',
|
|
13
|
+
components: {
|
|
14
|
+
Kanban
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
group: 'mission',
|
|
19
|
+
list1: [
|
|
20
|
+
{ name: 'Mission', id: 1 },
|
|
21
|
+
{ name: 'Mission', id: 2 },
|
|
22
|
+
{ name: 'Mission', id: 3 },
|
|
23
|
+
{ name: 'Mission', id: 4 }
|
|
24
|
+
],
|
|
25
|
+
list2: [
|
|
26
|
+
{ name: 'Mission', id: 5 },
|
|
27
|
+
{ name: 'Mission', id: 6 },
|
|
28
|
+
{ name: 'Mission', id: 7 }
|
|
29
|
+
],
|
|
30
|
+
list3: [
|
|
31
|
+
{ name: 'Mission', id: 8 },
|
|
32
|
+
{ name: 'Mission', id: 9 },
|
|
33
|
+
{ name: 'Mission', id: 10 }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
<style lang="scss">
|
|
40
|
+
.board {
|
|
41
|
+
width: 1000px;
|
|
42
|
+
margin-left: 20px;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-around;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
align-items: flex-start;
|
|
47
|
+
}
|
|
48
|
+
.kanban {
|
|
49
|
+
&.todo {
|
|
50
|
+
.board-column-header {
|
|
51
|
+
background: #4A9FF9;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&.working {
|
|
55
|
+
.board-column-header {
|
|
56
|
+
background: #f9944a;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&.done {
|
|
60
|
+
.board-column-header {
|
|
61
|
+
background: #2ac06d;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
66
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<el-drag-select v-model="value" style="width:500px;" multiple placeholder="请选择">
|
|
4
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
5
|
+
</el-drag-select>
|
|
6
|
+
|
|
7
|
+
<div style="margin-top:30px;">
|
|
8
|
+
<el-tag v-for="item of value" :key="item" style="margin-right:15px;">
|
|
9
|
+
{{ item }}
|
|
10
|
+
</el-tag>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import ElDragSelect from '@/components/DragSelect' // base on element-ui
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'DragSelectDemo',
|
|
20
|
+
components: { ElDragSelect },
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
value: ['Apple', 'Banana', 'Orange'],
|
|
24
|
+
options: [{
|
|
25
|
+
value: 'Apple',
|
|
26
|
+
label: 'Apple'
|
|
27
|
+
}, {
|
|
28
|
+
value: 'Banana',
|
|
29
|
+
label: 'Banana'
|
|
30
|
+
}, {
|
|
31
|
+
value: 'Orange',
|
|
32
|
+
label: 'Orange'
|
|
33
|
+
}, {
|
|
34
|
+
value: 'Pear',
|
|
35
|
+
label: 'Pear'
|
|
36
|
+
}, {
|
|
37
|
+
value: 'Strawberry',
|
|
38
|
+
label: 'Strawberry'
|
|
39
|
+
}]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<aside>
|
|
4
|
+
Based on <a class="link-type" href="https://github.com/rowanwins/vue-dropzone"> dropzone </a>.
|
|
5
|
+
Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.
|
|
6
|
+
</aside>
|
|
7
|
+
<div class="editor-container">
|
|
8
|
+
<dropzone id="myVueDropzone" url="https://httpbin.org/post" @dropzone-removedFile="dropzoneR" @dropzone-success="dropzoneS" />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import Dropzone from '@/components/Dropzone'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'DropzoneDemo',
|
|
18
|
+
components: { Dropzone },
|
|
19
|
+
methods: {
|
|
20
|
+
dropzoneS(file) {
|
|
21
|
+
console.log(file)
|
|
22
|
+
this.$message({ message: 'Upload success', type: 'success' })
|
|
23
|
+
},
|
|
24
|
+
dropzoneR(file) {
|
|
25
|
+
console.log(file)
|
|
26
|
+
this.$message({ message: 'Delete success', type: 'success' })
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="components-container">
|
|
3
|
+
<aside>Json-Editor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a>. Lint
|
|
4
|
+
base on <a
|
|
5
|
+
href="https://github.com/codemirror/CodeMirror/blob/master/addon/lint/json-lint.js"
|
|
6
|
+
target="_blank"
|
|
7
|
+
>json-lint</a>.</aside>
|
|
8
|
+
<div class="editor-container">
|
|
9
|
+
<json-editor ref="jsonEditor" v-model="value" />
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import JsonEditor from '@/components/JsonEditor'
|
|
16
|
+
|
|
17
|
+
const jsonData = '[{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"CORN"}],"name":""},{"items":[{"market_type":"forexdata","symbol":"XAUUSD"},{"market_type":"forexdata","symbol":"XAGUSD"},{"market_type":"forexdata","symbol":"AUTD"},{"market_type":"forexdata","symbol":"AGTD"}],"name":"贵金属"},{"items":[{"market_type":"forexdata","symbol":"CORN"},{"market_type":"forexdata","symbol":"WHEAT"},{"market_type":"forexdata","symbol":"SOYBEAN"},{"market_type":"forexdata","symbol":"SUGAR"}],"name":"农产品"},{"items":[{"market_type":"forexdata","symbol":"UKOIL"},{"market_type":"forexdata","symbol":"USOIL"},{"market_type":"forexdata","symbol":"NGAS"}],"name":"能源化工"}]'
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
name: 'JsonEditorDemo',
|
|
21
|
+
components: { JsonEditor },
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
value: JSON.parse(jsonData)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style scoped>
|
|
31
|
+
.editor-container{
|
|
32
|
+
position: relative;
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
36
|
+
|