@fangzhongya/vue-archive 0.0.87 → 0.0.89

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.
@@ -1 +1 @@
1
- "use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_f44d533e0c923799b88f34f8325fca35/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs"),n=require("vue"),t=n.defineComponent({props:{language:{type:String},code:{type:String}},components:{highlightjs:e.component}});module.exports=t;
1
+ "use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dd6f49d866ebfd1af8876034987b0674/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs"),n=require("vue"),t=n.defineComponent({props:{language:{type:String},code:{type:String}},components:{highlightjs:e.component}});module.exports=t;
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import "../../../_virtual/common.js";
3
- import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_f44d533e0c923799b88f34f8325fca35/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js";
3
+ import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dd6f49d866ebfd1af8876034987b0674/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js";
4
4
  import { defineComponent as t } from "vue";
5
5
  const m = t({
6
6
  props: {
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),u={class:"compo-talbe"},d={class:"compo-talbe-body"},m={class:"compo-talbe-top"},i={class:"compo-talbe-li"},k={key:1,class:"compo-talbe-zw"},B=e.defineComponent({__name:"ftable",props:{list:{type:Array,default(){return[]}},value:{type:Array,default(){return[]}}},setup(c){const l=c;function a(n,t,o,r){if(t.formatter)return t.formatter(n,t,o,r);if(t.prop)return n[t.prop]}return(n,t)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("table",d,[e.createElementVNode("thead",null,[e.createElementVNode("tr",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,r)=>(e.openBlock(),e.createElementBlock("th",null,e.toDisplayString(o?.label),1))),256))])]),e.createElementVNode("tbody",null,[l.value&&l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,(o,r)=>(e.openBlock(),e.createElementBlock("tr",i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(s,p)=>(e.openBlock(),e.createElementBlock("td",null,e.toDisplayString(a(o,s,r,p)),1))),256))]))),256)):(e.openBlock(),e.createElementBlock("tr",k,t[0]||(t[0]=[e.createElementVNode("td",{colspan:"7"},"暂无",-1)])))])])]))}});module.exports=B;
1
+ "use strict";const e=require("vue"),u={class:"compo-talbe"},d={class:"compo-talbe-body"},m={class:"compo-talbe-top"},i={class:"compo-talbe-li"},k={key:1,class:"compo-talbe-zw"},B=e.defineComponent({__name:"ftable",props:{list:{type:Array,default(){return[]}},value:{type:Array,default(){return[]}}},setup(c){const l=c;function a(n,t,o,r){if(t.formatter)return t.formatter(n,t,o,r);if(t.prop)return n[t.prop]}return(n,t)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("table",d,[e.createElementVNode("thead",null,[e.createElementVNode("tr",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,r)=>(e.openBlock(),e.createElementBlock("th",null,e.toDisplayString(o?.label),1))),256))])]),e.createElementVNode("tbody",null,[l.value&&l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,(o,r)=>(e.openBlock(),e.createElementBlock("tr",i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(s,p)=>(e.openBlock(),e.createElementBlock("td",null,e.toDisplayString(a(o,s,r,p)),1))),256))]))),256)):(e.openBlock(),e.createElementBlock("tr",k,[...t[0]||(t[0]=[e.createElementVNode("td",{colspan:"7"},"暂无",-1)])]))])])]))}});module.exports=B;
@@ -44,9 +44,9 @@ const b = { class: "compo-talbe" }, y = { class: "compo-talbe-body" }, h = { cla
44
44
  n("tbody", null, [
45
45
  r.value && r.value.length > 0 ? (l(!0), e(u, { key: 0 }, c(r.value, (o, s) => (l(), e("tr", v, [
46
46
  (l(!0), e(u, null, c(r.list, (_, f) => (l(), e("td", null, p(i(o, _, s, f)), 1))), 256))
47
- ]))), 256)) : (l(), e("tr", k, t[0] || (t[0] = [
47
+ ]))), 256)) : (l(), e("tr", k, [...t[0] || (t[0] = [
48
48
  n("td", { colspan: "7" }, "暂无", -1)
49
- ])))
49
+ ])]))
50
50
  ])
51
51
  ])
