mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
♻️优化 element-plus 全局 form item 样式,避免 select 样式失真
This commit is contained in:
parent
83b5f0c3aa
commit
01a9e0e39e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
dist
|
||||||
|
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -29,7 +29,7 @@
|
|||||||
"eslint.validate": ["vue", "html", "javascript", "graphql", "javascriptreact", "json", "typescript", "typescriptreact", "vue-html"],
|
"eslint.validate": ["vue", "html", "javascript", "graphql", "javascriptreact", "json", "typescript", "typescriptreact", "vue-html"],
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": "explicit"
|
||||||
},
|
},
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.cjson": "jsonc",
|
"*.cjson": "jsonc",
|
||||||
|
@ -86,6 +86,6 @@
|
|||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitee.com/log4j/pig"
|
"url": "https://gitee.com/log4j/pig-ui"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,12 +60,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-form-item__content {
|
.el-form-item__content {
|
||||||
min-width: var(--el-form-inline-content-width);
|
|
||||||
.el-select {
|
.el-select {
|
||||||
width: 100% !important;
|
min-width: 180px;
|
||||||
}
|
}
|
||||||
.el-date-editor {
|
.el-date-editor {
|
||||||
width: 100% !important;
|
min-width: 180px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
<el-form-item :label="t('client.refreshTokenValidity')" prop="refreshTokenValidity">
|
<el-form-item :label="t('client.refreshTokenValidity')" prop="refreshTokenValidity">
|
||||||
<el-input-number :placeholder="t('client.inputRefreshTokenValidityTip')" v-model="form.refreshTokenValidity"/>
|
<el-input-number :placeholder="t('client.inputRefreshTokenValidityTip')" v-model="form.refreshTokenValidity"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="t('client.autoapprove')" prop="autoapprove" v-if="form.authorizedGrantTypes.includes('authorization_code')">
|
<el-form-item :label="t('client.autoapprove')" prop="autoapprove"
|
||||||
|
v-if="form.authorizedGrantTypes.includes('authorization_code')">
|
||||||
<el-radio-group v-model="form.autoapprove">
|
<el-radio-group v-model="form.autoapprove">
|
||||||
<el-radio :key="index" :label="item.value" border v-for="(item, index) in common_status">{{
|
<el-radio :key="index" :label="item.value" border v-for="(item, index) in common_status">{{
|
||||||
item.label
|
item.label
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
<el-col :span="12" class="mb20">
|
<el-col :span="12" class="mb20">
|
||||||
<el-form-item :label="t('job.jobType')" prop="jobType">
|
<el-form-item :label="t('job.jobType')" prop="jobType">
|
||||||
<el-select v-model="form.jobType" :placeholder="t('job.jobType')">
|
<el-select v-model="form.jobType" :placeholder="t('job.jobType')">
|
||||||
<el-option v-for="(item, index) in job_type" :key="index" :label="item.label" :value="item.value"></el-option>
|
<el-option v-for="(item, index) in job_type" :key="index" :label="item.label"
|
||||||
|
:value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -54,7 +55,8 @@
|
|||||||
<el-col :span="12" class="mb20">
|
<el-col :span="12" class="mb20">
|
||||||
<el-form-item :label="t('job.misfirePolicy')" prop="misfirePolicy">
|
<el-form-item :label="t('job.misfirePolicy')" prop="misfirePolicy">
|
||||||
<el-select v-model="form.misfirePolicy" :placeholder="t('job.inputmisfirePolicyTip')">
|
<el-select v-model="form.misfirePolicy" :placeholder="t('job.inputmisfirePolicyTip')">
|
||||||
<el-option v-for="(item, index) in misfire_policy" :key="index" :label="item.label" :value="item.value"></el-option>
|
<el-option v-for="(item, index) in misfire_policy" :key="index" :label="item.label"
|
||||||
|
:value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -68,7 +70,9 @@
|
|||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button formDialogRef @click="visible = false">{{ $t('common.cancelButtonText') }}</el-button>
|
<el-button formDialogRef @click="visible = false">{{ $t('common.cancelButtonText') }}</el-button>
|
||||||
<el-button formDialogRef type="primary" @click="onSubmit" :disabled="loading">{{ $t('common.confirmButtonText') }}</el-button>
|
<el-button formDialogRef type="primary" @click="onSubmit" :disabled="loading">{{
|
||||||
|
$t('common.confirmButtonText')
|
||||||
|
}}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -147,7 +151,8 @@ const openDialog = (id: string) => {
|
|||||||
|
|
||||||
// 提交
|
// 提交
|
||||||
const onSubmit = async () => {
|
const onSubmit = async () => {
|
||||||
const valid = await dataFormRef.value.validate().catch(() => {});
|
const valid = await dataFormRef.value.validate().catch(() => {
|
||||||
|
});
|
||||||
if (!valid) return false;
|
if (!valid) return false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user