import{_ as t,G as e,b as l,d as i,p as o,w as s,i as n,o as a,f as r,k as c,br as d,C as u,D as h}from"./index-2PZN6pGH.js";import{_ as f}from"./uni-card.CpdfOoXJ.js";import{_ as p}from"./uni-list-item.BlW01pkd.js";import{_}from"./uni-list.WXd8u5z3.js";import{_ as g}from"./uni-section.BISPxi99.js";import"./uni-badge.BFkMAjEp.js";const x=t({components:{},data:()=>({cover:"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg",avatar:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png",extraIcon:{color:"#4cd964",size:"22",type:"gear-filled"}}),methods:{onClick(t){console.log("执行click事件",t.data),e({title:"点击反馈"})},switchChange(t){e({title:"change:"+t.value,icon:"none"})}}},[["render",function(t,e,x,m,b,w){const k=u,C=l(i("uni-card"),f),T=l(i("uni-list-item"),p),y=l(i("uni-list"),_),A=l(i("uni-section"),g),j=n,v=h;return a(),o(j,{class:"container"},{default:s((()=>[r(C,{"is-shadow":!1,"is-full":""},{default:s((()=>[r(k,{class:"uni-h6"},{default:s((()=>[c("列表组件可以在其中使用图标、略缩图或放置任何你想放的元素，使用场景如：导航菜单、列表、设置中心排版等")])),_:1})])),_:1}),r(A,{title:"基础用法",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{title:"列表文字"}),r(T,{title:"列表文字",rightText:"右侧文字"}),r(T,{title:"列表文字",note:"列表描述信息",rightText:"右侧文字"})])),_:1})])),_:1}),r(A,{title:"禁用列表",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{disabled:!0,title:"列表禁用状态",rightText:"右侧文字"}),r(T,{disabled:!0,title:"列表禁用状态",rightText:"右侧文字"})])),_:1})])),_:1}),r(A,{title:"显示右侧箭头",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{showArrow:"",title:"列表文字"}),r(T,{showArrow:"",title:"列表文字",rightText:"右侧文字"})])),_:1})])),_:1}),r(A,{title:"开启点击反馈",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{title:"弹窗提示",clickable:"",onClick:w.onClick},null,8,["onClick"]),r(T,{title:"页面跳转",to:"./chat",onClick:w.onClick},null,8,["to","onClick"]),r(T,{title:"关闭当前页面打开新页面",showArrow:"",link:"redirectTo",to:"./chat",onClick:w.onClick},null,8,["onClick"]),r(T,{title:"打开错误页面(查看控制台)",showArrow:"",link:"redirectTo",to:"./chats",onClick:w.onClick},null,8,["onClick"])])),_:1})])),_:1}),r(A,{title:"不显示分隔线",type:"line"},{default:s((()=>[r(y,{border:!1},{default:s((()=>[r(T,{title:"列表文字"}),r(T,{border:!1,title:"列表文字",note:"列表描述信息",rightText:"右侧文字"}),r(T,{border:!1,title:"列表文字",note:"列表描述信息",rightText:"右侧文字"})])),_:1})])),_:1}),r(A,{title:"分隔线通栏",type:"line"},{default:s((()=>[r(y,{"border-full":""},{default:s((()=>[r(T,{title:"列表文字"}),r(T,{title:"列表文字",note:"列表描述信息",rightText:"右侧文字"}),r(T,{title:"列表文字",note:"列表描述信息",rightText:"右侧文字"})])),_:1})])),_:1}),r(A,{title:"文字溢出隐藏",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{ellipsis:"1",title:"超长文字显示一行,以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字"}),r(T,{ellipsis:"2",title:"超长文字显示二行,以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字",rightText:"二行显示"}),r(T,{ellipsis:"1",title:"全部显示,以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字",note:"列表描述信息,下是测试文字,下是测试文字,下是测试文字,下是测试文字,下是测试文字,下是测试文字,下是测试文字",showArrow:"",rightText:"一行显示"}),r(T,{title:"全部显示,以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字以下是测试文字",showArrow:"",rightText:"全部"})])),_:1})])),_:1}),r(A,{title:"显示图标或图片",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,{"show-extra-icon":!0,showArrow:"","extra-icon":b.extraIcon,title:"列表左侧带扩展图标"},null,8,["extra-icon"]),r(T,{title:"列表左侧带略缩图",note:"列表描述信息",showArrow:"",thumb:"/static/c1.png","thumb-size":"sm",rightText:"小图"}),r(T,{title:"列表左侧带略缩图",note:"列表描述信息",showArrow:"",thumb:"https://web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png","thumb-size":"base",rightText:"默认"}),r(T,{title:"列表左侧带略缩图",note:"列表描述信息",showArrow:"",thumb:"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png","thumb-size":"lg",rightText:"大图"})])),_:1})])),_:1}),r(A,{title:"使用插槽",type:"line"},{default:s((()=>[r(y,null,{default:s((()=>[r(T,null,{body:s((()=>[r(j,{class:"slot-box"},{default:s((()=>[r(k,{class:"slot-text"},{default:s((()=>[c("使用 body 插槽")])),_:1})])),_:1})])),_:1}),r(T,{title:"自定义右侧插槽",note:"列表描述信息",link:""},{footer:s((()=>[r(v,{class:"slot-image",src:d,mode:"widthFix"})])),_:1}),r(T,null,{header:s((()=>[r(j,{class:"slot-box"},{default:s((()=>[r(v,{class:"slot-image",src:d,mode:"widthFix"})])),_:1})])),body:s((()=>[r(k,{class:"slot-box slot-text"},{default:s((()=>[c("自定义两侧插槽")])),_:1})])),footer:s((()=>[r(v,{class:"slot-image",src:d,mode:"widthFix"})])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-c1d96f16"]]);export{x as default};