52
52
  ]));
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),m=require("./top.cjs"),f=require("../code/index.vue.cjs"),x=require("./index.cjs"),y=require("../../utils/glob.cjs"),N={class:"md-top-name"},h={class:"test-top"},k={class:"test-div"},V={class:"test-body"},g={key:0,class:"test-code"},B=e.defineComponent({__name:"index",props:{value:Object,read:{type:Boolean,default:!0}},emits:["state"],setup(i,{emit:d}){const t=i,v=d,s=e.ref(""),c=e.ref([]),o=e.ref("1");e.watch([()=>t.value,()=>t.read],()=>{r()});let u;function r(){t.read&&t.value?.key&&y.getLocalTextTests(t.value).then(l=>{s.value=l;let{titles:a,states:_}=x.getNotes(l);c.value=a;const n=_[0];n&&n.type&&(o.value=n.type.type),v("state",o.value,t.value?.key)}).catch(()=>{s.value=""}),t.value?.component&&(u=e.defineAsyncComponent(t.value.component))}return r(),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["test","state-"+o.value])},[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.value?.value)+" 文件 示例代码 ",1)]),_:1},8,["value"]),e.createElementVNode("div",h,[e.createVNode(e.unref(m.default),{value:c.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",V,[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode(" 示例加载中... ",-1)])),default:e.withCtx(()=>[e.createVNode(e.unref(u))]),_:1}))]),t.read?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{value:t.value,text:s.value},null,8,["value","text"])])):e.createCommentVNode("",!0)])],2))}});module.exports=B;
1
+ "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),m=require("./top.cjs"),f=require("../code/index.vue.cjs"),x=require("./index.cjs"),y=require("../../utils/glob.cjs"),N={class:"md-top-name"},h={class:"test-top"},k={class:"test-div"},V={class:"test-body"},g={key:0,class:"test-code"},B=e.defineComponent({__name:"index",props:{value:Object,read:{type:Boolean,default:!0}},emits:["state"],setup(i,{emit:d}){const t=i,v=d,s=e.ref(""),c=e.ref([]),o=e.ref("1");e.watch([()=>t.value,()=>t.read],()=>{r()});let u;function r(){t.read&&t.value?.key&&y.getLocalTextTests(t.value).then(l=>{s.value=l;let{titles:a,states:_}=x.getNotes(l);c.value=a;const n=_[0];n&&n.type&&(o.value=n.type.type),v("state",o.value,t.value?.key)}).catch(()=>{s.value=""}),t.value?.component&&(u=e.defineAsyncComponent(t.value.component))}return r(),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["test","state-"+o.value])},[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.value?.value)+" 文件 示例代码 ",1)]),_:1},8,["value"]),e.createElementVNode("div",h,[e.createVNode(e.unref(m.default),{value:c.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",V,[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode(" 示例加载中... ",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u))]),_:1}))]),t.read?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{value:t.value,text:s.value},null,8,["value","text"])])):e.createCommentVNode("",!0)])],2))}});module.exports=B;
@@ -51,9 +51,9 @@ const j = { class: "md-top-name" }, z = { class: "test-top" }, L = { class: "tes
51
51
  o("div", L, [
52
52
  o("div", O, [
53
53
  (i(), V(b, null, {
54
- fallback: r(() => t[0] || (t[0] = [
54
+ fallback: r(() => [...t[0] || (t[0] = [
55
55
  w(" 示例加载中... ", -1)
56
- ])),
56
+ ])]),
57
57
  default: r(() => [
58
58
  a(f(v))
59
59
  ]),
@@ -3,3 +3,52 @@ export declare function getJs(parent: HTMLElement, value: string, options?: stri
3
3
  export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
4
4
  export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
5
5
  export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
6
+ ...items: string[]): string[];
7
+ isArray(arg: any): arg is any[];
8
+ readonly prototype: any[];
9
+ from<T>(arrayLike: ArrayLike<T>): T[];
10
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
11
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
12
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
+ of<T>(...items: T[]): T[];
14
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
15
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
16
+ readonly [Symbol.species]: ArrayConstructor;
17
+ };
18
+ };
19
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:modelValue": (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
22
+ modelValue: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ format: {
27
+ type: StringConstructor;
28
+ };
29
+ options: {
30
+ type: {
31
+ (arrayLength: number): string[];
32
+ (...items: string[]): string[];
33
+ new (arrayLength: number): string[];
34
+ new (...items: string[]): string[];
35
+ isArray(arg: any): arg is any[];
36
+ readonly prototype: any[];
37
+ from<T>(arrayLike: ArrayLike<T>): T[];
38
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
39
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
40
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
+ of<T>(...items: T[]): T[];
42
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
43
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
44
+ readonly [Symbol.species]: ArrayConstructor;
45
+ };
46
+ };
47
+ }>> & Readonly<{
48
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
+ }>, {
50
+ modelValue: string;
51
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
52
+ refText: HTMLDivElement;
53
+ }, HTMLDivElement>;
54
+ export default _default;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),f=require("./retrie/select/index.vue.cjs");;/* empty css */const g=require("./retrie/expose/index.vue.cjs");;/* empty css */const k={key:0,class:"set-expose"},x={class:"set-expose-li"},C=["onClick"],V=e.defineComponent({__name:"set-expose",props:{list:Array,name:String,getRef:{type:Function}},emits:["change"],setup(u,{emit:a}){const s=u,p=a,m=e.computed(()=>s.list?.map((t,n)=>({label:t.name,prop:n}))),o=e.ref([]),i=e.ref(0);function d(t){s.list&&(i.value=t)}function _(){if(s.list){const t=s.list[i.value];o.value.map(n=>n.name).includes(t.name)||o.value.push(t)}}const c={};function v(t,n,l,r){c[t]={params:n,type:l,name:t,text:r},p("change",c)}return(t,n)=>s.list&&s.list.length>0?(e.openBlock(),e.createElementBlock("div",k,[n[1]||(n[1]=e.createTextVNode(" 请先选择要执行的方法 ",-1)),e.createVNode(f,{onChange:d,list:m.value},null,8,["list"]),e.createElementVNode("div",{class:"but-div com-retrie-but",onClick:e.withModifiers(_,["stop"])},n[0]||(n[0]=[e.createElementVNode("span",null,"添加",-1)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(l,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",{class:"set-expose-delete",onClick:h=>o.value.splice(r,1)}," 删除 ",8,C),e.createVNode(g,{name:s.name,value:l,getRef:s.getRef,onChange:v},null,8,["name","value","getRef"])]))),256))])):e.createCommentVNode("",!0)}});module.exports=V;
1
+ "use strict";const e=require("vue"),f=require("./retrie/select/index.vue.cjs");;/* empty css */const g=require("./retrie/expose/index.vue.cjs");;/* empty css */const k={key:0,class:"set-expose"},x={class:"set-expose-li"},C=["onClick"],V=e.defineComponent({__name:"set-expose",props:{list:Array,name:String,getRef:{type:Function}},emits:["change"],setup(u,{emit:a}){const s=u,p=a,m=e.computed(()=>s.list?.map((t,n)=>({label:t.name,prop:n}))),o=e.ref([]),i=e.ref(0);function d(t){s.list&&(i.value=t)}function _(){if(s.list){const t=s.list[i.value];o.value.map(n=>n.name).includes(t.name)||o.value.push(t)}}const c={};function v(t,n,l,r){c[t]={params:n,type:l,name:t,text:r},p("change",c)}return(t,n)=>s.list&&s.list.length>0?(e.openBlock(),e.createElementBlock("div",k,[n[1]||(n[1]=e.createTextVNode(" 请先选择要执行的方法 ",-1)),e.createVNode(f,{onChange:d,list:m.value},null,8,["list"]),e.createElementVNode("div",{class:"but-div com-retrie-but",onClick:e.withModifiers(_,["stop"])},[...n[0]||(n[0]=[e.createElementVNode("span",null,"添加",-1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(l,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",{class:"set-expose-delete",onClick:h=>o.value.splice(r,1)}," 删除 ",8,C),e.createVNode(g,{name:s.name,value:l,getRef:s.getRef,onChange:v},null,8,["name","value","getRef"])]))),256))])):e.createCommentVNode("",!0)}});module.exports=V;
@@ -43,9 +43,9 @@ const E = {
43
43
  r("div", {
44
44
  class: "but-div com-retrie-but",
45
45
  onClick: N(C, ["stop"])
46
- }, t[0] || (t[0] = [
46
+ }, [...t[0] || (t[0] = [
47
47
  r("span", null, "添加", -1)
48
- ])),
48
+ ])]),
49
49
  (a(!0), l(R, null, y(s.value, (o, i) => (a(), l("div", F, [
50
50
  r("span", {
51
51
  class: "set-expose-delete",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),c=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const p=require("./file.cjs"),f=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),s=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>f(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",g);function g(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&c.setSession("-keydown-F5",2)}let o="__document";function y(e){o=u.getConfig("router")||"__document";let t="/"+o;if(s[0].path=t,s[0].redirect={name:o+"Index"},s[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),p.getFileName().forEach(n=>{s[0].children?.push({path:n.value,name:o+n.name,component:n.component})}),s.forEach(n=>{e.addRoute(n)}),e.beforeEach((n,r)=>{if(r.fullPath=="/"){let l=c.getSession("-keydown-F5");document.referrer||l==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;c.setSession("-keydown-F5",0)}),u.getConfig("redirect")){const n=e.getRoutes().filter(r=>r.path=="/")[0]||{path:"/"};n.redirect=t,n.name?e.addRoute(n.name,n):e.addRoute(n)}}const d={};function h(e){let t=e.path,a=e.params;if(a&&Object.keys(a).length)return a;{let n=d[t];return n&&Object.keys(n).length?n:m==3?{}:c.getSession("router.toPage."+t)}}function i(e,t,a="push"){let n=t.path||"";const r=t.name,l=t.params||{};e[a](t),r&&(n=e.resolve({name:r}).path),d[n]=l,c.setSession("router.toPage."+n,l)}function k(e,t){i(e,{name:o+"Single",query:{id:t?.name+"/"+t?.value},params:{key:t?.key,comkey:t?.comkey}})}function v(e,t){i(e,{name:o+"Develop",query:{id:t?.value},params:{key:t?.key}})}function _(e,t){i(e,{name:o+"Edit",query:{id:t?.value},params:{key:t?.key}})}function P(e,t){i(e,{name:o+"Tests",query:{id:t?.value},params:{key:t?.key}})}function S(e,t){i(e,{name:o+"Compon",query:{id:t?.value},params:{key:t?.key}})}exports.getPageParams=h;exports.init=y;exports.toCompon=S;exports.toDevelop=v;exports.toEdit=_;exports.toPage=i;exports.toSingle=k;exports.toTests=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),c=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const p=require("./file.cjs"),f=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),i=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>f(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",g);function g(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&c.setSession("-keydown-F5",2)}let o="__document";function y(e){o=u.getConfig("router")||"__document";let t="/"+o;if(i[0].path=t,i[0].name=o,i[0].redirect={name:o+"Index"},i[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),p.getFileName().forEach(n=>{i[0].children?.push({path:n.value,name:o+n.name,component:n.component})}),i.forEach(n=>{e.addRoute(n)}),e.beforeEach((n,r)=>{if(r.fullPath=="/"){let l=c.getSession("-keydown-F5");document.referrer||l==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;c.setSession("-keydown-F5",0)}),u.getConfig("redirect")){const n=e.getRoutes().filter(r=>r.path=="/")[0]||{path:"/"};n.redirect=t,n.name?e.addRoute(n.name,n):e.addRoute(n)}}const d={};function h(e){let t=e.path,a=e.params;if(a&&Object.keys(a).length)return a;{let n=d[t];return n&&Object.keys(n).length?n:m==3?{}:c.getSession("router.toPage."+t)}}function s(e,t,a="push"){let n=t.path||"";const r=t.name,l=t.params||{};e[a](t),r&&(n=e.resolve({name:r}).path),d[n]=l,c.setSession("router.toPage."+n,l)}function k(e,t){s(e,{name:o+"Single",query:{id:t?.name+"/"+t?.value},params:{key:t?.key,comkey:t?.comkey}})}function v(e,t){s(e,{name:o+"Develop",query:{id:t?.value},params:{key:t?.key}})}function _(e,t){s(e,{name:o+"Edit",query:{id:t?.value},params:{key:t?.key}})}function P(e,t){s(e,{name:o+"Tests",query:{id:t?.value},params:{key:t?.key}})}function S(e,t){s(e,{name:o+"Compon",query:{id:t?.value},params:{key:t?.key}})}exports.getPageParams=h;exports.init=y;exports.toCompon=S;exports.toDevelop=v;exports.toEdit=_;exports.toPage=s;exports.toSingle=k;exports.toTests=P;
@@ -18,17 +18,17 @@ function y(t) {
18
18
  t = t || window.event, (t.ctrlKey && t.location == 82 || //ctrl+R
19
19
  t.location == 116) && s("-keydown-F5", 2);
20
20
  }
21
- let o = "__document";
21
+ let a = "__document";
22
22
  function _(t) {
23
- o = d("router") || "__document";
24
- let e = "/" + o;
25
- if (i[0].path = e, i[0].redirect = { name: o + "Index" }, i[0].children?.unshift({
23
+ a = d("router") || "__document";
24
+ let e = "/" + a;
25
+ if (i[0].path = e, i[0].name = a, i[0].redirect = { name: a + "Index" }, i[0].children?.unshift({
26
26
  path: e + "/:chapters+",
27
- redirect: { name: o + "Index" }
27
+ redirect: { name: a + "Index" }
28
28
  }), f().forEach((n) => {
29
29
  i[0].children?.push({
30
30
  path: n.value,
31
- name: o + n.name,
31
+ name: a + n.name,
32
32
  component: n.component
33
33
  });
34
34
  }), i.forEach((n) => {
@@ -49,22 +49,22 @@ function _(t) {
49
49
  }
50
50
  const u = {};
51
51
  function P(t) {
52
- let e = t.path, a = t.params;
53
- if (a && Object.keys(a).length)
54
- return a;
52
+ let e = t.path, o = t.params;
53
+ if (o && Object.keys(o).length)
54
+ return o;
55
55
  {
56
56
  let n = u[e];
57
57
  return n && Object.keys(n).length ? n : l == 3 ? {} : p("router.toPage." + e);
58
58
  }
59
59
  }
60
- function m(t, e, a = "push") {
60
+ function m(t, e, o = "push") {
61
61
  let n = e.path || "";
62
62
  const r = e.name, c = e.params || {};
63
- t[a](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
63
+ t[o](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
64
64
  }
65
65
  function w(t, e) {
66
66
  m(t, {
67
- name: o + "Single",
67
+ name: a + "Single",
68
68
  query: {
69
69
  id: e?.name + "/" + e?.value
70
70
  },
@@ -73,7 +73,7 @@ function w(t, e) {
73
73
  }
74
74
  function E(t, e) {
75
75
  m(t, {
76
- name: o + "Develop",
76
+ name: a + "Develop",
77
77
  query: {
78
78
  id: e?.value
79
79
  },
@@ -82,7 +82,7 @@ function E(t, e) {
82
82
  }
83
83
  function q(t, e) {
84
84
  m(t, {
85
- name: o + "Edit",
85
+ name: a + "Edit",
86
86
  query: {
87
87
  id: e?.value
88
88
  },
@@ -91,7 +91,7 @@ function q(t, e) {
91
91
  }
92
92
  function x(t, e) {
93
93
  m(t, {
94
- name: o + "Tests",
94
+ name: a + "Tests",
95
95
  query: {
96
96
  id: e?.value
97
97
  },
@@ -100,7 +100,7 @@ function x(t, e) {
100
100
  }
101
101
  function F(t, e) {
102
102
  m(t, {
103
- name: o + "Compon",
103
+ name: a + "Compon",
104
104
  query: {
105
105
  id: e?.value
106
106
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.87",
4
+ "version": "0.0.89",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -18,12 +18,20 @@
18
18
  "registry": "https://registry.npmjs.org/"
19
19
  },
20
20
  "devDependencies": {
21
+ "@codemirror/autocomplete": "6.18.6",
22
+ "@codemirror/lang-css": "^6.3.1",
23
+ "@codemirror/lang-html": "^6.4.9",
24
+ "@codemirror/lang-javascript": "^6.2.4",
25
+ "@codemirror/lang-json": "^6.0.2",
26
+ "@codemirror/state": "^6.5.2",
27
+ "@codemirror/view": "^6.38.1",
21
28
  "@fangzhongya/create": "0.2.34",
22
29
  "@fangzhongya/utils": "0.0.28",
23
30
  "@fangzhongya/vue-components": "0.1.18",
24
31
  "@highlightjs/vue-plugin": "^2.1.0",
25
32
  "@types/node": "^24.3.0",
26
33
  "@vitejs/plugin-vue": "^6.0.1",
34
+ "codemirror": "^6.0.2",
27
35
  "fast-glob": "^3.3.3",
28
36
  "sass": "^1.90.0",
29
37
  "ts-node": "^10.9.2",
@@ -33,15 +41,7 @@
33
41
  "vite": "^7.1.3",
34
42
  "vite-plugin-dts": "4.5.4",
35
43
  "vitest": "^3.2.4",
36
- "vue-tsc": "^3.0.5",
37
- "@codemirror/autocomplete": "6.18.6",
38
- "@codemirror/lang-css": "^6.3.1",
39
- "@codemirror/lang-html": "^6.4.9",
40
- "@codemirror/lang-javascript": "^6.2.4",
41
- "@codemirror/lang-json": "^6.0.2",
42
- "@codemirror/state": "^6.5.2",
43
- "@codemirror/view": "^6.38.1",
44
- "codemirror": "^6.0.2"
44
+ "vue-tsc": "^3.0.6"
45
45
  },
46
46
  "dependencies": {
47
47
  "comment-parser": "^1.4.1",
@@ -49,8 +49,8 @@
49
49
  "markdown-it": "^14.1.0",
50
50
  "monaco-editor": "^0.52.2",
51
51
  "prettier": "^3.6.2",
52
- "vue-router": "^4.5.1",
53
- "vue": "^3.5.18"
52
+ "vue": "^3.5.19",
53
+ "vue-router": "^4.4.5"
54
54
  },
55
55
  "types": "./dist/packages/index.d.ts",
56
56
  "main": "./dist/packages/index.cjs",