@fangzhongya/vue-archive 0.0.90 → 0.0.92
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/packages/index/index.vue2.cjs +1 -1
- package/dist/packages/index/index.vue2.js +8 -10
- package/dist/packages/index.cjs +1 -1
- package/dist/packages/index.d.ts +2 -0
- package/dist/packages/index.js +2 -1
- package/dist/packages/page/single/index.vue2.cjs +1 -1
- package/dist/packages/page/single/index.vue2.js +31 -37
- package/dist/packages/utils/glob.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue");;/* empty css */const t={class:"__document"},n=e.defineComponent({__name:"index",setup(
|
|
1
|
+
"use strict";const e=require("vue");;/* empty css */const t=require("vue-router"),r={class:"__document"},n=e.defineComponent({__name:"index",setup(o){return(c,s)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(t.RouterView))]))}});module.exports=n;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, createElementBlock as o, openBlock as t, createVNode as r, unref as n } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
3
|
+
import { RouterView as c } from "vue-router";
|
|
4
|
+
const _ = { class: "__document" }, u = /* @__PURE__ */ e({
|
|
4
5
|
__name: "index",
|
|
5
|
-
setup(
|
|
6
|
-
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
r(e)
|
|
10
|
-
]);
|
|
11
|
-
};
|
|
6
|
+
setup(m) {
|
|
7
|
+
return (i, p) => (t(), o("div", _, [
|
|
8
|
+
r(n(c))
|
|
9
|
+
]));
|
|
12
10
|
}
|
|
13
11
|
});
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
u as default
|
|
16
14
|
};
|
package/dist/packages/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.default=o;exports.defineConfig=u;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.init=n.init;exports.default=o;exports.defineConfig=u;
|
package/dist/packages/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { init } from './router/index';
|
|
1
2
|
import { Config } from './config';
|
|
2
3
|
import { App } from '../vue/dist/vue.esm-bundler.js';
|
|
3
4
|
import { Router } from 'vue-router';
|
|
4
5
|
export declare function defineConfig(config: Config): Config;
|
|
6
|
+
export { init };
|
|
5
7
|
declare const _default: {
|
|
6
8
|
install: (app: App, router: Router) => void;
|
|
7
9
|
};
|
package/dist/packages/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("../../components/compo/info.vue.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),d=require("../../components/compo/info.vue.cjs"),p=require("../../components/choice/index.vue.cjs"),v=require("../../components/test/index.vue.cjs"),g=require("../../utils/glob.cjs"),m=require("vue-router"),y=require("../../router/index.cjs"),N={class:"__document-com __document-single"},f={class:"single-top-li"},V={class:"single-top-li-span"},h={class:"single-top-li-span"},E={class:"single-top-li"},k={class:"single-top-li-span"},q={class:"single-test"},x=e.defineComponent({__name:"index",setup(C){const o=m.useRoute(),a=y.getPageParams(o),l=e.ref({}),s=e.ref(),i=e.ref(!1);function c(t){return t.comkey}function r(t){return(t.id||"").split("/")[0]||""}function u(){i.value=!i.value}function _(t){l.value=t,s.value=g.getTestNameObj(o.query.id+"",a.key,t.key)[0]}return(t,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(p,{"get-name":r,"get-key":c,onChange:_},{default:e.withCtx(()=>[e.createVNode(d,{value:l.value},null,8,["value"]),e.createElementVNode("div",{class:"single-top",onClick:u},[e.createElementVNode("div",f,[e.createElementVNode("div",V,e.toDisplayString(s.value?.name),1),e.createElementVNode("div",h,e.toDisplayString(s.value?.value),1)]),e.createElementVNode("div",E,[n[0]||(n[0]=e.createElementVNode("div",{class:"single-top-li-span"},"文件路径",-1)),e.createElementVNode("div",k,e.toDisplayString(s.value?.key),1)])]),e.createElementVNode("div",q,[e.createVNode(v,{value:s.value},null,8,["value"])])]),_:1})]))}});module.exports=x;
|
|
@@ -1,59 +1,53 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const D = { class: "__document-com __document-single" }, E = { class: "single-top-li" }, P = { class: "single-top-li-span" }, V = { class: "single-top-li-span" }, b = { class: "single-top-li" }, j = { class: "single-top-li-span" }, q = { class: "single-test" }, K = { class: "single-compo" }, L = /* @__PURE__ */ d({
|
|
1
|
+
import { defineComponent as v, ref as n, createElementBlock as f, openBlock as g, createVNode as i, withCtx as h, createElementVNode as e, toDisplayString as l } from "vue";
|
|
2
|
+
import k from "../../components/compo/info.vue.js";
|
|
3
|
+
import y from "../../components/choice/index.vue.js";
|
|
4
|
+
import x from "../../components/test/index.vue.js";
|
|
5
|
+
import { getTestNameObj as C } from "../../utils/glob.js";
|
|
6
|
+
import { useRoute as N } from "vue-router";
|
|
7
|
+
import { getPageParams as $ } from "../../router/index.js";
|
|
8
|
+
const w = { class: "__document-com __document-single" }, B = { class: "single-top-li" }, E = { class: "single-top-li-span" }, P = { class: "single-top-li-span" }, S = { class: "single-top-li" }, V = { class: "single-top-li-span" }, b = { class: "single-test" }, F = /* @__PURE__ */ v({
|
|
10
9
|
__name: "index",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
function
|
|
10
|
+
setup(j) {
|
|
11
|
+
const a = N(), m = $(a), c = n({}), s = n(), r = n(!1);
|
|
12
|
+
function u(t) {
|
|
14
13
|
return t.comkey;
|
|
15
14
|
}
|
|
16
15
|
function _(t) {
|
|
17
16
|
return (t.id || "").split("/")[0] || "";
|
|
18
17
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
18
|
+
function p() {
|
|
19
|
+
r.value = !r.value;
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
function d(t) {
|
|
22
|
+
c.value = t, s.value = C(
|
|
23
|
+
a.query.id + "",
|
|
25
24
|
m.key,
|
|
26
25
|
t.key
|
|
27
26
|
)[0];
|
|
28
27
|
}
|
|
29
|
-
return (t,
|
|
30
|
-
|
|
28
|
+
return (t, o) => (g(), f("div", w, [
|
|
29
|
+
i(y, {
|
|
31
30
|
"get-name": _,
|
|
32
|
-
"get-key":
|
|
33
|
-
onChange:
|
|
31
|
+
"get-key": u,
|
|
32
|
+
onChange: d
|
|
34
33
|
}, {
|
|
35
34
|
default: h(() => [
|
|
36
|
-
|
|
35
|
+
i(k, { value: c.value }, null, 8, ["value"]),
|
|
37
36
|
e("div", {
|
|
38
37
|
class: "single-top",
|
|
39
|
-
onClick:
|
|
38
|
+
onClick: p
|
|
40
39
|
}, [
|
|
41
|
-
e("div",
|
|
42
|
-
e("div",
|
|
43
|
-
e("div",
|
|
40
|
+
e("div", B, [
|
|
41
|
+
e("div", E, l(s.value?.name), 1),
|
|
42
|
+
e("div", P, l(s.value?.value), 1)
|
|
44
43
|
]),
|
|
45
|
-
e("div",
|
|
46
|
-
|
|
47
|
-
e("div",
|
|
44
|
+
e("div", S, [
|
|
45
|
+
o[0] || (o[0] = e("div", { class: "single-top-li-span" }, "文件路径", -1)),
|
|
46
|
+
e("div", V, l(s.value?.key), 1)
|
|
48
47
|
])
|
|
49
48
|
]),
|
|
50
|
-
e("div",
|
|
51
|
-
|
|
52
|
-
]),
|
|
53
|
-
k(e("div", K, [
|
|
54
|
-
o(N, { value: n.value }, null, 8, ["value"])
|
|
55
|
-
], 512), [
|
|
56
|
-
[y, i.value]
|
|
49
|
+
e("div", b, [
|
|
50
|
+
i(x, { value: s.value }, null, 8, ["value"])
|
|
57
51
|
])
|
|
58
52
|
]),
|
|
59
53
|
_: 1
|
|
@@ -62,5 +56,5 @@ const D = { class: "__document-com __document-single" }, E = { class: "single-to
|
|
|
62
56
|
}
|
|
63
57
|
});
|
|
64
58
|
export {
|
|
65
|
-
|
|
59
|
+
F as default
|
|
66
60
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getConfig as A } from "../config.js";
|
|
2
2
|
import { getVueTexts as H } from "@fangzhongya/utils/html/getVueText";
|
|
3
|
-
import { getRawValue as R, isComprops as K, isCurprops as S,
|
|
3
|
+
import { getRawValue as R, isComprops as K, isCurprops as S, getComponentsArr as q, defaultExtensions as E } from "./common.js";
|
|
4
4
|
import { mergeObject as D } from "@fangzhongya/utils/basic/object/mergeObject";
|
|
5
5
|
import "@fangzhongya/utils/basic/array/toggleArray";
|
|
6
6
|
import { humpToLine as C } from "@fangzhongya/utils/name/humpToLine";
|