style: 修改整体布局,并修复组件库搜索失效的问题

main
wu.jian2 2 years ago
parent b387acd513
commit 46b8e06a13

@ -1,6 +1,6 @@
{ {
"name": "@gcpaas/data-room-ui", "name": "@gcpaas/data-room-ui",
"version": "0.0.1-2023070402-Alpha", "version": "0.0.1-2023070501-Alpha",
"description": "自定义大屏", "description": "自定义大屏",
"author": "gc-starter", "author": "gc-starter",
"license": "MIT", "license": "MIT",

@ -27,6 +27,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.right-screen-list-wrap { .right-screen-list-wrap {
width: 100%; width: 100%;
// padding-bottom: 16px; height: 100%;
} }
</style> </style>

@ -17,14 +17,16 @@ export default {
} }
}, },
mounted () { }, mounted () { },
methods: {} methods: { }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bs-manage-main-wrap { .bs-manage-main-wrap {
display: flex; position: relative;
width: 100%;
height: 100%; height: 100%;
display: flex;
background-color: var(--bs-background-1); background-color: var(--bs-background-1);
// padding-top: 16px; // padding-top: 16px;
} }

@ -341,7 +341,8 @@ export default {
overflow: auto; overflow: auto;
// //
justify-content: space-around; justify-content: space-around;
max-height: calc(100vh - 304px); // max-height: calc(100vh - 304px);
height: calc(100% - 96px);
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 15px; grid-gap: 15px;

@ -35,6 +35,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.right-screen-list-wrap { .right-screen-list-wrap {
width: 100%; width: 100%;
// padding-bottom: 16px; height: 100%;
} }
</style> </style>

@ -45,8 +45,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bs-manage-main-wrap { .bs-manage-main-wrap {
display: flex; position: relative;
width: 100%;
height: 100%; height: 100%;
display: flex;
background-color: var(--bs-background-1); background-color: var(--bs-background-1);
// padding-top: 16px; // padding-top: 16px;
} }

@ -26,5 +26,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bs-template-mag-wrap{ .bs-template-mag-wrap{
height: 100%; height: 100%;
width: 100%;
position: relative;
} }
</style> </style>

@ -18,7 +18,7 @@
/> />
</el-select> </el-select>
<el-input <el-input
v-model="name" v-model="searchKey"
class="bs-el-input" class="bs-el-input"
placeholder="请输入组件名称" placeholder="请输入组件名称"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
@ -248,7 +248,11 @@ export default {
}, },
methods: { methods: {
reset () { reset () {
this.name = '' this.searchKey = ''
this.current = 1
this.size = 10
this.catalogCode = ''
this.init()
}, },
init () { init () {
if (this.catalogInfo !== 'system') { if (this.catalogInfo !== 'system') {
@ -268,7 +272,7 @@ export default {
this.getDataList() this.getDataList()
} else { } else {
const arr = [...innerRemoteComponents, ...getRemoteComponents()] const arr = [...innerRemoteComponents, ...getRemoteComponents()]
this.list = arr?.filter((item) => item.title.indexOf(this.name) !== -1) this.list = arr?.filter((item) => item.title.indexOf(this.searchKey) !== -1)
} }
}, },
catalogManage () { catalogManage () {
@ -303,8 +307,8 @@ export default {
get('/bigScreen/bizComponent/page', { get('/bigScreen/bizComponent/page', {
current: this.current, current: this.current,
size: this.size, size: this.size,
searchKey: this.searchKey, // searchKey: this.searchKey,
name: this.name, name: this.searchKey,
type: this.catalogCode || null type: this.catalogCode || null
}) })
.then((data) => { .then((data) => {
@ -453,7 +457,8 @@ export default {
overflow: auto; overflow: auto;
// //
justify-content: space-around; justify-content: space-around;
max-height: calc(100vh - 304px); // max-height: calc(100vh - 304px);
height: calc(100% - 96px);
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 15px; grid-gap: 15px;

@ -103,9 +103,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.big-screen-home-wrap { .big-screen-home-wrap {
position: relative; height: 100%;
overflow: hidden;
height: 100vh;
.big-screen-home-wrap-top { .big-screen-home-wrap-top {
position: absolute; position: absolute;

@ -328,6 +328,7 @@ export default {
.big-screen-list-wrap { .big-screen-list-wrap {
position: relative; position: relative;
height: 100%; height: 100%;
// height: calc(100% - 16px);
padding: 16px; padding: 16px;
color: #9ea9b2; color: #9ea9b2;
// margin:0 16px; // margin:0 16px;
@ -361,7 +362,8 @@ export default {
overflow: auto; overflow: auto;
// //
justify-content: space-around; justify-content: space-around;
max-height: calc(100vh - 304px); // max-height: calc(100vh - 304px);
height: calc(100% - 96px);
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-gap: 15px; grid-gap: 15px;

@ -33,6 +33,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.right-screen-list-wrap { .right-screen-list-wrap {
width: 100%; width: 100%;
// padding-bottom: 16px; height: 100%;
} }
</style> </style>

@ -42,8 +42,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bs-manage-main-wrap { .bs-manage-main-wrap {
display: flex; position: relative;
width: 100%;
height: 100%; height: 100%;
display: flex;
background-color: var(--bs-background-1); background-color: var(--bs-background-1);
// padding-top: 16px; // padding-top: 16px;
} }

@ -14,7 +14,7 @@ export default {
data () { data () {
return {} return {}
}, },
mounted () {}, mounted () { },
methods: {} methods: {}
} }
</script> </script>
@ -22,5 +22,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.bs-template-mag-wrap { .bs-template-mag-wrap {
height: 100%; height: 100%;
width: 100%;
position: relative;
} }
</style> </style>

Loading…
Cancel
Save