给字段添加校验
This commit is contained in:
parent
c912eeeb85
commit
60998393c6
|
|
@ -1,7 +1,18 @@
|
|||
<template>
|
||||
<scroll-view scroll-y class="pro-container box-border" :style="{backgroundImage: 'url('+config[brandName]?.src+')',height:`${config[brandName].height}rpx`}">
|
||||
<scroll-view
|
||||
scroll-y
|
||||
class="pro-container box-border"
|
||||
:style="{
|
||||
backgroundImage: 'url(' + config[brandName]?.src + ')',
|
||||
height: `${config[brandName]?.height}rpx`,
|
||||
}"
|
||||
>
|
||||
<view class="pro-wrapper flex flex-wrap">
|
||||
<view v-for="(item,index) in products" :key="index" class="product-container">
|
||||
<view
|
||||
v-for="(item, index) in products"
|
||||
:key="index"
|
||||
class="product-container"
|
||||
>
|
||||
<ProductItem :detail="item" :index="index" />
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -9,21 +20,20 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import ProductItem from './product-item'
|
||||
import config from '../config'
|
||||
import ProductItem from "./product-item";
|
||||
import config from "../config";
|
||||
const props = defineProps({
|
||||
products: {
|
||||
type: Array,
|
||||
required: true,
|
||||
default:() => ([])
|
||||
default: () => [],
|
||||
},
|
||||
brandName: {
|
||||
type: String,
|
||||
required: true,
|
||||
default:''
|
||||
}
|
||||
})
|
||||
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Loading…
Reference in New Issue