@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.
@@ -2594,6 +2594,9 @@ function addTags(tag, obj) {
2594
2594
  case "text":
2595
2595
  addTitle(obj);
2596
2596
  return true;
2597
+ case "html":
2598
+ addTitle(obj);
2599
+ return true;
2597
2600
  default:
2598
2601
  return false;
2599
2602
  }
@@ -2726,22 +2729,32 @@ function getTopDom(props2, h4, isZy) {
2726
2729
  if (is) {
2727
2730
  setDivision();
2728
2731
  }
2729
- let type = obj.title.type || "div";
2730
- doms.push(
2731
- h4(
2732
- type,
2733
- {
2734
- class: "compo-top-title"
2735
- },
2736
- [
2737
- h4("span", {}, [
2738
- getValue(
2739
- obj.title.name + " " + obj.title.description
2740
- )
2741
- ])
2742
- ]
2743
- )
2744
- );
2732
+ let type = (obj.title.type || "div").split(".");
2733
+ let c = type[1] || "";
2734
+ if (type[0] == "html") {
2735
+ doms.push(
2736
+ h4("div", {
2737
+ class: "compo-top-title " + c,
2738
+ innerHTML: obj.title.name + " " + obj.title.description
2739
+ })
2740
+ );
2741
+ } else {
2742
+ doms.push(
2743
+ h4(
2744
+ type[0],
2745
+ {
2746
+ class: "compo-top-title " + c
2747
+ },
2748
+ [
2749
+ h4("span", {}, [
2750
+ getValue(
2751
+ obj.title.name + " " + obj.title.description
2752
+ )
2753
+ ])
2754
+ ]
2755
+ )
2756
+ );
2757
+ }
2745
2758
  }
2746
2759
  if (is) {
2747
2760
  if (list.length > 0) {
@@ -2758,24 +2771,46 @@ function getTopDom(props2, h4, isZy) {
2758
2771
  )
2759
2772
  );
2760
2773
  }
2761
- if (obj.text) {
2762
- let type = obj.text.type || "div";
2774
+ if (obj.html) {
2775
+ let type = (obj.html.type || "div").split(".");
2776
+ let c = type[1] || "";
2763
2777
  list.push(
2764
- h4(
2765
- type,
2766
- {
2767
- class: "compo-top-text"
2768
- },
2769
- [
2770
- h4("span", {}, [
2771
- getValue(
2772
- obj.text.name + " " + obj.text.description
2773
- )
2774
- ])
2775
- ]
2776
- )
2778
+ h4(type[0], {
2779
+ class: "compo-top-html " + c,
2780
+ innerHTML: obj.html.name + " " + obj.html.description
2781
+ })
2777
2782
  );
2778
2783
  }
2784
+ ["text"].forEach((v) => {
2785
+ if (obj[v]) {
2786
+ let type = (obj[v].type || "div").split(".");
2787
+ let c = type[1] || "";
2788
+ if (type[0] == "html") {
2789
+ list.push(
2790
+ h4("div", {
2791
+ class: "compo-top-" + v + " " + c,
2792
+ innerHTML: obj[v].name + " " + obj[v].description
2793
+ })
2794
+ );
2795
+ } else {
2796
+ list.push(
2797
+ h4(
2798
+ type[0],
2799
+ {
2800
+ class: "compo-top-" + v + " " + c
2801
+ },
2802
+ [
2803
+ h4("span", {}, [
2804
+ getValue(
2805
+ obj[v].name + " " + obj[v].description
2806
+ )
2807
+ ])
2808
+ ]
2809
+ )
2810
+ );
2811
+ }
2812
+ }
2813
+ });
2779
2814
  });
2780
2815
  setTitle3();
2781
2816
  setDivision();
