|
@@ -133,4 +133,20 @@ const Lockstore = props => {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 渲染产品标签
|
|
|
|
|
+export const RenderProductLabel = product => {
|
|
|
|
|
+ let newProduct = product
|
|
|
|
|
+ if (!Array.isArray(product)) {
|
|
|
|
|
+ newProduct = product.split('+')
|
|
|
|
|
+ }
|
|
|
|
|
+ return (
|
|
|
|
|
+ <div>
|
|
|
|
|
+ {newProduct.map((item, index) => (
|
|
|
|
|
+ <Tag key={index} color="#886ab5">
|
|
|
|
|
+ {item}
|
|
|
|
|
+ </Tag>
|
|
|
|
|
+ ))}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ )
|
|
|
|
|
+}
|
|
|
export default Lockstore
|
|
export default Lockstore
|