-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat:增加断点续答功能 * feat:增加断点续答功能 * fix: 同步代码并且解决冲突 --------- Co-authored-by: dayou <[email protected]>
- Loading branch information
1 parent
ef5d775
commit 9047e6a
Showing
10 changed files
with
351 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// Generated by unplugin-vue-components | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
export {} | ||
|
||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
ElButton: typeof import('element-plus/es')['ElButton'] | ||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] | ||
ElDialog: typeof import('element-plus/es')['ElDialog'] | ||
ElForm: typeof import('element-plus/es')['ElForm'] | ||
ElFormItem: typeof import('element-plus/es')['ElFormItem'] | ||
ElInput: typeof import('element-plus/es')['ElInput'] | ||
ElMenu: typeof import('element-plus/es')['ElMenu'] | ||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] | ||
ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] | ||
ElOption: typeof import('element-plus/es')['ElOption'] | ||
ElPagination: typeof import('element-plus/es')['ElPagination'] | ||
ElPopover: typeof import('element-plus/es')['ElPopover'] | ||
ElSelect: typeof import('element-plus/es')['ElSelect'] | ||
ElSelectV2: typeof import('element-plus/es')['ElSelectV2'] | ||
ElTable: typeof import('element-plus/es')['ElTable'] | ||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] | ||
ElTag: typeof import('element-plus/es')['ElTag'] | ||
ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ||
IEpBottom: typeof import('~icons/ep/bottom')['default'] | ||
IEpCheck: typeof import('~icons/ep/check')['default'] | ||
IEpCirclePlus: typeof import('~icons/ep/circle-plus')['default'] | ||
IEpClose: typeof import('~icons/ep/close')['default'] | ||
IEpCopyDocument: typeof import('~icons/ep/copy-document')['default'] | ||
IEpDelete: typeof import('~icons/ep/delete')['default'] | ||
IEpIphone: typeof import('~icons/ep/iphone')['default'] | ||
IEpLoading: typeof import('~icons/ep/loading')['default'] | ||
IEpMinus: typeof import('~icons/ep/minus')['default'] | ||
IEpMonitor: typeof import('~icons/ep/monitor')['default'] | ||
IEpMore: typeof import('~icons/ep/more')['default'] | ||
IEpSearch: typeof import('~icons/ep/search')['default'] | ||
IEpSort: typeof import('~icons/ep/sort')['default'] | ||
IEpSortDown: typeof import('~icons/ep/sort-down')['default'] | ||
IEpSortUp: typeof import('~icons/ep/sort-up')['default'] | ||
IEpTop: typeof import('~icons/ep/top')['default'] | ||
IEpView: typeof import('~icons/ep/view')['default'] | ||
IEpWarningFilled: typeof import('~icons/ep/warning-filled')['default'] | ||
RouterLink: typeof import('vue-router')['RouterLink'] | ||
RouterView: typeof import('vue-router')['RouterView'] | ||
} | ||
export interface ComponentCustomProperties { | ||
vLoading: typeof import('element-plus/es')['ElLoadingDirective'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<el-switch | ||
v-model="modelValue" | ||
class="ml-2" | ||
style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949" | ||
active-text="是" | ||
inactive-text="否" | ||
@change="handleInputChange" | ||
/> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
import { FORM_CHANGE_EVENT_KEY } from '@/materials/setters/constant' | ||
interface Props { | ||
formConfig: any | ||
moduleConfig: any | ||
} | ||
interface Emit { | ||
(ev: typeof FORM_CHANGE_EVENT_KEY, arg: { key: string; value: boolean }): void | ||
} | ||
const emit = defineEmits<Emit>() | ||
const props = defineProps<Props>() | ||
const modelValue = ref(props.formConfig.value) | ||
const handleInputChange = (value: boolean) => { | ||
const key = props.formConfig.key | ||
modelValue.value = value | ||
emit(FORM_CHANGE_EVENT_KEY, { key, value }) | ||
} | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<template> | ||
<div class="mask" v-show="visible"> | ||
<div class="box"> | ||
<div class="title">{{ title }}</div> | ||
<div class="btn-box"> | ||
<div class="btn cancel" @click="handleCancel">{{ cancelBtnText }}</div> | ||
<div class="btn confirm" @click="handleConfirm">{{ confirmBtnText }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
interface Props { | ||
visible?: boolean | ||
cancelBtnText?: string | ||
confirmBtnText?: string | ||
title?: string | ||
} | ||
interface Emit { | ||
(ev: 'confirm', callback: () => void): void | ||
(ev: 'cancel', callback: () => void): void | ||
(ev: 'close'): void | ||
} | ||
const emit = defineEmits<Emit>() | ||
withDefaults(defineProps<Props>(), { | ||
visible: false, | ||
cancelBtnText: '取消', | ||
confirmBtnText: '确定', | ||
title: '' | ||
}) | ||
const handleConfirm = () => { | ||
emit('confirm', () => { | ||
emit('close') | ||
}) | ||
} | ||
const handleCancel = () => { | ||
emit('cancel', () => { | ||
emit('close') | ||
}) | ||
} | ||
</script> | ||
<style lang="scss" scoped> | ||
@import url('../styles/dialog.scss'); | ||
.btn-box { | ||
padding: 20px 0 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
.btn { | ||
width: 48%; | ||
font-size: 0.28rem; | ||
border-radius: 0.04rem; | ||
text-align: center; | ||
padding: 0.16rem 0; | ||
line-height: 0.4rem; | ||
cursor: pointer; | ||
&.cancel { | ||
background: #fff; | ||
color: #92949d; | ||
border: 1px solid #e3e4e8; | ||
} | ||
&.confirm { | ||
background-color: #4a4c5b; | ||
border: 1px solid #4a4c5b; | ||
color: #fff; | ||
} | ||
} | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.