@fangzhongya/vue-archive 0.0.55 → 0.0.56

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.
Files changed (45) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/packages/components/choice/index.vue.cjs +1 -1
  3. package/dist/packages/components/code/highlight.vue.cjs +1 -1
  4. package/dist/packages/components/code/index.vue.cjs +1 -1
  5. package/dist/packages/components/compo/code.vue.cjs +1 -0
  6. package/dist/packages/components/compo/code.vue.js +21 -0
  7. package/dist/packages/components/compo/code.vue3.cjs +1 -0
  8. package/dist/packages/components/compo/code.vue3.js +5 -0
  9. package/dist/packages/components/main/index.vue.cjs +1 -1
  10. package/dist/packages/components/main/index.vue.js +36 -32
  11. package/dist/packages/components/test/index.vue.cjs +1 -1
  12. package/dist/packages/components/use/code.d.ts +25 -17
  13. package/dist/packages/components/use/code.vue.cjs +1 -0
  14. package/dist/packages/components/use/code.vue.js +66 -0
  15. package/dist/packages/components/use/code.vue2.cjs +1 -0
  16. package/dist/packages/components/use/code.vue2.js +4 -0
  17. package/dist/packages/components/use/edit.cjs +18 -0
  18. package/dist/packages/components/use/edit.d.ts +32 -0
  19. package/dist/packages/components/use/edit.js +187 -0
  20. package/dist/packages/components/use/effect.d.ts +18 -0
  21. package/dist/packages/components/use/effect.vue.cjs +1 -0
  22. package/dist/packages/components/use/effect.vue.js +12 -0
  23. package/dist/packages/components/use/retrie/array/index.vue.cjs +1 -1
  24. package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -1
  25. package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
  26. package/dist/packages/components/use/retrie/index.d.ts +1 -1
  27. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
  28. package/dist/packages/components/use/retrie/input/text.vue.cjs +1 -1
  29. package/dist/packages/components/use/retrie/object/index.vue.cjs +1 -1
  30. package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -1
  31. package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
  32. package/dist/packages/components/use/set-code.vue.cjs +1 -1
  33. package/dist/packages/components/use/set-code.vue.js +17 -58
  34. package/dist/packages/page/compon/index.vue2.cjs +1 -1
  35. package/dist/packages/page/develop/index.vue2.cjs +1 -1
  36. package/dist/packages/page/edit/index.vue.cjs +1 -0
  37. package/dist/packages/page/edit/index.vue.js +4 -0
  38. package/dist/packages/page/edit/index.vue2.cjs +1 -0
  39. package/dist/packages/page/edit/index.vue2.js +23 -0
  40. package/dist/packages/router/file.cjs +1 -1
  41. package/dist/packages/router/file.js +5 -4
  42. package/dist/packages/router/index.cjs +1 -1
  43. package/dist/packages/router/index.d.ts +1 -0
  44. package/dist/packages/router/index.js +55 -45
  45. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -10,4 +10,4 @@
10
10
  Updated for @stackoverflow/stacks v0.64.0
11
11
  Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
12
12
  Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
