t20-common-lib 0.2.1 → 0.2.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.
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-column">
|
|
3
|
+
<div v-if="$slots.header" class="header">
|
|
4
|
+
<slot name="header"></slot>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-if="$slots.card || $slots.tab" style="position: relative;">
|
|
7
|
+
<slot name="card"></slot>
|
|
8
|
+
<div class="tab" v-if="$slots.tab">
|
|
9
|
+
<slot name="tab"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="bg-white flex-1 overflow">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
name: 'MainPage'
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style lang="scss" scoped>
|
|
25
|
+
.tab {
|
|
26
|
+
position: absolute;
|
|
27
|
+
bottom: -34px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.header {
|
|
31
|
+
height: 32px;
|
|
32
|
+
line-height: 32px;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -3,10 +3,12 @@ import fitlers from './filters/index'
|
|
|
3
3
|
import repairEl from './utils/repairElementUI'
|
|
4
4
|
// 导入组件
|
|
5
5
|
import MyButton from '../packages/mybutton/index.js'
|
|
6
|
+
import MainPage from '../packages/main-page/index.js'
|
|
6
7
|
|
|
7
8
|
// 存储组件列表
|
|
8
9
|
const components = [
|
|
9
|
-
MyButton
|
|
10
|
+
MyButton,
|
|
11
|
+
MainPage
|
|
10
12
|
]
|
|
11
13
|
|
|
12
14
|
// 定义 install 方法,接收 Vue 作为参数
|
|
@@ -36,5 +38,6 @@ export default {
|
|
|
36
38
|
export {
|
|
37
39
|
// 以下是具体的组件列表
|
|
38
40
|
MyButton,
|
|
41
|
+
MainPage,
|
|
39
42
|
repairEl
|
|
40
43
|
}
|