@fangzhongya/vue-archive 0.0.46 → 0.0.47

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,32 +1,32 @@
1
- import { defineComponent as m, h as f } from "vue";
1
+ import { defineComponent as y, h } from "vue";
2
2
  import "@fangzhongya/utils/html/htmlEscape";
3
- function v(d, e, c) {
4
- let s = [], u = [], p = [];
5
- const r = (t) => t, n = () => {
6
- p.length > 0 && (s.push(
3
+ function v(o, e, u) {
4
+ let i = [], m = [], l = [];
5
+ const n = (t) => t, r = () => {
6
+ l.length > 0 && (i.push(
7
7
  e(
8
8
  "div",
9
9
  {
10
10
  class: "test-top-list"
11
11
  },
12
- p
12
+ l
13
13
  )
14
- ), p = []);
15
- }, l = () => {
16
- s.length > 0 && (u.push(
14
+ ), l = []);
15
+ }, c = () => {
16
+ i.length > 0 && (m.push(
17
17
  e(
18
18
  "div",
19
19
  {
20
20
  class: "test-top-division"
21
21
  },
22
- s
22
+ i
23
23
  )
24
- ), s = []);
24
+ ), i = []);
25
25
  };
26
- return d.forEach((t) => {
27
- const o = [];
26
+ return o.forEach((t) => {
27
+ const d = [];
28
28
  let a = !1;
29
- if (t.date && (a = !0, o.push(
29
+ if (t.date && (a = !0, d.push(
30
30
  e(
31
31
  "div",
32
32
  {
@@ -35,13 +35,13 @@ function v(d, e, c) {
35
35
  [
36
36
  e("span", {}, "更新时间:"),
37
37
  e("span", {}, [
38
- r(
38
+ n(
39
39
  t.date.name + " " + t.date.description
40
40
  )
41
41
  ])
42
42
  ]
43
43
  )
44
- )), t.author && (a = !0, o.push(
44
+ )), t.author && (a = !0, d.push(
45
45
  e(
46
46
  "div",
47
47
  {
@@ -50,24 +50,29 @@ function v(d, e, c) {
50
50
  [
51
51
  e("span", {}, "作者:"),
52
52
  e("span", {}, [
53
- r(
53
+ n(
54
54
  t.author.name + " " + t.author.description
55
55
  )
56
56
  ])
57
57
  ]
58
58
  )
59
59
  )), t.title && (t.title.type || t.title.name || t.title.description)) {
60
- n(), a && l();
61
- let i = t.title.type || "div";
62
- s.push(
60
+ r(), a && c();
61
+ let s = (t.title.type || "div").split("."), p = s[1] || "";
62
+ s[0] == "html" ? i.push(
63
+ e("div", {
64
+ class: "test-top-title " + p,
65
+ innerHTML: t.title.name + " " + t.title.description
66
+ })
67
+ ) : i.push(
63
68
  e(
64
- i,
69
+ s[0],
65
70
  {
66
- class: "test-top-title"
71
+ class: "test-top-title " + p
67
72
  },
68
73
  [
69
74
  e("span", {}, [
70
- r(
75
+ n(
71
76
  t.title.name + " " + t.title.description
72
77
  )
73
78
  ])
@@ -75,89 +80,69 @@ function v(d, e, c) {
75
80
  )
76
81
  );
77
82
  }
78
- if (a && (p.length > 0 && (n(), l()), s.push(
83
+ if (a && (l.length > 0 && (r(), c()), i.push(
79
84
  e(
80
85
  "div",
81
86
  {
82
87
  class: "test-top-info"
83
88
  },
84
- o
89
+ d
85
90
  )
86
- )), t.text) {
87
- let i = t.text.type || "div";
88
- p.push(
89
- e(
90
- i,
91
- {
92
- class: "test-top-text"
93
- },
94
- [
95
- e("span", {}, [
96
- r(
97
- t.text.name + " " + t.text.description
98
- )
99
- ])
100
- ]
101
- )
102
- );
103
- }
104
- if (t.proposal) {
105
- let i = t.proposal.type || "div";
106
- p.push(
107
- e(
108
- i,
109
- {
110
- class: "test-top-proposal"
111
- },
112
- [
113
- e("span", {}, [
114
- r(
115
- t.proposal.name + " " + t.proposal.description
116
- )
117
- ])
118
- ]
119
- )
120
- );
121
- }
122
- if (t.error) {
123
- let i = t.error.type || "div";
124
- p.push(
125
- e(
126
- i,
127
- {
128
- class: "test-top-error"
129
- },
130
- [
131
- e("span", {}, [
132
- r(
133
- t.error.name + " " + t.error.description
134
- )
135
- ])
136
- ]
137
- )
91
+ )), t.html) {
92
+ let s = (t.html.type || "div").split("."), p = s[1] || "";
93
+ l.push(
94
+ e(s[0], {
95
+ class: "test-top-html " + p,
96
+ innerHTML: t.html.name + " " + t.html.description
97
+ })
138
98
  );
139
99
  }
140
- }), n(), l(), u;
100
+ ["text", "proposal", "error"].forEach((s) => {
101
+ if (t[s]) {
102
+ let p = (t[s].type || "div").split("."), f = p[1] || "";
103
+ p[0] == "html" ? l.push(
104
+ e("div", {
105
+ class: "test-top-" + s + " " + f,
106
+ innerHTML: t[s].name + " " + t[s].description
107
+ })
108
+ ) : l.push(
109
+ e(
110
+ p[0],
111
+ {
112
+ class: "test-top-" + s + " " + f
113
+ },
114
+ [
115
+ e("span", {}, [
116
+ n(
117
+ t[s].name + " " + t[s].description
118
+ )
119
+ ])
120
+ ]
121
+ )
122
+ );
123
+ }
124
+ });
125
+ }), r(), c(), m;
141
126
  }
142
- const g = m({
127
+ const H = y({
143
128
  /**
144
129
  * @props {Stinrg} value 插入数据
145
130
  */
146
131
  props: {
147
132
  value: Array
148
133
  },
149
- render(d, e, c) {
150
- const s = v(c.value, f);
151
- return f(
134
+ render(o, e, u) {
135
+ const i = v(u.value, h);
136
+ return h(
152
137
  "div",
153
138
  {
154
139
  class: "test-top"
155
140
  },
156
- s
141
+ i
157
142
  );
158
143
  }
159
144
  });
160
145
  export {
161
- g as default,
146
+ H as default,
162
147
  v as getTestTopDom
163
148
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("../../components/compo/info.vue.cjs"),u=require("../../components/compo/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),r={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(l){return(o,s)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"]),e.createVNode(u,{value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
1
+ "use strict";const e=require("vue"),_=require("../../components/compo/info.vue.cjs"),u=require("../../components/compo/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),r={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(o){return(s,l)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"]),e.createVNode(u,{istop:"",value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
@@ -5,13 +5,14 @@ import r from "../../components/choice/index.vue.js";
5
5
  const c = { class: "__document-compon" }, x = /* @__PURE__ */ t({
6
6
  __name: "index",
7
7
  setup(u) {
8
- return (i, f) => (_(), n("div", c, [
8
+ return (i, s) => (_(), n("div", c, [
9
9
  e(r, null, {
10
10
  default: a((o) => [
11
11
  e(l, {
12
12
  value: o.value
13
13
  }, null, 8, ["value"]),
14
14
  e(m, {
15
+ istop: "",
15
16
  value: o.value
16
17
  }, null, 8, ["value"])
17
18
  ]),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.46",
4
+ "version": "0.0.47",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",