13
- */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 20px 20px 10px}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .use .codemirror-div{background-color:var(--bg-code)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .box-url .box-url-box .box-div-but{padding:10px;cursor:pointer;color:var(--but-cor)}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}
13
+ */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}.code-edit{display:flex}.code-edit .edit-input{flex:1}.code-edit .edit-effect{flex:1;margin-right:10px}:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 20px 20px 10px}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .use .codemirror-div{background-color:var(--bg-code)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .box-url .box-url-box .box-div-but{padding:10px;cursor:pointer;color:var(--but-cor)}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("./choice.vue.cjs"),p=require("../../utils/glob.cjs"),h=require("../../utils/common.cjs"),g=require("vue-router"),k=require("../../router/index.cjs"),y={class:"__document-compon"},f={key:0,class:"__document-compon-choice"},B={key:0},q={key:1},C={key:2},E=e.defineComponent({__name:"index",props:{getName:{type:Function,default(l){return l.id}},getKey:{type:Function,default(l){return l.key}}},emits:["change"],setup(l,{emit:v}){const r=l,u=g.useRoute(),m=k.getPageParams(u),t=e.ref(),n=e.ref([]),c=e.ref(!1),a=v;e.watch(()=>u.query.id,()=>{s()});function s(){let o=p.getCompoName(r.getName(u.query),!0,r.getKey(m))||[];n.value=[],o.length==1?(t.value=o[0],a("change",t.value)):o.length==0?(t.value=void 0,a("change",t.value)):(c.value=!0,n.value=o)}function d(o){c.value=!1,t.value=o,a("change",t.value),h.setAsideKey(o.key)}return s(),(o,i)=>(e.openBlock(),e.createElementBlock("div",y,[n.value.length?(e.openBlock(),e.createElementBlock("div",f,[c.value?(e.openBlock(),e.createBlock(_,{key:0,onChange:d,value:n.value,choice:t.value},null,8,["value","choice"])):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:i[0]||(i[0]=N=>c.value=!c.value),class:"__document-compon-choice-but"},e.toDisplayString(c.value?"展开":"隐藏"),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["__document-compon-body",{choice:n.value.length}])},[t.value?.key?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(o.$slots,"default",{value:t.value})])):n.value.length?(e.openBlock(),e.createElementBlock("div",q," 请先选择要查看的组件 ")):(e.openBlock(),e.createElementBlock("div",C," 没有查询到"+e.toDisplayString(e.unref(u).query.id)+"组件 ",1))],2)]))}});module.exports=E;
1
+ "use strict";const e=require("vue"),_=require("./choice.vue.cjs"),p=require("../../utils/glob.cjs"),h=require("../../utils/common.cjs"),g=require("vue-router"),k=require("../../router/index.cjs"),y={class:"__document-compon"},f={key:0,class:"__document-compon-choice"},B={key:0},q={key:1},C={key:2},E=e.defineComponent({__name:"index",props:{getName:{type:Function,default(l){return l.id}},getKey:{type:Function,default(l){return l.key}}},emits:["change"],setup(l,{emit:v}){const s=l,u=g.useRoute(),m=k.getPageParams(u),t=e.ref(),n=e.ref([]),c=e.ref(!1),a=v;e.watch(()=>u.query.id,()=>{r()});function r(){let o=p.getCompoName(s.getName(u.query),!0,s.getKey(m))||[];n.value=[],o.length==1?(t.value=o[0],a("change",t.value)):o.length==0?(t.value=void 0,a("change",t.value)):(c.value=!0,n.value=o)}function d(o){c.value=!1,t.value=o,a("change",t.value),h.setAsideKey(o.key)}return r(),(o,i)=>(e.openBlock(),e.createElementBlock("div",y,[n.value.length?(e.openBlock(),e.createElementBlock("div",f,[c.value?(e.openBlock(),e.createBlock(_,{key:0,onChange:d,value:n.value,choice:t.value},null,8,["value","choice"])):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:i[0]||(i[0]=N=>c.value=!c.value),class:"__document-compon-choice-but"},e.toDisplayString(c.value?"展开":"隐藏"),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["__document-compon-body",{choice:n.value.length}])},[t.value?.key?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(o.$slots,"default",{value:t.value})])):n.value.length?(e.openBlock(),e.createElementBlock("div",q," 请先选择要查看的组件 ")):(e.openBlock(),e.createElementBlock("div",C," 没有查询到"+e.toDisplayString(e.unref(u).query.id)+"组件 ",1))],2)]))}});module.exports=E;
@@ -1 +1 @@
1
- "use strict";const n=require("./highlight.vue2.cjs"),e=require("vue"),r=require("../../../_virtual/_plugin-vue_export-helper.cjs");function c(o,g,i,l,u,h){const t=e.resolveComponent("highlightjs");return o.code?(e.openBlock(),e.createBlock(t,{key:0,class:"highlightjs",language:o.language,code:o.code},null,8,["language","code"])):e.createCommentVNode("",!0)}const s=r(n,[["render",c]]);module.exports=s;
1
+ "use strict";const n=require("./highlight.vue2.cjs"),e=require("vue"),r=require("../../../_virtual/_plugin-vue_export-helper.cjs");function s(o,g,i,l,u,h){const t=e.resolveComponent("highlightjs");return o.code?(e.openBlock(),e.createBlock(t,{key:0,class:"highlightjs",language:o.language,code:o.code},null,8,["language","code"])):e.createCommentVNode("",!0)}const c=r(n,[["render",s]]);module.exports=c;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),u=require("../boxurl/index.vue.cjs"),x=require("../../router/index.cjs"),w=require("./highlight.vue.cjs"),v=require("../../utils/index.cjs"),d=require("../../utils/glob.cjs"),f=require("../../utils/util.cjs"),_=require("@fangzhongya/utils/urls/getUrlCatalogueObj"),b=require("vue-router"),y={class:"code"},E={class:"code-top"},N={class:"code-top-but"},V={class:"top-but-files"},q=["onClick"],S={class:"code-highlightjs"},B=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(p){const g=b.useRouter(),t=p;e.watch(()=>t.text,()=>{s()});const c=e.ref([]),o=e.ref(),a=e.ref(!1);function k(){o.value?.raw?v.copyCode(o.value.raw):v.copyCode(t.text)}function h(){if(o.value?.raw){const l=_.getUrlCatalogueObj(o.value?.key),n=t.value?.name+"_"+l.name+"."+l.suffix;f.exportStringToFile(o.value.raw,n)}else{const l=_.getUrlCatalogueObj(t.value?.key),n=t.value?.name+"_"+l.name+"."+l.suffix;f.exportStringToFile(t.text,n)}}function m(){a.value=!a.value}function C(){x.toSingle(g,t.value)}function r(l){a.value=!0,o.value=l}function s(){o.value=void 0,a.value=!1,t.text&&d.getTestImportUrl(t.value,t.text,"vue").then(l=>{d.getLocalTextArr(l).then(n=>{c.value=n.filter(i=>i.raw)})})}return s(),(l,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",{class:"but-div",onClick:C},"go"),e.createElementVNode("div",{class:"but-div",onClick:k},"复制"),e.createElementVNode("div",{class:"but-div",onClick:h},"下载"),e.createElementVNode("div",{class:"but-div",onClick:m},e.toDisplayString(a.value?"隐藏":"显示"),1),e.createElementVNode("div",V,[e.createVNode(u,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:n[0]||(n[0]=e.withModifiers(i=>r(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,j)=>(e.openBlock(),e.createBlock(u,{value:i},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:i.key==o.value?.key}]),onClick:e.withModifiers(D=>r(i),["stop"])},e.toDisplayString(i.value),11,q)]),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",S,[e.createVNode(w,{language:"html",code:o.value?.raw||t.text},null,8,["code"])],512),[[e.vShow,a.value]])]))}});module.exports=B;
1
+ "use strict";const e=require("vue"),u=require("../boxurl/index.vue.cjs"),x=require("../../router/index.cjs"),w=require("./highlight.vue.cjs"),v=require("../../utils/index.cjs"),d=require("../../utils/glob.cjs"),f=require("../../utils/util.cjs"),_=require("@fangzhongya/utils/urls/getUrlCatalogueObj"),b=require("vue-router"),y={class:"code"},E={class:"code-top"},N={class:"code-top-but"},V={class:"top-but-files"},q=["onClick"],S={class:"code-highlightjs"},B=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(p){const g=b.useRouter(),t=p;e.watch(()=>t.text,()=>{r()});const c=e.ref([]),o=e.ref(),a=e.ref(!1);function k(){o.value?.raw?v.copyCode(o.value.raw):v.copyCode(t.text)}function h(){if(o.value?.raw){const l=_.getUrlCatalogueObj(o.value?.key),n=t.value?.name+"_"+l.name+"."+l.suffix;f.exportStringToFile(o.value.raw,n)}else{const l=_.getUrlCatalogueObj(t.value?.key),n=t.value?.name+"_"+l.name+"."+l.suffix;f.exportStringToFile(t.text,n)}}function m(){a.value=!a.value}function C(){x.toSingle(g,t.value)}function s(l){a.value=!0,o.value=l}function r(){o.value=void 0,a.value=!1,t.text&&d.getTestImportUrl(t.value,t.text,"vue").then(l=>{d.getLocalTextArr(l).then(n=>{c.value=n.filter(i=>i.raw)})})}return r(),(l,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",{class:"but-div",onClick:C},"go"),e.createElementVNode("div",{class:"but-div",onClick:k},"复制"),e.createElementVNode("div",{class:"but-div",onClick:h},"下载"),e.createElementVNode("div",{class:"but-div",onClick:m},e.toDisplayString(a.value?"隐藏":"显示"),1),e.createElementVNode("div",V,[e.createVNode(u,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:n[0]||(n[0]=e.withModifiers(i=>s(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(i,j)=>(e.openBlock(),e.createBlock(u,{value:i},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:i.key==o.value?.key}]),onClick:e.withModifiers(D=>s(i),["stop"])},e.toDisplayString(i.value),11,q)]),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",S,[e.createVNode(w,{language:"html",code:o.value?.raw||t.text},null,8,["code"])],512),[[e.vShow,a.value]])]))}});module.exports=B;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),o=require("../use/edit.cjs"),n={class:"compo-code"},s=e.defineComponent({__name:"code",props:{value:{type:Object}},setup(t){const c=t;return(r,u)=>(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(e.unref(o),{value:c.value},null,8,["value"])]))}});module.exports=s;
@@ -0,0 +1,21 @@
1
+ import { defineComponent as t, createElementBlock as c, openBlock as n, createVNode as r, unref as a } from "vue";
2
+ import p from "../use/edit.js";
3
+ const l = { class: "compo-code" }, _ = /* @__PURE__ */ t({
4
+ __name: "code",
5
+ props: {
6
+ value: {
7
+ type: Object
8
+ }
9
+ },
10
+ setup(e) {
11
+ const o = e;
12
+ return (s, u) => (n(), c("div", l, [
13
+ r(a(p), {
14
+ value: o.value
15
+ }, null, 8, ["value"])
16
+ ]));
17
+ }
18
+ });
19
+ export {
20
+ _ as default
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./code.vue.cjs");;/* empty css */module.exports=e;
@@ -0,0 +1,5 @@
1
+ import o from "./code.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),v=require("vue-router"),r=require("../../router/index.cjs"),_=require("../compo/index.vue.cjs"),d=require("../compo/info.vue.cjs"),p=require("../compo/info-top.vue.cjs"),m=require("../test/index.vue.cjs"),N=require("../../utils/glob.cjs"),f={class:"main"},V={class:"main-top"},E={class:"main-compo-top"},k={class:"main-but"},g={class:"main-test"},q={class:"main-compo"},b=e.defineComponent({__name:"index",props:{value:Object},setup(l){const u=v.useRouter(),t=l,c=e.ref([]);e.watch(()=>t.value,()=>{a()});function a(){c.value=N.getTestName(t.value?.key)}a();function i(o){o==1?r.toCompon(u,t.value):o==2?r.toTests(u,t.value):o==3&&r.toDevelop(u,t.value)}return(o,n)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",V,[e.createVNode(d,{value:l.value},null,8,["value"])]),e.createElementVNode("div",E,[e.createVNode(p,{value:l.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",{class:"but-div",onClick:n[0]||(n[0]=s=>i(1))},"当前"),e.createElementVNode("div",{class:"but-div",onClick:n[1]||(n[1]=s=>i(2))},"更多"),e.createElementVNode("div",{class:"but-div",onClick:n[2]||(n[2]=s=>i(3))},"开发")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(m,{value:s},null,8,["value"])]))),256)),e.createElementVNode("div",q,[e.createVNode(_,{istop:!1,value:t.value},null,8,["value"])])]))}});module.exports=b;
1
+ "use strict";const e=require("vue"),v=require("vue-router"),i=require("../../router/index.cjs"),d=require("../compo/index.vue.cjs"),_=require("../compo/info.vue.cjs"),p=require("../compo/info-top.vue.cjs"),m=require("../test/index.vue.cjs"),N=require("../../utils/glob.cjs"),f={class:"main"},E={class:"main-top"},V={class:"main-compo-top"},k={class:"main-but"},g={class:"main-test"},q={class:"main-compo"},b=e.defineComponent({__name:"index",props:{value:Object},setup(r){const l=v.useRouter(),n=r,a=e.ref([]);e.watch(()=>n.value,()=>{c()});function c(){a.value=N.getTestName(n.value?.key)}c();function u(o){o==1?i.toCompon(l,n.value):o==2?i.toTests(l,n.value):o==3?i.toDevelop(l,n.value):o==4&&i.toEdit(l,n.value)}return(o,t)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",E,[e.createVNode(_,{value:r.value},null,8,["value"])]),e.createElementVNode("div",V,[e.createVNode(p,{value:r.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",{class:"but-div",onClick:t[0]||(t[0]=s=>u(1))},"当前"),e.createElementVNode("div",{class:"but-div",onClick:t[1]||(t[1]=s=>u(2))},"更多"),e.createElementVNode("div",{class:"but-div",onClick:t[2]||(t[2]=s=>u(3))},"开发"),e.createElementVNode("div",{class:"but-div",onClick:t[3]||(t[3]=s=>u(4))},"编辑")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,s=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(m,{value:s},null,8,["value"])]))),256)),e.createElementVNode("div",q,[e.createVNode(d,{istop:!1,value:n.value},null,8,["value"])])]))}});module.exports=b;
@@ -1,64 +1,68 @@
1
- import { defineComponent as d, ref as f, watch as p, createElementBlock as m, openBlock as v, createElementVNode as e, createVNode as n, Fragment as _, renderList as $ } from "vue";
1
+ import { defineComponent as d, ref as f, watch as p, createElementBlock as v, openBlock as m, createElementVNode as t, createVNode as a, Fragment as _, renderList as $ } from "vue";
2
2
  import { useRouter as C } from "vue-router";
3
- import { toCompon as b, toTests as k, toDevelop as g } from "../../router/index.js";
4
- import x from "../compo/index.vue.js";
3
+ import { toCompon as b, toTests as k, toDevelop as g, toEdit as x } from "../../router/index.js";
4
+ import E from "../compo/index.vue.js";
5
5
  import N from "../compo/info.vue.js";
