sign.vue 853 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="model-header">
  3. <p>{{ model.title }}</p>
  4. <div class="model-action" @click.stop>
  5. <ui-input type="checkbox" v-model="show" />
  6. <ui-icon type="del" ctrl @click="$emit('delete')" />
  7. </div>
  8. </div>
  9. <div class="model-desc">
  10. <p><span>数据来源:</span>四维看看</p>
  11. <p><span>数据大小:</span>222MB</p>
  12. <p><span>拍摄时间:</span>2022-5-1</p>
  13. </div>
  14. </template>
  15. <script lang="ts" setup>
  16. import { getModelShowVariable } from '@/store'
  17. import type { Model } from '@/store'
  18. type ModelProps = { model: Model }
  19. const props = defineProps<ModelProps>()
  20. type ModelEmits = {
  21. (e: 'changeSelect', selected: boolean): void
  22. (e: 'delete'): void
  23. }
  24. defineEmits<ModelEmits>();
  25. const show = getModelShowVariable(props.model)
  26. </script>
  27. <style lang="scss" scoped src="./style.scss"></style>