@@ -2887,22 +2922,32 @@ function getTestTopDom(props2, h4, isZy) {
2887
2922
  if (is) {
2888
2923
  setDivision();
2889
2924
  }
2890
- let type = obj.title.type || "div";
2891
- doms.push(
2892
- h4(
2893
- type,
2894
- {
2895
- class: "test-top-title"
2896
- },
2897
- [
2898
- h4("span", {}, [
2899
- getValue(
2900
- obj.title.name + " " + obj.title.description
2901
- )
2902
- ])
2903
- ]
2904
- )
2905
- );
2925
+ let type = (obj.title.type || "div").split(".");
2926
+ let c = type[1] || "";
2927
+ if (type[0] == "html") {
2928
+ doms.push(
2929
+ h4("div", {
2930
+ class: "test-top-title " + c,
2931
+ innerHTML: obj.title.name + " " + obj.title.description
2932
+ })
2933
+ );
2934
+ } else {
2935
+ doms.push(
2936
+ h4(
2937
+ type[0],
2938
+ {
2939
+ class: "test-top-title " + c
2940
+ },
2941
+ [
2942
+ h4("span", {}, [
2943
+ getValue(
2944
+ obj.title.name + " " + obj.title.description
2945
+ )
2946
+ ])
2947
+ ]
2948
+ )
2949
+ );
2950
+ }
2906
2951
  }
2907
2952
  if (is) {
2908
2953
  if (list.length > 0) {
@@ -2919,60 +2964,46 @@ function getTestTopDom(props2, h4, isZy) {
2919
2964
  )
2920
2965
  );
2921
2966
  }
2922
- if (obj.text) {
2923
- let type = obj.text.type || "div";
2967
+ if (obj.html) {
2968
+ let type = (obj.html.type || "div").split(".");
2969
+ let c = type[1] || "";
2924
2970
  list.push(
2925
- h4(
2926
- type,
2927
- {
2928
- class: "test-top-text"
2929
- },
2930
- [
2931
- h4("span", {}, [
2932
- getValue(
2933
- obj.text.name + " " + obj.text.description
2934
- )
2935
- ])
2936
- ]
2937
- )
2938
- );
2939
- }
2940
- if (obj.proposal) {
2941
- let type = obj.proposal.type || "div";
2942
- list.push(
2943
- h4(
2944
- type,
2945
- {
2946
- class: "test-top-proposal"
2947
- },
2948
- [
2949
- h4("span", {}, [
2950
- getValue(
2951
- obj.proposal.name + " " + obj.proposal.description
2952
- )
2953
- ])
2954
- ]
2955
- )
2956
- );
2957
- }
2958
- if (obj.error) {
2959
- let type = obj.error.type || "div";
2960
- list.push(
2961
- h4(
2962
- type,
2963
- {
2964
- class: "test-top-error"
2965
- },
2966
- [
2967
- h4("span", {}, [
2968
- getValue(
2969
- obj.error.name + " " + obj.error.description
2970
- )
2971
- ])
2972
- ]
2973
- )
2971
+ h4(type[0], {
2972
+ class: "test-top-html " + c,
2973
+ innerHTML: obj.html.name + " " + obj.html.description
2974
+ })
2974
2975
  );
2975
2976
  }
2977
+ ["text", "proposal", "error"].forEach((v) => {
2978
+ if (obj[v]) {
2979
+ let type = (obj[v].type || "div").split(".");
2980
+ let c = type[1] || "";
2981
+ if (type[0] == "html") {
2982
+ list.push(
2983
+ h4("div", {
2984
+ class: "test-top-" + v + " " + c,
2985
+ innerHTML: obj[v].name + " " + obj[v].description
2986
+ })
2987
+ );
2988
+ } else {
2989
+ list.push(
2990
+ h4(
2991
+ type[0],
2992
+ {
2993
+ class: "test-top-" + v + " " + c
2994
+ },
2995
+ [
2996
+ h4("span", {}, [
2997
+ getValue(
2998
+ obj[v].name + " " + obj[v].description
2999
+ )
3000
+ ])
3001
+ ]
3002
+ )
3003
+ );
3004
+ }
3005
+ }
3006
+ });
2976
3007
  });
