Skip to content

Commit 532ea49

Browse files
fix: radio style
1 parent 286552d commit 532ea49

File tree

4 files changed

+19
-34
lines changed

4 files changed

+19
-34
lines changed

ui/src/styles/element-plus.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,21 @@
381381
.radio-block {
382382
display: inline-grid;
383383
}
384+
// radio 一行一个样式 有输入框 上传头像的内容
385+
.radio-block-avatar {
386+
width: 100%;
387+
display: block;
388+
.el-radio {
389+
align-items: flex-start;
390+
height: 100%;
391+
width: 100%;
392+
}
393+
.el-radio__label {
394+
width: 100%;
395+
margin-top: -8px;
396+
line-height: 30px;
397+
}
398+
}
384399

385400
// 提示横幅
386401
.el-alert__title {

ui/src/views/application-overview/component/EditAvatarDialog.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353
</el-radio-group>
5454
<template #footer>
5555
<span class="dialog-footer">
56-
<el-button @click.prevent="dialogVisible = false">
57-
{{ $t('common.cancel') }}</el-button
58-
>
56+
<el-button @click.prevent="dialogVisible = false"> {{ $t('common.cancel') }}</el-button>
5957
<el-button type="primary" @click="submit" :loading="loading">
6058
{{ $t('common.save') }}</el-button
6159
>
@@ -139,19 +137,4 @@ function submit() {
139137
140138
defineExpose({ open })
141139
</script>
142-
<style lang="scss" scoped>
143-
.radio-block-avatar {
144-
width: 100%;
145-
display: block;
146-
.el-radio {
147-
align-items: flex-start;
148-
height: 100%;
149-
width: 100%;
150-
}
151-
.el-radio__label {
152-
width: 100%;
153-
margin-top: -8px;
154-
line-height: 30px;
155-
}
156-
}
157-
</style>
140+
<style lang="scss" scoped></style>

ui/src/views/application/component/ParamSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
>
130130
<el-radio-group
131131
v-model="form.dataset_setting.no_references_setting.status"
132-
class="radio-block"
132+
class="radio-block-avatar"
133133
>
134134
<el-radio value="ai_questioning">
135135
<p>

ui/src/views/function-lib/component/EditAvatarDialog.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,5 @@ function submit() {
125125
defineExpose({ open })
126126
</script>
127127
<style lang="scss" scoped>
128-
.radio-block-avatar {
129-
width: 100%;
130-
display: block;
131-
.el-radio {
132-
align-items: flex-start;
133-
height: 100%;
134-
width: 100%;
135-
}
136-
.el-radio__label {
137-
width: 100%;
138-
margin-top: -8px;
139-
line-height: 30px;
140-
}
141-
}
128+
142129
</style>

0 commit comments

Comments
 (0)