6
- import h from "../compo/info-top.vue.js";
7
- import B from "../test/index.vue.js";
8
- import { getTestName as E } from "../../utils/glob.js";
9
- const T = { class: "main" }, V = { class: "main-top" }, j = { class: "main-compo-top" }, w = { class: "main-but" }, D = { class: "main-test" }, F = { class: "main-compo" }, I = /* @__PURE__ */ d({
6
+ import B from "../compo/info-top.vue.js";
7
+ import T from "../test/index.vue.js";
8
+ import { getTestName as V } from "../../utils/glob.js";
9
+ const j = { class: "main" }, w = { class: "main-top" }, D = { class: "main-compo-top" }, F = { class: "main-but" }, L = { class: "main-test" }, O = { class: "main-compo" }, J = /* @__PURE__ */ d({
10
10
  __name: "index",
11
11
  props: {
12
12
  value: Object
13
13
  },
14
- setup(i) {
15
- const a = C(), t = i, r = f([]);
14
+ setup(u) {
15
+ const l = C(), o = u, r = f([]);
16
16
  p(
17
- () => t.value,
17
+ () => o.value,
18
18
  () => {
19
19
  c();
20
20
  }
21
21
  );
22
22
  function c() {
23
- r.value = E(t.value?.key);
23
+ r.value = V(o.value?.key);
24
24
  }
25
25
  c();
26
- function u(s) {
27
- s == 1 ? b(a, t.value) : s == 2 ? k(a, t.value) : s == 3 && g(a, t.value);
26
+ function n(s) {
27
+ s == 1 ? b(l, o.value) : s == 2 ? k(l, o.value) : s == 3 ? g(l, o.value) : s == 4 && x(l, o.value);
28
28
  }
29
- return (s, o) => (v(), m("div", T, [
30
- e("div", V, [
31
- n(N, { value: i.value }, null, 8, ["value"])
29
+ return (s, e) => (m(), v("div", j, [
30
+ t("div", w, [
31
+ a(N, { value: u.value }, null, 8, ["value"])
32
32
  ]),
33
- e("div", j, [
34
- n(h, { value: i.value }, null, 8, ["value"])
33
+ t("div", D, [
34
+ a(B, { value: u.value }, null, 8, ["value"])
35
35
  ]),
36
- e("div", w, [
37
- e("div", {
36
+ t("div", F, [
37
+ t("div", {
38
38
  class: "but-div",
39
- onClick: o[0] || (o[0] = (l) => u(1))
39
+ onClick: e[0] || (e[0] = (i) => n(1))
40
40
  }, "当前"),
41
- e("div", {
41
+ t("div", {
42
42
  class: "but-div",
43
- onClick: o[1] || (o[1] = (l) => u(2))
43
+ onClick: e[1] || (e[1] = (i) => n(2))
44
44
  }, "更多"),
45
- e("div", {
45
+ t("div", {
46
46
  class: "but-div",
47
- onClick: o[2] || (o[2] = (l) => u(3))
48
- }, "开发")
47
+ onClick: e[2] || (e[2] = (i) => n(3))
48
+ }, "开发"),
49
+ t("div", {
50
+ class: "but-div",
51
+ onClick: e[3] || (e[3] = (i) => n(4))
52
+ }, "编辑")
49
53
  ]),
50
- (v(!0), m(_, null, $(r.value, (l) => (v(), m("div", D, [
51
- n(B, { value: l }, null, 8, ["value"])
54
+ (m(!0), v(_, null, $(r.value, (i) => (m(), v("div", L, [
55
+ a(T, { value: i }, null, 8, ["value"])
52
56
  ]))), 256)),
53
- e("div", F, [
54
- n(x, {
57
+ t("div", O, [
58
+ a(E, {
55
59
  istop: !1,
56
- value: t.value
60
+ value: o.value
57
61
  }, null, 8, ["value"])
58
62
  ])
59
63
  ]));
60
64
  }
61
65
  });
62
66
  export {
63
- I as default
67
+ J as default
64
68
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),m=require("./top.cjs"),f=require("../code/index.vue.cjs"),x=require("./index.cjs"),y=require("../../utils/glob.cjs"),N={class:"md-top-name"},h={class:"test-top"},k={class:"test-div"},V={class:"test-body"},g={key:0,class:"test-code"},B=e.defineComponent({__name:"index",props:{value:Object,read:{type:Boolean,default:!0}},emits:["state"],setup(i,{emit:d}){const t=i,v=d,o=e.ref(""),c=e.ref([]),s=e.ref("1");e.watch([()=>t.value,()=>t.read],()=>{r()});let u;function r(){t.read&&t.value?.key&&y.getLocalTextTests(t.value).then(l=>{o.value=l;let{titles:a,states:_}=x.getNotes(l);c.value=a;const n=_[0];n&&n.type&&(s.value=n.type.type),v("state",s.value,t.value?.key)}).catch(()=>{o.value=""}),t.value?.component&&(u=e.defineAsyncComponent(t.value.component))}return r(),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["test","state-"+s.value])},[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.value?.value)+" 文件 示例代码 ",1)]),_:1},8,["value"]),e.createElementVNode("div",h,[e.createVNode(e.unref(m.default),{value:c.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",V,[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode(" 示例加载中... ",-1)])),default:e.withCtx(()=>[e.createVNode(e.unref(u))]),_:1}))]),t.read?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{value:t.value,text:o.value},null,8,["value","text"])])):e.createCommentVNode("",!0)])],2))}});module.exports=B;
1
+ "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),m=require("./top.cjs"),f=require("../code/index.vue.cjs"),x=require("./index.cjs"),y=require("../../utils/glob.cjs"),N={class:"md-top-name"},h={class:"test-top"},k={class:"test-div"},V={class:"test-body"},g={key:0,class:"test-code"},B=e.defineComponent({__name:"index",props:{value:Object,read:{type:Boolean,default:!0}},emits:["state"],setup(i,{emit:d}){const t=i,v=d,s=e.ref(""),c=e.ref([]),o=e.ref("1");e.watch([()=>t.value,()=>t.read],()=>{r()});let u;function r(){t.read&&t.value?.key&&y.getLocalTextTests(t.value).then(l=>{s.value=l;let{titles:a,states:_}=x.getNotes(l);c.value=a;const n=_[0];n&&n.type&&(o.value=n.type.type),v("state",o.value,t.value?.key)}).catch(()=>{s.value=""}),t.value?.component&&(u=e.defineAsyncComponent(t.value.component))}return r(),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["test","state-"+o.value])},[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.value?.value)+" 文件 示例代码 ",1)]),_:1},8,["value"]),e.createElementVNode("div",h,[e.createVNode(e.unref(m.default),{value:c.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",V,[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode(" 示例加载中... ",-1)])),default:e.withCtx(()=>[e.createVNode(e.unref(u))]),_:1}))]),t.read?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{value:t.value,text:s.value},null,8,["value","text"])])):e.createCommentVNode("",!0)])],2))}});module.exports=B;
@@ -1,17 +1,25 @@
1
- import { ObjStr, ObjUnk } from '../../config';
2
- import { SpecObjs, Spec } from '../../utils/index';
3
- export declare function getHmtl(propsname: string, param: {
4
- [key: string]: SpecObjs[];
5
- }, value: ObjUnk, slotValue?: ObjStr, propsText?: ObjStr, exposeText?: ObjUnk): string;
6
- export declare function setValStringify(v: unknown, key: string, propsText?: ObjStr): string;
7
- type SelectsObj = {
8
- label: string;
9
- prop: unknown;
10
- };
11
- export declare function getSpecType(val: Spec): {
12
- arr: SelectsObj[];
13
- type: string;
14
- dataType: string[];
15
- };
16
- export declare function getDefaultValue(obj: Spec, is?: boolean): any;
17
- export {};
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ };
6
+ html: {
7
+ type: StringConstructor;
8
+ default(): string;
9
+ };
10
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ refresh: (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ html: {
17
+ type: StringConstructor;
18
+ default(): string;
19
+ };
20
+ }>> & Readonly<{
21
+ onRefresh?: ((...args: any[]) => any) | undefined;
22
+ }>, {
23
+ html: string;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
25
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),a=require("../code/highlight.vue.cjs"),m=require("../../utils/index.cjs"),v=require("../../utils/util.cjs"),h={class:"set-code"},p={class:"but-div set-code-but"},f={class:"set-code-html"},C=e.defineComponent({__name:"code",props:{name:{type:String},html:{type:String,default(){return""}}},emits:["refresh"],setup(s,{emit:c}){const t=s,n=c,o=e.ref(!1);function l(){o.value=!o.value}function r(){m.copyCode(t.html)}function d(){v.exportStringToFile(t.html,t.name+".vue")}function u(){n("refresh")}return(_,i)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{onClick:l,class:"set-code-buts"},[i[0]||(i[0]=e.createElementVNode("div",null,"代码",-1)),e.createElementVNode("div",p,e.toDisplayString(o.value?"显示":"隐藏"),1),e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:"but-div set-code-but"}," 复制 "),e.createElementVNode("div",{onClick:e.withModifiers(d,["stop"]),class:"but-div set-code-but"}," 下载 "),e.createElementVNode("div",{onClick:e.withModifiers(u,["stop"]),class:"but-div set-code-but"}," 刷新 ")]),e.withDirectives(e.createElementVNode("div",f,[e.createVNode(a,{language:"html",code:t.html},null,8,["code"])],512),[[e.vShow,o.value]])]))}});module.exports=C;
@@ -0,0 +1,66 @@
1
+ import { defineComponent as m, ref as p, createElementBlock as v, openBlock as f, createElementVNode as e, withDirectives as h, toDisplayString as C, withModifiers as i, createVNode as _, vShow as b } from "vue";
2
+ import k from "../code/highlight.vue.js";
3
+ import { copyCode as g } from "../../utils/index.js";
4
+ import { exportStringToFile as S } from "../../utils/util.js";
5
+ const y = { class: "set-code" }, w = { class: "but-div set-code-but" }, x = { class: "set-code-html" }, F = /* @__PURE__ */ m({
6
+ __name: "code",
7
+ props: {
8
+ name: {
9
+ type: String
10
+ },
11
+ html: {
12
+ type: String,
13
+ default() {
14
+ return "";
15
+ }
16
+ }
17
+ },
18
+ emits: ["refresh"],
19
+ setup(c, { emit: n }) {
20
+ const t = c, l = n, o = p(!1);
21
+ function r() {
22
+ o.value = !o.value;
23
+ }
24
+ function d() {
25
+ g(t.html);
26
+ }
27
+ function u() {
28
+ S(t.html, t.name + ".vue");
29
+ }
30
+ function a() {
31
+ l("refresh");
32
+ }
33
+ return (D, s) => (f(), v("div", y, [
34
+ e("div", {
35
+ onClick: r,
36
+ class: "set-code-buts"
37
+ }, [
38
+ s[0] || (s[0] = e("div", null, "代码", -1)),
39
+ e("div", w, C(o.value ? "显示" : "隐藏"), 1),
40
+ e("div", {
41
+ onClick: i(d, ["stop"]),
42
+ class: "but-div set-code-but"
43
+ }, " 复制 "),
44
+ e("div", {
45
+ onClick: i(u, ["stop"]),
46
+ class: "but-div set-code-but"
47
+ }, " 下载 "),
48
+ e("div", {
49
+ onClick: i(a, ["stop"]),
50
+ class: "but-div set-code-but"
51
+ }, " 刷新 ")
52
+ ]),
53
+ h(e("div", x, [
54
+ _(k, {
55
+ language: "html",
56
+ code: t.html
57
+ }, null, 8, ["code"])
58
+ ], 512), [
59
+ [b, o.value]
60
+ ])
61
+ ]));
62
+ }
63
+ });
64
+ export {
65
+ F as default
66
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./code.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./code.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";const t=require("vue"),h=require("./code.vue.cjs"),a=require("./retrie/input/index.vue.cjs");;/* empty css */const y=require("./effect.vue.cjs");function _(r){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const u in r)if(u!=="default"){const i=Object.getOwnPropertyDescriptor(r,u);Object.defineProperty(m,u,i.get?i:{enumerable:!0,get:()=>r[u]})}}return m.default=r,Object.freeze(m)}const v=_(t),g=t.defineComponent({props:{value:{type:Object},param:{type:Object}},data(){return{template:"",script:"",style:"",vueHtml:""}},setup(r){function m(s){const c=document.getElementsByTagName("head")[0],l="data-vite-dev-id",o=s+".css",p=c.querySelector(`style[${l}="${o}"]`);if(p)return p;{let e=document.createElement("style");return e.appendChild(document.createTextNode("")),e.setAttribute("type","text/css"),e.setAttribute(l,o),c.appendChild(e),e}}function u(s,c="",l){const o=[],p=r.value?.name;let e="";return Object.keys(v).forEach(d=>{c.includes(d+"(")&&o.push(d)}),o.length>0&&(e=`import { ${o.join(" , ")} } from 'vue';`),`<!--${p}-->
2
+ <template>
3
+ ${s}
4
+ </template>
5
+ <script>
6
+ ${e}
7
+ export default {
8
+ setup(props, ctx) {
9
+ ${c}
10
+ }
11
+ }
12
+ <\/script>
13
+ <style>
14
+ ${l}
15
+ </style>
16
+ `}function i(s,c,l){try{const o=Object.keys(v);return new Function("props","ctx","vue",` "use strict";
17
+ const { ${o.join(",")} } = vue;
18
+ ${s}; `)(c,l,v)}catch(o){console.error("Code block execution failed:",o)}}const n=t.ref(null);return t.onMounted(()=>{n.value=m(r.value?.key)}),{getHmtlVue:u,getCodeBlock:i,style:n}},render(r,m,u,i,n){const s=u.value;let c="div";s.component?c=t.defineAsyncComponent(s.component):s.name&&(c=t.resolveComponent(s.name));const l={};l[s.name]=c;const o=()=>{const e=i.getHmtlVue(n.template,n.script,n.style);n.vueHtml=e},p=()=>{i.style.innerHTML=n.style,o()};return t.h("div",{class:"code-edit"},[t.h("div",{class:"edit-effect use"},[t.h(y,{class:"use-component"},{default:()=>t.h(t.defineComponent({components:l,setup(e,f){return i.getCodeBlock(n.script,e,f)},template:n.template}))}),t.h(h,{html:n.vueHtml,name:s.name+"_edit",onRefresh:o})]),t.h("div",{class:"edit-input"},[t.h("div",{onClick:p},"运行"),t.h("div",{},[t.h("div",{},"template"),t.h(a,{check:e=>e,modelValue:n.template,"onUpdate:modelValue":e=>{n.template=e}})]),t.h("div",{},[t.h("div",{},"script"),t.h("div",{},"setup(props, ctx)"),t.h(a,{check:e=>e,modelValue:n.script,"onUpdate:modelValue":e=>{n.script=e}})]),t.h("div",{},[t.h("div",{},"style"),t.h(a,{check:e=>e,modelValue:n.style,"onUpdate:modelValue":e=>{n.style=e}})])])])}});module.exports=g;
@@ -0,0 +1,32 @@
1
+ import * as vues from 'vue';
2
+ /**
3
+ * @title
4
+ * @author 方忠亚
5
+ * @description 这是个我用来测试功能的测试组件,请不要使用它
6
+ * @date 2022年11月24日22点58分
7
+ */
8
+ declare const _default: vues.DefineComponent<vues.ExtractPropTypes<{
9
+ value: {
10
+ type: ObjectConstructor;
11
+ };
12
+ param: {
13
+ type: ObjectConstructor;
14
+ };
15
+ }>, {
16
+ getHmtlVue: (template: string, script: string | undefined, style: string) => string;
17
+ getCodeBlock: (value: string, props: any, ctx: any) => any;
18
+ style: vues.Ref<HTMLStyleElement | null, HTMLStyleElement | null>;
19
+ }, {
20
+ template: string;
21
+ script: string;
22
+ style: string;
23
+ vueHtml: string;
24
+ }, {}, {}, vues.ComponentOptionsMixin, vues.ComponentOptionsMixin, {}, string, vues.PublicProps, Readonly<vues.ExtractPropTypes<{
25
+ value: {
26
+ type: ObjectConstructor;
27
+ };
28
+ param: {
29
+ type: ObjectConstructor;
30
+ };
31
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, vues.ComponentProvideOptions, true, {}, any>;
32
+ export default _default;
@@ -0,0 +1,187 @@
1
+ import * as d from "vue";
2
+ import { defineComponent as y, defineAsyncComponent as h, resolveComponent as $, h as n, ref as k, onMounted as g } from "vue";
3
+ import C from "./code.vue.js";
4
+ import a from "./retrie/input/index.vue.js";
5
+ /* empty css */
6
+ import x from "./effect.vue.js";
7
+ const _ = y({
8
+ /**
9
+ * @props {Stinrg} value 插入数据
10
+ */
11
+ props: {
12
+ value: {
13
+ type: Object
14
+ },
15
+ param: {
16
+ type: Object
17
+ }
18
+ },
19
+ data() {
20
+ return {
21
+ template: "",
22
+ script: "",
23
+ style: "",
24
+ vueHtml: ""
25
+ };
26
+ },
27
+ setup(m) {
28
+ function v(s) {
29
+ const l = document.getElementsByTagName("head")[0], c = "data-vite-dev-id", o = s + ".css", r = l.querySelector(`style[${c}="${o}"]`);
30
+ if (r)
31
+ return r;
32
+ {
33
+ let e = document.createElement("style");
34
+ return e.appendChild(document.createTextNode("")), e.setAttribute("type", "text/css"), e.setAttribute(c, o), l.appendChild(e), e;
35
+ }
36
+ }
37
+ function u(s, l = "", c) {
38
+ const o = [], r = m.value?.name;
39
+ let e = "";
40
+ return Object.keys(d).forEach((p) => {
41
+ l.includes(p + "(") && o.push(p);
42
+ }), o.length > 0 && (e = `import { ${o.join(" , ")} } from 'vue';`), `<!--${r}-->
43
+ <template>
44
+ ${s}
45
+ </template>
46
+ <script>
47
+ ${e}
48
+ export default {
49
+ setup(props, ctx) {
50
+ ${l}
51
+ }
52
+ }
53
+ <\/script>
54
+ <style>
55
+ ${c}
56
+ </style>
57
+ `;
58
+ }
59
+ function i(s, l, c) {
60
+ try {
61
+ const o = Object.keys(d);
62
+ return new Function(
63
+ "props",
64
+ "ctx",
65
+ "vue",
66
+ ` "use strict";
67
+ const { ${o.join(",")} } = vue;
68
+ ${s}; `
69
+ )(l, c, d);
70
+ } catch (o) {
71
+ console.error("Code block execution failed:", o);
72
+ }
73
+ }
74
+ const t = k(null);
75
+ return g(() => {
76
+ t.value = v(m.value?.key);
77
+ }), {
78
+ getHmtlVue: u,
79
+ getCodeBlock: i,
80
+ style: t
81
+ };
82
+ },
83
+ render(m, v, u, i, t) {
84
+ const s = u.value;
85
+ let l = "div";
86
+ s.component ? l = h(s.component) : s.name && (l = $(s.name));
87
+ const c = {};
88
+ c[s.name] = l;
89
+ const o = () => {
90
+ const e = i.getHmtlVue(t.template, t.script, t.style);
91
+ t.vueHtml = e;
92
+ }, r = () => {
93
+ i.style.innerHTML = t.style, o();
94
+ };
95
+ return n(
96
+ "div",
97
+ {
98
+ class: "code-edit"
99
+ },
100
+ [
101
+ n(
102
+ "div",
103
+ {
104
+ class: "edit-effect use"
105
+ },
106
+ [
107
+ n(
108
+ x,
109
+ {
110
+ class: "use-component"
111
+ },
112
+ {
113
+ default: () => n(
114
+ y({
115
+ components: c,
116
+ setup(e, f) {
117
+ return i.getCodeBlock(
118
+ t.script,
119
+ e,
120
+ f
121
+ );
122
+ },
123
+ template: t.template
124
+ })
125
+ )
126
+ }
127
+ ),
128
+ n(C, {
129
+ html: t.vueHtml,
130
+ name: s.name + "_edit",
131
+ onRefresh: o
132
+ })
133
+ ]
134
+ ),
135
+ n(
136
+ "div",
137
+ {
138
+ class: "edit-input"
139
+ },
140
+ [
141
+ n(
142
+ "div",
143
+ {
144
+ onClick: r
145
+ },
146
+ "运行"
147
+ ),
148
+ n("div", {}, [
149
+ n("div", {}, "template"),
150
+ n(a, {
151
+ check: (e) => e,
152
+ modelValue: t.template,
153
+ "onUpdate:modelValue": (e) => {
154
+ t.template = e;
155
+ }
156
+ })
157
+ ]),
158
+ n("div", {}, [
159
+ n("div", {}, "script"),
160
+ n("div", {}, "setup(props, ctx)"),
161
+ n(a, {
162
+ check: (e) => e,
163
+ modelValue: t.script,
164
+ "onUpdate:modelValue": (e) => {
165
+ t.script = e;
166
+ }
167
+ })
168
+ ]),
169
+ n("div", {}, [
170
+ n("div", {}, "style"),
171
+ n(a, {
172
+ check: (e) => e,
173
+ modelValue: t.style,
174
+ "onUpdate:modelValue": (e) => {
175
+ t.style = e;
176
+ }
177
+ })
178
+ ])
179
+ ]
180
+ )
181
+ ]
182
+ );
183
+ }
184
+ });
185
+ export {
186
+ _ as default
187
+ };
@@ -0,0 +1,18 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),c=require("../../../_virtual/_plugin-vue_export-helper.cjs"),r={},s={class:"use-effect"};function n(t,u){return e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(t.$slots,"default")])}const o=c(r,[["render",n]]);module.exports=o;
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as t, openBlock as o, renderSlot as c } from "vue";
2
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, f = { class: "use-effect" };
4
+ function n(e, _) {
5
+ return o(), t("div", f, [
6
+ c(e.$slots, "default")
7
+ ]);
8
+ }
9
+ const d = /* @__PURE__ */ r(s, [["render", n]]);
10
+ export {
11
+ d as default
12
+ };
@@ -1,3 +1,3 @@
1
- "use strict";const n=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),d={class:"form-array"},p=n.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(i,{emit:c}){const u=i,o=c,l=n.ref("");n.watch(()=>u.modelValue,()=>{let e=u.modelValue;l.value=a(e)||e},{immediate:!0});function s(e){return new Function("",`{return ${e}}`)}function a(e){let r;if(e)try{let t=e;typeof e=="string"?(t=s(e)(),r=f.prettierArrFormat(e)):r=JSON.stringify(e),t instanceof Array?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`[
1
+ "use strict";const n=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),d={class:"form-array"},p=n.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(i,{emit:s}){const u=i,o=s,l=n.ref("");n.watch(()=>u.modelValue,()=>{let e=u.modelValue;l.value=a(e)||e},{immediate:!0});function c(e){return new Function("",`{return ${e}}`)}function a(e){let r;if(e)try{let t=e;typeof e=="string"?(t=c(e)(),r=f.prettierArrFormat(e)):r=JSON.stringify(e),t instanceof Array?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`[
2
2
 
3
3
  ]`,o("value",void 0,r),o("error",!1);return r}return(e,r)=>(n.openBlock(),n.createElementBlock("div",d,[n.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=t=>l.value=t),check:a},null,8,["modelValue"])]))}});module.exports=p;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),f={class:"form-boolean"},c=["disabled","checked"],m=["disabled","checked"],p=e.defineComponent({__name:"index",props:{modelValue:{type:null},list:{type:Array},disabled:Boolean,config:{type:Object,default(){return{}}}},emits:["value","error"],setup(i,{emit:a}){const r=i,s=a,o=e.ref(!1);e.watch(()=>r.modelValue,()=>{let t=r.modelValue;n(t)},{immediate:!0});function d(t){return typeof t=="string"?t==="true"||t==="1":typeof t=="boolean"&&t===!0?!0:typeof t=="number"&&t===1}function n(t){o.value=d(t)||!1,s("value",o.value,JSON.stringify(o.value))}return(t,l)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",{class:"form-boolean-div",onClick:l[0]||(l[0]=e.withModifiers(u=>n(!0),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"true",disabled:r.disabled,checked:o.value},null,8,c),l[2]||(l[2]=e.createElementVNode("label",{for:"true"},"true",-1))]),e.createElementVNode("div",{class:"form-boolean-div",onClick:l[1]||(l[1]=e.withModifiers(u=>n(!1),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"false",disabled:r.disabled,checked:!o.value},null,8,m),l[3]||(l[3]=e.createElementVNode("label",{for:"false"},"false",-1))])]))}});module.exports=p;
1
+ "use strict";const e=require("vue"),f={class:"form-boolean"},c=["disabled","checked"],m=["disabled","checked"],p=e.defineComponent({__name:"index",props:{modelValue:{type:null},list:{type:Array},disabled:Boolean,config:{type:Object,default(){return{}}}},emits:["value","error"],setup(i,{emit:s}){const r=i,a=s,o=e.ref(!1);e.watch(()=>r.modelValue,()=>{let t=r.modelValue;n(t)},{immediate:!0});function d(t){return typeof t=="string"?t==="true"||t==="1":typeof t=="boolean"&&t===!0?!0:typeof t=="number"&&t===1}function n(t){o.value=d(t)||!1,a("value",o.value,JSON.stringify(o.value))}return(t,l)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",{class:"form-boolean-div",onClick:l[0]||(l[0]=e.withModifiers(u=>n(!0),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"true",disabled:r.disabled,checked:o.value},null,8,c),l[2]||(l[2]=e.createElementVNode("label",{for:"true"},"true",-1))]),e.createElementVNode("div",{class:"form-boolean-div",onClick:l[1]||(l[1]=e.withModifiers(u=>n(!1),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"false",disabled:r.disabled,checked:!o.value},null,8,m),l[3]||(l[3]=e.createElementVNode("label",{for:"false"},"false",-1))])]))}});module.exports=p;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../../util.cjs"),g=require("../index.vue.cjs");;/* empty css */const y={class:"expose"},h={class:"expose-label"},x={class:"expose-return"},S=e.defineComponent({__name:"index",props:{getRef:{type:Function},name:String,value:{type:Object}},emits:["change"],setup(p,{emit:m}){const s=p,v=m,c=e.ref(""),i=e.ref(""),o=e.ref([]),f=e.computed(()=>{o.value=[];const n=s.value;if(n&&n.name){let l=(n.selectable+"").trim();if(c.value=n.name+": "+n.description+" 入参=("+l+") 返回值: "+n.type,l){let r=d.parseParamString(l);return r.forEach(t=>{t.prop=t.name,o.value.push(t.name)}),r}}return[]});function _(n,l){let r=s.getRef?s.getRef():void 0,t=s.value?.name;if(t){let u=o.value.map(a=>n[a]);if(r&&r[t]){if(typeof r[t]=="function"){let a=r[t](...u);i.value=JSON.stringify(a)}else{let a=r[t];a instanceof HTMLDivElement?i.value=a.outerHTML:i.value=JSON.stringify(a)}v("change",t,u,typeof r[t],l)}}else console.log("请选择方法")}return(n,l)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",h,e.toDisplayString(c.value||"请选择方法"),1),e.createVNode(g,{list:f.value,name:s.name,queryName:"调用",onQuery:_},null,8,["list","name"]),e.createElementVNode("div",x,e.toDisplayString(s.value?.type)+"返回值:"+e.toDisplayString(i.value),1)]))}});module.exports=S;
1
+ "use strict";const e=require("vue"),d=require("../../util.cjs"),g=require("../index.vue.cjs");;/* empty css */const y={class:"expose"},h={class:"expose-label"},x={class:"expose-return"},S=e.defineComponent({__name:"index",props:{getRef:{type:Function},name:String,value:{type:Object}},emits:["change"],setup(p,{emit:m}){const a=p,v=m,c=e.ref(""),i=e.ref(""),o=e.ref([]),f=e.computed(()=>{o.value=[];const n=a.value;if(n&&n.name){let l=(n.selectable+"").trim();if(c.value=n.name+": "+n.description+" 入参=("+l+") 返回值: "+n.type,l){let r=d.parseParamString(l);return r.forEach(t=>{t.prop=t.name,o.value.push(t.name)}),r}}return[]});function _(n,l){let r=a.getRef?a.getRef():void 0,t=a.value?.name;if(t){let u=o.value.map(s=>n[s]);if(r&&r[t]){if(typeof r[t]=="function"){let s=r[t](...u);i.value=JSON.stringify(s)}else{let s=r[t];s instanceof HTMLDivElement?i.value=s.outerHTML:i.value=JSON.stringify(s)}v("change",t,u,typeof r[t],l)}}else console.log("请选择方法")}return(n,l)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",h,e.toDisplayString(c.value||"请选择方法"),1),e.createVNode(g,{list:f.value,name:a.name,queryName:"调用",onQuery:_},null,8,["list","name"]),e.createElementVNode("div",x,e.toDisplayString(a.value?.type)+"返回值:"+e.toDisplayString(i.value),1)]))}});module.exports=S;
@@ -109,10 +109,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
109
109
  }>> & Readonly<{
110
110
  onQuery?: ((...args: any[]) => any) | undefined;
111
111
  }>, {
112
+ refresh: number;
112
113
  modelValue: any;
113
114
  list: ObjUnk[];
114
115
  selects: Record<string, any>;
115
- refresh: number;
116
116
  queryName: string;
117
117
  defaultQuery: boolean;
118
118
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),s=require("./text.vue.cjs");;/* empty css */const m=require("./codemirror.vue.cjs"),d={class:"form-input"},i=e.defineComponent({__name:"index",props:{modelValue:{type:null},check:{type:Function,default(){return""}},format:{type:String,default:"js"}},emits:["update:modelValue"],setup(c,{emit:n}){const t=c,a=e.ref(0),p=n,o=e.computed({get(){return t.modelValue},set(r){p("update:modelValue",r)}});return(r,u)=>(e.openBlock(),e.createElementBlock("div",d,[a.value==1?(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),format:t.format,check:t.check},null,8,["modelValue","format","check"])):(e.openBlock(),e.createBlock(s,{key:1,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=l=>o.value=l),check:t.check},null,8,["modelValue","check"]))]))}});module.exports=i;
1
+ "use strict";const e=require("vue"),p=require("./text.vue.cjs");;/* empty css */const m=require("./codemirror.vue.cjs"),d={class:"form-input"},i=e.defineComponent({__name:"index",props:{modelValue:{type:null},check:{type:Function,default(){return""}},format:{type:String,default:"js"}},emits:["update:modelValue"],setup(c,{emit:n}){const t=c,a=e.ref(0),s=n,o=e.computed({get(){return t.modelValue},set(r){s("update:modelValue",r)}});return(r,u)=>(e.openBlock(),e.createElementBlock("div",d,[a.value==1?(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),format:t.format,check:t.check},null,8,["modelValue","format","check"])):(e.openBlock(),e.createBlock(p,{key:1,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=l=>o.value=l),check:t.check},null,8,["modelValue","check"]))]))}});module.exports=i;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),s=["value"],p=e.defineComponent({__name:"text",props:{modelValue:{type:null},check:{type:Function,default(){return""}}},emits:["update:modelValue"],setup(l,{emit:c}){const t=l,r=c;function a(n){const o=n.target?.value;let u=t.check(o);u&&r("update:modelValue",u)}return(n,o)=>(e.openBlock(),e.createElementBlock("textarea",{class:"form-input-text",rows:"5",value:t.modelValue,onBlur:a},null,40,s))}});module.exports=p;
1
+ "use strict";const e=require("vue"),a=["value"],p=e.defineComponent({__name:"text",props:{modelValue:{type:null},check:{type:Function,default(){return""}}},emits:["update:modelValue"],setup(l,{emit:c}){const t=l,r=c;function s(n){const o=n.target?.value;let u=t.check(o);u&&r("update:modelValue",u)}return(n,o)=>(e.openBlock(),e.createElementBlock("textarea",{class:"form-input-text",rows:"5",value:t.modelValue,onBlur:s},null,40,a))}});module.exports=p;
@@ -1,3 +1,3 @@
1
- "use strict";const l=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),p={class:"form-object"},d=l.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(c,{emit:a}){const u=c,o=a,n=l.ref("");l.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=i(e)||e},{immediate:!0});function s(e){return new Function("",`{ return ${e} }`)}function i(e){let r;if(e)try{let t=e;typeof e=="string"?(t=s(e)(),r=f.prettierObjFormat(e)):r=JSON.stringify(e),typeof t=="object"?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`{
1
+ "use strict";const l=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),p={class:"form-object"},d=l.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(c,{emit:s}){const u=c,o=s,n=l.ref("");l.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=i(e)||e},{immediate:!0});function a(e){return new Function("",`{ return ${e} }`)}function i(e){let r;if(e)try{let t=e;typeof e=="string"?(t=a(e)(),r=f.prettierObjFormat(e)):r=JSON.stringify(e),typeof t=="object"?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`{
2
2
 
3
3
  }`,o("value",void 0,r),o("error",!1);return r}return(e,r)=>(l.openBlock(),l.createElementBlock("div",p,[l.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t),check:i},null,8,["modelValue"])]))}});module.exports=d;
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const s=require("../../util.cjs"),f={class:"form-other"},v=o.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","error"],setup(c,{emit:p}){const u=c,t=p,n=o.ref("");o.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=a(e)||e},{immediate:!0});function d(e){return new Function("",`{ return ${e} }`)}function a(e){let r;if(e)try{const i=d(e)();s.isTypeEqual(i,u.dataType||[])?(r=s.prettierFormat(e),t("value",i,r),t("error",!1)):(t("error",!0),console.log("error","类型不匹配"))}catch(l){t("error",!0),console.log("error",l)}else r="",t("value",void 0,r),t("error",!1);return r}return(e,r)=>(o.openBlock(),o.createElementBlock("div",f,[o.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),check:a},null,8,["modelValue"])]))}});module.exports=v;
1
+ "use strict";const o=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const i=require("../../util.cjs"),f={class:"form-other"},v=o.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","error"],setup(c,{emit:p}){const u=c,t=p,n=o.ref("");o.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=a(e)||e},{immediate:!0});function d(e){return new Function("",`{ return ${e} }`)}function a(e){let r;if(e)try{const s=d(e)();i.isTypeEqual(s,u.dataType||[])?(r=i.prettierFormat(e),t("value",s,r),t("error",!1)):(t("error",!0),console.log("error","类型不匹配"))}catch(l){t("error",!0),console.log("error",l)}else r="",t("value",void 0,r),t("error",!1);return r}return(e,r)=>(o.openBlock(),o.createElementBlock("div",f,[o.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),check:a},null,8,["modelValue"])]))}});module.exports=v;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),i=require("../input/index.vue.cjs");;/* empty css */const a={class:"slot"},_=e.defineComponent({__name:"index",props:{value:{type:Object}},emits:["change","error"],setup(d,{emit:c}){const o=e.ref(""),n=c;function l(){const t=o.value.toString();try{n("change",t),n("error",!1)}catch(r){n("error",!0),console.log("error",r)}}function s(t){return t}return(t,r)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(i,{format:"html",modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),check:s},null,8,["modelValue"]),e.createElementVNode("div",{onClick:e.withModifiers(l,["stop"]),class:"but-div"},"插入")]))}});module.exports=_;
1
+ "use strict";const e=require("vue"),i=require("../input/index.vue.cjs");;/* empty css */const a={class:"slot"},_=e.defineComponent({__name:"index",props:{value:{type:Object}},emits:["change","error"],setup(d,{emit:c}){const o=e.ref(""),n=c;function s(){const t=o.value.toString();try{n("change",t),n("error",!1)}catch(r){n("error",!0),console.log("error",r)}}function l(t){return t}return(t,r)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(i,{format:"html",modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),check:l},null,8,["modelValue"]),e.createElementVNode("div",{onClick:e.withModifiers(s,["stop"]),class:"but-div"},"插入")]))}});module.exports=_;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../code/highlight.vue.cjs"),p=require("../../utils/index.cjs"),l=require("./code.cjs"),v=require("../../utils/util.cjs"),m={class:"set-code"},h={class:"but-div set-code-but"},x={class:"set-code-html"},b=e.defineComponent({__name:"set-code",props:{name:{type:String},param:{type:Object},value:{type:Object},slotValue:{type:Object},propsText:{type:Object},exposeText:{type:Object}},setup(i){const t=i,o=e.ref("");e.watch([()=>t.name,()=>t.param,()=>t.value,()=>t.slotValue,()=>t.propsText,()=>t.exposeText],()=>{o.value=l.getHmtl(t.name||"",t.param||{},t.value||{},t.slotValue,t.propsText,t.exposeText)},{deep:!0});const s=e.ref(!1);function n(){o.value=l.getHmtl(t.name||"",t.param||{},t.value||{},t.slotValue,t.propsText,t.exposeText)}function a(){s.value=!s.value}function r(){p.copyCode(o.value)}function u(){v.exportStringToFile(o.value,t.name+".vue")}return(f,c)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",{onClick:a,class:"set-code-buts"},[c[0]||(c[0]=e.createElementVNode("div",null,"代码",-1)),e.createElementVNode("div",h,e.toDisplayString(s.value?"显示":"隐藏"),1),e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:"but-div set-code-but"}," 复制 "),e.createElementVNode("div",{onClick:e.withModifiers(u,["stop"]),class:"but-div set-code-but"}," 下载 "),e.createElementVNode("div",{onClick:e.withModifiers(n,["stop"]),class:"but-div set-code-but"}," 刷新 ")]),e.withDirectives(e.createElementVNode("div",x,[e.createVNode(d,{language:"html",code:o.value},null,8,["code"])],512),[[e.vShow,s.value]])]))}});module.exports=b;
1
+ "use strict";const t=require("vue"),p=require("./code.vue.cjs"),n=require("./code.cjs"),r={class:"set-code"},a=t.defineComponent({__name:"set-code",props:{name:{type:String},param:{type:Object},value:{type:Object},slotValue:{type:Object},propsText:{type:Object},exposeText:{type:Object}},setup(c){const e=c,o=t.ref("");t.watch([()=>e.name,()=>e.param,()=>e.value,()=>e.slotValue,()=>e.propsText,()=>e.exposeText],()=>{s()},{deep:!0});function s(){o.value=n.getHmtl(e.name||"",e.param||{},e.value||{},e.slotValue,e.propsText,e.exposeText)}return(l,u)=>(t.openBlock(),t.createElementBlock("div",r,[t.createVNode(p,{name:e.name,html:o.value,onRefresh:s},null,8,["name","html"])]))}});module.exports=a;
@@ -1,9 +1,7 @@
1
- import { defineComponent as v, ref as c, watch as m, createElementBlock as f, openBlock as x, createElementVNode as t, withDirectives as b, toDisplayString as h, withModifiers as l, createVNode as C, vShow as _ } from "vue";
2
- import k from "../code/highlight.vue.js";
3
- import { copyCode as y } from "../../utils/index.js";
4
- import { getHmtl as i } from "./code.js";
5
- import { exportStringToFile as T } from "../../utils/util.js";
6
- const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { class: "set-code-html" }, H = /* @__PURE__ */ v({
1
+ import { defineComponent as p, ref as n, watch as r, createElementBlock as s, openBlock as c, createVNode as m } from "vue";
2
+ import l from "./code.vue.js";
3
+ import { getHmtl as u } from "./code.js";
4
+ const f = { class: "set-code" }, v = /* @__PURE__ */ p({
7
5
  __name: "set-code",
8
6
  props: {
9
7
  name: {
@@ -25,9 +23,9 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
25
23
  type: Object
26
24
  }
27
25
  },
28
- setup(n) {
29
- const e = n, o = c("");
30
- m(
26
+ setup(a) {
27
+ const e = a, t = n("");
28
+ r(
31
29
  [
32
30
  () => e.name,
33
31
  () => e.param,
@@ -37,20 +35,12 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
37
35
  () => e.exposeText
38
36
  ],
39
37
  () => {
40
- o.value = i(
41
- e.name || "",
42
- e.param || {},
43
- e.value || {},
44
- e.slotValue,
45
- e.propsText,
46
- e.exposeText
47
- );
38
+ o();
48
39
  },
49
40
  { deep: !0 }
50
41
  );
51
- const s = c(!1);
52
- function p() {
53
- o.value = i(
42
+ function o() {
43
+ t.value = u(
54
44
  e.name || "",
55
45
  e.param || {},
56
46
  e.value || {},
@@ -59,46 +49,15 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
59
49
  e.exposeText
60
50
  );
61
51
  }
62
- function u() {
63
- s.value = !s.value;
64
- }
65
- function r() {
66
- y(o.value);
67
- }
68
- function d() {
69
- T(o.value, e.name + ".vue");
70
- }
71
- return (w, a) => (x(), f("div", g, [
72
- t("div", {
73
- onClick: u,
74
- class: "set-code-buts"
75
- }, [
76
- a[0] || (a[0] = t("div", null, "代码", -1)),
77
- t("div", V, h(s.value ? "显示" : "隐藏"), 1),
78
- t("div", {
79
- onClick: l(r, ["stop"]),
80
- class: "but-div set-code-but"
81
- }, " 复制 "),
82
- t("div", {
83
- onClick: l(d, ["stop"]),
84
- class: "but-div set-code-but"
85
- }, " 下载 "),
86
- t("div", {
87
- onClick: l(p, ["stop"]),
88
- class: "but-div set-code-but"
89
- }, " 刷新 ")
90
- ]),
91
- b(t("div", j, [
92
- C(k, {
93
- language: "html",
94
- code: o.value
95
- }, null, 8, ["code"])
96
- ], 512), [
97
- [_, s.value]
98
- ])
52
+ return (i, x) => (c(), s("div", f, [
53
+ m(l, {
54
+ name: e.name,
55
+ html: t.value,
56
+ onRefresh: o
57
+ }, null, 8, ["name", "html"])
99
58
  ]));
100
59
  }
101
60
  });
102
61
  export {
103
- H as default
62
+ v as default
104
63
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("../../components/main/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),u={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(r){return(o,s)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
1
+ "use strict";const e=require("vue"),_=require("../../components/main/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),u={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(r){return(s,o)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
@@ -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(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;
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(s){return(o,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;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue2.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),_=require("../../components/compo/code.vue.cjs");;/* empty css */const u=require("../../components/choice/index.vue.cjs"),r={class:"__document-edit"},n=e.defineComponent({__name:"index",setup(c){return(s,o)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(u,null,{default:e.withCtx(t=>[e.createVNode(_,{istop:"",value:t.value},null,8,["value"])]),_:1})]))}});module.exports=n;
@@ -0,0 +1,23 @@
1
+ import { defineComponent as o, createElementBlock as n, openBlock as _, createVNode as e, withCtx as r } from "vue";
2
+ import a from "../../components/compo/code.vue.js";
3
+ /* empty css */
4
+ import c from "../../components/choice/index.vue.js";
5
+ const i = { class: "__document-edit" }, v = /* @__PURE__ */ o({
6
+ __name: "index",
7
+ setup(m) {
8
+ return (l, s) => (_(), n("div", i, [
9
+ e(c, null, {
10
+ default: r((t) => [
11
+ e(a, {
12
+ istop: "",
13
+ value: t.value
14
+ }, null, 8, ["value"])
15
+ ]),
16
+ _: 1
17
+ })
18
+ ]));
19
+ }
20
+ });
21
+ export {
22
+ v as default
23
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));function u(){return Object.assign({"../page/compon/index.vue":()=>Promise.resolve().then(()=>o(require("../page/compon/index.vue.cjs"))),"../page/comprops/index.vue":()=>Promise.resolve().then(()=>o(require("../page/comprops/index.vue.cjs"))),"../page/develop/index.vue":()=>Promise.resolve().then(()=>o(require("../page/develop/index.vue.cjs"))),"../page/index/index.vue":()=>Promise.resolve().then(()=>o(require("../page/index/index.vue.cjs"))),"../page/single/index.vue":()=>Promise.resolve().then(()=>o(require("../page/single/index.vue.cjs"))),"../page/tests/index.vue":()=>Promise.resolve().then(()=>o(require("../page/tests/index.vue.cjs")))})}function a(e){let t=e.replace(/\.\/|\/index.(ts|vue)/g,"");return t=t.replace(".page/",""),t}function l(e){let t=e.split("/"),r=[];return t.forEach(n=>{r.push(...n.split("-"))}),r=r.map(n=>n.slice(0,1).toUpperCase()+n.slice(1)),r.join("")}function p(e){return e}function c(){const e=[],t=u();for(const r in t){const n=t[r];let i=a(r),s=i;i=l(i),e.push({name:i,key:r,value:s,component:n})}return e}exports.getFileName=c;exports.getRouterName=l;exports.getRouterValueName=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));function u(){return Object.assign({"../page/compon/index.vue":()=>Promise.resolve().then(()=>n(require("../page/compon/index.vue.cjs"))),"../page/comprops/index.vue":()=>Promise.resolve().then(()=>n(require("../page/comprops/index.vue.cjs"))),"../page/develop/index.vue":()=>Promise.resolve().then(()=>n(require("../page/develop/index.vue.cjs"))),"../page/edit/index.vue":()=>Promise.resolve().then(()=>n(require("../page/edit/index.vue.cjs"))),"../page/index/index.vue":()=>Promise.resolve().then(()=>n(require("../page/index/index.vue.cjs"))),"../page/single/index.vue":()=>Promise.resolve().then(()=>n(require("../page/single/index.vue.cjs"))),"../page/tests/index.vue":()=>Promise.resolve().then(()=>n(require("../page/tests/index.vue.cjs")))})}function a(e){let t=e.replace(/\.\/|\/index.(ts|vue)/g,"");return t=t.replace(".page/",""),t}function l(e){let t=e.split("/"),r=[];return t.forEach(o=>{r.push(...o.split("-"))}),r=r.map(o=>o.slice(0,1).toUpperCase()+o.slice(1)),r.join("")}function p(e){return e}function g(){const e=[],t=u();for(const r in t){const o=t[r];let i=a(r),s=i;i=l(i),e.push({name:i,key:r,value:s,component:o})}return e}exports.getFileName=g;exports.getRouterName=l;exports.getRouterValueName=p;
@@ -1,8 +1,9 @@
1
- function i() {
1
+ function r() {
2
2
  return /* @__PURE__ */ Object.assign({
3
3
  "../page/compon/index.vue": () => import("../page/compon/index.vue.js"),
4
4
  "../page/comprops/index.vue": () => import("../page/comprops/index.vue.js"),
5
5
  "../page/develop/index.vue": () => import("../page/develop/index.vue.js"),
6
+ "../page/edit/index.vue": () => import("../page/edit/index.vue.js"),
6
7
  "../page/index/index.vue": () => import("../page/index/index.vue.js"),
7
8
  "../page/single/index.vue": () => import("../page/single/index.vue.js"),
8
9
  "../page/tests/index.vue": () => import("../page/tests/index.vue.js")
@@ -22,14 +23,14 @@ function u(e) {
22
23
  return e;
23
24
  }
24
25
  function l() {
25
- const e = [], t = i();
26
+ const e = [], t = r();
26
27
  for (const n in t) {
27
28
  const o = t[n];
28
- let p = a(n), r = p;
29
+ let p = a(n), i = p;
29
30
  p = s(p), e.push({
30
31
  name: p,
31
32
  key: n,
32
- value: r,
33
+ value: i,
33
34
  component: o
34
35
  });
35
36
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),s=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const f=require("./file.cjs"),g=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),i=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>g(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",y);function y(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&s.setSession("-keydown-F5",2)}let o="__document";function h(e){o=u.getConfig("router")||"__document";let t="/"+o;i[0].path=t,i[0].redirect={name:o+"Index"},i[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),f.getFileName().forEach(n=>{i[0].children?.push({path:n.value,name:o+n.name,component:n.component})});const a=u.getConfig("redirect");if(i.forEach(n=>{e.addRoute(n),e.beforeEach((r,c)=>{if(c.fullPath=="/"){let p=s.getSession("-keydown-F5");document.referrer||p==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;s.setSession("-keydown-F5",0)})}),a){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 k(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?{}:s.getSession("router.toPage."+t)}}function l(e,t,a="push"){let n=t.path||"";const r=t.name,c=t.params||{};e[a](t),r&&(n=e.resolve({name:r}).path),d[n]=c,s.setSession("router.toPage."+n,c)}function _(e,t){l(e,{name:o+"Single",query:{id:t.name+"/"+t.value},params:{key:t.key,comkey:t.comkey}})}function v(e,t){l(e,{name:o+"Develop",query:{id:t.value},params:{key:t.key}})}function P(e,t){l(e,{name:o+"Tests",query:{id:t.value},params:{key:t.key}})}function S(e,t){l(e,{name:o+"Compon",query:{id:t.value},params:{key:t.key}})}exports.getPageParams=k;exports.init=h;exports.toCompon=S;exports.toDevelop=v;exports.toPage=l;exports.toSingle=_;exports.toTests=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),l=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const f=require("./file.cjs"),g=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),s=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>g(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",y);function y(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&l.setSession("-keydown-F5",2)}let o="__document";function h(e){o=u.getConfig("router")||"__document";let t="/"+o;s[0].path=t,s[0].redirect={name:o+"Index"},s[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),f.getFileName().forEach(n=>{s[0].children?.push({path:n.value,name:o+n.name,component:n.component})});const a=u.getConfig("redirect");if(s.forEach(n=>{e.addRoute(n),e.beforeEach((i,c)=>{if(c.fullPath=="/"){let p=l.getSession("-keydown-F5");document.referrer||p==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;l.setSession("-keydown-F5",0)})}),a){const n=e.getRoutes().filter(i=>i.path=="/")[0]||{path:"/"};n.redirect=t,n.name?e.addRoute(n.name,n):e.addRoute(n)}}const d={};function k(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?{}:l.getSession("router.toPage."+t)}}function r(e,t,a="push"){let n=t.path||"";const i=t.name,c=t.params||{};e[a](t),i&&(n=e.resolve({name:i}).path),d[n]=c,l.setSession("router.toPage."+n,c)}function v(e,t){r(e,{name:o+"Single",query:{id:t.name+"/"+t.value},params:{key:t.key,comkey:t.comkey}})}function _(e,t){r(e,{name:o+"Develop",query:{id:t.value},params:{key:t.key}})}function P(e,t){r(e,{name:o+"Edit",query:{id:t.value},params:{key:t.key}})}function S(e,t){r(e,{name:o+"Tests",query:{id:t.value},params:{key:t.key}})}function q(e,t){r(e,{name:o+"Compon",query:{id:t.value},params:{key:t.key}})}exports.getPageParams=k;exports.init=h;exports.toCompon=q;exports.toDevelop=_;exports.toEdit=P;exports.toPage=r;exports.toSingle=v;exports.toTests=S;
@@ -14,6 +14,7 @@ export declare function toPage(router: Router, push: PushObj, type?: ToPush): vo
14
14
  export declare function tos(router: Router, obj: ComponentsObj, name?: string): void;
15
15
  export declare function toSingle(router: Router, obj: TestsObj): void;
16
16
  export declare function toDevelop(router: Router, obj: ComponentsObj): void;
17
+ export declare function toEdit(router: Router, obj: ComponentsObj): void;
17
18
  export declare function toTests(router: Router, obj: ComponentsObj): void;
18
19
  export declare function toCompon(router: Router, obj: ComponentsObj): void;
19
20
  export declare function toIndex(router: Router, id: string): void;
@@ -1,7 +1,7 @@
1
1
  import { getConfig as d } from "../config.js";
2
2
  import { setSession as s, getSession as p } from "../utils/storage.js";
3
3
  import "@fangzhongya/utils/basic/string/firstUpper";
4
- import { getFileName as h } from "./file.js";
4
+ import { getFileName as y } from "./file.js";
5
5
  const i = [
6
6
  {
7
7
  path: "/__document",
@@ -12,20 +12,20 @@ const i = [
12
12
  children: []
13
13
  }
14
14
  ];
15
- let c = 0;
16
- document.addEventListener("keydown", y);
17
- function y(e) {
18
- e = e || window.event, (e.ctrlKey && e.location == 82 || //ctrl+R
19
- e.location == 116) && s("-keydown-F5", 2);
15
+ let l = 0;
16
+ document.addEventListener("keydown", h);
17
+ function h(t) {
18
+ t = t || window.event, (t.ctrlKey && t.location == 82 || //ctrl+R
19
+ t.location == 116) && s("-keydown-F5", 2);
20
20
  }
21
21
  let o = "__document";
22
- function P(e) {
22
+ function P(t) {
23
23
  o = d("router") || "__document";
24
- let t = "/" + o;
25
- i[0].path = t, i[0].redirect = { name: o + "Index" }, i[0].children?.unshift({
26
- path: t + "/:chapters+",
24
+ let e = "/" + o;
25
+ i[0].path = e, i[0].redirect = { name: o + "Index" }, i[0].children?.unshift({
26
+ path: e + "/:chapters+",
27
27
  redirect: { name: o + "Index" }
28
- }), h().forEach((n) => {
28
+ }), y().forEach((n) => {
29
29
  i[0].children?.push({
30
30
  path: n.value,
31
31
  name: o + n.name,
@@ -34,78 +34,88 @@ function P(e) {
34
34
  });
35
35
  const a = d("redirect");
36
36
  if (i.forEach((n) => {
37
- e.addRoute(n), e.beforeEach((r, m) => {
38
- if (m.fullPath == "/") {
37
+ t.addRoute(n), t.beforeEach((r, c) => {
38
+ if (c.fullPath == "/") {
39
39
  let f = p("-keydown-F5");
40
- document.referrer || f == 2 ? (console.log("刷新"), c = 2) : (console.log("地址栏输入 或者 刷新"), c = 3);
40
+ document.referrer || f == 2 ? (console.log("刷新"), l = 2) : (console.log("地址栏输入 或者 刷新"), l = 3);
41
41
  } else
42
- console.log("跳转"), c = 1;
42
+ console.log("跳转"), l = 1;
43
43
  s("-keydown-F5", 0);
44
44
  });
45
45
  }), a) {
46
- const n = e.getRoutes().filter((r) => r.path == "/")[0] || {
46
+ const n = t.getRoutes().filter((r) => r.path == "/")[0] || {
47
47
  path: "/"
48
48
  };
49
- n.redirect = t, n.name ? e.addRoute(n.name, n) : e.addRoute(n);
49
+ n.redirect = e, n.name ? t.addRoute(n.name, n) : t.addRoute(n);
50
50
  }
51
51
  }
52
52
  const u = {};
53
- function w(e) {
54
- let t = e.path, a = e.params;
53
+ function w(t) {
54
+ let e = t.path, a = t.params;
55
55
  if (a && Object.keys(a).length)
56
56
  return a;
57
57
  {
58
- let n = u[t];
59
- return n && Object.keys(n).length ? n : c == 3 ? {} : p("router.toPage." + t);
58
+ let n = u[e];
59
+ return n && Object.keys(n).length ? n : l == 3 ? {} : p("router.toPage." + e);
60
60
  }
61
61
  }
62
- function l(e, t, a = "push") {
63
- let n = t.path || "";
64
- const r = t.name, m = t.params || {};
65
- e[a](t), r && (n = e.resolve({ name: r }).path), u[n] = m, s("router.toPage." + n, m);
62
+ function m(t, e, a = "push") {
63
+ let n = e.path || "";
64
+ const r = e.name, c = e.params || {};
65
+ t[a](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
66
66
  }
67
- function x(e, t) {
68
- l(e, {
67
+ function E(t, e) {
68
+ m(t, {
69
69
  name: o + "Single",
70
70
  query: {
71
- id: t.name + "/" + t.value
71
+ id: e.name + "/" + e.value
72
72
  },
73
- params: { key: t.key, comkey: t.comkey }
73
+ params: { key: e.key, comkey: e.comkey }
74
74
  });
75
75
  }
76
- function q(e, t) {
77
- l(e, {
76
+ function q(t, e) {
77
+ m(t, {
78
78
  name: o + "Develop",
79
79
  query: {
80
- id: t.value
80
+ id: e.value
81
81
  },
82
- params: { key: t.key }
82
+ params: { key: e.key }
83
83
  });
84
84
  }
85
- function E(e, t) {
86
- l(e, {
85
+ function x(t, e) {
86
+ m(t, {
87
+ name: o + "Edit",
88
+ query: {
89
+ id: e.value
90
+ },
91
+ params: { key: e.key }
92
+ });
93
+ }
94
+ function F(t, e) {
95
+ m(t, {
87
96
  name: o + "Tests",
88
97
  query: {
89
- id: t.value
98
+ id: e.value
90
99
  },
91
- params: { key: t.key }
100
+ params: { key: e.key }
92
101
  });
93
102
  }
94
- function F(e, t) {
95
- l(e, {
103
+ function R(t, e) {
104
+ m(t, {
96
105
  name: o + "Compon",
97
106
  query: {
98
- id: t.value
107
+ id: e.value
99
108
  },
100
- params: { key: t.key }
109
+ params: { key: e.key }
101
110
  });
102
111
  }
103
112
  export {
104
113
  w as getPageParams,
105
114
  P as init,
106
- F as toCompon,
115
+ R as toCompon,
107
116
  q as toDevelop,
108
- l as toPage,
109
- x as toSingle,
110
- E as toTests
117
+ x as toEdit,
118
+ m as toPage,
119
+ E as toSingle,
120
+ F as toTests
111
121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.55",
4
+ "version": "0.0.56",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",