add reactive style
This commit is contained in:
1 parent
7f20b66ac3
commit
9326746fe7
5 files changed
+41
-1
No files matched your search
@@ -33,6 +33,7 @@ body {
|
||||
.el-input {
|
||||
.el-input__wrapper {
|
||||
border-radius: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
:clearable="true"
|
||||
:filterable="true"
|
||||
:allow-create="true"
|
||||
class="w-full"
|
||||
:placeholder="$t('common.title.placeholderOfSelect')"
|
||||
>
|
||||
<el-option
|
||||
@@ -73,6 +74,7 @@
|
||||
v-model="value[itemKey?.toString()]"
|
||||
:default-first-option="item?.enum?.length === 1"
|
||||
clearable
|
||||
class="w-full"
|
||||
:placeholder="$t('common.title.placeholderOfSelect')"
|
||||
>
|
||||
<el-option v-for="e in item?.enum" :key="e" :label="e" :value="e" />
|
||||
@@ -81,6 +83,7 @@
|
||||
v-else-if="item?.type === 'boolean'"
|
||||
v-model="value[itemKey?.toString()]"
|
||||
clearable
|
||||
class="w-full"
|
||||
:placeholder="$t('common.title.placeholderOfSelect')"
|
||||
>
|
||||
<el-option key="true" :label="'true'" :value="true" />
|
||||
@@ -92,6 +95,7 @@
|
||||
:clearable="true"
|
||||
:filterable="true"
|
||||
:allow-create="true"
|
||||
class="w-full"
|
||||
:placeholder="$t('common.title.placeholderOfInput')"
|
||||
>
|
||||
<el-option :label="item.example" :value="item.example" class="select-option">
|
||||
|
||||
@@ -105,7 +105,7 @@ export default defineComponent({
|
||||
name: link.name
|
||||
});
|
||||
} else if (link.href) {
|
||||
window.location.href = link.href;
|
||||
window.open(link.href, '_blank');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ export default {
|
||||
}
|
||||
|
||||
.main {
|
||||
max-width: 2000px;
|
||||
margin: auto;
|
||||
.left {
|
||||
float: left;
|
||||
width: 280px;
|
||||
@@ -58,5 +60,10 @@ export default {
|
||||
padding: 30px;
|
||||
box-shadow: 1px 0 0 #eee;
|
||||
}
|
||||
@media (max-width: 999px) {
|
||||
.left {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -140,4 +140,32 @@ export default defineComponent({
|
||||
padding: 30px;
|
||||
box-shadow: -1px 0 0 #eee;
|
||||
}
|
||||
|
||||
@media (max-width: 1400px) {
|
||||
.center {
|
||||
width: calc(100% - 620px);
|
||||
}
|
||||
.right {
|
||||
width: 340px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1399px) and (min-width: 1000px) {
|
||||
.center {
|
||||
width: calc(100% - 280px);
|
||||
}
|
||||
.right {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 999px) {
|
||||
.center {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.right {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user