1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <div class="store-item">
- <el-image :src="productImage" />
- <div class="store-name">{{ productName }}</div>
- </div>
- </template>
- <script>
- export default {
- props: {
- productImage: {
- type: String,
- default: () => ''
- },
- productName: {
- type: String,
- default: () => ''
- }
- },
- data() {
- return {
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .store-item {
- padding: 10px;
- margin: 10px 0;
- display: flex;
- align-items: center;
- background: #66666636;
- margin-bottom: 10px;
- .el-image {
- width: 80px;
- height: 80px;
- margin-right: 10px;
- }
- .store-name {
- width: calc(100% - 80px);
- }
- }
- </style>
|