@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.
- package/dist/node/index.cjs +129 -98
- package/dist/node/index.js +129 -98
- package/dist/packages/components/compo/index.vue.cjs +1 -1
- package/dist/packages/components/compo/index.vue.js +18 -16
- package/dist/packages/components/compo/info-top.vue.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue.js +32 -0
- package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue2.js +4 -0
- package/dist/packages/components/compo/props.vue.cjs +1 -1
- package/dist/packages/components/compo/props.vue.js +44 -40
- package/dist/packages/components/compo/top.cjs +1 -1
- package/dist/packages/components/compo/top.js +69 -48
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +30 -25
- package/dist/packages/components/test/index.cjs +1 -1
- package/dist/packages/components/test/index.js +24 -22
- package/dist/packages/components/test/top.cjs +1 -1
- package/dist/packages/components/test/top.js +69 -84
- package/dist/packages/page/develop/index.vue2.cjs +1 -1
- package/dist/packages/page/develop/index.vue2.js +2 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, h } from "vue";
|
|
2
2
|
import "@fangzhongya/utils/html/htmlEscape";
|
|
3
|
-
function v(
|
|
4
|
-
let
|
|
5
|
-
const
|
|
6
|
-
|
|
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
|
-
|
|
12
|
+
l
|
|
13
13
|
)
|
|
14
|
-
),
|
|
15
|
-
},
|
|
16
|
-
|
|
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
|
-
|
|
22
|
+
i
|
|
23
23
|
)
|
|
24
|
-
),
|
|
24
|
+
), i = []);
|
|
25
25
|
};
|
|
26
|
-
return
|
|
27
|
-
const
|
|
26
|
+
return o.forEach((t) => {
|
|
27
|
+
const d = [];
|
|
28
28
|
let a = !1;
|
|
29
|
-
if (t.date && (a = !0,
|
|
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
|
-
|
|
38
|
+
n(
|
|
39
39
|
t.date.name + " " + t.date.description
|
|
40
40
|
)
|
|
41
41
|
])
|
|
42
42
|
]
|
|
43
43
|
)
|
|
44
|
-
)), t.author && (a = !0,
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
let
|
|
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
|
-
|
|
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
|
-
|
|
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 && (
|
|
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
|
-
|
|
89
|
+
d
|
|
85
90
|
)
|
|
86
|
-
)), t.
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
e(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
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
|
|
127
|
+
const H = y({
|
|
143
128
|
/**
|
|
144
129
|
* @props {Stinrg} value 插入数据
|
|
145
130
|
*/
|
|
146
131
|
props: {
|
|
147
132
|
value: Array
|
|
148
133
|
},
|
|
149
|
-
render(
|
|
150
|
-
const
|
|
151
|
-
return
|
|
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
|
-
|
|
141
|
+
i
|
|
157
142
|
);
|
|
158
143
|
}
|
|
159
144
|
});
|
|
160
145
|
export {
|
|
161
|
-
|
|
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(
|
|
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,
|
|
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
|
]),
|