Merge pull request #6662 from dataease/pr@dev@style_filter_required

style: 仪表板过滤器必填项样式
This commit is contained in:
fit2cloud-chenyw 2023-11-13 15:52:21 +08:00 committed by GitHub
commit 4e18f11f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 5 deletions

View File

@ -280,7 +280,7 @@ export default {
letter-spacing: 0px !important;
width: 100%;
.widget-required {
width: calc(100% - 10px) !important;
width: calc(100% - 12px) !important;
float: left !important;
}
.widget-required-symbol {
@ -288,6 +288,7 @@ export default {
height: 40px;
line-height: 40px;
float: right;
width: 12px;
}
}

View File

@ -1,6 +1,8 @@
<template>
<el-row>
<el-col :span="20">
<el-col
class="filter-field-container"
>
<div class="filter-field">
<div class="field-content">
@ -13,7 +15,7 @@
animation="300"
:move="onMove"
class="row wrap justify-space-around theme-drag"
style="width:100%;height: 100%;margin:0 10px;border-radius: 4px;overflow-x: auto;display: flex;align-items: center;"
style="width:calc(100% - 25px);height: 100%;margin:0 10px;border-radius: 4px;overflow-x: auto;display: flex;align-items: center;"
@end="end2"
>
@ -38,7 +40,9 @@
</div>
</div>
</el-col>
<el-col :span="4">
<el-col
class="filter-required-container"
>
<div class="de-filter-required">
<el-checkbox
v-model="element.options.attrs.required"
@ -105,6 +109,14 @@ export default {
</script>
<style lang="scss" scoped>
.filter-field-container {
width: calc(100% - 70px);
float: left;
}
.filter-required-container {
width: 70px;
float: right;
}
.de-filter-required {
height: 40px;
line-height: 40px;
@ -116,7 +128,7 @@ export default {
overflow-x: overlay;
.field-content {
position: relative;
display: table;
// display: table;
width: 100%;
height: 100%;
white-space: nowrap;