diff --git a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss index f00d91b40..57a1973d0 100644 --- a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss +++ b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss @@ -325,7 +325,12 @@ margin-top: 0 !important; margin-bottom: 0 !important; max-width: 626px !important; - + .hidden-padding { + padding: 0; + > span{ + padding: 0 20px; + } + } } .api-select.right-box-select-top.right-public-box-dropdown-top { .el-scrollbar__view.el-select-dropdown__list { diff --git a/nezha-fronted/src/components/common/elSelect/MyElSelect.vue b/nezha-fronted/src/components/common/elSelect/MyElSelect.vue index 0b5eb7cf2..149820ea2 100644 --- a/nezha-fronted/src/components/common/elSelect/MyElSelect.vue +++ b/nezha-fronted/src/components/common/elSelect/MyElSelect.vue @@ -48,6 +48,7 @@ :class="[selectSize ? `is-${ selectSize }` : '']" :disabled="selectDisabled" :autocomplete="autoComplete || autocomplete" + :maxlength = "maxlength" @focus="handleFocus" @blur="softFocus = false" @click.stop @@ -72,6 +73,7 @@ v-model="selectedLabel" type="text" :placeholder="currentPlaceholder" + :maxlength = "maxlength" :name="name" :id="id" :autocomplete="autoComplete || autocomplete" @@ -301,6 +303,9 @@ export default { popperAppendToBody: { type: Boolean, default: true + }, + maxlength: { + type: Number } }, diff --git a/nezha-fronted/src/components/common/filterSearch/filterSearch.vue b/nezha-fronted/src/components/common/filterSearch/filterSearch.vue index 0b2d8f76e..8f3f4343e 100644 --- a/nezha-fronted/src/components/common/filterSearch/filterSearch.vue +++ b/nezha-fronted/src/components/common/filterSearch/filterSearch.vue @@ -12,7 +12,7 @@
- + - + {{$t('overall.edit')}} - + {{$t('overall.delete')}} diff --git a/nezha-fronted/src/components/common/project/meta2d/meta2dElement.vue b/nezha-fronted/src/components/common/project/meta2d/meta2dElement.vue index 23f0f551c..100fd7024 100644 --- a/nezha-fronted/src/components/common/project/meta2d/meta2dElement.vue +++ b/nezha-fronted/src/components/common/project/meta2d/meta2dElement.vue @@ -466,7 +466,7 @@
- +
@@ -806,7 +806,7 @@
- +
@@ -1087,7 +1087,7 @@ :title="legend.legend" style="width: 100%" filterable - allow-create + allow-create :maxlength="64" default-first-option clearable> diff --git a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue index 596db3b05..b4cfe6e31 100644 --- a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue @@ -15,7 +15,7 @@ - + diff --git a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue index f3ca52d5a..6a7a880db 100644 --- a/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertSilenceBox.vue @@ -75,6 +75,7 @@ popper-class="right-box-select-top right-public-box-dropdown-top" placeholder="key" size="mini" + :maxlength="64" @select="handleSelect" > diff --git a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue index 63df0c5ad..a49cb11b3 100644 --- a/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue +++ b/nezha-fronted/src/components/common/rightBox/assetMetaBox.vue @@ -40,8 +40,8 @@ - - + +
  {{item.name}}
diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index 0de3fe4c0..128a6793c 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -941,7 +941,7 @@ style="margin-right: 10px" @change="change('valueMapping', index)" filterable - allow-create + allow-create :maxlength="64" default-first-option > --> @@ -177,6 +178,7 @@ :trigger-on-focus="true" popper-class="no-style-class" size="mini" + :maxlength="64" :highlight-first-item="true" @input="ifIndexInputChange(scope.row[item.prop],scope.row,scope.$index)" > diff --git a/nezha-fronted/src/components/common/searchBox/searchBox.vue b/nezha-fronted/src/components/common/searchBox/searchBox.vue index b9a1e4fa3..d2a5ee66b 100644 --- a/nezha-fronted/src/components/common/searchBox/searchBox.vue +++ b/nezha-fronted/src/components/common/searchBox/searchBox.vue @@ -182,7 +182,7 @@ v-model="editDialogObj.realValue" multiple filterable - allow-create + allow-create :maxlength="64" default-first-option :filter-method="dialogValueListSet" v-loadMore="{