2977
3008
  setTitle3();
2978
3009
  setDivision();
@@ -2579,6 +2579,9 @@ function addTags(tag, obj) {
2579
2579
  case "text":
2580
2580
  addTitle(obj);
2581
2581
  return true;
2582
+ case "html":
2583
+ addTitle(obj);
2584
+ return true;
2582
2585
  default:
2583
2586
  return false;
2584
2587
  }
@@ -2711,22 +2714,32 @@ function getTopDom(props2, h4, isZy) {
2711
2714
  if (is) {
2712
2715
  setDivision();
2713
2716
  }
2714
- let type = obj.title.type || "div";
2715
- doms.push(
2716
- h4(
2717
- type,
2718
- {
2719
- class: "compo-top-title"
2720
- },
2721
- [
2722
- h4("span", {}, [
2723
- getValue(
2724
- obj.title.name + " " + obj.title.description
2725
- )
2726
- ])
2727
- ]
2728
- )
2729
- );
2717
+ let type = (obj.title.type || "div").split(".");
2718
+ let c = type[1] || "";
2719
+ if (type[0] == "html") {
2720
+ doms.push(
2721
+ h4("div", {
2722
+ class: "compo-top-title " + c,
2723
+ innerHTML: obj.title.name + " " + obj.title.description
2724
+ })
2725
+ );
2726
+ } else {
2727
+ doms.push(
2728
+ h4(
2729
+ type[0],
2730
+ {
2731
+ class: "compo-top-title " + c
2732
+ },
2733
+ [
2734
+ h4("span", {}, [
2735
+ getValue(
2736
+ obj.title.name + " " + obj.title.description
2737
+ )
2738
+ ])
2739
+ ]
2740
+ )
2741
+ );
2742
+ }
2730
2743
  }
2731
2744
  if (is) {
2732
2745
  if (list.length > 0) {
@@ -2743,24 +2756,46 @@ function getTopDom(props2, h4, isZy) {
2743
2756
  )
2744
2757
  );
2745
2758
  }
2746
- if (obj.text) {
2747
- let type = obj.text.type || "div";
2759
+ if (obj.html) {
2760
+ let type = (obj.html.type || "div").split(".");
2761
+ let c = type[1] || "";
2748
2762
  list.push(
2749
- h4(
2750
- type,
2751
- {
2752
- class: "compo-top-text"
2753
- },
2754
- [
2755
- h4("span", {}, [
2756
- getValue(
2757
- obj.text.name + " " + obj.text.description
2758
- )
2759
- ])
2760
- ]
2761
- )
2763
+ h4(type[0], {
2764
+ class: "compo-top-html " + c,
2765
+ innerHTML: obj.html.name + " " + obj.html.description
2766
+ })
2762
2767
  );
2763
2768
  }
2769
+ ["text"].forEach((v) => {
2770
+ if (obj[v]) {
2771
+ let type = (obj[v].type || "div").split(".");
2772
+ let c = type[1] || "";
2773
+ if (type[0] == "html") {
2774
+ list.push(
2775
+ h4("div", {
2776
+ class: "compo-top-" + v + " " + c,
2777
+ innerHTML: obj[v].name + " " + obj[v].description
2778
+ })
2779
+ );
2780
+ } else {
2781
+ list.push(
2782
+ h4(
2783
+ type[0],
2784
+ {
2785
+ class: "compo-top-" + v + " " + c
2786
+ },
2787
+ [
2788
+ h4("span", {}, [
2789
+ getValue(
2790
+ obj[v].name + " " + obj[v].description
2791
+ )
2792
+ ])
2793
+ ]
2794
+ )
2795
+ );
2796
+ }
2797
+ }
2798
+ });
2764
2799
  });
2765
2800
  setTitle3();
2766
2801
  setDivision();
