Files
aiot-platform-ui/apps/web-antd/dist/js/property-CyVaipxc.js
lzh 2deb263bf9
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-08 00:18:15 +08:00

2 lines
7.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{bY as B,au as m,c9 as u,cc as y,ax as b,ce as r,an as V,cd as n,aM as x,bW as w,bD as c,c3 as g}from"./bootstrap-D7yvUSkm.js";import{m as C,ab as k,b2 as p,bJ as d,j as o,u as e,ce as I,ae as i,ac as R,ai as f,ad as P,I as T}from"../jse/index-index-BAlyf32H.js";import"./vxe-table-B6xkb-Em.js";import{_ as E}from"./spu-showcase.vue_vue_type_script_setup_true_lang-BrOkBnJy.js";import s from"./index-BkstTSEa.js";import"./vuedraggable.umd-Bghgsm_i.js";import"./index-DGSFefnE.js";/* empty css *//* empty css */import{_ as N}from"./component-container-property.vue_vue_type_script_setup_true_lang-2vU02k_9.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-B4-NPqix.js";import"./index-B_hHEnAD.js";import"./spu-table-select.vue_vue_type_script_setup_true_lang-CvoTWq0J.js";import"./index-DpviAbdi.js";import"./rangePickerProps-B_jPQzKn.js";import"./use-vxe-grid-DxdOmjKl.js";/* empty css */import"./index-YwaEekFV.js";const _={class:"flex gap-2"},h={class:"flex gap-2"},z={class:"flex gap-2"},F={class:"flex gap-2"},S={class:"flex gap-2"},$={class:"flex gap-2"},de=C({name:"ProductCardProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(U,{emit:v}){const t=I(U,"modelValue",v);return(j,l)=>(p(),k(N,{modelValue:e(t).style,"onUpdate:modelValue":l[24]||(l[24]=a=>e(t).style=a)},{default:d(()=>[o(e(B),{model:e(t)},{default:d(()=>[o(e(m),{title:"商品列表",class:"property-group"},{default:d(()=>[o(e(E),{modelValue:e(t).spuIds,"onUpdate:modelValue":l[0]||(l[0]=a=>e(t).spuIds=a)},null,8,["modelValue"])]),_:1}),o(e(m),{title:"商品样式",class:"property-group"},{default:d(()=>[o(e(u),{label:"布局",name:"type"},{default:d(()=>[o(e(y),{value:e(t).layoutType,"onUpdate:value":l[1]||(l[1]=a=>e(t).layoutType=a)},{default:d(()=>[o(e(b),{title:"单列大图",placement:"bottom"},{default:d(()=>[o(e(r),{value:"oneColBigImg"},{default:d(()=>[o(e(V),{icon:"fluent:text-column-one-24-filled",class:"size-6"})]),_:1})]),_:1}),o(e(b),{title:"单列小图",placement:"bottom"},{default:d(()=>[o(e(r),{value:"oneColSmallImg"},{default:d(()=>[o(e(V),{icon:"fluent:text-column-two-left-24-filled",class:"size-6"})]),_:1})]),_:1}),o(e(b),{title:"双列",placement:"bottom"},{default:d(()=>[o(e(r),{value:"twoCol"},{default:d(()=>[o(e(V),{icon:"fluent:text-column-two-24-filled",class:"size-6"})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),o(e(u),{label:"商品名称",name:"fields.name.show"},{default:d(()=>[i("div",_,[o(e(s),{modelValue:e(t).fields.name.color,"onUpdate:modelValue":l[2]||(l[2]=a=>e(t).fields.name.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.name.show,"onUpdate:checked":l[3]||(l[3]=a=>e(t).fields.name.show=a)},null,8,["checked"])])]),_:1}),o(e(u),{label:"商品简介",name:"fields.introduction.show"},{default:d(()=>[i("div",h,[o(e(s),{modelValue:e(t).fields.introduction.color,"onUpdate:modelValue":l[4]||(l[4]=a=>e(t).fields.introduction.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.introduction.show,"onUpdate:checked":l[5]||(l[5]=a=>e(t).fields.introduction.show=a)},null,8,["checked"])])]),_:1}),o(e(u),{label:"商品价格",name:"fields.price.show"},{default:d(()=>[i("div",z,[o(e(s),{modelValue:e(t).fields.price.color,"onUpdate:modelValue":l[6]||(l[6]=a=>e(t).fields.price.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.price.show,"onUpdate:checked":l[7]||(l[7]=a=>e(t).fields.price.show=a)},null,8,["checked"])])]),_:1}),o(e(u),{label:"市场价",name:"fields.marketPrice.show"},{default:d(()=>[i("div",F,[o(e(s),{modelValue:e(t).fields.marketPrice.color,"onUpdate:modelValue":l[8]||(l[8]=a=>e(t).fields.marketPrice.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.marketPrice.show,"onUpdate:checked":l[9]||(l[9]=a=>e(t).fields.marketPrice.show=a)},null,8,["checked"])])]),_:1}),o(e(u),{label:"商品销量",name:"fields.salesCount.show"},{default:d(()=>[i("div",S,[o(e(s),{modelValue:e(t).fields.salesCount.color,"onUpdate:modelValue":l[10]||(l[10]=a=>e(t).fields.salesCount.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.salesCount.show,"onUpdate:checked":l[11]||(l[11]=a=>e(t).fields.salesCount.show=a)},null,8,["checked"])])]),_:1}),o(e(u),{label:"商品库存",name:"fields.stock.show"},{default:d(()=>[i("div",$,[o(e(s),{modelValue:e(t).fields.stock.color,"onUpdate:modelValue":l[12]||(l[12]=a=>e(t).fields.stock.color=a)},null,8,["modelValue"]),o(e(n),{checked:e(t).fields.stock.show,"onUpdate:checked":l[13]||(l[13]=a=>e(t).fields.stock.show=a)},null,8,["checked"])])]),_:1})]),_:1}),o(e(m),{title:"角标",class:"property-group"},{default:d(()=>[o(e(u),{label:"角标",name:"badge.show"},{default:d(()=>[o(e(x),{checked:e(t).badge.show,"onUpdate:checked":l[14]||(l[14]=a=>e(t).badge.show=a)},null,8,["checked"])]),_:1}),e(t).badge.show?(p(),k(e(u),{key:0,label:"角标",name:"badge.imgUrl"},{default:d(()=>[o(w,{modelValue:e(t).badge.imgUrl,"onUpdate:modelValue":l[15]||(l[15]=a=>e(t).badge.imgUrl=a),height:"44px",width:"72px","show-description":!1},{tip:d(()=>[...l[25]||(l[25]=[f(" 建议尺寸36 * 22 ",-1)])]),_:1},8,["modelValue"])]),_:1})):R("",!0)]),_:1}),o(e(m),{title:"按钮",class:"property-group"},{default:d(()=>[o(e(u),{label:"按钮类型",name:"btnBuy.type"},{default:d(()=>[o(e(y),{value:e(t).btnBuy.type,"onUpdate:value":l[16]||(l[16]=a=>e(t).btnBuy.type=a)},{default:d(()=>[o(e(r),{value:"text"},{default:d(()=>[...l[26]||(l[26]=[f("文字",-1)])]),_:1}),o(e(r),{value:"img"},{default:d(()=>[...l[27]||(l[27]=[f("图片",-1)])]),_:1})]),_:1},8,["value"])]),_:1}),e(t).btnBuy.type==="text"?(p(),P(T,{key:0},[o(e(u),{label:"按钮文字",name:"btnBuy.text"},{default:d(()=>[o(e(c),{value:e(t).btnBuy.text,"onUpdate:value":l[17]||(l[17]=a=>e(t).btnBuy.text=a)},null,8,["value"])]),_:1}),o(e(u),{label:"左侧背景",name:"btnBuy.bgBeginColor"},{default:d(()=>[o(e(s),{modelValue:e(t).btnBuy.bgBeginColor,"onUpdate:modelValue":l[18]||(l[18]=a=>e(t).btnBuy.bgBeginColor=a)},null,8,["modelValue"])]),_:1}),o(e(u),{label:"右侧背景",name:"btnBuy.bgEndColor"},{default:d(()=>[o(e(s),{modelValue:e(t).btnBuy.bgEndColor,"onUpdate:modelValue":l[19]||(l[19]=a=>e(t).btnBuy.bgEndColor=a)},null,8,["modelValue"])]),_:1})],64)):(p(),k(e(u),{key:1,label:"图片",name:"btnBuy.imgUrl"},{default:d(()=>[o(w,{modelValue:e(t).btnBuy.imgUrl,"onUpdate:modelValue":l[20]||(l[20]=a=>e(t).btnBuy.imgUrl=a),height:"56px",width:"56px","show-description":!1},{tip:d(()=>[...l[28]||(l[28]=[f(" 建议尺寸56 * 56 ",-1)])]),_:1},8,["modelValue"])]),_:1}))]),_:1}),o(e(m),{title:"商品样式",class:"property-group"},{default:d(()=>[o(e(u),{label:"上圆角",name:"borderRadiusTop"},{default:d(()=>[o(e(g),{value:e(t).borderRadiusTop,"onUpdate:value":l[21]||(l[21]=a=>e(t).borderRadiusTop=a),max:100,min:0},null,8,["value"])]),_:1}),o(e(u),{label:"下圆角",name:"borderRadiusBottom"},{default:d(()=>[o(e(g),{value:e(t).borderRadiusBottom,"onUpdate:value":l[22]||(l[22]=a=>e(t).borderRadiusBottom=a),max:100,min:0},null,8,["value"])]),_:1}),o(e(u),{label:"间隔",name:"space"},{default:d(()=>[o(e(g),{value:e(t).space,"onUpdate:value":l[23]||(l[23]=a=>e(t).space=a),max:100,min:0},null,8,["value"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]))}});export{de as default};