| | |
| | | <template> |
| | | <div class="input-out-material-info"> |
| | | <div class="input-out-material-info" @click="materialInfoClick"> |
| | | <div class="card-t"> |
| | | <div class="card-t-t card_drop"> |
| | | <el-popover :width="200" placement="top-start" trigger="click"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <MaterialDetails v-model="showModal"></MaterialDetails> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import type { inputMaterial } from '@/api/task' |
| | | import MaterialDetails from '@/views/dashboard/components/MaterialDetails.vue' |
| | | import { Right } from '@element-plus/icons-vue' |
| | | import { toRefs } from 'vue' |
| | | |
| | | import { ref, toRefs } from 'vue' |
| | | export interface InputOutMaterialInfoProps { |
| | | item: inputMaterial |
| | | background?: string |
| | |
| | | background: '#ffcc00' |
| | | }) |
| | | const { item, background } = toRefs(props) |
| | | const showModal = ref(false) |
| | | |
| | | function materialInfoClick() { |
| | | showModal.value = true |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | |
| | | margin-right: 10px; |
| | | margin-bottom: 10px; |
| | | position: relative; |
| | | cursor: pointer; |
| | | |
| | | .card_drop { |
| | | width: 100%; |