mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 01:32:49 +00:00
feat: 样式更新
This commit is contained in:
parent
866d15728f
commit
e9d241766d
|
|
@ -254,9 +254,6 @@
|
|||
padding-left: 11px;
|
||||
}
|
||||
|
||||
.el-select {
|
||||
min-width: 200px;
|
||||
}
|
||||
.el-select__caret {
|
||||
color: var(--app-text-color-secondary);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = () => {
|
||||
|
|
|
|||
|
|
@ -167,7 +167,8 @@ const onSubmit = async () => {
|
|||
onMounted(() => {})
|
||||
|
||||
defineExpose({
|
||||
onSubmit
|
||||
onSubmit,
|
||||
loading
|
||||
})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue