@fangzhongya/vue-archive 0.0.87 → 0.0.88

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.
@@ -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";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.88",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",