feat: support multiple metrics on metric options

This commit is contained in:
Qiuxia Fan
2022-01-20 15:35:37 +08:00
parent 4baa00001a
commit 8b0cab48ce
3 changed files with 110 additions and 36 deletions

View File

@@ -20,6 +20,7 @@ limitations under the License. -->
@change="changeSelected"
filterable
:multiple="multiple"
:disabled="disabled"
:style="{ borderRadius }"
>
<el-option
@@ -56,7 +57,9 @@ const props = defineProps({
placeholder: { type: String, default: "Select a option" },
borderRadius: { type: Number, default: 3 },
multiple: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
});
const selected = ref<string[] | string>(props.value);
function changeSelected() {
const options = props.options.filter((d: Option) =>