浏览代码

feature/1001807

lizi 2 年之前
父节点
当前提交
c7c5660ab2
共有 1 个文件被更改,包括 0 次插入43 次删除
  1. 0 43
      src/views/report/components/report-list/ReportStatusItem.vue

+ 0 - 43
src/views/report/components/report-list/ReportStatusItem.vue

@@ -1,43 +0,0 @@
-<script setup lang="ts">
-import { ref, watch, type PropType, onMounted } from "vue";
-
-export interface Prop {
-  label: string;
-  checked?: boolean;
-}
-
-const props = defineProps({
-  data: {
-    type: Object as PropType<Prop>,
-    required: true,
-  }
-});
-
-const checked = ref(false);
-
-watch(
-  () => !!props.data.checked,
-  (value: boolean) => checked.value = value
-);
-
-onMounted(() => {
-  checked.value = !!props.data.checked;
-
-});
-
-const emits = defineEmits<{
-  (e: "change", checked: boolean): void;
-}>();
-
-function onChange() {
-  emits("change", checked.value);
-}
-</script>
-
-<template>
-  <a-row type="flex">
-    <a-col :flex="1">
-      <a-checkbox v-model:checked="checked" @change="onChange">{{ data.label }}</a-checkbox>
-    </a-col>
-  </a-row>
-</template>