feat: 样式更新
This commit is contained in:
parent
866d15728f
commit
e9d241766d
@ -254,9 +254,6 @@
|
|||||||
padding-left: 11px;
|
padding-left: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-select {
|
|
||||||
min-width: 200px;
|
|
||||||
}
|
|
||||||
.el-select__caret {
|
.el-select__caret {
|
||||||
color: var(--app-text-color-secondary);
|
color: var(--app-text-color-secondary);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,7 +36,12 @@
|
|||||||
<div class="create-dataset__footer text-right border-t" v-if="active !== 2">
|
<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="router.go(-1)" :disabled="loading">取消</el-button>
|
||||||
<el-button @click="prev" v-if="active === 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>
|
||||||
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
|
<el-button @click="submit" type="primary" v-if="active === 1" :disabled="loading">
|
||||||
@ -84,12 +89,16 @@ const StepFirstRef = ref()
|
|||||||
const StepSecondRef = ref()
|
const StepSecondRef = ref()
|
||||||
|
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
const disabled = ref(false)
|
||||||
const active = ref(0)
|
const active = ref(0)
|
||||||
const successInfo = ref<any>(null)
|
const successInfo = ref<any>(null)
|
||||||
|
|
||||||
async function next() {
|
async function next() {
|
||||||
|
disabled.value = true
|
||||||
if (await StepFirstRef.value?.onSubmit()) {
|
if (await StepFirstRef.value?.onSubmit()) {
|
||||||
if (active.value++ > 2) active.value = 0
|
if (active.value++ > 2) active.value = 0
|
||||||
|
} else {
|
||||||
|
disabled.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const prev = () => {
|
const prev = () => {
|
||||||
|
|||||||
@ -167,7 +167,8 @@ const onSubmit = async () => {
|
|||||||
onMounted(() => {})
|
onMounted(() => {})
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
onSubmit
|
onSubmit,
|
||||||
|
loading
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
<template #footer v-if="!problemId">
|
<template #footer v-if="!problemId">
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
|
<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>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user