Commit d67ca64b by yangming

footer

1 parent 7af4d760
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -3,15 +3,12 @@
<!-- <img alt="Vue logo" src="./assets/logo.png" /> -->
<!-- <HelloWorld msg="Welcome to Your Vue.js App" />
<GLExternal url="//localhost:8080/html/employee/index.html" :subscribe="subscribe"></GLExternal> -->
<hr />
<h3>el-button调整</h3>
<GLButton @click="click" fn="1-1-1-11" mode="el-button" display="disabled">232321321</GLButton>
<el-button type="primary">aaa</el-button>
<el-button type="primary" size="small">aaa</el-button>
<el-button type="primary" size="mini">aaa</el-button>
<hr />
<h3>el-dialog调整</h3>
<!-- <GLDialog :visible.sync="visible" title="aaaaaaaaa">
......@@ -22,7 +19,6 @@
</GLDialog> -->
<hr />
<h3>el-table调整</h3>
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData">
<span slot="shareImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.shareImgUrl" />
......@@ -34,10 +30,8 @@
<el-button v-if="scope.scope.liveStatus != '101'" type="text" @click="handleDelete(scope.scope)">删除</el-button>
</span>
</GLTable>
<hr />
<h3>el-tooltip调整</h3>
<!-- <gl-tooltip class="item" effect="dark" content="hello tooltip" placement="top-start">
<el-button>上左</el-button> -->
<!-- <template slot='content'>
......@@ -50,12 +44,10 @@
<p>Here's some contact info</p>
</template>
</gl-tooltip> -->
<!-- <el-tooltip class="item" content="hello tooltip" placement="top-start">
<el-button>上左</el-button>
</el-tooltip> -->
<el-popover popper-class="bubble-box" placement="top" width="600" trigger="click">
<Popover popper-class="bubble-box" placement="top" width="600" trigger="click">
<div class="bubble-content">
<el-table :data="gridData">
<el-table-column width="150" property="date" label="日期"></el-table-column>
......@@ -63,10 +55,9 @@
<el-table-column width="300" property="address" label="地址"></el-table-column>
</el-table>
</div>
<el-button slot="reference">click 激活</el-button>
</el-popover>
</Popover>
<GLFooter></GLFooter>
<!-- <el-popover
placement="bottom"
title="标题"
......@@ -76,7 +67,6 @@
v-model="visible">
<el-button slot="reference" @click="visible = !visible">手动激活</el-button>
</el-popover> -->
<!-- <el-popover
placement="top"
width="160"
......@@ -90,7 +80,6 @@
</el-popover> -->
</div>
</template>
<script>
export default {
name: 'App',
......@@ -309,7 +298,6 @@ export default {
}
}
</script>
<style lang="scss">
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
......@@ -322,4 +310,4 @@ export default {
padding-bottom: 50px;
height: 2000px;
}
</style>
</style>
\ No newline at end of file
import GLFooter from './src/index.vue'
// 为组件提供 install 安装方法,供按需引入
GLFooter.install = function(Vue) {
Vue.component(GLFooter.name, GLFooter)
}
// 默认导出组件
export default GLFooter
\ No newline at end of file
<template>
<div
class="scrm-footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<slot></slot>
</div>
</template>
<script>
export default {
name: 'GLFooter',
props: {
className: {
type: String,
default: '.base-container-right'
}
},
data() {
return {
footerLeft: 0,
footerWidth: 0
}
},
methods: {
resize() {
this.footerLeft = document.querySelector(this.className)?document.querySelector(this.className).offsetLeft : 0
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
},
destroyed() {
window.removeEventListener('resize', this.resize)
},
mounted() {
this.resize()
window.addEventListener('resize', this.resize)
}
}
</script>
<style lang="scss">
.scrm-footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
......@@ -43,12 +43,12 @@ import GLExternal from './External'
import GLButton from './Button'
import GLDialog from './Dialog'
import GLTable from './Table'
import GLFooter from './Footer'
// 一次性注册所有的过滤器 本地测试
import filters from '@/filters'
// 存储组件列表
const components = [TestComp, GLExternal, GLButton, GLDialog, GLTable]
const components = [TestComp, GLExternal, GLButton, GLDialog, GLTable,GLFooter]
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
const install = function(Vue) {
......@@ -73,5 +73,6 @@ export default {
GLExternal,
GLButton,
GLDialog,
GLTable
GLTable,
GLFooter
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!