feat: add filters on dasboard

This commit is contained in:
Qiuxia Fan
2021-12-28 15:34:47 +08:00
parent fde5baa42e
commit fa3cce939f
5 changed files with 172 additions and 39 deletions

View File

@@ -18,6 +18,8 @@ limitations under the License. -->
v-model="selected"
:placeholder="placeholder"
@change="changeSelected"
filterable
:style="{ borderRadius }"
>
<el-option
v-for="item in options"
@@ -47,6 +49,7 @@ const props = defineProps({
value: { type: String, default: "" },
size: { type: String, default: "small" },
placeholder: { type: String, default: "Select a option" },
borderRadius: { type: Number, default: 3 },
});
const selected = ref<string>(props.value);
function changeSelected() {
@@ -92,4 +95,8 @@ function changeSelected() {
width: 30px;
}
}
.el-input__inner {
border-radius: unset !important;
}
</style>