@melt-js/tpl-vue2-admin-ele 0.0.0-stage → 1.0.2

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.
Files changed (115) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -3
  3. package/hel_dist/entry.js +37 -0
  4. package/hel_dist/favicon.ico +0 -0
  5. package/hel_dist/hel-meta.json +127 -0
  6. package/hel_dist/hel_userChunk_1.js +1 -0
  7. package/hel_dist/index.html +1 -0
  8. package/hel_dist/static/css/chunk-017edab0.c58e968f.css +1 -0
  9. package/hel_dist/static/css/chunk-5eaa4e8c.fdc15fc9.css +1 -0
  10. package/hel_dist/static/css/chunk-67ce6001.3f0a3a92.css +1 -0
  11. package/hel_dist/static/css/chunk-6d379bf5.f23be7e7.css +1 -0
  12. package/hel_dist/static/css/chunk-718db1ae.6eddafbb.css +1 -0
  13. package/hel_dist/static/css/chunk-7ba44fd1.85e72a0e.css +1 -0
  14. package/hel_dist/static/css/chunk-de514d9e.00a6d6a6.css +1 -0
  15. package/hel_dist/static/css/chunk-elementUI.5646d24e.css +1 -0
  16. package/hel_dist/static/fonts/element-icons.535877f5.woff +0 -0
  17. package/hel_dist/static/fonts/element-icons.732389de.ttf +0 -0
  18. package/hel_dist/static/img/404.a57b6f31.png +0 -0
  19. package/hel_dist/static/img/404_cloud.0f4bc32b.png +0 -0
  20. package/hel_dist/static/img/logo.82b9c7a5.png +0 -0
  21. package/hel_dist/static/js/app.4c22465f.js +1 -0
  22. package/hel_dist/static/js/chunk-017edab0.362048d2.js +1 -0
  23. package/hel_dist/static/js/chunk-2d0c8bf7.70b29a00.js +1 -0
  24. package/hel_dist/static/js/chunk-2d0cfaef.084b1334.js +1 -0
  25. package/hel_dist/static/js/chunk-2d0d0f79.d7d27267.js +1 -0
  26. package/hel_dist/static/js/chunk-2d0e4b0c.3835385f.js +1 -0
  27. package/hel_dist/static/js/chunk-2d0e4e1f.0c68ea9c.js +1 -0
  28. package/hel_dist/static/js/chunk-2d0e944c.5d7311c9.js +1 -0
  29. package/hel_dist/static/js/chunk-2d2104c6.b1e1cf15.js +1 -0
  30. package/hel_dist/static/js/chunk-2d226cab.f4b20d3f.js +1 -0
  31. package/hel_dist/static/js/chunk-2d229205.b6def72f.js +1 -0
  32. package/hel_dist/static/js/chunk-5eaa4e8c.62e343d1.js +1 -0
  33. package/hel_dist/static/js/chunk-67ce6001.c7dec55f.js +1 -0
  34. package/hel_dist/static/js/chunk-6d379bf5.3d4baab7.js +1 -0
  35. package/hel_dist/static/js/chunk-718db1ae.a79def1c.js +1 -0
  36. package/hel_dist/static/js/chunk-7ba44fd1.b80386b8.js +33 -0
  37. package/hel_dist/static/js/chunk-de514d9e.96bc330f.js +1 -0
  38. package/hel_dist/static/js/chunk-elementUI.f4fd50f4.js +9 -0
  39. package/hel_dist/static/js/chunk-libs.8a568f76.js +17 -0
  40. package/hel_proxy/entry.js +37 -0
  41. package/hel_proxy_es/entry.js +28 -0
  42. package/package.json +95 -4
  43. package/scripts/check.js +13 -0
  44. package/scripts/meta.js +19 -0
  45. package/scripts/prepublishOnly.js +26 -0
  46. package/src/App.vue +11 -0
  47. package/src/api/table.js +9 -0
  48. package/src/api/user.js +24 -0
  49. package/src/assets/404_images/404.png +0 -0
  50. package/src/assets/404_images/404_cloud.png +0 -0
  51. package/src/components/Breadcrumb/index.vue +78 -0
  52. package/src/components/Hamburger/index.vue +44 -0
  53. package/src/components/SvgIcon/index.vue +62 -0
  54. package/src/components/index.js +2 -0
  55. package/src/configs/subApp.js +9 -0
  56. package/src/entrance/libProperties.js +10 -0
  57. package/src/entrance/libTypes.ts +24 -0
  58. package/src/icons/index.js +9 -0
  59. package/src/icons/svg/dashboard.svg +1 -0
  60. package/src/icons/svg/example.svg +1 -0
  61. package/src/icons/svg/eye-open.svg +1 -0
  62. package/src/icons/svg/eye.svg +1 -0
  63. package/src/icons/svg/form.svg +1 -0
  64. package/src/icons/svg/link.svg +1 -0
  65. package/src/icons/svg/nested.svg +1 -0
  66. package/src/icons/svg/password.svg +1 -0
  67. package/src/icons/svg/table.svg +1 -0
  68. package/src/icons/svg/tree.svg +1 -0
  69. package/src/icons/svg/user.svg +1 -0
  70. package/src/icons/svgo.config.js +9 -0
  71. package/src/layout/components/AppMain.vue +40 -0
  72. package/src/layout/components/Navbar.vue +139 -0
  73. package/src/layout/components/Sidebar/FixiOSBug.js +26 -0
  74. package/src/layout/components/Sidebar/Item.vue +41 -0
  75. package/src/layout/components/Sidebar/Link.vue +43 -0
  76. package/src/layout/components/Sidebar/Logo.vue +82 -0
  77. package/src/layout/components/Sidebar/SidebarItem.vue +95 -0
  78. package/src/layout/components/Sidebar/index.vue +56 -0
  79. package/src/layout/components/index.js +3 -0
  80. package/src/layout/index.vue +93 -0
  81. package/src/layout/mixin/ResizeHandler.js +45 -0
  82. package/src/loadApp.js +43 -0
  83. package/src/main.js +13 -0
  84. package/src/permission.js +64 -0
  85. package/src/router/index.js +181 -0
  86. package/src/settings.js +16 -0
  87. package/src/store/getters.js +8 -0
  88. package/src/store/index.js +19 -0
  89. package/src/store/modules/app.js +48 -0
  90. package/src/store/modules/settings.js +32 -0
  91. package/src/store/modules/user.js +97 -0
  92. package/src/styles/element-ui.scss +49 -0
  93. package/src/styles/index.scss +65 -0
  94. package/src/styles/mixin.scss +28 -0
  95. package/src/styles/sidebar.scss +226 -0
  96. package/src/styles/transition.scss +48 -0
  97. package/src/styles/variables.scss +25 -0
  98. package/src/utils/auth.js +15 -0
  99. package/src/utils/get-page-title.js +10 -0
  100. package/src/utils/index.js +117 -0
  101. package/src/utils/request.js +85 -0
  102. package/src/utils/validate.js +20 -0
  103. package/src/views/404.vue +228 -0
  104. package/src/views/dashboard/index.vue +37 -0
  105. package/src/views/form/index.vue +85 -0
  106. package/src/views/login/index.vue +237 -0
  107. package/src/views/nested/menu1/index.vue +7 -0
  108. package/src/views/nested/menu1/menu1-1/index.vue +7 -0
  109. package/src/views/nested/menu1/menu1-2/index.vue +7 -0
  110. package/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue +5 -0
  111. package/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue +5 -0
  112. package/src/views/nested/menu1/menu1-3/index.vue +5 -0
  113. package/src/views/nested/menu2/index.vue +5 -0
  114. package/src/views/table/index.vue +79 -0
  115. package/src/views/tree/index.vue +78 -0
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <div style="padding:30px;">
3
+ <el-alert :closable="false" title="menu 1-2" type="success">
4
+ <router-view />
5
+ </el-alert>
6
+ </div>
7
+ </template>
@@ -0,0 +1,5 @@
1
+ <template functional>
2
+ <div style="padding:30px;">
3
+ <el-alert :closable="false" title="menu 1-2-1" type="warning" />
4
+ </div>
5
+ </template>
@@ -0,0 +1,5 @@
1
+ <template functional>
2
+ <div style="padding:30px;">
3
+ <el-alert :closable="false" title="menu 1-2-2" type="warning" />
4
+ </div>
5
+ </template>
@@ -0,0 +1,5 @@
1
+ <template functional>
2
+ <div style="padding:30px;">
3
+ <el-alert :closable="false" title="menu 1-3" type="success" />
4
+ </div>
5
+ </template>
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <div style="padding:30px;">
3
+ <el-alert :closable="false" title="menu 2" />
4
+ </div>
5
+ </template>
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <el-table
4
+ v-loading="listLoading"
5
+ :data="list"
6
+ element-loading-text="Loading"
7
+ border
8
+ fit
9
+ highlight-current-row
10
+ >
11
+ <el-table-column align="center" label="ID" width="95">
12
+ <template slot-scope="scope">
13
+ {{ scope.$index }}
14
+ </template>
15
+ </el-table-column>
16
+ <el-table-column label="Title">
17
+ <template slot-scope="scope">
18
+ {{ scope.row.title }}
19
+ </template>
20
+ </el-table-column>
21
+ <el-table-column label="Author" width="110" align="center">
22
+ <template slot-scope="scope">
23
+ <span>{{ scope.row.author }}</span>
24
+ </template>
25
+ </el-table-column>
26
+ <el-table-column label="Pageviews" width="110" align="center">
27
+ <template slot-scope="scope">
28
+ {{ scope.row.pageviews }}
29
+ </template>
30
+ </el-table-column>
31
+ <el-table-column class-name="status-col" label="Status" width="110" align="center">
32
+ <template slot-scope="scope">
33
+ <el-tag :type="scope.row.status | statusFilter">{{ scope.row.status }}</el-tag>
34
+ </template>
35
+ </el-table-column>
36
+ <el-table-column align="center" prop="created_at" label="Display_time" width="200">
37
+ <template slot-scope="scope">
38
+ <i class="el-icon-time" />
39
+ <span>{{ scope.row.display_time }}</span>
40
+ </template>
41
+ </el-table-column>
42
+ </el-table>
43
+ </div>
44
+ </template>
45
+
46
+ <script>
47
+ import { getList } from '@/api/table'
48
+
49
+ export default {
50
+ filters: {
51
+ statusFilter(status) {
52
+ const statusMap = {
53
+ published: 'success',
54
+ draft: 'gray',
55
+ deleted: 'danger'
56
+ }
57
+ return statusMap[status]
58
+ }
59
+ },
60
+ data() {
61
+ return {
62
+ list: null,
63
+ listLoading: true
64
+ }
65
+ },
66
+ created() {
67
+ this.fetchData()
68
+ },
69
+ methods: {
70
+ fetchData() {
71
+ this.listLoading = true
72
+ getList().then(response => {
73
+ this.list = response.data.items
74
+ this.listLoading = false
75
+ })
76
+ }
77
+ }
78
+ }
79
+ </script>
@@ -0,0 +1,78 @@
1
+ <template>
2
+ <div class="app-container">
3
+ <el-input v-model="filterText" placeholder="Filter keyword" style="margin-bottom:30px;" />
4
+
5
+ <el-tree
6
+ ref="tree2"
7
+ :data="data2"
8
+ :props="defaultProps"
9
+ :filter-node-method="filterNode"
10
+ class="filter-tree"
11
+ default-expand-all
12
+ />
13
+
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+
20
+ data() {
21
+ return {
22
+ filterText: '',
23
+ data2: [{
24
+ id: 1,
25
+ label: 'Level one 1',
26
+ children: [{
27
+ id: 4,
28
+ label: 'Level two 1-1',
29
+ children: [{
30
+ id: 9,
31
+ label: 'Level three 1-1-1'
32
+ }, {
33
+ id: 10,
34
+ label: 'Level three 1-1-2'
35
+ }]
36
+ }]
37
+ }, {
38
+ id: 2,
39
+ label: 'Level one 2',
40
+ children: [{
41
+ id: 5,
42
+ label: 'Level two 2-1'
43
+ }, {
44
+ id: 6,
45
+ label: 'Level two 2-2'
46
+ }]
47
+ }, {
48
+ id: 3,
49
+ label: 'Level one 3',
50
+ children: [{
51
+ id: 7,
52
+ label: 'Level two 3-1'
53
+ }, {
54
+ id: 8,
55
+ label: 'Level two 3-2'
56
+ }]
57
+ }],
58
+ defaultProps: {
59
+ children: 'children',
60
+ label: 'label'
61
+ }
62
+ }
63
+ },
64
+ watch: {
65
+ filterText(val) {
66
+ this.$refs.tree2.filter(val)
67
+ }
68
+ },
69
+
70
+ methods: {
71
+ filterNode(value, data) {
72
+ if (!value) return true
73
+ return data.label.indexOf(value) !== -1
74
+ }
75
+ }
76
+ }
77
+ </script>
78
+