test: implement comprehensive unit tests for components (#487)

This commit is contained in:
Fine0830
2025-08-06 18:35:45 +08:00
committed by GitHub
parent b73ae65efc
commit fc631381c7
19 changed files with 3070 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ limitations under the License. -->
</el-radio-group>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ref, watch } from "vue";
import type { PropType } from "vue";
/*global defineProps, defineEmits */
@@ -47,4 +47,11 @@ limitations under the License. -->
function checked(opt: unknown) {
emit("change", opt);
}
watch(
() => props.value,
(newValue) => {
selected.value = newValue;
},
);
</script>