|
@@ -65,7 +65,7 @@
|
|
import { watch, computed, ref, nextTick, withDefaults, defineComponent, useSlots } from 'vue'
|
|
import { watch, computed, ref, nextTick, withDefaults, defineComponent, useSlots } from 'vue'
|
|
import SvgIcon from '@/components/common/SvgIcon.vue'
|
|
import SvgIcon from '@/components/common/SvgIcon.vue'
|
|
import useVModel from '@/hooks/useVModel'
|
|
import useVModel from '@/hooks/useVModel'
|
|
-import { getNumbers, isDefine } from '@/utils/common'
|
|
|
|
|
|
+import { getNumbers } from '@/utils/common'
|
|
|
|
|
|
interface QuestionInfo {
|
|
interface QuestionInfo {
|
|
mainNumber: number
|
|
mainNumber: number
|
|
@@ -131,7 +131,7 @@ const refInput1 = ref<HTMLInputElement>()
|
|
const refInput2 = ref<HTMLInputElement>()
|
|
const refInput2 = ref<HTMLInputElement>()
|
|
|
|
|
|
watch(
|
|
watch(
|
|
- props,
|
|
|
|
|
|
+ () => props.active,
|
|
() => {
|
|
() => {
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
if (props.active) {
|
|
if (props.active) {
|
|
@@ -141,7 +141,7 @@ watch(
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- { immediate: true, deep: true }
|
|
|
|
|
|
+ { immediate: true }
|
|
)
|
|
)
|
|
|
|
|
|
const getClass = (val: string, callback?: string) => {
|
|
const getClass = (val: string, callback?: string) => {
|
|
@@ -333,11 +333,13 @@ const onToggleClick = () => {
|
|
font-size: 32px;
|
|
font-size: 32px;
|
|
outline: none;
|
|
outline: none;
|
|
margin-left: 6px;
|
|
margin-left: 6px;
|
|
|
|
+ overflow: hidden;
|
|
.score-input {
|
|
.score-input {
|
|
background: inherit;
|
|
background: inherit;
|
|
color: inherit;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
font-size: inherit;
|
|
- width: 100%;
|
|
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|