feat: 样式更新

This commit is contained in:
wangdan-fit2cloud 2024-02-27 16:20:05 +08:00
parent 866d15728f
commit e9d241766d
4 changed files with 13 additions and 6 deletions

View File

@ -254,9 +254,6 @@
padding-left: 11px;
}
.el-select {
min-width: 200px;
}
.el-select__caret {
color: var(--app-text-color-secondary);
}

View File

@ -36,7 +36,12 @@
<div class="create-dataset__footer text-right border-t" v-if="active !== 2">
<el-button @click="router.go(-1)" :disabled="loading">取消</el-button>
<el-button @click="prev" v-if="active === 1" :disabled="loading">上一步</el-button>
<el-button @click="next" type="primary" v-if="active === 0" :disabled="loading">
<el-button
@click="next"
type="primary"
v-if="active === 0"
:disabled="loading || StepFirstRef?.loading"
>
创建并导入
</el-button>
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
@ -84,12 +89,16 @@ const StepFirstRef = ref()
const StepSecondRef = ref()
const loading = ref(false)
const disabled = ref(false)
const active = ref(0)
const successInfo = ref<any>(null)
async function next() {
disabled.value = true
if (await StepFirstRef.value?.onSubmit()) {
if (active.value++ > 2) active.value = 0
} else {
disabled.value = false
}
}
const prev = () => {

View File

@ -167,7 +167,8 @@ const onSubmit = async () => {
onMounted(() => {})
defineExpose({
onSubmit
onSubmit,
loading
})
</script>
<style scoped lang="scss">

View File

@ -38,7 +38,7 @@
<template #footer v-if="!problemId">
<span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
<el-button type="primary" @click="submitHandle"> 提交 </el-button>
<el-button :disabled="loading" type="primary" @click="submitHandle"> 提交 </el-button>
</span>
</template>
</el-dialog>