@@ -2872,22 +2907,32 @@ function getTestTopDom(props2, h4, isZy) {
2872
2907
  if (is) {
2873
2908
  setDivision();
2874
2909
  }
2875
- let type = obj.title.type || "div";
2876
- doms.push(
2877
- h4(
2878
- type,
2879
- {
2880
- class: "test-top-title"
2881
- },
2882
- [
2883
- h4("span", {}, [
2884
- getValue(
2885
- obj.title.name + " " + obj.title.description
2886
- )
2887
- ])
2888
- ]
2889
- )
2890
- );
2910
+ let type = (obj.title.type || "div").split(".");
2911
+ let c = type[1] || "";
2912
+ if (type[0] == "html") {
2913
+ doms.push(
2914
+ h4("div", {
2915
+ class: "test-top-title " + c,
2916
+ innerHTML: obj.title.name + " " + obj.title.description
2917
+ })
2918
+ );
2919
+ } else {
2920
+ doms.push(
2921
+ h4(
2922
+ type[0],
2923
+ {
2924
+ class: "test-top-title " + c
2925
+ },
2926
+ [
2927
+ h4("span", {}, [
2928
+ getValue(
2929
+ obj.title.name + " " + obj.title.description
2930
+ )
2931
+ ])
2932
+ ]
2933
+ )
2934
+ );
2935
+ }
2891
2936
  }
2892
2937
  if (is) {
2893
2938
  if (list.length > 0) {
@@ -2904,60 +2949,46 @@ function getTestTopDom(props2, h4, isZy) {
2904
2949
  )
2905
2950
  );
2906
2951
  }
2907
- if (obj.text) {
2908
- let type = obj.text.type || "div";
2952
+ if (obj.html) {
2953
+ let type = (obj.html.type || "div").split(".");
2954
+ let c = type[1] || "";
2909
2955
  list.push(
2910
- h4(
2911
- type,
2912
- {
2913
- class: "test-top-text"
2914
- },
2915
- [
2916
- h4("span", {}, [
2917
- getValue(
2918
- obj.text.name + " " + obj.text.description
2919
- )
2920
- ])
2921
- ]
2922
- )
2923
- );
2924
- }
2925
- if (obj.proposal) {
2926
- let type = obj.proposal.type || "div";
2927
- list.push(
2928
- h4(
2929
- type,
2930
- {
2931
- class: "test-top-proposal"
2932
- },
2933
- [
2934
- h4("span", {}, [
2935
- getValue(
2936
- obj.proposal.name + " " + obj.proposal.description
2937
- )
2938
- ])
2939
- ]
2940
- )
2941
- );
2942
- }
2943
- if (obj.error) {
2944
- let type = obj.error.type || "div";
2945
- list.push(
2946
- h4(
2947
- type,
2948
- {
2949
- class: "test-top-error"
2950
- },
2951
- [
2952
- h4("span", {}, [
2953
- getValue(
2954
- obj.error.name + " " + obj.error.description
2955
- )
2956
- ])
2957
- ]
2958
- )
2956
+ h4(type[0], {
2957
+ class: "test-top-html " + c,
2958
+ innerHTML: obj.html.name + " " + obj.html.description
2959
+ })
2959
2960
  );
2960
2961
  }
2962
+ ["text", "proposal", "error"].forEach((v) => {
2963
+ if (obj[v]) {
2964
+ let type = (obj[v].type || "div").split(".");
2965
+ let c = type[1] || "";
2966
+ if (type[0] == "html") {
2967
+ list.push(
2968
+ h4("div", {
2969
+ class: "test-top-" + v + " " + c,
2970
+ innerHTML: obj[v].name + " " + obj[v].description
2971
+ })
2972
+ );
2973
+ } else {
2974
+ list.push(
2975
+ h4(
2976
+ type[0],
2977
+ {
2978
+ class: "test-top-" + v + " " + c
2979
+ },
2980
+ [
2981
+ h4("span", {}, [
2982
+ getValue(
2983
+ obj[v].name + " " + obj[v].description
2984
+ )
2985
+ ])
2986
+ ]
2987
+ )
2988
+ );
2989
+ }
2990
+ }
2991
+ });
2961
2992
  });
