@fangzhongya/vue-archive 0.0.47 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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);
@@ -3028,7 +3029,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
3028
3029
  }
3029
3030
  });
3030
3031
 
3031
- // 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
3032
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]*))$/;
3033
3034
  function getFunctionFormat(v) {
3034
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
  }
@@ -1,9 +1,9 @@
1
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
1
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
2
2
  function isArray(obj) {
3
3
  return Object.prototype.toString.call(obj) == "[object Array]";
4
4
  }
5
5
 
6
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
6
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
7
7
  function getStartSames(str, val) {
8
8
  let s = "";
9
9
  const vs = [...val];
@@ -19,7 +19,7 @@ function getStartSames(str, val) {
19
19
  return [s, str.substring(index), val.substring(index)];
20
20
  }
21
21
 
22
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
22
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
23
23
  function getImportUrl(url, imp) {
24
24
  const arr = getStartSames(url, imp);
25
25
  const ts = arr[0];
@@ -46,12 +46,12 @@ function getImportUrl(url, imp) {
46
46
  return ds.join("") + arr[2].replace(/\\/g, "/");
47
47
  }
48
48
 
49
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
49
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
50
50
  function firstUpper(str) {
51
51
  return str.slice(0, 1).toUpperCase() + str.slice(1);
52
52
  }
53
53
 
54
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
54
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
55
55
  function lineToLargeHump(name) {
56
56
  let arr = name.split("-");
57
57
  arr = arr.map((vs) => {
@@ -771,7 +771,7 @@ function runDev(config2, configCallback) {
771
771
  return new FangMd(config2, configCallback);
772
772
  }
773
773
 
774
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
774
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
775
775
  var zObj = {
776
776
  "<": "&lt;",
777
777
  ">": "&gt;",
@@ -792,7 +792,7 @@ function htmlEscape(str) {
792
792
  // packages/node/index.ts
793
793
  import { join as join4 } from "path";
794
794
 
795
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
795
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
796
796
  function mergeObject(a, b, j = 0, i) {
797
797
  if (a instanceof Array) {
798
798
  if (j > 0 && i) {
@@ -835,7 +835,7 @@ function mergeObject(a, b, j = 0, i) {
835
835
  return a;
836
836
  }
837
837
 
838
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
838
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
839
839
  function humpToLine(name) {
840
840
  const reg = /(([A-Z])([^A-Z]*))/g;
841
841
  let result;
@@ -857,7 +857,7 @@ function humpToLine(name) {
857
857
  }
858
858
  }
859
859
 
860
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js
860
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js
861
861
  function appearNum(str, t) {
862
862
  let reg = t;
863
863
  if (typeof t == "string") {
@@ -868,12 +868,12 @@ function appearNum(str, t) {
868
868
  return c;
869
869
  }
870
870
 
871
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
871
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
872
872
  function firstLower(str) {
873
873
  return str.slice(0, 1).toLowerCase() + str.slice(1);
874
874
  }
875
875
 
876
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
876
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
877
877
  function asyncMergeArray(arr, callback) {
878
878
  return new Promise((resolve2, reject) => {
879
879
  let index = 0;
@@ -897,7 +897,7 @@ function asyncMergeArray(arr, callback) {
897
897
  });
898
898
  }
899
899
 
900
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
900
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
901
901
  function getSuffix2(url) {
902
902
  const reg = /\.([a-z|A-Z]+)$/;
903
903
  const regs = reg.exec(url);
@@ -918,7 +918,7 @@ function getConfig(key) {
918
918
  return config[key];
919
919
  }
920
920
 
921
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
921
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
922
922
  function getVueText(content) {
923
923
  const result = {
924
924
  template: "",
@@ -1035,6 +1035,7 @@ function getUrlName(url, pps, raliass = {}, alias = "") {
1035
1035
  let rsobj = {
1036
1036
  url: "",
1037
1037
  dir: "",
1038
+ cwd: "",
1038
1039
  suffix: getSuffix2(url),
1039
1040
  name: lineToLargeHump(value),
1040
1041
  value,
@@ -1097,6 +1098,7 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
1097
1098
  value.curprops = config2.curprops || "";
1098
1099
  value.value = k;
1099
1100
  value.dir = v.dir;
1101
+ value.cwd = v.cwd;
1100
1102
  value.suffix = getSuffix2(key);
1101
1103
  value.tdir = tdir;
1102
1104
  value.key = key;
@@ -1110,6 +1112,7 @@ function getComponentsArr(urls, v, comRaw, com, config2) {
1110
1112
  value.comprops = config2.comprops;
1111
1113
  value.curprops = config2.curprops;
1112
1114
  value.dir = v.dir;
1115
+ value.cwd = v.cwd;
1113
1116
  value.tdir = tdir;
1114
1117
  value.key = key;
1115
1118
  value.component = com[key];
@@ -1504,7 +1507,7 @@ function parse(source, options = {}) {
1504
1507
  }
1505
1508
  var stringify = getStringifier();
1506
1509
 
1507
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1510
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1508
1511
  function deComment(code) {
1509
1512
  let output = "";
1510
1513
  let state = "code";
@@ -1596,7 +1599,7 @@ function deComment(code) {
1596
1599
  return output;
1597
1600
  }
1598
1601
 
1599
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1602
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1600
1603
  function getImports(code, includeType = false) {
1601
1604
  code = deComment(code);
1602
1605
  const imports = /* @__PURE__ */ new Set();
@@ -1845,6 +1848,7 @@ function getTestMd(topurl, mlurl, exa, com) {
1845
1848
  const comName = mlurl[index];
1846
1849
  if (key == topurl + comName + exa.md + ".md") {
1847
1850
  arr.push({
1851
+ cwd: exa.cwd || com.cwd,
1848
1852
  topurl,
1849
1853
  comkey: com.key,
1850
1854
  suffix: getSuffix2(key),
@@ -1898,6 +1902,7 @@ function getTestObj(key) {
1898
1902
  suffix: getSuffix2(key2),
1899
1903
  comname: com.name,
1900
1904
  comkey: com.key,
1905
+ cwd: exa.cwd || com.cwd,
1901
1906
  key: key2,
1902
1907
  dir: com.dir,
1903
1908
  url: key2,
@@ -1926,6 +1931,7 @@ function getTestArrs(arr, com, exa) {
1926
1931
  if (key == testurl + exa.md + ".md") {
1927
1932
  com.mds = com.mds || [];
1928
1933
  com.mds.push({
1934
+ cwd: com.cwd,
1929
1935
  topurl: testurl,
1930
1936
  comkey: com.key,
1931
1937
  suffix: getSuffix2(key),
@@ -1955,6 +1961,7 @@ function getTestArrs(arr, com, exa) {
1955
1961
  suffix: getSuffix2(key),
1956
1962
  comname: com.name,
1957
1963
  comkey: com.key,
1964
+ cwd: exa.cwd || com.cwd,
1958
1965
  key,
1959
1966
  dir: com.dir,
1960
1967
  url: key,
@@ -1972,6 +1979,7 @@ function getTestArrs(arr, com, exa) {
1972
1979
  if (key == testurl + exa.md + ".md") {
1973
1980
  com.mds = com.mds || [];
1974
1981
  com.mds.push({
1982
+ cwd: com.cwd,
1975
1983
  topurl: testurl,
1976
1984
  comkey: com.key,
1977
1985
  suffix: getSuffix2(key),
@@ -1995,6 +2003,7 @@ function getTestArrs(arr, com, exa) {
1995
2003
  value = ms[1];
1996
2004
  }
1997
2005
  arr[key] = {
2006
+ cwd: exa.cwd || com.cwd,
1998
2007
  topurl: testurl,
1999
2008
  name: com.value,
2000
2009
  value,
@@ -2026,8 +2035,13 @@ function getKeyMds(key) {
2026
2035
  getTestObj(key);
2027
2036
  return componentsObj[key].mds;
2028
2037
  }
2029
- async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2030
- let arr = await getImport(text, type) || [];
2038
+ async function getTestImportUrl(cobj, text, type) {
2039
+ let key = cobj.key;
2040
+ let dir = cobj.dir;
2041
+ let url = cobj.url;
2042
+ let comprops = cobj.comprops;
2043
+ let curprops = cobj.curprops;
2044
+ let arr = await getImport(text, type || cobj.suffix) || [];
2031
2045
  let urs = url.split("/");
2032
2046
  return arr.map((value) => {
2033
2047
  if (value.startsWith("./")) {
@@ -2039,6 +2053,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2039
2053
  const rv = {
2040
2054
  key: ukey,
2041
2055
  name: value,
2056
+ cwd: cobj.cwd,
2042
2057
  comprops: comprops || "",
2043
2058
  curprops: curprops || "",
2044
2059
  value: v,
@@ -2067,6 +2082,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2067
2082
  const rv = {
2068
2083
  key: ukey,
2069
2084
  name: v,
2085
+ cwd: cobj.cwd,
2070
2086
  comprops: comprops || "",
2071
2087
  curprops: curprops || "",
2072
2088
  value: v,
@@ -2090,6 +2106,7 @@ async function getTestImportUrl(key, text, type, dir, url, comprops, curprops) {
2090
2106
  suffix: getSuffix2(value),
2091
2107
  head,
2092
2108
  dir,
2109
+ cwd: cobj.cwd,
2093
2110
  url: head + "/" + v
2094
2111
  };
2095
2112
  return rv;
@@ -2166,15 +2183,7 @@ function getCompoNameObj() {
2166
2183
  async function getPropsImport(text, obj) {
2167
2184
  let ts = text;
2168
2185
  if (text) {
2169
- let arr = (await getTestImportUrl(
2170
- obj.key,
2171
- text,
2172
- obj.suffix,
2173
- obj.dir,
2174
- obj.url,
2175
- obj.comprops,
2176
- obj.curprops
2177
- )).filter((v) => {
2186
+ let arr = (await getTestImportUrl(obj, text)).filter((v) => {
2178
2187
  return isComprops(v.key, obj.comprops || "") || isCurprops(v.key, obj.curprops || "");
2179
2188
  });
2180
2189
  ts = await getPropsTexts(arr) + ts;
@@ -2223,15 +2232,7 @@ async function getComponentsProps(text, obj) {
2223
2232
  let ts = text;
2224
2233
  if (text) {
2225
2234
  if (obj.comprops || obj.curprops) {
2226
- let arr = (await getTestImportUrl(
2227
- obj.key,
2228
- text,
2229
- obj.suffix,
2230
- obj.dir,
2231
- obj.url,
2232
- obj.comprops || "",
2233
- obj.curprops
2234
- )).filter((v) => {
2235
+ let arr = (await getTestImportUrl(obj, text)).filter((v) => {
2235
2236
  return isComprops(v.key, obj.comprops || "") || isCurprops(v.key, obj.curprops || "");
2236
2237
  });
2237
2238
  let str = await getPropsTexts(arr);
@@ -3013,7 +3014,7 @@ var top_default2 = defineComponent2({
3013
3014
  }
3014
3015
  });
3015
3016
 
3016
- // node_modules/.pnpm/@fangzhongya+utils@0.0.26/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3017
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.27/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3017
3018
  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]*))$/;
3018
3019
  function getFunctionFormat(v) {
3019
3020
  if (!v) return;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),h=require("../boxurl/index.vue.cjs"),c=require("../../utils/glob.cjs"),_=require("../../utils/common.cjs"),N={class:"aside-search"},C={class:"aside-list"},E=["onClick"],B={class:"aside-li-name"},V={class:"aside-li-name-name"},x={class:"aside-li-name-aliass"},T=e.defineComponent({__name:"index",props:{value:Object},emits:["change"],setup(k,{emit:f}){const r=k,i=e.ref(),o=e.ref([]);o.value=c.getCompoNameObj();const l=e.ref(r.value);if(!l.value||!l.value.key){let t=_.getAsideKey();t?l.value=c.getCompoNameKey(t):l.value=o.value[0]}const n=e.ref("");e.watch(()=>r.value,()=>{l.value=r.value,u()}),e.watch(()=>n.value,()=>{g()});const d=f;function v(t){return t?t.replace(/[\.|\/|\s]/g,"-"):"a"}function y(t){l.value=t,u(),d("change",t)}let m;function g(){clearTimeout(m),m=setTimeout(()=>{let t=n.value;t?o.value=c.getCompoName(t,!0):o.value=c.getCompoNameObj()},400)}function u(){let t=l.value?.key||"";_.setAsideKey(t)}return u(),d("change",l.value),e.onMounted(()=>{e.nextTick(()=>{const t=i.value.querySelector(".aside-li."+v(l.value?.key));if(t){const s=t.offsetTop,a=i.value.parentNode;a.scrollTop=s}})}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"aside",ref_key:"refAside",ref:i},[e.createElementVNode("div",N,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>n.value=a)},null,512),[[e.vModelText,n.value]])]),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(a,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",v(a.key)+" "+(a.key==l.value.key?"on":"")]),onClick:p=>y(a)},[e.createVNode(h,{value:a},{default:e.withCtx(()=>[e.createElementVNode("div",B,[e.createElementVNode("div",V,e.toDisplayString(a.name),1),e.createElementVNode("span",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.aliasNames,p=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(p),1))),256))])])]),_:2},1032,["value"])],10,E))),256))])],512))}});module.exports=T;
1
+ "use strict";const e=require("vue"),h=require("../boxurl/index.vue.cjs"),c=require("../../utils/glob.cjs"),_=require("../../utils/common.cjs"),N={class:"aside-search"},C={class:"aside-list"},E=["onClick"],B={class:"aside-li-name"},V={class:"aside-li-name-name"},x={class:"aside-li-name-aliass"},T=e.defineComponent({__name:"index",props:{value:Object},emits:["change"],setup(k,{emit:f}){const r=k,i=e.ref(),o=e.ref([]);o.value=c.getCompoNameObj();const l=e.ref(r.value);if(!l.value||!l.value.key){let t=_.getAsideKey();t?l.value=c.getCompoNameKey(t):l.value=o.value[0]}const n=e.ref("");e.watch(()=>r.value,()=>{l.value=r.value,u()}),e.watch(()=>n.value,()=>{g()});const d=f;function v(t){return t?t.replace(/[\.|\/|\s]/g,"-"):"a"}function y(t){l.value=t,u(),d("change",t)}let m;function g(){clearTimeout(m),m=setTimeout(()=>{let t=n.value;t?o.value=c.getCompoName(t,!0):o.value=c.getCompoNameObj()},400)}function u(){let t=l.value?.key||"";_.setAsideKey(t)}return u(),d("change",l.value),e.onMounted(()=>{e.nextTick(()=>{const t=i.value.querySelector(".aside-li."+v(l.value?.key));if(t){const s=t.offsetTop,a=i.value.parentNode;a.scrollTop=s}})}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"aside",ref_key:"refAside",ref:i},[e.createElementVNode("div",N,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>n.value=a)},null,512),[[e.vModelText,n.value]])]),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(a,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",v(a.key)+" "+(a.key==l.value?.key?"on":"")]),onClick:p=>y(a)},[e.createVNode(h,{value:a},{default:e.withCtx(()=>[e.createElementVNode("div",B,[e.createElementVNode("div",V,e.toDisplayString(a.name),1),e.createElementVNode("span",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.aliasNames,p=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(p),1))),256))])])]),_:2},1032,["value"])],10,E))),256))])],512))}});module.exports=T;
@@ -72,7 +72,7 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
72
72
  (n(!0), o(y, null, h(l.value, (a, I) => (n(), o("div", {
73
73
  class: j([
74
74
  "aside-li",
75
- f(a.key) + " " + (a.key == t.value.key ? "on" : "")
75
+ f(a.key) + " " + (a.key == t.value?.key ? "on" : "")
76
76
  ]),
77
77
  onClick: (_) => T(a)
78
78
  }, [