@fangzhongya/vue-archive 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/node/index.cjs +135 -71
- package/dist/node/index.d.cts +8 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +118 -54
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.cjs +1 -0
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js +9 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -1
- package/dist/packages/components/aside/index.vue.js +43 -45
- package/dist/packages/components/boxurl/index.vue.cjs +1 -1
- package/dist/packages/components/boxurl/index.vue.js +34 -37
- package/dist/packages/components/choice/choice.vue.cjs +1 -1
- package/dist/packages/components/choice/choice.vue.js +29 -32
- package/dist/packages/components/choice/index.vue.cjs +1 -1
- package/dist/packages/components/choice/index.vue.js +39 -42
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/components/code/index.vue.cjs +1 -1
- package/dist/packages/components/code/index.vue.js +79 -87
- package/dist/packages/components/compo/ftable.vue.cjs +1 -1
- package/dist/packages/components/compo/ftable.vue.js +15 -15
- package/dist/packages/components/compo/index.cjs +1 -1
- package/dist/packages/components/compo/index.js +86 -97
- package/dist/packages/components/compo/index.vue.cjs +1 -1
- package/dist/packages/components/compo/index.vue.js +33 -34
- package/dist/packages/components/compo/info.vue.cjs +1 -1
- package/dist/packages/components/compo/info.vue.js +22 -25
- package/dist/packages/components/compo/top.cjs +1 -1
- package/dist/packages/components/compo/top.js +21 -21
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +16 -17
- package/dist/packages/components/md/index.vue.cjs +1 -1
- package/dist/packages/components/md/index.vue.js +28 -32
- package/dist/packages/components/test/index.cjs +1 -1
- package/dist/packages/components/test/index.js +39 -42
- package/dist/packages/components/test/index.vue.cjs +1 -1
- package/dist/packages/components/test/index.vue.js +44 -49
- package/dist/packages/components/use/code.cjs +1 -1
- package/dist/packages/components/use/code.js +3 -3
- package/dist/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.js +32 -34
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/expose/index.vue.js +18 -19
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/form/index.vue.js +110 -114
- package/dist/packages/components/use/retrie/function/index.vue.cjs +2 -2
- package/dist/packages/components/use/retrie/function/index.vue.js +1 -4
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/input/index.vue.js +20 -21
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/number/index.vue.js +12 -13
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/select/index.vue.js +21 -23
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/slot/index.vue.js +15 -16
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/string/index.vue.js +14 -15
- package/dist/packages/components/use/set-emit.vue.cjs +1 -1
- package/dist/packages/components/use/set-emit.vue.js +20 -24
- package/dist/packages/components/use/set-expose.vue.cjs +1 -1
- package/dist/packages/components/use/set-expose.vue.js +15 -18
- package/dist/packages/components/use/set-props.vue.cjs +1 -1
- package/dist/packages/components/use/set-props.vue.js +48 -49
- package/dist/packages/config.cjs +1 -1
- package/dist/packages/config.d.ts +8 -1
- package/dist/packages/config.js +1 -1
- package/dist/packages/directives/adjust/index copy.d.ts +6 -0
- package/dist/packages/directives/adjust/index.cjs +1 -1
- package/dist/packages/directives/adjust/index.js +96 -97
- package/dist/packages/page/comprops/index.vue2.cjs +1 -1
- package/dist/packages/page/comprops/index.vue2.js +65 -71
- package/dist/packages/page/index/index.vue2.cjs +1 -1
- package/dist/packages/page/index/index.vue2.js +19 -23
- package/dist/packages/page/single/index.vue2.cjs +1 -1
- package/dist/packages/page/single/index.vue2.js +46 -49
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.js +44 -46
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.d.ts +4 -0
- package/dist/packages/utils/common.js +57 -54
- package/dist/packages/utils/glob.cjs +3 -3
- package/dist/packages/utils/glob.d.ts +1 -1
- package/dist/packages/utils/glob.js +269 -227
- package/dist/packages/utils/props.cjs +1 -1
- package/dist/packages/utils/props.js +34 -28
- package/dist/src/components/common/cs3.d.ts +4 -0
- package/dist/src/components/common/index.d.ts +4 -0
- package/dist/src/components/cs/expose/index.d.ts +4 -1
- package/dist/src/components/cs/expose/src/index.vue.d.ts +4 -1
- package/dist/vue-archive.css +1 -1
- package/package.json +18 -19
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.cjs +0 -1
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -9
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const B=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.
|
|
1
|
+
"use strict";const B=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.cjs"),z=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.cjs"),D=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.cjs"),H=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.cjs"),l=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.cjs"),L=14,w=14,m=1e3,h="px";function A(s){const t=["left","right","top","bottom","width","height"],n={};return t.forEach(e=>{s?n[e]=Number(z.getCss(s,e).replace(/[a-z|A-Z]*$/,"")):n[e]=0}),n}function P(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=0,i=n.length;for(;e<n.length;e++){const o=n[e];if(o===s&&(i=e),i<e&&o.nodeType==1)break}return n[e]}function U(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=n.length-1,i=-1;for(;e>=0;e--){const o=n[e];if(o===s&&(i=e),i>e&&o.nodeType==1)break}return n[e]}function I(s,t){return t=="bottom"||t=="right"?P(s):U(s)}function R(){const s=document.querySelector(".v-adjust-xux-height");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-height",t.style.zIndex="100000",t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.height="0",t.style.display="none",t.style.borderBottom="3px dashed #1d8bfa",document.body.appendChild(t),t}}function M(){const s=document.querySelector(".v-adjust-xux-width");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-width",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0",t.style.bottom="0",t.style.width="0",t.style.display="none",t.style.borderLeft="3px dashed #1d8bfa",document.body.appendChild(t),t}}function W(s){return s=="bottom"||s=="top"?"row-resize":s=="right"||s=="left"?"col-resize":s=="topRight"?"ne-resize":s=="topLeft"?"nw-resize":s=="bottomRight"?"se-resize":s=="bottomLeft"?"sw-resize":""}function Z(s,t){const n=D.splitUpper(s);if(n.length==1)return s=="bottom"||s=="top"?(e,i)=>t&&t()?m:i[s]-e.pageY:s=="right"||s=="left"?(e,i)=>t&&t()?m:i[s]-e.pageX:(e,i)=>t&&t()?m:0;{const e=n[0],i=n[1];return(o,r)=>{if(t&&t())return m;const c=r[e]-o.pageY,f=r[i]-o.pageX;return f<w&&f>0-w&&c<L&&c>0-w?0:m}}}function F(s){if(s=="bottom"||s=="top"){const t=R();return{show:()=>{l.setCss(t,"display","block")},set:n=>{l.setCss(t,"top",n+h)}}}else if(s=="right"||s=="left"){const t=M();return{show:()=>{l.setCss(t,"display","block")},set:n=>{l.setCss(t,"left",n+h)}}}else{const t=M(),n=R();return{show:()=>{l.setCss(t,"display","block"),l.setCss(n,"display","block")},set:(e,i)=>{l.setCss(t,"left",e+h),l.setCss(n,"top",i+h)}}}}function J(s,t){return s=="bottom"?(n,e,i)=>{const o=i.clientY-n.clientY+e.bottom;t(o,0)}:s=="top"?(n,e,i)=>{const o=i.clientY-n.clientY+e.top;t(o,0)}:s=="right"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right;t(o,0)}:s=="left"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left;t(o,0)}:s=="topRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.top;t(o,r)}:s=="bottomRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.bottom;t(o,r)}:s=="topLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,r=i.clientY-n.clientY+e.top;t(o,r)}:s=="bottomLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,r=i.clientY-n.clientY+e.bottom;t(o,r)}:(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.top;t(o,r)}}function K(s,t,n){return s=="bottom"?(e,i,o,r,c)=>{const f=r.height+i;f>0&&(l.setCss(e,"height",f+h),t&&l.setCss(t,"height",c.height-i+h))}:s=="top"?(e,i,o,r,c)=>{const f=r.height+i;f>0&&(l.setCss(e,"height",f+h),t&&l.setCss(t,"height",c.height-i+h),n&&l.setCss(e,"top",r.top-i+h))}:s=="right"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h))}:s=="left"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h))}:s=="topRight"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h),n&&l.setCss(e,"top",r.top-o+h))}:s=="bottomRight"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h))}:s=="topLeft"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h),n&&l.setCss(e,"top",r.top-o+h))}:s=="bottomLeft"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h))}:(e,i,o,r,c)=>{}}const $=["bottom","top","right","left","topRight","bottomRight","topLeft","bottomLeft"];function v(s,t,n){t=B.lineToSmallHump(t);let e={};n.adjoin&&(typeof n.adjoin=="boolean"?e.adjoin=I(s,t):typeof n.adjoin=="string"?e.adjoin=s.parentElement?.querySelector(n.adjoin):e.adjoin=n.adjoin),e.cursor=W(t),e.domObj=F(t),e.setMousemove=J(t,e.domObj.set),e.setMousedown=o=>{t=="bottom"||t=="top"?e.domObj.set(o.clientY,0):t=="right"||t=="left"?e.domObj.set(o.clientX,0):e.domObj.set(o.clientX,o.clientY),e.domObj.show()},e.setValue=K(t,e.adjoin,n.position),e.setMouseup=(o,r,c,f)=>{let u=0,d=0;t=="bottom"?u=r.clientY-o.clientY:t=="top"?u=o.clientY-r.clientY:t=="right"?u=r.clientX-o.clientX:t=="left"?u=o.clientX-r.clientX:t=="topRight"?(d=o.clientY-r.clientY,u=r.clientX-o.clientX):t=="bottomRight"?(d=r.clientY-o.clientY,u=r.clientX-o.clientX):t=="topLeft"?(d=o.clientY-r.clientY,u=o.clientX-r.clientX):t=="bottomLeft"&&(d=r.clientY-o.clientY,u=o.clientX-r.clientX),e.setValue(s,u,d,c,f)};const i=Z(t,n.getDisabled);return(o,r)=>{const c=i(o,r);if(c<L&&c>0-L)return e}}function G(s,t){return(s.all?$:Object.keys(s)).sort((e,i)=>i.length-e.length).map(e=>{const i=s.all?s.all:s[e];return v(t,e,i)})}const Q={name:"Adjust",mounted(s,t){const n=t.value,e=n.often;if(delete n.often,n&&Object.keys(n).length>0){let i=function(g){let p=!0;for(let a=0;a<r.length;a++){const q=r[a](g,b);if(q)return c=q,C=!0,p=!1,f.cursor=c.cursor,!0}if(p)return C=!1,f.cursor=u,!1},o=function(){f.cursor=u,d=!0,C=!1,l.setCss(R(),"display","none"),l.setCss(M(),"display","none")};const r=G(n,s);let c;const f=document.body.style,u=f.cursor;let d=!0,C=!1,b,Y,x;const N=g=>{d&&(b=s.getBoundingClientRect(),i(g))},S=g=>{d&&o()};let X;const T=g=>{c.setMousemove(X,b,g),e&&c.setMouseup(X,g,Y,x)},V=g=>{C&&c.setMouseup(X,g,Y,x),o()},O=(g,p)=>{C&&(X=g,Y=A(s),x=A(c.adjoin),d=!1,c.setMousedown(g),f.cursor=c.cursor,H.shiftEvent(p,document,T,V))};s.addEventListener("mousemove",N),s.addEventListener("mouseout",S),s.addEventListener("touchstart",g=>{const p=g.changedTouches[0];b=s.getBoundingClientRect(),i(p)&&O(p,"touch")}),s.addEventListener("mousedown",g=>{C&&O(g,"mouse")})}}};module.exports=Q;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { lineToSmallHump as V } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.
|
|
2
|
-
import { getCss as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.
|
|
3
|
-
import { splitUpper as B } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.
|
|
4
|
-
import { shiftEvent as H } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.
|
|
5
|
-
import { setCss as
|
|
6
|
-
const R =
|
|
1
|
+
import { lineToSmallHump as V } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js";
|
|
2
|
+
import { getCss as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.js";
|
|
3
|
+
import { splitUpper as B } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.js";
|
|
4
|
+
import { shiftEvent as H } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.js";
|
|
5
|
+
import { setCss as l } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.js";
|
|
6
|
+
const R = 14, L = 14, b = 1e3, h = "px";
|
|
7
7
|
function N(i) {
|
|
8
8
|
const t = ["left", "right", "top", "bottom", "width", "height"], o = {};
|
|
9
9
|
return t.forEach((e) => {
|
|
@@ -15,8 +15,8 @@ function I(i, t) {
|
|
|
15
15
|
const o = t.childNodes;
|
|
16
16
|
let e = 0, n = o.length;
|
|
17
17
|
for (; e < o.length; e++) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const s = o[e];
|
|
19
|
+
if (s === i && (n = e), n < e && s.nodeType == 1)
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
22
|
return o[e];
|
|
@@ -26,8 +26,8 @@ function U(i, t) {
|
|
|
26
26
|
const o = t.childNodes;
|
|
27
27
|
let e = o.length - 1, n = -1;
|
|
28
28
|
for (; e >= 0; e--) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
29
|
+
const s = o[e];
|
|
30
|
+
if (s === i && (n = e), n > e && s.nodeType == 1)
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
return o[e];
|
|
@@ -62,11 +62,11 @@ function W(i, t) {
|
|
|
62
62
|
return i == "bottom" || i == "top" ? (e, n) => t && t() ? b : n[i] - e.pageY : i == "right" || i == "left" ? (e, n) => t && t() ? b : n[i] - e.pageX : (e, n) => t && t() ? b : 0;
|
|
63
63
|
{
|
|
64
64
|
const e = o[0], n = o[1];
|
|
65
|
-
return (
|
|
65
|
+
return (s, r) => {
|
|
66
66
|
if (t && t())
|
|
67
67
|
return b;
|
|
68
|
-
const
|
|
69
|
-
return f < L && f > 0 - L &&
|
|
68
|
+
const c = r[e] - s.pageY, f = r[n] - s.pageX;
|
|
69
|
+
return f < L && f > 0 - L && c < R && c > 0 - L ? 0 : b;
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -75,98 +75,98 @@ function Z(i) {
|
|
|
75
75
|
const t = M();
|
|
76
76
|
return {
|
|
77
77
|
show: () => {
|
|
78
|
-
|
|
78
|
+
l(t, "display", "block");
|
|
79
79
|
},
|
|
80
80
|
set: (o) => {
|
|
81
|
-
|
|
81
|
+
l(t, "top", o + h);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
} else if (i == "right" || i == "left") {
|
|
85
85
|
const t = O();
|
|
86
86
|
return {
|
|
87
87
|
show: () => {
|
|
88
|
-
|
|
88
|
+
l(t, "display", "block");
|
|
89
89
|
},
|
|
90
90
|
set: (o) => {
|
|
91
|
-
|
|
91
|
+
l(t, "left", o + h);
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
} else {
|
|
95
95
|
const t = O(), o = M();
|
|
96
96
|
return {
|
|
97
97
|
show: () => {
|
|
98
|
-
|
|
98
|
+
l(t, "display", "block"), l(o, "display", "block");
|
|
99
99
|
},
|
|
100
100
|
set: (e, n) => {
|
|
101
|
-
|
|
101
|
+
l(t, "left", e + h), l(o, "top", n + h);
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function $(i, t) {
|
|
107
107
|
return i == "bottom" ? (o, e, n) => {
|
|
108
|
-
const
|
|
109
|
-
t(
|
|
108
|
+
const s = n.clientY - o.clientY + e.bottom;
|
|
109
|
+
t(s, 0);
|
|
110
110
|
} : i == "top" ? (o, e, n) => {
|
|
111
|
-
const
|
|
112
|
-
t(
|
|
111
|
+
const s = n.clientY - o.clientY + e.top;
|
|
112
|
+
t(s, 0);
|
|
113
113
|
} : i == "right" ? (o, e, n) => {
|
|
114
|
-
const
|
|
115
|
-
t(
|
|
114
|
+
const s = n.clientX - o.clientX + e.right;
|
|
115
|
+
t(s, 0);
|
|
116
116
|
} : i == "left" ? (o, e, n) => {
|
|
117
|
-
const
|
|
118
|
-
t(
|
|
117
|
+
const s = n.clientX - o.clientX + e.left;
|
|
118
|
+
t(s, 0);
|
|
119
119
|
} : i == "topRight" ? (o, e, n) => {
|
|
120
|
-
const
|
|
121
|
-
t(
|
|
120
|
+
const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.top;
|
|
121
|
+
t(s, r);
|
|
122
122
|
} : i == "bottomRight" ? (o, e, n) => {
|
|
123
|
-
const
|
|
124
|
-
t(
|
|
123
|
+
const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.bottom;
|
|
124
|
+
t(s, r);
|
|
125
125
|
} : i == "topLeft" ? (o, e, n) => {
|
|
126
|
-
const
|
|
127
|
-
t(
|
|
126
|
+
const s = n.clientX - o.clientX + e.left, r = n.clientY - o.clientY + e.top;
|
|
127
|
+
t(s, r);
|
|
128
128
|
} : i == "bottomLeft" ? (o, e, n) => {
|
|
129
|
-
const
|
|
130
|
-
t(
|
|
129
|
+
const s = n.clientX - o.clientX + e.left, r = n.clientY - o.clientY + e.bottom;
|
|
130
|
+
t(s, r);
|
|
131
131
|
} : (o, e, n) => {
|
|
132
|
-
const
|
|
133
|
-
t(
|
|
132
|
+
const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.top;
|
|
133
|
+
t(s, r);
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
function v(i, t, o) {
|
|
137
|
-
return i == "bottom" ? (e, n,
|
|
138
|
-
const f =
|
|
139
|
-
f > 0 && (
|
|
140
|
-
} : i == "top" ? (e, n,
|
|
141
|
-
const f =
|
|
142
|
-
f > 0 && (
|
|
143
|
-
} : i == "right" ? (e, n,
|
|
144
|
-
const f =
|
|
145
|
-
f > 0 && (
|
|
146
|
-
} : i == "left" ? (e, n,
|
|
147
|
-
const f =
|
|
148
|
-
f > 0 && (
|
|
149
|
-
} : i == "topRight" ? (e, n,
|
|
150
|
-
const f =
|
|
151
|
-
f > 0 && (
|
|
152
|
-
const u =
|
|
153
|
-
u > 0 && (
|
|
154
|
-
} : i == "bottomRight" ? (e, n,
|
|
155
|
-
const f =
|
|
156
|
-
f > 0 && (
|
|
157
|
-
const u =
|
|
158
|
-
u > 0 && (
|
|
159
|
-
} : i == "topLeft" ? (e, n,
|
|
160
|
-
const f =
|
|
161
|
-
f > 0 && (
|
|
162
|
-
const u =
|
|
163
|
-
u > 0 && (
|
|
164
|
-
} : i == "bottomLeft" ? (e, n,
|
|
165
|
-
const f =
|
|
166
|
-
f > 0 && (
|
|
167
|
-
const u =
|
|
168
|
-
u > 0 && (
|
|
169
|
-
} : (e, n,
|
|
137
|
+
return i == "bottom" ? (e, n, s, r, c) => {
|
|
138
|
+
const f = r.height + n;
|
|
139
|
+
f > 0 && (l(e, "height", f + h), t && l(t, "height", c.height - n + h));
|
|
140
|
+
} : i == "top" ? (e, n, s, r, c) => {
|
|
141
|
+
const f = r.height + n;
|
|
142
|
+
f > 0 && (l(e, "height", f + h), t && l(t, "height", c.height - n + h), o && l(e, "top", r.top - n + h));
|
|
143
|
+
} : i == "right" ? (e, n, s, r, c) => {
|
|
144
|
+
const f = r.width + n;
|
|
145
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
|
|
146
|
+
} : i == "left" ? (e, n, s, r, c) => {
|
|
147
|
+
const f = r.width + n;
|
|
148
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
|
|
149
|
+
} : i == "topRight" ? (e, n, s, r, c) => {
|
|
150
|
+
const f = r.width + n;
|
|
151
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
|
|
152
|
+
const u = r.height + s;
|
|
153
|
+
u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h), o && l(e, "top", r.top - s + h));
|
|
154
|
+
} : i == "bottomRight" ? (e, n, s, r, c) => {
|
|
155
|
+
const f = r.width + n;
|
|
156
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
|
|
157
|
+
const u = r.height + s;
|
|
158
|
+
u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h));
|
|
159
|
+
} : i == "topLeft" ? (e, n, s, r, c) => {
|
|
160
|
+
const f = r.width + n;
|
|
161
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
|
|
162
|
+
const u = r.height + s;
|
|
163
|
+
u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h), o && l(e, "top", r.top - s + h));
|
|
164
|
+
} : i == "bottomLeft" ? (e, n, s, r, c) => {
|
|
165
|
+
const f = r.width + n;
|
|
166
|
+
f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
|
|
167
|
+
const u = r.height + s;
|
|
168
|
+
u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h));
|
|
169
|
+
} : (e, n, s, r, c) => {
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
const G = [
|
|
@@ -180,19 +180,18 @@ const G = [
|
|
|
180
180
|
"bottomLeft"
|
|
181
181
|
];
|
|
182
182
|
function J(i, t, o) {
|
|
183
|
-
var r;
|
|
184
183
|
t = V(t);
|
|
185
184
|
let e = {};
|
|
186
|
-
o.adjoin && (typeof o.adjoin == "boolean" ? e.adjoin = F(i, t) : typeof o.adjoin == "string" ? e.adjoin =
|
|
185
|
+
o.adjoin && (typeof o.adjoin == "boolean" ? e.adjoin = F(i, t) : typeof o.adjoin == "string" ? e.adjoin = i.parentElement?.querySelector(o.adjoin) : e.adjoin = o.adjoin), e.cursor = P(t), e.domObj = Z(t), e.setMousemove = $(t, e.domObj.set), e.setMousedown = (s) => {
|
|
187
186
|
t == "bottom" || t == "top" ? e.domObj.set(s.clientY, 0) : t == "right" || t == "left" ? e.domObj.set(s.clientX, 0) : e.domObj.set(s.clientX, s.clientY), e.domObj.show();
|
|
188
|
-
}, e.setValue = v(t, e.adjoin, o.position), e.setMouseup = (s,
|
|
189
|
-
let
|
|
190
|
-
t == "bottom" ?
|
|
187
|
+
}, e.setValue = v(t, e.adjoin, o.position), e.setMouseup = (s, r, c, f) => {
|
|
188
|
+
let u = 0, d = 0;
|
|
189
|
+
t == "bottom" ? u = r.clientY - s.clientY : t == "top" ? u = s.clientY - r.clientY : t == "right" ? u = r.clientX - s.clientX : t == "left" ? u = s.clientX - r.clientX : t == "topRight" ? (d = s.clientY - r.clientY, u = r.clientX - s.clientX) : t == "bottomRight" ? (d = r.clientY - s.clientY, u = r.clientX - s.clientX) : t == "topLeft" ? (d = s.clientY - r.clientY, u = s.clientX - r.clientX) : t == "bottomLeft" && (d = r.clientY - s.clientY, u = s.clientX - r.clientX), e.setValue(i, u, d, c, f);
|
|
191
190
|
};
|
|
192
191
|
const n = W(t, o.getDisabled);
|
|
193
|
-
return (s,
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
192
|
+
return (s, r) => {
|
|
193
|
+
const c = n(s, r);
|
|
194
|
+
if (c < R && c > 0 - R)
|
|
196
195
|
return e;
|
|
197
196
|
};
|
|
198
197
|
}
|
|
@@ -208,39 +207,39 @@ const k = {
|
|
|
208
207
|
const o = t.value, e = o.often;
|
|
209
208
|
if (delete o.often, o && Object.keys(o).length > 0) {
|
|
210
209
|
let n = function(g) {
|
|
211
|
-
let
|
|
212
|
-
for (let Y = 0; Y <
|
|
213
|
-
const A =
|
|
210
|
+
let p = !0;
|
|
211
|
+
for (let Y = 0; Y < r.length; Y++) {
|
|
212
|
+
const A = r[Y](g, a);
|
|
214
213
|
if (A)
|
|
215
|
-
return
|
|
214
|
+
return c = A, m = !0, p = !1, f.cursor = c.cursor, !0;
|
|
216
215
|
}
|
|
217
|
-
if (
|
|
218
|
-
return
|
|
219
|
-
},
|
|
220
|
-
f.cursor = u, d = !0,
|
|
216
|
+
if (p)
|
|
217
|
+
return m = !1, f.cursor = u, !1;
|
|
218
|
+
}, s = function() {
|
|
219
|
+
f.cursor = u, d = !0, m = !1, l(M(), "display", "none"), l(O(), "display", "none");
|
|
221
220
|
};
|
|
222
|
-
const
|
|
223
|
-
let
|
|
221
|
+
const r = K(o, i);
|
|
222
|
+
let c;
|
|
224
223
|
const f = document.body.style, u = f.cursor;
|
|
225
|
-
let d = !0,
|
|
224
|
+
let d = !0, m = !1, a, x, w;
|
|
226
225
|
const S = (g) => {
|
|
227
226
|
d && (a = i.getBoundingClientRect(), n(g));
|
|
228
227
|
}, T = (g) => {
|
|
229
|
-
d &&
|
|
228
|
+
d && s();
|
|
230
229
|
};
|
|
231
230
|
let X;
|
|
232
231
|
const z = (g) => {
|
|
233
|
-
|
|
232
|
+
c.setMousemove(X, a, g), e && c.setMouseup(X, g, x, w);
|
|
234
233
|
}, D = (g) => {
|
|
235
|
-
|
|
236
|
-
}, C = (g,
|
|
237
|
-
|
|
234
|
+
m && c.setMouseup(X, g, x, w), s();
|
|
235
|
+
}, C = (g, p) => {
|
|
236
|
+
m && (X = g, x = N(i), w = N(c.adjoin), d = !1, c.setMousedown(g), f.cursor = c.cursor, H(p, document, z, D));
|
|
238
237
|
};
|
|
239
238
|
i.addEventListener("mousemove", S), i.addEventListener("mouseout", T), i.addEventListener("touchstart", (g) => {
|
|
240
|
-
const
|
|
241
|
-
a = i.getBoundingClientRect(), n(
|
|
239
|
+
const p = g.changedTouches[0];
|
|
240
|
+
a = i.getBoundingClientRect(), n(p) && C(p, "touch");
|
|
242
241
|
}), i.addEventListener("mousedown", (g) => {
|
|
243
|
-
|
|
242
|
+
m && C(g, "mouse");
|
|
244
243
|
});
|
|
245
244
|
}
|
|
246
245
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),r=require("../../components/boxurl/index.vue.cjs"),v=require("../../components/compo/props.vue.cjs"),p=require("../../components/header/index.vue.cjs"),N=require("../../config.cjs"),h=require("../../utils/common.cjs"),_=require("../../utils/glob.cjs"),E={class:"__document-index"},V={class:"index-aside"},f={class:"index-aside-div"},x={class:"choice aside"},g=["onClick"],k={class:"aside-li-name"},y={class:"aside-li-name-name"},C={class:"compo-info-name-li"},q={class:"compo-info-name-li-span"},B={class:"index-body"},w={class:"index-div"},D={class:"index-header"},S={class:"index-main"},b={class:"index-main-top"},O={class:"aside-li-name"},P={class:"aside-li-name-name"},R={class:"compo-info-name-li"},$={class:"compo-info-name-li-span"},j={class:"index-main-div"},z=e.defineComponent({__name:"index",setup(F){const i=N.getConfig("components").map(t=>t.comprops),m=Object.values(_.getComponentPropsObjs()).filter(t=>{for(let n=0;n<i.length;n++){const o=i[n]||"";if(o&&h.isComprops(t.key,o))return!0}});function c(t){const o=new RegExp(t.comprops+"(.+)$").exec("/"+t.value);return o?o[1]:t.value}const a=e.ref(m),s=e.ref(a.value[0]),l=e.ref("");function u(t){s.value=t,d()}function d(){_.getPropsRaws([s.value]).then(t=>{const n=t[0];l.value=n.raw})}return d(),(t,n)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",V,[e.createElementVNode("div",f,[e.createElementVNode("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(o,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",{on:o.key==s.value?.key}]),onClick:A=>u(o)},[e.createVNode(r,{value:o},{default:e.withCtx(()=>[e.createElementVNode("div",k,[e.createElementVNode("div",y,e.toDisplayString(c(o)),1)]),e.createElementVNode("div",C,[n[0]||(n[0]=e.createElementVNode("div",{class:"compo-info-name-li-span"}," 文件路径 ",-1)),e.createElementVNode("div",q,e.toDisplayString(o?.key),1)])]),_:2},1032,["value"])],10,g))),256))])])]),e.createElementVNode("div",B,[e.createElementVNode("div",w,[e.createElementVNode("div",D,[e.createVNode(p)]),e.createElementVNode("div",S,[e.createElementVNode("div",b,[e.createVNode(r,{value:s.value},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("div",P,e.toDisplayString(c(s.value)),1)]),e.createElementVNode("div",R,[n[1]||(n[1]=e.createElementVNode("div",{class:"compo-info-name-li-span"}," 文件路径 ",-1)),e.createElementVNode("div",$,e.toDisplayString(s.value?.key),1)])]),_:1},8,["value"])]),e.createElementVNode("div",j,[e.createVNode(v,{value:l.value},null,8,["value"])])])])])]))}});module.exports=z;
|
|
@@ -1,90 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { getConfig as
|
|
6
|
-
import { isComprops as
|
|
7
|
-
import { getComponentPropsObjs as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as c, createElementBlock as l, openBlock as d, createElementVNode as e, Fragment as k, renderList as C, normalizeClass as y, createVNode as t, withCtx as u, toDisplayString as a } from "vue";
|
|
2
|
+
import f from "../../components/boxurl/index.vue.js";
|
|
3
|
+
import w from "../../components/compo/props.vue.js";
|
|
4
|
+
import $ from "../../components/header/index.vue.js";
|
|
5
|
+
import { getConfig as E } from "../../config.js";
|
|
6
|
+
import { isComprops as N } from "../../utils/common.js";
|
|
7
|
+
import { getComponentPropsObjs as b, getPropsRaws as B } from "../../utils/glob.js";
|
|
8
|
+
const D = { class: "__document-index" }, O = { class: "index-aside" }, P = { class: "index-aside-div" }, R = { class: "choice aside" }, V = ["onClick"], j = { class: "aside-li-name" }, z = { class: "aside-li-name-name" }, F = { class: "compo-info-name-li" }, H = { class: "compo-info-name-li-span" }, L = { class: "index-body" }, S = { class: "index-div" }, q = { class: "index-header" }, A = { class: "index-main" }, G = { class: "index-main-top" }, I = { class: "aside-li-name" }, J = { class: "aside-li-name-name" }, K = { class: "compo-info-name-li" }, M = { class: "compo-info-name-li-span" }, Q = { class: "index-main-div" }, ne = /* @__PURE__ */ g({
|
|
9
9
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const r =
|
|
12
|
-
(
|
|
13
|
-
),
|
|
14
|
-
for (let
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
10
|
+
setup(T) {
|
|
11
|
+
const r = E("components").map(
|
|
12
|
+
(s) => s.comprops
|
|
13
|
+
), h = Object.values(b()).filter((s) => {
|
|
14
|
+
for (let o = 0; o < r.length; o++) {
|
|
15
|
+
const i = r[o] || "";
|
|
16
|
+
if (i && N(s.key, i))
|
|
17
17
|
return !0;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
function _(
|
|
21
|
-
const
|
|
22
|
-
return
|
|
20
|
+
function _(s) {
|
|
21
|
+
const i = new RegExp(s.comprops + "(.+)$").exec("/" + s.value);
|
|
22
|
+
return i ? i[1] : s.value;
|
|
23
23
|
}
|
|
24
|
-
const m = c(
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
const m = c(h), n = c(m.value[0]), v = c("");
|
|
25
|
+
function x(s) {
|
|
26
|
+
n.value = s, p();
|
|
27
27
|
}
|
|
28
28
|
function p() {
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
v.value =
|
|
29
|
+
B([n.value]).then((s) => {
|
|
30
|
+
const o = s[0];
|
|
31
|
+
v.value = o.raw;
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
return p(), (
|
|
35
|
-
e("div",
|
|
36
|
-
e("div",
|
|
37
|
-
e("div",
|
|
38
|
-
(d(!0), l(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
e("div", z, [
|
|
49
|
-
e("div", F, a(_(s)), 1)
|
|
50
|
-
]),
|
|
51
|
-
e("div", H, [
|
|
52
|
-
n[0] || (n[0] = e("div", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
53
|
-
e("div", L, a(s == null ? void 0 : s.key), 1)
|
|
54
|
-
])
|
|
34
|
+
return p(), (s, o) => (d(), l("div", D, [
|
|
35
|
+
e("div", O, [
|
|
36
|
+
e("div", P, [
|
|
37
|
+
e("div", R, [
|
|
38
|
+
(d(!0), l(k, null, C(m.value, (i, U) => (d(), l("div", {
|
|
39
|
+
class: y(["aside-li", {
|
|
40
|
+
on: i.key == n.value?.key
|
|
41
|
+
}]),
|
|
42
|
+
onClick: (W) => x(i)
|
|
43
|
+
}, [
|
|
44
|
+
t(f, { value: i }, {
|
|
45
|
+
default: u(() => [
|
|
46
|
+
e("div", j, [
|
|
47
|
+
e("div", z, a(_(i)), 1)
|
|
55
48
|
]),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
e("div", F, [
|
|
50
|
+
o[0] || (o[0] = e("div", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
51
|
+
e("div", H, a(i?.key), 1)
|
|
52
|
+
])
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["value"])
|
|
56
|
+
], 10, V))), 256))
|
|
60
57
|
])
|
|
61
58
|
])
|
|
62
59
|
]),
|
|
63
|
-
e("div",
|
|
64
|
-
e("div",
|
|
65
|
-
e("div",
|
|
66
|
-
t(
|
|
60
|
+
e("div", L, [
|
|
61
|
+
e("div", S, [
|
|
62
|
+
e("div", q, [
|
|
63
|
+
t($)
|
|
67
64
|
]),
|
|
68
|
-
e("div",
|
|
69
|
-
e("div",
|
|
70
|
-
t(
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
]),
|
|
77
|
-
e("div", M,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
])
|
|
81
|
-
];
|
|
82
|
-
}),
|
|
65
|
+
e("div", A, [
|
|
66
|
+
e("div", G, [
|
|
67
|
+
t(f, { value: n.value }, {
|
|
68
|
+
default: u(() => [
|
|
69
|
+
e("div", I, [
|
|
70
|
+
e("div", J, a(_(n.value)), 1)
|
|
71
|
+
]),
|
|
72
|
+
e("div", K, [
|
|
73
|
+
o[1] || (o[1] = e("div", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
74
|
+
e("div", M, a(n.value?.key), 1)
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
83
77
|
_: 1
|
|
84
78
|
}, 8, ["value"])
|
|
85
79
|
]),
|
|
86
|
-
e("div",
|
|
87
|
-
t(
|
|
80
|
+
e("div", Q, [
|
|
81
|
+
t(w, { value: v.value }, null, 8, ["value"])
|
|
88
82
|
])
|
|
89
83
|
])
|
|
90
84
|
])
|
|
@@ -93,5 +87,5 @@ const O = { class: "__document-index" }, P = { class: "index-aside" }, R = { cla
|
|
|
93
87
|
}
|
|
94
88
|
});
|
|
95
89
|
export {
|
|
96
|
-
|
|
90
|
+
ne as default
|
|
97
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),r=require("../../components/header/index.vue.cjs"),a=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),_=require("vue-router"),l={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},h={class:"index-body"},x={class:"index-div"},p={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},V=e.defineComponent({__name:"index",setup(g){const
|
|
1
|
+
"use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),r=require("../../components/header/index.vue.cjs"),a=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),_=require("vue-router"),l={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},h={class:"index-body"},x={class:"index-div"},p={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},V=e.defineComponent({__name:"index",setup(g){const n=_.useRoute(),t=e.ref({});function s(o){t.value=o}e.watch(()=>n.query?.id,()=>{i()});function i(){n.query?.id&&(t.value=u.getCompoName(n.query.id+""))}return i(),(o,E)=>(e.openBlock(),e.createElementBlock("div",l,[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",m,[e.createVNode(d,{value:t.value,onChange:s},null,8,["value"])])])),[[e.unref(c),{right:{}}]]),e.createElementVNode("div",h,[e.createElementVNode("div",x,[e.createElementVNode("div",p,[e.createVNode(r)]),e.createElementVNode("div",q,[e.createElementVNode("div",N,[e.createVNode(a,{value:t.value},null,8,["value"])])])])])]))}});module.exports=V;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r, ref as _, watch as m, createElementBlock as d, openBlock as a, withDirectives as l, createElementVNode as
|
|
1
|
+
import { defineComponent as r, ref as _, watch as m, createElementBlock as d, openBlock as a, withDirectives as l, createElementVNode as e, createVNode as t, unref as u } from "vue";
|
|
2
2
|
import v from "../../directives/adjust/index.js";
|
|
3
3
|
import f from "../../components/aside/index.vue.js";
|
|
4
4
|
import h from "../../components/header/index.vue.js";
|
|
@@ -8,28 +8,24 @@ import { useRoute as g } from "vue-router";
|
|
|
8
8
|
const y = { class: "__document-index" }, C = { class: "index-aside" }, q = { class: "index-aside-div" }, N = { class: "index-body" }, k = { class: "index-div" }, w = { class: "index-header" }, B = { class: "index-main" }, D = { class: "index-main-div" }, F = /* @__PURE__ */ r({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(E) {
|
|
11
|
-
const
|
|
12
|
-
function c(
|
|
13
|
-
|
|
11
|
+
const o = g(), i = _({});
|
|
12
|
+
function c(n) {
|
|
13
|
+
i.value = n;
|
|
14
14
|
}
|
|
15
15
|
m(
|
|
16
|
+
() => o.query?.id,
|
|
16
17
|
() => {
|
|
17
|
-
|
|
18
|
-
return (e = t.query) == null ? void 0 : e.id;
|
|
19
|
-
},
|
|
20
|
-
() => {
|
|
21
|
-
n();
|
|
18
|
+
s();
|
|
22
19
|
}
|
|
23
20
|
);
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
(e = t.query) != null && e.id && (o.value = x(t.query.id + ""));
|
|
21
|
+
function s() {
|
|
22
|
+
o.query?.id && (i.value = x(o.query.id + ""));
|
|
27
23
|
}
|
|
28
|
-
return
|
|
24
|
+
return s(), (n, V) => (a(), d("div", y, [
|
|
29
25
|
l((a(), d("div", C, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
value:
|
|
26
|
+
e("div", q, [
|
|
27
|
+
t(f, {
|
|
28
|
+
value: i.value,
|
|
33
29
|
onChange: c
|
|
34
30
|
}, null, 8, ["value"])
|
|
35
31
|
])
|
|
@@ -38,14 +34,14 @@ const y = { class: "__document-index" }, C = { class: "index-aside" }, q = { cla
|
|
|
38
34
|
right: {}
|
|
39
35
|
}]
|
|
40
36
|
]),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
e("div", N, [
|
|
38
|
+
e("div", k, [
|
|
39
|
+
e("div", w, [
|
|
40
|
+
t(h)
|
|
45
41
|
]),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
e("div", B, [
|
|
43
|
+
e("div", D, [
|
|
44
|
+
t(p, { value: i.value }, null, 8, ["value"])
|
|
49
45
|
])
|
|
50
46
|
])
|
|
51
47
|
])
|