2962
2993
  setTitle3();
2963
2994
  setDivision();
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../use/index.cjs"),_=require("./props.vue.cjs"),k=require("../../config.cjs"),f=require("../md/index.vue.cjs");require("./index.cjs");const m=require("../../utils/glob.cjs"),g={class:"compo"},B={key:0,class:"compo-md"},y={key:0,class:"compo-md-list"},C={key:1,class:"compo-use"},h=e.defineComponent({__name:"index",props:{value:Object},setup(i){const t=i,p=k.getConfig("useparam"),r=e.ref(""),c=e.reactive({md:!0}),o=e.ref([]),a=e.ref();function v(n){a.value=n}e.watch(()=>t.value,()=>{l()});function l(){t.value?.key&&(m.getLocalTextComponents(t.value?.key).then(n=>{r.value=n}),o.value=m.getKeyMds(t.value?.key)||[])}return l(),(n,u)=>(e.openBlock(),e.createElementBlock("div",g,[o.value&&o.value.length?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{onClick:u[0]||(u[0]=s=>c.md=!c.md),class:"compo-md-name"},"说明文档"),c.md?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createBlock(f,{value:s},null,8,["value"]))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createVNode(_,{onChange:v,value:r.value},null,8,["value"]),e.unref(p)?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(d),{value:t.value,param:a.value},null,8,["value","param"])])):e.createCommentVNode("",!0)]))}});module.exports=h;
1
+ "use strict";const e=require("vue"),d=require("../use/index.cjs"),_=require("./props.vue.cjs"),k=require("../../config.cjs"),B=require("../md/index.vue.cjs");require("./index.cjs");const i=require("../../utils/glob.cjs"),f={class:"compo"},g={key:0,class:"compo-md"},y={key:0,class:"compo-md-list"},C={key:1,class:"compo-use"},h=e.defineComponent({__name:"index",props:{value:Object,istop:Boolean},setup(m){const t=m,p=k.getConfig("useparam"),r=e.ref(""),c=e.reactive({md:!0}),o=e.ref([]),a=e.ref();function v(n){a.value=n}e.watch(()=>t.value,()=>{l()});function l(){t.value?.key&&(i.getLocalTextComponents(t.value?.key).then(n=>{r.value=n}),o.value=i.getKeyMds(t.value?.key)||[])}return l(),(n,s)=>(e.openBlock(),e.createElementBlock("div",f,[o.value&&o.value.length?(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",{onClick:s[0]||(s[0]=u=>c.md=!c.md),class:"compo-md-name"},"说明文档"),c.md?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,u=>(e.openBlock(),e.createBlock(B,{value:u},null,8,["value"]))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createVNode(_,{istop:t.istop,onChange:v,value:r.value},null,8,["istop","value"]),e.unref(p)?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(d),{value:t.value,param:a.value},null,8,["value","param"])])):e.createCommentVNode("",!0)]))}});module.exports=h;
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, ref as l, reactive as h, watch as y, createElementBlock as o, openBlock as e, createCommentVNode as m, createVNode as p, createElementVNode as C, Fragment as x, renderList as B, createBlock as N, unref as d } from "vue";
1
+ import { defineComponent as g, ref as l, reactive as h, watch as y, createElementBlock as o, openBlock as t, createCommentVNode as m, createVNode as v, createElementVNode as C, Fragment as x, renderList as B, createBlock as N, unref as d } from "vue";
2
2
  import V from "../use/index.js";
3
3
  import $ from "./props.vue.js";
4
4
  import { getConfig as E } from "../../config.js";
@@ -17,43 +17,45 @@ const w = { class: "compo" }, D = {
17
17
  }, G = /* @__PURE__ */ g({
18
18
  __name: "index",
19
19
  props: {
20
- value: Object
20
+ value: Object,
21
+ istop: Boolean
21
22
  },
22
23
  setup(f) {
23
- const t = f, _ = E("useparam"), r = l(""), s = h({
24
+ const e = f, _ = E("useparam"), r = l(""), s = h({
24
25
  md: !0
25
26
  }), a = l([]), u = l();
26
27
  function k(n) {
27
28
  u.value = n;
28
29
  }
29
30
  y(
30
- () => t.value,
31
+ () => e.value,
31
32
  () => {
32
33
  c();
33
34
  }
34
35
  );
35
36
  function c() {
36
- t.value?.key && (b(t.value?.key).then((n) => {
37
+ e.value?.key && (b(e.value?.key).then((n) => {
37
38
  r.value = n;
38
- }), a.value = j(t.value?.key) || []);
39
+ }), a.value = j(e.value?.key) || []);
39
40
  }
40
- return c(), (n, i) => (e(), o("div", w, [
41
- a.value && a.value.length ? (e(), o("div", D, [
41
+ return c(), (n, i) => (t(), o("div", w, [
42
+ a.value && a.value.length ? (t(), o("div", D, [
42
43
  C("div", {
43
- onClick: i[0] || (i[0] = (v) => s.md = !s.md),
44
+ onClick: i[0] || (i[0] = (p) => s.md = !s.md),
44
45
  class: "compo-md-name"
45
46
  }, "说明文档"),
46
- s.md ? (e(), o("div", F, [
47
- (e(!0), o(x, null, B(a.value, (v) => (e(), N(L, { value: v }, null, 8, ["value"]))), 256))
47
+ s.md ? (t(), o("div", F, [
48
+ (t(!0), o(x, null, B(a.value, (p) => (t(), N(L, { value: p }, null, 8, ["value"]))), 256))
48
49
  ])) : m("", !0)
49
50
  ])) : m("", !0),
50
- p($, {
51
+ v($, {
52
+ istop: e.istop,
51
53
  onChange: k,
52
54
  value: r.value
53
- }, null, 8, ["value"]),
54
- d(_) ? (e(), o("div", K, [
55
- p(d(V), {
56
- value: t.value,
55
+ }, null, 8, ["istop", "value"]),
56
+ d(_) ? (t(), o("div", K, [
57
+ v(d(V), {
58
+ value: e.value,
57
59
  param: u.value
58
60
  }, null, 8, ["value", "param"])
59
61
  ])) : m("", !0)
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),r=require("./top.cjs"),a=require("./index.cjs"),l=require("../../utils/glob.cjs"),i={class:"info-top"},p=e.defineComponent({__name:"info-top",props:{value:{type:Object}},setup(u){const t=u,o=e.ref([]);function n(){t.value?.key&&l.getLocalTextComponents(t.value?.key).then(c=>{const s=a.getNotesText(c);o.value=s.titles})}return e.watch(()=>t.value,()=>{n()}),n(),(c,s)=>(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(e.unref(r.default),{value:o.value},null,8,["value"])]))}});module.exports=p;
@@ -0,0 +1,32 @@
1
+ import { defineComponent as c, ref as l, watch as p, createElementBlock as s, openBlock as u, createVNode as i, unref as f } from "vue";
2
+ import m from "./top.js";
3
+ import { getNotesText as v } from "./index.js";
4
+ import { getLocalTextComponents as _ } from "../../utils/glob.js";
5
+ const d = { class: "info-top" }, y = /* @__PURE__ */ c({
6
+ __name: "info-top",
7
+ props: {
8
+ value: {
9
+ type: Object
10
+ }
11
+ },
12
+ setup(r) {
13
+ const e = r, t = l([]);
14
+ function o() {
15
+ e.value?.key && _(e.value?.key).then((n) => {
16
+ const a = v(n);
17
+ t.value = a.titles;
18
+ });
19
+ }
20
+ return p(
21
+ () => e.value,
22
+ () => {
23
+ o();
24
+ }
25
+ ), o(), (n, a) => (u(), s("div", d, [
26
+ i(f(m), { value: t.value }, null, 8, ["value"])
27
+ ]));
28
+ }
29
+ });
30
+ export {
31
+ y as default
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./info-top.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./info-top.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),f=require("./top.cjs"),n=require("./ftable.vue.cjs"),l=require("./index.cjs"),N={class:"compo"},V={class:"compo-top"},x={class:"compo-li compo-props"},B={class:"compo-li compo-emits"},C={class:"compo-li compo-expose"},E={class:"compo-li compo-slot"},g=e.defineComponent({__name:"props",props:{value:String},emits:["change"],setup(d,{emit:k}){const r=d,_=k,u=e.ref([]),t=e.reactive({props:!0,expose:!0,emits:!0,slot:!0,top:!0}),p=e.ref([]),i=e.ref([]),a=e.ref([]),m=e.ref([]);function v(){if(r.value){const s=l.getNotesText(r.value);u.value=s.titles,p.value=s.propss,m.value=s.slots,i.value=s.emitss,a.value=s.exposes,_("change",s)}}return e.watch(()=>r.value,()=>{v()}),v(),(s,o)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",V,[t.top?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,value:u.value},null,8,["value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",x,[e.createElementVNode("h4",{onClick:o[0]||(o[0]=c=>t.props=!t.props)}," 组件属性 "),t.props?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tprops),value:p.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",B,[e.createElementVNode("h4",{onClick:o[1]||(o[1]=c=>t.emits=!t.emits)}," 组件事件 "),t.emits?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.temits),value:i.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",C,[e.createElementVNode("h4",{onClick:o[2]||(o[2]=c=>t.expose=!t.expose)}," 组件方法 "),t.expose?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.texpose),value:a.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",E,[e.createElementVNode("h4",{onClick:o[3]||(o[3]=c=>t.slot=!t.slot)},"组件插槽"),t.slot?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tslot),value:m.value},null,8,["list","value"])):e.createCommentVNode("",!0)])]))}});module.exports=g;
1
+ "use strict";const e=require("vue"),B=require("./top.cjs"),n=require("./ftable.vue.cjs"),l=require("./index.cjs"),N={class:"compo"},_={key:0,class:"compo-top"},V={class:"compo-li compo-props"},x={class:"compo-li compo-emits"},C={class:"compo-li compo-expose"},E={class:"compo-li compo-slot"},y=e.defineComponent({__name:"props",props:{value:String,istop:Boolean},emits:["change"],setup(u,{emit:k}){const c=u,f=k,i=e.ref([]),t=e.reactive({props:!0,expose:!0,emits:!0,slot:!0,top:!0}),p=e.ref([]),a=e.ref([]),m=e.ref([]),v=e.ref([]);function d(){if(c.value){const s=l.getNotesText(c.value);i.value=s.titles,p.value=s.propss,v.value=s.slots,a.value=s.emitss,m.value=s.exposes,f("change",s)}}return e.watch(()=>c.value,()=>{d()}),d(),(s,o)=>(e.openBlock(),e.createElementBlock("div",N,[u.istop?(e.openBlock(),e.createElementBlock("div",_,[t.top?(e.openBlock(),e.createBlock(e.unref(B.default),{key:0,value:i.value},null,8,["value"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[e.createElementVNode("h4",{onClick:o[0]||(o[0]=r=>t.props=!t.props)},"组件属性"),t.props?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tprops),value:p.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",x,[e.createElementVNode("h4",{onClick:o[1]||(o[1]=r=>t.emits=!t.emits)},"组件事件"),t.emits?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.temits),value:a.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",C,[e.createElementVNode("h4",{onClick:o[2]||(o[2]=r=>t.expose=!t.expose)},"组件方法"),t.expose?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.texpose),value:m.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",E,[e.createElementVNode("h4",{onClick:o[3]||(o[3]=r=>t.slot=!t.slot)},"组件插槽"),t.slot?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tslot),value:v.value},null,8,["list","value"])):e.createCommentVNode("",!0)])]))}});module.exports=y;