CustomerChoiceView, ChildOrdersView and ReportView bound their Drawer with v-model:open, which only exists from ant-design-vue 4. Both apps ship 3.2.20, so the drawer never opened: tapping a customer in «مشتریان من» did nothing and the "ورود به حساب این مشتری" button inside it was unreachable. Rebuilds user-app and user-app-v2 dist. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{d as P,j as z,k as F,l as B,b as s,c as t,e as a,m as e,w as D,q as v,I as f,p as I,f as N,g as h,t as n,h as S,J as V,i as q,_ as E}from"./index-B1z3uS71.js";const j={class:"pc__art"},J=["alt"],L={key:1,class:"pc__artEmpty","aria-hidden":"true"},M=["aria-label"],O={key:2,class:"pc__flag"},$={key:3,class:"pc__flag pc__flag--soft"},A={class:"pc__body"},G={class:"pc__title"},H={class:"pc__meta"},K={class:"pc__weight"},Q={key:0,class:"pc__wage"},R=P({__name:"ProductCard",props:{value:{}},setup(m){const r=m,i=z(),{image:l,id:c,title:_,min_gram:g,wage:d,is_exist:y,qty:k,isPreOrder:w}=F(r.value),p=S(null);function x(){V(r.value,p.value)}const b=q(()=>{const o=d.value;return o==null?"":o%1===0?String(o):o.toFixed(2)});return(o,u)=>{const C=B("lazy");return s(),t("article",{ref_key:"root",ref:p,class:"pc","data-product-origin":"",onClick:x},[a("div",j,[e(l)?D((s(),t("img",{key:0,alt:e(_)},null,8,J)),[[C,e(l)]]):(s(),t("div",L,[v(f,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:N(["pc__fav",{"is-on":e(i).isFavorite(e(c))}]),"aria-label":e(i).isFavorite(e(c))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:u[0]||(u[0]=I(T=>e(i).toggle(e(c)),["stop"]))},[v(f,{icon:e(i).isFavorite(e(c))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,M),e(y)?e(w)&&e(k)===0?(s(),t("span",$,"پیشسفارش")):h("",!0):(s(),t("span",O,"ناموجود"))]),a("div",A,[a("h3",G,n(e(_)),1),a("div",H,[a("span",K,n(e(g))+" گرم",1),e(d)!=null?(s(),t("span",Q,"اجرت "+n(b.value)+"٪",1)):h("",!0)])])],512)}}}),W=E(R,[["__scopeId","data-v-a0c95205"]]);export{W as P};
|