ap-dev 1.2.5 → 1.2.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",
@@ -1,52 +0,0 @@
1
- <template>
2
- <div style="height: 100%">
3
- <el-tabs v-model="activeName" class="api-tabs">
4
- <template v-for="(item,index) in options">
5
- <el-tab-pane :label="item.label" :name="'tab' + index" class="api-tab">
6
- <component :is="item.component"></component>
7
- </el-tab-pane>
8
- </template>
9
- </el-tabs>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- // 批量导入modules下的组件
15
- const allComponents = require.context('./../tabs', false, /\.vue$/)
16
- const apiComponents = {}
17
- allComponents.keys().forEach(fileName => {
18
- const comp = allComponents(fileName)
19
- apiComponents[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = comp.default
20
- })
21
- export default {
22
- name: "ApiTabs",
23
- components: apiComponents,
24
- props: {
25
- options: {
26
- type: Array,
27
- }
28
- },
29
- data() {
30
- return {
31
- activeName: 'tab0',
32
- }
33
- }
34
- }
35
- </script>
36
-
37
- <style scoped>
38
- .api-tabs {
39
- display: flex;
40
- flex-flow: column;
41
- height: 100%;
42
- }
43
-
44
- .api-tab {
45
- height: 100%;
46
- }
47
-
48
- .api-tabs /deep/ .el-tabs__content {
49
- flex: 1;
50
- overflow: scroll;
51
- }
52
- </style>