vant/v3/assets/index.af1d3903.js
2024-04-20 08:49:23 +00:00

2 lines
1.8 KiB
JavaScript

import{V as s}from"./index.99afab90.js";import{V as r}from"./index.8e37fe56.js";import{a as u}from"./use-translate.d2900b8c.js";import{z as m,C as _,r as c,o as d,a as y,e,w as o,B as t,h as i,t as f,d as p,F as B}from"./vue-libs.b44bc779.js";import"./with-install.19a35764.js";import"./constant.80c6de18.js";import"./use-route.82f2be69.js";import"./index.b70c9b40.js";import"./index.4e4daaac.js";const g=p("div",{style:{height:"200px"}},null,-1),U=m({__name:"index",setup(x){const a=u({"zh-CN":{offsetTop:"\u5438\u9876\u8DDD\u79BB",offsetBottom:"\u5438\u5E95\u8DDD\u79BB",setContainer:"\u6307\u5B9A\u5BB9\u5668"},"en-US":{offsetTop:"Offset Top",offsetBottom:"Offset Bottom",setContainer:"Set Container"}}),l=_();return(h,C)=>{const n=c("demo-block");return d(),y(B,null,[e(n,{title:t(a)("basicUsage")},{default:o(()=>[e(t(s),null,{default:o(()=>[e(t(r),{type:"primary",style:{"margin-left":"15px"}},{default:o(()=>[i(f(t(a)("basicUsage")),1)]),_:1})]),_:1})]),_:1},8,["title"]),e(n,{title:t(a)("offsetTop")},{default:o(()=>[e(t(s),{"offset-top":50},{default:o(()=>[e(t(r),{type:"primary",style:{"margin-left":"115px"}},{default:o(()=>[i(f(t(a)("offsetTop")),1)]),_:1})]),_:1})]),_:1},8,["title"]),e(n,{title:t(a)("setContainer")},{default:o(()=>[p("div",{ref_key:"container",ref:l,style:{height:"150px","background-color":"var(--van-background-color-light)"}},[e(t(s),{container:l.value},{default:o(()=>[e(t(r),{type:"warning",style:{"margin-left":"215px"}},{default:o(()=>[i(f(t(a)("setContainer")),1)]),_:1})]),_:1},8,["container"])],512)]),_:1},8,["title"]),e(n,{title:t(a)("offsetBottom")},{default:o(()=>[g,e(t(s),{"offset-bottom":50,position:"bottom"},{default:o(()=>[e(t(r),{type:"primary",style:{"margin-left":"15px"}},{default:o(()=>[i(f(t(a)("offsetBottom")),1)]),_:1})]),_:1})]),_:1},8,["title"])],64)}}});export{U as default};