|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div v-loading="loading || isLoading" :element-loading-background="elementLoadingBackground" style="width: 100%;">
|
|
|
<el-select
|
|
|
+ :class="{'no-wrap': noWrap}"
|
|
|
style="width: 100%;"
|
|
|
v-bind="$attrs"
|
|
|
v-model="paramVal"
|
|
@@ -49,7 +50,8 @@ export default defineComponent({
|
|
|
labelKey: { type: String, default: 'dictLabel' },
|
|
|
valueKey: { type: String, default: 'dictValue' },
|
|
|
static: { default: false },
|
|
|
- isLoading: { default: false }
|
|
|
+ isLoading: { default: false },
|
|
|
+ noWrap: { default: false }
|
|
|
},
|
|
|
setup(props, { emit }) {
|
|
|
const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
|
|
@@ -94,7 +96,9 @@ export default defineComponent({
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
-:deep(.el-select__selection) {
|
|
|
- flex-wrap: unset;
|
|
|
+:deep(.no-wrap) {
|
|
|
+ .el-select__selection {
|
|
|
+ flex-wrap: unset;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|