diff --git a/docs/assets/Button-ZG0iWZWb.js b/docs/assets/Button-ZG0iWZWb.js new file mode 100644 index 00000000..1d38f0f6 --- /dev/null +++ b/docs/assets/Button-ZG0iWZWb.js @@ -0,0 +1 @@ +import{_ as m}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import"./index-aWLd-FXG.js";export{m as default}; diff --git a/docs/assets/Button-lKei0djz.js b/docs/assets/Button-lKei0djz.js deleted file mode 100644 index 08c95e9f..00000000 --- a/docs/assets/Button-lKei0djz.js +++ /dev/null @@ -1 +0,0 @@ -import{a as m}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import"./index-BY3UnrMK.js";export{m as default}; diff --git a/docs/assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js b/docs/assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js new file mode 100644 index 00000000..121f1699 --- /dev/null +++ b/docs/assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js @@ -0,0 +1 @@ +import{d as n,o as a,e as d,w as r,v as i,a as l,c as t,F as c,b as p,t as u,r as f,n as b}from"./index-aWLd-FXG.js";const m=l("path",{d:"M520.665 64.564a29.244 29.244 0 0 0-7.071-.894c-16.211 0-29.35 13.14-29.35 29.35 0 15.83 12.538 28.696 28.223 29.293v.073c.375 0 .751-.014 1.127-.014 216.493 0 389.629 173.942 389.629 390.433 0 216.496-173.136 388.827-389.63 388.827s-389.63-172.333-389.63-388.829c0-.27.01-.536.01-.804h-.01c0-16.209-13.141-29.35-29.35-29.35s-29.35 13.139-29.35 29.35c0 .055.007.11.007.164-.001.214-.007.425-.007.64 0 247.609 200.722 448.331 448.33 448.331 247.607 0 448.33-200.722 448.33-448.33-.002-245.242-196.917-444.456-441.258-448.24z",fill:"currentColor"},null,-1),y=n({__name:"LoadingIcon",setup(o){return(e,s)=>(a(),d(i,null,{default:r(()=>[m]),_:1}))}}),_=["disabled","type"],B=n({__name:"Button",props:{type:{default:"normal"},disabled:{type:Boolean,default:!1},htmlType:{default:"button"},block:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},round:{type:Boolean,default:!1},loadingText:{default:"加载中……"},loading:{type:Boolean,default:!1}},setup(o){return(e,s)=>(a(),t("button",{class:b(["nt-btn",e.type?"nt-btn-"+e.type:"",e.block?"nt-btn-block":"",e.round?"nt-btn-round":"",e.circle?"nt-btn-circle":"",e.loading?"nt-btn-loading":""]),disabled:e.disabled||e.loading,type:e.htmlType},[e.loading?(a(),t(c,{key:0},[p(y,{class:"nt-rotate-anim"}),l("span",null,u(e.loadingText),1)],64)):f(e.$slots,"default",{key:1})],10,_))}});export{B as _,y as a}; diff --git a/docs/assets/Card-N3B_gwQo.js b/docs/assets/Card-N3B_gwQo.js new file mode 100644 index 00000000..7be08ff6 --- /dev/null +++ b/docs/assets/Card-N3B_gwQo.js @@ -0,0 +1 @@ +import{b as o}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import"./index-aWLd-FXG.js";export{o as default}; diff --git a/docs/assets/Card-m0brm6gg.js b/docs/assets/Card-m0brm6gg.js new file mode 100644 index 00000000..f237e6e2 --- /dev/null +++ b/docs/assets/Card-m0brm6gg.js @@ -0,0 +1 @@ +import{d as r,o as a,c as o,a as t,t as i,r as _,b as s,F as d}from"./index-aWLd-FXG.js";import{_ as p}from"./ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js";import"./Table.vue_vue_type_script_lang-TeoTULpr.js";const l={class:"preview-wrapper"},m={class:"preview-header center"},u={class:"preview-container"},f=r({__name:"CodePreview",props:{title:{}},setup(n){return(e,c)=>(a(),o("div",l,[t("div",m,i(e.title),1),t("div",u,[_(e.$slots,"default")])]))}}),v={class:"nt-scrollbar doc-main"},$=r({__name:"Card",setup(n){return(e,c)=>(a(),o(d,null,[t("div",v,[s(p)]),s(f,{title:"Card"})],64))}});export{$ as default}; diff --git a/docs/assets/CodeExample-k3jN25PL.css b/docs/assets/CodeExample-k3jN25PL.css new file mode 100644 index 00000000..7483b2af --- /dev/null +++ b/docs/assets/CodeExample-k3jN25PL.css @@ -0,0 +1 @@ +.code-example{display:grid;gap:20px;grid-template-columns:1fr 1fr;margin:5px 0}.code-example-col{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:min-content;gap:20px} diff --git a/docs/assets/CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js b/docs/assets/CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js new file mode 100644 index 00000000..a490cc12 --- /dev/null +++ b/docs/assets/CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js @@ -0,0 +1 @@ +import{d as o,m as l}from"./index-aWLd-FXG.js";const n=o({setup(s,{slots:a}){const t=[],c=[];if(a.default!=null)for(let e=0,d=a.default().length;el("div",{class:"code-example"},[l("div",{class:"code-example-col"},t),l("div",{class:"code-example-col"},c)])}});export{n as _}; diff --git a/docs/assets/Container-VHombvnz.js b/docs/assets/Container-VHombvnz.js new file mode 100644 index 00000000..ebcf82ac --- /dev/null +++ b/docs/assets/Container-VHombvnz.js @@ -0,0 +1,44 @@ +import{_ as i}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{_ as n}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{_ as o}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{_ as c}from"./CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js";import{_ as l}from"./ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js";import{d,o as r,e as m,w as a,b as t,a as e}from"./index-aWLd-FXG.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import"./Table.vue_vue_type_script_lang-TeoTULpr.js";const h=e("p",null," 容器布局,采用了 flex 布局,一般用于后台管理项目的一些常用排版,方便快速搭建页面的基本结构: ",-1),_=e("ul",{class:"ul-list"},[e("li",null," nt-container:外层容器,一般用于 section 标签,基本排版为水平左右排列,可以通过设置 nt-layout-verticle 调整为垂直上下排列。可以嵌套 "),e("li",null,"nt-header:顶栏容器,一般用于 header 标签。"),e("li",null,"nt-aside: 侧边栏容器,一般用于 aside 标签。"),e("li",null,"nt-main: 主要区域容器,一般用于 main 标签。"),e("li",null,"nt-footer: 底部,一般用于 footer 标签。")],-1),u=e("p",null,"通常在做后台管理系统的首页排版上",-1),f=e("h2",null,"引入",-1),p=e("p",null,"由于使用不是特别频繁,所以没有封装为组件",-1),v=e("p",null,"样式需要单独引入",-1),g=e("p",null,"在使用时,需要手动引入",-1),x=e("h2",null,"常见布局",-1),y=e("p",null," 在 header 里面放点东西就成了,就成了经典的后台管理系统的模板, 左右是图标,右边是登录用户 ",-1),M=` +
+
Header
+
Main
+
+`,w=` +
+ +
Main
+
+`,A=` +
+
Header
+
+ +
Main
+
+
+`,$=` +
+
+ NEATUI +
登录用户
+
+
+ +
Main
+
+
+`,H=` +
+ +
+
Header
+
Main
+
+
+`,B=` +
+
Header
+
Main
+
Footer
+
+`,U=d({__name:"Container",setup(C){const s=[{name:"--nt-header-height",description:"header高度",default:"50px"},{name:"--nt-footer-height",description:"footer高度",default:"var(--nt-header-height, 50px)"},{name:"--nt-aside-width",description:"侧边栏宽度",default:"240px"}];return(N,k)=>(r(),m(o,null,{default:a(()=>[h,_,u,f,p,v,t(i,{lang:"js",code:"import 'neatui-vue/style/container.css'"}),g,x,t(c,null,{default:a(()=>[t(n,{code:M,lang:"html",title:"上下两栏排版"}),t(n,{code:w,lang:"html",title:"左右两栏排版"}),t(n,{code:A,lang:"html",title:"上下两栏嵌套"}),t(n,{code:$,lang:"html",title:"经典后台系统"},{description:a(()=>[y]),_:1}),t(n,{code:H,lang:"html",title:"左右两栏嵌套"}),t(n,{code:B,lang:"html",title:"上中下三栏"})]),_:1}),t(l,{rows:s})]),_:1}))}});export{U as default}; diff --git a/docs/assets/Container-VK_isnBv.js b/docs/assets/Container-VK_isnBv.js deleted file mode 100644 index 2012d271..00000000 --- a/docs/assets/Container-VK_isnBv.js +++ /dev/null @@ -1,44 +0,0 @@ -import{_ as s}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{_ as n}from"./PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js";import{d as i,o,c,a as e,b as a,e as t}from"./index-BY3UnrMK.js";const d={class:"nt-scrollbar doc-main"},l=a('

容器布局,采用了 flex 布局,一般用于后台管理项目的一些常用排版,方便快速搭建页面的基本结构:

通常在做后台管理系统的首页排版上

引入

由于使用不是特别频繁,所以没有封装为组件

样式需要单独引入

',6),r=t("p",null,"在使用时,需要手动引入",-1),h=t("h2",null,"常见布局",-1),m=t("h3",null,"1. 上下两栏排版",-1),_=t("h3",null,"2. 左右两列布局",-1),p=t("h3",null,"3. 上下两栏,下栏又包含左右两列排版",-1),u=t("h3",null,"4. 后台管理系统模板",-1),f=t("p",null," 在 header 里面放点东西就成了,就成了经典的后台管理系统的模板, 左右是图标,右边是登录用户 ",-1),v=t("h3",null,"5. 左右两列,右边又包含上下两栏排版",-1),g=t("h3",null,"6. 上中下三栏",-1),y=a('

主题定制

样式变量

组件提供了下列 CSS 变量,可用于自定义样式,

名称描述默认值
--nt-header-heightheader高度50px
--nt-footer-heightfooter高度var(--nt-header-height, 50px)
--nt-aside-width侧边栏宽度240px
',4),b=` -
-
Header
-
Main
-
-`,x=` -
- -
Main
-
-`,M=` -
-
Header
-
- -
Main
-
-
-`,A=` -
-
- NEATUI -
登录用户
-
-
- -
Main
-
-
-`,H=` -
- -
-
Header
-
Main
-
-
-`,N=` -
-
Header
-
Main
-
Footer
-
-`,$=i({__name:"Container",setup(B){return(C,S)=>(o(),c("div",d,[l,e(s,{lang:"js",code:"import 'neatui-vue/style/container.css'"}),r,h,m,e(n,{code:b,lang:"html"}),_,e(n,{code:x,lang:"html"}),p,e(n,{code:M,lang:"html"}),u,f,e(n,{code:A,lang:"html"}),v,e(n,{code:H,lang:"html"}),g,e(n,{code:N,lang:"html"}),y]))}});export{$ as default}; diff --git a/docs/assets/Directives-aEDj-lLj.js b/docs/assets/Directives-aEDj-lLj.js new file mode 100644 index 00000000..a87af751 --- /dev/null +++ b/docs/assets/Directives-aEDj-lLj.js @@ -0,0 +1,5 @@ +import{_ as s}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{_ as c}from"./Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js";import{_ as l}from"./CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js";import{_ as n}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{d as a,o as _,e as r,w as e,b as i,f as d,u as p,g as u,a as t}from"./index-aWLd-FXG.js";import"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";const m=t("h1",null,"Directives",-1),h=t("p",null,"提供了一些常用的自定义指令",-1),f=t("p",null," 点击元素外事件, 常用于需要点击元素外,关闭某个弹窗; 例如: Select、Tooltip ",-1),v={style:{width:"200px",height:"50px"}},x=` +
+ +
+`,V=a({__name:"Directives",setup(k){function o(){console.log("outside click")}return(w,g)=>(_(),r(s,null,{default:e(()=>[m,h,i(l,null,{default:e(()=>[i(n,{lang:"html",code:x,title:"vClickoutside"},{description:e(()=>[f]),preview:e(()=>[t("div",v,[u(i(c,{placeholder:"输入过滤"},null,512),[[p(d),o]])])]),_:1})]),_:1})]),_:1}))}});export{V as default}; diff --git a/docs/assets/DocMain-gAli1yMV.css b/docs/assets/DocMain-gAli1yMV.css new file mode 100644 index 00000000..870838be --- /dev/null +++ b/docs/assets/DocMain-gAli1yMV.css @@ -0,0 +1 @@ +.sub-aside-link{font-size:13px;color:#333;transition:color .3s;display:inline-block;width:100%;padding:3px 5px}.sub-aside-link:hover{color:var(--nt-primary-color)} diff --git a/docs/assets/DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js b/docs/assets/DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js new file mode 100644 index 00000000..9a25a5d5 --- /dev/null +++ b/docs/assets/DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js @@ -0,0 +1 @@ +import{d as E,p as u,x as g,y,z as A,o as f,c as i,a as _,r as T,F as B,j as C,t as S,n as b,l as L,A as $}from"./index-aWLd-FXG.js";const z={class:"doc-wrapper"},D={key:0},F=["href"],M=E({__name:"DocMain",props:{hasAside:{type:Boolean,default:!0}},setup(x){const k=x,o=u(),r=u([]),d=u("");function v(t,l,s){const e=t[l].offset;t[l].offset=[e[0],s]}const h=$(()=>{p()},200);function p(){let t=0;o.value!=null&&(t=o.value.scrollTop);let l="",s=-1;for(let e=0,n=r.value.length;e=a.offset[0]&&t{k.hasAside&&y(()=>{if(o.value!=null){const t=o.value.offsetTop,l=o.value.scrollHeight,s=o.value.querySelectorAll("h2,h3"),e=[];let n=-1;for(const a of s){const c=a.textContent;if(c!=null){a.id=c;const m=a.offsetTop-t;e.push({text:c,offset:[m,-1]}),n!==-1&&v(e,n,m),n++}}n!==-1&&v(e,n,l),e.sort((a,c)=>a.offset[0]-c.offset[0]),r.value=e,p(),r.value.length>0&&o.value.addEventListener("scroll",h)}})}),A(()=>{o.value!=null&&o.value.removeEventListener("scroll",h)}),(t,l)=>(f(),i("div",z,[_("div",{ref_key:"scollEl",ref:o,class:"nt-scrollbar doc-main"},[T(t.$slots,"default")],512),t.hasAside&&r.value.length>0?(f(),i("ul",D,[(f(!0),i(B,null,C(r.value,s=>(f(),i("li",{key:s.text},[_("a",{class:b({"aside-item--active":d.value===s.text,"sub-aside-link":!0}),href:"#"+s.text},S(s.text),11,F)]))),128))])):L("",!0)]))}});export{M as _}; diff --git a/docs/assets/ErrorIcon-FyfLiV4E.js b/docs/assets/ErrorIcon-FyfLiV4E.js new file mode 100644 index 00000000..7b935ec0 --- /dev/null +++ b/docs/assets/ErrorIcon-FyfLiV4E.js @@ -0,0 +1 @@ +import{B as f}from"./index-aWLd-FXG.js";export{f as default}; diff --git a/docs/assets/ErrorIcon-wwxjXTYE.js b/docs/assets/ErrorIcon-wwxjXTYE.js deleted file mode 100644 index 54ff246d..00000000 --- a/docs/assets/ErrorIcon-wwxjXTYE.js +++ /dev/null @@ -1 +0,0 @@ -import{x as f}from"./index-BY3UnrMK.js";export{f as default}; diff --git a/docs/assets/FontIcon-cUJyE_5c.js b/docs/assets/FontIcon-cUJyE_5c.js deleted file mode 100644 index 0aca13dd..00000000 --- a/docs/assets/FontIcon-cUJyE_5c.js +++ /dev/null @@ -1 +0,0 @@ -import{d as n,o as a,g as s,w as o,e as t,q as r}from"./index-BY3UnrMK.js";const _=["xlink:href"],p=n({__name:"FontIcon",props:{name:{}},setup(c){return(e,i)=>(a(),s(r,{"use-link":""},{default:o(()=>[t("use",{"xlink:href":`#${e.name}`},null,8,_)]),_:1}))}});export{p as default}; diff --git a/docs/assets/FontIcon-w_A5AUQW.js b/docs/assets/FontIcon-w_A5AUQW.js new file mode 100644 index 00000000..ce0a2259 --- /dev/null +++ b/docs/assets/FontIcon-w_A5AUQW.js @@ -0,0 +1 @@ +import{d as a,o as n,e as s,w as o,a as t,v as r}from"./index-aWLd-FXG.js";const _=["xlink:href"],p=a({__name:"FontIcon",props:{name:{}},setup(c){return(e,i)=>(n(),s(r,{"use-link":""},{default:o(()=>[t("use",{"xlink:href":`#${e.name}`},null,8,_)]),_:1}))}});export{p as default}; diff --git a/docs/assets/Icon-1CQEZRYi.js b/docs/assets/Icon-1CQEZRYi.js deleted file mode 100644 index bc50ff98..00000000 --- a/docs/assets/Icon-1CQEZRYi.js +++ /dev/null @@ -1,14 +0,0 @@ -import{d as m,f as d,o as _,c as u,a as c,e as n,F as f,r as g,g as v,n as I,h as E,t as y,i,b as A,_ as e,M as V}from"./index-BY3UnrMK.js";import{_ as a,c as b}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{_ as L}from"./PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js";const O={class:"nt-scrollbar doc-main"},C=n("h2",null,"说明",-1),D=n("p",null,[i(" 推荐使用"),n("a",{href:"https://icon-sets.iconify.design/"},"iconify字体图标库"),i("里面包含有很多平台资源,并且都是按需加载的。 ")],-1),T=n("p",null,"由于框架有的组件需要用到图标,所以框架也会内置一些图标库",-1),k=n("h3",null,"使用内置图标",-1),P=n("p",null,"内置如下图标",-1),R={class:"icon-list"},S=["onClick"],w={class:"icon-name"},x=n("h3",null,"使用 iconfont 图标",-1),N=n("p",null,"使用时需要单独引入 Iconfont 图标组件。",-1),$=n("p",null,"name 属性填入引入的 iconfont 文件里面对应的 id 即可",-1),B=n("h3",null,"颜色和尺寸",-1),F=n("p",null,"修改颜色和尺寸可以通过 color 和 font-size 修改",-1),M=n("p",null,[i(" 如果不想直接修改 style,也能通过 "),n("a",{href:"https://tailwindui.com/"},"Tailwind CSS"),i(" 或者 "),n("a",{href:"https://unocss.dev/"},"unocss"),i(" 更简单的实现 ")],-1),j=n("h3",null,"自定义图标",-1),z=n("p",null," 可以通过使用 base-icon 然后加入自定义的 svg-path 路径来构建自定义的图标 ",-1),G=A('

当然自定义图标,也可以使用 unplugin-icons 来实现

使用自定义图标库

本身提供的图标数量有限,如果不能满足需求,可以考虑使用通用性更强、数量更多的图标库。

  • 推荐图标格式:SVG
  • 推荐图标库:iconify,它提供了超过 200000 个开源图标。
  • 两种方式可以使用 iconify: @iconify/vueunplugin-icons
  • 推荐使用 unplugin-icons 既能离线加载,也能自定义图标
',4),W=` - - - -`,Q=m({__name:"Icon",setup(Z){function p(t){const o=t.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`);return o[0]==="-"?o.substring(1):o}const l=Object.assign({"../components/ErrorIcon.vue":()=>e(()=>import("./ErrorIcon-wwxjXTYE.js"),__vite__mapDeps([0,1,2])),"../components/FontIcon.vue":()=>e(()=>import("./FontIcon-cUJyE_5c.js"),__vite__mapDeps([3,1,2])),"../components/Icon.vue":()=>e(()=>import("./Icon-OkoEHz8A.js"),__vite__mapDeps([4,1,2])),"../components/InfoIcon.vue":()=>e(()=>import("./InfoIcon-Ka6aix4f.js"),__vite__mapDeps([5,1,2])),"../components/LoadingIcon.vue":()=>e(()=>import("./LoadingIcon-I-TkTxzP.js"),__vite__mapDeps([6,7,1,2,8])),"../components/MaskCloseIcon.vue":()=>e(()=>import("./MaskCloseIcon-G5mu5Z-q.js"),__vite__mapDeps([9,1,2])),"../components/SearchIcon.vue":()=>e(()=>import("./SearchIcon-FNegqfxZ.js"),__vite__mapDeps([10,1,2])),"../components/SuccessIcon.vue":()=>e(()=>import("./SuccessIcon-tKE-_ZY5.js"),__vite__mapDeps([11,1,2])),"../components/WarnIcon.vue":()=>e(()=>import("./WarnIcon-j9p8YPXx.js"),__vite__mapDeps([12,1,2]))}),r=[];for(const t in l)if(Object.hasOwn(l,t)){let o=t.replace("../components/","").replace(".vue","").replace("Icon","");o=p(o),o!==""&&o!=="font"&&r.push({name:o,component:d(l[t])})}async function h(t){await b(``),V.success("复制成功")}return(t,o)=>(_(),u("div",O,[C,D,T,k,c(a,{lang:"html",code:""}),P,n("ul",R,[(_(),u(f,null,g(r,s=>n("li",{key:s.name,class:"icon-item center",onClick:q=>h(s.name)},[(_(),v(E(s.component),{class:I({"nt-rotate-anim":s.name.includes("loading")})},null,8,["class"])),n("span",w,y(s.name),1)],8,S)),64))]),x,N,c(a,{lang:"html",code:''}),$,B,F,c(a,{lang:"html",code:''}),M,c(a,{lang:"html",code:''}),j,z,c(L,{lang:"html",code:W}),G]))}});export{Q as default}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/ErrorIcon-wwxjXTYE.js","assets/index-BY3UnrMK.js","assets/index-ajNacQlh.css","assets/FontIcon-cUJyE_5c.js","assets/Icon-OkoEHz8A.js","assets/InfoIcon-Ka6aix4f.js","assets/LoadingIcon-I-TkTxzP.js","assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js","assets/SourceCode-JiUKO_wr.css","assets/MaskCloseIcon-G5mu5Z-q.js","assets/SearchIcon-FNegqfxZ.js","assets/SuccessIcon-tKE-_ZY5.js","assets/WarnIcon-j9p8YPXx.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/docs/assets/Icon-OkoEHz8A.js b/docs/assets/Icon-OkoEHz8A.js deleted file mode 100644 index d748c76e..00000000 --- a/docs/assets/Icon-OkoEHz8A.js +++ /dev/null @@ -1 +0,0 @@ -import{q as f}from"./index-BY3UnrMK.js";export{f as default}; diff --git a/docs/assets/Icon-RSY1D6c2.js b/docs/assets/Icon-RSY1D6c2.js new file mode 100644 index 00000000..b0ec2629 --- /dev/null +++ b/docs/assets/Icon-RSY1D6c2.js @@ -0,0 +1 @@ +import{v as f}from"./index-aWLd-FXG.js";export{f as default}; diff --git a/docs/assets/Icon-yCmhqYfe.js b/docs/assets/Icon-yCmhqYfe.js new file mode 100644 index 00000000..e5c352f1 --- /dev/null +++ b/docs/assets/Icon-yCmhqYfe.js @@ -0,0 +1,14 @@ +import{d,h as f,o as _,e as r,w as p,b as i,F as g,i as v,n as I,t as E,a as n,j as y,c as A,k as o,_ as e,M as V}from"./index-aWLd-FXG.js";import{_ as l,c as C}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{_ as L}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{_ as O}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";const b=n("h2",null,"说明",-1),k=n("p",null,[o(" 推荐使用"),n("a",{href:"https://icon-sets.iconify.design/"},"iconify字体图标库"),o("里面包含有很多平台资源,并且都是按需加载的。 ")],-1),D=n("p",null,"由于框架有的组件需要用到图标,所以框架也会内置一些图标库",-1),T=n("h3",null,"使用内置图标",-1),w=n("p",null,"内置如下图标",-1),P={class:"icon-list"},R=["onClick"],S={class:"icon-name"},x=n("h3",null,"使用 iconfont 图标",-1),$=n("p",null,"使用时需要单独引入 Iconfont 图标组件。",-1),j=n("p",null,"name 属性填入引入的 iconfont 文件里面对应的 id 即可",-1),B=n("h3",null,"颜色和尺寸",-1),F=n("p",null,"修改颜色和尺寸可以通过 color 和 font-size 修改",-1),M=n("p",null,[o(" 如果不想直接修改 style,也能通过 "),n("a",{href:"https://tailwindui.com/"},"Tailwind CSS"),o(" 或者 "),n("a",{href:"https://unocss.dev/"},"unocss"),o(" 更简单的实现 ")],-1),N=n("h3",null,"自定义 svg 图标",-1),z=n("p",null," 可以通过使用 base-icon 然后加入自定义的 svg-path 路径来构建自定义的图标 ",-1),G=n("p",null,[o(" 当然自定义图标,也可以使用 "),n("a",{href:"https://github.com/unplugin/unplugin-icons"},"unplugin-icons"),o(" 来实现 ")],-1),W=n("h3",null,"使用自定义图标库",-1),Z=n("p",null," 本身提供的图标数量有限,如果不能满足需求,可以考虑使用通用性更强、数量更多的图标库。 ",-1),q=n("ul",{class:"ul-list"},[n("li",null,"推荐图标格式:SVG"),n("li",null,[o(" 推荐图标库:"),n("a",{href:"https://iconify.design/"},"iconify"),o(",它提供了超过 200000 个开源图标。 ")]),n("li",null,[o(" 两种方式可以使用 iconify: "),n("a",{href:"https://www.npmjs.com/package/@iconify/vue"},"@iconify/vue"),o(" 和 "),n("a",{href:"https://github.com/unplugin/unplugin-icons"},"unplugin-icons")]),n("li",null,[o(" 推荐使用 "),n("a",{href:"https://github.com/unplugin/unplugin-icons"},"unplugin-icons"),o(" 既能离线加载,也能自定义图标 ")])],-1),H=` + + + +`,on=d({__name:"Icon",setup(J){function h(s){const t=s.replace(/([A-Z])/g,c=>`-${c.toLowerCase()}`);return t[0]==="-"?t.substring(1):t}const a=Object.assign({"../components/ErrorIcon.vue":()=>e(()=>import("./ErrorIcon-FyfLiV4E.js"),__vite__mapDeps([0,1,2])),"../components/FontIcon.vue":()=>e(()=>import("./FontIcon-w_A5AUQW.js"),__vite__mapDeps([3,1,2])),"../components/Icon.vue":()=>e(()=>import("./Icon-RSY1D6c2.js"),__vite__mapDeps([4,1,2])),"../components/InfoIcon.vue":()=>e(()=>import("./InfoIcon-xWIrffc_.js"),__vite__mapDeps([5,1,2])),"../components/LoadingIcon.vue":()=>e(()=>import("./LoadingIcon-E_lI5a4k.js"),__vite__mapDeps([6,7,1,2])),"../components/MaskCloseIcon.vue":()=>e(()=>import("./MaskCloseIcon-a7nCoNSi.js"),__vite__mapDeps([8,1,2])),"../components/SearchIcon.vue":()=>e(()=>import("./SearchIcon-rrfbOCOU.js"),__vite__mapDeps([9,1,2])),"../components/SuccessIcon.vue":()=>e(()=>import("./SuccessIcon--1eWKqVU.js"),__vite__mapDeps([10,1,2])),"../components/WarnIcon.vue":()=>e(()=>import("./WarnIcon-wAGPtzRf.js"),__vite__mapDeps([11,1,2]))}),u=[];for(const s in a)if(Object.hasOwn(a,s)){let t=s.replace("../components/","").replace(".vue","").replace("Icon","");t=h(t),t!==""&&t!=="font"&&u.push({name:t,component:f(a[s])})}async function m(s){await C(``),V.success("复制成功")}return(s,t)=>(_(),r(O,null,{default:p(()=>[b,k,D,T,i(l,{lang:"html",code:""}),w,n("ul",P,[(_(),A(g,null,y(u,c=>n("li",{key:c.name,class:"icon-item center",onClick:K=>m(c.name)},[(_(),r(v(c.component),{class:I({"nt-rotate-anim":c.name.includes("loading")})},null,8,["class"])),n("span",S,E(c.name),1)],8,R)),64))]),x,$,i(l,{lang:"html",code:''}),j,B,F,i(l,{lang:"html",code:''}),M,i(l,{lang:"html",code:''}),N,i(L,{lang:"html",code:H,title:"自定义图标"},{description:p(()=>[z]),_:1}),G,W,Z,q]),_:1}))}});export{on as default}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/ErrorIcon-FyfLiV4E.js","assets/index-aWLd-FXG.js","assets/index-DqNuWikU.css","assets/FontIcon-w_A5AUQW.js","assets/Icon-RSY1D6c2.js","assets/InfoIcon-xWIrffc_.js","assets/LoadingIcon-E_lI5a4k.js","assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js","assets/MaskCloseIcon-a7nCoNSi.js","assets/SearchIcon-rrfbOCOU.js","assets/SuccessIcon--1eWKqVU.js","assets/WarnIcon-wAGPtzRf.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/docs/assets/InfoIcon-Ka6aix4f.js b/docs/assets/InfoIcon-Ka6aix4f.js deleted file mode 100644 index 8f41b71f..00000000 --- a/docs/assets/InfoIcon-Ka6aix4f.js +++ /dev/null @@ -1 +0,0 @@ -import{y as f}from"./index-BY3UnrMK.js";export{f as default}; diff --git a/docs/assets/InfoIcon-xWIrffc_.js b/docs/assets/InfoIcon-xWIrffc_.js new file mode 100644 index 00000000..f6546fe8 --- /dev/null +++ b/docs/assets/InfoIcon-xWIrffc_.js @@ -0,0 +1 @@ +import{C as f}from"./index-aWLd-FXG.js";export{f as default}; diff --git a/docs/assets/Input-0qkEu0kx.js b/docs/assets/Input-0qkEu0kx.js deleted file mode 100644 index 93517300..00000000 --- a/docs/assets/Input-0qkEu0kx.js +++ /dev/null @@ -1 +0,0 @@ -import{d as t,o as p,c as l}from"./index-BY3UnrMK.js";const o=["type","placeholder"],c=t({__name:"Input",props:{htmlType:{default:"text"},placeholder:{default:""}},setup(a){return(e,n)=>(p(),l("input",{type:e.htmlType,class:"nt-input",placeholder:e.placeholder},null,8,o))}});export{c as default}; diff --git a/docs/assets/Input-r_-p2AO5.js b/docs/assets/Input-r_-p2AO5.js new file mode 100644 index 00000000..1236abe8 --- /dev/null +++ b/docs/assets/Input-r_-p2AO5.js @@ -0,0 +1 @@ +import{_ as m}from"./Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js";import"./index-aWLd-FXG.js";export{m as default}; diff --git a/docs/assets/Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js b/docs/assets/Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js new file mode 100644 index 00000000..64953a9e --- /dev/null +++ b/docs/assets/Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js @@ -0,0 +1 @@ +import{d as t,o as p,c as l}from"./index-aWLd-FXG.js";const o=["type","placeholder"],c=t({__name:"Input",props:{htmlType:{default:"text"},placeholder:{default:""}},setup(n){return(e,a)=>(p(),l("input",{type:e.htmlType,class:"nt-input",placeholder:e.placeholder},null,8,o))}});export{c as _}; diff --git a/docs/assets/LoadingIcon-E_lI5a4k.js b/docs/assets/LoadingIcon-E_lI5a4k.js new file mode 100644 index 00000000..9b1e6c50 --- /dev/null +++ b/docs/assets/LoadingIcon-E_lI5a4k.js @@ -0,0 +1 @@ +import{a as m}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import"./index-aWLd-FXG.js";export{m as default}; diff --git a/docs/assets/LoadingIcon-I-TkTxzP.js b/docs/assets/LoadingIcon-I-TkTxzP.js deleted file mode 100644 index 29bfd60d..00000000 --- a/docs/assets/LoadingIcon-I-TkTxzP.js +++ /dev/null @@ -1 +0,0 @@ -import{b as m}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import"./index-BY3UnrMK.js";export{m as default}; diff --git a/docs/assets/MaskCloseIcon-G5mu5Z-q.js b/docs/assets/MaskCloseIcon-a7nCoNSi.js similarity index 69% rename from docs/assets/MaskCloseIcon-G5mu5Z-q.js rename to docs/assets/MaskCloseIcon-a7nCoNSi.js index 26e9d838..688932d4 100644 --- a/docs/assets/MaskCloseIcon-G5mu5Z-q.js +++ b/docs/assets/MaskCloseIcon-a7nCoNSi.js @@ -1 +1 @@ -import{d as e,o as a,g as o,w as t,q as s,e as n}from"./index-BY3UnrMK.js";const c=n("path",{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"},null,-1),p=e({__name:"MaskCloseIcon",setup(r){return(_,l)=>(a(),o(s,{"view-box":"0 0 24 24"},{default:t(()=>[c]),_:1}))}});export{p as default}; +import{d as e,o as a,e as o,w as t,v as s,a as n}from"./index-aWLd-FXG.js";const c=n("path",{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"},null,-1),p=e({__name:"MaskCloseIcon",setup(r){return(_,l)=>(a(),o(s,{"view-box":"0 0 24 24"},{default:t(()=>[c]),_:1}))}});export{p as default}; diff --git a/docs/assets/Message-ayl9oJM7.js b/docs/assets/Message-ayl9oJM7.js new file mode 100644 index 00000000..5547d5a0 --- /dev/null +++ b/docs/assets/Message-ayl9oJM7.js @@ -0,0 +1,18 @@ +import{_ as y}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{_ as C}from"./CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js";import{_ as c}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{d as g,o as p,c as f,t as v,l as N,b as s,F as w,e as h,w as e,M as r,u as d,k as n,a as o}from"./index-aWLd-FXG.js";import{_ as a}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import{_ as j}from"./PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js";import{_ as B}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";const I={key:0},V=g({__name:"MethodTable",props:{title:{default:"Methods"},data:{}},setup(M){const m=[{key:"name",title:"名称"},{key:"param",title:"参数"},{key:"description",title:"说明"},{key:"return",title:"返回类型"}];return(i,u)=>(p(),f(w,null,[i.title!=null&&i.title!==""?(p(),f("h3",I,v(i.title),1)):N("",!0),s(B,{columns:m,data:i.data},null,8,["data"])],64))}}),b=o("h1",null,"Message 消息提示",-1),D=o("p",null,"常用于主动操作后的反馈提示。更多用于系统级通知的被动提醒。",-1),x=o("p",null,"从顶部出现,3 秒后自动消失; 可以接收一个字符串被显示为正文内容",-1),F=o("p",null,"用来显示「成功、警告、消息、错误」类的操作反馈。",-1),S=o("p",null," 当需要自定义更多属性时,Message 也可以接收一个对象为参数。 比如,设置 type 字段可以定义不同的状态,默认为 info 。 此时正文内容以 message 的值传入。 同时,也为 Message 的各种 type 注册了方法,可以在不传入 type 字段的情况下, 直接调用指定类型的函数, 例如: Message.info('x')。 ",-1),T=o("p",null," 将 duration 属性设置为 0, 可以使 Message 不自动消失。然后显示消息的函数会返回一个消息 id, 通过手动调用 close 手动关闭 ",-1),A=o("p",null,"通过 duration 属性设定 Message 的持续时间。",-1),E=o("h2",null,"API",-1),P='NtMessage.info("这是一条普通的提示信息")',q=` +NtMessage.success("这是一条成功的提示信息"); +NtMessage.error("这是一条错误的提示信息"); +NtMessage.warning("这是一条警告的提示信息"); +NtMessage.info("这是一条普通的提示信息"); +`,z=`NtMessage.info({ + message: "这是一条提示信息", + duration: 5000 +})`,G=` +// 打开消息 +let msgId = NtMessage.info({ + message: '这是一条提示信息', + duration: 0 +}) + +// 关闭消息 +NtMessage.close(msgId) +`,W=g({__name:"Message",setup(M){let m="";function i(_=3e3){m=r.info({message:"这是一条提示信息",duration:_})}function u(){r.close(m)}const k=[{name:"message",description:"消息文字",default:"",type:"string"},{name:"type",description:"消息类型",default:"info",type:"info | success | warn | error"},{name:"customClass",description:"自定义类名",default:"",type:"string"},{name:"duration",description:"显示时间,单位为毫秒。 设为 0 则不会自动关闭",default:"3000",type:"number"}],$=[{name:"info",param:"{...}",description:"显示普通消息, 参数为配置项, 返回消息id",return:"string"},{name:"success",param:"{...}",description:"成功消息",return:"string"},{name:"warn",param:"{...}",description:"警告消息",return:"string"},{name:"error",param:"{...}",description:"错误消息",return:"string"},{name:"close",param:"id",description:"关闭消息, 调用 Message 会返回当前 Message 的id。 如果需要手动关闭实例,可以调用它的 close 方法。",return:"void"}];return(_,t)=>(p(),h(y,null,{default:e(()=>[b,D,s(C,null,{default:e(()=>[s(c,{lang:"js",title:"基础用法",code:P},{description:e(()=>[x]),preview:e(()=>[s(a,{onClick:t[0]||(t[0]=l=>d(r).info("这是一条普通的提示信息"))},{default:e(()=>[n(" 显示信息 ")]),_:1})]),_:1}),s(c,{lang:"js",title:"不同状态",code:q},{description:e(()=>[F,S]),preview:e(()=>[s(a,{onClick:t[1]||(t[1]=l=>d(r).success("这是一条普通的提示信息"))},{default:e(()=>[n(" 成功信息 ")]),_:1}),s(a,{onClick:t[2]||(t[2]=l=>d(r).warn("这是一条普通的提示信息")),class:"ml-10"},{default:e(()=>[n(" 警告信息 ")]),_:1}),s(a,{onClick:t[3]||(t[3]=l=>d(r).error("这是一条普通的提示信息")),class:"ml-10"},{default:e(()=>[n(" 错误信息 ")]),_:1}),s(a,{onClick:t[4]||(t[4]=l=>d(r).info("这是一条普通的提示信息")),class:"ml-10"},{default:e(()=>[n(" 普通信息 ")]),_:1})]),_:1}),s(c,{lang:"js",title:"手动关闭",code:G},{description:e(()=>[T]),preview:e(()=>[s(a,{onClick:t[5]||(t[5]=l=>i(0))},{default:e(()=>[n("打开")]),_:1}),s(a,{onClick:u,class:"ml-10"},{default:e(()=>[n("关闭")]),_:1})]),_:1}),s(c,{lang:"js",title:"时间",code:z},{description:e(()=>[A]),preview:e(()=>[s(a,{onClick:t[6]||(t[6]=l=>i(5e3))},{default:e(()=>[n("持续5秒")]),_:1})]),_:1})]),_:1}),E,s(j,{data:k,title:"Message 配置项"}),s(V,{data:$,title:"Message 方法"})]),_:1}))}});export{W as default}; diff --git a/docs/assets/PcCodePreview-heD0Ifax.css b/docs/assets/PcCodePreview-heD0Ifax.css new file mode 100644 index 00000000..f8e6a429 --- /dev/null +++ b/docs/assets/PcCodePreview-heD0Ifax.css @@ -0,0 +1 @@ +.pc-code-preview{margin:10px 0}.pc-code-preview h3{font-size:16px;font-weight:400;margin:0}.pc-code-preview .preview-body{padding:0}.pc-code-preview .code-description{font-size:15px;padding:15px;border-bottom:1px solid #dedede}.pc-code-preview .code-preview{padding:15px}.pc-code-preview .source-code{border-top:1px solid #dedede}.pc-code-preview .source-code pre{margin:0}.pc-code-preview .nt-header,.pc-code-preview .nt-footer{background-color:#c5e2ff}.pc-code-preview .nt-main{background-color:#ecf5ff}.pc-code-preview .nt-aside{background-color:#d9ecff}.expand-btn{color:#333}.pc-doc,.pc-previewer{width:calc((100% - 30px)/2)}.pc-previewer{margin-left:30px}.pc-previewer .nt-container{border:1px solid #dedede;height:100%} diff --git a/docs/assets/PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js b/docs/assets/PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js deleted file mode 100644 index 312a6f11..00000000 --- a/docs/assets/PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as a}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{d as c,l as s,m as p,f as d,p as m,_ as o}from"./index-BY3UnrMK.js";function i(t){const e={};for(const n of t.getAttributeNames()){const r=t.getAttribute(n);e[n]=p(r)?!0:r}return e}const l=function(t){if(t.startsWith("nt-")){let e=v(t);return d(()=>m(Object.assign({"../components/Button.vue":()=>o(()=>import("./Button-lKei0djz.js"),__vite__mapDeps([0,1,2,3,4])),"../components/ErrorIcon.vue":()=>o(()=>import("./ErrorIcon-wwxjXTYE.js"),__vite__mapDeps([5,2,3])),"../components/FontIcon.vue":()=>o(()=>import("./FontIcon-cUJyE_5c.js"),__vite__mapDeps([6,2,3])),"../components/Icon.vue":()=>o(()=>import("./Icon-OkoEHz8A.js"),__vite__mapDeps([7,2,3])),"../components/InfoIcon.vue":()=>o(()=>import("./InfoIcon-Ka6aix4f.js"),__vite__mapDeps([8,2,3])),"../components/Input.vue":()=>o(()=>import("./Input-0qkEu0kx.js"),__vite__mapDeps([9,2,3])),"../components/LoadingIcon.vue":()=>o(()=>import("./LoadingIcon-I-TkTxzP.js"),__vite__mapDeps([10,1,2,3,4])),"../components/MaskCloseIcon.vue":()=>o(()=>import("./MaskCloseIcon-G5mu5Z-q.js"),__vite__mapDeps([11,2,3])),"../components/SearchIcon.vue":()=>o(()=>import("./SearchIcon-FNegqfxZ.js"),__vite__mapDeps([12,2,3])),"../components/SuccessIcon.vue":()=>o(()=>import("./SuccessIcon-tKE-_ZY5.js"),__vite__mapDeps([13,2,3])),"../components/Table.vue":()=>o(()=>import("./Table-pY-fwxdu.js"),__vite__mapDeps([14,15])),"../components/WarnIcon.vue":()=>o(()=>import("./WarnIcon-j9p8YPXx.js"),__vite__mapDeps([16,2,3]))}),`../components/${e}.vue`))}return t};function v(t){if(t.startsWith("nt-")){let e=t.substring(3);if(e==="base-icon")return"Icon";{let n=e.split("-");return n=n.map(r=>r[0].toUpperCase()+r.substring(1)),e=n.join(""),e}}return t}function _(t){const e=[];for(const n of t){const r=l(n.localName);n.children.length===0?n.localName.startsWith("nt-")?e.push(s(r,i(n),{default:()=>n.textContent})):e.push(s(r,i(n),{default:()=>n.textContent})):e.push(s(r,i(n),{default:()=>_(n.children)}))}return e}const f=c({name:"CodeRender",props:{code:{type:String,required:!1}},setup(t,{slots:e}){if(e.default!=null)return()=>e.default();if(t.code!=null){const r=new DOMParser().parseFromString(t.code,"text/html"),u=_(r.body.children);return()=>u}}}),A=c({name:"PcCodePreview",props:{code:{type:String,required:!0},lang:{type:String,required:!1,default:"js"}},setup(t,{slots:e}){const n=e.default==null?void 0:e.default();return()=>s("div",{class:"pc-doc-previewer"},[s("div",{class:"pc-doc"},s(a,{lang:t.lang,code:t.code})),s("div",{class:"pc-previewer"},s(f,{code:t.code},n))])}});export{A as _}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Button-lKei0djz.js","assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js","assets/index-BY3UnrMK.js","assets/index-ajNacQlh.css","assets/SourceCode-JiUKO_wr.css","assets/ErrorIcon-wwxjXTYE.js","assets/FontIcon-cUJyE_5c.js","assets/Icon-OkoEHz8A.js","assets/InfoIcon-Ka6aix4f.js","assets/Input-0qkEu0kx.js","assets/LoadingIcon-I-TkTxzP.js","assets/MaskCloseIcon-G5mu5Z-q.js","assets/SearchIcon-FNegqfxZ.js","assets/SuccessIcon-tKE-_ZY5.js","assets/Table-pY-fwxdu.js","assets/_plugin-vue_export-helper-x3n3nnut.js","assets/WarnIcon-j9p8YPXx.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/docs/assets/PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js b/docs/assets/PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js new file mode 100644 index 00000000..7e26b47d --- /dev/null +++ b/docs/assets/PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js @@ -0,0 +1,7 @@ +import{a as y,_ as C,c as T}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{d as l,o as a,c as i,t as u,r as c,a as d,l as m,n as E,k as b,m as s,q as A,h as L,s as g,_ as r,e as D,w as V,v as $,p as w,M as O}from"./index-aWLd-FXG.js";import{_ as f}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";const P={class:"nt-card"},R={key:0,class:"nt-card__header"},k={key:0},S={key:1,class:"nt-card__footer"},B={key:0},W=l({__name:"Card",props:{headerText:{},showHeader:{type:Boolean,default:!0},footerText:{},showFooter:{type:Boolean,default:!1},bodyClass:{}},setup(t){return(e,o)=>(a(),i("div",P,[e.showHeader?(a(),i("div",R,[e.headerText?(a(),i("span",k,u(e.headerText),1)):c(e.$slots,"header",{key:1}),d("div",null,[c(e.$slots,"header-extra")])])):m("",!0),d("div",{class:E(["nt-card__body",e.bodyClass||""])},[c(e.$slots,"default")],2),e.showFooter?(a(),i("div",S,[e.footerText?(a(),i("span",B,u(e.footerText),1)):c(e.$slots,"footer",{key:1})])):m("",!0)]))}}),x={class:"nt-tooltip-text"},v=l({__name:"Tooltip",props:{title:{},placement:{default:"top"}},setup(t){return(e,o)=>(a(),i("div",{class:E({"nt-tooltip":!0,"nt-tooltip-top":e.placement.startsWith("top"),"nt-tooltip-bottom":e.placement.startsWith("bottom"),"nt-tooltip-start":e.placement.endsWith("Start"),"nt-tooltip-end":e.placement.endsWith("End")})},[c(e.$slots,"default"),d("div",x,[c(e.$slots,"title",{},()=>[b(u(e.title),1)])])],2))}});function p(t){const e={};for(const o of t.getAttributeNames()){const n=t.getAttribute(o);e[o]=A(n)?!0:n}return e}const M=function(t){if(t.startsWith("nt-")){let e=N(t);return L(()=>g(Object.assign({"../components/Button.vue":()=>r(()=>import("./Button-ZG0iWZWb.js"),__vite__mapDeps([0,1,2,3])),"../components/Card.vue":()=>r(()=>import("./Card-N3B_gwQo.js"),__vite__mapDeps([4,5,1,2,3,6])),"../components/ErrorIcon.vue":()=>r(()=>import("./ErrorIcon-FyfLiV4E.js"),__vite__mapDeps([7,2,3])),"../components/FontIcon.vue":()=>r(()=>import("./FontIcon-w_A5AUQW.js"),__vite__mapDeps([8,2,3])),"../components/Icon.vue":()=>r(()=>import("./Icon-RSY1D6c2.js"),__vite__mapDeps([9,2,3])),"../components/InfoIcon.vue":()=>r(()=>import("./InfoIcon-xWIrffc_.js"),__vite__mapDeps([10,2,3])),"../components/Input.vue":()=>r(()=>import("./Input-r_-p2AO5.js"),__vite__mapDeps([11,12,2,3])),"../components/LoadingIcon.vue":()=>r(()=>import("./LoadingIcon-E_lI5a4k.js"),__vite__mapDeps([13,1,2,3])),"../components/MaskCloseIcon.vue":()=>r(()=>import("./MaskCloseIcon-a7nCoNSi.js"),__vite__mapDeps([14,2,3])),"../components/SearchIcon.vue":()=>r(()=>import("./SearchIcon-rrfbOCOU.js"),__vite__mapDeps([15,2,3])),"../components/SuccessIcon.vue":()=>r(()=>import("./SuccessIcon--1eWKqVU.js"),__vite__mapDeps([16,2,3])),"../components/Table.vue":()=>r(()=>import("./Table-n-c9npYx.js"),__vite__mapDeps([17,18,2,3])),"../components/Tooltip.vue":()=>r(()=>import("./Tooltip-d19KBCH6.js"),__vite__mapDeps([19,5,1,2,3,6])),"../components/WarnIcon.vue":()=>r(()=>import("./WarnIcon-wAGPtzRf.js"),__vite__mapDeps([20,2,3]))}),`../components/${e}.vue`))}return t};function N(t){if(t.startsWith("nt-")){let e=t.substring(3);if(e==="base-icon")return"Icon";{let o=e.split("-");return o=o.map(n=>n[0].toUpperCase()+n.substring(1)),e=o.join(""),e}}return t}function I(t){const e=[];for(const o of t){const n=M(o.localName);o.children.length===0?o.localName.startsWith("nt-")?e.push(s(n,p(o),{default:()=>o.textContent})):e.push(s(n,p(o),{default:()=>o.textContent})):e.push(s(n,p(o),{default:()=>I(o.children)}))}return e}const h=l({name:"CodeRender",props:{code:{type:String,required:!1}},setup(t,{slots:e}){if(e.default!=null)return()=>e.default();if(t.code!=null){console.log(t.code);const n=new DOMParser().parseFromString(t.code,"text/html");console.log(n);const _=I(n.body.children);return()=>_}}}),q=d("path",{fill:"currentColor",d:"m23 12l-7.071 7.071l-1.414-1.414L20.172 12l-5.657-5.657l1.414-1.414L23 12zM3.828 12l5.657 5.657l-1.414 1.414L1 12l7.071-7.071l1.414 1.414L3.828 12z"},null,-1),F=l({__name:"ExpandIcon",setup(t){return(e,o)=>(a(),D($,{"view-box":"0 0 24 24"},{default:V(()=>[q]),_:1}))}}),U=l({props:{title:{type:String,required:!0},code:{type:String,required:!0},lang:{type:String,default:"js"}},setup(t,{slots:e,attrs:o}){const n=w(!1);async function _(){await T(t.code.trim()),O.success("复制成功")}return()=>s(W,{...o,class:"pc-code-preview",bodyClass:"preview-body"},{header:()=>s("h3",null,{default:()=>t.title}),"header-extra":()=>[s(v,{title:"复制代码",placement:"topEnd",onclick:_},()=>s(f,{type:"text",class:"expand-btn"},()=>s(y))),s(v,{title:"查看源代码",placement:"topEnd",onclick:()=>{n.value=!n.value}},()=>s(f,{type:"text",class:"expand-btn"},()=>s(F)))],default:()=>[e.description?s("div",{class:"code-description"},e.description()):null,s("div",{class:"code-preview"},e.preview?s(h,{code:t.code},{default:()=>e.preview()}):s(h,{code:t.code})),n.value?s(C,{code:t.code,lang:t.lang,showCopy:!1}):null]})}});export{U as _,v as a,W as b}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Button-ZG0iWZWb.js","assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js","assets/index-aWLd-FXG.js","assets/index-DqNuWikU.css","assets/Card-N3B_gwQo.js","assets/SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js","assets/SourceCode-EzMuMj5l.css","assets/ErrorIcon-FyfLiV4E.js","assets/FontIcon-w_A5AUQW.js","assets/Icon-RSY1D6c2.js","assets/InfoIcon-xWIrffc_.js","assets/Input-r_-p2AO5.js","assets/Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js","assets/LoadingIcon-E_lI5a4k.js","assets/MaskCloseIcon-a7nCoNSi.js","assets/SearchIcon-rrfbOCOU.js","assets/SuccessIcon--1eWKqVU.js","assets/Table-n-c9npYx.js","assets/Table.vue_vue_type_script_lang-TeoTULpr.js","assets/Tooltip-d19KBCH6.js","assets/WarnIcon-wAGPtzRf.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/docs/assets/PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js b/docs/assets/PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js new file mode 100644 index 00000000..37647d15 --- /dev/null +++ b/docs/assets/PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js @@ -0,0 +1 @@ +import{_ as l}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import{d as n,o as t,c as a,t as s,l as r,b as i,F as p}from"./index-aWLd-FXG.js";const m={key:0},f=n({__name:"PropTable",props:{title:{default:"Props"},data:{}},setup(c){const o=[{key:"name",title:"名称"},{key:"type",title:"类型"},{key:"default",title:"默认值"},{key:"description",title:"说明"}];return(e,d)=>(t(),a(p,null,[e.title!=null&&e.title!==""?(t(),a("h3",m,s(e.title),1)):r("",!0),i(l,{columns:o,data:e.data},null,8,["data"])],64))}});export{f as _}; diff --git a/docs/assets/SearchIcon-FNegqfxZ.js b/docs/assets/SearchIcon-rrfbOCOU.js similarity index 67% rename from docs/assets/SearchIcon-FNegqfxZ.js rename to docs/assets/SearchIcon-rrfbOCOU.js index f0e0d688..43a518a5 100644 --- a/docs/assets/SearchIcon-FNegqfxZ.js +++ b/docs/assets/SearchIcon-rrfbOCOU.js @@ -1 +1 @@ -import{d as e,o as a,g as o,w as t,q as s,e as c}from"./index-BY3UnrMK.js";const n=c("path",{fill:"currentColor",d:"M15.1 5.9a6.5 6.5 0 10-9.2 9.2 6.5 6.5 0 009.2-9.2zM4.49 4.5a8.5 8.5 0 0112.69 11.27l5.34 5.35-1.41 1.41-5.35-5.34A8.5 8.5 0 014.5 4.49z"},null,-1),p=e({__name:"SearchIcon",setup(r){return(_,l)=>(a(),o(s,{"view-box":"0 0 24 24"},{default:t(()=>[n]),_:1}))}});export{p as default}; +import{d as e,o as a,e as o,w as t,v as s,a as c}from"./index-aWLd-FXG.js";const n=c("path",{fill:"currentColor",d:"M15.1 5.9a6.5 6.5 0 10-9.2 9.2 6.5 6.5 0 009.2-9.2zM4.49 4.5a8.5 8.5 0 0112.69 11.27l5.34 5.35-1.41 1.41-5.35-5.34A8.5 8.5 0 014.5 4.49z"},null,-1),p=e({__name:"SearchIcon",setup(r){return(_,l)=>(a(),o(s,{"view-box":"0 0 24 24"},{default:t(()=>[n]),_:1}))}});export{p as default}; diff --git a/docs/assets/SourceCode-JiUKO_wr.css b/docs/assets/SourceCode-EzMuMj5l.css similarity index 71% rename from docs/assets/SourceCode-JiUKO_wr.css rename to docs/assets/SourceCode-EzMuMj5l.css index 63dd3f3e..3030c0d2 100644 --- a/docs/assets/SourceCode-JiUKO_wr.css +++ b/docs/assets/SourceCode-EzMuMj5l.css @@ -1 +1 @@ -.source-code{position:relative}.source-code .code-bopy-btn{position:absolute;z-index:1;top:5px;right:5px;background-color:#fffc;padding:0;color:#999}.source-code .code-bopy-btn:hover{color:var(--nt-primary-color)}pre[class*=language-]{position:relative;padding:10px} +.source-code{position:relative}.source-code .code-bopy-btn{position:absolute;z-index:1;top:5px;right:5px;background-color:#fffc;padding:0;color:#999}.source-code .code-bopy-btn:hover{color:var(--nt-primary-color)} diff --git a/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js b/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js new file mode 100644 index 00000000..7a0f69ac --- /dev/null +++ b/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js @@ -0,0 +1 @@ +import{_ as d}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import{d as c,o as r,e as i,w as u,k as p,u as m,v as f,a as n,p as y,x as h,c as _,n as l,b as g,l as v,M as C}from"./index-aWLd-FXG.js";const x=n("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"},null,-1),b=n("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"},null,-1),w=c({__name:"CopyIcon",setup(t){return(e,a)=>(r(),i(m(f),{"view-box":"0 0 1024 1024"},{default:u(()=>[x,b,p(" >")]),_:1}))}});function T(t){const e=document.createElement("textarea");return e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999",e.setAttribute("readonly",""),e.value=t,e}function k(t){const e=T(t);document.body.append(e),e.focus(),e.select();const a=document.execCommand("copy");return e.remove(),Promise.resolve(a)}function E(t){const e=navigator.clipboard;return e!=null?e.writeText(t).then(()=>{Promise.resolve(!0)}).catch(()=>Promise.resolve(!1)):Promise.resolve(!1)}function P(t){let e=null,a=null;if(typeof t=="string"&&(t.startsWith("#")||t.startsWith(".")?(a=document.querySelector(t),a==null&&(e=t)):e=t),t instanceof HTMLElement&&(a=t),a!=null)if(a.hasAttribute("data-copy-text"))e=a.getAttribute("data-copy-text");else{const o=a.tagName;o==="INPUT"||o==="TEXTAREA"?e=a.value:e=a.textContent}return e}async function M(t){const e=P(t);return e==null?Promise.resolve(!1):await E(e)===!1?k(e):Promise.resolve(!0)}const A={class:"source-code"},N=["innerHTML"],$=c({__name:"SourceCode",props:{lang:{default:"typescript"},code:{},showCopy:{type:Boolean,default:!0}},setup(t){const e=t;async function a(){await M(e.code.trim()),C.success("复制成功")}const o=y("");return h(()=>{o.value=window.Prism.highlight(e.code.trim(),window.Prism.languages[e.lang],e.lang)}),(s,V)=>(r(),_("div",A,[n("pre",{class:l(["nt-scrollbar","nt-scrollbar-x","language-"+s.lang])},[n("code",{class:l("language-"+s.lang),innerHTML:o.value},null,10,N)],2),s.showCopy?(r(),i(d,{key:0,type:"text",class:"code-bopy-btn",onClick:a},{default:u(()=>[g(w)]),_:1})):v("",!0)]))}});export{$ as _,w as a,M as c}; diff --git a/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js b/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js deleted file mode 100644 index 8f96ea42..00000000 --- a/docs/assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js +++ /dev/null @@ -1 +0,0 @@ -import{d as s,o as l,g as p,w as u,q as f,e as n,c as r,F as m,a as c,t as y,s as g,n as i,i as _,u as h,k as b,v,M as C}from"./index-BY3UnrMK.js";const T=n("path",{d:"M520.665 64.564a29.244 29.244 0 0 0-7.071-.894c-16.211 0-29.35 13.14-29.35 29.35 0 15.83 12.538 28.696 28.223 29.293v.073c.375 0 .751-.014 1.127-.014 216.493 0 389.629 173.942 389.629 390.433 0 216.496-173.136 388.827-389.63 388.827s-389.63-172.333-389.63-388.829c0-.27.01-.536.01-.804h-.01c0-16.209-13.141-29.35-29.35-29.35s-29.35 13.139-29.35 29.35c0 .055.007.11.007.164-.001.214-.007.425-.007.64 0 247.609 200.722 448.331 448.33 448.331 247.607 0 448.33-200.722 448.33-448.33-.002-245.242-196.917-444.456-441.258-448.24z",fill:"currentColor"},null,-1),k=s({__name:"LoadingIcon",setup(t){return(e,a)=>(l(),p(f,null,{default:u(()=>[T]),_:1}))}}),w=["disabled","type"],B=s({__name:"Button",props:{type:{default:"normal"},disabled:{type:Boolean,default:!1},htmlType:{default:"button"},block:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},round:{type:Boolean,default:!1},loadingText:{default:"加载中……"},loading:{type:Boolean,default:!1}},setup(t){return(e,a)=>(l(),r("button",{class:i(["nt-btn",e.type?"nt-btn-"+e.type:"",e.block?"nt-btn-block":"",e.round?"nt-btn-round":"",e.circle?"nt-btn-circle":"",e.loading?"nt-btn-loading":""]),disabled:e.disabled||e.loading,type:e.htmlType},[e.loading?(l(),r(m,{key:0},[c(k,{class:"nt-rotate-anim"}),n("span",null,y(e.loadingText),1)],64)):g(e.$slots,"default",{key:1})],10,w))}}),E=n("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"},null,-1),M=n("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"},null,-1),P=s({__name:"CopyIcon",setup(t){return(e,a)=>(l(),p(h(f),{"view-box":"0 0 1024 1024"},{default:u(()=>[E,M,_(" >")]),_:1}))}});function $(t){const e=document.createElement("textarea");return e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999",e.setAttribute("readonly",""),e.value=t,e}function x(t){const e=$(t);document.body.append(e),e.focus(),e.select();const a=document.execCommand("copy");return e.remove(),Promise.resolve(a)}function A(t){let e=navigator.clipboard;return e!=null?e.writeText(t).then(()=>{Promise.resolve(!0)}).catch(()=>Promise.resolve(!1)):Promise.resolve(!1)}function N(t){let e=null,a=null;if(typeof t=="string"&&(t.startsWith("#")||t.startsWith(".")?(a=document.querySelector(t),a==null&&(e=t)):e=t),t instanceof HTMLElement&&(a=t),a!=null)if(a.hasAttribute("data-copy-text"))e=a.getAttribute("data-copy-text");else{const o=a.tagName;o==="INPUT"||o==="TEXTAREA"?e=a.value:e=a.textContent}return e}async function V(t){const e=N(t);return e==null?Promise.resolve(!1):await A(e)===!1?x(e):Promise.resolve(!0)}const F={class:"source-code"},H=["innerHTML"],S=s({__name:"SourceCode",props:{lang:{default:"typescript"},code:{}},setup(t){const e=t;async function a(){await V(e.code.trim()),C.success("复制成功")}const o=b("");return v(()=>{o.value=window.Prism.highlight(e.code.trim(),window.Prism.languages[e.lang],e.lang)}),(d,z)=>(l(),r("div",F,[n("pre",{class:i(["nt-scrollbar","nt-scrollbar-x","language-"+d.lang])},[n("code",{class:i("language-"+d.lang),innerHTML:o.value},null,10,H)],2),c(B,{type:"text",class:"code-bopy-btn",onClick:a},{default:u(()=>[c(P)]),_:1})]))}});export{S as _,B as a,k as b,V as c}; diff --git a/docs/assets/SuccessIcon--1eWKqVU.js b/docs/assets/SuccessIcon--1eWKqVU.js new file mode 100644 index 00000000..a6699af7 --- /dev/null +++ b/docs/assets/SuccessIcon--1eWKqVU.js @@ -0,0 +1 @@ +import{D as f}from"./index-aWLd-FXG.js";export{f as default}; diff --git a/docs/assets/SuccessIcon-tKE-_ZY5.js b/docs/assets/SuccessIcon-tKE-_ZY5.js deleted file mode 100644 index 7e3f1725..00000000 --- a/docs/assets/SuccessIcon-tKE-_ZY5.js +++ /dev/null @@ -1 +0,0 @@ -import{z as f}from"./index-BY3UnrMK.js";export{f as default}; diff --git a/docs/assets/Table-3nfGgeq-.js b/docs/assets/Table-3nfGgeq-.js new file mode 100644 index 00000000..5cd410e5 --- /dev/null +++ b/docs/assets/Table-3nfGgeq-.js @@ -0,0 +1 @@ +import{_ as i}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import{_ as r}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import{d as c,o as l,c as m,b as f,m as t}from"./index-aWLd-FXG.js";const h={style:{width:"550px",height:"300px",overflow:"auto"},class:"nt-scrollbar nt-scrollbar-x"},x=c({__name:"Table",setup(_){const d=[{key:"id",title:"ID",sorter:!0,fixed:"left",width:50},{key:"name",title:"姓名",width:100,fixed:"left"},{key:"age",title:"年龄",sorter:!0,width:60,render:e=>t("span",{style:{color:"orange"}},e.age)},{key:"address",title:"地址",width:200},{key:"score",title:"分数",width:60},{title:"操作",fixed:"right",width:150,render:()=>[t(r,{type:"text"},"新增"),t(r,{type:"text"},"编辑"),t(r,{type:"text"},"删除")]}],a=[{id:1,name:"查娜",age:18,address:"四川成都",score:100},{id:2,name:"查娜",age:2,address:"四川成都",score:100},{id:3,name:"查娜",age:2,address:"四川成都",score:100},{id:4,name:"查娜",age:2,address:"四川成都",score:100},{id:5,name:"查娜",age:2,address:"四川成都",score:100},{id:2,name:"查娜",age:2,address:"四川成都",score:100},{id:6,name:"查娜",age:2,address:"四川成都",score:100},{id:7,name:"查娜",age:2,address:"四川成都",score:100}];function o(e){return a.sort((s,n)=>s[e.key]-n[e.key])}return(e,s)=>(l(),m("div",h,[f(i,{columns:d,data:a,"fixed-head":"",onSortChange:o})]))}});export{x as default}; diff --git a/docs/assets/Table-FKSsjb7d.css b/docs/assets/Table-FKSsjb7d.css new file mode 100644 index 00000000..f3f014df --- /dev/null +++ b/docs/assets/Table-FKSsjb7d.css @@ -0,0 +1 @@ +.demo-table{table-layout:fixed}.demo-table thead tr{position:sticky;top:0} diff --git a/docs/assets/Table-n-c9npYx.js b/docs/assets/Table-n-c9npYx.js new file mode 100644 index 00000000..de7f1ecf --- /dev/null +++ b/docs/assets/Table-n-c9npYx.js @@ -0,0 +1 @@ +import{_ as m}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import"./index-aWLd-FXG.js";export{m as default}; diff --git a/docs/assets/Table-pY-fwxdu.js b/docs/assets/Table-pY-fwxdu.js deleted file mode 100644 index c1baf1c4..00000000 --- a/docs/assets/Table-pY-fwxdu.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_plugin-vue_export-helper-x3n3nnut.js";const r={};function c(n,t){return null}const o=e(r,[["render",c]]);export{o as default}; diff --git a/docs/assets/Table.vue_vue_type_script_lang-TeoTULpr.js b/docs/assets/Table.vue_vue_type_script_lang-TeoTULpr.js new file mode 100644 index 00000000..b7502dd1 --- /dev/null +++ b/docs/assets/Table.vue_vue_type_script_lang-TeoTULpr.js @@ -0,0 +1 @@ +import{d as p,p as w,m as s}from"./index-aWLd-FXG.js";const v=p({props:{columns:{type:Array,required:!0},stripe:{type:Boolean,default:!0,required:!1},fixedHead:{type:Boolean,default:!1,required:!1},data:{type:Array,required:!0},columnKey:{type:String,required:!1}},emits:["sort-change"],setup(l,{emit:h}){const o=w({key:"",order:""});function y(){const a=l.columns.length;if(l.columns[0].fixed||l.columns[a-1].fixed)return!0;let r=!1;for(let n=0;n{m({key:e.key||"",index:i,order:"asc",sorter:e.sorter})}),a.push(s("th",f,[s("span",e.title),e.sorter===!0?s("span",{class:"caret-wrapper"},[s("span",{class:"sort-caret ascending"}),s("span",{class:"sort-caret descending"})]):null]))}return a}function k(){const a=[];for(let r=0,n=l.data.length;rs("table",{class:["nt-table",l.stripe?"nt-table-stripe":"",x?"nt-table-fixed":""]},[s("thead",s("tr",{class:{"nt-fixed":l.fixedHead},style:{top:l.fixedHead?"0":void 0}},g())),s("tbody",l.data.length===0?s("td",{class:"ph-table__none-col",colspan:l.columns.length},"暂无数据记录!"):k())])}});export{v as _}; diff --git a/docs/assets/ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js b/docs/assets/ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js new file mode 100644 index 00000000..1ec01c75 --- /dev/null +++ b/docs/assets/ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js @@ -0,0 +1 @@ +import{_ as a}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import{d as i,o as t,c as s,t as o,l,b as r,F as u}from"./index-aWLd-FXG.js";const d={key:0},p={key:1},m={key:2},h=i({__name:"ThemeTable",props:{title:{default:"主题定制"},subtitle:{default:"样式变量"},description:{default:"组件提供了下列 CSS 变量,可用于自定义样式,"},rows:{}},setup(c){const n=[{key:"name",title:"名称"},{key:"description",title:"描述"},{key:"default",title:"默认值"}];return(e,_)=>(t(),s(u,null,[e.title!=null?(t(),s("h2",d,o(e.title),1)):l("",!0),e.subtitle!=null?(t(),s("h3",p,o(e.subtitle),1)):l("",!0),e.description!=null?(t(),s("p",m,o(e.description),1)):l("",!0),r(a,{columns:n,data:e.rows},null,8,["data"])],64))}});export{h as _}; diff --git a/docs/assets/Tooltip-Z5W6ICX7.css b/docs/assets/Tooltip-Z5W6ICX7.css new file mode 100644 index 00000000..4bdea462 --- /dev/null +++ b/docs/assets/Tooltip-Z5W6ICX7.css @@ -0,0 +1 @@ +.tooltip-demo .demo-row{display:flex;justify-content:space-between} diff --git a/docs/assets/Tooltip-bcQ_BNiw.js b/docs/assets/Tooltip-bcQ_BNiw.js new file mode 100644 index 00000000..ae3ca89a --- /dev/null +++ b/docs/assets/Tooltip-bcQ_BNiw.js @@ -0,0 +1,19 @@ +import{_ as c}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{_ as d}from"./CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js";import{_ as p,a as _}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{_ as u}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import{_ as b}from"./PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js";import{_ as f}from"./Table.vue_vue_type_script_lang-TeoTULpr.js";import{d as s,o as a,c as i,t as h,l as S,b as o,F as x,e as y,w as t,k as E,a as e}from"./index-aWLd-FXG.js";import"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";const $={key:0},k=s({__name:"SlotTable",props:{title:{default:"Props"},data:{}},setup(m){const l=[{key:"name",title:"名称"},{key:"param",title:"参数"},{key:"description",title:"说明"}];return(n,r)=>(a(),i(x,null,[n.title!=null&&n.title!==""?(a(),i("h3",$,h(n.title),1)):S("",!0),o(f,{columns:l,data:n.data},null,8,["data"])],64))}}),v=e("h1",null,"Tooltip 文字提示",-1),g=e("p",null,"常用于展示鼠标 hover 时的提示信息。",-1),T=e("p",null," 可用来代替系统默认的 title 提示,通常用于针对一个图标按钮的鼠标悬浮显示简单说明 ",-1),w=e("p",null,"该提示使用纯 CSS 实现,所以气泡框位置通常需要手动设置",-1),B=e("p",null," 使用 title 属性来决定 hover 时的提示信息。 由 placement 属性决定展示位置: topStart、top[默认]、topEnd、bottomStart、bottom、bottomEnd ",-1),C=e("p",null," 通过使用 title 插槽来渲染自定义的提示; 如果同时传递 title 和 插槽,则 title 属性为准 ",-1),N=e("span",{style:{color:"red"}},"custome propmt text",-1),V=e("h2",null,"API",-1),D=` +
+ topStart + top + topEnd +
+
+ bottomStart + bottom + bottomEnd +
+`,P=` + + 自定义提示 + + +`,K=s({__name:"Tooltip",setup(m){const l=[{name:"title",description:"提示信息",type:"string",default:""},{name:"placement",description:"气泡位置, top、bottom、topStart、topEnd、bottomStart、bottomEnd",type:"string",default:"top"}],n=[{name:"title",param:"()",description:"自定义提示内容"}];return(r,F)=>(a(),y(c,null,{default:t(()=>[v,g,T,w,o(d,null,{default:t(()=>[o(p,{lang:"html",code:D,title:"基础用法",class:"tooltip-demo"},{description:t(()=>[B]),_:1}),o(p,{lang:"html",code:P,title:"自定义提示",class:"tooltip-demo"},{description:t(()=>[C]),preview:t(()=>[o(_,{placement:"topStart"},{title:t(()=>[N]),default:t(()=>[o(u,null,{default:t(()=>[E("自定义提示")]),_:1})]),_:1})]),_:1})]),_:1}),V,o(b,{data:l,title:"Tooltip Props"}),o(k,{data:n,title:"Tooltip Slots"})]),_:1}))}});export{K as default}; diff --git a/docs/assets/Tooltip-d19KBCH6.js b/docs/assets/Tooltip-d19KBCH6.js new file mode 100644 index 00000000..5b22ff31 --- /dev/null +++ b/docs/assets/Tooltip-d19KBCH6.js @@ -0,0 +1 @@ +import{a as o}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import"./index-aWLd-FXG.js";export{o as default}; diff --git a/docs/assets/WarnIcon-j9p8YPXx.js b/docs/assets/WarnIcon-j9p8YPXx.js deleted file mode 100644 index 8e54dc8b..00000000 --- a/docs/assets/WarnIcon-j9p8YPXx.js +++ /dev/null @@ -1 +0,0 @@ -import{A as f}from"./index-BY3UnrMK.js";export{f as default}; diff --git a/docs/assets/WarnIcon-wAGPtzRf.js b/docs/assets/WarnIcon-wAGPtzRf.js new file mode 100644 index 00000000..f4784cd3 --- /dev/null +++ b/docs/assets/WarnIcon-wAGPtzRf.js @@ -0,0 +1 @@ +import{E as f}from"./index-aWLd-FXG.js";export{f as default}; diff --git a/docs/assets/_plugin-vue_export-helper-x3n3nnut.js b/docs/assets/_plugin-vue_export-helper-x3n3nnut.js deleted file mode 100644 index 718edd33..00000000 --- a/docs/assets/_plugin-vue_export-helper-x3n3nnut.js +++ /dev/null @@ -1 +0,0 @@ -const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _}; diff --git a/docs/assets/css_util-M8y4uxEs.js b/docs/assets/css_util-M8y4uxEs.js deleted file mode 100644 index 4dd1319e..00000000 --- a/docs/assets/css_util-M8y4uxEs.js +++ /dev/null @@ -1,13 +0,0 @@ -import{d as g,o as n,c as s,t as i,j as u,e as t,F as _,r as $,k as p,a as l,w as a,i as f,T as h}from"./index-BY3UnrMK.js";import{_ as c,a as m}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{_ as v}from"./PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js";const w={key:0},C={key:1},V={key:2},N={class:"nt-table"},B=t("thead",null,[t("tr",null,[t("th",null,"名称"),t("th",null,"描述"),t("th",null,"默认值")])],-1),b=g({__name:"ThemeTable",props:{title:{default:"主题定制"},subtitle:{default:"样式变量"},description:{default:"组件提供了下列 CSS 变量,可用于自定义样式,"},rows:{}},setup(y){return(e,r)=>(n(),s(_,null,[e.title!=null?(n(),s("h2",w,i(e.title),1)):u("",!0),e.subtitle!=null?(n(),s("h3",C,i(e.subtitle),1)):u("",!0),e.description!=null?(n(),s("p",V,i(e.description),1)):u("",!0),t("table",N,[B,t("tbody",null,[(n(!0),s(_,null,$(e.rows,o=>(n(),s("tr",{key:o.name},[t("td",null,i(o.name),1),t("td",null,i(o.description==null?"":o.description),1),t("td",null,i(o.default==null?"":o.default),1)]))),128))])])],64))}}),S={class:"nt-scrollbar doc-main css-util"},x=t("h2",null,"1. Vue3 Transition 渐变",-1),F=t("h3",null,"引入",-1),H=t("h3",null,"使用",-1),j=t("p",null,"所有的渐变都支持传递 --nt-transition-times 控制时长, 默认为 0.3s",-1),z={class:"ul-list"},D=t("p",null,"1. opacity",-1),E={key:0,style:{"--nt-transition-times":"0.2s"}},L=t("p",null,"2. fadein",-1),q=t("p",null,"支持通过 --nt-fadein-offset 控制距离, 默认为 20px",-1),A={key:0,style:{"--nt-fadein-offset":"-30px"}},G=t("h2",null,"2. 滚动条样式",-1),I=t("p",null,"如果觉得默认滚动条不好看,想修改滚动条样式",-1),J=t("h3",null,"引入",-1),K=t("h3",null,"使用",-1),M=t("p",null,"实际效果就跟文档的滚动条一样",-1),O=` - -

hello

-
-`,P=` - -

hello

-
-`,Q=` -
-

hello

-
-`,Y=g({__name:"css_util",setup(y){const e=p(!0),r=p(!0),o=[{name:"--nt-transition-times",description:"渐变时长, 所有渐变都支持",default:"0.3s"},{name:"--nt-fadein-offset",description:"渐变距离, 支持的渐变有: fadein",default:"20px"}],T=[{name:"--nt-scrollbar-bg",description:"滑块背景色",default:"#ccc"},{name:"--nt-scrollbar-hover",description:"鼠标悬浮时滑块颜色",default:"var(--nt-scrollbar-bg)"},{name:" --nt-scrollbar-size",description:"滑块尺寸, 水平滚动条时为高度,垂直时为宽度",default:"10px"}];return(R,d)=>(n(),s("div",S,[x,F,l(c,{code:"import 'neatui-vue/style/util/transition.css'"}),H,j,t("ul",z,[t("li",null,[D,l(v,{lang:"html",code:O},{default:a(()=>[l(m,{onClick:d[0]||(d[0]=k=>e.value=!e.value)},{default:a(()=>[f("Toggle")]),_:1}),l(h,{name:"nt-opacity",appear:""},{default:a(()=>[e.value?(n(),s("p",E," Hello world ")):u("",!0)]),_:1})]),_:1})]),t("li",null,[L,q,l(v,{lang:"html",code:P},{default:a(()=>[l(m,{onClick:d[1]||(d[1]=k=>r.value=!r.value)},{default:a(()=>[f("Toggle")]),_:1}),l(h,{name:"nt-fadein",appear:""},{default:a(()=>[r.value?(n(),s("p",A,"Hello world")):u("",!0)]),_:1})]),_:1})])]),l(b,{rows:o,title:null,subtitle:"样式变量"}),G,I,J,l(c,{code:"import 'neatui-vue/style/util/scrollbar.css'"}),K,l(c,{lang:"html",code:Q}),M,l(b,{rows:T,title:null,subtitle:"主题定制 - 样式变量"})]))}});export{Y as default}; diff --git a/docs/assets/css_util-jVjR55lt.js b/docs/assets/css_util-jVjR55lt.js new file mode 100644 index 00000000..3241390c --- /dev/null +++ b/docs/assets/css_util-jVjR55lt.js @@ -0,0 +1,17 @@ +import{d as g,p as r,o as i,e as w,w as o,b as t,k as c,T as d,c as _,l as p,a as e}from"./index-aWLd-FXG.js";import{_ as s}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{_ as u}from"./ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js";import{_ as m}from"./PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js";import{_ as f}from"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";import{_ as x}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{_ as T}from"./CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js";import"./Table.vue_vue_type_script_lang-TeoTULpr.js";const y=e("h2",null,"1. Vue3 Transition 渐变",-1),k=e("h3",null,"引入渐变样式",-1),$=e("h3",null,"渐变使用",-1),C=e("p",null,"所有的渐变都支持传递 --nt-transition-times 控制时长, 默认为 0.3s",-1),V=e("span",null," 普通渐变进入/退出 ",-1),B={key:0,style:{"--nt-transition-times":"0.2s"}},N=e("span",null," 从顶部往下移动渐变的进入/退出; 支持通过 --nt-fadein-offset 控制距离, 默认为 20px ",-1),H={key:0,style:{"--nt-fadein-offset":"-30px"}},z=e("h2",null,"2. 滚动条样式",-1),E=e("p",null,"如果觉得默认滚动条不好看,想修改滚动条样式",-1),F=e("h3",null,"引入滚动条样式表",-1),O=e("h3",null,"滚动条使用",-1),j=e("p",null," 实际效果就跟文档的滚动条一样; 默认为垂直滚动条,如果想设置水平滚动条,只需要再加一个 nt-scrollbar-x ",-1),q=` + +

hello

+
+`,A=` + +

hello

+
+`,D=` +
+

hello

+
+`,G=` +
+

hello

+
+`,W=g({__name:"css_util",setup(I){const l=r(!0),a=r(!0),h=[{name:"--nt-transition-times",description:"渐变时长, 所有渐变都支持",default:"0.3s"},{name:"--nt-fadein-offset",description:"渐变距离, 支持的渐变有: fadein",default:"20px"}],v=[{name:"--nt-scrollbar-bg",description:"滑块背景色",default:"#ccc"},{name:"--nt-scrollbar-hover",description:"鼠标悬浮时滑块颜色",default:"var(--nt-scrollbar-bg)"},{name:" --nt-scrollbar-size",description:"滑块尺寸, 水平滚动条时为高度,垂直时为宽度",default:"10px"}];return(J,n)=>(i(),w(x,null,{default:o(()=>[y,k,t(s,{code:"import 'neatui-vue/style/util/transition.css'"}),$,C,t(T,null,{default:o(()=>[t(m,{lang:"html",code:q,title:"Opacity"},{description:o(()=>[V]),preview:o(()=>[t(f,{onClick:n[0]||(n[0]=b=>l.value=!l.value)},{default:o(()=>[c("Toggle")]),_:1}),t(d,{name:"nt-opacity",appear:""},{default:o(()=>[l.value?(i(),_("p",B," Hello world ")):p("",!0)]),_:1})]),_:1}),t(m,{lang:"html",code:A,title:"Fadein"},{description:o(()=>[N]),preview:o(()=>[t(f,{onClick:n[1]||(n[1]=b=>a.value=!a.value)},{default:o(()=>[c("Toggle")]),_:1}),t(d,{name:"nt-fadein",appear:""},{default:o(()=>[a.value?(i(),_("p",H,"Hello world")):p("",!0)]),_:1})]),_:1})]),_:1}),t(u,{rows:h,title:null,subtitle:"样式变量"}),z,E,F,t(s,{code:"import 'neatui-vue/style/util/scrollbar.css'"}),O,t(s,{lang:"html",code:D}),j,t(s,{lang:"html",code:G}),t(u,{rows:v,title:null,subtitle:"主题定制 - 样式变量"})]),_:1}))}});export{W as default}; diff --git a/docs/assets/index-BY3UnrMK.js b/docs/assets/index-BY3UnrMK.js deleted file mode 100644 index d2eecd4f..00000000 --- a/docs/assets/index-BY3UnrMK.js +++ /dev/null @@ -1,23 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** -* @vue/shared v3.4.14 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ss(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const q={},pt=[],ve=()=>{},Eo=()=>!1,an=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rs=e=>e.startsWith("onUpdate:"),re=Object.assign,os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wo=Object.prototype.hasOwnProperty,B=(e,t)=>wo.call(e,t),L=Array.isArray,gt=e=>dn(e)==="[object Map]",gr=e=>dn(e)==="[object Set]",M=e=>typeof e=="function",te=e=>typeof e=="string",bt=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",mr=e=>(G(e)||M(e))&&M(e.then)&&M(e.catch),_r=Object.prototype.toString,dn=e=>_r.call(e),To=e=>dn(e).slice(8,-1),yr=e=>dn(e)==="[object Object]",is=e=>te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},So=/-(\w)/g,Pe=hn(e=>e.replace(So,(t,n)=>n?n.toUpperCase():"")),Ao=/\B([A-Z])/g,xt=hn(e=>e.replace(Ao,"-$1").toLowerCase()),pn=hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),An=hn(e=>e?`on${pn(e)}`:""),Ge=(e,t)=>!Object.is(e,t),Qt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Io=e=>{const t=te(e)?Number(e):NaN;return isNaN(t)?e:t};let Ss;const vr=()=>Ss||(Ss=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gn(e){if(L(e)){const t={};for(let n=0;n{if(n){const s=n.split(Lo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ht(e){let t="";if(te(e))t=e;else if(L(e))for(let n=0;nte(e)?e:e==null?"":L(e)||G(e)&&(e.toString===_r||!M(e.toString))?JSON.stringify(e,xr,2):String(e),xr=(e,t)=>t&&t.__v_isRef?xr(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[In(s,o)+" =>"]=r,n),{})}:gr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>In(n))}:bt(t)?In(t):G(t)&&!L(t)&&!yr(t)?String(t):t,In=(e,t="")=>{var n;return bt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.14 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ee;class $o{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ee,!t&&Ee&&(this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){Ee=this}off(){Ee=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),ft()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ke,n=it;try{return ke=!0,it=this,this._runnings++,As(this),this.fn()}finally{Is(this),this._runnings--,it=n,ke=t}}stop(){var t;this.active&&(As(this),Is(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Bo(e){return e.value}function As(e){e._trackId++,e._depsLength=0}function Is(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Un=new WeakMap,lt=Symbol(""),Kn=Symbol("");function pe(e,t,n){if(ke&&it){let s=Un.get(e);s||Un.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Sr(()=>s.delete(n))),wr(it,r)}}function $e(e,t,n,s,r,o){const i=Un.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&L(e)){const f=Number(s);i.forEach((a,d)=>{(d==="length"||!bt(d)&&d>=f)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":L(e)?is(n)&&l.push(i.get("length")):(l.push(i.get(lt)),gt(e)&&l.push(i.get(Kn)));break;case"delete":L(e)||(l.push(i.get(lt)),gt(e)&&l.push(i.get(Kn)));break;case"set":gt(e)&&l.push(i.get(lt));break}cs();for(const f of l)f&&Tr(f,2);fs()}const Vo=ss("__proto__,__v_isRef,__isVue"),Ar=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(bt)),Os=Do();function Do(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=V(this);for(let o=0,i=this.length;o{e[t]=function(...n){ct(),cs();const s=V(this)[t].apply(this,n);return fs(),ft(),s}}),e}function jo(e){const t=V(this);return pe(t,"has",e),t.hasOwnProperty(e)}class Ir{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ei:Mr:o?Pr:Lr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=L(t);if(!r){if(i&&B(Os,n))return Reflect.get(Os,n,s);if(n==="hasOwnProperty")return jo}const l=Reflect.get(t,n,s);return(bt(n)?Ar.has(n):Vo(n))||(r||pe(t,"get",n),o)?l:ge(l)?i&&is(n)?l:l.value:G(l)?r?Rr(l):ds(l):l}}class Or extends Ir{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const f=vt(o);if(!rn(s)&&!vt(s)&&(o=V(o),s=V(s)),!L(t)&&ge(o)&&!ge(s))return f?!1:(o.value=s,!0)}const i=L(t)&&is(n)?Number(n)e,mn=e=>Reflect.getPrototypeOf(e);function zt(e,t,n=!1,s=!1){e=e.__v_raw;const r=V(e),o=V(t);n||(Ge(t,o)&&pe(r,"get",t),pe(r,"get",o));const{has:i}=mn(r),l=s?us:n?ps:Mt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function Wt(e,t=!1){const n=this.__v_raw,s=V(n),r=V(e);return t||(Ge(e,r)&&pe(s,"has",e),pe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function kt(e,t=!1){return e=e.__v_raw,!t&&pe(V(e),"iterate",lt),Reflect.get(e,"size",e)}function Ls(e){e=V(e);const t=V(this);return mn(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function Ps(e,t){t=V(t);const n=V(this),{has:s,get:r}=mn(n);let o=s.call(n,e);o||(e=V(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Ge(t,i)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function Ms(e){const t=V(this),{has:n,get:s}=mn(t);let r=n.call(t,e);r||(e=V(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&$e(t,"delete",e,void 0),o}function Rs(){const e=V(this),t=e.size!==0,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function qt(e,t){return function(s,r){const o=this,i=o.__v_raw,l=V(i),f=t?us:e?ps:Mt;return!e&&pe(l,"iterate",lt),i.forEach((a,d)=>s.call(r,f(a),f(d),o))}}function Gt(e,t,n){return function(...s){const r=this.__v_raw,o=V(r),i=gt(o),l=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=r[e](...s),d=n?us:t?ps:Mt;return!t&&pe(o,"iterate",f?Kn:lt),{next(){const{value:p,done:g}=a.next();return g?{value:p,done:g}:{value:l?[d(p[0]),d(p[1])]:d(p),done:g}},[Symbol.iterator](){return this}}}}function Be(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ko(){const e={get(o){return zt(this,o)},get size(){return kt(this)},has:Wt,add:Ls,set:Ps,delete:Ms,clear:Rs,forEach:qt(!1,!1)},t={get(o){return zt(this,o,!1,!0)},get size(){return kt(this)},has:Wt,add:Ls,set:Ps,delete:Ms,clear:Rs,forEach:qt(!1,!0)},n={get(o){return zt(this,o,!0)},get size(){return kt(this,!0)},has(o){return Wt.call(this,o,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:qt(!0,!1)},s={get(o){return zt(this,o,!0,!0)},get size(){return kt(this,!0)},has(o){return Wt.call(this,o,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:qt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Gt(o,!1,!1),n[o]=Gt(o,!0,!1),t[o]=Gt(o,!1,!0),s[o]=Gt(o,!0,!0)}),[e,n,t,s]}const[qo,Go,Jo,Yo]=ko();function as(e,t){const n=t?e?Yo:Jo:e?Go:qo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(B(n,r)&&r in s?n:s,r,o)}const Xo={get:as(!1,!1)},Zo={get:as(!1,!0)},Qo={get:as(!0,!1)},Lr=new WeakMap,Pr=new WeakMap,Mr=new WeakMap,ei=new WeakMap;function ti(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ni(e){return e.__v_skip||!Object.isExtensible(e)?0:ti(To(e))}function ds(e){return vt(e)?e:hs(e,!1,Ko,Xo,Lr)}function si(e){return hs(e,!1,Wo,Zo,Pr)}function Rr(e){return hs(e,!0,zo,Qo,Mr)}function hs(e,t,n,s,r){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ni(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function mt(e){return vt(e)?mt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function rn(e){return!!(e&&e.__v_isShallow)}function Fr(e){return mt(e)||vt(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function $r(e){return sn(e,"__v_skip",!0),e}const Mt=e=>G(e)?ds(e):e,ps=e=>G(e)?Rr(e):e;class Nr{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ls(()=>t(this._value),()=>zn(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=V(this);return(!t._cacheable||t.effect.dirty)&&Ge(t._value,t._value=t.effect.run())&&zn(t,2),Hr(t),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ri(e,t,n=!1){let s,r;const o=M(e);return o?(s=e,r=ve):(s=e.get,r=e.set),new Nr(s,r,o||!r,n)}function Hr(e){ke&&it&&(e=V(e),wr(it,e.dep||(e.dep=Sr(()=>e.dep=void 0,e instanceof Nr?e:void 0))))}function zn(e,t=2,n){e=V(e);const s=e.dep;s&&Tr(s,t)}function ge(e){return!!(e&&e.__v_isRef===!0)}function _t(e){return oi(e,!1)}function oi(e,t){return ge(e)?e:new ii(e,t)}class ii{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:Mt(t)}get value(){return Hr(this),this._value}set value(t){const n=this.__v_isShallow||rn(t)||vt(t);t=n?t:V(t),Ge(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Mt(t),zn(this,2))}}function We(e){return ge(e)?e.value:e}const li={get:(e,t,n)=>We(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ge(r)&&!ge(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Br(e){return mt(e)?e:new Proxy(e,li)}/** -* @vue/runtime-core v3.4.14 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function qe(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Bt(o,t,n)}return r}function be(e,t,n,s){if(M(e)){const o=qe(e,t,n,s);return o&&mr(o)&&o.catch(i=>{Bt(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=fe[s],o=Ft(r);oLe&&fe.splice(t,1)}function di(e){L(e)?yt.push(...e):(!je||!je.includes(e,e.allowRecurse?nt+1:nt))&&yt.push(e),Dr()}function Fs(e,t,n=Rt?Le+1:0){for(;nFt(n)-Ft(s));if(yt.length=0,je){je.push(...t);return}for(je=t,nt=0;nte.id==null?1/0:e.id,hi=(e,t)=>{const n=Ft(e)-Ft(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ur(e){Wn=!1,Rt=!0,fe.sort(hi);try{for(Le=0;Lete(v)?v.trim():v)),p&&(r=n.map(Vn))}let l,f=s[l=An(t)]||s[l=An(Pe(t))];!f&&o&&(f=s[l=An(xt(t))]),f&&be(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Kr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!M(e)){const f=a=>{const d=Kr(a,t,!0);d&&(l=!0,re(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(G(e)&&s.set(e,null),null):(L(o)?o.forEach(f=>i[f]=null):re(i,o),G(e)&&s.set(e,i),i)}function yn(e,t){return!e||!an(t)?!1:(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,xt(t))||B(e,t))}let se=null,zr=null;function on(e){const t=se;return se=e,zr=e&&e.type.__scopeId||null,t}function Ne(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&qs(-1);const o=on(t);let i;try{i=e(...r)}finally{on(o),s._d&&qs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function On(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:f,emit:a,render:d,renderCache:p,data:g,setupState:v,ctx:T,inheritAttrs:O}=e;let N,j;const D=on(e);try{if(n.shapeFlag&4){const K=r||s,Q=K;N=Oe(d.call(Q,K,p,o,v,g,T)),j=f}else{const K=t;N=Oe(K.length>1?K(o,{attrs:f,slots:l,emit:a}):K(o,null)),j=t.props?f:gi(f)}}catch(K){Pt.length=0,Bt(K,e,1),N=Z(xe)}let H=N;if(j&&O!==!1){const K=Object.keys(j),{shapeFlag:Q}=H;K.length&&Q&7&&(i&&K.some(rs)&&(j=mi(j,i)),H=Je(H,j))}return n.dirs&&(H=Je(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),N=H,on(D),N}const gi=e=>{let t;for(const n in e)(n==="class"||n==="style"||an(n))&&((t||(t={}))[n]=e[n]);return t},mi=(e,t)=>{const n={};for(const s in e)(!rs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function _i(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?$s(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function Ci(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):di(e)}const Ei=Symbol.for("v-scx"),wi=()=>en(Ei),Jt={};function Ln(e,t,n){return qr(e,t,n)}function qr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=q){if(t&&o){const F=t;t=(...ue)=>{F(...ue),Q()}}const f=le,a=F=>s===!0?F:rt(F,s===!1?1:void 0);let d,p=!1,g=!1;if(ge(e)?(d=()=>e.value,p=rn(e)):mt(e)?(d=()=>a(e),p=!0):L(e)?(g=!0,p=e.some(F=>mt(F)||rn(F)),d=()=>e.map(F=>{if(ge(F))return F.value;if(mt(F))return a(F);if(M(F))return qe(F,f,2)})):M(e)?t?d=()=>qe(e,f,2):d=()=>(v&&v(),be(e,f,3,[T])):d=ve,t&&s){const F=d;d=()=>rt(F())}let v,T=F=>{v=H.onStop=()=>{qe(F,f,4),v=H.onStop=void 0}},O;if(jt)if(T=ve,t?n&&be(t,f,3,[d(),g?[]:void 0,T]):d(),r==="sync"){const F=wi();O=F.__watcherHandles||(F.__watcherHandles=[])}else return ve;let N=g?new Array(e.length).fill(Jt):Jt;const j=()=>{if(!(!H.active||!H.dirty))if(t){const F=H.run();(s||p||(g?F.some((ue,R)=>Ge(ue,N[R])):Ge(F,N)))&&(v&&v(),be(t,f,3,[F,N===Jt?void 0:g&&N[0]===Jt?[]:N,T]),N=F)}else H.run()};j.allowRecurse=!!t;let D;r==="sync"?D=j:r==="post"?D=()=>he(j,f&&f.suspense):(j.pre=!0,f&&(j.id=f.uid),D=()=>_n(j));const H=new ls(d,ve,D),K=Ho(),Q=()=>{H.stop(),K&&os(K.effects,H)};return t?n?j():N=H.run():r==="post"?he(H.run.bind(H),f&&f.suspense):H.run(),O&&O.push(Q),Q}function Ti(e,t,n){const s=this.proxy,r=te(e)?e.includes(".")?Gr(s,e):()=>s[e]:e.bind(s,s);let o;M(t)?o=t:(o=t.handler,n=t);const i=Dt(this),l=qr(r,o.bind(s),n);return i(),l}function Gr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ge(e))rt(e.value,t,n,s);else if(L(e))for(let r=0;r{rt(r,t,n,s)});else if(yr(e))for(const r in e)rt(e[r],t,n,s);return e}function Jr(e,t){if(se===null)return e;const n=Cn(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),eo(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],Yr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},Ai={name:"BaseTransition",props:Yr,setup(e,{slots:t}){const n=hl(),s=Si();let r;return()=>{const o=t.default&&Zr(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const O of o)if(O.type!==xe){i=O;break}}const l=V(e),{mode:f}=l;if(s.isLeaving)return Pn(i);const a=Hs(i);if(!a)return Pn(i);const d=kn(a,l,s,n);qn(a,d);const p=n.subTree,g=p&&Hs(p);let v=!1;const{getTransitionKey:T}=a.type;if(T){const O=T();r===void 0?r=O:O!==r&&(r=O,v=!0)}if(g&&g.type!==xe&&(!st(a,g)||v)){const O=kn(g,l,s,n);if(qn(g,O),f==="out-in")return s.isLeaving=!0,O.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Pn(i);f==="in-out"&&a.type!==xe&&(O.delayLeave=(N,j,D)=>{const H=Xr(s,g);H[String(g.key)]=g,N[Ue]=()=>{j(),N[Ue]=void 0,delete d.delayedLeave},d.delayedLeave=D})}return i}}},Ii=Ai;function Xr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function kn(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:v,onLeaveCancelled:T,onBeforeAppear:O,onAppear:N,onAfterAppear:j,onAppearCancelled:D}=t,H=String(e.key),K=Xr(n,e),Q=(R,ee)=>{R&&be(R,s,9,ee)},F=(R,ee)=>{const k=ee[1];Q(R,ee),L(R)?R.every(ce=>ce.length<=1)&&k():R.length<=1&&k()},ue={mode:o,persisted:i,beforeEnter(R){let ee=l;if(!n.isMounted)if(r)ee=O||l;else return;R[Ue]&&R[Ue](!0);const k=K[H];k&&st(e,k)&&k.el[Ue]&&k.el[Ue](),Q(ee,[R])},enter(R){let ee=f,k=a,ce=d;if(!n.isMounted)if(r)ee=N||f,k=j||a,ce=D||d;else return;let S=!1;const Y=R[Yt]=me=>{S||(S=!0,me?Q(ce,[R]):Q(k,[R]),ue.delayedLeave&&ue.delayedLeave(),R[Yt]=void 0)};ee?F(ee,[R,Y]):Y()},leave(R,ee){const k=String(e.key);if(R[Yt]&&R[Yt](!0),n.isUnmounting)return ee();Q(p,[R]);let ce=!1;const S=R[Ue]=Y=>{ce||(ce=!0,ee(),Y?Q(T,[R]):Q(v,[R]),R[Ue]=void 0,K[k]===e&&delete K[k])};K[k]=e,g?F(g,[R,S]):S()},clone(R){return kn(R,t,n,s)}};return ue}function Pn(e){if(Vt(e))return e=Je(e),e.children=null,e}function Hs(e){return Vt(e)?e.children?e.children[0]:void 0:e}function qn(e,t){e.shapeFlag&6&&e.component?qn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zr(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Oi(e){M(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:l}=e;let f=null,a,d=0;const p=()=>(d++,f=null,g()),g=()=>{let v;return f||(v=f=t().catch(T=>{if(T=T instanceof Error?T:new Error(String(T)),l)return new Promise((O,N)=>{l(T,()=>O(p()),()=>N(T),d+1)});throw T}).then(T=>v!==f&&f?f:(T&&(T.__esModule||T[Symbol.toStringTag]==="Module")&&(T=T.default),a=T,T)))};return Re({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return a},setup(){const v=le;if(a)return()=>Mn(a,v);const T=D=>{f=null,Bt(D,v,13,!s)};if(i&&v.suspense||jt)return g().then(D=>()=>Mn(D,v)).catch(D=>(T(D),()=>s?Z(s,{error:D}):null));const O=_t(!1),N=_t(),j=_t(!!r);return r&&setTimeout(()=>{j.value=!1},r),o!=null&&setTimeout(()=>{if(!O.value&&!N.value){const D=new Error(`Async component timed out after ${o}ms.`);T(D),N.value=D}},o),g().then(()=>{O.value=!0,v.parent&&Vt(v.parent.vnode)&&(v.parent.effect.dirty=!0,_n(v.parent.update))}).catch(D=>{T(D),N.value=D}),()=>{if(O.value&&a)return Mn(a,v);if(N.value&&s)return Z(s,{error:N.value});if(n&&!j.value)return Z(n)}}})}function Mn(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=Z(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Vt=e=>e.type.__isKeepAlive;function Li(e,t){Qr(e,"a",t)}function Pi(e,t){Qr(e,"da",t)}function Qr(e,t,n=le){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Vt(r.parent.vnode)&&Mi(s,t,n,r),r=r.parent}}function Mi(e,t,n,s){const r=vn(t,e,s,!0);to(()=>{os(s[t],r)},n)}function vn(e,t,n=le,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ct();const l=Dt(n),f=be(t,n,e,i);return l(),ft(),f});return s?r.unshift(o):r.push(o),o}}const He=e=>(t,n=le)=>(!jt||e==="sp")&&vn(e,(...s)=>t(...s),n),Ri=He("bm"),ms=He("m"),Fi=He("bu"),$i=He("u"),eo=He("bum"),to=He("um"),Ni=He("sp"),Hi=He("rtg"),Bi=He("rtc");function Vi(e,t=le){vn("ec",e,t)}function Bs(e,t,n,s){let r;const o=n&&n[s];if(L(e)||te(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,f=i.length;lfn(t)?!(t.type===xe||t.type===de&&!no(t.children)):!0)?e:null}const Gn=e=>e?mo(e)?Cn(e)||e.proxy:Gn(e.parent):null,Lt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>_s(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,_n(e.update)}),$nextTick:e=>e.n||(e.n=fi.bind(e.proxy)),$watch:e=>Ti.bind(e)}),Rn=(e,t)=>e!==q&&!e.__isScriptSetup&&B(e,t),ji={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(r!==q&&B(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&B(a,t))return i[t]=3,o[t];if(n!==q&&B(n,t))return i[t]=4,n[t];Jn&&(i[t]=0)}}const d=Lt[t];let p,g;if(d)return t==="$attrs"&&pe(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==q&&B(n,t))return i[t]=4,n[t];if(g=f.config.globalProperties,B(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Rn(r,t)?(r[t]=n,!0):s!==q&&B(s,t)?(s[t]=n,!0):B(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==q&&B(e,i)||Rn(t,i)||(l=o[0])&&B(l,i)||B(s,i)||B(Lt,i)||B(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vs(e){return L(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jn=!0;function Ui(e){const t=_s(e),n=e.proxy,s=e.ctx;Jn=!1,t.beforeCreate&&Ds(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:a,created:d,beforeMount:p,mounted:g,beforeUpdate:v,updated:T,activated:O,deactivated:N,beforeDestroy:j,beforeUnmount:D,destroyed:H,unmounted:K,render:Q,renderTracked:F,renderTriggered:ue,errorCaptured:R,serverPrefetch:ee,expose:k,inheritAttrs:ce,components:S,directives:Y,filters:me}=t;if(a&&Ki(a,s,null),i)for(const X in i){const z=i[X];M(z)&&(s[X]=z.bind(n))}if(r){const X=r.call(n,n);G(X)&&(e.data=ds(X))}if(Jn=!0,o)for(const X in o){const z=o[X],Ye=M(z)?z.bind(n,n):M(z.get)?z.get.bind(n,n):ve,Ut=!M(z)&&M(z.set)?z.set.bind(n):ve,Xe=es({get:Ye,set:Ut});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Te=>Xe.value=Te})}if(l)for(const X in l)so(l[X],s,n,X);if(f){const X=M(f)?f.call(n):f;Reflect.ownKeys(X).forEach(z=>{Ji(z,X[z])})}d&&Ds(d,e,"c");function oe(X,z){L(z)?z.forEach(Ye=>X(Ye.bind(n))):z&&X(z.bind(n))}if(oe(Ri,p),oe(ms,g),oe(Fi,v),oe($i,T),oe(Li,O),oe(Pi,N),oe(Vi,R),oe(Bi,F),oe(Hi,ue),oe(eo,D),oe(to,K),oe(Ni,ee),L(k))if(k.length){const X=e.exposed||(e.exposed={});k.forEach(z=>{Object.defineProperty(X,z,{get:()=>n[z],set:Ye=>n[z]=Ye})})}else e.exposed||(e.exposed={});Q&&e.render===ve&&(e.render=Q),ce!=null&&(e.inheritAttrs=ce),S&&(e.components=S),Y&&(e.directives=Y)}function Ki(e,t,n=ve){L(e)&&(e=Yn(e));for(const s in e){const r=e[s];let o;G(r)?"default"in r?o=en(r.from||s,r.default,!0):o=en(r.from||s):o=en(r),ge(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Ds(e,t,n){be(L(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function so(e,t,n,s){const r=s.includes(".")?Gr(n,s):()=>n[s];if(te(e)){const o=t[e];M(o)&&Ln(r,o)}else if(M(e))Ln(r,e.bind(n));else if(G(e))if(L(e))e.forEach(o=>so(o,t,n,s));else{const o=M(e.handler)?e.handler.bind(n):t[e.handler];M(o)&&Ln(r,o,e)}}function _s(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>ln(f,a,i,!0)),ln(f,t,i)),G(t)&&o.set(t,f),f}function ln(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ln(e,o,n,!0),r&&r.forEach(i=>ln(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=zi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const zi={data:js,props:Us,emits:Us,methods:It,computed:It,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:It,directives:It,watch:ki,provide:js,inject:Wi};function js(e,t){return t?e?function(){return re(M(e)?e.call(this,this):e,M(t)?t.call(this,this):t)}:t:e}function Wi(e,t){return It(Yn(e),Yn(t))}function Yn(e){if(L(e)){const t={};for(let n=0;n1)return n&&M(t)?t.call(s&&s.proxy):t}}function Yi(e,t,n,s=!1){const r={},o={};sn(o,xn,1),e.propsDefaults=Object.create(null),oo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:si(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Xi(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=V(r),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p{f=!0;const[g,v]=io(p,t,!0);re(i,g),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return G(e)&&s.set(e,pt),pt;if(L(o))for(let d=0;d-1,v[1]=O<0||T-1||B(v,"default"))&&l.push(p)}}}const a=[i,l];return G(e)&&s.set(e,a),a}function Ks(e){return e[0]!=="$"}function zs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ws(e,t){return zs(e)===zs(t)}function ks(e,t){return L(t)?t.findIndex(n=>Ws(n,e)):M(t)&&Ws(t,e)?0:-1}const lo=e=>e[0]==="_"||e==="$stable",ys=e=>L(e)?e.map(Oe):[Oe(e)],Zi=(e,t,n)=>{if(t._n)return t;const s=Ne((...r)=>ys(t(...r)),n);return s._c=!1,s},co=(e,t,n)=>{const s=e._ctx;for(const r in e){if(lo(r))continue;const o=e[r];if(M(o))t[r]=Zi(r,o,s);else if(o!=null){const i=ys(o);t[r]=()=>i}}},fo=(e,t)=>{const n=ys(t);e.slots.default=()=>n},Qi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),sn(t,"_",n)):co(t,e.slots={})}else e.slots={},t&&fo(e,t);sn(e.slots,xn,1)},el=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(re(r,t),!n&&l===1&&delete r._):(o=!t.$stable,co(t,r)),i=t}else t&&(fo(e,t),i={default:1});if(o)for(const l in r)!lo(l)&&i[l]==null&&delete r[l]};function Zn(e,t,n,s,r=!1){if(L(e)){e.forEach((g,v)=>Zn(g,t&&(L(t)?t[v]:t),n,s,r));return}if(Ot(s)&&!r)return;const o=s.shapeFlag&4?Cn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:f}=e,a=t&&t.r,d=l.refs===q?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==f&&(te(a)?(d[a]=null,B(p,a)&&(p[a]=null)):ge(a)&&(a.value=null)),M(f))qe(f,l,12,[i,d]);else{const g=te(f),v=ge(f);if(g||v){const T=()=>{if(e.f){const O=g?B(p,f)?p[f]:d[f]:f.value;r?L(O)&&os(O,o):L(O)?O.includes(o)||O.push(o):g?(d[f]=[o],B(p,f)&&(p[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else g?(d[f]=i,B(p,f)&&(p[f]=i)):v&&(f.value=i,e.k&&(d[e.k]=i))};i?(T.id=-1,he(T,n)):T()}}}const he=Ci;function tl(e){return nl(e)}function nl(e,t){const n=vr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:a,setElementText:d,parentNode:p,nextSibling:g,setScopeId:v=ve,insertStaticContent:T}=e,O=(c,u,h,m=null,_=null,x=null,E=void 0,b=null,C=!!u.dynamicChildren)=>{if(c===u)return;c&&!st(c,u)&&(m=Kt(c),Te(c,_,x,!0),c=null),u.patchFlag===-2&&(C=!1,u.dynamicChildren=null);const{type:y,ref:w,shapeFlag:I}=u;switch(y){case bn:N(c,u,h,m);break;case xe:j(c,u,h,m);break;case tn:c==null&&D(u,h,m,E);break;case de:S(c,u,h,m,_,x,E,b,C);break;default:I&1?Q(c,u,h,m,_,x,E,b,C):I&6?Y(c,u,h,m,_,x,E,b,C):(I&64||I&128)&&y.process(c,u,h,m,_,x,E,b,C,ut)}w!=null&&_&&Zn(w,c&&c.ref,x,u||c,!u)},N=(c,u,h,m)=>{if(c==null)s(u.el=l(u.children),h,m);else{const _=u.el=c.el;u.children!==c.children&&a(_,u.children)}},j=(c,u,h,m)=>{c==null?s(u.el=f(u.children||""),h,m):u.el=c.el},D=(c,u,h,m)=>{[c.el,c.anchor]=T(c.children,u,h,m,c.el,c.anchor)},H=({el:c,anchor:u},h,m)=>{let _;for(;c&&c!==u;)_=g(c),s(c,h,m),c=_;s(u,h,m)},K=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=g(c),r(c),c=h;r(u)},Q=(c,u,h,m,_,x,E,b,C)=>{u.type==="svg"?E="svg":u.type==="math"&&(E="mathml"),c==null?F(u,h,m,_,x,E,b,C):ee(c,u,_,x,E,b,C)},F=(c,u,h,m,_,x,E,b)=>{let C,y;const{props:w,shapeFlag:I,transition:A,dirs:P}=c;if(C=c.el=i(c.type,x,w&&w.is,w),I&8?d(C,c.children):I&16&&R(c.children,C,null,m,_,Fn(c,x),E,b),P&&Ze(c,null,m,"created"),ue(C,c,c.scopeId,E,m),w){for(const U in w)U!=="value"&&!Zt(U)&&o(C,U,null,w[U],x,c.children,m,_,Fe);"value"in w&&o(C,"value",null,w.value,x),(y=w.onVnodeBeforeMount)&&Ae(y,m,c)}P&&Ze(c,null,m,"beforeMount");const $=sl(_,A);$&&A.beforeEnter(C),s(C,u,h),((y=w&&w.onVnodeMounted)||$||P)&&he(()=>{y&&Ae(y,m,c),$&&A.enter(C),P&&Ze(c,null,m,"mounted")},_)},ue=(c,u,h,m,_)=>{if(h&&v(c,h),m)for(let x=0;x{for(let y=C;y{const b=u.el=c.el;let{patchFlag:C,dynamicChildren:y,dirs:w}=u;C|=c.patchFlag&16;const I=c.props||q,A=u.props||q;let P;if(h&&Qe(h,!1),(P=A.onVnodeBeforeUpdate)&&Ae(P,h,u,c),w&&Ze(u,c,h,"beforeUpdate"),h&&Qe(h,!0),y?k(c.dynamicChildren,y,b,h,m,Fn(u,_),x):E||z(c,u,b,null,h,m,Fn(u,_),x,!1),C>0){if(C&16)ce(b,u,I,A,h,m,_);else if(C&2&&I.class!==A.class&&o(b,"class",null,A.class,_),C&4&&o(b,"style",I.style,A.style,_),C&8){const $=u.dynamicProps;for(let U=0;U<$.length;U++){const J=$[U],ie=I[J],Ce=A[J];(Ce!==ie||J==="value")&&o(b,J,ie,Ce,_,c.children,h,m,Fe)}}C&1&&c.children!==u.children&&d(b,u.children)}else!E&&y==null&&ce(b,u,I,A,h,m,_);((P=A.onVnodeUpdated)||w)&&he(()=>{P&&Ae(P,h,u,c),w&&Ze(u,c,h,"updated")},m)},k=(c,u,h,m,_,x,E)=>{for(let b=0;b{if(h!==m){if(h!==q)for(const b in h)!Zt(b)&&!(b in m)&&o(c,b,h[b],null,E,u.children,_,x,Fe);for(const b in m){if(Zt(b))continue;const C=m[b],y=h[b];C!==y&&b!=="value"&&o(c,b,y,C,E,u.children,_,x,Fe)}"value"in m&&o(c,"value",h.value,m.value,E)}},S=(c,u,h,m,_,x,E,b,C)=>{const y=u.el=c?c.el:l(""),w=u.anchor=c?c.anchor:l("");let{patchFlag:I,dynamicChildren:A,slotScopeIds:P}=u;P&&(b=b?b.concat(P):P),c==null?(s(y,h,m),s(w,h,m),R(u.children||[],h,w,_,x,E,b,C)):I>0&&I&64&&A&&c.dynamicChildren?(k(c.dynamicChildren,A,h,_,x,E,b),(u.key!=null||_&&u===_.subTree)&&uo(c,u,!0)):z(c,u,h,w,_,x,E,b,C)},Y=(c,u,h,m,_,x,E,b,C)=>{u.slotScopeIds=b,c==null?u.shapeFlag&512?_.ctx.activate(u,h,m,E,C):me(u,h,m,_,x,E,C):Et(c,u,C)},me=(c,u,h,m,_,x,E)=>{const b=c.component=dl(c,m,_);if(Vt(c)&&(b.ctx.renderer=ut),pl(b),b.asyncDep){if(_&&_.registerDep(b,oe),!c.el){const C=b.subTree=Z(xe);j(null,C,u,h)}}else oe(b,c,u,h,_,x,E)},Et=(c,u,h)=>{const m=u.component=c.component;if(_i(c,u,h))if(m.asyncDep&&!m.asyncResolved){X(m,u,h);return}else m.next=u,ai(m.update),m.effect.dirty=!0,m.update();else u.el=c.el,m.vnode=u},oe=(c,u,h,m,_,x,E)=>{const b=()=>{if(c.isMounted){let{next:w,bu:I,u:A,parent:P,vnode:$}=c;{const at=ao(c);if(at){w&&(w.el=$.el,X(c,w,E)),at.asyncDep.then(()=>{c.isUnmounted||b()});return}}let U=w,J;Qe(c,!1),w?(w.el=$.el,X(c,w,E)):w=$,I&&Qt(I),(J=w.props&&w.props.onVnodeBeforeUpdate)&&Ae(J,P,w,$),Qe(c,!0);const ie=On(c),Ce=c.subTree;c.subTree=ie,O(Ce,ie,p(Ce.el),Kt(Ce),c,_,x),w.el=ie.el,U===null&&yi(c,ie.el),A&&he(A,_),(J=w.props&&w.props.onVnodeUpdated)&&he(()=>Ae(J,P,w,$),_)}else{let w;const{el:I,props:A}=u,{bm:P,m:$,parent:U}=c,J=Ot(u);if(Qe(c,!1),P&&Qt(P),!J&&(w=A&&A.onVnodeBeforeMount)&&Ae(w,U,u),Qe(c,!0),I&&Sn){const ie=()=>{c.subTree=On(c),Sn(I,c.subTree,c,_,null)};J?u.type.__asyncLoader().then(()=>!c.isUnmounted&&ie()):ie()}else{const ie=c.subTree=On(c);O(null,ie,h,m,c,_,x),u.el=ie.el}if($&&he($,_),!J&&(w=A&&A.onVnodeMounted)){const ie=u;he(()=>Ae(w,U,ie),_)}(u.shapeFlag&256||U&&Ot(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&he(c.a,_),c.isMounted=!0,u=h=m=null}},C=c.effect=new ls(b,ve,()=>_n(y),c.scope),y=c.update=()=>{C.dirty&&C.run()};y.id=c.uid,Qe(c,!0),y()},X=(c,u,h)=>{u.component=c;const m=c.vnode.props;c.vnode=u,c.next=null,Xi(c,u.props,m,h),el(c,u.children,h),ct(),Fs(c),ft()},z=(c,u,h,m,_,x,E,b,C=!1)=>{const y=c&&c.children,w=c?c.shapeFlag:0,I=u.children,{patchFlag:A,shapeFlag:P}=u;if(A>0){if(A&128){Ut(y,I,h,m,_,x,E,b,C);return}else if(A&256){Ye(y,I,h,m,_,x,E,b,C);return}}P&8?(w&16&&Fe(y,_,x),I!==y&&d(h,I)):w&16?P&16?Ut(y,I,h,m,_,x,E,b,C):Fe(y,_,x,!0):(w&8&&d(h,""),P&16&&R(I,h,m,_,x,E,b,C))},Ye=(c,u,h,m,_,x,E,b,C)=>{c=c||pt,u=u||pt;const y=c.length,w=u.length,I=Math.min(y,w);let A;for(A=0;Aw?Fe(c,_,x,!0,!1,I):R(u,h,m,_,x,E,b,C,I)},Ut=(c,u,h,m,_,x,E,b,C)=>{let y=0;const w=u.length;let I=c.length-1,A=w-1;for(;y<=I&&y<=A;){const P=c[y],$=u[y]=C?Ke(u[y]):Oe(u[y]);if(st(P,$))O(P,$,h,null,_,x,E,b,C);else break;y++}for(;y<=I&&y<=A;){const P=c[I],$=u[A]=C?Ke(u[A]):Oe(u[A]);if(st(P,$))O(P,$,h,null,_,x,E,b,C);else break;I--,A--}if(y>I){if(y<=A){const P=A+1,$=PA)for(;y<=I;)Te(c[y],_,x,!0),y++;else{const P=y,$=y,U=new Map;for(y=$;y<=A;y++){const _e=u[y]=C?Ke(u[y]):Oe(u[y]);_e.key!=null&&U.set(_e.key,y)}let J,ie=0;const Ce=A-$+1;let at=!1,Es=0;const wt=new Array(Ce);for(y=0;y=Ce){Te(_e,_,x,!0);continue}let Se;if(_e.key!=null)Se=U.get(_e.key);else for(J=$;J<=A;J++)if(wt[J-$]===0&&st(_e,u[J])){Se=J;break}Se===void 0?Te(_e,_,x,!0):(wt[Se-$]=y+1,Se>=Es?Es=Se:at=!0,O(_e,u[Se],h,null,_,x,E,b,C),ie++)}const ws=at?rl(wt):pt;for(J=ws.length-1,y=Ce-1;y>=0;y--){const _e=$+y,Se=u[_e],Ts=_e+1{const{el:x,type:E,transition:b,children:C,shapeFlag:y}=c;if(y&6){Xe(c.component.subTree,u,h,m);return}if(y&128){c.suspense.move(u,h,m);return}if(y&64){E.move(c,u,h,ut);return}if(E===de){s(x,u,h);for(let I=0;Ib.enter(x),_);else{const{leave:I,delayLeave:A,afterLeave:P}=b,$=()=>s(x,u,h),U=()=>{I(x,()=>{$(),P&&P()})};A?A(x,$,U):U()}else s(x,u,h)},Te=(c,u,h,m=!1,_=!1)=>{const{type:x,props:E,ref:b,children:C,dynamicChildren:y,shapeFlag:w,patchFlag:I,dirs:A}=c;if(b!=null&&Zn(b,null,h,c,!0),w&256){u.ctx.deactivate(c);return}const P=w&1&&A,$=!Ot(c);let U;if($&&(U=E&&E.onVnodeBeforeUnmount)&&Ae(U,u,c),w&6)Co(c.component,h,m);else{if(w&128){c.suspense.unmount(h,m);return}P&&Ze(c,null,u,"beforeUnmount"),w&64?c.type.remove(c,u,h,_,ut,m):y&&(x!==de||I>0&&I&64)?Fe(y,u,h,!1,!0):(x===de&&I&384||!_&&w&16)&&Fe(C,u,h),m&&xs(c)}($&&(U=E&&E.onVnodeUnmounted)||P)&&he(()=>{U&&Ae(U,u,c),P&&Ze(c,null,u,"unmounted")},h)},xs=c=>{const{type:u,el:h,anchor:m,transition:_}=c;if(u===de){xo(h,m);return}if(u===tn){K(c);return}const x=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:E,delayLeave:b}=_,C=()=>E(h,x);b?b(c.el,x,C):C()}else x()},xo=(c,u)=>{let h;for(;c!==u;)h=g(c),r(c),c=h;r(u)},Co=(c,u,h)=>{const{bum:m,scope:_,update:x,subTree:E,um:b}=c;m&&Qt(m),_.stop(),x&&(x.active=!1,Te(E,c,u,h)),b&&he(b,u),he(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Fe=(c,u,h,m=!1,_=!1,x=0)=>{for(let E=x;Ec.shapeFlag&6?Kt(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let wn=!1;const Cs=(c,u,h)=>{c==null?u._vnode&&Te(u._vnode,null,null,!0):O(u._vnode||null,c,u,null,null,null,h),wn||(wn=!0,Fs(),jr(),wn=!1),u._vnode=c},ut={p:O,um:Te,m:Xe,r:xs,mt:me,mc:R,pc:z,pbc:k,n:Kt,o:e};let Tn,Sn;return t&&([Tn,Sn]=t(ut)),{render:Cs,hydrate:Tn,createApp:Gi(Cs,Tn)}}function Fn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Qe({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function sl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function uo(e,t,n=!1){const s=e.children,r=t.children;if(L(s)&&L(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ao(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ao(t)}const ol=e=>e.__isTeleport,de=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),xe=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),Pt=[];let we=null;function ne(e=!1){Pt.push(we=e?null:[])}function il(){Pt.pop(),we=Pt[Pt.length-1]||null}let $t=1;function qs(e){$t+=e}function ho(e){return e.dynamicChildren=$t>0?we||pt:null,il(),$t>0&&we&&we.push(e),e}function Ie(e,t,n,s,r,o){return ho(W(e,t,n,s,r,o,!0))}function Me(e,t,n,s,r){return ho(Z(e,t,n,s,r,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function st(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",po=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?te(e)||ge(e)||M(e)?{i:se,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,s=0,r=null,o=e===de?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&po(t),ref:t&&nn(t),scopeId:zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(vs(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=te(n)?8:16),$t>0&&!i&&we&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&we.push(f),f}const Z=ll;function ll(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===kr)&&(e=xe),fn(e)){const l=Je(e,t,!0);return n&&vs(l,n),$t>0&&!o&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag|=-2,l}if(vl(e)&&(e=e.__vccOpts),t){t=cl(t);let{class:l,style:f}=t;l&&!te(l)&&(t.class=Ht(l)),G(f)&&(Fr(f)&&!L(f)&&(f=re({},f)),t.style=gn(f))}const i=te(e)?1:xi(e)?128:ol(e)?64:G(e)?4:M(e)?2:0;return W(e,t,n,s,r,i,o,!0)}function cl(e){return e?Fr(e)||xn in e?re({},e):e:null}function Je(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?fl(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&po(l),ref:t&&t.ref?n&&r?L(r)?r.concat(nn(t)):[r,nn(t)]:nn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Je(e.ssContent),ssFallback:e.ssFallback&&Je(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function go(e=" ",t=0){return Z(bn,null,e,t)}function Dc(e,t){const n=Z(tn,null,e);return n.staticCount=t,n}function Xt(e="",t=!1){return t?(ne(),Me(xe,null,e)):Z(xe,null,e)}function Oe(e){return e==null||typeof e=="boolean"?Z(xe):L(e)?Z(de,null,e.slice()):typeof e=="object"?Ke(e):Z(bn,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Je(e)}function vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(L(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(xn in t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else M(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[go(t)]):n=8);e.children=t,e.shapeFlag|=n}function fl(...e){const t={};for(let n=0;nle||se;let un,Qn;{const e=vr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};un=t("__VUE_INSTANCE_SETTERS__",n=>le=n),Qn=t("__VUE_SSR_SETTERS__",n=>jt=n)}const Dt=e=>{const t=le;return un(e),e.scope.on(),()=>{e.scope.off(),un(t)}},Gs=()=>{le&&le.scope.off(),un(null)};function mo(e){return e.vnode.shapeFlag&4}let jt=!1;function pl(e,t=!1){t&&Qn(t);const{props:n,children:s}=e.vnode,r=mo(e);Yi(e,n,r,t),Qi(e,s);const o=r?gl(e,t):void 0;return t&&Qn(!1),o}function gl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$r(new Proxy(e.ctx,ji));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?_l(e):null,o=Dt(e);ct();const i=qe(s,e,0,[e.props,r]);if(ft(),o(),mr(i)){if(i.then(Gs,Gs),t)return i.then(l=>{Js(e,l,t)}).catch(l=>{Bt(l,e,0)});e.asyncDep=i}else Js(e,i,t)}else _o(e,t)}function Js(e,t,n){M(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Br(t)),_o(e,n)}let Ys;function _o(e,t,n){const s=e.type;if(!e.render){if(!t&&Ys&&!s.render){const r=s.template||_s(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=re(re({isCustomElement:o,delimiters:l},i),f);s.render=Ys(r,a)}}e.render=s.render||ve}{const r=Dt(e);ct();try{Ui(e)}finally{ft(),r()}}}function ml(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return pe(e,"get","$attrs"),t[n]}}))}function _l(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return ml(e)},slots:e.slots,emit:e.emit,expose:t}}function Cn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Br($r(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Lt)return Lt[n](e)},has(t,n){return n in t||n in Lt}}))}function yl(e,t=!0){return M(e)?e.displayName||e.name:e.name||t&&e.__name}function vl(e){return M(e)&&"__vccOpts"in e}const es=(e,t)=>ri(e,t,jt);function yo(e,t,n){const s=arguments.length;return s===2?G(t)&&!L(t)?fn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&fn(n)&&(n=[n]),Z(e,t,n))}const bl="3.4.14";/** -* @vue/runtime-dom v3.4.14 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const xl="http://www.w3.org/2000/svg",Cl="http://www.w3.org/1998/Math/MathML",ze=typeof document<"u"?document:null,Xs=ze&&ze.createElement("template"),El={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ze.createElementNS(xl,e):t==="mathml"?ze.createElementNS(Cl,e):ze.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ze.createTextNode(e),createComment:e=>ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Xs.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Xs.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ve="transition",Tt="animation",Nt=Symbol("_vtc"),En=(e,{slots:t})=>yo(Ii,wl(e),t);En.displayName="Transition";const vo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};En.props=re({},Yr,vo);const et=(e,t=[])=>{L(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zs=e=>e?L(e)?e.some(t=>t.length>1):e.length>1:!1;function wl(e){const t={};for(const S in e)S in vo||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:a=i,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,T=Tl(r),O=T&&T[0],N=T&&T[1],{onBeforeEnter:j,onEnter:D,onEnterCancelled:H,onLeave:K,onLeaveCancelled:Q,onBeforeAppear:F=j,onAppear:ue=D,onAppearCancelled:R=H}=t,ee=(S,Y,me)=>{tt(S,Y?d:l),tt(S,Y?a:i),me&&me()},k=(S,Y)=>{S._isLeaving=!1,tt(S,p),tt(S,v),tt(S,g),Y&&Y()},ce=S=>(Y,me)=>{const Et=S?ue:D,oe=()=>ee(Y,S,me);et(Et,[Y,oe]),Qs(()=>{tt(Y,S?f:o),De(Y,S?d:l),Zs(Et)||er(Y,s,O,oe)})};return re(t,{onBeforeEnter(S){et(j,[S]),De(S,o),De(S,i)},onBeforeAppear(S){et(F,[S]),De(S,f),De(S,a)},onEnter:ce(!1),onAppear:ce(!0),onLeave(S,Y){S._isLeaving=!0;const me=()=>k(S,Y);De(S,p),Il(),De(S,g),Qs(()=>{S._isLeaving&&(tt(S,p),De(S,v),Zs(K)||er(S,s,N,me))}),et(K,[S,me])},onEnterCancelled(S){ee(S,!1),et(H,[S])},onAppearCancelled(S){ee(S,!0),et(R,[S])},onLeaveCancelled(S){k(S),et(Q,[S])}})}function Tl(e){if(e==null)return null;if(G(e))return[$n(e.enter),$n(e.leave)];{const t=$n(e);return[t,t]}}function $n(e){return Io(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Nt]||(e[Nt]=new Set)).add(t)}function tt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Nt];n&&(n.delete(t),n.size||(e[Nt]=void 0))}function Qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sl=0;function er(e,t,n,s){const r=e._endId=++Sl,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:f}=Al(e,t);if(!i)return s();const a=i+"end";let d=0;const p=()=>{e.removeEventListener(a,g),o()},g=v=>{v.target===e&&++d>=f&&p()};setTimeout(()=>{d(n[T]||"").split(", "),r=s(`${Ve}Delay`),o=s(`${Ve}Duration`),i=tr(r,o),l=s(`${Tt}Delay`),f=s(`${Tt}Duration`),a=tr(l,f);let d=null,p=0,g=0;t===Ve?i>0&&(d=Ve,p=i,g=o.length):t===Tt?a>0&&(d=Tt,p=a,g=f.length):(p=Math.max(i,a),d=p>0?i>a?Ve:Tt:null,g=d?d===Ve?o.length:f.length:0);const v=d===Ve&&/\b(transform|all)(,|$)/.test(s(`${Ve}Property`).toString());return{type:d,timeout:p,propCount:g,hasTransform:v}}function tr(e,t){for(;e.lengthnr(n)+nr(e[s])))}function nr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Il(){return document.body.offsetHeight}function Ol(e,t,n){const s=e[Nt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bs=Symbol("_vod"),Ll={beforeMount(e,{value:t},{transition:n}){e[bs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):St(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),St(e,!0),s.enter(e)):s.leave(e,()=>{St(e,!1)}):St(e,t))},beforeUnmount(e,{value:t}){St(e,t)}};function St(e,t){e.style.display=t?e[bs]:"none"}const Pl=Symbol("");function Ml(e,t,n){const s=e.style,r=s.display,o=te(n);if(n&&!o){if(t&&!te(t))for(const i in t)n[i]==null&&ts(s,i,"");for(const i in n)ts(s,i,n[i])}else if(o){if(t!==n){const i=s[Pl];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");bs in e&&(s.display=r)}const sr=/\s*!important$/;function ts(e,t,n){if(L(n))n.forEach(s=>ts(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Rl(e,t);sr.test(n)?e.setProperty(xt(s),n.replace(sr,""),"important"):e[s]=n}}const rr=["Webkit","Moz","ms"],Nn={};function Rl(e,t){const n=Nn[t];if(n)return n;let s=Pe(t);if(s!=="filter"&&s in e)return Nn[t]=s;s=pn(s);for(let r=0;rHn||(Vl.then(()=>Hn=0),Hn=Date.now());function jl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;be(Ul(s,n.value),t,5,[s])};return n.value=e,n.attached=Dl(),n}function Ul(e,t){if(L(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const cr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kl=(e,t,n,s,r,o,i,l,f)=>{const a=r==="svg";t==="class"?Ol(e,s,a):t==="style"?Ml(e,n,s):an(t)?rs(t)||Hl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zl(e,t,s,a))?$l(e,t,s,o,i,l,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Fl(e,t,s,a))};function zl(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&cr(t)&&M(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return cr(t)&&te(n)?!1:t in e}const fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?n=>Qt(t,n):t};function Wl(e){e.target.composing=!0}function ur(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bn=Symbol("_assign"),kl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Bn]=fr(r);const o=s||r.props&&r.props.type==="number";ht(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Vn(l)),e[Bn](l)}),n&&ht(e,"change",()=>{e.value=e.value.trim()}),t||(ht(e,"compositionstart",Wl),ht(e,"compositionend",ur),ht(e,"change",ur))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[Bn]=fr(o),e.composing)return;const i=r||e.type==="number"?Vn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},ql=re({patchProp:Kl},El);let ar;function bo(){return ar||(ar=tl(ql))}const dr=(...e)=>{bo().render(...e)},Gl=(...e)=>{const t=bo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yl(s);if(!r)return;const o=t._component;!M(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Jl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Jl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yl(e){return te(e)?document.querySelector(e):e}const Xl="modulepreload",Zl=function(e){return"/neatui-vue/"+e},hr={},dt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(i=>{if(i=Zl(i),i in hr)return;hr[i]=!0;const l=i.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!s)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===i&&(!l||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${f}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Xl,l||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),l)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ql=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ec="/neatui-vue/icon.png",tc=["viewBox"],Ct=Re({__name:"Icon",props:{useLink:{type:Boolean,default:!1},viewBox:{default:"0 0 1024 1024"}},setup(e){return(t,n)=>(ne(),Ie("svg",{viewBox:t.useLink?void 0:t.viewBox,"aria-hidden":"true",class:"nt-icon"},[Di(t.$slots,"default")],8,tc))}}),nc=new Map;document.addEventListener("click",e=>{for(const t of nc.values())for(const{documentHandler:n}of t)n(e)},!0);const sc=W("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),rc=Re({__name:"InfoIcon",setup(e){return(t,n)=>(ne(),Me(Ct,null,{default:Ne(()=>[sc]),_:1}))}}),oc=W("path",{fill:"currentColor",d:"M512 1024C229.234 1024 0 794.766 0 512S229.234 0 512 0s512 229.234 512 512-229.234 512-512 512z m-64.853-734.52l19.484 244.906 1.309 16.156c1.251 15.93 15.018 28.644 30.72 28.644h25.571c15.56 0 29.298-12.601 30.663-28.132l1.422-16.668 21.334-244.907c3.214-36.978-24.434-66.844-61.725-66.844h-6.627c-37.462 0-65.138 29.923-62.18 66.844zM512 801.393a66.788 66.788 0 1 0 0-133.575 66.788 66.788 0 0 0 0 133.575z"},null,-1),ic=Re({__name:"WarnIcon",setup(e){return(t,n)=>(ne(),Me(Ct,null,{default:Ne(()=>[oc]),_:1}))}}),lc=W("path",{fill:"currentColor",d:"M511.360799 0C229.345318 0 0.681814 228.663504 0.681814 510.678985c0 282.015481 228.663504 510.678985 510.678985 510.678985s510.678985-228.663504 510.678985-510.678985C1022.039784 228.663504 793.37628 0 511.360799 0zM720.336912 690.251852c13.465834 13.465834 13.551061 35.283895 0.340907 48.579276L711.047191 748.461756C697.75181 761.757137 676.104203 761.586683 662.723596 748.120849L511.275572 596.076238 359.401415 747.268581c-13.465834 13.465834-35.283895 13.551061-48.579276 0.340907L301.191511 737.97886C287.89613 724.683479 287.981357 703.035872 301.532418 689.655264l152.044611-151.448023L302.384686 386.333084c-13.465834-13.465834-13.551061-35.283895-0.340907-48.579276l9.630628-9.630628C324.969788 314.827799 346.617395 314.998252 359.998002 328.464087l151.448023 152.044611 151.788931-151.192343c13.465834-13.465834 35.283895-13.551061 48.579276-0.340907l9.630628 9.630628c13.295381 13.295381 13.210154 34.857761-0.340907 48.323596L569.144569 538.377695 720.336912 690.251852z"},null,-1),cc=Re({__name:"ErrorIcon",setup(e){return(t,n)=>(ne(),Me(Ct,null,{default:Ne(()=>[lc]),_:1}))}}),fc=W("path",{fill:"currentColor",d:"M512 0C228.693333 0 0 228.693333 0 512s228.693333 512 512 512 512-228.693333 512-512S795.306667 0 512 0z m307.2 368.64L467.626667 730.453333c0 3.413333-3.413333 3.413333-3.413334 6.826667-13.653333 13.653333-37.546667 13.653333-51.2 0l-177.493333-177.493333c-13.653333-13.653333-13.653333-37.546667 0-51.2 13.653333-13.653333 37.546667-13.653333 51.2 0l150.186667 153.6 334.506666-341.333334c13.653333-13.653333 37.546667-13.653333 51.2 0 10.24 10.24 10.24 34.133333-3.413333 47.786667z m0 0"},null,-1),uc=Re({__name:"SuccessIcon",setup(e){return(t,n)=>(ne(),Me(Ct,null,{default:Ne(()=>[fc]),_:1}))}}),ac=["id"],dc={class:"nt-message-content"},hc=Re({__name:"index",props:{onClose:{},duration:{default:3e3},type:{default:"info"},customClass:{default:""},zindex:{default:1e3},offset:{default:20},message:{},id:{},width:{default:""}},emits:["destroy"],setup(e,{expose:t}){const n=e,s=_t(!1),r=es(()=>({top:`${n.offset}px`,zIndex:n.zindex,width:n.width===""?void 0:n.width})),o=es(()=>n.type==="success"?uc:n.type==="warn"?ic:n.type==="error"?cc:rc);function i(){s.value=!1}return t({close:i}),ms(()=>{s.value=!0,n.duration>0&&setTimeout(()=>{s.value=!1},n.duration)}),(l,f)=>(ne(),Me(En,{name:"nt-message-fade",appear:"",onBeforeLeave:l.onClose,onAfterLeave:f[0]||(f[0]=a=>l.$emit("destroy"))},{default:Ne(()=>[Jr(W("div",{id:l.id,style:gn(r.value),class:Ht(["nt-message",`nt-message-${l.type}`,l.customClass])},[W("div",null,[(ne(),Me(vi(o.value),{class:"nt-message-icon"})),W("span",dc,At(l.message),1)])],14,ac),[[Ll,s.value]])]),_:1},8,["onBeforeLeave"]))}}),pc=["info","success","error","warn","show"],ot=[];let gc=0;function mc(e){const t=ot.findIndex(o=>o.component!=null&&o.component.props.id===e);if(t===-1)return;const n=ot.splice(t,1)[0];if(n==null)return;let s=15;n.el!=null&&(s=n.el.offsetHeight);const r=ot.length;if(r!==0)for(let o=t;o{let t=document.createElement("div"),n=15;for(const i of ot)i.el!=null&&(n+=i.el.offsetHeight+15);const s=`message${++gc}`,r=typeof e=="string"?{message:e}:e;r.id=s,r.offset=n,r.onClose=()=>{mc(s)},r.onDestroy=()=>{dr(null,t),t=null};const o=yo(hc,r);return dr(o,t),ot.push(o),document.body.appendChild(t.firstElementChild),s};for(const e of pc)ns[e]=t=>{const n=typeof t=="string"?{message:t}:t;return n.type=e,n.type==="show"&&(n.type="info"),ns(n)};ns.close=e=>{const t=ot.find(n=>n.component!=null&&n.component.props.id===e);t!=null&&t.component.exposed.close()};const _c=W("path",{d:"M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z",fill:"#C71D23"},null,-1),yc=Re({__name:"GiteeIcon",setup(e){return(t,n)=>(ne(),Me(We(Ct),null,{default:Ne(()=>[_c]),_:1}))}}),vc=W("path",{d:"M512 42.666667A464.64 464.64 0 0 0 42.666667 502.186667 460.373333 460.373333 0 0 0 363.52 938.666667c23.466667 4.266667 32-9.813333 32-22.186667v-78.08c-130.56 27.733333-158.293333-61.44-158.293333-61.44a122.026667 122.026667 0 0 0-52.053334-67.413333c-42.666667-28.16 3.413333-27.733333 3.413334-27.733334a98.56 98.56 0 0 1 71.68 47.36 101.12 101.12 0 0 0 136.533333 37.973334 99.413333 99.413333 0 0 1 29.866667-61.44c-104.106667-11.52-213.333333-50.773333-213.333334-226.986667a177.066667 177.066667 0 0 1 47.36-124.16 161.28 161.28 0 0 1 4.693334-121.173333s39.68-12.373333 128 46.933333a455.68 455.68 0 0 1 234.666666 0c89.6-59.306667 128-46.933333 128-46.933333a161.28 161.28 0 0 1 4.693334 121.173333A177.066667 177.066667 0 0 1 810.666667 477.866667c0 176.64-110.08 215.466667-213.333334 226.986666a106.666667 106.666667 0 0 1 32 85.333334v125.866666c0 14.933333 8.533333 26.88 32 22.186667A460.8 460.8 0 0 0 981.333333 502.186667 464.64 464.64 0 0 0 512 42.666667",fill:"#231F20"},null,-1),bc=Re({__name:"GithubIcon",setup(e){return(t,n)=>(ne(),Me(We(Ct),null,{default:Ne(()=>[vc,go(" >")]),_:1}))}}),pr=[{name:"introduce",showName:!1,text:"介绍"},{name:"usage",showName:!1,text:"快速上手"},{name:"reset",showName:!1,text:"样式重置"},{name:"css_util",showName:!1,text:"工具样式"},{name:"---",text:"",showName:!1},{name:"Container",text:"容器布局"},{name:"Icon",text:"图标"}];function xc(e,t=!0){return e==null?!0:(t?e.trim().length:e.length)===0}function Cc(e,t=500){let n=-1;return(...s)=>{clearTimeout(n),n=setTimeout(()=>{e(...s)},t)}}const Ec={class:"nt-container nt-layout-vertical"},wc={class:"nt-header app-header"},Tc={class:"vertical-center app-header-left"},Sc=W("div",{class:"logo-wrapper"},[W("img",{src:ec,alt:"neatui"})],-1),Ac={class:"ml-10"},Ic={class:"search-wrapper"},Oc={key:0,class:"search-menu-list"},Lc=["onClick"],Pc={key:0},Mc={class:"vertical-center app-header-right"},Rc={class:"nt-container"},Fc={class:"nt-aside"},$c=["onClick"],Nc={key:0},Hc={class:"nt-main app-main"},Bc={class:"doc-wrapper"},Vc=Re({__name:"App",setup(e){let t=location.pathname.substring(1);xc(t)&&(t="usage");const n=_t(""),s=_t([]),r=Oi(()=>Ql(Object.assign({"./views/Container.vue":()=>dt(()=>import("./Container-VK_isnBv.js"),__vite__mapDeps([0,1,2,3])),"./views/Icon.vue":()=>dt(()=>import("./Icon-1CQEZRYi.js"),__vite__mapDeps([4,1,2,3])),"./views/css_util.vue":()=>dt(()=>import("./css_util-M8y4uxEs.js"),__vite__mapDeps([5,1,2,3])),"./views/introduce.vue":()=>dt(()=>import("./introduce-cNU-9BE4.js"),__vite__mapDeps([6,7])),"./views/reset.vue":()=>dt(()=>import("./reset-i5QASN8_.js"),__vite__mapDeps([8,1,2])),"./views/usage.vue":()=>dt(()=>import("./usage-85i8ODO3.js"),__vite__mapDeps([9,1,2]))}),`./views/${t}.vue`));function o(){if(n.value==="")s.value=[];else{const p=new RegExp(n.value,"i");s.value=pr.filter(g=>p.test(g.name)||p.test(g.text))}}function i(p){let g="";p==="gitee"?g="https://gitee.com/towardly/neatui-vue":g="https://github.com/DvShu/neatui-vue",window.open(g)}const l=Cc(()=>{o()});function f(p){p==="in"?o():s.value=[]}function a(p){p!==t&&(location.href="/"+p)}function d(p){a(p)}return(p,g)=>(ne(),Ie("section",Ec,[W("header",wc,[W("div",Tc,[Sc,W("div",Ac,[W("div",Ic,[Jr(W("input",{"onUpdate:modelValue":g[0]||(g[0]=v=>n.value=v),type:"text",placeholder:"搜索",class:"nt-input",onInput:g[1]||(g[1]=(...v)=>We(l)&&We(l)(...v)),onFocus:g[2]||(g[2]=v=>f("in")),onBlur:g[3]||(g[3]=v=>f("out"))},null,544),[[kl,n.value]]),Z(En,{name:"nt-opacity"},{default:Ne(()=>[s.value.length>0?(ne(),Ie("ul",Oc,[(ne(!0),Ie(de,null,Bs(s.value,v=>(ne(),Ie("li",{key:v.name,onClick:T=>d(v.name)},[v.showName!==!1?(ne(),Ie("span",Pc,At(v.name)+" - ",1)):Xt("",!0),W("span",null,At(v.text),1)],8,Lc))),128))])):Xt("",!0)]),_:1})])])]),W("div",Mc,[Z(bc,{class:"git-repo-icon",onClick:g[4]||(g[4]=v=>i("github"))}),Z(yc,{class:"git-repo-icon ml-10",onClick:g[5]||(g[5]=v=>i("gitee"))})])]),W("section",Rc,[W("aside",Fc,[W("ul",null,[(ne(!0),Ie(de,null,Bs(We(pr),v=>(ne(),Ie("li",{key:v.name,class:Ht([v.name!=="---"?"aside-item":"aside-divider",We(t)===v.name?"aside-item--active":""]),onClick:T=>a(v.name)},[v.name!=="---"?(ne(),Ie(de,{key:0},[v.showName!==!1?(ne(),Ie("span",Nc,At(v.name)+" ",1)):Xt("",!0),W("span",null,At(v.text),1)],64)):Xt("",!0)],10,$c))),128))])]),W("main",Hc,[W("div",Bc,[Z(We(r))])])])]))}});Gl(Vc).mount("#app");export{ic as A,de as F,ns as M,En as T,dt as _,Z as a,Dc as b,Ie as c,Re as d,W as e,Oi as f,Me as g,vi as h,go as i,Xt as j,_t as k,yo as l,xc as m,Ht as n,ne as o,Ql as p,Ct as q,Bs as r,Di as s,At as t,We as u,ms as v,Ne as w,cc as x,rc as y,uc as z}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Container-VK_isnBv.js","assets/SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js","assets/SourceCode-JiUKO_wr.css","assets/PcCodePreview.vue_vue_type_script_lang-U_lT3Sv6.js","assets/Icon-1CQEZRYi.js","assets/css_util-M8y4uxEs.js","assets/introduce-cNU-9BE4.js","assets/_plugin-vue_export-helper-x3n3nnut.js","assets/reset-i5QASN8_.js","assets/usage-85i8ODO3.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/docs/assets/index-DqNuWikU.css b/docs/assets/index-DqNuWikU.css new file mode 100644 index 00000000..1cd2d7db --- /dev/null +++ b/docs/assets/index-DqNuWikU.css @@ -0,0 +1 @@ +html,body{height:100%}body{margin:0;font-size:14px;line-height:1.6;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}img{vertical-align:top}ul,ol{list-style:none;margin:0;padding:0}div{box-sizing:border-box}a{text-decoration:none;color:#4998f6;cursor:pointer;transition:color .3s}a:hover{color:#5ba2f7}a:active{color:#64a7f7}:root{--nt-form-edit-height: 32px;--nt-primary-color: #4998f6;--nt-error-color: #ed3f13;--nt-success-color: #19bf6c;--nt-warn-color: #f90;--nt-info-color: #999;--nt-border-color: #dedede}.nt-container{--nt-header-height: 50px;--nt-footer-height: var(--nt-header-height, 50px);--nt-aside-width: 240px;display:flex;flex-flow:row nowrap;box-sizing:border-box;flex-grow:1;height:100%}.nt-container .nt-container{height:calc(100% - var(--nt-header-height))}.nt-container.nt-layout-vertical{flex-direction:column;width:100%}.nt-aside{overflow:auto;box-sizing:border-box;width:var(--nt-aside-width);flex-shrink:0;border-right:1px solid #dedede;padding:10px}.nt-header{padding:0 10px;box-sizing:border-box;border-bottom:1px solid #dedede;display:flex;align-items:center;justify-content:space-between;height:var(--nt-header-height)}.nt-footer{padding:10px;box-sizing:border-box;border-top:1px solid #dedede;height:var(--nt-footer-height)}.nt-main{width:100%;box-sizing:border-box;overflow:auto;padding:10px;flex-grow:1;-webkit-overflow-scrolling:touch}.nt-icon{width:1em;height:1em;fill:currentColor;vertical-align:middle}.nt-input{outline:none;box-sizing:border-box;height:var(--nt-form-edit-height, 32px);border:1px solid #dedede;transition:border-color .3s;background-color:transparent;text-align:inherit;padding:0 5px;border-radius:3px}.nt-input:focus{border-color:var(--nt-primary-color)}.nt-opacity-enter-active,.nt-opacity-leave-active{transition:opacity var(--nt-transition-times, .3s) ease}.nt-opacity-enter-from,.nt-opacity-leave-to{opacity:0}.nt-fadein-enter-active,.nt-fadein-leave-active{transition:all var(--nt-transition-times, .3s) ease-in-out}.nt-fadein-enter-from,.nt-fadein-leave-to{opacity:0;transform:translateY(var(--nt-fadein-offset, -20px))}.nt-scrollbar{--nt-scrollbar-bg: #d9d9d9;--nt-scrollbar-size: 10px;--nt-scrollbar-hover: #bfbfbf;overflow:auto;scroll-behavior:smooth}.nt-scrollbar::-webkit-scrollbar-thumb{background:var(--nt-scrollbar-bg);border-radius:calc(var(--nt-scrollbar-size) / 2)}.nt-scrollbar::-webkit-scrollbar{width:var(--nt-scrollbar-size);height:var(--nt-scrollbar-size)}.nt-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--nt-scrollbar-hover)}.nt-table{width:100%;background-color:#fff;color:#666;font-size:14px;border-collapse:collapse;border-spacing:0}.nt-table-fixed{table-layout:fixed}.nt-table tbody tr{transition:all .25s ease-out}.nt-table tbody tr:hover td{background-color:#f2f2f2}.nt-table .caret-wrapper{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:14px;width:20px;position:relative}.nt-table .caret-wrapper .ascending{border-bottom-color:#c0c4cc;top:-5px}.nt-table .caret-wrapper .descending{border-top-color:#c0c4cc;bottom:-3px}.nt-table .sort-caret{display:inline-block;width:0;height:0;border:5px solid transparent;position:absolute}.nt-table .sort-column{cursor:pointer}.nt-table .sort-asc .ascending{border-bottom-color:#4998f4}.nt-table .sort-desc .descending{border-top-color:#4998f4}.nt-table td,.nt-table th{padding:10px 5px;border-bottom:1px solid #e6e6e6}.nt-table th{text-align:left;background-color:#f2f2f2}.nt-table td{background-color:#fff}.nt-table-stripe tbody tr:nth-child(2n) td{background-color:#fafafa}.nt-table-stripe tbody tr:nth-child(2n):hover td{background-color:#f2f2f2}.nt-table__none-col{color:#999}.nt-table .nt-fixed{position:-webkit-sticky;position:sticky;z-index:1;box-sizing:border-box}.nt-table tr.nt-fixed{z-index:2}@keyframes nt-rotate-frame{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}.nt-rotate-anim{animation:nt-rotate-frame 1.5s infinite linear}.nt-btn{--nt-btn-color: rgba(0, 0, 0, .65);--nt-btn-bg-color: #fff;--nt-btn-border-color: #d9d9d9;--nt-btn-hover-color: #79b3f7;--nt-btn-active-color: #197df1;--nt-btn-disabled-color: #c9c9c9;--nt-btn-disabled-bg-color: #fbfbfb;--nt-btn-disabled-border-color: #e6e6e6;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:none;box-sizing:border-box;padding:0 11px;line-height:1;height:var(--nt-form-edit-height);border-radius:3px;font-size:14px;color:var(--nt-btn-color);background:var(--nt-btn-bg-color);border:1px solid var(--nt-btn-border-color);transition:border-color .3s,background-color .3s,color .3s;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,apple color emoji,segoe ui emoji,Segoe UI Symbol,noto color emoji}.nt-btn:hover{border-color:var(--nt-btn-hover-border-color, var(--nt-btn-hover-color));color:var(--nt-btn-hover-color);background-color:var(--nt-btn-hover-bg-color, var(--nt-btn-bg-color))}.nt-btn:active{border-color:var(--nt-btn-active-border-color, var(--nt-btn-active-color));color:var(--nt-btn-active-color);background-color:var(--nt-btn-active-bg-color, var(--nt-btn-bg-color))}.nt-btn [class*=nt-icon]+span{margin-left:5px}.nt-btn-primary{--nt-btn-color: #fff;--nt-btn-bg-color: var(--nt-primary-color);--nt-btn-border-color: var(--nt-primary-color);--nt-btn-hover-color: #fff;--nt-btn-hover-border-color: #79b3f7;--nt-btn-hover-bg-color: #79b3f7;--nt-btn-active-color: #fff;--nt-btn-active-border-color: #197df1;--nt-btn-active-bg-color: #197df1}.nt-btn:not(.nt-btn-loading):disabled{border-color:var(--nt-btn-disabled-border-color);background-color:var(--nt-btn-disabled-bg-color);color:var(--nt-btn-disabled-color);cursor:not-allowed;opacity:1}.nt-btn-text{--nt-btn-color: var(--nt-primary-color);--nt-btn-bg-color: transparent;--nt-btn-border-color: transparent;--nt-btn-hover-border-color: transparent;--nt-btn-active-border-color: transparent;height:auto;padding:5px}.nt-btn-round{border-radius:calc(var(--nt-form-edit-height) / 2)}.nt-btn-circle{border-radius:50%;width:var(--nt-form-edit-height);padding:0}.nt-btn-block{width:100%}.nt-message{position:fixed;left:50%;top:20px;padding:10px;transform:translate3d(-50%,0,0);transition:opacity .3s,transform .3s,top .3s;display:flex;align-items:center;border-radius:5px;font-size:14px;background:#f0faff;color:var(--nt-primary-color);border:1px solid #d4eeff}.nt-message .nt-message-icon{margin-right:5px}.nt-message.nt-message-success{background:#edfff3;color:var(--nt-success-color);border-color:#bbf2cf}.nt-message.nt-message-error{background:#ffefe6;color:var(--nt-error-color);border-color:#ffcfb8}.nt-message.nt-message-warn{background:#fff9e6;color:var(--nt-warn-color);border-color:#ffe7a3}.nt-message-fade-enter-from,.nt-message-fade-leave-to{opacity:0;transform:translate3d(-50%,-100%,0)}@media screen and (max-width: 768px){.nt-message{width:90%}}.nt-card{box-shadow:#0000001f 0 0 20px;border-radius:4px;border:1px solid var(--nt-border-color);background-color:#fff;color:#333}.nt-card__header{border-bottom:1px solid var(--nt-border-color);box-sizing:border-box;display:flex;justify-content:space-between;align-items:center}.nt-card__footer{border-top:1px solid var(--nt-border-color);box-sizing:border-box}.nt-card__header,.nt-card__body,.nt-card__footer{padding:15px}.nt-tooltip{position:relative;display:inline-block}.nt-tooltip-text{position:absolute;left:50%;transform:translate3d(-50%,0,0);color:#fff;text-shadow:0 -1px 0px #383838;box-shadow:4px 4px 8px #0000004d;background:#383838;border-radius:3px;padding:5px;font-size:12px;white-space:nowrap;transition:all .3s;opacity:0;visibility:hidden;z-index:1}.nt-tooltip-text:after{content:"";position:absolute;border-width:5px;border-style:solid;left:50%;margin-left:-5px}.nt-tooltip-top .nt-tooltip-text{bottom:calc(100% + 7px)}.nt-tooltip-top .nt-tooltip-text:after{top:100%;border-color:#383838 transparent transparent transparent}.nt-tooltip-bottom .nt-tooltip-text{top:calc(100% + 7px)}.nt-tooltip-bottom .nt-tooltip-text:after{bottom:100%;border-color:transparent transparent #383838 transparent}.nt-tooltip-start .nt-tooltip-text{left:0;transform:translateZ(0)}.nt-tooltip-start .nt-tooltip-text:after{left:10px}.nt-tooltip-end .nt-tooltip-text{left:auto;right:0;transform:translateZ(0)}.nt-tooltip-end .nt-tooltip-text:after{right:10px;left:auto;margin-left:0}.nt-tooltip:hover .nt-tooltip-text{opacity:1;visibility:visible}.ml-10{margin-left:10px}.vertical-center{display:flex;align-items:center}.center{display:flex;justify-content:center;align-items:center}h1{margin-top:0;font-size:32px;margin-bottom:15px}h2{font-weight:700;font-size:28px;line-height:36px;margin:24px 0}h3{font-weight:700;font-size:20px;line-height:28px;margin:15px 0}p{margin:5px 0;font-size:16px;line-height:1.4;color:#333}.ul-list{padding:0 40px;list-style:circle}.mt-10{margin-top:10px}#app,#app .app-header-right,#app .app-header-left{height:100%}#app .git-repo-icon{font-size:24px;color:#fff;transition:font-size .15s;cursor:pointer}#app .git-repo-icon:hover{font-size:30px}#app .logo-wrapper{width:calc(var(--nt-aside-width) - 10px);border-right:1px solid #dedede;box-sizing:border-box}#app .nt-input{width:100%}#app .search-wrapper{position:relative;width:200px}#app .search-menu-list{position:absolute;background-color:#fff;box-shadow:#64646f33 0 7px 29px;width:100%;max-height:150px;overflow-y:auto}#app .search-menu-list li{padding:7px 10px;border-bottom:1px solid #dedede;cursor:pointer;background-color:#fff;transition:background-color .3s,color .3s}#app .search-menu-list li:hover{color:var(--nt-primary-color);background-color:#409bff1a}#app .aside-item{padding:7px 10px;cursor:pointer;font-size:14px;transition:color .3s}#app .aside-item:hover{color:var(--nt-primary-color)}#app .aside-item--active{color:var(--nt-primary-color);font-weight:700;background-color:#409bff1a}#app .aside-divider{height:1px;background-color:#dedede;margin:5px 0}#app .app-main{overflow:hidden;padding:30px 50px}#app .doc-wrapper{display:grid;gap:20px;grid-template-columns:auto 200px;height:100%}#app .doc-main{height:100%;font-size:16px;overflow-y:auto;padding-right:5px}#app .preview-wrapper{flex-shrink:0;width:375px;height:90%;max-height:667px;border-radius:5px;border:1px solid #dedede;margin-left:20px}#app .preview-header{height:50px;font-size:16px;font-weight:700;border-bottom:1px solid #dedede}#app .preview-container{height:calc(100% - 50px);padding:10px;overflow-y:auto}#app .icon-list{display:inline-flex;border-top:1px solid #dedede;border-left:1px solid #dedede}#app .icon-item{width:100px;height:90px;cursor:pointer;background-color:#fff;color:#666;transition:background-color .3s;display:flex;flex-direction:column;align-items:center;border-right:1px solid #dedede;border-bottom:1px solid #dedede}#app .icon-item:hover{background-color:#f5f5f5}#app .icon-item .nt-icon{font-size:20px}#app .icon-name{font-size:14px;margin-top:5px} diff --git a/docs/assets/index-aWLd-FXG.js b/docs/assets/index-aWLd-FXG.js new file mode 100644 index 00000000..f03ac9d2 --- /dev/null +++ b/docs/assets/index-aWLd-FXG.js @@ -0,0 +1,23 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function rs(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const q={},gt=[],ye=()=>{},To=()=>!1,an=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),os=e=>e.startsWith("onUpdate:"),re=Object.assign,is=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ao=Object.prototype.hasOwnProperty,B=(e,t)=>Ao.call(e,t),L=Array.isArray,mt=e=>dn(e)==="[object Map]",_r=e=>dn(e)==="[object Set]",M=e=>typeof e=="function",te=e=>typeof e=="string",xt=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",vr=e=>(G(e)||M(e))&&M(e.then)&&M(e.catch),yr=Object.prototype.toString,dn=e=>yr.call(e),So=e=>dn(e).slice(8,-1),br=e=>dn(e)==="[object Object]",ls=e=>te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=rs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Io=/-(\w)/g,Me=hn(e=>e.replace(Io,(t,n)=>n?n.toUpperCase():"")),Oo=/\B([A-Z])/g,Et=hn(e=>e.replace(Oo,"-$1").toLowerCase()),pn=hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sn=hn(e=>e?`on${pn(e)}`:""),Ye=(e,t)=>!Object.is(e,t),en=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Lo=e=>{const t=te(e)?Number(e):NaN;return isNaN(t)?e:t};let Ss;const xr=()=>Ss||(Ss=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gn(e){if(L(e)){const t={};for(let n=0;n{if(n){const s=n.split(Mo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Bt(e){let t="";if(te(e))t=e;else if(L(e))for(let n=0;nte(e)?e:e==null?"":L(e)||G(e)&&(e.toString===yr||!M(e.toString))?JSON.stringify(e,Cr,2):String(e),Cr=(e,t)=>t&&t.__v_isRef?Cr(e,t.value):mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[In(s,o)+" =>"]=r,n),{})}:_r(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>In(n))}:xt(t)?In(t):G(t)&&!L(t)&&!br(t)?String(t):t,In=(e,t="")=>{var n;return xt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let we;class Ho{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),at()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ge,n=ct;try{return Ge=!0,ct=this,this._runnings++,Is(this),this.fn()}finally{Os(this),this._runnings--,ct=n,Ge=t}}stop(){var t;this.active&&(Is(this),Os(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Vo(e){return e.value}function Is(e){e._trackId++,e._depsLength=0}function Os(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Kn=new WeakMap,ut=Symbol(""),zn=Symbol("");function pe(e,t,n){if(Ge&&ct){let s=Kn.get(e);s||Kn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Ir(()=>s.delete(n))),Ar(ct,r)}}function Ne(e,t,n,s,r,o){const i=Kn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&L(e)){const u=Number(s);i.forEach((a,d)=>{(d==="length"||!xt(d)&&d>=u)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":L(e)?ls(n)&&l.push(i.get("length")):(l.push(i.get(ut)),mt(e)&&l.push(i.get(zn)));break;case"delete":L(e)||(l.push(i.get(ut)),mt(e)&&l.push(i.get(zn)));break;case"set":mt(e)&&l.push(i.get(ut));break}us();for(const u of l)u&&Sr(u,2);fs()}const jo=rs("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xt)),Ls=Uo();function Uo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=D(this);for(let o=0,i=this.length;o{e[t]=function(...n){ft(),us();const s=D(this)[t].apply(this,n);return fs(),at(),s}}),e}function Ko(e){const t=D(this);return pe(t,"has",e),t.hasOwnProperty(e)}class Lr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ni:Fr:o?Rr:Mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=L(t);if(!r){if(i&&B(Ls,n))return Reflect.get(Ls,n,s);if(n==="hasOwnProperty")return Ko}const l=Reflect.get(t,n,s);return(xt(n)?Or.has(n):jo(n))||(r||pe(t,"get",n),o)?l:ge(l)?i&&ls(n)?l:l.value:G(l)?r?$r(l):hs(l):l}}class Pr extends Lr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const u=bt(o);if(!rn(s)&&!bt(s)&&(o=D(o),s=D(s)),!L(t)&&ge(o)&&!ge(s))return u?!1:(o.value=s,!0)}const i=L(t)&&ls(n)?Number(n)e,mn=e=>Reflect.getPrototypeOf(e);function Wt(e,t,n=!1,s=!1){e=e.__v_raw;const r=D(e),o=D(t);n||(Ye(t,o)&&pe(r,"get",t),pe(r,"get",o));const{has:i}=mn(r),l=s?as:n?gs:Rt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function kt(e,t=!1){const n=this.__v_raw,s=D(n),r=D(e);return t||(Ye(e,r)&&pe(s,"has",e),pe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function qt(e,t=!1){return e=e.__v_raw,!t&&pe(D(e),"iterate",ut),Reflect.get(e,"size",e)}function Ps(e){e=D(e);const t=D(this);return mn(t).has.call(t,e)||(t.add(e),Ne(t,"add",e,e)),this}function Ms(e,t){t=D(t);const n=D(this),{has:s,get:r}=mn(n);let o=s.call(n,e);o||(e=D(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Ye(t,i)&&Ne(n,"set",e,t):Ne(n,"add",e,t),this}function Rs(e){const t=D(this),{has:n,get:s}=mn(t);let r=n.call(t,e);r||(e=D(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ne(t,"delete",e,void 0),o}function Fs(){const e=D(this),t=e.size!==0,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}function Gt(e,t){return function(s,r){const o=this,i=o.__v_raw,l=D(i),u=t?as:e?gs:Rt;return!e&&pe(l,"iterate",ut),i.forEach((a,d)=>s.call(r,u(a),u(d),o))}}function Jt(e,t,n){return function(...s){const r=this.__v_raw,o=D(r),i=mt(o),l=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,a=r[e](...s),d=n?as:t?gs:Rt;return!t&&pe(o,"iterate",u?zn:ut),{next(){const{value:p,done:g}=a.next();return g?{value:p,done:g}:{value:l?[d(p[0]),d(p[1])]:d(p),done:g}},[Symbol.iterator](){return this}}}}function De(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Go(){const e={get(o){return Wt(this,o)},get size(){return qt(this)},has:kt,add:Ps,set:Ms,delete:Rs,clear:Fs,forEach:Gt(!1,!1)},t={get(o){return Wt(this,o,!1,!0)},get size(){return qt(this)},has:kt,add:Ps,set:Ms,delete:Rs,clear:Fs,forEach:Gt(!1,!0)},n={get(o){return Wt(this,o,!0)},get size(){return qt(this,!0)},has(o){return kt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:Gt(!0,!1)},s={get(o){return Wt(this,o,!0,!0)},get size(){return qt(this,!0)},has(o){return kt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Jt(o,!1,!1),n[o]=Jt(o,!0,!1),t[o]=Jt(o,!1,!0),s[o]=Jt(o,!0,!0)}),[e,n,t,s]}const[Jo,Yo,Xo,Zo]=Go();function ds(e,t){const n=t?e?Zo:Xo:e?Yo:Jo;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(B(n,r)&&r in s?n:s,r,o)}const Qo={get:ds(!1,!1)},ei={get:ds(!1,!0)},ti={get:ds(!0,!1)},Mr=new WeakMap,Rr=new WeakMap,Fr=new WeakMap,ni=new WeakMap;function si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ri(e){return e.__v_skip||!Object.isExtensible(e)?0:si(So(e))}function hs(e){return bt(e)?e:ps(e,!1,Wo,Qo,Mr)}function oi(e){return ps(e,!1,qo,ei,Rr)}function $r(e){return ps(e,!0,ko,ti,Fr)}function ps(e,t,n,s,r){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ri(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function _t(e){return bt(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function rn(e){return!!(e&&e.__v_isShallow)}function Nr(e){return _t(e)||bt(e)}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function Hr(e){return sn(e,"__v_skip",!0),e}const Rt=e=>G(e)?hs(e):e,gs=e=>G(e)?$r(e):e;class Br{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cs(()=>t(this._value),()=>Wn(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=D(this);return(!t._cacheable||t.effect.dirty)&&Ye(t._value,t._value=t.effect.run())&&Wn(t,2),Dr(t),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ii(e,t,n=!1){let s,r;const o=M(e);return o?(s=e,r=ye):(s=e.get,r=e.set),new Br(s,r,o||!r,n)}function Dr(e){Ge&&ct&&(e=D(e),Ar(ct,e.dep||(e.dep=Ir(()=>e.dep=void 0,e instanceof Br?e:void 0))))}function Wn(e,t=2,n){e=D(e);const s=e.dep;s&&Sr(s,t)}function ge(e){return!!(e&&e.__v_isRef===!0)}function vt(e){return li(e,!1)}function li(e,t){return ge(e)?e:new ci(e,t)}class ci{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:D(t),this._value=n?t:Rt(t)}get value(){return Dr(this),this._value}set value(t){const n=this.__v_isShallow||rn(t)||bt(t);t=n?t:D(t),Ye(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Rt(t),Wn(this,2))}}function qe(e){return ge(e)?e.value:e}const ui={get:(e,t,n)=>qe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ge(r)&&!ge(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vr(e){return _t(e)?e:new Proxy(e,ui)}/** +* @vue/runtime-core v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Je(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Dt(o,t,n)}return r}function be(e,t,n,s){if(M(e)){const o=Je(e,t,n,s);return o&&vr(o)&&o.catch(i=>{Dt(i,t,n)}),o}const r=[];for(let o=0;o>>1,r=ue[s],o=$t(r);oPe&&ue.splice(t,1)}function pi(e){L(e)?yt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?rt+1:rt))&&yt.push(e),Ur()}function $s(e,t,n=Ft?Pe+1:0){for(;n$t(n)-$t(s));if(yt.length=0,Ke){Ke.push(...t);return}for(Ke=t,rt=0;rte.id==null?1/0:e.id,gi=(e,t)=>{const n=$t(e)-$t(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zr(e){kn=!1,Ft=!0,ue.sort(gi);try{for(Pe=0;Pete(y)?y.trim():y)),p&&(r=n.map(Vn))}let l,u=s[l=Sn(t)]||s[l=Sn(Me(t))];!u&&o&&(u=s[l=Sn(Et(t))]),u&&be(u,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(a,e,6,r)}}function Wr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!M(e)){const u=a=>{const d=Wr(a,t,!0);d&&(l=!0,re(i,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!l?(G(e)&&s.set(e,null),null):(L(o)?o.forEach(u=>i[u]=null):re(i,o),G(e)&&s.set(e,i),i)}function vn(e,t){return!e||!an(t)?!1:(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,Et(t))||B(e,t))}let se=null,kr=null;function on(e){const t=se;return se=e,kr=e&&e.type.__scopeId||null,t}function He(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Gs(-1);const o=on(t);let i;try{i=e(...r)}finally{on(o),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function On(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:u,emit:a,render:d,renderCache:p,data:g,setupState:y,ctx:T,inheritAttrs:O}=e;let N,j;const V=on(e);try{if(n.shapeFlag&4){const K=r||s,Z=K;N=Le(d.call(Z,K,p,o,y,g,T)),j=u}else{const K=t;N=Le(K.length>1?K(o,{attrs:u,slots:l,emit:a}):K(o,null)),j=t.props?u:_i(u)}}catch(K){Mt.length=0,Dt(K,e,1),N=ee(xe)}let H=N;if(j&&O!==!1){const K=Object.keys(j),{shapeFlag:Z}=H;K.length&&Z&7&&(i&&K.some(os)&&(j=vi(j,i)),H=Xe(H,j))}return n.dirs&&(H=Xe(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),N=H,on(V),N}const _i=e=>{let t;for(const n in e)(n==="class"||n==="style"||an(n))&&((t||(t={}))[n]=e[n]);return t},vi=(e,t)=>{const n={};for(const s in e)(!os(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function yi(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:u}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Ns(s,i,a):!!i;if(u&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function wi(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):pi(e)}const Ti=Symbol.for("v-scx"),Ai=()=>tn(Ti),Yt={};function Ln(e,t,n){return Jr(e,t,n)}function Jr(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=q){if(t&&o){const F=t;t=(...fe)=>{F(...fe),Z()}}const u=le,a=F=>s===!0?F:it(F,s===!1?1:void 0);let d,p=!1,g=!1;if(ge(e)?(d=()=>e.value,p=rn(e)):_t(e)?(d=()=>a(e),p=!0):L(e)?(g=!0,p=e.some(F=>_t(F)||rn(F)),d=()=>e.map(F=>{if(ge(F))return F.value;if(_t(F))return a(F);if(M(F))return Je(F,u,2)})):M(e)?t?d=()=>Je(e,u,2):d=()=>(y&&y(),be(e,u,3,[T])):d=ye,t&&s){const F=d;d=()=>it(F())}let y,T=F=>{y=H.onStop=()=>{Je(F,u,4),y=H.onStop=void 0}},O;if(Ut)if(T=ye,t?n&&be(t,u,3,[d(),g?[]:void 0,T]):d(),r==="sync"){const F=Ai();O=F.__watcherHandles||(F.__watcherHandles=[])}else return ye;let N=g?new Array(e.length).fill(Yt):Yt;const j=()=>{if(!(!H.active||!H.dirty))if(t){const F=H.run();(s||p||(g?F.some((fe,R)=>Ye(fe,N[R])):Ye(F,N)))&&(y&&y(),be(t,u,3,[F,N===Yt?void 0:g&&N[0]===Yt?[]:N,T]),N=F)}else H.run()};j.allowRecurse=!!t;let V;r==="sync"?V=j:r==="post"?V=()=>he(j,u&&u.suspense):(j.pre=!0,u&&(j.id=u.uid),V=()=>_n(j));const H=new cs(d,ye,V),K=Do(),Z=()=>{H.stop(),K&&is(K.effects,H)};return t?n?j():N=H.run():r==="post"?he(H.run.bind(H),u&&u.suspense):H.run(),O&&O.push(Z),Z}function Si(e,t,n){const s=this.proxy,r=te(e)?e.includes(".")?Yr(s,e):()=>s[e]:e.bind(s,s);let o;M(t)?o=t:(o=t.handler,n=t);const i=jt(this),l=Jr(r,o.bind(s),n);return i(),l}function Yr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),ge(e))it(e.value,t,n,s);else if(L(e))for(let r=0;r{it(r,t,n,s)});else if(br(e))for(const r in e)it(e[r],t,n,s);return e}function Xr(e,t){if(se===null)return e;const n=En(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),no(()=>{e.isUnmounting=!0}),e}const ve=[Function,Array],Zr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ve,onEnter:ve,onAfterEnter:ve,onEnterCancelled:ve,onBeforeLeave:ve,onLeave:ve,onAfterLeave:ve,onLeaveCancelled:ve,onBeforeAppear:ve,onAppear:ve,onAfterAppear:ve,onAppearCancelled:ve},Oi={name:"BaseTransition",props:Zr,setup(e,{slots:t}){const n=gl(),s=Ii();let r;return()=>{const o=t.default&&eo(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const O of o)if(O.type!==xe){i=O;break}}const l=D(e),{mode:u}=l;if(s.isLeaving)return Pn(i);const a=Bs(i);if(!a)return Pn(i);const d=qn(a,l,s,n);Gn(a,d);const p=n.subTree,g=p&&Bs(p);let y=!1;const{getTransitionKey:T}=a.type;if(T){const O=T();r===void 0?r=O:O!==r&&(r=O,y=!0)}if(g&&g.type!==xe&&(!ot(a,g)||y)){const O=qn(g,l,s,n);if(Gn(g,O),u==="out-in")return s.isLeaving=!0,O.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Pn(i);u==="in-out"&&a.type!==xe&&(O.delayLeave=(N,j,V)=>{const H=Qr(s,g);H[String(g.key)]=g,N[ze]=()=>{j(),N[ze]=void 0,delete d.delayedLeave},d.delayedLeave=V})}return i}}},Li=Oi;function Qr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function qn(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:y,onLeaveCancelled:T,onBeforeAppear:O,onAppear:N,onAfterAppear:j,onAppearCancelled:V}=t,H=String(e.key),K=Qr(n,e),Z=(R,Q)=>{R&&be(R,s,9,Q)},F=(R,Q)=>{const W=Q[1];Z(R,Q),L(R)?R.every(ce=>ce.length<=1)&&W():R.length<=1&&W()},fe={mode:o,persisted:i,beforeEnter(R){let Q=l;if(!n.isMounted)if(r)Q=O||l;else return;R[ze]&&R[ze](!0);const W=K[H];W&&ot(e,W)&&W.el[ze]&&W.el[ze](),Z(Q,[R])},enter(R){let Q=u,W=a,ce=d;if(!n.isMounted)if(r)Q=N||u,W=j||a,ce=V||d;else return;let A=!1;const Y=R[Xt]=me=>{A||(A=!0,me?Z(ce,[R]):Z(W,[R]),fe.delayedLeave&&fe.delayedLeave(),R[Xt]=void 0)};Q?F(Q,[R,Y]):Y()},leave(R,Q){const W=String(e.key);if(R[Xt]&&R[Xt](!0),n.isUnmounting)return Q();Z(p,[R]);let ce=!1;const A=R[ze]=Y=>{ce||(ce=!0,Q(),Y?Z(T,[R]):Z(y,[R]),R[ze]=void 0,K[W]===e&&delete K[W])};K[W]=e,g?F(g,[R,A]):A()},clone(R){return qn(R,t,n,s)}};return fe}function Pn(e){if(Vt(e))return e=Xe(e),e.children=null,e}function Bs(e){return Vt(e)?e.children?e.children[0]:void 0:e}function Gn(e,t){e.shapeFlag&6&&e.component?Gn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Pi(e){M(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:l}=e;let u=null,a,d=0;const p=()=>(d++,u=null,g()),g=()=>{let y;return u||(y=u=t().catch(T=>{if(T=T instanceof Error?T:new Error(String(T)),l)return new Promise((O,N)=>{l(T,()=>O(p()),()=>N(T),d+1)});throw T}).then(T=>y!==u&&u?u:(T&&(T.__esModule||T[Symbol.toStringTag]==="Module")&&(T=T.default),a=T,T)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return a},setup(){const y=le;if(a)return()=>Mn(a,y);const T=V=>{u=null,Dt(V,y,13,!s)};if(i&&y.suspense||Ut)return g().then(V=>()=>Mn(V,y)).catch(V=>(T(V),()=>s?ee(s,{error:V}):null));const O=vt(!1),N=vt(),j=vt(!!r);return r&&setTimeout(()=>{j.value=!1},r),o!=null&&setTimeout(()=>{if(!O.value&&!N.value){const V=new Error(`Async component timed out after ${o}ms.`);T(V),N.value=V}},o),g().then(()=>{O.value=!0,y.parent&&Vt(y.parent.vnode)&&(y.parent.effect.dirty=!0,_n(y.parent.update))}).catch(V=>{T(V),N.value=V}),()=>{if(O.value&&a)return Mn(a,y);if(N.value&&s)return ee(s,{error:N.value});if(n&&!j.value)return ee(n)}}})}function Mn(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=ee(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Vt=e=>e.type.__isKeepAlive;function Mi(e,t){to(e,"a",t)}function Ri(e,t){to(e,"da",t)}function to(e,t,n=le){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(yn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Vt(r.parent.vnode)&&Fi(s,t,n,r),r=r.parent}}function Fi(e,t,n,s){const r=yn(t,e,s,!0);so(()=>{is(s[t],r)},n)}function yn(e,t,n=le,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ft();const l=jt(n),u=be(t,n,e,i);return l(),at(),u});return s?r.unshift(o):r.push(o),o}}const Be=e=>(t,n=le)=>(!Ut||e==="sp")&&yn(e,(...s)=>t(...s),n),$i=Be("bm"),_s=Be("m"),Ni=Be("bu"),Hi=Be("u"),no=Be("bum"),so=Be("um"),Bi=Be("sp"),Di=Be("rtg"),Vi=Be("rtc");function ji(e,t=le){yn("ec",e,t)}function Ds(e,t,n,s){let r;const o=n&&n[s];if(L(e)||te(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,u=i.length;lun(t)?!(t.type===xe||t.type===de&&!ro(t.children)):!0)?e:null}const Jn=e=>e?vo(e)?En(e)||e.proxy:Jn(e.parent):null,Pt=re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jn(e.parent),$root:e=>Jn(e.root),$emit:e=>e.emit,$options:e=>vs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,_n(e.update)}),$nextTick:e=>e.n||(e.n=ai.bind(e.proxy)),$watch:e=>Si.bind(e)}),Rn=(e,t)=>e!==q&&!e.__isScriptSetup&&B(e,t),Ki={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:u}=e;let a;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(r!==q&&B(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&B(a,t))return i[t]=3,o[t];if(n!==q&&B(n,t))return i[t]=4,n[t];Yn&&(i[t]=0)}}const d=Pt[t];let p,g;if(d)return t==="$attrs"&&pe(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==q&&B(n,t))return i[t]=4,n[t];if(g=u.config.globalProperties,B(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Rn(r,t)?(r[t]=n,!0):s!==q&&B(s,t)?(s[t]=n,!0):B(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==q&&B(e,i)||Rn(t,i)||(l=o[0])&&B(l,i)||B(s,i)||B(Pt,i)||B(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vs(e){return L(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Yn=!0;function zi(e){const t=vs(e),n=e.proxy,s=e.ctx;Yn=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:u,inject:a,created:d,beforeMount:p,mounted:g,beforeUpdate:y,updated:T,activated:O,deactivated:N,beforeDestroy:j,beforeUnmount:V,destroyed:H,unmounted:K,render:Z,renderTracked:F,renderTriggered:fe,errorCaptured:R,serverPrefetch:Q,expose:W,inheritAttrs:ce,components:A,directives:Y,filters:me}=t;if(a&&Wi(a,s,null),i)for(const X in i){const z=i[X];M(z)&&(s[X]=z.bind(n))}if(r){const X=r.call(n,n);G(X)&&(e.data=hs(X))}if(Yn=!0,o)for(const X in o){const z=o[X],Ze=M(z)?z.bind(n,n):M(z.get)?z.get.bind(n,n):ye,Kt=!M(z)&&M(z.set)?z.set.bind(n):ye,Qe=ts({get:Ze,set:Kt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Ae=>Qe.value=Ae})}if(l)for(const X in l)oo(l[X],s,n,X);if(u){const X=M(u)?u.call(n):u;Reflect.ownKeys(X).forEach(z=>{Xi(z,X[z])})}d&&js(d,e,"c");function oe(X,z){L(z)?z.forEach(Ze=>X(Ze.bind(n))):z&&X(z.bind(n))}if(oe($i,p),oe(_s,g),oe(Ni,y),oe(Hi,T),oe(Mi,O),oe(Ri,N),oe(ji,R),oe(Vi,F),oe(Di,fe),oe(no,V),oe(so,K),oe(Bi,Q),L(W))if(W.length){const X=e.exposed||(e.exposed={});W.forEach(z=>{Object.defineProperty(X,z,{get:()=>n[z],set:Ze=>n[z]=Ze})})}else e.exposed||(e.exposed={});Z&&e.render===ye&&(e.render=Z),ce!=null&&(e.inheritAttrs=ce),A&&(e.components=A),Y&&(e.directives=Y)}function Wi(e,t,n=ye){L(e)&&(e=Xn(e));for(const s in e){const r=e[s];let o;G(r)?"default"in r?o=tn(r.from||s,r.default,!0):o=tn(r.from||s):o=tn(r),ge(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function js(e,t,n){be(L(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function oo(e,t,n,s){const r=s.includes(".")?Yr(n,s):()=>n[s];if(te(e)){const o=t[e];M(o)&&Ln(r,o)}else if(M(e))Ln(r,e.bind(n));else if(G(e))if(L(e))e.forEach(o=>oo(o,t,n,s));else{const o=M(e.handler)?e.handler.bind(n):t[e.handler];M(o)&&Ln(r,o,e)}}function vs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let u;return l?u=l:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(a=>ln(u,a,i,!0)),ln(u,t,i)),G(t)&&o.set(t,u),u}function ln(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ln(e,o,n,!0),r&&r.forEach(i=>ln(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=ki[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ki={data:Us,props:Ks,emits:Ks,methods:Ot,computed:Ot,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Ot,directives:Ot,watch:Gi,provide:Us,inject:qi};function Us(e,t){return t?e?function(){return re(M(e)?e.call(this,this):e,M(t)?t.call(this,this):t)}:t:e}function qi(e,t){return Ot(Xn(e),Xn(t))}function Xn(e){if(L(e)){const t={};for(let n=0;n1)return n&&M(t)?t.call(s&&s.proxy):t}}function Zi(e,t,n,s=!1){const r={},o={};sn(o,xn,1),e.propsDefaults=Object.create(null),lo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:oi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Qi(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=D(r),[u]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p{u=!0;const[g,y]=co(p,t,!0);re(i,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!u)return G(e)&&s.set(e,gt),gt;if(L(o))for(let d=0;d-1,y[1]=O<0||T-1||B(y,"default"))&&l.push(p)}}}const a=[i,l];return G(e)&&s.set(e,a),a}function zs(e){return e[0]!=="$"}function Ws(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ks(e,t){return Ws(e)===Ws(t)}function qs(e,t){return L(t)?t.findIndex(n=>ks(n,e)):M(t)&&ks(t,e)?0:-1}const uo=e=>e[0]==="_"||e==="$stable",ys=e=>L(e)?e.map(Le):[Le(e)],el=(e,t,n)=>{if(t._n)return t;const s=He((...r)=>ys(t(...r)),n);return s._c=!1,s},fo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(uo(r))continue;const o=e[r];if(M(o))t[r]=el(r,o,s);else if(o!=null){const i=ys(o);t[r]=()=>i}}},ao=(e,t)=>{const n=ys(t);e.slots.default=()=>n},tl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=D(t),sn(t,"_",n)):fo(t,e.slots={})}else e.slots={},t&&ao(e,t);sn(e.slots,xn,1)},nl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(re(r,t),!n&&l===1&&delete r._):(o=!t.$stable,fo(t,r)),i=t}else t&&(ao(e,t),i={default:1});if(o)for(const l in r)!uo(l)&&i[l]==null&&delete r[l]};function Qn(e,t,n,s,r=!1){if(L(e)){e.forEach((g,y)=>Qn(g,t&&(L(t)?t[y]:t),n,s,r));return}if(Lt(s)&&!r)return;const o=s.shapeFlag&4?En(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:u}=e,a=t&&t.r,d=l.refs===q?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==u&&(te(a)?(d[a]=null,B(p,a)&&(p[a]=null)):ge(a)&&(a.value=null)),M(u))Je(u,l,12,[i,d]);else{const g=te(u),y=ge(u);if(g||y){const T=()=>{if(e.f){const O=g?B(p,u)?p[u]:d[u]:u.value;r?L(O)&&is(O,o):L(O)?O.includes(o)||O.push(o):g?(d[u]=[o],B(p,u)&&(p[u]=d[u])):(u.value=[o],e.k&&(d[e.k]=u.value))}else g?(d[u]=i,B(p,u)&&(p[u]=i)):y&&(u.value=i,e.k&&(d[e.k]=i))};i?(T.id=-1,he(T,n)):T()}}}const he=wi;function sl(e){return rl(e)}function rl(e,t){const n=xr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:u,setText:a,setElementText:d,parentNode:p,nextSibling:g,setScopeId:y=ye,insertStaticContent:T}=e,O=(c,f,h,m=null,_=null,x=null,C=void 0,b=null,E=!!f.dynamicChildren)=>{if(c===f)return;c&&!ot(c,f)&&(m=zt(c),Ae(c,_,x,!0),c=null),f.patchFlag===-2&&(E=!1,f.dynamicChildren=null);const{type:v,ref:w,shapeFlag:I}=f;switch(v){case bn:N(c,f,h,m);break;case xe:j(c,f,h,m);break;case $n:c==null&&V(f,h,m,C);break;case de:A(c,f,h,m,_,x,C,b,E);break;default:I&1?Z(c,f,h,m,_,x,C,b,E):I&6?Y(c,f,h,m,_,x,C,b,E):(I&64||I&128)&&v.process(c,f,h,m,_,x,C,b,E,dt)}w!=null&&_&&Qn(w,c&&c.ref,x,f||c,!f)},N=(c,f,h,m)=>{if(c==null)s(f.el=l(f.children),h,m);else{const _=f.el=c.el;f.children!==c.children&&a(_,f.children)}},j=(c,f,h,m)=>{c==null?s(f.el=u(f.children||""),h,m):f.el=c.el},V=(c,f,h,m)=>{[c.el,c.anchor]=T(c.children,f,h,m,c.el,c.anchor)},H=({el:c,anchor:f},h,m)=>{let _;for(;c&&c!==f;)_=g(c),s(c,h,m),c=_;s(f,h,m)},K=({el:c,anchor:f})=>{let h;for(;c&&c!==f;)h=g(c),r(c),c=h;r(f)},Z=(c,f,h,m,_,x,C,b,E)=>{f.type==="svg"?C="svg":f.type==="math"&&(C="mathml"),c==null?F(f,h,m,_,x,C,b,E):Q(c,f,_,x,C,b,E)},F=(c,f,h,m,_,x,C,b)=>{let E,v;const{props:w,shapeFlag:I,transition:S,dirs:P}=c;if(E=c.el=i(c.type,x,w&&w.is,w),I&8?d(E,c.children):I&16&&R(c.children,E,null,m,_,Fn(c,x),C,b),P&&et(c,null,m,"created"),fe(E,c,c.scopeId,C,m),w){for(const U in w)U!=="value"&&!Qt(U)&&o(E,U,null,w[U],x,c.children,m,_,$e);"value"in w&&o(E,"value",null,w.value,x),(v=w.onVnodeBeforeMount)&&Ie(v,m,c)}P&&et(c,null,m,"beforeMount");const $=ol(_,S);$&&S.beforeEnter(E),s(E,f,h),((v=w&&w.onVnodeMounted)||$||P)&&he(()=>{v&&Ie(v,m,c),$&&S.enter(E),P&&et(c,null,m,"mounted")},_)},fe=(c,f,h,m,_)=>{if(h&&y(c,h),m)for(let x=0;x{for(let v=E;v{const b=f.el=c.el;let{patchFlag:E,dynamicChildren:v,dirs:w}=f;E|=c.patchFlag&16;const I=c.props||q,S=f.props||q;let P;if(h&&tt(h,!1),(P=S.onVnodeBeforeUpdate)&&Ie(P,h,f,c),w&&et(f,c,h,"beforeUpdate"),h&&tt(h,!0),v?W(c.dynamicChildren,v,b,h,m,Fn(f,_),x):C||z(c,f,b,null,h,m,Fn(f,_),x,!1),E>0){if(E&16)ce(b,f,I,S,h,m,_);else if(E&2&&I.class!==S.class&&o(b,"class",null,S.class,_),E&4&&o(b,"style",I.style,S.style,_),E&8){const $=f.dynamicProps;for(let U=0;U<$.length;U++){const J=$[U],ie=I[J],Ee=S[J];(Ee!==ie||J==="value")&&o(b,J,ie,Ee,_,c.children,h,m,$e)}}E&1&&c.children!==f.children&&d(b,f.children)}else!C&&v==null&&ce(b,f,I,S,h,m,_);((P=S.onVnodeUpdated)||w)&&he(()=>{P&&Ie(P,h,f,c),w&&et(f,c,h,"updated")},m)},W=(c,f,h,m,_,x,C)=>{for(let b=0;b{if(h!==m){if(h!==q)for(const b in h)!Qt(b)&&!(b in m)&&o(c,b,h[b],null,C,f.children,_,x,$e);for(const b in m){if(Qt(b))continue;const E=m[b],v=h[b];E!==v&&b!=="value"&&o(c,b,v,E,C,f.children,_,x,$e)}"value"in m&&o(c,"value",h.value,m.value,C)}},A=(c,f,h,m,_,x,C,b,E)=>{const v=f.el=c?c.el:l(""),w=f.anchor=c?c.anchor:l("");let{patchFlag:I,dynamicChildren:S,slotScopeIds:P}=f;P&&(b=b?b.concat(P):P),c==null?(s(v,h,m),s(w,h,m),R(f.children||[],h,w,_,x,C,b,E)):I>0&&I&64&&S&&c.dynamicChildren?(W(c.dynamicChildren,S,h,_,x,C,b),(f.key!=null||_&&f===_.subTree)&&ho(c,f,!0)):z(c,f,h,w,_,x,C,b,E)},Y=(c,f,h,m,_,x,C,b,E)=>{f.slotScopeIds=b,c==null?f.shapeFlag&512?_.ctx.activate(f,h,m,C,E):me(f,h,m,_,x,C,E):wt(c,f,E)},me=(c,f,h,m,_,x,C)=>{const b=c.component=pl(c,m,_);if(Vt(c)&&(b.ctx.renderer=dt),ml(b),b.asyncDep){if(_&&_.registerDep(b,oe),!c.el){const E=b.subTree=ee(xe);j(null,E,f,h)}}else oe(b,c,f,h,_,x,C)},wt=(c,f,h)=>{const m=f.component=c.component;if(yi(c,f,h))if(m.asyncDep&&!m.asyncResolved){X(m,f,h);return}else m.next=f,hi(m.update),m.effect.dirty=!0,m.update();else f.el=c.el,m.vnode=f},oe=(c,f,h,m,_,x,C)=>{const b=()=>{if(c.isMounted){let{next:w,bu:I,u:S,parent:P,vnode:$}=c;{const ht=po(c);if(ht){w&&(w.el=$.el,X(c,w,C)),ht.asyncDep.then(()=>{c.isUnmounted||b()});return}}let U=w,J;tt(c,!1),w?(w.el=$.el,X(c,w,C)):w=$,I&&en(I),(J=w.props&&w.props.onVnodeBeforeUpdate)&&Ie(J,P,w,$),tt(c,!0);const ie=On(c),Ee=c.subTree;c.subTree=ie,O(Ee,ie,p(Ee.el),zt(Ee),c,_,x),w.el=ie.el,U===null&&bi(c,ie.el),S&&he(S,_),(J=w.props&&w.props.onVnodeUpdated)&&he(()=>Ie(J,P,w,$),_)}else{let w;const{el:I,props:S}=f,{bm:P,m:$,parent:U}=c,J=Lt(f);if(tt(c,!1),P&&en(P),!J&&(w=S&&S.onVnodeBeforeMount)&&Ie(w,U,f),tt(c,!0),I&&An){const ie=()=>{c.subTree=On(c),An(I,c.subTree,c,_,null)};J?f.type.__asyncLoader().then(()=>!c.isUnmounted&&ie()):ie()}else{const ie=c.subTree=On(c);O(null,ie,h,m,c,_,x),f.el=ie.el}if($&&he($,_),!J&&(w=S&&S.onVnodeMounted)){const ie=f;he(()=>Ie(w,U,ie),_)}(f.shapeFlag&256||U&&Lt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&he(c.a,_),c.isMounted=!0,f=h=m=null}},E=c.effect=new cs(b,ye,()=>_n(v),c.scope),v=c.update=()=>{E.dirty&&E.run()};v.id=c.uid,tt(c,!0),v()},X=(c,f,h)=>{f.component=c;const m=c.vnode.props;c.vnode=f,c.next=null,Qi(c,f.props,m,h),nl(c,f.children,h),ft(),$s(c),at()},z=(c,f,h,m,_,x,C,b,E=!1)=>{const v=c&&c.children,w=c?c.shapeFlag:0,I=f.children,{patchFlag:S,shapeFlag:P}=f;if(S>0){if(S&128){Kt(v,I,h,m,_,x,C,b,E);return}else if(S&256){Ze(v,I,h,m,_,x,C,b,E);return}}P&8?(w&16&&$e(v,_,x),I!==v&&d(h,I)):w&16?P&16?Kt(v,I,h,m,_,x,C,b,E):$e(v,_,x,!0):(w&8&&d(h,""),P&16&&R(I,h,m,_,x,C,b,E))},Ze=(c,f,h,m,_,x,C,b,E)=>{c=c||gt,f=f||gt;const v=c.length,w=f.length,I=Math.min(v,w);let S;for(S=0;Sw?$e(c,_,x,!0,!1,I):R(f,h,m,_,x,C,b,E,I)},Kt=(c,f,h,m,_,x,C,b,E)=>{let v=0;const w=f.length;let I=c.length-1,S=w-1;for(;v<=I&&v<=S;){const P=c[v],$=f[v]=E?We(f[v]):Le(f[v]);if(ot(P,$))O(P,$,h,null,_,x,C,b,E);else break;v++}for(;v<=I&&v<=S;){const P=c[I],$=f[S]=E?We(f[S]):Le(f[S]);if(ot(P,$))O(P,$,h,null,_,x,C,b,E);else break;I--,S--}if(v>I){if(v<=S){const P=S+1,$=PS)for(;v<=I;)Ae(c[v],_,x,!0),v++;else{const P=v,$=v,U=new Map;for(v=$;v<=S;v++){const _e=f[v]=E?We(f[v]):Le(f[v]);_e.key!=null&&U.set(_e.key,v)}let J,ie=0;const Ee=S-$+1;let ht=!1,ws=0;const Tt=new Array(Ee);for(v=0;v=Ee){Ae(_e,_,x,!0);continue}let Se;if(_e.key!=null)Se=U.get(_e.key);else for(J=$;J<=S;J++)if(Tt[J-$]===0&&ot(_e,f[J])){Se=J;break}Se===void 0?Ae(_e,_,x,!0):(Tt[Se-$]=v+1,Se>=ws?ws=Se:ht=!0,O(_e,f[Se],h,null,_,x,C,b,E),ie++)}const Ts=ht?il(Tt):gt;for(J=Ts.length-1,v=Ee-1;v>=0;v--){const _e=$+v,Se=f[_e],As=_e+1{const{el:x,type:C,transition:b,children:E,shapeFlag:v}=c;if(v&6){Qe(c.component.subTree,f,h,m);return}if(v&128){c.suspense.move(f,h,m);return}if(v&64){C.move(c,f,h,dt);return}if(C===de){s(x,f,h);for(let I=0;Ib.enter(x),_);else{const{leave:I,delayLeave:S,afterLeave:P}=b,$=()=>s(x,f,h),U=()=>{I(x,()=>{$(),P&&P()})};S?S(x,$,U):U()}else s(x,f,h)},Ae=(c,f,h,m=!1,_=!1)=>{const{type:x,props:C,ref:b,children:E,dynamicChildren:v,shapeFlag:w,patchFlag:I,dirs:S}=c;if(b!=null&&Qn(b,null,h,c,!0),w&256){f.ctx.deactivate(c);return}const P=w&1&&S,$=!Lt(c);let U;if($&&(U=C&&C.onVnodeBeforeUnmount)&&Ie(U,f,c),w&6)wo(c.component,h,m);else{if(w&128){c.suspense.unmount(h,m);return}P&&et(c,null,f,"beforeUnmount"),w&64?c.type.remove(c,f,h,_,dt,m):v&&(x!==de||I>0&&I&64)?$e(v,f,h,!1,!0):(x===de&&I&384||!_&&w&16)&&$e(E,f,h),m&&Es(c)}($&&(U=C&&C.onVnodeUnmounted)||P)&&he(()=>{U&&Ie(U,f,c),P&&et(c,null,f,"unmounted")},h)},Es=c=>{const{type:f,el:h,anchor:m,transition:_}=c;if(f===de){Co(h,m);return}if(f===$n){K(c);return}const x=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:C,delayLeave:b}=_,E=()=>C(h,x);b?b(c.el,x,E):E()}else x()},Co=(c,f)=>{let h;for(;c!==f;)h=g(c),r(c),c=h;r(f)},wo=(c,f,h)=>{const{bum:m,scope:_,update:x,subTree:C,um:b}=c;m&&en(m),_.stop(),x&&(x.active=!1,Ae(C,c,f,h)),b&&he(b,f),he(()=>{c.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},$e=(c,f,h,m=!1,_=!1,x=0)=>{for(let C=x;Cc.shapeFlag&6?zt(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let wn=!1;const Cs=(c,f,h)=>{c==null?f._vnode&&Ae(f._vnode,null,null,!0):O(f._vnode||null,c,f,null,null,null,h),wn||(wn=!0,$s(),Kr(),wn=!1),f._vnode=c},dt={p:O,um:Ae,m:Qe,r:Es,mt:me,mc:R,pc:z,pbc:W,n:zt,o:e};let Tn,An;return t&&([Tn,An]=t(dt)),{render:Cs,hydrate:Tn,createApp:Yi(Cs,Tn)}}function Fn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ho(e,t,n=!1){const s=e.children,r=t.children;if(L(s)&&L(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:po(t)}const ll=e=>e.__isTeleport,de=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),xe=Symbol.for("v-cmt"),$n=Symbol.for("v-stc"),Mt=[];let Te=null;function ne(e=!1){Mt.push(Te=e?null:[])}function cl(){Mt.pop(),Te=Mt[Mt.length-1]||null}let Nt=1;function Gs(e){Nt+=e}function go(e){return e.dynamicChildren=Nt>0?Te||gt:null,cl(),Nt>0&&Te&&Te.push(e),e}function Oe(e,t,n,s,r,o){return go(k(e,t,n,s,r,o,!0))}function Re(e,t,n,s,r){return go(ee(e,t,n,s,r,!0))}function un(e){return e?e.__v_isVNode===!0:!1}function ot(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",mo=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?te(e)||ge(e)||M(e)?{i:se,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,r=null,o=e===de?0:1,i=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mo(t),ref:t&&nn(t),scopeId:kr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(bs(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=te(n)?8:16),Nt>0&&!i&&Te&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Te.push(u),u}const ee=ul;function ul(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Gr)&&(e=xe),un(e)){const l=Xe(e,t,!0);return n&&bs(l,n),Nt>0&&!o&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag|=-2,l}if(xl(e)&&(e=e.__vccOpts),t){t=fl(t);let{class:l,style:u}=t;l&&!te(l)&&(t.class=Bt(l)),G(u)&&(Nr(u)&&!L(u)&&(u=re({},u)),t.style=gn(u))}const i=te(e)?1:Ci(e)?128:ll(e)?64:G(e)?4:M(e)?2:0;return k(e,t,n,s,r,i,o,!0)}function fl(e){return e?Nr(e)||xn in e?re({},e):e:null}function Xe(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?al(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&mo(l),ref:t&&t.ref?n&&r?L(r)?r.concat(nn(t)):[r,nn(t)]:nn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xe(e.ssContent),ssFallback:e.ssFallback&&Xe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _o(e=" ",t=0){return ee(bn,null,e,t)}function Zt(e="",t=!1){return t?(ne(),Re(xe,null,e)):ee(xe,null,e)}function Le(e){return e==null||typeof e=="boolean"?ee(xe):L(e)?ee(de,null,e.slice()):typeof e=="object"?We(e):ee(bn,null,String(e))}function We(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xe(e)}function bs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(L(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),bs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(xn in t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else M(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[_o(t)]):n=8);e.children=t,e.shapeFlag|=n}function al(...e){const t={};for(let n=0;nle||se;let fn,es;{const e=xr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};fn=t("__VUE_INSTANCE_SETTERS__",n=>le=n),es=t("__VUE_SSR_SETTERS__",n=>Ut=n)}const jt=e=>{const t=le;return fn(e),e.scope.on(),()=>{e.scope.off(),fn(t)}},Js=()=>{le&&le.scope.off(),fn(null)};function vo(e){return e.vnode.shapeFlag&4}let Ut=!1;function ml(e,t=!1){t&&es(t);const{props:n,children:s}=e.vnode,r=vo(e);Zi(e,n,r,t),tl(e,s);const o=r?_l(e,t):void 0;return t&&es(!1),o}function _l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,Ki));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?yl(e):null,o=jt(e);ft();const i=Je(s,e,0,[e.props,r]);if(at(),o(),vr(i)){if(i.then(Js,Js),t)return i.then(l=>{Ys(e,l,t)}).catch(l=>{Dt(l,e,0)});e.asyncDep=i}else Ys(e,i,t)}else yo(e,t)}function Ys(e,t,n){M(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Vr(t)),yo(e,n)}let Xs;function yo(e,t,n){const s=e.type;if(!e.render){if(!t&&Xs&&!s.render){const r=s.template||vs(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:u}=s,a=re(re({isCustomElement:o,delimiters:l},i),u);s.render=Xs(r,a)}}e.render=s.render||ye}{const r=jt(e);ft();try{zi(e)}finally{at(),r()}}}function vl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return pe(e,"get","$attrs"),t[n]}}))}function yl(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return vl(e)},slots:e.slots,emit:e.emit,expose:t}}function En(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pt)return Pt[n](e)},has(t,n){return n in t||n in Pt}}))}function bl(e,t=!0){return M(e)?e.displayName||e.name:e.name||t&&e.__name}function xl(e){return M(e)&&"__vccOpts"in e}const ts=(e,t)=>ii(e,t,Ut);function bo(e,t,n){const s=arguments.length;return s===2?G(t)&&!L(t)?un(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&un(n)&&(n=[n]),ee(e,t,n))}const El="3.4.14";/** +* @vue/runtime-dom v3.4.14 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Cl="http://www.w3.org/2000/svg",wl="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,Zs=ke&&ke.createElement("template"),Tl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ke.createElementNS(Cl,e):t==="mathml"?ke.createElementNS(wl,e):ke.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Zs.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=Zs.content;if(s==="svg"||s==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ve="transition",At="animation",Ht=Symbol("_vtc"),Cn=(e,{slots:t})=>bo(Li,Al(e),t);Cn.displayName="Transition";const xo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Cn.props=re({},Zr,xo);const nt=(e,t=[])=>{L(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qs=e=>e?L(e)?e.some(t=>t.length>1):e.length>1:!1;function Al(e){const t={};for(const A in e)A in xo||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:a=i,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,T=Sl(r),O=T&&T[0],N=T&&T[1],{onBeforeEnter:j,onEnter:V,onEnterCancelled:H,onLeave:K,onLeaveCancelled:Z,onBeforeAppear:F=j,onAppear:fe=V,onAppearCancelled:R=H}=t,Q=(A,Y,me)=>{st(A,Y?d:l),st(A,Y?a:i),me&&me()},W=(A,Y)=>{A._isLeaving=!1,st(A,p),st(A,y),st(A,g),Y&&Y()},ce=A=>(Y,me)=>{const wt=A?fe:V,oe=()=>Q(Y,A,me);nt(wt,[Y,oe]),er(()=>{st(Y,A?u:o),je(Y,A?d:l),Qs(wt)||tr(Y,s,O,oe)})};return re(t,{onBeforeEnter(A){nt(j,[A]),je(A,o),je(A,i)},onBeforeAppear(A){nt(F,[A]),je(A,u),je(A,a)},onEnter:ce(!1),onAppear:ce(!0),onLeave(A,Y){A._isLeaving=!0;const me=()=>W(A,Y);je(A,p),Ll(),je(A,g),er(()=>{A._isLeaving&&(st(A,p),je(A,y),Qs(K)||tr(A,s,N,me))}),nt(K,[A,me])},onEnterCancelled(A){Q(A,!1),nt(H,[A])},onAppearCancelled(A){Q(A,!0),nt(R,[A])},onLeaveCancelled(A){W(A),nt(Z,[A])}})}function Sl(e){if(e==null)return null;if(G(e))return[Nn(e.enter),Nn(e.leave)];{const t=Nn(e);return[t,t]}}function Nn(e){return Lo(e)}function je(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ht]||(e[Ht]=new Set)).add(t)}function st(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ht];n&&(n.delete(t),n.size||(e[Ht]=void 0))}function er(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Il=0;function tr(e,t,n,s){const r=e._endId=++Il,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:u}=Ol(e,t);if(!i)return s();const a=i+"end";let d=0;const p=()=>{e.removeEventListener(a,g),o()},g=y=>{y.target===e&&++d>=u&&p()};setTimeout(()=>{d(n[T]||"").split(", "),r=s(`${Ve}Delay`),o=s(`${Ve}Duration`),i=nr(r,o),l=s(`${At}Delay`),u=s(`${At}Duration`),a=nr(l,u);let d=null,p=0,g=0;t===Ve?i>0&&(d=Ve,p=i,g=o.length):t===At?a>0&&(d=At,p=a,g=u.length):(p=Math.max(i,a),d=p>0?i>a?Ve:At:null,g=d?d===Ve?o.length:u.length:0);const y=d===Ve&&/\b(transform|all)(,|$)/.test(s(`${Ve}Property`).toString());return{type:d,timeout:p,propCount:g,hasTransform:y}}function nr(e,t){for(;e.lengthsr(n)+sr(e[s])))}function sr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ll(){return document.body.offsetHeight}function Pl(e,t,n){const s=e[Ht];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xs=Symbol("_vod"),Ml={beforeMount(e,{value:t},{transition:n}){e[xs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):St(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),St(e,!0),s.enter(e)):s.leave(e,()=>{St(e,!1)}):St(e,t))},beforeUnmount(e,{value:t}){St(e,t)}};function St(e,t){e.style.display=t?e[xs]:"none"}const Rl=Symbol("");function Fl(e,t,n){const s=e.style,r=s.display,o=te(n);if(n&&!o){if(t&&!te(t))for(const i in t)n[i]==null&&ns(s,i,"");for(const i in n)ns(s,i,n[i])}else if(o){if(t!==n){const i=s[Rl];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");xs in e&&(s.display=r)}const rr=/\s*!important$/;function ns(e,t,n){if(L(n))n.forEach(s=>ns(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$l(e,t);rr.test(n)?e.setProperty(Et(s),n.replace(rr,""),"important"):e[s]=n}}const or=["Webkit","Moz","ms"],Hn={};function $l(e,t){const n=Hn[t];if(n)return n;let s=Me(t);if(s!=="filter"&&s in e)return Hn[t]=s;s=pn(s);for(let r=0;rBn||(jl.then(()=>Bn=0),Bn=Date.now());function Kl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;be(zl(s,n.value),t,5,[s])};return n.value=e,n.attached=Ul(),n}function zl(e,t){if(L(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const ur=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wl=(e,t,n,s,r,o,i,l,u)=>{const a=r==="svg";t==="class"?Pl(e,s,a):t==="style"?Fl(e,n,s):an(t)?os(t)||Dl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kl(e,t,s,a))?Hl(e,t,s,o,i,l,u):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nl(e,t,s,a))};function kl(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ur(t)&&M(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ur(t)&&te(n)?!1:t in e}const fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?n=>en(t,n):t};function ql(e){e.target.composing=!0}function ar(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dn=Symbol("_assign"),Gl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Dn]=fr(r);const o=s||r.props&&r.props.type==="number";pt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Vn(l)),e[Dn](l)}),n&&pt(e,"change",()=>{e.value=e.value.trim()}),t||(pt(e,"compositionstart",ql),pt(e,"compositionend",ar),pt(e,"change",ar))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[Dn]=fr(o),e.composing)return;const i=r||e.type==="number"?Vn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Jl=re({patchProp:Wl},Tl);let dr;function Eo(){return dr||(dr=sl(Jl))}const hr=(...e)=>{Eo().render(...e)},Yl=(...e)=>{const t=Eo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Zl(s);if(!r)return;const o=t._component;!M(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Xl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zl(e){return te(e)?document.querySelector(e):e}const Ql="modulepreload",ec=function(e){return"/neatui-vue/"+e},pr={},Ce=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(i=>{if(i=ec(i),i in pr)return;pr[i]=!0;const l=i.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!s)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===i&&(!l||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":Ql,l||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),l)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},tc=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((s,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},nc="/neatui-vue/icon.png",sc=["viewBox"],Ct=Fe({__name:"Icon",props:{useLink:{type:Boolean,default:!1},viewBox:{default:"0 0 1024 1024"}},setup(e){return(t,n)=>(ne(),Oe("svg",{viewBox:t.useLink?void 0:t.viewBox,"aria-hidden":"true",class:"nt-icon"},[Ui(t.$slots,"default")],8,sc))}});function rc(e){return e instanceof Element}function oc(e,t){let n=!1;return e.length&&(n=e.some(s=>s==null?!1:s.contains(t)),n||(n=e.includes(t))),n}const Ue=new Map;document.addEventListener("click",e=>{for(const t of Ue.values())for(const{documentHandler:n}of t)n(e)},!0);function gr(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:rc(t.arg)&&n.push(t.arg),s=>{const r=s.target,o=!t||!t.instance,i=!r,l=e.contains(r),u=e===r,a=oc(n,r);o||i||l||u||a||t.value(r)}}const Uc={beforeMount(e,t){Ue.has(e)||Ue.set(e,[]),Ue.get(e).push({documentHandler:gr(e,t),bindingFn:t.value})},updated(e,t){Ue.has(e)||Ue.set(e,[]);const n=Ue.get(e),s=n.findIndex(o=>o.bindingFn===t.oldValue),r={documentHandler:gr(e,t),bindingFn:t.value};s>=0?n.splice(s,1,r):n.push(r)},unmounted(e){Ue.delete(e)}},ic=k("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),lc=Fe({__name:"InfoIcon",setup(e){return(t,n)=>(ne(),Re(Ct,null,{default:He(()=>[ic]),_:1}))}}),cc=k("path",{fill:"currentColor",d:"M512 1024C229.234 1024 0 794.766 0 512S229.234 0 512 0s512 229.234 512 512-229.234 512-512 512z m-64.853-734.52l19.484 244.906 1.309 16.156c1.251 15.93 15.018 28.644 30.72 28.644h25.571c15.56 0 29.298-12.601 30.663-28.132l1.422-16.668 21.334-244.907c3.214-36.978-24.434-66.844-61.725-66.844h-6.627c-37.462 0-65.138 29.923-62.18 66.844zM512 801.393a66.788 66.788 0 1 0 0-133.575 66.788 66.788 0 0 0 0 133.575z"},null,-1),uc=Fe({__name:"WarnIcon",setup(e){return(t,n)=>(ne(),Re(Ct,null,{default:He(()=>[cc]),_:1}))}}),fc=k("path",{fill:"currentColor",d:"M511.360799 0C229.345318 0 0.681814 228.663504 0.681814 510.678985c0 282.015481 228.663504 510.678985 510.678985 510.678985s510.678985-228.663504 510.678985-510.678985C1022.039784 228.663504 793.37628 0 511.360799 0zM720.336912 690.251852c13.465834 13.465834 13.551061 35.283895 0.340907 48.579276L711.047191 748.461756C697.75181 761.757137 676.104203 761.586683 662.723596 748.120849L511.275572 596.076238 359.401415 747.268581c-13.465834 13.465834-35.283895 13.551061-48.579276 0.340907L301.191511 737.97886C287.89613 724.683479 287.981357 703.035872 301.532418 689.655264l152.044611-151.448023L302.384686 386.333084c-13.465834-13.465834-13.551061-35.283895-0.340907-48.579276l9.630628-9.630628C324.969788 314.827799 346.617395 314.998252 359.998002 328.464087l151.448023 152.044611 151.788931-151.192343c13.465834-13.465834 35.283895-13.551061 48.579276-0.340907l9.630628 9.630628c13.295381 13.295381 13.210154 34.857761-0.340907 48.323596L569.144569 538.377695 720.336912 690.251852z"},null,-1),ac=Fe({__name:"ErrorIcon",setup(e){return(t,n)=>(ne(),Re(Ct,null,{default:He(()=>[fc]),_:1}))}}),dc=k("path",{fill:"currentColor",d:"M512 0C228.693333 0 0 228.693333 0 512s228.693333 512 512 512 512-228.693333 512-512S795.306667 0 512 0z m307.2 368.64L467.626667 730.453333c0 3.413333-3.413333 3.413333-3.413334 6.826667-13.653333 13.653333-37.546667 13.653333-51.2 0l-177.493333-177.493333c-13.653333-13.653333-13.653333-37.546667 0-51.2 13.653333-13.653333 37.546667-13.653333 51.2 0l150.186667 153.6 334.506666-341.333334c13.653333-13.653333 37.546667-13.653333 51.2 0 10.24 10.24 10.24 34.133333-3.413333 47.786667z m0 0"},null,-1),hc=Fe({__name:"SuccessIcon",setup(e){return(t,n)=>(ne(),Re(Ct,null,{default:He(()=>[dc]),_:1}))}}),pc=["id"],gc={class:"nt-message-content"},mc=Fe({__name:"index",props:{onClose:{},duration:{default:3e3},type:{default:"info"},customClass:{default:""},zindex:{default:1e3},offset:{default:20},message:{},id:{},width:{default:""}},emits:["destroy"],setup(e,{expose:t}){const n=e,s=vt(!1),r=ts(()=>({top:`${n.offset}px`,zIndex:n.zindex,width:n.width===""?void 0:n.width})),o=ts(()=>n.type==="success"?hc:n.type==="warn"?uc:n.type==="error"?ac:lc);function i(){s.value=!1}return t({close:i}),_s(()=>{s.value=!0,n.duration>0&&setTimeout(()=>{s.value=!1},n.duration)}),(l,u)=>(ne(),Re(Cn,{name:"nt-message-fade",appear:"",onBeforeLeave:l.onClose,onAfterLeave:u[0]||(u[0]=a=>l.$emit("destroy"))},{default:He(()=>[Xr(k("div",{id:l.id,style:gn(r.value),class:Bt(["nt-message",`nt-message-${l.type}`,l.customClass])},[k("div",null,[(ne(),Re(xi(o.value),{class:"nt-message-icon"})),k("span",gc,It(l.message),1)])],14,pc),[[Ml,s.value]])]),_:1},8,["onBeforeLeave"]))}}),_c=["info","success","error","warn","show"],lt=[];let vc=0;function yc(e){const t=lt.findIndex(o=>o.component!=null&&o.component.props.id===e);if(t===-1)return;const n=lt.splice(t,1)[0];if(n==null)return;let s=15;n.el!=null&&(s=n.el.offsetHeight);const r=lt.length;if(r!==0)for(let o=t;o{let t=document.createElement("div"),n=15;for(const i of lt)i.el!=null&&(n+=i.el.offsetHeight+15);const s=`message${++vc}`,r=typeof e=="string"?{message:e}:e;r.id=s,r.offset=n,r.onClose=()=>{yc(s)},r.onDestroy=()=>{hr(null,t),t=null};const o=bo(mc,r);return hr(o,t),lt.push(o),document.body.appendChild(t.firstElementChild),s};for(const e of _c)ss[e]=t=>{const n=typeof t=="string"?{message:t}:t;return n.type=e,n.type==="show"&&(n.type="info"),ss(n)};ss.close=e=>{const t=lt.find(n=>n.component!=null&&n.component.props.id===e);t!=null&&t.component.exposed.close()};const bc=k("path",{d:"M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z",fill:"#C71D23"},null,-1),xc=Fe({__name:"GiteeIcon",setup(e){return(t,n)=>(ne(),Re(qe(Ct),null,{default:He(()=>[bc]),_:1}))}}),Ec=k("path",{d:"M512 42.666667A464.64 464.64 0 0 0 42.666667 502.186667 460.373333 460.373333 0 0 0 363.52 938.666667c23.466667 4.266667 32-9.813333 32-22.186667v-78.08c-130.56 27.733333-158.293333-61.44-158.293333-61.44a122.026667 122.026667 0 0 0-52.053334-67.413333c-42.666667-28.16 3.413333-27.733333 3.413334-27.733334a98.56 98.56 0 0 1 71.68 47.36 101.12 101.12 0 0 0 136.533333 37.973334 99.413333 99.413333 0 0 1 29.866667-61.44c-104.106667-11.52-213.333333-50.773333-213.333334-226.986667a177.066667 177.066667 0 0 1 47.36-124.16 161.28 161.28 0 0 1 4.693334-121.173333s39.68-12.373333 128 46.933333a455.68 455.68 0 0 1 234.666666 0c89.6-59.306667 128-46.933333 128-46.933333a161.28 161.28 0 0 1 4.693334 121.173333A177.066667 177.066667 0 0 1 810.666667 477.866667c0 176.64-110.08 215.466667-213.333334 226.986666a106.666667 106.666667 0 0 1 32 85.333334v125.866666c0 14.933333 8.533333 26.88 32 22.186667A460.8 460.8 0 0 0 981.333333 502.186667 464.64 464.64 0 0 0 512 42.666667",fill:"#231F20"},null,-1),Cc=Fe({__name:"GithubIcon",setup(e){return(t,n)=>(ne(),Re(qe(Ct),null,{default:He(()=>[Ec,_o(" >")]),_:1}))}}),mr=[{name:"introduce",showName:!1,text:"介绍"},{name:"usage",showName:!1,text:"快速上手"},{name:"reset",showName:!1,text:"样式重置"},{name:"css_util",showName:!1,text:"工具样式"},{name:"---",text:"",showName:!1},{name:"Container",text:"容器布局"},{name:"Directives",text:"指令"},{name:"Icon",text:"图标"},{name:"Tooltip",text:"文字提示"},{name:"Message",text:"消息提示"}];function wc(e,t=!0){return e==null?!0:(t?e.trim().length:e.length)===0}function Tc(e,t=500){let n=-1;return(...s)=>{clearTimeout(n),n=setTimeout(()=>{e(...s)},t)}}const Ac={class:"nt-container nt-layout-vertical"},Sc={class:"nt-header app-header"},Ic={class:"vertical-center app-header-left"},Oc=k("div",{class:"logo-wrapper"},[k("img",{src:nc,alt:"neatui"})],-1),Lc={class:"ml-10"},Pc={class:"search-wrapper"},Mc={key:0,class:"search-menu-list"},Rc=["onClick"],Fc={key:0},$c={class:"vertical-center app-header-right"},Nc={class:"nt-container"},Hc={class:"nt-aside"},Bc=["onClick"],Dc={key:0},Vc={class:"nt-main app-main"},jc=Fe({__name:"App",setup(e){let t=location.pathname.substring(1);wc(t)&&(t="usage");const n=vt(""),s=vt([]),r=Pi(()=>tc(Object.assign({"./views/Card.vue":()=>Ce(()=>import("./Card-m0brm6gg.js"),__vite__mapDeps([0,1,2])),"./views/Container.vue":()=>Ce(()=>import("./Container-VHombvnz.js"),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,1,2])),"./views/Directives.vue":()=>Ce(()=>import("./Directives-aEDj-lLj.js"),__vite__mapDeps([13,9,10,14,11,12,7,4,5,6,8])),"./views/Icon.vue":()=>Ce(()=>import("./Icon-yCmhqYfe.js"),__vite__mapDeps([15,4,5,6,7,8,9,10])),"./views/Message.vue":()=>Ce(()=>import("./Message-ayl9oJM7.js"),__vite__mapDeps([16,9,10,11,12,7,4,5,6,8,17,2])),"./views/Table.vue":()=>Ce(()=>import("./Table-3nfGgeq-.js"),__vite__mapDeps([18,2,5,19])),"./views/Tooltip.vue":()=>Ce(()=>import("./Tooltip-bcQ_BNiw.js"),__vite__mapDeps([20,9,10,11,12,7,4,5,6,8,17,2,21])),"./views/css_util.vue":()=>Ce(()=>import("./css_util-jVjR55lt.js"),__vite__mapDeps([22,4,5,6,1,2,7,8,9,10,11,12])),"./views/introduce.vue":()=>Ce(()=>import("./introduce-dh76Kok-.js"),__vite__mapDeps([23,9,10])),"./views/reset.vue":()=>Ce(()=>import("./reset-I0IAiju8.js"),__vite__mapDeps([24,4,5,6,9,10])),"./views/usage.vue":()=>Ce(()=>import("./usage-3fxgTElC.js"),__vite__mapDeps([25,4,5,6,9,10]))}),`./views/${t}.vue`));function o(){if(n.value==="")s.value=[];else{const p=new RegExp(n.value,"i");s.value=mr.filter(g=>p.test(g.name)||p.test(g.text))}}function i(p){let g="";p==="gitee"?g="https://gitee.com/towardly/neatui-vue":g="https://github.com/DvShu/neatui-vue",window.open(g)}const l=Tc(()=>{o()});function u(p){p==="in"?o():s.value=[]}function a(p){p!==t&&(location.href="/"+p)}function d(p){a(p)}return(p,g)=>(ne(),Oe("section",Ac,[k("header",Sc,[k("div",Ic,[Oc,k("div",Lc,[k("div",Pc,[Xr(k("input",{"onUpdate:modelValue":g[0]||(g[0]=y=>n.value=y),type:"text",placeholder:"搜索",class:"nt-input",onInput:g[1]||(g[1]=(...y)=>qe(l)&&qe(l)(...y)),onFocus:g[2]||(g[2]=y=>u("in")),onBlur:g[3]||(g[3]=y=>u("out"))},null,544),[[Gl,n.value]]),ee(Cn,{name:"nt-opacity"},{default:He(()=>[s.value.length>0?(ne(),Oe("ul",Mc,[(ne(!0),Oe(de,null,Ds(s.value,y=>(ne(),Oe("li",{key:y.name,onClick:T=>d(y.name)},[y.showName!==!1?(ne(),Oe("span",Fc,It(y.name)+" - ",1)):Zt("",!0),k("span",null,It(y.text),1)],8,Rc))),128))])):Zt("",!0)]),_:1})])])]),k("div",$c,[ee(Cc,{class:"git-repo-icon",onClick:g[4]||(g[4]=y=>i("github"))}),ee(xc,{class:"git-repo-icon ml-10",onClick:g[5]||(g[5]=y=>i("gitee"))})])]),k("section",Nc,[k("aside",Hc,[k("ul",null,[(ne(!0),Oe(de,null,Ds(qe(mr),y=>(ne(),Oe("li",{key:y.name,class:Bt([y.name!=="---"?"aside-item":"aside-divider",qe(t)===y.name?"aside-item--active":""]),onClick:T=>a(y.name)},[y.name!=="---"?(ne(),Oe(de,{key:0},[y.showName!==!1?(ne(),Oe("span",Dc,It(y.name)+" ",1)):Zt("",!0),k("span",null,It(y.text),1)],64)):Zt("",!0)],10,Bc))),128))])]),k("main",Vc,[ee(qe(r))])])]))}});Yl(jc).mount("#app");export{Tc as A,ac as B,lc as C,hc as D,uc as E,de as F,ss as M,Cn as T,Ce as _,k as a,ee as b,Oe as c,Fe as d,Re as e,Uc as f,Xr as g,Pi as h,xi as i,Ds as j,_o as k,Zt as l,bo as m,Bt as n,ne as o,vt as p,wc as q,Ui as r,tc as s,It as t,qe as u,Ct as v,He as w,_s as x,ai as y,so as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/Card-m0brm6gg.js","assets/ThemeTable.vue_vue_type_script_setup_true_lang-M9hPoyPu.js","assets/Table.vue_vue_type_script_lang-TeoTULpr.js","assets/Container-VHombvnz.js","assets/SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js","assets/Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js","assets/SourceCode-EzMuMj5l.css","assets/PcCodePreview.vue_vue_type_style_index_0_lang-HeqXio4D.js","assets/PcCodePreview-heD0Ifax.css","assets/DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js","assets/DocMain-gAli1yMV.css","assets/CodeExample.vue_vue_type_style_index_0_lang-dFm28aL0.js","assets/CodeExample-k3jN25PL.css","assets/Directives-aEDj-lLj.js","assets/Input.vue_vue_type_script_setup_true_lang-ymZT3rBo.js","assets/Icon-yCmhqYfe.js","assets/Message-ayl9oJM7.js","assets/PropTable.vue_vue_type_script_setup_true_lang-8Q5KvzyN.js","assets/Table-3nfGgeq-.js","assets/Table-FKSsjb7d.css","assets/Tooltip-bcQ_BNiw.js","assets/Tooltip-Z5W6ICX7.css","assets/css_util-jVjR55lt.js","assets/introduce-dh76Kok-.js","assets/reset-I0IAiju8.js","assets/usage-3fxgTElC.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/docs/assets/index-ajNacQlh.css b/docs/assets/index-ajNacQlh.css deleted file mode 100644 index 0c0e113d..00000000 --- a/docs/assets/index-ajNacQlh.css +++ /dev/null @@ -1 +0,0 @@ -html,body{height:100%}body{margin:0;font-size:14px;line-height:1.6;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}img{vertical-align:top}ul,ol{list-style:none;margin:0;padding:0}div{box-sizing:border-box}a{text-decoration:none;color:#4998f6;cursor:pointer;transition:color .3s}a:hover{color:#5ba2f7}a:active{color:#64a7f7}:root{--nt-form-edit-height: 32px;--nt-primary-color: #4998f6;--nt-error-color: #ed3f13;--nt-success-color: #19bf6c;--nt-warn-color: #f90;--nt-info-color: #999}.nt-container{--nt-header-height: 50px;--nt-footer-height: var(--nt-header-height, 50px);--nt-aside-width: 240px;display:flex;flex-flow:row nowrap;box-sizing:border-box;flex-grow:1;height:100%}.nt-container .nt-container{height:calc(100% - var(--nt-header-height))}.nt-container.nt-layout-vertical{flex-direction:column;width:100%}.nt-aside{overflow:auto;box-sizing:border-box;width:var(--nt-aside-width);flex-shrink:0;border-right:1px solid #dedede;padding:10px}.nt-header{padding:0 10px;box-sizing:border-box;border-bottom:1px solid #dedede;display:flex;align-items:center;justify-content:space-between;height:var(--nt-header-height)}.nt-footer{padding:10px;box-sizing:border-box;border-top:1px solid #dedede;height:var(--nt-footer-height)}.nt-main{width:100%;box-sizing:border-box;overflow:auto;padding:10px;flex-grow:1;-webkit-overflow-scrolling:touch}.nt-icon{width:1em;height:1em;fill:currentColor;vertical-align:middle}.nt-input{outline:none;box-sizing:border-box;height:var(--nt-form-edit-height, 32px);border:1px solid #dedede;transition:border-color .3s;background-color:transparent;text-align:inherit;padding:0 5px;border-radius:3px}.nt-input:focus{border-color:var(--nt-primary-color)}.nt-opacity-enter-active,.nt-opacity-leave-active{transition:opacity var(--nt-transition-times, .3s) ease}.nt-opacity-enter-from,.nt-opacity-leave-to{opacity:0}.nt-fadein-enter-active,.nt-fadein-leave-active{transition:all var(--nt-transition-times, .3s) ease-in-out}.nt-fadein-enter-from,.nt-fadein-leave-to{opacity:0;transform:translateY(var(--nt-fadein-offset, -20px))}.nt-scrollbar{--nt-scrollbar-bg: #ccc;--nt-scrollbar-size: 10px;--nt-scrollbar-hover: var(--nt-scrollbar-bg);overflow:auto}.nt-scrollbar::-webkit-scrollbar-thumb{background:#ccc;border-radius:calc(var( --nt-scrollbar-size) / 2)}.nt-scrollbar::-webkit-scrollbar{width:var( --nt-scrollbar-size)}.nt-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--nt-scrollbar-hover)}.nt-scrollbar-x::-webkit-scrollbar{height:var( --nt-scrollbar-size);width:auto}.nt-table{width:100%;background-color:#fff;color:#666;font-size:14px;border-collapse:collapse;border-spacing:0}.nt-table td,.nt-table th{padding:10px 5px;border-bottom:1px solid #e6e6e6}.nt-table th{text-align:left}.nt-table thead tr{background-color:#f2f2f2}.nt-table tbody tr{transition:all .25s ease-out}.nt-table tbody tr:hover{background-color:#f2f2f2}.nt-table .caret-wrapper{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:14px;width:20px;position:relative}.nt-table .caret-wrapper .ascending{border-bottom-color:#c0c4cc;top:-5px}.nt-table .caret-wrapper .descending{border-top-color:#c0c4cc;bottom:-3px}.nt-table .sort-caret{display:inline-block;width:0;height:0;border:5px solid transparent;position:absolute}.nt-table .sort-column{cursor:pointer}.nt-table .sort-asc .ascending{border-bottom-color:#4998f4}.nt-table .sort-desc .descending{border-top-color:#4998f4}.nt-table-stripe tbody tr:nth-child(2n){background-color:#fafafa}.nt-table-stripe tbody tr:nth-child(2n):hover{background-color:#f2f2f2}.nt-table__none-col{color:#999}@keyframes nt-rotate-frame{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}.nt-rotate-anim{animation:nt-rotate-frame 1.5s infinite linear}.nt-btn{--nt-btn-color: rgba(0, 0, 0, .65);--nt-btn-bg-color: #fff;--nt-btn-border-color: #d9d9d9;--nt-btn-hover-color: #79b3f7;--nt-btn-active-color: #197df1;--nt-btn-disabled-color: #c9c9c9;--nt-btn-disabled-bg-color: #fbfbfb;--nt-btn-disabled-border-color: #e6e6e6;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:none;box-sizing:border-box;padding:0 11px;line-height:1;height:var(--nt-form-edit-height);border-radius:3px;font-size:14px;color:var(--nt-btn-color);background:var(--nt-btn-bg-color);border:1px solid var(--nt-btn-border-color);transition:border-color .3s,background-color .3s,color .3s;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,apple color emoji,segoe ui emoji,Segoe UI Symbol,noto color emoji}.nt-btn:hover{border-color:var(--nt-btn-hover-border-color, var(--nt-btn-hover-color));color:var(--nt-btn-hover-color);background-color:var(--nt-btn-hover-bg-color, var(--nt-btn-bg-color))}.nt-btn:active{border-color:var(--nt-btn-active-border-color, var(--nt-btn-active-color));color:var(--nt-btn-active-color);background-color:var(--nt-btn-active-bg-color, var(--nt-btn-bg-color))}.nt-btn [class*=nt-icon]+span{margin-left:5px}.nt-btn-primary{--nt-btn-color: #fff;--nt-btn-bg-color: var(--nt-primary-color);--nt-btn-border-color: var(--nt-primary-color);--nt-btn-hover-color: #fff;--nt-btn-hover-border-color: #79b3f7;--nt-btn-hover-bg-color: #79b3f7;--nt-btn-active-color: #fff;--nt-btn-active-border-color: #197df1;--nt-btn-active-bg-color: #197df1}.nt-btn:not(.nt-btn-loading):disabled{border-color:var(--nt-btn-disabled-border-color);background-color:var(--nt-btn-disabled-bg-color);color:var(--nt-btn-disabled-color);cursor:not-allowed;opacity:1}.nt-btn-text{--nt-btn-color: var(--nt-primary-color);--nt-btn-bg-color: transparent;--nt-btn-border-color: transparent;--nt-btn-hover-border-color: transparent;--nt-btn-active-border-color: transparent;height:auto;padding:5px}.nt-btn-round{border-radius:calc(var(--nt-form-edit-height) / 2)}.nt-btn-circle{border-radius:50%;width:var(--nt-form-edit-height);padding:0}.nt-btn-block{width:100%}.nt-message{position:fixed;left:50%;top:20px;padding:10px;transform:translate3d(-50%,0,0);transition:opacity .3s,transform .3s,top .3s;display:flex;align-items:center;border-radius:5px;font-size:14px;background:#f0faff;color:var(--nt-primary-color);border:1px solid #d4eeff}.nt-message .nt-message-icon{margin-right:5px}.nt-message.nt-message-success{background:#edfff3;color:var(--nt-success-color);border-color:#bbf2cf}.nt-message.nt-message-error{background:#ffefe6;color:var(--nt-error-color);border-color:#ffcfb8}.nt-message.nt-message-warn{background:#fff9e6;color:var(--nt-warn-color);border-color:#ffe7a3}.nt-message-fade-enter-from,.nt-message-fade-leave-to{opacity:0;transform:translate3d(-50%,-100%,0)}@media screen and (max-width: 768px){.nt-message{width:90%}}.slide-fade-enter-active{transition:all .3s ease-out}.slide-fade-leave-active{transition:all .8s cubic-bezier(1,.5,.8,1)}.slide-fade-enter-from,.slide-fade-leave-to{transform:translate(20px);opacity:0}.ml-10{margin-left:10px}.vertical-center{display:flex;align-items:center}.center{display:flex;justify-content:center;align-items:center}h2{font-weight:700;font-size:28px;line-height:36px;margin:24px 0}h3{font-weight:700;font-size:20px;line-height:28px;margin:15px 0}p{margin:5px 0;font-size:16px;line-height:1.4;color:#333}.ul-list{padding:0 40px;list-style:circle}.pc-doc-previewer{display:flex;align-items:stretch}.pc-doc,.pc-previewer{width:calc((100% - 30px)/2)}.pc-previewer{margin-left:30px}.pc-previewer .nt-container{border:1px solid #dedede;height:100%}#app,#app .app-header-right,#app .app-header-left{height:100%}#app .git-repo-icon{font-size:24px;color:#fff;transition:font-size .15s;cursor:pointer}#app .git-repo-icon:hover{font-size:30px}#app .logo-wrapper{width:calc(var(--nt-aside-width) - 10px);border-right:1px solid #dedede;box-sizing:border-box}#app .nt-input{width:100%}#app .search-wrapper{position:relative;width:200px}#app .search-menu-list{position:absolute;background-color:#fff;box-shadow:#64646f33 0 7px 29px;width:100%;max-height:150px;overflow-y:auto}#app .search-menu-list li{padding:7px 10px;border-bottom:1px solid #dedede;cursor:pointer;background-color:#fff;transition:background-color .3s,color .3s}#app .search-menu-list li:hover{color:#4fc08d;background-color:#ebfff0}#app .aside-item{padding:7px 10px;cursor:pointer;font-size:14px;transition:color .3s}#app .aside-item:hover{color:#4fc08d}#app .aside-item--active{color:#4fc08d;font-weight:700;background-color:#ebfff0}#app .aside-divider{height:1px;background-color:#dedede;margin:5px 0}#app .app-main{overflow:hidden}#app .doc-wrapper{height:100%;overflow:hidden;display:flex;align-items:center;justify-content:space-between}#app .doc-main{height:100%;flex-grow:1;font-size:16px;overflow-y:auto}#app .preview-wrapper{flex-shrink:0;width:375px;height:90%;max-height:667px;border-radius:5px;border:1px solid #dedede;margin-left:20px}#app .preview-header{height:50px;font-size:16px;font-weight:700;border-bottom:1px solid #dedede}#app .preview-container{height:calc(100% - 50px);padding:10px;overflow-y:auto}#app .icon-list{display:inline-flex;border-top:1px solid #dedede;border-left:1px solid #dedede}#app .icon-item{width:100px;height:90px;cursor:pointer;background-color:#fff;color:#666;transition:background-color .3s;display:flex;flex-direction:column;align-items:center;border-right:1px solid #dedede;border-bottom:1px solid #dedede}#app .icon-item:hover{background-color:#f5f5f5}#app .icon-item .nt-icon{font-size:20px}#app .icon-name{font-size:14px;margin-top:5px} diff --git a/docs/assets/introduce-cNU-9BE4.js b/docs/assets/introduce-cNU-9BE4.js deleted file mode 100644 index 16ffc85d..00000000 --- a/docs/assets/introduce-cNU-9BE4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as l}from"./_plugin-vue_export-helper-x3n3nnut.js";import{o as i,c as e,b as t}from"./index-BY3UnrMK.js";const c={},s={class:"nt-scrollbar doc-main"},o=t('

介绍

Neat UI 是一个基于 Vue3 的轻量级的 UI 组件库,提供基础的 UI 组件,方便开发。

这不是一个完整的 UI 库,全是一些根据实际业务实践中整理的组件库, 库不全所以需要配合其它UI库使用。

这个库本身不是专门的PC的,也不是专门的移动的,可能会同时存在两端都有的

特性

  • 支持按需引入和 Tree Shaking
  • 详尽的文档和示例
  • 使用 TypeScript 编写,提供完整的类型定义
  • 轻量,组件平均体积小于 1KB
  • 全样式可控

写作背景

不管是 PC 端,还是移动端市场上已经有了许许多多的 UI 库,为什么还要再开发一个 UI 库呢?

  • 因为很多项目中,需要使用一些基础的 UI 组件,但是这些组件库的提供的功能太过繁杂但我只取其中一瓢,为了一瓢水而引入江河有点不划算
  • 需要使用一些特殊的功能,因此需要自己开发一个
  • 自己写并维护一个 UI 组件库,这也是对于自己的一个总结;把自己会的归纳总结为一个组件。
  • 现在的UI库把PC和移动端分的太开了,但是很多时候实际工作的时候,可能我们的页面虽然是PC的,但是也要考虑移动适配。针对某些组件比如: Select,在 PC 选项卡可以在下面弹出、而在移动端可以考虑从底部弹出,做不同的针对适配。
',9),r=[o];function a(n,p){return i(),e("div",s,r)}const u=l(c,[["render",a]]);export{u as default}; diff --git a/docs/assets/introduce-dh76Kok-.js b/docs/assets/introduce-dh76Kok-.js new file mode 100644 index 00000000..3168d415 --- /dev/null +++ b/docs/assets/introduce-dh76Kok-.js @@ -0,0 +1 @@ +import{_ as s}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{d as t,o as e,e as n,w as o,a as l}from"./index-aWLd-FXG.js";const i=l("h1",null,"介绍",-1),_=l("p",null," Neat UI 是一个基于 Vue3 的轻量级的 UI 组件库,提供基础的 UI 组件,方便开发。 ",-1),u=l("p",null," 这不是一个完整的 UI 库,全是一些根据实际业务实践中整理的组件库, 库不全所以需要配合其它UI库使用。 ",-1),a=l("p",null," 这个库本身不是专门的PC的,也不是专门的移动的,可能会同时存在两端都有的 ",-1),c=l("h3",null,"特性",-1),d=l("ul",{class:"ul-list"},[l("li",null,"支持按需引入和 Tree Shaking"),l("li",null,"详尽的文档和示例"),l("li",null,"使用 TypeScript 编写,提供完整的类型定义"),l("li",null,"轻量,组件平均体积小于 1KB"),l("li",null,"全样式可控")],-1),h=l("h3",null,"写作背景",-1),r=l("p",null," 不管是 PC 端,还是移动端市场上已经有了许许多多的 UI 库,为什么还要再开发一个 UI 库呢? ",-1),p=l("ul",{class:"ul-list"},[l("li",null," 因为很多项目中,需要使用一些基础的 UI 组件,但是这些组件库的提供的功能太过繁杂但我只取其中一瓢,为了一瓢水而引入江河有点不划算 "),l("li",null,"需要使用一些特殊的功能,因此需要自己开发一个"),l("li",null," 自己写并维护一个 UI 组件库,这也是对于自己的一个总结;把自己会的归纳总结为一个组件。 "),l("li",null," 现在的UI库把PC和移动端分的太开了,但是很多时候实际工作的时候,可能我们的页面虽然是PC的,但是也要考虑移动适配。针对某些组件比如: Select,在 PC 选项卡可以在下面弹出、而在移动端可以考虑从底部弹出,做不同的针对适配。 ")],-1),P=t({__name:"introduce",setup(I){return(U,f)=>(e(),n(s,{"has-aside":!1},{default:o(()=>[i,_,u,a,c,d,h,r,p]),_:1}))}});export{P as default}; diff --git a/docs/assets/reset-I0IAiju8.js b/docs/assets/reset-I0IAiju8.js new file mode 100644 index 00000000..65941b1d --- /dev/null +++ b/docs/assets/reset-I0IAiju8.js @@ -0,0 +1,42 @@ +import{_ as e}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{_ as o}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{d as s,o as a,e as i,w as r,b as t,u as l,a as n}from"./index-aWLd-FXG.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";const c=`/* 一般开发网页的时候,都是按照100%来开发 */ +html, +body { + height: 100%; +} +body { + margin: 0; + font-size: 14px; + line-height: 1.6; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +} +/* 修复由于 inline baseline 导致的图片下方的空白间隙问题 */ +img { + vertical-align: top; +} +/* 非大面积文字排版网站通常不需要列表项,如果需要可单独设置 */ +ul, +ol { + list-style: none; + margin: 0; + padding: 0; +} +/* 统一采用盒子模式 */ +div { + box-sizing: border-box; +} +/* + * 去除链接默认的下划线,提高文字可读性 + */ +a { + text-decoration: none; + color: #4998f6; + cursor: pointer; + transition: color 0.3s; +} +a:hover { + color: #5ba2f7; /* less tint(#4998f6, 10%) */ +} +a:active { + color: #64a7f7; /* less tint(#4998f6, 15%) */ +}`,d=n("p",null,"组件默认是没有进行样式重置,但是也提供了样式重置文件,可以手动引入",-1),_=n("p",null,"建议将样式重置放在最开始引入。",-1),p=n("p",null,"重置样式包含如下内容:",-1),v=s({__name:"reset",setup(f){return(m,u)=>(a(),i(o,{"has-aside":!1},{default:r(()=>[d,t(e,{code:"import 'neatui-vue/style/reset.css'"}),_,p,t(e,{lang:"css",code:l(c)},null,8,["code"])]),_:1}))}});export{v as default}; diff --git a/docs/assets/reset-i5QASN8_.js b/docs/assets/reset-i5QASN8_.js deleted file mode 100644 index 6e652d58..00000000 --- a/docs/assets/reset-i5QASN8_.js +++ /dev/null @@ -1,42 +0,0 @@ -import{_ as r}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{d as t,o,c as s,a as e,u as i,e as n}from"./index-BY3UnrMK.js";const a=`/* 一般开发网页的时候,都是按照100%来开发 */\r -html,\r -body {\r - height: 100%;\r -}\r -body {\r - margin: 0;\r - font-size: 14px;\r - line-height: 1.6;\r - -webkit-text-size-adjust: 100%;\r - -webkit-tap-highlight-color: transparent;\r -}\r -/* 修复由于 inline baseline 导致的图片下方的空白间隙问题 */\r -img {\r - vertical-align: top;\r -}\r -/* 非大面积文字排版网站通常不需要列表项,如果需要可单独设置 */\r -ul,\r -ol {\r - list-style: none;\r - margin: 0;\r - padding: 0;\r -}\r -/* 统一采用盒子模式 */\r -div {\r - box-sizing: border-box;\r -}\r -/*\r - * 去除链接默认的下划线,提高文字可读性\r - */\r -a {\r - text-decoration: none;\r - color: #4998f6;\r - cursor: pointer;\r - transition: color 0.3s;\r -}\r -a:hover {\r - color: #5ba2f7; /* less tint(#4998f6, 10%) */\r -}\r -a:active {\r - color: #64a7f7; /* less tint(#4998f6, 15%) */\r -}`,l={class:"nt-scrollbar doc-main"},c=n("p",null,"组件默认是没有进行样式重置,但是也提供了样式重置文件,可以手动引入",-1),d=n("p",null,"建议将样式重置放在最开始引入。",-1),_=n("p",null,"重置样式包含如下内容:",-1),g=t({__name:"reset",setup(p){return(m,u)=>(o(),s("div",l,[c,e(r,{code:"import 'neatui-vue/style/reset.css'"}),d,_,e(r,{lang:"css",code:i(a)},null,8,["code"])]))}});export{g as default}; diff --git a/docs/assets/usage-3fxgTElC.js b/docs/assets/usage-3fxgTElC.js new file mode 100644 index 00000000..48990fcb --- /dev/null +++ b/docs/assets/usage-3fxgTElC.js @@ -0,0 +1,42 @@ +import{_ as n}from"./SourceCode.vue_vue_type_style_index_0_lang-e1zMp6eg.js";import{_ as s}from"./DocMain.vue_vue_type_style_index_0_lang-9TYAKqAK.js";import{d as l,o as c,e as i,w as u,b as t,u as r,a as o,k as e}from"./index-aWLd-FXG.js";import"./Button.vue_vue_type_script_setup_true_lang-5x5K2nS-.js";const p=`:root { + /* button、input 元素高度 */ + --nt-form-edit-height: 32px; + /* 主题(primary)颜色 */ + --nt-primary-color: #4998f6; + /* 表示错误(error)的颜色 */ + --nt-error-color: #ed3f13; + /* 表示成功(success)的颜色 */ + --nt-success-color: #19bf6c; + /* 表示警告(warn)的颜色 */ + --nt-warn-color: #f90; + /* 表示信息(info)的颜色 */ + --nt-info-color: #999; + /* 边框颜色 */ + --nt-border-color: #dedede; +} +`,_=o("h1",null,"使用介绍",-1),a=o("p",null,[e(" UI库除了依赖于 Vue3 外,还依赖于 "),o("a",{href:"https://gitee.com/towardly/ph/wikis/Home"},"ph-utils: 一个自己整理的一些常用的工具类")],-1),d=o("h2",null,"使用",-1),h=o("h3",null,"1. 安装依赖",-1),m=o("h3",null,"2. 按需引入",-1),v=o("p",null,"当前按需引入只支持在 Vite 中配合自动导入实现",-1),f=o("p",null,[e(" 安装依赖"),o("a",{href:"https://www.npmjs.com/package/unplugin-vue-components"},"unplugin-vue-components"),e(" + "),o("a",{href:"https://www.npmjs.com/package/neatui-vue-resolver"},"neatui-vue-resolver")],-1),g=o("p",null,"在 vite.config.ts 的 plugins 添加如下代码:",-1),w=o("p",null,"当然如果不想自动引入,也可以手动引入组件和样式文件,例如:",-1),x=o("h3",null,"3. 全局CSS样式",-1),y=o("p",null," 组件库的样式全部使用 CSS 变量控制,为了让样式可控变得简单化,所以需要手动引入全局变量文件 ",-1),b=o("p",null,"在入口文件,如 main.ts 中引入",-1),k=o("p",null,"该变量样式文件包含如下内容",-1),C=o("h2",null,"样式修改",-1),B=o("h3",null,"修改全局变量",-1),N=o("p",null," 这之后如果想要修改样式,在需要在该引入的地方,重新引入一个新的样式表,然后覆盖上面的样式即可 ",-1),V=o("p",null,"例如,想把侧边栏宽度改为 200px, 可以通过下面这样",-1),S={class:"ul-list"},j=o("p",null,"1. 在 main.ts 引入样式表",-1),R=o("p",null,"2. 在 style.css 中添加样式",-1),$=o("p",null,"通过上面就能修改,当然也能在侧边栏的样式的地方,手动覆盖变量也能实现",-1),D=o("h3",null,"修改组件样式",-1),H=o("p",null," 组件所有的样式都基本只有一层,所以如果要修改样式,在需要套一个层级就能修改 ",-1),I=o("p",null,"比如想修改 Button 样式, 只需要给根节点添加一个样式,例如: #app",-1),T=o("p",null,"然后就能修改样式,如下:",-1),U=o("h2",null,"浏览器兼容性",-1),q=o("p",null,"所有的组件尽量保证 ios 能够兼容到11",-1),z=` +import Components from 'unplugin-vue-components/vite' +import NeatuiResolver from 'neatui-vue-resolver' + +plugins: [ + // ... + Components({ + dts: 'src/components.d.ts', + resolvers: [NeatuiResolver()], + }), +] +`,A=` +import { Button } from 'neatui-vue' +import 'neatui-vue/style/button/index.css' +`,E=` +import 'neatui-vue/style/vars.css'; +import './style.css' +`,F=` +:root { + --nt-aside-width: 200px; +} +`,G=` +#app .nt-button { + background-color: red; +} +`,W=l({__name:"usage",setup(J){return(K,L)=>(c(),i(s,null,{default:u(()=>[_,a,d,h,t(n,{code:"npm install ph-utils @asteres/neatui-vue",lang:"shell"}),m,v,f,t(n,{code:"npm install unplugin-vue-components neatui-vue-resolver -D",lang:"shell"}),g,t(n,{code:z}),w,t(n,{code:A}),x,y,b,t(n,{code:"import 'neatui-vue/style/vars.css';"}),k,t(n,{code:r(p),lang:"css"},null,8,["code"]),C,B,N,V,o("ul",S,[o("li",null,[j,t(n,{code:E})]),o("li",null,[R,t(n,{code:F,lang:"css"})])]),$,D,H,I,T,t(n,{code:G,lang:"css"}),U,q]),_:1}))}});export{W as default}; diff --git a/docs/assets/usage-85i8ODO3.js b/docs/assets/usage-85i8ODO3.js deleted file mode 100644 index c5d3027f..00000000 --- a/docs/assets/usage-85i8ODO3.js +++ /dev/null @@ -1,40 +0,0 @@ -import{_ as n}from"./SourceCode.vue_vue_type_style_index_0_lang-ecsAkHiK.js";import{d as e,o as l,c,a as t,u as i,e as o,i as s}from"./index-BY3UnrMK.js";const r=`:root {\r - /* button、input 元素高度 */\r - --nt-form-edit-height: 32px;\r - /* 主题(primary)颜色 */\r - --nt-primary-color: #4998f6;\r - /* 表示错误(error)的颜色 */\r - --nt-error-color: #ed3f13;\r - /* 表示成功(success)的颜色 */\r - --nt-success-color: #19bf6c;\r - /* 表示警告(warn)的颜色 */\r - --nt-warn-color: #f90;\r - /* 表示信息(info)的颜色 */\r - --nt-info-color: #999;\r -}\r -`,u={class:"nt-scrollbar doc-main"},p=o("h2",null,"依赖介绍",-1),_=o("p",null,[s(" UI库除了依赖于 Vue3 外,还依赖于 "),o("a",{href:"https://gitee.com/towardly/ph/wikis/Home"},"ph-utils: 一个自己整理的一些常用的工具类")],-1),a=o("h2",null,"使用",-1),d=o("h3",null,"1. 安装依赖",-1),h=o("h3",null,"2. 按需引入",-1),m=o("p",null,"当前按需引入只支持在 Vite 中配合自动导入实现",-1),v=o("p",null,[s(" 安装依赖"),o("a",{href:"https://www.npmjs.com/package/unplugin-vue-components"},"unplugin-vue-components"),s(" + "),o("a",{href:"https://www.npmjs.com/package/neatui-vue-resolver"},"neatui-vue-resolver")],-1),f=o("p",null,"在 vite.config.ts 的 plugins 添加如下代码:",-1),g=o("p",null,"当然如果不想自动引入,也可以手动引入组件和样式文件,例如:",-1),w=o("h3",null,"3. 全局CSS样式",-1),y=o("p",null," 组件库的样式全部使用 CSS 变量控制,为了让样式可控变得简单化,所以需要手动引入全局变量文件 ",-1),x=o("p",null,"在入口文件,如 main.ts 中引入",-1),b=o("p",null,"该变量样式文件包含如下内容",-1),k=o("h2",null,"样式修改",-1),C=o("h3",null,"修改全局变量",-1),B=o("p",null," 这之后如果想要修改样式,在需要在该引入的地方,重新引入一个新的样式表,然后覆盖上面的样式即可 ",-1),N=o("p",null,"例如,想把侧边栏宽度改为 200px, 可以通过下面这样",-1),V={class:"ul-list"},S=o("p",null,"1. 在 main.ts 引入样式表",-1),j=o("p",null,"2. 在 style.css 中添加样式",-1),R=o("p",null,"通过上面就能修改,当然也能在侧边栏的样式的地方,手动覆盖变量也能实现",-1),D=o("h3",null,"修改组件样式",-1),E=o("p",null," 组件所有的样式都基本只有一层,所以如果要修改样式,在需要套一个层级就能修改 ",-1),H=o("p",null,"比如想修改 Button 样式, 只需要给根节点添加一个样式,例如: #app",-1),I=o("p",null,"然后就能修改样式,如下:",-1),T=o("h2",null,"浏览器兼容性",-1),U=o("p",null,"所有的组件尽量保证 ios 能够兼容到11",-1),$=` -import Components from 'unplugin-vue-components/vite' -import NeatuiResolver from 'neatui-vue-resolver' - -plugins: [ - // ... - Components({ - dts: 'src/components.d.ts', - resolvers: [NeatuiResolver()], - }), -] -`,q=` -import { Button } from 'neatui-vue' -import 'neatui-vue/style/button/index.css' -`,z=` -import 'neatui-vue/style/vars.css'; -import './style.css' -`,A=` -:root { - --nt-aside-width: 200px; -} -`,F=` -#app .nt-button { - background-color: red; -} -`,O=e({__name:"usage",setup(G){return(J,K)=>(l(),c("div",u,[p,_,a,d,t(n,{code:"npm install ph-utils @asteres/neatui-vue",lang:"shell"}),h,m,v,t(n,{code:"npm install unplugin-vue-components neatui-vue-resolver -D",lang:"shell"}),f,t(n,{code:$}),g,t(n,{code:q}),w,y,x,t(n,{code:"import 'neatui-vue/style/vars.css';"}),b,t(n,{code:i(r),lang:"css"},null,8,["code"]),k,C,B,N,o("ul",V,[o("li",null,[S,t(n,{code:z})]),o("li",null,[j,t(n,{code:A,lang:"css"})])]),R,D,E,H,I,t(n,{code:F,lang:"css"}),T,U]))}});export{O as default}; diff --git a/docs/index.html b/docs/index.html index 95710a94..27cf1226 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,19 +1,19 @@ - - - - - - - NeatUi - 基于 Vue3 的 UI 组件库 - - - - - -
- - - + + + + + + + NeatUi - 基于 Vue3 的 UI 组件库 + + + + + +
+ + + diff --git a/lib/neatui.js b/lib/neatui.js index 97aec688..50630a00 100644 --- a/lib/neatui.js +++ b/lib/neatui.js @@ -1,141 +1,294 @@ -import { defineComponent as c, openBlock as a, createElementBlock as y, renderSlot as z, createBlock as d, withCtx as f, createElementVNode as r, normalizeClass as B, Fragment as w, createVNode as L, toDisplayString as k, ref as b, computed as $, onMounted as M, Transition as x, withDirectives as E, normalizeStyle as S, resolveDynamicComponent as T, vShow as H, render as C, h as F } from "vue"; -const A = ["viewBox"], _ = /* @__PURE__ */ c({ +import { defineComponent as p, openBlock as r, createElementBlock as $, renderSlot as x, createBlock as k, withCtx as C, createElementVNode as f, ref as A, h as u, normalizeClass as T, Fragment as W, createVNode as V, toDisplayString as z, computed as H, onMounted as q, Transition as D, withDirectives as j, normalizeStyle as N, resolveDynamicComponent as O, vShow as K, render as S, createCommentVNode as E, createTextVNode as R } from "vue"; +const G = ["viewBox"], b = /* @__PURE__ */ p({ __name: "Icon", props: { useLink: { type: Boolean, default: !1 }, viewBox: { default: "0 0 1024 1024" } }, setup(t) { - return (e, n) => (a(), y("svg", { + return (e, n) => (r(), $("svg", { viewBox: e.useLink ? void 0 : e.viewBox, "aria-hidden": "true", class: "nt-icon" }, [ - z(e.$slots, "default") - ], 8, A)); + x(e.$slots, "default") + ], 8, G)); } -}), D = /* @__PURE__ */ r("path", { +}), J = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z" -}, null, -1), ie = /* @__PURE__ */ c({ +}, null, -1), we = /* @__PURE__ */ p({ __name: "MaskCloseIcon", setup(t) { - return (e, n) => (a(), d(_, { "view-box": "0 0 24 24" }, { - default: f(() => [ - D + return (e, n) => (r(), k(b, { "view-box": "0 0 24 24" }, { + default: C(() => [ + J ]), _: 1 })); } -}), V = /* @__PURE__ */ r("path", { +}), P = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M15.1 5.9a6.5 6.5 0 10-9.2 9.2 6.5 6.5 0 009.2-9.2zM4.49 4.5a8.5 8.5 0 0112.69 11.27l5.34 5.35-1.41 1.41-5.35-5.34A8.5 8.5 0 014.5 4.49z" -}, null, -1), de = /* @__PURE__ */ c({ +}, null, -1), xe = /* @__PURE__ */ p({ __name: "SearchIcon", setup(t) { - return (e, n) => (a(), d(_, { "view-box": "0 0 24 24" }, { - default: f(() => [ - V + return (e, n) => (r(), k(b, { "view-box": "0 0 24 24" }, { + default: C(() => [ + P ]), _: 1 })); } -}), N = ["type", "placeholder"], fe = /* @__PURE__ */ c({ +}), Q = ["type", "placeholder"], be = /* @__PURE__ */ p({ __name: "Input", props: { htmlType: { default: "text" }, placeholder: { default: "" } }, setup(t) { - return (e, n) => (a(), y("input", { + return (e, n) => (r(), $("input", { type: e.htmlType, class: "nt-input", placeholder: e.placeholder - }, null, 8, N)); + }, null, 8, Q)); } }); -function O(t) { +function U(t) { return t instanceof Element; } -function W(t, e) { +function X(t, e) { let n = !1; - return t.length && (n = t.some((s) => s == null ? !1 : s.contains(e)), n || (n = t.includes(e))), n; + return t.length && (n = t.some((o) => o == null ? !1 : o.contains(e)), n || (n = t.includes(e))), n; } -const p = /* @__PURE__ */ new Map(); +const w = /* @__PURE__ */ new Map(); document.addEventListener( "click", (t) => { - for (const e of p.values()) + for (const e of w.values()) for (const { documentHandler: n } of e) n(t); }, !0 ); -function I(t, e) { +function F(t, e) { let n = []; - return Array.isArray(e.arg) ? n = e.arg : O(e.arg) && n.push(e.arg), (s) => { - const o = s.target, l = !e || !e.instance, u = !o, i = t.contains(o), h = t === o, g = W(n, o); - l || u || i || h || g || e.value(o); + return Array.isArray(e.arg) ? n = e.arg : U(e.arg) && n.push(e.arg), (o) => { + const l = o.target, c = !e || !e.instance, h = !l, _ = t.contains(l), d = t === l, i = X(n, l); + c || h || _ || d || i || e.value(l); }; } -const pe = { +const Ie = { beforeMount(t, e) { - p.has(t) || p.set(t, []), p.get(t).push({ - documentHandler: I(t, e), + w.has(t) || w.set(t, []), w.get(t).push({ + documentHandler: F(t, e), bindingFn: e.value }); }, updated(t, e) { - p.has(t) || p.set(t, []); - const n = p.get(t), s = n.findIndex( - (l) => l.bindingFn === e.oldValue - ), o = { - documentHandler: I(t, e), + w.has(t) || w.set(t, []); + const n = w.get(t), o = n.findIndex( + (c) => c.bindingFn === e.oldValue + ), l = { + documentHandler: F(t, e), bindingFn: e.value }; - s >= 0 ? n.splice(s, 1, o) : n.push(o); + o >= 0 ? n.splice(o, 1, l) : n.push(l); }, unmounted(t) { - p.delete(t); + w.delete(t); } -}, j = (t, e) => { - const n = t.__vccOpts || t; - for (const [s, o] of e) - n[s] = o; - return n; -}, q = {}; -function G(t, e) { - return null; -} -const _e = /* @__PURE__ */ j(q, [["render", G]]), J = ["xlink:href"], me = /* @__PURE__ */ c({ +}, Be = p({ + props: { + columns: { + type: Array, + required: !0 + }, + /** 创建带斑马纹的表格 */ + stripe: { + type: Boolean, + default: !0, + required: !1 + }, + /** 是否固定表头 */ + fixedHead: { + type: Boolean, + default: !1, + required: !1 + }, + data: { + type: Array, + required: !0 + }, + columnKey: { + type: String, + required: !1 + } + }, + emits: ["sort-change"], + setup(t, { emit: e }) { + const n = A({ + key: "", + order: "" + }); + function o() { + const d = t.columns.length; + if (t.columns[0].fixed || t.columns[d - 1].fixed) + return !0; + let i = !1; + for (let m = 0; m < d; m++) + if (t.columns[m].fixed) { + i = !0; + break; + } + return i; + } + let l = o(); + function c({ sorter: d, key: i, index: m }) { + if (d === !0) { + let y = i, g = ""; + i === n.value.key ? n.value.order === "asc" ? g = "desc" : y = "" : g = "asc", n.value = { + order: g, + key: y + }, e("sort-change", { + key: y, + order: g, + index: m + }); + } + } + function h() { + const d = []; + let i = [], m = []; + for (let y = 0, g = t.columns.length; y < g; y++) { + const s = t.columns[y]; + s.defaultSortOrder != null && n.value.key === "" && (n.value = { + key: s.key || "", + order: s.defaultSortOrder + }); + const v = { + class: { + "sort-column": s.sorter === !0, + "sort-asc": n.value.key === s.key && n.value.order === "asc", + "sort-desc": n.value.key === s.key && n.value.order === "desc", + "nt-fixed": s.fixed + }, + style: {} + }; + if (s.fixed && (s.fixed === "left" ? v.style.left = i.length === 0 ? "0" : `calc(${i.join("+")})` : v.style.right = m.length === 0 ? "0" : `calc(${m.join("+")})`), s.width) { + let a = s.width; + typeof s.width == "number" && (a = `${s.width}px`), v.style.width = a, s.fixed != null && (s.fixed === "left" ? i.push(a) : m.push(a)); + } + s.sorter === !0 && (v.onClick = () => { + c({ + key: s.key || "", + index: y, + order: "asc", + sorter: s.sorter + }); + }), d.push( + u("th", v, [ + u("span", s.title), + s.sorter === !0 ? u("span", { class: "caret-wrapper" }, [ + u("span", { class: "sort-caret ascending" }), + u("span", { class: "sort-caret descending" }) + ]) : null + ]) + ); + } + return d; + } + function _() { + const d = []; + for (let i = 0, m = t.data.length; i < m; i++) { + const y = t.data[i]; + let g = [], s = []; + const v = []; + for (const a of t.columns) { + const B = { + style: {}, + class: { + "nt-fixed": a.fixed + } + }; + if (a.fixed && (a.fixed === "left" ? B.style.left = g.length === 0 ? "0" : `${g.join("+")}` : B.style.right = s.length === 0 ? "0" : `${g.join("+")}`), a.width) { + let L = a.width; + typeof a.width == "number" && (L = `${a.width}px`), B.style.width = L, a.fixed != null && (a.fixed === "left" ? g.push(L) : s.push(L)); + } + a.render != null ? v.push(u("td", B, a.render(y, i))) : a.key != null ? v.push(u("td", B, y[a.key])) : v.push(u("td", B, "")); + } + d.push(u("tr", v)); + } + return d; + } + return () => u( + "table", + { + class: [ + "nt-table", + t.stripe ? "nt-table-stripe" : "", + l ? "nt-table-fixed" : "" + ] + }, + [ + u( + "thead", + u( + "tr", + { + class: { + "nt-fixed": t.fixedHead + }, + style: { + top: t.fixedHead ? "0" : void 0 + } + }, + h() + ) + ), + u( + "tbody", + t.data.length === 0 ? u( + "td", + { + class: "ph-table__none-col", + colspan: t.columns.length + }, + "暂无数据记录!" + ) : _() + ) + ] + ); + } +}), Y = ["xlink:href"], ze = /* @__PURE__ */ p({ __name: "FontIcon", props: { name: {} }, setup(t) { - return (e, n) => (a(), d(_, { "use-link": "" }, { - default: f(() => [ - r("use", { + return (e, n) => (r(), k(b, { "use-link": "" }, { + default: C(() => [ + f("use", { "xlink:href": `#${e.name}` - }, null, 8, J) + }, null, 8, Y) ]), _: 1 })); } -}), K = /* @__PURE__ */ r("path", { +}), Z = /* @__PURE__ */ f("path", { d: "M520.665 64.564a29.244 29.244 0 0 0-7.071-.894c-16.211 0-29.35 13.14-29.35 29.35 0 15.83 12.538 28.696 28.223 29.293v.073c.375 0 .751-.014 1.127-.014 216.493 0 389.629 173.942 389.629 390.433 0 216.496-173.136 388.827-389.63 388.827s-389.63-172.333-389.63-388.829c0-.27.01-.536.01-.804h-.01c0-16.209-13.141-29.35-29.35-29.35s-29.35 13.139-29.35 29.35c0 .055.007.11.007.164-.001.214-.007.425-.007.64 0 247.609 200.722 448.331 448.33 448.331 247.607 0 448.33-200.722 448.33-448.33-.002-245.242-196.917-444.456-441.258-448.24z", fill: "currentColor" -}, null, -1), P = /* @__PURE__ */ c({ +}, null, -1), ee = /* @__PURE__ */ p({ __name: "LoadingIcon", setup(t) { - return (e, n) => (a(), d(_, null, { - default: f(() => [ - K + return (e, n) => (r(), k(b, null, { + default: C(() => [ + Z ]), _: 1 })); } -}), Q = ["disabled", "type"], he = /* @__PURE__ */ c({ +}), te = ["disabled", "type"], Le = /* @__PURE__ */ p({ __name: "Button", props: { type: { default: "normal" }, @@ -148,8 +301,8 @@ const _e = /* @__PURE__ */ j(q, [["render", G]]), J = ["xlink:href"], me = /* @_ loading: { type: Boolean, default: !1 } }, setup(t) { - return (e, n) => (a(), y("button", { - class: B([ + return (e, n) => (r(), $("button", { + class: T([ "nt-btn", e.type ? "nt-btn-" + e.type : "", e.block ? "nt-btn-block" : "", @@ -160,65 +313,65 @@ const _e = /* @__PURE__ */ j(q, [["render", G]]), J = ["xlink:href"], me = /* @_ disabled: e.disabled || e.loading, type: e.htmlType }, [ - e.loading ? (a(), y(w, { key: 0 }, [ - L(P, { class: "nt-rotate-anim" }), - r("span", null, k(e.loadingText), 1) - ], 64)) : z(e.$slots, "default", { key: 1 }) - ], 10, Q)); + e.loading ? (r(), $(W, { key: 0 }, [ + V(ee, { class: "nt-rotate-anim" }), + f("span", null, z(e.loadingText), 1) + ], 64)) : x(e.$slots, "default", { key: 1 }) + ], 10, te)); } -}), R = /* @__PURE__ */ r("path", { +}), ne = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z" -}, null, -1), U = /* @__PURE__ */ c({ +}, null, -1), se = /* @__PURE__ */ p({ __name: "InfoIcon", setup(t) { - return (e, n) => (a(), d(_, null, { - default: f(() => [ - R + return (e, n) => (r(), k(b, null, { + default: C(() => [ + ne ]), _: 1 })); } -}), X = /* @__PURE__ */ r("path", { +}), oe = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M512 1024C229.234 1024 0 794.766 0 512S229.234 0 512 0s512 229.234 512 512-229.234 512-512 512z m-64.853-734.52l19.484 244.906 1.309 16.156c1.251 15.93 15.018 28.644 30.72 28.644h25.571c15.56 0 29.298-12.601 30.663-28.132l1.422-16.668 21.334-244.907c3.214-36.978-24.434-66.844-61.725-66.844h-6.627c-37.462 0-65.138 29.923-62.18 66.844zM512 801.393a66.788 66.788 0 1 0 0-133.575 66.788 66.788 0 0 0 0 133.575z" -}, null, -1), Y = /* @__PURE__ */ c({ +}, null, -1), le = /* @__PURE__ */ p({ __name: "WarnIcon", setup(t) { - return (e, n) => (a(), d(_, null, { - default: f(() => [ - X + return (e, n) => (r(), k(b, null, { + default: C(() => [ + oe ]), _: 1 })); } -}), Z = /* @__PURE__ */ r("path", { +}), re = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M511.360799 0C229.345318 0 0.681814 228.663504 0.681814 510.678985c0 282.015481 228.663504 510.678985 510.678985 510.678985s510.678985-228.663504 510.678985-510.678985C1022.039784 228.663504 793.37628 0 511.360799 0zM720.336912 690.251852c13.465834 13.465834 13.551061 35.283895 0.340907 48.579276L711.047191 748.461756C697.75181 761.757137 676.104203 761.586683 662.723596 748.120849L511.275572 596.076238 359.401415 747.268581c-13.465834 13.465834-35.283895 13.551061-48.579276 0.340907L301.191511 737.97886C287.89613 724.683479 287.981357 703.035872 301.532418 689.655264l152.044611-151.448023L302.384686 386.333084c-13.465834-13.465834-13.551061-35.283895-0.340907-48.579276l9.630628-9.630628C324.969788 314.827799 346.617395 314.998252 359.998002 328.464087l151.448023 152.044611 151.788931-151.192343c13.465834-13.465834 35.283895-13.551061 48.579276-0.340907l9.630628 9.630628c13.295381 13.295381 13.210154 34.857761-0.340907 48.323596L569.144569 538.377695 720.336912 690.251852z" -}, null, -1), ee = /* @__PURE__ */ c({ +}, null, -1), ae = /* @__PURE__ */ p({ __name: "ErrorIcon", setup(t) { - return (e, n) => (a(), d(_, null, { - default: f(() => [ - Z + return (e, n) => (r(), k(b, null, { + default: C(() => [ + re ]), _: 1 })); } -}), ne = /* @__PURE__ */ r("path", { +}), ce = /* @__PURE__ */ f("path", { fill: "currentColor", d: "M512 0C228.693333 0 0 228.693333 0 512s228.693333 512 512 512 512-228.693333 512-512S795.306667 0 512 0z m307.2 368.64L467.626667 730.453333c0 3.413333-3.413333 3.413333-3.413334 6.826667-13.653333 13.653333-37.546667 13.653333-51.2 0l-177.493333-177.493333c-13.653333-13.653333-13.653333-37.546667 0-51.2 13.653333-13.653333 37.546667-13.653333 51.2 0l150.186667 153.6 334.506666-341.333334c13.653333-13.653333 37.546667-13.653333 51.2 0 10.24 10.24 10.24 34.133333-3.413333 47.786667z m0 0" -}, null, -1), te = /* @__PURE__ */ c({ +}, null, -1), ie = /* @__PURE__ */ p({ __name: "SuccessIcon", setup(t) { - return (e, n) => (a(), d(_, null, { - default: f(() => [ - ne + return (e, n) => (r(), k(b, null, { + default: C(() => [ + ce ]), _: 1 })); } -}), se = ["id"], oe = { class: "nt-message-content" }, le = /* @__PURE__ */ c({ +}), de = ["id"], ue = { class: "nt-message-content" }, fe = /* @__PURE__ */ p({ __name: "index", props: { onClose: {}, @@ -233,99 +386,159 @@ const _e = /* @__PURE__ */ j(q, [["render", G]]), J = ["xlink:href"], me = /* @_ }, emits: ["destroy"], setup(t, { expose: e }) { - const n = t, s = b(!1), o = $(() => ({ + const n = t, o = A(!1), l = H(() => ({ top: `${n.offset}px`, zIndex: n.zindex, width: n.width === "" ? void 0 : n.width - })), l = $(() => n.type === "success" ? te : n.type === "warn" ? Y : n.type === "error" ? ee : U); - function u() { - s.value = !1; + })), c = H(() => n.type === "success" ? ie : n.type === "warn" ? le : n.type === "error" ? ae : se); + function h() { + o.value = !1; } return e({ - close: u - }), M(() => { - s.value = !0, n.duration > 0 && setTimeout(() => { - s.value = !1; + close: h + }), q(() => { + o.value = !0, n.duration > 0 && setTimeout(() => { + o.value = !1; }, n.duration); - }), (i, h) => (a(), d(x, { + }), (_, d) => (r(), k(D, { name: "nt-message-fade", appear: "", - onBeforeLeave: i.onClose, - onAfterLeave: h[0] || (h[0] = (g) => i.$emit("destroy")) + onBeforeLeave: _.onClose, + onAfterLeave: d[0] || (d[0] = (i) => _.$emit("destroy")) }, { - default: f(() => [ - E(r("div", { - id: i.id, - style: S(o.value), - class: B(["nt-message", `nt-message-${i.type}`, i.customClass]) + default: C(() => [ + j(f("div", { + id: _.id, + style: N(l.value), + class: T(["nt-message", `nt-message-${_.type}`, _.customClass]) }, [ - r("div", null, [ - (a(), d(T(l.value), { class: "nt-message-icon" })), - r("span", oe, k(i.message), 1) + f("div", null, [ + (r(), k(O(c.value), { class: "nt-message-icon" })), + f("span", ue, z(_.message), 1) ]) - ], 14, se), [ - [H, s.value] + ], 14, de), [ + [K, o.value] ]) ]), _: 1 }, 8, ["onBeforeLeave"])); } -}), ae = ["info", "success", "error", "warn", "show"], m = []; -let re = 0; -function ce(t) { - const e = m.findIndex((l) => l.component != null && l.component.props.id === t); +}), pe = ["info", "success", "error", "warn", "show"], I = []; +let he = 0; +function _e(t) { + const e = I.findIndex((c) => c.component != null && c.component.props.id === t); if (e === -1) return; - const n = m.splice(e, 1)[0]; + const n = I.splice(e, 1)[0]; if (n == null) return; - let s = 15; - n.el != null && (s = n.el.offsetHeight); - const o = m.length; - if (o !== 0) - for (let l = e; l < o; l++) { - const u = m[l]; - if (u.el != null && u.component != null) { - const i = parseInt(u.el.style.top, 10) - s - 15; - u.component.props.offset = i; + let o = 15; + n.el != null && (o = n.el.offsetHeight); + const l = I.length; + if (l !== 0) + for (let c = e; c < l; c++) { + const h = I[c]; + if (h.el != null && h.component != null) { + const _ = parseInt(h.el.style.top, 10) - o - 15; + h.component.props.offset = _; } } } -const v = (t) => { +const M = (t) => { let e = document.createElement("div"), n = 15; - for (const u of m) - u.el != null && (n += u.el.offsetHeight + 15); - const s = `message${++re}`, o = typeof t == "string" ? { message: t } : t; - o.id = s, o.offset = n, o.onClose = () => { - ce(s); - }, o.onDestroy = () => { - C(null, e), e = null; + for (const h of I) + h.el != null && (n += h.el.offsetHeight + 15); + const o = `message${++he}`, l = typeof t == "string" ? { message: t } : t; + l.id = o, l.offset = n, l.onClose = () => { + _e(o); + }, l.onDestroy = () => { + S(null, e), e = null; }; - const l = F(le, o); - return C(l, e), m.push(l), document.body.appendChild(e.firstElementChild), s; + const c = u(fe, l); + return S(c, e), I.push(c), document.body.appendChild(e.firstElementChild), o; }; -for (const t of ae) - v[t] = (e) => { +for (const t of pe) + M[t] = (e) => { const n = typeof e == "string" ? { message: e } : e; - return n.type = t, n.type === "show" && (n.type = "info"), v(n); + return n.type = t, n.type === "show" && (n.type = "info"), M(n); }; -v.close = (t) => { - const e = m.find((n) => n.component != null && n.component.props.id === t); +M.close = (t) => { + const e = I.find((n) => n.component != null && n.component.props.id === t); e != null && e.component.exposed.close(); }; +const me = { class: "nt-card" }, ye = { + key: 0, + class: "nt-card__header" +}, ge = { key: 0 }, ve = { + key: 1, + class: "nt-card__footer" +}, $e = { key: 0 }, Te = /* @__PURE__ */ p({ + __name: "Card", + props: { + headerText: {}, + showHeader: { type: Boolean, default: !0 }, + footerText: {}, + showFooter: { type: Boolean, default: !1 }, + bodyClass: {} + }, + setup(t) { + return (e, n) => (r(), $("div", me, [ + e.showHeader ? (r(), $("div", ye, [ + e.headerText ? (r(), $("span", ge, z(e.headerText), 1)) : x(e.$slots, "header", { key: 1 }), + f("div", null, [ + x(e.$slots, "header-extra") + ]) + ])) : E("", !0), + f("div", { + class: T(["nt-card__body", e.bodyClass || ""]) + }, [ + x(e.$slots, "default") + ], 2), + e.showFooter ? (r(), $("div", ve, [ + e.footerText ? (r(), $("span", $e, z(e.footerText), 1)) : x(e.$slots, "footer", { key: 1 }) + ])) : E("", !0) + ])); + } +}), ke = { class: "nt-tooltip-text" }, Me = /* @__PURE__ */ p({ + __name: "Tooltip", + props: { + title: {}, + placement: { default: "top" } + }, + setup(t) { + return (e, n) => (r(), $("div", { + class: T({ + "nt-tooltip": !0, + "nt-tooltip-top": e.placement.startsWith("top"), + "nt-tooltip-bottom": e.placement.startsWith("bottom"), + "nt-tooltip-start": e.placement.endsWith("Start"), + "nt-tooltip-end": e.placement.endsWith("End") + }) + }, [ + x(e.$slots, "default"), + f("div", ke, [ + x(e.$slots, "title", {}, () => [ + R(z(e.title), 1) + ]) + ]) + ], 2)); + } +}); export { - _ as BaseIcon, - he as Button, - ee as ErrorIcon, - me as FontIcon, - U as InfoIcon, - fe as Input, - P as LoadingIcon, - ie as MaskCloseIcon, - v as Message, - de as SearchIcon, - te as SuccessIcon, - _e as Table, - Y as WarnIcon, - pe as vClickoutside + b as BaseIcon, + Le as Button, + Te as Card, + ae as ErrorIcon, + ze as FontIcon, + se as InfoIcon, + be as Input, + ee as LoadingIcon, + we as MaskCloseIcon, + M as Message, + xe as SearchIcon, + ie as SuccessIcon, + Be as Table, + Me as Tooltip, + le as WarnIcon, + Ie as vClickoutside }; diff --git a/package.json b/package.json index 5ee38733..1d9a48bc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@asteres/neatui-vue", "description": "基于 Vue3 的 UI 组件库", - "version": "0.0.2", + "version": "0.0.3", "type": "module", "scripts": { "dev": "vite", @@ -30,11 +30,7 @@ "ph-utils": "^0.4.2", "vue": "^3.3.11" }, - "files": [ - "lib", - "style", - "types" - ], + "files": ["lib", "style", "types"], "main": "./lib/neatui.js", "module": "./lib/neatui.js", "types": "./types/index.d.ts", diff --git a/scripts/index.js b/scripts/index.js index a8954f9b..7c9fae24 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -53,7 +53,7 @@ async function createComponentTemplate(name) { const docTemplateContents = [ "", @@ -77,9 +78,11 @@ async function createComponentTemplate(name) { "import PcCodePreview from '../app_components/PcCodePreview.vue';", "import PropTable from '../app_components/PropTable.vue';", "import SlotTable from '../app_components/SlotTable.vue';", + "import MethodTable from '../app_components/MethodTable.vue';", "const vars = [{name: '',description: '',default: ''}]", "const propData = [{name:'',description: '',default: '',type:''}]", "const slotData = [{name:'',param:'()',description:''}]", + "const methodData = [{name:'',param:'',description:'',return:''}]", "", ]; await write( diff --git a/src/app_components/MethodTable.vue b/src/app_components/MethodTable.vue new file mode 100644 index 00000000..9e5deb3e --- /dev/null +++ b/src/app_components/MethodTable.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/asides.ts b/src/asides.ts index 315633a6..df2fa9bb 100644 --- a/src/asides.ts +++ b/src/asides.ts @@ -1,51 +1,55 @@ export interface AsideItem { - name: string; - text: string; - showName?: boolean; + name: string; + text: string; + showName?: boolean; } /** 所有的侧边栏列表 */ const asids: AsideItem[] = [ - { - name: 'introduce', - showName: false, - text: '介绍', - }, - { - name: 'usage', - showName: false, - text: '快速上手', - }, - { - name: 'reset', - showName: false, - text: '样式重置', - }, - { - name: 'css_util', - showName: false, - text: '工具样式', - }, - { - name: '---', - text: '', - showName: false, - }, - { - name: 'Container', - text: '容器布局', - }, - { - name: 'Directives', - text: '指令', - }, - { - name: 'Icon', - text: '图标', - }, - { - name: 'Tooltip', - text: '文字提示', - }, + { + name: "introduce", + showName: false, + text: "介绍", + }, + { + name: "usage", + showName: false, + text: "快速上手", + }, + { + name: "reset", + showName: false, + text: "样式重置", + }, + { + name: "css_util", + showName: false, + text: "工具样式", + }, + { + name: "---", + text: "", + showName: false, + }, + { + name: "Container", + text: "容器布局", + }, + { + name: "Directives", + text: "指令", + }, + { + name: "Icon", + text: "图标", + }, + { + name: "Tooltip", + text: "文字提示", + }, + { + name: "Message", + text: "消息提示", + }, ]; export default asids; diff --git a/src/views/Message.vue b/src/views/Message.vue new file mode 100644 index 00000000..c37951ad --- /dev/null +++ b/src/views/Message.vue @@ -0,0 +1,184 @@ + + + + +