@fangzhongya/vue-archive 0.0.46 → 0.0.48

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 (40) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/node/index.cjs +166 -134
  3. package/dist/node/index.d.cts +4 -0
  4. package/dist/node/index.d.ts +4 -0
  5. package/dist/node/index.js +166 -134
  6. package/dist/packages/components/boxurl/index.vue.cjs +1 -1
  7. package/dist/packages/components/boxurl/index.vue.js +37 -27
  8. package/dist/packages/components/code/index.vue.cjs +1 -1
  9. package/dist/packages/components/code/index.vue.js +67 -57
  10. package/dist/packages/components/compo/index.vue.cjs +1 -1
  11. package/dist/packages/components/compo/index.vue.js +18 -16
  12. package/dist/packages/components/compo/info-top.vue.cjs +1 -0
  13. package/dist/packages/components/compo/info-top.vue.js +32 -0
  14. package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
  15. package/dist/packages/components/compo/info-top.vue2.js +4 -0
  16. package/dist/packages/components/compo/props.vue.cjs +1 -1
  17. package/dist/packages/components/compo/props.vue.js +44 -40
  18. package/dist/packages/components/compo/top.cjs +1 -1
  19. package/dist/packages/components/compo/top.js +69 -48
  20. package/dist/packages/components/main/index.vue.cjs +1 -1
  21. package/dist/packages/components/main/index.vue.js +30 -25
  22. package/dist/packages/components/test/index.cjs +1 -1
  23. package/dist/packages/components/test/index.js +24 -22
  24. package/dist/packages/components/test/top.cjs +1 -1
  25. package/dist/packages/components/test/top.js +69 -84
  26. package/dist/packages/components/use/set-code.vue.cjs +1 -1
  27. package/dist/packages/components/use/set-code.vue.js +31 -36
  28. package/dist/packages/config.d.ts +3 -0
  29. package/dist/packages/page/develop/index.vue2.cjs +1 -1
  30. package/dist/packages/page/develop/index.vue2.js +2 -1
  31. package/dist/packages/utils/common.cjs +1 -1
  32. package/dist/packages/utils/common.d.ts +2 -0
  33. package/dist/packages/utils/common.js +13 -12
  34. package/dist/packages/utils/glob.cjs +2 -2
  35. package/dist/packages/utils/glob.d.ts +1 -1
  36. package/dist/packages/utils/glob.js +226 -235
  37. package/dist/packages/utils/util.cjs +1 -0
  38. package/dist/packages/utils/util.d.ts +4 -0
  39. package/dist/packages/utils/util.js +46 -0
  40. package/package.json +2 -2
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 .__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}: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)}
@@ -24,12 +24,12 @@ __export(index_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(index_exports);
26
26
 
27
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
27
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
28
28
  function isArray(obj) {
29
29
  return Object.prototype.toString.call(obj) == "[object Array]";
30
30
  }
31
31
 
32
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
32
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
33
33
  function getStartSames(str, val) {
34
34
  let s = "";
35
35
  const vs = [...val];
@@ -45,7 +45,7 @@ function getStartSames(str, val) {
45
45
  return [s, str.substring(index), val.substring(index)];
46
46
  }
47
47
 
48
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
48
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
49
49
  function getImportUrl(url, imp) {
50
50
  const arr = getStartSames(url, imp);
51
51
  const ts = arr[0];
@@ -72,12 +72,12 @@ function getImportUrl(url, imp) {
72
72
  return ds.join("") + arr[2].replace(/\\/g, "/");
73
73
  }
74
74
 
75
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
75
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
76
76
  function firstUpper(str) {
77
77
  return str.slice(0, 1).toUpperCase() + str.slice(1);
78
78
  }
79
79
 
80
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
80
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
81
81
  function lineToLargeHump(name) {
82
82
  let arr = name.split("-");
83
83
  arr = arr.map((vs) => {
@@ -786,7 +786,7 @@ function runDev(config2, configCallback) {
786
786
  return new FangMd(config2, configCallback);
787
787
  }
788
788
 
789
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
789
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
790
790
  var zObj = {
791
791
  "<": "&lt;",
792
792
  ">": "&gt;",
@@ -807,7 +807,7 @@ function htmlEscape(str) {
807
807
  // packages/node/index.ts
808
808
  var import_node_path = require("path");
809
809
 
810
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
810
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
811
811
  function mergeObject(a, b, j = 0, i) {
812
812
  if (a instanceof Array) {
813
813
  if (j > 0 && i) {
@@ -850,7 +850,7 @@ function mergeObject(a, b, j = 0, i) {
850
850
  return a;
851
851
  }
852
852
 
853
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
853
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
854
854
  function humpToLine(name) {
855
855
  const reg = /(([A-Z])([^A-Z]*))/g;
856
856
  let result;
@@ -872,7 +872,7 @@ function humpToLine(name) {
872
872
  }
873
873
  }
874
874
 
875
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js
875
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js
876
876
  function appearNum(str, t) {
877
877
  let reg = t;
878
878
  if (typeof t == "string") {
@@ -883,12 +883,12 @@ function appearNum(str, t) {
883
883
  return c;
884
884
  }
885
885
 
886
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
886
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
887
887
  function firstLower(str) {
888
888
  return str.slice(0, 1).toLowerCase() + str.slice(1);
889
889
  }
890
890
 
891
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
891
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
892
892
  function asyncMergeArray(arr, callback) {
893
893
  return new Promise((resolve2, reject) => {
894
894
  let index = 0;
@@ -912,7 +912,7 @@ function asyncMergeArray(arr, callback) {
912
912
  });
913
913
  }
914
914
 
915
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
915
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
916
916
  function getSuffix2(url) {
917
917
  const reg = /\.([a-z|A-Z]+)$/;
918
918
  const regs = reg.exec(url);
@@ -933,7 +933,7 @@ function getConfig(key) {
933
933
  return config[key];
934
934
  }
935
935
 
936
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
936
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
937
937
  function getVueText(content) {
938
938
  const result = {
939
939
  template: "",
@@ -1050,6 +1050,7 @@ function getUrlName(url, pps, raliass = {}, alias = "") {
1050
1050
  let rsobj = {
1051
1051
  url: "",
1052
1052
  dir: "",
1053
+ cwd: "",
1053
1054
  suffix: getSuffix2(url),
1054
1055
  name: lineToLargeHump(value),
1055
1056
  value,
@@ -1112,6 +1113,7 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
1112
1113
  value.curprops = config2.curprops || "";
1113
1114
  value.value = k;
1114
1115
  value.dir = v.dir;
1116
+ value.cwd = v.cwd;
1115
1117
  value.suffix = getSuffix2(key);
1116
1118
  value.tdir = tdir;
1117
1119
  value.key = key;
@@ -1125,6 +1127,7 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
1125
1127
  value.comprops = config2.comprops;
1126
1128
  value.curprops = config2.curprops;
1127
1129
  value.dir = v.dir;
1130
+ value.cwd = v.cwd;
1128
1131
  value.tdir = tdir;
1129
1132
  value.key = key;
1130
1133
  value.component = com[key];
@@ -1519,7 +1522,7 @@ function parse(source, options = {}) {
1519
1522
  }
1520
1523
  var stringify = getStringifier();
1521
1524
 
1522
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1525
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1523
1526
  function deComment(code) {
1524
1527
  let output = "";
1525
1528
  let state = "code";
@@ -1611,7 +1614,7 @@ function deComment(code) {
1611
1614
  return output;
1612
1615
  }
1613
1616
 
1614
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1617
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1615
1618
  function getImports(code, includeType = false) {
1616
1619
  code = deComment(code);
1617
1620
  const imports = /* @__PURE__ */ new Set();
@@ -1860,6 +1863,7 @@ function getTestMd(topurl, mlurl, exa, com) {
1860
1863
  const comName = mlurl[index];
1861
1864
  if (key == topurl + comName + exa.md + ".md") {
1862
1865
  arr.push({
1866
+ cwd: exa.cwd || com.cwd,
1863
1867
  topurl,
1864
1868
  comkey: com.key,
1865
1869
  suffix: getSuffix2(key),
@@ -1913,6 +1917,7 @@ function getTestObj(key) {
1913
1917
  suffix: getSuffix2(key2),
1914
1918
  comname: com.name,
1915
1919
  comkey: com.key,
1920
+ cwd: exa.cwd || com.cwd,
1916
1921
  key: key2,
1917
1922
  dir: com.dir,
1918
1923
  url: key2,
@@ -1941,6 +1946,7 @@ function getTestArrs(arr, com, exa) {
1941
1946
  if (key == testurl + exa.md + ".md") {
1942
1947
  com.mds = com.mds || [];
1943
1948
  com.mds.push({
1949
+ cwd: com.cwd,
1944
1950
  topurl: testurl,
1945
1951
  comkey: com.key,
1946
1952
  suffix: getSuffix2(key),
@@ -1970,6 +1976,7 @@ function getTestArrs(arr, com, exa) {
1970
1976
  suffix: getSuffix2(key),
1971
1977
  comname: com.name,
1972
1978
  comkey: com.key,
1979
+ cwd: exa.cwd || com.cwd,
1973
1980
  key,
1974
1981
  dir: com.dir,
1975
1982
  url: key,
@@ -1987,6 +1994,7 @@ function getTestArrs(arr, com, exa) {
1987
1994
  if (key == testurl + exa.md + ".md") {
1988
1995
  com.mds = com.mds || [];
1989
1996
  com.mds.push({
1997
+ cwd: com.cwd,
1990
1998
  topurl: testurl,
1991
1999
  comkey: com.key,
1992
2000
  suffix: getSuffix2(key),
@@ -2010,6 +2018,7 @@ function getTestArrs(arr, com, exa) {
2010
2018
  value = ms[1];
2011
2019
  }
2012
2020
  arr[key] = {
2021
+ cwd: exa.cwd || com.cwd,
2013
2022
  topurl: testurl,
2014
2023
  name: com.value,
2015
2024
  value,
@@ -2041,8 +2050,13 @@ function getKeyMds(key) {
2041
2050
  getTestObj(key);
2042
2051
  return componentsObj[key].mds;
2043
2052
  }
2044
- async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2045
- let arr = await getImport(text, type) || [];
2053
+ async function getTestImportUrl(cobj, text, type) {
2054
+ let key = cobj.key;
2055
+ let dir = cobj.dir;
2056
+ let url = cobj.url;
2057
+ let comprops = cobj.comprops;
2058
+ let curprops = cobj.curprops;
2059
+ let arr = await getImport(text, type || cobj.suffix) || [];
2046
2060
  let urs = url.split("/");
2047
2061
  return arr.map((value) => {
2048
2062
  if (value.startsWith("./")) {
@@ -2054,6 +2068,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2054
2068
  const rv = {
2055
2069
  key: ukey,
2056
2070
  name: value,
2071
+ cwd: cobj.cwd,
2057
2072
  comprops: comprops || "",
2058
2073
  curprops: curprops || "",
2059
2074
  value: v,
@@ -2082,6 +2097,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2082
2097
  const rv = {
2083
2098
  key: ukey,
2084
2099
  name: v,
2100
+ cwd: cobj.cwd,
2085
2101
  comprops: comprops || "",
2086
2102
  curprops: curprops || "",
2087
2103
  value: v,
@@ -2105,6 +2121,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2105
2121
  suffix: getSuffix2(value),
2106
2122
  head,
2107
2123
  dir,
2124
+ cwd: cobj.cwd,
2108
2125
  url: head + "/" + v
2109
2126
  };
2110
2127
  return rv;
@@ -2181,15 +2198,7 @@ function getCompoNameObj() {
2181
2198
  async function getPropsImport(text, obj) {
2182
2199
  let ts = text;
2183
2200
  if (text) {
2184
- let arr = (await getTestImportUrl(
2185
- obj.key,
2186
- text,
2187
- obj.suffix,
2188
- obj.dir,
2189
- obj.url,
2190
- obj.comprops,
2191
- obj.curprops
2192
- )).filter((v) => {
2201
+ let arr = (await getTestImportUrl(obj, text)).filter((v) => {
2193
2202
  return isComprops(v.key, obj.comprops || "") || isCurprops(v.key, obj.curprops || "");
2194
2203
  });
2195
2204
  ts = await getPropsTexts(arr) + ts;
@@ -2238,15 +2247,7 @@ async function getComponentsProps(text, obj) {
2238
2247
  let ts = text;
2239
2248
  if (text) {
2240
2249
  if (obj.comprops || obj.curprops) {
2241
- let arr = (await getTestImportUrl(
2242
- obj.key,
2243
- text,
2244
- obj.suffix,
2245
- obj.dir,
2246
- obj.url,
2247
- obj.comprops || "",
2248
- obj.curprops
2249
- )).filter((v) => {
2250
+ let arr = (await getTestImportUrl(obj, text)).filter((v) => {
2250
2251
  return isComprops(v.key, obj.comprops || "") || isCurprops(v.key, obj.curprops || "");
2251
2252
  });
2252
2253
  let str = await getPropsTexts(arr);
@@ -2594,6 +2595,9 @@ function addTags(tag, obj) {
2594
2595
  case "text":
2595
2596
  addTitle(obj);
2596
2597
  return true;
2598
+ case "html":
2599
+ addTitle(obj);
2600
+ return true;
2597
2601
  default:
2598
2602
  return false;
2599
2603
  }
@@ -2726,22 +2730,32 @@ function getTopDom(props2, h4, isZy) {
2726
2730
  if (is) {
2727
2731
  setDivision();
2728
2732
  }
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
- );
2733
+ let type = (obj.title.type || "div").split(".");
2734
+ let c = type[1] || "";
2735
+ if (type[0] == "html") {
2736
+ doms.push(
2737
+ h4("div", {
2738
+ class: "compo-top-title " + c,
2739
+ innerHTML: obj.title.name + " " + obj.title.description
2740
+ })
2741
+ );
2742
+ } else {
2743
+ doms.push(
2744
+ h4(
2745
+ type[0],
2746
+ {
2747
+ class: "compo-top-title " + c
2748
+ },
2749
+ [
2750
+ h4("span", {}, [
2751
+ getValue(
2752
+ obj.title.name + " " + obj.title.description
2753
+ )
2754
+ ])
2755
+ ]
2756
+ )
2757
+ );
2758
+ }
2745
2759
  }
2746
2760
  if (is) {
2747
2761
  if (list.length > 0) {
@@ -2758,24 +2772,46 @@ function getTopDom(props2, h4, isZy) {
2758
2772
  )
2759
2773
  );
2760
2774
  }
2761
- if (obj.text) {
2762
- let type = obj.text.type || "div";
2775
+ if (obj.html) {
2776
+ let type = (obj.html.type || "div").split(".");
2777
+ let c = type[1] || "";
2763
2778
  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
- )
2779
+ h4(type[0], {
2780
+ class: "compo-top-html " + c,
2781
+ innerHTML: obj.html.name + " " + obj.html.description
2782
+ })
2777
2783
  );
2778
2784
  }
2785
+ ["text"].forEach((v) => {
2786
+ if (obj[v]) {
2787
+ let type = (obj[v].type || "div").split(".");
2788
+ let c = type[1] || "";
2789
+ if (type[0] == "html") {
2790
+ list.push(
2791
+ h4("div", {
2792
+ class: "compo-top-" + v + " " + c,
2793
+ innerHTML: obj[v].name + " " + obj[v].description
2794
+ })
2795
+ );
2796
+ } else {
2797
+ list.push(
2798
+ h4(
2799
+ type[0],
2800
+ {
2801
+ class: "compo-top-" + v + " " + c
2802
+ },
2803
+ [
2804
+ h4("span", {}, [
2805
+ getValue(
2806
+ obj[v].name + " " + obj[v].description
2807
+ )
2808
+ ])
2809
+ ]
2810
+ )
2811
+ );
2812
+ }
2813
+ }
2814
+ });
2779
2815
  });
2780
2816
  setTitle3();
2781
2817
  setDivision();
@@ -2887,22 +2923,32 @@ function getTestTopDom(props2, h4, isZy) {
2887
2923
  if (is) {
2888
2924
  setDivision();
2889
2925
  }
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
- );
2926
+ let type = (obj.title.type || "div").split(".");
2927
+ let c = type[1] || "";
2928
+ if (type[0] == "html") {
2929
+ doms.push(
2930
+ h4("div", {
2931
+ class: "test-top-title " + c,
2932
+ innerHTML: obj.title.name + " " + obj.title.description
2933
+ })
2934
+ );
2935
+ } else {
2936
+ doms.push(
2937
+ h4(
2938
+ type[0],
2939
+ {
2940
+ class: "test-top-title " + c
2941
+ },
2942
+ [
2943
+ h4("span", {}, [
2944
+ getValue(
2945
+ obj.title.name + " " + obj.title.description
2946
+ )
2947
+ ])
2948
+ ]
2949
+ )
2950
+ );
2951
+ }
2906
2952
  }
2907
2953
  if (is) {
2908
2954
  if (list.length > 0) {
@@ -2919,60 +2965,46 @@ function getTestTopDom(props2, h4, isZy) {
2919
2965
  )
2920
2966
  );
2921
2967
  }
2922
- if (obj.text) {
2923
- let type = obj.text.type || "div";
2968
+ if (obj.html) {
2969
+ let type = (obj.html.type || "div").split(".");
2970
+ let c = type[1] || "";
2924
2971
  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
- )
2972
+ h4(type[0], {
2973
+ class: "test-top-html " + c,
2974
+ innerHTML: obj.html.name + " " + obj.html.description
2975
+ })
2974
2976
  );
2975
2977
  }
2978
+ ["text", "proposal", "error"].forEach((v) => {
2979
+ if (obj[v]) {
2980
+ let type = (obj[v].type || "div").split(".");
2981
+ let c = type[1] || "";
2982
+ if (type[0] == "html") {
2983
+ list.push(
2984
+ h4("div", {
2985
+ class: "test-top-" + v + " " + c,
2986
+ innerHTML: obj[v].name + " " + obj[v].description
2987
+ })
2988
+ );
2989
+ } else {
2990
+ list.push(
2991
+ h4(
2992
+ type[0],
2993
+ {
2994
+ class: "test-top-" + v + " " + c
2995
+ },
2996
+ [
2997
+ h4("span", {}, [
2998
+ getValue(
2999
+ obj[v].name + " " + obj[v].description
3000
+ )
3001
+ ])
3002
+ ]
3003
+ )
3004
+ );
3005
+ }
3006
+ }
3007
+ });
2976
3008
  });
2977
3009
  setTitle3();
2978
3010
  setDivision();
@@ -2997,7 +3029,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
2997
3029
  }
2998
3030
  });
2999
3031
 
3000
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3032
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3001
3033
  var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
3002
3034
  function getFunctionFormat(v) {
3003
3035
  if (!v) return;
@@ -10,6 +10,7 @@ interface GlobComs {
10
10
  }
11
11
  interface Component {
12
12
  dir: string;
13
+ cwd?: string;
13
14
  extensions?: Array<string>;
14
15
  alias?: string;
15
16
  aliass?: ObjStr;
@@ -32,6 +33,7 @@ interface ExampleObj {
32
33
  tests?: boolean;
33
34
  testsNanme?: string;
34
35
  dir?: string;
36
+ cwd?: string;
35
37
  /**
36
38
  * 0 : url 下面就是组件
37
39
  * 1 : dir 名称开始
@@ -71,6 +73,7 @@ interface Config {
71
73
  redirect?: boolean;
72
74
  useparam?: boolean;
73
75
  resolve?: Resolve[];
76
+ directory?: string;
74
77
  components: Array<Components>;
75
78
  example?: ExampleObj;
76
79
  }
@@ -80,6 +83,7 @@ interface TextObj {
80
83
  value: string;
81
84
  suffix: string;
82
85
  key: string;
86
+ cwd?: string;
83
87
  raw: string;
84
88
  getRaw: GetRaw | null;
85
89
  }
@@ -10,6 +10,7 @@ interface GlobComs {
10
10
  }
11
11
  interface Component {
12
12
  dir: string;
13
+ cwd?: string;
13
14
  extensions?: Array<string>;
14
15
  alias?: string;
15
16
  aliass?: ObjStr;
@@ -32,6 +33,7 @@ interface ExampleObj {
32
33
  tests?: boolean;
33
34
  testsNanme?: string;
34
35
  dir?: string;
36
+ cwd?: string;
35
37
  /**
36
38
  * 0 : url 下面就是组件
37
39
  * 1 : dir 名称开始
@@ -71,6 +73,7 @@ interface Config {
71
73
  redirect?: boolean;
72
74
  useparam?: boolean;
73
75
  resolve?: Resolve[];
76
+ directory?: string;
74
77
  components: Array<Components>;
75
78
  example?: ExampleObj;
76
79
  }
@@ -80,6 +83,7 @@ interface TextObj {
80
83
  value: string;
81
84
  suffix: string;
82
85
  key: string;
86
+ cwd?: string;
83
87
  raw: string;
84
88
  getRaw: GetRaw | null;
85
89
  }