@fangzhongya/vue-archive 0.0.94 → 0.0.96

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
@@ -1,4 +1,4 @@
1
- :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, 184, 250);--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(247, 255, 251);--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(227, 227, 227);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(255, 255, 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}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .but-div{color:var(--but-cor);padding:5px 10px}.__document .aside{width:100%;overflow:hidden;padding:10px;box-sizing:border-box}.__document .aside .aside-search{width:100%;box-sizing:border-box;margin-bottom:10px}.__document .aside .aside-search .aside-search-input{width:100%;height:30px;border-radius:4px;box-sizing:border-box}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-radius:4px;border-bottom:1px solid var(--bor-cor);cursor:pointer}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li{display:flex;flex-direction:row;align-items:center}.__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 .md-top-name{padding:10px;font-size:16px;font-weight:700}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo-info .compo-info-name-span{font-size:18px;font-weight:700;padding:10px 0}.__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-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top .test-top-top{padding:10px;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:10px;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}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .box-url .box-url-box .box-div-but{color:var(--but-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{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{box-sizing:border-box;height:100%;width:100%;position:relative;display:flex}.__document .__document-compon .__document-compon-body{padding:10px;flex:1;overflow-y:auto}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{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)}.form-input-text{padding:10px;height:160px;width:100%;box-sizing:border-box}.editor-div{padding:10px;height:160px;background-color:#eee}.editor-div .editor-code{height:100%;width:100%;min-height:80px;background-color:#fff}.form-input{font-size:16px}.form-select{position:relative;font-size:16px}.form-select .form-select-input{padding:10px;width:100%;font-size:16px;box-sizing:border-box}.form-select .form-select-box{position:absolute;width:100%;z-index:100;background-color:#000;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #000000}.form-select .form-select-box .form-select-list-div .form-select-list-li{background-color:#e9e9e9;padding:10px;cursor:pointer;border-bottom:1px solid #000000}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}.form-boolean{display:flex;font-size:16px;padding:10px}.form-boolean .form-boolean-div{margin-right:10px}.form-string{font-size:16px}.form-string .form-string-text{padding:10px;width:100%;box-sizing:border-box}.form-number{font-size:16px}.form-number .form-number-input{padding:10px;width:100%;box-sizing:border-box}.com-retrie .com-retrie-li .com-retrie-label{padding:5px 0}.set-emit .set-emit-li{padding:10px}.set-emit .set-emit-name{font-size:18px;padding:5px 0}.set-emit .set-emit-value{font-size:16px;background-color:azure}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
1
+ :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, 184, 250);--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(247, 255, 251);--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(227, 227, 227);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(255, 255, 255);--bg-use-component-cor: rgb(255, 255, 255);--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}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .but-div{color:var(--but-cor);padding:5px 10px}.__document .aside{width:100%;overflow:hidden;padding:10px;box-sizing:border-box}.__document .aside .aside-search{width:100%;box-sizing:border-box;margin-bottom:10px}.__document .aside .aside-search .aside-search-input{width:100%;height:30px;border-radius:4px;box-sizing:border-box}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-radius:4px;border-bottom:1px solid var(--bor-cor);cursor:pointer}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li{display:flex;flex-direction:row;align-items:center}.__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 .md-top-name{padding:10px;font-size:16px;font-weight:700}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo-info .compo-info-name-span{font-size:18px;font-weight:700;padding:10px 0}.__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-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top .test-top-top{padding:10px;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:10px;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}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .box-url .box-url-box .box-div-but{color:var(--but-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{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{box-sizing:border-box;height:100%;width:100%;position:relative;display:flex}.__document .__document-compon .__document-compon-body{background-color:var(--bg-index-cor);padding:10px;flex:1;overflow-y:auto}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .aside{width:250px;overflow:hidden}.__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)}.form-input-text{padding:10px;height:160px;width:100%;box-sizing:border-box}.editor-div{padding:10px;height:160px;background-color:#eee}.editor-div .editor-code{height:100%;width:100%;min-height:80px;background-color:#fff}.form-input{font-size:16px}.form-select{position:relative;font-size:16px}.form-select .form-select-input{padding:10px;width:100%;font-size:16px;box-sizing:border-box}.form-select .form-select-box{position:absolute;width:100%;z-index:100;background-color:#000;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #000000}.form-select .form-select-box .form-select-list-div .form-select-list-li{background-color:#e9e9e9;padding:10px;cursor:pointer;border-bottom:1px solid #000000}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}.form-boolean{display:flex;font-size:16px;padding:10px}.form-boolean .form-boolean-div{margin-right:10px}.form-string{font-size:16px}.form-string .form-string-text{padding:10px;width:100%;box-sizing:border-box}.form-number{font-size:16px}.form-number .form-number-input{padding:10px;width:100%;box-sizing:border-box}.com-retrie .com-retrie-li .com-retrie-label{padding:5px 0}.set-emit .set-emit-li{padding:10px}.set-emit .set-emit-name{font-size:18px;padding:5px 0}.set-emit .set-emit-value{font-size:16px;background-color:azure}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
2
2
  Theme: StackOverflow Light
3
3
  Description: Light theme as used on stackoverflow.com
4
4
  Author: stackoverflow.com
@@ -87,12 +87,12 @@ __export(index_exports, {
87
87
  });
88
88
  module.exports = __toCommonJS(index_exports);
89
89
 
90
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
90
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
91
91
  function isArray(obj2) {
92
92
  return Object.prototype.toString.call(obj2) == "[object Array]";
93
93
  }
94
94
 
95
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
95
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
96
96
  function getStartSames(str, val) {
97
97
  let s = "";
98
98
  const vs = [...val];
@@ -108,7 +108,7 @@ function getStartSames(str, val) {
108
108
  return [s, str.substring(index), val.substring(index)];
109
109
  }
110
110
 
111
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
111
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
112
112
  function getImportUrl(url, imp) {
113
113
  const arr = getStartSames(url, imp);
114
114
  const ts2 = arr[0];
@@ -135,12 +135,12 @@ function getImportUrl(url, imp) {
135
135
  return ds.join("") + arr[2].replace(/\\/g, "/");
136
136
  }
137
137
 
138
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
138
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
139
139
  function firstUpper(str) {
140
140
  return str.slice(0, 1).toUpperCase() + str.slice(1);
141
141
  }
142
142
 
143
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
143
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
144
144
  function lineToLargeHump(name) {
145
145
  let arr = name.split("-");
146
146
  arr = arr.map((vs) => {
@@ -849,7 +849,7 @@ function runDev(config2, configCallback) {
849
849
  return new FangMd(config2, configCallback);
850
850
  }
851
851
 
852
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
852
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
853
853
  var zObj = {
854
854
  "<": "&lt;",
855
855
  ">": "&gt;",
@@ -870,7 +870,7 @@ function htmlEscape(str) {
870
870
  // packages/node/index.ts
871
871
  var import_node_path = require("path");
872
872
 
873
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
873
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
874
874
  function mergeObject(a, b, j = 0, i) {
875
875
  if (a instanceof Array) {
876
876
  if (j > 0 && i) {
@@ -924,7 +924,7 @@ function getConfig(key) {
924
924
  return config[key];
925
925
  }
926
926
 
927
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
927
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
928
928
  function getVueText(content) {
929
929
  const result = {
930
930
  template: "",
@@ -971,7 +971,7 @@ function getVueTexts(content) {
971
971
  };
972
972
  }
973
973
 
974
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
974
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
975
975
  function humpToLine(name) {
976
976
  const reg = /(([A-Z])([^A-Z]*))/g;
977
977
  let result;
@@ -993,12 +993,12 @@ function humpToLine(name) {
993
993
  }
994
994
  }
995
995
 
996
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
996
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
997
997
  function firstLower(str) {
998
998
  return str.slice(0, 1).toLowerCase() + str.slice(1);
999
999
  }
1000
1000
 
1001
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
1001
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
1002
1002
  function asyncMergeArray(arr, callback) {
1003
1003
  return new Promise((resolve2, reject) => {
1004
1004
  let index = 0;
@@ -1022,7 +1022,7 @@ function asyncMergeArray(arr, callback) {
1022
1022
  });
1023
1023
  }
1024
1024
 
1025
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
1025
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
1026
1026
  function getSuffix2(url) {
1027
1027
  const reg = /\.([a-z|A-Z]+)$/;
1028
1028
  const regs = reg.exec(url);
@@ -1032,7 +1032,7 @@ function getSuffix2(url) {
1032
1032
  return "";
1033
1033
  }
1034
1034
 
1035
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1035
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1036
1036
  function matchsStart2(key, matchs) {
1037
1037
  if (matchs && matchs.length > 0) {
1038
1038
  for (const value of matchs) {
@@ -1052,7 +1052,7 @@ function matchsStart2(key, matchs) {
1052
1052
  }
1053
1053
  }
1054
1054
 
1055
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1055
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1056
1056
  function matchsEnd2(key, matchs) {
1057
1057
  if (matchs && matchs.length > 0) {
1058
1058
  for (const value of matchs) {
@@ -1715,7 +1715,7 @@ function parse(source, options = {}) {
1715
1715
  }
1716
1716
  var stringify = getStringifier();
1717
1717
 
1718
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1718
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1719
1719
  function deComment(code) {
1720
1720
  let output = "";
1721
1721
  let state = "code";
@@ -1807,7 +1807,7 @@ function deComment(code) {
1807
1807
  return output;
1808
1808
  }
1809
1809
 
1810
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1810
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1811
1811
  function getImports(code, includeType = false) {
1812
1812
  code = deComment(code);
1813
1813
  const imports = /* @__PURE__ */ new Set();
@@ -3211,7 +3211,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
3211
3211
  }
3212
3212
  });
3213
3213
 
3214
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3214
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3215
3215
  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]*))$/;
3216
3216
  function getFunctionFormat(v) {
3217
3217
  if (!v) return;
@@ -58,12 +58,12 @@ var init_prettier = __esm({
58
58
  }
59
59
  });
60
60
 
61
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
61
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
62
62
  function isArray(obj2) {
63
63
  return Object.prototype.toString.call(obj2) == "[object Array]";
64
64
  }
65
65
 
66
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
66
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
67
67
  function getStartSames(str, val) {
68
68
  let s = "";
69
69
  const vs = [...val];
@@ -79,7 +79,7 @@ function getStartSames(str, val) {
79
79
  return [s, str.substring(index), val.substring(index)];
80
80
  }
81
81
 
82
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
82
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
83
83
  function getImportUrl(url, imp) {
84
84
  const arr = getStartSames(url, imp);
85
85
  const ts2 = arr[0];
@@ -106,12 +106,12 @@ function getImportUrl(url, imp) {
106
106
  return ds.join("") + arr[2].replace(/\\/g, "/");
107
107
  }
108
108
 
109
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
109
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
110
110
  function firstUpper(str) {
111
111
  return str.slice(0, 1).toUpperCase() + str.slice(1);
112
112
  }
113
113
 
114
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
114
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
115
115
  function lineToLargeHump(name) {
116
116
  let arr = name.split("-");
117
117
  arr = arr.map((vs) => {
@@ -831,7 +831,7 @@ function runDev(config2, configCallback) {
831
831
  return new FangMd(config2, configCallback);
832
832
  }
833
833
 
834
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
834
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
835
835
  var zObj = {
836
836
  "<": "&lt;",
837
837
  ">": "&gt;",
@@ -852,7 +852,7 @@ function htmlEscape(str) {
852
852
  // packages/node/index.ts
853
853
  import { join as join4 } from "path";
854
854
 
855
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
855
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
856
856
  function mergeObject(a, b, j = 0, i) {
857
857
  if (a instanceof Array) {
858
858
  if (j > 0 && i) {
@@ -906,7 +906,7 @@ function getConfig(key) {
906
906
  return config[key];
907
907
  }
908
908
 
909
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
909
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
910
910
  function getVueText(content) {
911
911
  const result = {
912
912
  template: "",
@@ -953,7 +953,7 @@ function getVueTexts(content) {
953
953
  };
954
954
  }
955
955
 
956
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
956
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
957
957
  function humpToLine(name) {
958
958
  const reg = /(([A-Z])([^A-Z]*))/g;
959
959
  let result;
@@ -975,12 +975,12 @@ function humpToLine(name) {
975
975
  }
976
976
  }
977
977
 
978
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
978
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
979
979
  function firstLower(str) {
980
980
  return str.slice(0, 1).toLowerCase() + str.slice(1);
981
981
  }
982
982
 
983
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
983
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
984
984
  function asyncMergeArray(arr, callback) {
985
985
  return new Promise((resolve2, reject) => {
986
986
  let index = 0;
@@ -1004,7 +1004,7 @@ function asyncMergeArray(arr, callback) {
1004
1004
  });
1005
1005
  }
1006
1006
 
1007
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
1007
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
1008
1008
  function getSuffix2(url) {
1009
1009
  const reg = /\.([a-z|A-Z]+)$/;
1010
1010
  const regs = reg.exec(url);
@@ -1014,7 +1014,7 @@ function getSuffix2(url) {
1014
1014
  return "";
1015
1015
  }
1016
1016
 
1017
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1017
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1018
1018
  function matchsStart2(key, matchs) {
1019
1019
  if (matchs && matchs.length > 0) {
1020
1020
  for (const value of matchs) {
@@ -1034,7 +1034,7 @@ function matchsStart2(key, matchs) {
1034
1034
  }
1035
1035
  }
1036
1036
 
1037
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1037
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1038
1038
  function matchsEnd2(key, matchs) {
1039
1039
  if (matchs && matchs.length > 0) {
1040
1040
  for (const value of matchs) {
@@ -1697,7 +1697,7 @@ function parse(source, options = {}) {
1697
1697
  }
1698
1698
  var stringify = getStringifier();
1699
1699
 
1700
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1700
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1701
1701
  function deComment(code) {
1702
1702
  let output = "";
1703
1703
  let state = "code";
@@ -1789,7 +1789,7 @@ function deComment(code) {
1789
1789
  return output;
1790
1790
  }
1791
1791
 
1792
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1792
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
1793
1793
  function getImports(code, includeType = false) {
1794
1794
  code = deComment(code);
1795
1795
  const imports = /* @__PURE__ */ new Set();
@@ -3193,7 +3193,7 @@ var top_default2 = defineComponent2({
3193
3193
  }
3194
3194
  });
3195
3195
 
3196
- // node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3196
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.35/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3197
3197
  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]*))$/;
3198
3198
  function getFunctionFormat(v) {
3199
3199
  if (!v) return;
@@ -3,52 +3,3 @@ export declare function getJs(parent: HTMLElement, value: string, options?: stri
3
3
  export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
4
4
  export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
5
5
  export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
6
- ...items: string[]): string[];
7
- isArray(arg: any): arg is any[];
8
- readonly prototype: any[];
9
- from<T>(arrayLike: ArrayLike<T>): T[];
10
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
11
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
12
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
- of<T>(...items: T[]): T[];
14
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
15
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
16
- readonly [Symbol.species]: ArrayConstructor;
17
- };
18
- };
19
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
- "update:modelValue": (...args: any[]) => void;
21
- }, string, PublicProps, Readonly< ExtractPropTypes<{
22
- modelValue: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- format: {
27
- type: StringConstructor;
28
- };
29
- options: {
30
- type: {
31
- (arrayLength: number): string[];
32
- (...items: string[]): string[];
33
- new (arrayLength: number): string[];
34
- new (...items: string[]): string[];
35
- isArray(arg: any): arg is any[];
36
- readonly prototype: any[];
37
- from<T>(arrayLike: ArrayLike<T>): T[];
38
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
39
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
40
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
- of<T>(...items: T[]): T[];
42
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
43
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
44
- readonly [Symbol.species]: ArrayConstructor;
45
- };
46
- };
47
- }>> & Readonly<{
48
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
- }>, {
50
- modelValue: string;
51
- }, {}, {}, {}, string, ComponentProvideOptions, true, {
52
- refText: HTMLDivElement;
53
- }, HTMLDivElement>;
54
- export default _default;
@@ -1 +1 @@
1
- "use strict";const D=require("@fangzhongya/utils/name/lineToSmallHump"),V=require("@fangzhongya/utils/css/getCss"),B=require("@fangzhongya/utils/basic/string/splitUpper"),H=require("@fangzhongya/utils/dom/getShiftEvent"),l=require("@fangzhongya/utils/css/setCss"),L=14,w=14,m=1e3,h="px";function S(s){const t=["left","right","top","bottom","width","height"],n={};return t.forEach(e=>{s?n[e]=Number(V.getCss(s,e).replace(/[a-z|A-Z]*$/,"")):n[e]=0}),n}function U(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=0,i=n.length;for(;e<n.length;e++){const o=n[e];if(o===s&&(i=e),i<e&&o.nodeType==1)break}return n[e]}function I(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=n.length-1,i=-1;for(;e>=0;e--){const o=n[e];if(o===s&&(i=e),i>e&&o.nodeType==1)break}return n[e]}function v(s,t){return t=="bottom"||t=="right"?U(s):I(s)}function R(){const s=document.querySelector(".v-adjust-xux-height");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-height",t.style.zIndex="100000",t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.height="0",t.style.display="none",t.style.borderBottom="3px dashed #1d8bfa",document.body.appendChild(t),t}}function M(){const s=document.querySelector(".v-adjust-xux-width");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-width",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0",t.style.bottom="0",t.style.width="0",t.style.display="none",t.style.borderLeft="3px dashed #1d8bfa",document.body.appendChild(t),t}}function F(s){return s=="bottom"||s=="top"?"row-resize":s=="right"||s=="left"?"col-resize":s=="topRight"?"ne-resize":s=="topLeft"?"nw-resize":s=="bottomRight"?"se-resize":s=="bottomLeft"?"sw-resize":""}function P(s,t){const n=B.splitUpper(s);if(n.length==1)return s=="bottom"||s=="top"?(e,i)=>t&&t()?m:i[s]-e.pageY:s=="right"||s=="left"?(e,i)=>t&&t()?m:i[s]-e.pageX:(e,i)=>t&&t()?m:0;{const e=n[0],i=n[1];return(o,r)=>{if(t&&t())return m;const c=r[e]-o.pageY,f=r[i]-o.pageX;return f<w&&f>0-w&&c<L&&c>0-w?0:m}}}function W(s){if(s=="bottom"||s=="top"){const t=R();return{show:()=>{l.setCss(t,"display","block")},set:n=>{l.setCss(t,"top",n+h)}}}else if(s=="right"||s=="left"){const t=M();return{show:()=>{l.setCss(t,"display","block")},set:n=>{l.setCss(t,"left",n+h)}}}else{const t=M(),n=R();return{show:()=>{l.setCss(t,"display","block"),l.setCss(n,"display","block")},set:(e,i)=>{l.setCss(t,"left",e+h),l.setCss(n,"top",i+h)}}}}function Z(s,t){return s=="bottom"?(n,e,i)=>{const o=i.clientY-n.clientY+e.bottom;t(o,0)}:s=="top"?(n,e,i)=>{const o=i.clientY-n.clientY+e.top;t(o,0)}:s=="right"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right;t(o,0)}:s=="left"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left;t(o,0)}:s=="topRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.top;t(o,r)}:s=="bottomRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.bottom;t(o,r)}:s=="topLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,r=i.clientY-n.clientY+e.top;t(o,r)}:s=="bottomLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,r=i.clientY-n.clientY+e.bottom;t(o,r)}:(n,e,i)=>{const o=i.clientX-n.clientX+e.right,r=i.clientY-n.clientY+e.top;t(o,r)}}function $(s,t,n){return s=="bottom"?(e,i,o,r,c)=>{const f=r.height+i;f>0&&(l.setCss(e,"height",f+h),t&&l.setCss(t,"height",c.height-i+h))}:s=="top"?(e,i,o,r,c)=>{const f=r.height+i;f>0&&(l.setCss(e,"height",f+h),t&&l.setCss(t,"height",c.height-i+h),n&&l.setCss(e,"top",r.top-i+h))}:s=="right"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h))}:s=="left"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h))}:s=="topRight"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h),n&&l.setCss(e,"top",r.top-o+h))}:s=="bottomRight"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h))}:s=="topLeft"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h),n&&l.setCss(e,"top",r.top-o+h))}:s=="bottomLeft"?(e,i,o,r,c)=>{const f=r.width+i;f>0&&(l.setCss(e,"width",f+h),t&&l.setCss(t,"width",c.width-i+h),n&&l.setCss(e,"left",r.left-i+h));const u=r.height+o;u>0&&(l.setCss(e,"height",u+h),t&&l.setCss(t,"height",c.height-o+h))}:(e,i,o,r,c)=>{}}const G=["bottom","top","right","left","topRight","bottomRight","topLeft","bottomLeft"];function J(s,t,n){t=D.lineToSmallHump(t);let e={};n.adjoin&&(typeof n.adjoin=="boolean"?e.adjoin=v(s,t):typeof n.adjoin=="string"?e.adjoin=s.parentElement?.querySelector(n.adjoin):e.adjoin=n.adjoin),e.cursor=F(t),e.domObj=W(t),e.setMousemove=Z(t,e.domObj.set),e.setMousedown=o=>{t=="bottom"||t=="top"?e.domObj.set(o.clientY,0):t=="right"||t=="left"?e.domObj.set(o.clientX,0):e.domObj.set(o.clientX,o.clientY),e.domObj.show()},e.setValue=$(t,e.adjoin,n.position),e.setMouseup=(o,r,c,f)=>{let u=0,d=0;t=="bottom"?u=r.clientY-o.clientY:t=="top"?u=o.clientY-r.clientY:t=="right"?u=r.clientX-o.clientX:t=="left"?u=o.clientX-r.clientX:t=="topRight"?(d=o.clientY-r.clientY,u=r.clientX-o.clientX):t=="bottomRight"?(d=r.clientY-o.clientY,u=r.clientX-o.clientX):t=="topLeft"?(d=o.clientY-r.clientY,u=o.clientX-r.clientX):t=="bottomLeft"&&(d=r.clientY-o.clientY,u=o.clientX-r.clientX),e.setValue(s,u,d,c,f)};const i=P(t,n.getDisabled);return(o,r)=>{const c=i(o,r);if(c<L&&c>0-L)return e}}function K(s,t){return(s.all?G:Object.keys(s)).sort((e,i)=>i.length-e.length).map(e=>{const i=s.all?s.all:s[e];return J(t,e,i)})}const Q={name:"Adjust",mounted(s,t){const n=t.value,e=n.often;if(delete n.often,n&&Object.keys(n).length>0){let i=function(g){let p=!0;for(let X=0;X<r.length;X++){const q=r[X](g,b);if(q)return c=q,C=!0,p=!1,f.cursor=c.cursor,!0}if(p)return C=!1,f.cursor=u,!1},o=function(){f.cursor=u,d=!0,C=!1,l.setCss(R(),"display","none"),l.setCss(M(),"display","none")};const r=K(n,s);let c;const f=document.body.style,u=f.cursor;let d=!0,C=!1,b,Y,x;const A=g=>{d&&(b=s.getBoundingClientRect(),i(g))},N=g=>{d&&o()};let a;const T=g=>{c.setMousemove(a,b,g),e&&c.setMouseup(a,g,Y,x)},z=g=>{C&&c.setMouseup(a,g,Y,x),o()},O=(g,p)=>{C&&(a=g,Y=S(s),x=S(c.adjoin),d=!1,c.setMousedown(g),f.cursor=c.cursor,H.shiftEvent(p,document,T,z))};s.addEventListener("mousemove",A),s.addEventListener("mouseout",N),s.addEventListener("touchstart",g=>{const p=g.changedTouches[0];b=s.getBoundingClientRect(),i(p)&&O(p,"touch")}),s.addEventListener("mousedown",g=>{C&&O(g,"mouse")})}}};module.exports=Q;
1
+ "use strict";const T=require("@fangzhongya/utils/name/lineToSmallHump"),V=require("@fangzhongya/utils/css/getCss"),H=require("@fangzhongya/utils/basic/string/splitUpper"),U=require("@fangzhongya/utils/dom/getShiftEvent"),r=require("@fangzhongya/utils/css/setCss"),L=14,w=14,C=1e3,h="px";function q(s){const t=["left","right","top","bottom","width","height"],n={};return t.forEach(e=>{s?n[e]=Number(V.getCss(s,e).replace(/[a-z|A-Z]*$/,"")):n[e]=0}),n}function B(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=0,i=n.length;for(;e<n.length;e++){const o=n[e];if(o===s&&(i=e),i<e&&o.nodeType==1)break}return n[e]}function I(s,t){t||(t=s.parentElement||s);const n=t.childNodes;let e=n.length-1,i=-1;for(;e>=0;e--){const o=n[e];if(o===s&&(i=e),i>e&&o.nodeType==1)break}return n[e]}function F(s,t){return t=="bottom"||t=="right"?B(s):I(s)}function M(){const s=document.querySelector(".v-adjust-xux-height");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-height",t.style.zIndex="100000",t.style.position="fixed",t.style.left="0",t.style.right="0",t.style.height="0",t.style.display="none",t.style.borderBottom="3px dashed #1d8bfa",document.body.appendChild(t),t}}function R(){const s=document.querySelector(".v-adjust-xux-width");if(s)return s;{const t=document.createElement("div");return t.className="v-adjust-xux-width",t.style.zIndex="100000",t.style.position="fixed",t.style.top="0",t.style.bottom="0",t.style.width="0",t.style.display="none",t.style.borderLeft="3px dashed #1d8bfa",document.body.appendChild(t),t}}function P(s){return s=="bottom"||s=="top"?"row-resize":s=="right"||s=="left"?"col-resize":s=="topRight"?"ne-resize":s=="topLeft"?"nw-resize":s=="bottomRight"?"se-resize":s=="bottomLeft"?"sw-resize":""}function W(s,t){const n=H.splitUpper(s);if(n.length==1)return s=="bottom"||s=="top"?(e,i)=>t&&t()?C:i[s]-e.pageY:s=="right"||s=="left"?(e,i)=>t&&t()?C:i[s]-e.pageX:(e,i)=>t&&t()?C:0;{const e=n[0],i=n[1];return(o,l)=>{if(t&&t())return C;const c=l[e]-o.pageY,f=l[i]-o.pageX;return f<w&&f>0-w&&c<L&&c>0-w?0:C}}}function Z(s){if(s=="bottom"||s=="top"){const t=M();return{show:()=>{r.setCss(t,"display","block")},set:n=>{r.setCss(t,"top",n+h)}}}else if(s=="right"||s=="left"){const t=R();return{show:()=>{r.setCss(t,"display","block")},set:n=>{r.setCss(t,"left",n+h)}}}else{const t=R(),n=M();return{show:()=>{r.setCss(t,"display","block"),r.setCss(n,"display","block")},set:(e,i)=>{r.setCss(t,"left",e+h),r.setCss(n,"top",i+h)}}}}function $(s,t){return s=="bottom"?(n,e,i)=>{const o=i.clientY-n.clientY+e.bottom;t(o,0)}:s=="top"?(n,e,i)=>{const o=i.clientY-n.clientY+e.top;t(o,0)}:s=="right"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right;t(o,0)}:s=="left"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left;t(o,0)}:s=="topRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.top;t(o,l)}:s=="bottomRight"?(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.bottom;t(o,l)}:s=="topLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,l=i.clientY-n.clientY+e.top;t(o,l)}:s=="bottomLeft"?(n,e,i)=>{const o=i.clientX-n.clientX+e.left,l=i.clientY-n.clientY+e.bottom;t(o,l)}:(n,e,i)=>{const o=i.clientX-n.clientX+e.right,l=i.clientY-n.clientY+e.top;t(o,l)}}function v(s,t,n){return s=="bottom"?(e,i,o,l,c)=>{const f=l.height+i;f>0&&(r.setCss(e,"height",f+h),t&&r.setCss(t,"height",c.height-i+h))}:s=="top"?(e,i,o,l,c)=>{const f=l.height+i;f>0&&(r.setCss(e,"height",f+h),t&&r.setCss(t,"height",c.height-i+h),n&&r.setCss(e,"top",l.top-i+h))}:s=="right"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h))}:s=="left"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h))}:s=="topRight"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h),n&&r.setCss(e,"top",l.top-o+h))}:s=="bottomRight"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h))}:s=="topLeft"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h),n&&r.setCss(e,"top",l.top-o+h))}:s=="bottomLeft"?(e,i,o,l,c)=>{const f=l.width+i;f>0&&(r.setCss(e,"width",f+h),t&&r.setCss(t,"width",c.width-i+h),n&&r.setCss(e,"left",l.left-i+h));const u=l.height+o;u>0&&(r.setCss(e,"height",u+h),t&&r.setCss(t,"height",c.height-o+h))}:(e,i,o,l,c)=>{}}const G=["bottom","top","right","left","topRight","bottomRight","topLeft","bottomLeft"];function J(s,t,n){t=T.lineToSmallHump(t);let e={};n.adjoin&&(typeof n.adjoin=="boolean"?e.adjoin=F(s,t):typeof n.adjoin=="string"?e.adjoin=s.parentElement?.querySelector(n.adjoin):e.adjoin=n.adjoin),e.cursor=P(t),e.domObj=Z(t),e.setMousemove=$(t,e.domObj.set),e.setMousedown=o=>{t=="bottom"||t=="top"?e.domObj.set(o.clientY,0):t=="right"||t=="left"?e.domObj.set(o.clientX,0):e.domObj.set(o.clientX,o.clientY),e.domObj.show()},e.setValue=v(t,e.adjoin,n.position),e.setMouseup=(o,l,c,f)=>{let u=0,d=0;t=="bottom"?u=l.clientY-o.clientY:t=="top"?u=o.clientY-l.clientY:t=="right"?u=l.clientX-o.clientX:t=="left"?u=o.clientX-l.clientX:t=="topRight"?(d=o.clientY-l.clientY,u=l.clientX-o.clientX):t=="bottomRight"?(d=l.clientY-o.clientY,u=l.clientX-o.clientX):t=="topLeft"?(d=o.clientY-l.clientY,u=o.clientX-l.clientX):t=="bottomLeft"&&(d=l.clientY-o.clientY,u=o.clientX-l.clientX),e.setValue(s,u,d,c,f)};const i=W(t,n.getDisabled);return(o,l)=>{const c=i(o,l);if(c<L&&c>0-L)return e}}function K(s,t){return(s.all?G:Object.keys(s)).sort((e,i)=>i.length-e.length).map(e=>{const i=s.all?s.all:s[e];return J(t,e,i)})}const Q={name:"Adjust",mounted(s,t){const n=t.value,e=n.often;if(delete n.often,n&&Object.keys(n).length>0){let i=function(g){let b=!0;for(let x=0;x<l.length;x++){const O=l[x](g,X);if(O)return c=O,p=!0,b=!1,f.cursor=c.cursor,!0}if(b)return p=!1,f.cursor=u,!1},o=function(){f.cursor=u,d=!0,p=!1,r.setCss(M(),"display","none"),r.setCss(R(),"display","none")};const l=K(n,s);let c;const f=document.body.style,u=f.cursor;let d=!0,p=!1,X,Y,a;const S=g=>{d&&(X=s.getBoundingClientRect(),i(g))},A=g=>{d&&o()};let m;const N=g=>{c.setMousemove(m,X,g),e&&c.setMouseup(m,g,Y,a)},z=g=>{p&&c.setMouseup(m,g,Y,a),o()},D=(g,b)=>{p&&(m=g,Y=q(s),a=q(c.adjoin),d=!1,c.setMousedown(g),f.cursor=c.cursor,U.shiftEvent(b,document,N,z))};s.addEventListener("mousemove",S),s.addEventListener("mouseout",A),s.addEventListener("mousedown",g=>{p&&D(g,"mouse")})}}};module.exports=Q;
@@ -1,13 +1,13 @@
1
- import { lineToSmallHump as V } from "@fangzhongya/utils/name/lineToSmallHump";
2
- import { getCss as q } from "@fangzhongya/utils/css/getCss";
1
+ import { lineToSmallHump as q } from "@fangzhongya/utils/name/lineToSmallHump";
2
+ import { getCss as T } from "@fangzhongya/utils/css/getCss";
3
3
  import { splitUpper as B } from "@fangzhongya/utils/basic/string/splitUpper";
4
4
  import { shiftEvent as H } from "@fangzhongya/utils/dom/getShiftEvent";
5
- import { setCss as l } from "@fangzhongya/utils/css/setCss";
6
- const R = 14, L = 14, b = 1e3, h = "px";
7
- function N(i) {
5
+ import { setCss as r } from "@fangzhongya/utils/css/setCss";
6
+ const M = 14, L = 14, m = 1e3, h = "px";
7
+ function A(i) {
8
8
  const t = ["left", "right", "top", "bottom", "width", "height"], o = {};
9
9
  return t.forEach((e) => {
10
- i ? o[e] = Number(q(i, e).replace(/[a-z|A-Z]*$/, "")) : o[e] = 0;
10
+ i ? o[e] = Number(T(i, e).replace(/[a-z|A-Z]*$/, "")) : o[e] = 0;
11
11
  }), o;
12
12
  }
13
13
  function I(i, t) {
@@ -35,7 +35,7 @@ function U(i, t) {
35
35
  function F(i, t) {
36
36
  return t == "bottom" || t == "right" ? I(i) : U(i);
37
37
  }
38
- function M() {
38
+ function R() {
39
39
  const i = document.querySelector(".v-adjust-xux-height");
40
40
  if (i)
41
41
  return i;
@@ -59,46 +59,46 @@ function P(i) {
59
59
  function W(i, t) {
60
60
  const o = B(i);
61
61
  if (o.length == 1)
62
- return i == "bottom" || i == "top" ? (e, n) => t && t() ? b : n[i] - e.pageY : i == "right" || i == "left" ? (e, n) => t && t() ? b : n[i] - e.pageX : (e, n) => t && t() ? b : 0;
62
+ return i == "bottom" || i == "top" ? (e, n) => t && t() ? m : n[i] - e.pageY : i == "right" || i == "left" ? (e, n) => t && t() ? m : n[i] - e.pageX : (e, n) => t && t() ? m : 0;
63
63
  {
64
64
  const e = o[0], n = o[1];
65
- return (s, r) => {
65
+ return (s, l) => {
66
66
  if (t && t())
67
- return b;
68
- const c = r[e] - s.pageY, f = r[n] - s.pageX;
69
- return f < L && f > 0 - L && c < R && c > 0 - L ? 0 : b;
67
+ return m;
68
+ const c = l[e] - s.pageY, f = l[n] - s.pageX;
69
+ return f < L && f > 0 - L && c < M && c > 0 - L ? 0 : m;
70
70
  };
71
71
  }
72
72
  }
73
73
  function Z(i) {
74
74
  if (i == "bottom" || i == "top") {
75
- const t = M();
75
+ const t = R();
76
76
  return {
77
77
  show: () => {
78
- l(t, "display", "block");
78
+ r(t, "display", "block");
79
79
  },
80
80
  set: (o) => {
81
- l(t, "top", o + h);
81
+ r(t, "top", o + h);
82
82
  }
83
83
  };
84
84
  } else if (i == "right" || i == "left") {
85
85
  const t = O();
86
86
  return {
87
87
  show: () => {
88
- l(t, "display", "block");
88
+ r(t, "display", "block");
89
89
  },
90
90
  set: (o) => {
91
- l(t, "left", o + h);
91
+ r(t, "left", o + h);
92
92
  }
93
93
  };
94
94
  } else {
95
- const t = O(), o = M();
95
+ const t = O(), o = R();
96
96
  return {
97
97
  show: () => {
98
- l(t, "display", "block"), l(o, "display", "block");
98
+ r(t, "display", "block"), r(o, "display", "block");
99
99
  },
100
100
  set: (e, n) => {
101
- l(t, "left", e + h), l(o, "top", n + h);
101
+ r(t, "left", e + h), r(o, "top", n + h);
102
102
  }
103
103
  };
104
104
  }
@@ -117,59 +117,59 @@ function $(i, t) {
117
117
  const s = n.clientX - o.clientX + e.left;
118
118
  t(s, 0);
119
119
  } : i == "topRight" ? (o, e, n) => {
120
- const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.top;
121
- t(s, r);
120
+ const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.top;
121
+ t(s, l);
122
122
  } : i == "bottomRight" ? (o, e, n) => {
123
- const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.bottom;
124
- t(s, r);
123
+ const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.bottom;
124
+ t(s, l);
125
125
  } : i == "topLeft" ? (o, e, n) => {
126
- const s = n.clientX - o.clientX + e.left, r = n.clientY - o.clientY + e.top;
127
- t(s, r);
126
+ const s = n.clientX - o.clientX + e.left, l = n.clientY - o.clientY + e.top;
127
+ t(s, l);
128
128
  } : i == "bottomLeft" ? (o, e, n) => {
129
- const s = n.clientX - o.clientX + e.left, r = n.clientY - o.clientY + e.bottom;
130
- t(s, r);
129
+ const s = n.clientX - o.clientX + e.left, l = n.clientY - o.clientY + e.bottom;
130
+ t(s, l);
131
131
  } : (o, e, n) => {
132
- const s = n.clientX - o.clientX + e.right, r = n.clientY - o.clientY + e.top;
133
- t(s, r);
132
+ const s = n.clientX - o.clientX + e.right, l = n.clientY - o.clientY + e.top;
133
+ t(s, l);
134
134
  };
135
135
  }
136
- function v(i, t, o) {
137
- return i == "bottom" ? (e, n, s, r, c) => {
138
- const f = r.height + n;
139
- f > 0 && (l(e, "height", f + h), t && l(t, "height", c.height - n + h));
140
- } : i == "top" ? (e, n, s, r, c) => {
141
- const f = r.height + n;
142
- f > 0 && (l(e, "height", f + h), t && l(t, "height", c.height - n + h), o && l(e, "top", r.top - n + h));
143
- } : i == "right" ? (e, n, s, r, c) => {
144
- const f = r.width + n;
145
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
146
- } : i == "left" ? (e, n, s, r, c) => {
147
- const f = r.width + n;
148
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
149
- } : i == "topRight" ? (e, n, s, r, c) => {
150
- const f = r.width + n;
151
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
152
- const u = r.height + s;
153
- u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h), o && l(e, "top", r.top - s + h));
154
- } : i == "bottomRight" ? (e, n, s, r, c) => {
155
- const f = r.width + n;
156
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h));
157
- const u = r.height + s;
158
- u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h));
159
- } : i == "topLeft" ? (e, n, s, r, c) => {
160
- const f = r.width + n;
161
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
162
- const u = r.height + s;
163
- u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h), o && l(e, "top", r.top - s + h));
164
- } : i == "bottomLeft" ? (e, n, s, r, c) => {
165
- const f = r.width + n;
166
- f > 0 && (l(e, "width", f + h), t && l(t, "width", c.width - n + h), o && l(e, "left", r.left - n + h));
167
- const u = r.height + s;
168
- u > 0 && (l(e, "height", u + h), t && l(t, "height", c.height - s + h));
169
- } : (e, n, s, r, c) => {
136
+ function G(i, t, o) {
137
+ return i == "bottom" ? (e, n, s, l, c) => {
138
+ const f = l.height + n;
139
+ f > 0 && (r(e, "height", f + h), t && r(t, "height", c.height - n + h));
140
+ } : i == "top" ? (e, n, s, l, c) => {
141
+ const f = l.height + n;
142
+ f > 0 && (r(e, "height", f + h), t && r(t, "height", c.height - n + h), o && r(e, "top", l.top - n + h));
143
+ } : i == "right" ? (e, n, s, l, c) => {
144
+ const f = l.width + n;
145
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
146
+ } : i == "left" ? (e, n, s, l, c) => {
147
+ const f = l.width + n;
148
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
149
+ } : i == "topRight" ? (e, n, s, l, c) => {
150
+ const f = l.width + n;
151
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
152
+ const u = l.height + s;
153
+ u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h), o && r(e, "top", l.top - s + h));
154
+ } : i == "bottomRight" ? (e, n, s, l, c) => {
155
+ const f = l.width + n;
156
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h));
157
+ const u = l.height + s;
158
+ u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h));
159
+ } : i == "topLeft" ? (e, n, s, l, c) => {
160
+ const f = l.width + n;
161
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
162
+ const u = l.height + s;
163
+ u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h), o && r(e, "top", l.top - s + h));
164
+ } : i == "bottomLeft" ? (e, n, s, l, c) => {
165
+ const f = l.width + n;
166
+ f > 0 && (r(e, "width", f + h), t && r(t, "width", c.width - n + h), o && r(e, "left", l.left - n + h));
167
+ const u = l.height + s;
168
+ u > 0 && (r(e, "height", u + h), t && r(t, "height", c.height - s + h));
169
+ } : (e, n, s, l, c) => {
170
170
  };
171
171
  }
172
- const G = [
172
+ const J = [
173
173
  "bottom",
174
174
  "top",
175
175
  "right",
@@ -179,26 +179,26 @@ const G = [
179
179
  "topLeft",
180
180
  "bottomLeft"
181
181
  ];
182
- function J(i, t, o) {
183
- t = V(t);
182
+ function K(i, t, o) {
183
+ t = q(t);
184
184
  let e = {};
185
185
  o.adjoin && (typeof o.adjoin == "boolean" ? e.adjoin = F(i, t) : typeof o.adjoin == "string" ? e.adjoin = i.parentElement?.querySelector(o.adjoin) : e.adjoin = o.adjoin), e.cursor = P(t), e.domObj = Z(t), e.setMousemove = $(t, e.domObj.set), e.setMousedown = (s) => {
186
186
  t == "bottom" || t == "top" ? e.domObj.set(s.clientY, 0) : t == "right" || t == "left" ? e.domObj.set(s.clientX, 0) : e.domObj.set(s.clientX, s.clientY), e.domObj.show();
187
- }, e.setValue = v(t, e.adjoin, o.position), e.setMouseup = (s, r, c, f) => {
187
+ }, e.setValue = G(t, e.adjoin, o.position), e.setMouseup = (s, l, c, f) => {
188
188
  let u = 0, d = 0;
189
- t == "bottom" ? u = r.clientY - s.clientY : t == "top" ? u = s.clientY - r.clientY : t == "right" ? u = r.clientX - s.clientX : t == "left" ? u = s.clientX - r.clientX : t == "topRight" ? (d = s.clientY - r.clientY, u = r.clientX - s.clientX) : t == "bottomRight" ? (d = r.clientY - s.clientY, u = r.clientX - s.clientX) : t == "topLeft" ? (d = s.clientY - r.clientY, u = s.clientX - r.clientX) : t == "bottomLeft" && (d = r.clientY - s.clientY, u = s.clientX - r.clientX), e.setValue(i, u, d, c, f);
189
+ t == "bottom" ? u = l.clientY - s.clientY : t == "top" ? u = s.clientY - l.clientY : t == "right" ? u = l.clientX - s.clientX : t == "left" ? u = s.clientX - l.clientX : t == "topRight" ? (d = s.clientY - l.clientY, u = l.clientX - s.clientX) : t == "bottomRight" ? (d = l.clientY - s.clientY, u = l.clientX - s.clientX) : t == "topLeft" ? (d = s.clientY - l.clientY, u = s.clientX - l.clientX) : t == "bottomLeft" && (d = l.clientY - s.clientY, u = s.clientX - l.clientX), e.setValue(i, u, d, c, f);
190
190
  };
191
191
  const n = W(t, o.getDisabled);
192
- return (s, r) => {
193
- const c = n(s, r);
194
- if (c < R && c > 0 - R)
192
+ return (s, l) => {
193
+ const c = n(s, l);
194
+ if (c < M && c > 0 - M)
195
195
  return e;
196
196
  };
197
197
  }
198
- function K(i, t) {
199
- return (i.all ? G : Object.keys(i)).sort((e, n) => n.length - e.length).map((e) => {
198
+ function Q(i, t) {
199
+ return (i.all ? J : Object.keys(i)).sort((e, n) => n.length - e.length).map((e) => {
200
200
  const n = i.all ? i.all : i[e];
201
- return J(t, e, n);
201
+ return K(t, e, n);
202
202
  });
203
203
  }
204
204
  const k = {
@@ -207,39 +207,36 @@ const k = {
207
207
  const o = t.value, e = o.often;
208
208
  if (delete o.often, o && Object.keys(o).length > 0) {
209
209
  let n = function(g) {
210
- let p = !0;
211
- for (let Y = 0; Y < r.length; Y++) {
212
- const A = r[Y](g, a);
213
- if (A)
214
- return c = A, m = !0, p = !1, f.cursor = c.cursor, !0;
210
+ let X = !0;
211
+ for (let w = 0; w < l.length; w++) {
212
+ const C = l[w](g, a);
213
+ if (C)
214
+ return c = C, p = !0, X = !1, f.cursor = c.cursor, !0;
215
215
  }
216
- if (p)
217
- return m = !1, f.cursor = u, !1;
216
+ if (X)
217
+ return p = !1, f.cursor = u, !1;
218
218
  }, s = function() {
219
- f.cursor = u, d = !0, m = !1, l(M(), "display", "none"), l(O(), "display", "none");
219
+ f.cursor = u, d = !0, p = !1, r(R(), "display", "none"), r(O(), "display", "none");
220
220
  };
221
- const r = K(o, i);
221
+ const l = Q(o, i);
222
222
  let c;
223
223
  const f = document.body.style, u = f.cursor;
224
- let d = !0, m = !1, a, x, w;
225
- const S = (g) => {
224
+ let d = !0, p = !1, a, Y, x;
225
+ const N = (g) => {
226
226
  d && (a = i.getBoundingClientRect(), n(g));
227
- }, T = (g) => {
227
+ }, S = (g) => {
228
228
  d && s();
229
229
  };
230
- let X;
230
+ let b;
231
231
  const z = (g) => {
232
- c.setMousemove(X, a, g), e && c.setMouseup(X, g, x, w);
232
+ c.setMousemove(b, a, g), e && c.setMouseup(b, g, Y, x);
233
233
  }, D = (g) => {
234
- m && c.setMouseup(X, g, x, w), s();
235
- }, C = (g, p) => {
236
- m && (X = g, x = N(i), w = N(c.adjoin), d = !1, c.setMousedown(g), f.cursor = c.cursor, H(p, document, z, D));
234
+ p && c.setMouseup(b, g, Y, x), s();
235
+ }, V = (g, X) => {
236
+ p && (b = g, Y = A(i), x = A(c.adjoin), d = !1, c.setMousedown(g), f.cursor = c.cursor, H(X, document, z, D));
237
237
  };
238
- i.addEventListener("mousemove", S), i.addEventListener("mouseout", T), i.addEventListener("touchstart", (g) => {
239
- const p = g.changedTouches[0];
240
- a = i.getBoundingClientRect(), n(p) && C(p, "touch");
241
- }), i.addEventListener("mousedown", (g) => {
242
- m && C(g, "mouse");
238
+ i.addEventListener("mousemove", N), i.addEventListener("mouseout", S), i.addEventListener("mousedown", (g) => {
239
+ p && V(g, "mouse");
243
240
  });
244
241
  }
245
242
  }
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),a=require("../../components/header/index.vue.cjs"),r=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),_=require("vue-router"),l={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},h={class:"index-body"},p={class:"index-div"},x={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},g=e.defineComponent({__name:"index",setup(E){const n=_.useRoute(),t=e.ref({});function s(i){t.value=i}e.watch(()=>n.query?.id,()=>{o()});function o(){n.query?.id&&(t.value=u.getCompoName(n.query.id+"")[0]||{})}return e.onMounted(()=>{o()}),(i,V)=>(e.openBlock(),e.createElementBlock("div",l,[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",m,[e.createVNode(d,{value:t.value,onChange:s},null,8,["value"])])])),[[e.unref(c),{right:{}}]]),e.createElementVNode("div",h,[e.createElementVNode("div",p,[e.createElementVNode("div",x,[e.createVNode(a)]),e.createElementVNode("div",q,[e.createElementVNode("div",N,[(e.openBlock(),e.createBlock(r,{key:t.value?.name,value:t.value},null,8,["value"]))])])])])]))}});module.exports=g;
1
+ "use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),a=require("../../components/header/index.vue.cjs"),r=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),l=require("vue-router"),_={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},p={class:"index-body"},x={class:"index-div"},h={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},f=e.defineComponent({__name:"index",setup(E){const n=l.useRoute(),t=e.ref({});function s(i){t.value=i}e.watch(()=>n.query?.id,()=>{o()});function o(){n.query?.id&&(t.value=u.getCompoName(n.query.id+"")[0]||{})}return e.onMounted(()=>{o()}),(i,V)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",v,[e.createElementVNode("div",m,[e.createVNode(d,{value:t.value,onChange:s},null,8,["value"])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",x,[e.createElementVNode("div",h,[e.createVNode(a)]),e.createElementVNode("div",q,[e.createElementVNode("div",N,[(e.openBlock(),e.createBlock(r,{key:t.value?.name,value:t.value},null,8,["value"]))])])])])),[[e.unref(c),{left:{adjoin:!0}}]])]))}});module.exports=f;
@@ -1,55 +1,57 @@
1
- import { defineComponent as r, ref as _, watch as l, onMounted as m, createElementBlock as d, openBlock as t, withDirectives as u, createElementVNode as e, createVNode as a, unref as v, createBlock as f } from "vue";
1
+ import { defineComponent as r, ref as _, watch as l, onMounted as u, createElementBlock as d, openBlock as i, createElementVNode as e, withDirectives as m, createVNode as a, createBlock as v, unref as f } from "vue";
2
2
  import h from "../../directives/adjust/index.js";
3
3
  import p from "../../components/aside/index.vue.js";
4
4
  import x from "../../components/header/index.vue.js";
5
- import g from "../../components/main/index.vue.js";
6
- import { getCompoName as y } from "../../utils/glob.js";
5
+ import y from "../../components/main/index.vue.js";
6
+ import { getCompoName as g } from "../../utils/glob.js";
7
7
  import { useRoute as k } from "vue-router";
8
- const C = { class: "__document-index" }, q = { class: "index-aside" }, B = { class: "index-aside-div" }, N = { class: "index-body" }, w = { class: "index-div" }, D = { class: "index-header" }, E = { class: "index-main" }, V = { class: "index-main-div" }, G = /* @__PURE__ */ r({
8
+ const C = { class: "__document-index" }, q = { class: "index-aside" }, B = { class: "index-aside-div" }, N = { class: "index-body" }, j = { class: "index-div" }, w = { class: "index-header" }, D = { class: "index-main" }, E = { class: "index-main-div" }, G = /* @__PURE__ */ r({
9
9
  __name: "index",
10
- setup($) {
11
- const i = k(), o = _({});
10
+ setup(V) {
11
+ const t = k(), o = _({});
12
12
  function c(s) {
13
13
  o.value = s;
14
14
  }
15
15
  l(
16
- () => i.query?.id,
16
+ () => t.query?.id,
17
17
  () => {
18
18
  n();
19
19
  }
20
20
  );
21
21
  function n() {
22
- i.query?.id && (o.value = y(i.query.id + "")[0] || {});
22
+ t.query?.id && (o.value = g(t.query.id + "")[0] || {});
23
23
  }
24
- return m(() => {
24
+ return u(() => {
25
25
  n();
26
- }), (s, b) => (t(), d("div", C, [
27
- u((t(), d("div", q, [
26
+ }), (s, $) => (i(), d("div", C, [
27
+ e("div", q, [
28
28
  e("div", B, [
29
29
  a(p, {
30
30
  value: o.value,
31
31
  onChange: c
32
32
  }, null, 8, ["value"])
33
33
  ])
34
- ])), [
35
- [v(h), {
36
- right: {}
37
- }]
38
34
  ]),
39
- e("div", N, [
40
- e("div", w, [
41
- e("div", D, [
35
+ m((i(), d("div", N, [
36
+ e("div", j, [
37
+ e("div", w, [
42
38
  a(x)
43
39
  ]),
44
- e("div", E, [
45
- e("div", V, [
46
- (t(), f(g, {
40
+ e("div", D, [
41
+ e("div", E, [
42
+ (i(), v(y, {
47
43
  key: o.value?.name,
48
44
  value: o.value
49
45
  }, null, 8, ["value"]))
50
46
  ])
51
47
  ])
52
48
  ])
49
+ ])), [
50
+ [f(h), {
51
+ left: {
52
+ adjoin: !0
53
+ }
54
+ }]
53
55
  ])
54
56
  ]));
55
57
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.94",
4
+ "version": "0.0.96",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -26,10 +26,10 @@
26
26
  "@codemirror/state": "^6.5.2",
27
27
  "@codemirror/view": "^6.38.6",
28
28
  "@fangzhongya/create": "0.2.34",
29
- "@fangzhongya/utils": "0.0.33",
29
+ "@fangzhongya/utils": "0.0.35",
30
30
  "@fangzhongya/vue-components": "0.1.18",
31
31
  "@highlightjs/vue-plugin": "^2.1.0",
32
- "@types/node": "^24.7.2",
32
+ "@types/node": "^24.8.0",
33
33
  "@vitejs/plugin-vue": "^6.0.1",
34
34
  "@vue/compiler-dom": "3.5.22",
35
35
  "@vue/compiler-sfc": "3.5.22",
@@ -55,7 +55,7 @@
55
55
  "monaco-editor": "^0.54.0",
56
56
  "prettier": "^3.6.2",
57
57
  "vue": "^3.5.22",
58
- "vue-router": "^4.6.0"
58
+ "vue-router": "^4.6.3"
59
59
  },
60
60
  "types": "./dist/packages/index.d.ts",
61
61
  "main": "./dist/packages/index.cjs",