@fangzhongya/vue-archive 0.1.2 → 0.1.4

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 +1 @@
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);box-sizing:border-box;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}.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}.code-edit{padding:10px;display:flex}.code-edit .edit-input{flex:1}.code-edit .edit-effect{flex:1;margin-right:10px}
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%;box-sizing:border-box;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%;box-sizing:border-box;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{height:100%;width:100%;box-sizing:border-box;position:relative;display:flex}.__document .__document-compon .__document-compon-body{background-color:var(--bg-index-cor);box-sizing:border-box;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}.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}.code-edit{padding:10px;display:flex}.code-edit .edit-input{flex:1}.code-edit .edit-effect{flex:1;margin-right:10px}
@@ -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.49/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
90
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/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.49/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
95
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/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.49/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
111
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
112
112
  function getImportUrl(url, imp) {
113
113
  const arr = getStartSames(url, imp);
114
114
  const ts2 = arr[0];
@@ -132,12 +132,12 @@ function getImportUrl(url, imp) {
132
132
  return ds.join("") + arr[2].replace(/\\/g, "/");
133
133
  }
134
134
 
135
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
135
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
136
136
  function firstUpper(str) {
137
137
  return str.slice(0, 1).toUpperCase() + str.slice(1);
138
138
  }
139
139
 
140
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
140
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
141
141
  function lineToLargeHump(name) {
142
142
  let arr = name.split("-");
143
143
  arr = arr.map((vs) => {
@@ -846,7 +846,7 @@ function runDev(config2, configCallback) {
846
846
  return new FangMd(config2, configCallback);
847
847
  }
848
848
 
849
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
849
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
850
850
  var zObj = {
851
851
  "<": "&lt;",
852
852
  ">": "&gt;",
@@ -867,7 +867,7 @@ function htmlEscape(str) {
867
867
  // packages/node/index.ts
868
868
  var import_node_path = require("path");
869
869
 
870
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
870
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
871
871
  function mergeObject(a, b, j = 0, i) {
872
872
  if (a instanceof Array) {
873
873
  if (j > 0 && i) {
@@ -921,7 +921,7 @@ function getConfig(key) {
921
921
  return config[key];
922
922
  }
923
923
 
924
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
924
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
925
925
  function getVueText(content) {
926
926
  const result = {
927
927
  template: "",
@@ -968,7 +968,7 @@ function getVueTexts(content) {
968
968
  };
969
969
  }
970
970
 
971
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
971
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
972
972
  function humpToLine(name) {
973
973
  const reg = /(([A-Z])([^A-Z]*))/g;
974
974
  let result;
@@ -990,12 +990,12 @@ function humpToLine(name) {
990
990
  }
991
991
  }
992
992
 
993
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
993
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
994
994
  function firstLower(str) {
995
995
  return str.slice(0, 1).toLowerCase() + str.slice(1);
996
996
  }
997
997
 
998
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
998
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
999
999
  function asyncMergeArray(arr, callback) {
1000
1000
  return new Promise((resolve2, reject) => {
1001
1001
  let index = 0;
@@ -1019,7 +1019,7 @@ function asyncMergeArray(arr, callback) {
1019
1019
  });
1020
1020
  }
1021
1021
 
1022
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1022
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1023
1023
  function getSuffix2(url) {
1024
1024
  const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
1025
1025
  const regs = reg.exec(url);
@@ -1029,7 +1029,7 @@ function getSuffix2(url) {
1029
1029
  return "";
1030
1030
  }
1031
1031
 
1032
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1032
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1033
1033
  function matchsStart2(key, matchs) {
1034
1034
  if (matchs && matchs.length > 0) {
1035
1035
  for (const value of matchs) {
@@ -1049,7 +1049,7 @@ function matchsStart2(key, matchs) {
1049
1049
  }
1050
1050
  }
1051
1051
 
1052
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1052
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1053
1053
  function matchsEnd2(key, matchs) {
1054
1054
  if (matchs && matchs.length > 0) {
1055
1055
  for (const value of matchs) {
@@ -1712,7 +1712,7 @@ function parse(source, options = {}) {
1712
1712
  }
1713
1713
  var stringify = getStringifier();
1714
1714
 
1715
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1715
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1716
1716
  function deComment(code) {
1717
1717
  let output = "";
1718
1718
  let state = "code";
@@ -1804,7 +1804,7 @@ function deComment(code) {
1804
1804
  return output;
1805
1805
  }
1806
1806
 
1807
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1807
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1808
1808
  function getImports(code, includeType = false) {
1809
1809
  code = deComment(code);
1810
1810
  const imports = /* @__PURE__ */ new Set();
@@ -3230,7 +3230,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
3230
3230
  }
3231
3231
  });
3232
3232
 
3233
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3233
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3234
3234
  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]*))$/;
3235
3235
  function getFunctionFormat(v) {
3236
3236
  if (!v) return;
@@ -3569,9 +3569,94 @@ function getTypeValue(arr) {
3569
3569
  return "undefined";
3570
3570
  }
3571
3571
  }
3572
+ var allReservedWords = [
3573
+ // JavaScript 基本关键字
3574
+ "break",
3575
+ "case",
3576
+ "catch",
3577
+ "class",
3578
+ "const",
3579
+ "continue",
3580
+ "debugger",
3581
+ "default",
3582
+ "delete",
3583
+ "do",
3584
+ "else",
3585
+ "export",
3586
+ "extends",
3587
+ "finally",
3588
+ "for",
3589
+ "function",
3590
+ "if",
3591
+ "import",
3592
+ "in",
3593
+ "instanceof",
3594
+ "new",
3595
+ "return",
3596
+ "super",
3597
+ "switch",
3598
+ "this",
3599
+ "throw",
3600
+ "try",
3601
+ "typeof",
3602
+ "var",
3603
+ "void",
3604
+ "while",
3605
+ "with",
3606
+ "yield",
3607
+ // 严格模式下的保留字
3608
+ "implements",
3609
+ "interface",
3610
+ "let",
3611
+ "package",
3612
+ "private",
3613
+ "protected",
3614
+ "public",
3615
+ "static",
3616
+ // 字面量值
3617
+ "true",
3618
+ "false",
3619
+ "null",
3620
+ "undefined",
3621
+ // TypeScript 特有类型关键字
3622
+ "any",
3623
+ "boolean",
3624
+ "number",
3625
+ "string",
3626
+ "object",
3627
+ "symbol",
3628
+ "unknown",
3629
+ "never",
3630
+ "void",
3631
+ "undefined",
3632
+ "null",
3633
+ // TypeScript 类型操作与定义
3634
+ "type",
3635
+ "interface",
3636
+ "enum",
3637
+ "as",
3638
+ "is",
3639
+ "infer",
3640
+ "unique",
3641
+ // TypeScript 类修饰符
3642
+ "abstract",
3643
+ "readonly",
3644
+ // TypeScript 模块与声明
3645
+ "namespace",
3646
+ "module",
3647
+ "declare",
3648
+ "require",
3649
+ // 其他(访问器、未来保留字等)
3650
+ "get",
3651
+ "set",
3652
+ "async",
3653
+ "await",
3654
+ "from",
3655
+ "of",
3656
+ "package"
3657
+ ];
3572
3658
 
3573
3659
  // packages/components/use/code.ts
3574
- var keywords = ["class"];
3575
3660
  function getSpecObjs(specs, name) {
3576
3661
  return specs.filter((o) => o.name == name)[0];
3577
3662
  }
@@ -3627,7 +3712,7 @@ async function getHmtl(propsname, param, value, slotValue, propsText, exposeText
3627
3712
  sarr.push("}");
3628
3713
  } else {
3629
3714
  let z = key;
3630
- if (keywords.includes(key)) {
3715
+ if (allReservedWords.includes(key)) {
3631
3716
  z = key + "1";
3632
3717
  }
3633
3718
  tarr.push(" :" + key + '="' + z + '"');
@@ -58,12 +58,12 @@ var init_prettier = __esm({
58
58
  }
59
59
  });
60
60
 
61
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
61
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/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.49/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
66
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/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.49/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
82
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
83
83
  function getImportUrl(url, imp) {
84
84
  const arr = getStartSames(url, imp);
85
85
  const ts2 = arr[0];
@@ -103,12 +103,12 @@ function getImportUrl(url, imp) {
103
103
  return ds.join("") + arr[2].replace(/\\/g, "/");
104
104
  }
105
105
 
106
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
106
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
107
107
  function firstUpper(str) {
108
108
  return str.slice(0, 1).toUpperCase() + str.slice(1);
109
109
  }
110
110
 
111
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
111
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
112
112
  function lineToLargeHump(name) {
113
113
  let arr = name.split("-");
114
114
  arr = arr.map((vs) => {
@@ -828,7 +828,7 @@ function runDev(config2, configCallback) {
828
828
  return new FangMd(config2, configCallback);
829
829
  }
830
830
 
831
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
831
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
832
832
  var zObj = {
833
833
  "<": "&lt;",
834
834
  ">": "&gt;",
@@ -849,7 +849,7 @@ function htmlEscape(str) {
849
849
  // packages/node/index.ts
850
850
  import { join as join4 } from "path";
851
851
 
852
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
852
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
853
853
  function mergeObject(a, b, j = 0, i) {
854
854
  if (a instanceof Array) {
855
855
  if (j > 0 && i) {
@@ -903,7 +903,7 @@ function getConfig(key) {
903
903
  return config[key];
904
904
  }
905
905
 
906
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
906
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
907
907
  function getVueText(content) {
908
908
  const result = {
909
909
  template: "",
@@ -950,7 +950,7 @@ function getVueTexts(content) {
950
950
  };
951
951
  }
952
952
 
953
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
953
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
954
954
  function humpToLine(name) {
955
955
  const reg = /(([A-Z])([^A-Z]*))/g;
956
956
  let result;
@@ -972,12 +972,12 @@ function humpToLine(name) {
972
972
  }
973
973
  }
974
974
 
975
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
975
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
976
976
  function firstLower(str) {
977
977
  return str.slice(0, 1).toLowerCase() + str.slice(1);
978
978
  }
979
979
 
980
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
980
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
981
981
  function asyncMergeArray(arr, callback) {
982
982
  return new Promise((resolve2, reject) => {
983
983
  let index = 0;
@@ -1001,7 +1001,7 @@ function asyncMergeArray(arr, callback) {
1001
1001
  });
1002
1002
  }
1003
1003
 
1004
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1004
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1005
1005
  function getSuffix2(url) {
1006
1006
  const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
1007
1007
  const regs = reg.exec(url);
@@ -1011,7 +1011,7 @@ function getSuffix2(url) {
1011
1011
  return "";
1012
1012
  }
1013
1013
 
1014
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1014
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1015
1015
  function matchsStart2(key, matchs) {
1016
1016
  if (matchs && matchs.length > 0) {
1017
1017
  for (const value of matchs) {
@@ -1031,7 +1031,7 @@ function matchsStart2(key, matchs) {
1031
1031
  }
1032
1032
  }
1033
1033
 
1034
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1034
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1035
1035
  function matchsEnd2(key, matchs) {
1036
1036
  if (matchs && matchs.length > 0) {
1037
1037
  for (const value of matchs) {
@@ -1694,7 +1694,7 @@ function parse(source, options = {}) {
1694
1694
  }
1695
1695
  var stringify = getStringifier();
1696
1696
 
1697
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1697
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1698
1698
  function deComment(code) {
1699
1699
  let output = "";
1700
1700
  let state = "code";
@@ -1786,7 +1786,7 @@ function deComment(code) {
1786
1786
  return output;
1787
1787
  }
1788
1788
 
1789
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1789
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1790
1790
  function getImports(code, includeType = false) {
1791
1791
  code = deComment(code);
1792
1792
  const imports = /* @__PURE__ */ new Set();
@@ -3212,7 +3212,7 @@ var top_default2 = defineComponent2({
3212
3212
  }
3213
3213
  });
3214
3214
 
3215
- // node_modules/.pnpm/@fangzhongya+utils@0.0.49/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3215
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.59/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3216
3216
  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]*))$/;
3217
3217
  function getFunctionFormat(v) {
3218
3218
  if (!v) return;
@@ -3551,9 +3551,94 @@ function getTypeValue(arr) {
3551
3551
  return "undefined";
3552
3552
  }
3553
3553
  }
3554
+ var allReservedWords = [
3555
+ // JavaScript 基本关键字
3556
+ "break",
3557
+ "case",
3558
+ "catch",
3559
+ "class",
3560
+ "const",
3561
+ "continue",
3562
+ "debugger",
3563
+ "default",
3564
+ "delete",
3565
+ "do",
3566
+ "else",
3567
+ "export",
3568
+ "extends",
3569
+ "finally",
3570
+ "for",
3571
+ "function",
3572
+ "if",
3573
+ "import",
3574
+ "in",
3575
+ "instanceof",
3576
+ "new",
3577
+ "return",
3578
+ "super",
3579
+ "switch",
3580
+ "this",
3581
+ "throw",
3582
+ "try",
3583
+ "typeof",
3584
+ "var",
3585
+ "void",
3586
+ "while",
3587
+ "with",
3588
+ "yield",
3589
+ // 严格模式下的保留字
3590
+ "implements",
3591
+ "interface",
3592
+ "let",
3593
+ "package",
3594
+ "private",
3595
+ "protected",
3596
+ "public",
3597
+ "static",
3598
+ // 字面量值
3599
+ "true",
3600
+ "false",
3601
+ "null",
3602
+ "undefined",
3603
+ // TypeScript 特有类型关键字
3604
+ "any",
3605
+ "boolean",
3606
+ "number",
3607
+ "string",
3608
+ "object",
3609
+ "symbol",
3610
+ "unknown",
3611
+ "never",
3612
+ "void",
3613
+ "undefined",
3614
+ "null",
3615
+ // TypeScript 类型操作与定义
3616
+ "type",
3617
+ "interface",
3618
+ "enum",
3619
+ "as",
3620
+ "is",
3621
+ "infer",
3622
+ "unique",
3623
+ // TypeScript 类修饰符
3624
+ "abstract",
3625
+ "readonly",
3626
+ // TypeScript 模块与声明
3627
+ "namespace",
3628
+ "module",
3629
+ "declare",
3630
+ "require",
3631
+ // 其他(访问器、未来保留字等)
3632
+ "get",
3633
+ "set",
3634
+ "async",
3635
+ "await",
3636
+ "from",
3637
+ "of",
3638
+ "package"
3639
+ ];
3554
3640
 
3555
3641
  // packages/components/use/code.ts
3556
- var keywords = ["class"];
3557
3642
  function getSpecObjs(specs, name) {
3558
3643
  return specs.filter((o) => o.name == name)[0];
3559
3644
  }
@@ -3609,7 +3694,7 @@ async function getHmtl(propsname, param, value, slotValue, propsText, exposeText
3609
3694
  sarr.push("}");
3610
3695
  } else {
3611
3696
  let z = key;
3612
- if (keywords.includes(key)) {
3697
+ if (allReservedWords.includes(key)) {
3613
3698
  z = key + "1";
3614
3699
  }
3615
3700
  tarr.push(" :" + key + '="' + z + '"');
@@ -646,7 +646,7 @@ function zt() {
646
646
  super(t), this.name = "HTMLInjectionError", this.html = i;
647
647
  }
648
648
  }
649
- const Q = ae, Oe = T, Re = Symbol("nomatch"), yt = 7, ye = function(e) {
649
+ const Q = ae, Oe = T, Re = /* @__PURE__ */ Symbol("nomatch"), yt = 7, ye = function(e) {
650
650
  const t = /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null), u = [];
651
651
  let b = !0;
652
652
  const _ = "Could not find the language '{}', did you forget to load/include a language module?", c = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const N=require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const A=require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");const L=require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const o=require("./util.cjs"),S=require("../../utils/props.cjs"),C=require("@fangzhongya/utils/basic/string/toFunction"),M=["class"];function q(e,n){return e.filter(t=>t.name==n)[0]}function x(e){return e.map(n=>(n.prop||"...arr")+":"+o.setDataType(n.dataType)).join(",")}async function Z(e,n,t,s,u,y){const g=[],r=[];let T=!0;const B=S.getPropsValue(n.propss||[]),H=S.getEmitsValue(n.emitss||[]),U=S.getExposeValue(n.exposes||[]),z=S.getSlotValue(n.slots||[]);Object.keys(t).forEach(async i=>{let c=t[i];if(/^on[A-Z]/.test(i)&&typeof c=="function"){let a=i.substring(2);const f=i.split(":");let l;if(f.length>1?(l=f[0]+f.slice(1).map(m=>L.firstUpper(m)).join(""),a=A.firstLower(a)):(l=f[0],a=N.humpToLine(a)),f.includes("-")){let m=l.split("-");m=m.map((h,D)=>D!=0?L.firstUpper(h):h),l=m.join("")}g.push(" @"+a+'="'+l+'"');const p=q(H,a)||{},d=p.selectable||"",b=o.parseParamString(d),$=x(b);r.push(`// ${p.description} ${p.name}: (${p.selectable})`),r.push("function "+l+"("+$+") {"),b.forEach(m=>{const h=m.name||"arr";r.push(" console.log('"+m.label+"', "+h+")")}),r.push("}")}else{let a=i;M.includes(i)&&(a=i+"1"),g.push(" :"+i+'="'+a+'"');const f=q(B,i)||{},l=O(f);if(r.push(`// ${f.description} ${f.name}: {${f.type}} (${f.selectable})`),typeof c=="function"||l.dataType.length==1&&l.type=="function"&&c)r.push("const "+i+" = "+await v(c,i,u));else if(T&&(T=!1,r.unshift("import { ref } from 'vue';")),typeof c>"u")if(l.type=="function"){const p=I(f);r.push("const "+a+" = "+p+";")}else{const p=o.getTypeValue(l.dataType);r.push("const "+a+" = ref("+(p==="undefined"?"":p)+");")}else{let p=w(c,i,u);r.push("const "+a+" = ref("+p+");")}}});const P=Object.values(y||{});P.length>0&&(T&&(T=!1,r.unshift("import { ref } from 'vue';")),g.unshift(' ref="refDom"'),r.push("const refDom = ref()"),P.forEach(i=>{const c=q(U,i.name)||{};r.push(`// ${c.description} ${c.name}:(${c.selectable}) ${c.type}`);const a=i.name+"Value",f=o.parseParamString(c?.selectable||""),l=[],p=i.params||[];f.forEach((d,b)=>{const $=d.name;if($){const m=$+i.name,h=p[b];if(r.push(`// ${d.label}`),typeof h=="function")r.push("const "+m+" = "+v(h,$,i.text));else if(typeof h>"u")r.push("const "+m+" = "+o.getTypeValue(d.dataType)+";");else{let D=w(h,$,i.text);r.push("const "+m+" = "+D+";")}l.push(m)}}),i.type==="function"?(c.return?r.push(`const ${a} = refDom.value?.${i.name}(${l.join(", ")})`):r.push(`refDom.value?.${i.name}(${l.join(", ")})`),c.return&&r.push(`console.log('${c.return}', ${a})`)):(r.push(`const ${a} = refDom.value?.${i.name}`),r.push(`console.log('${c.type||c.name}', ${a})`))})),g.length>0&&g.unshift("");const J=G(s,z);let V=`<template>
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const N=require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const A=require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");const v=require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const o=require("./util.cjs"),S=require("../../utils/props.cjs"),C=require("@fangzhongya/utils/basic/string/toFunction");function q(e,n){return e.filter(t=>t.name==n)[0]}function x(e){return e.map(n=>(n.prop||"...arr")+":"+o.setDataType(n.dataType)).join(",")}async function M(e,n,t,s,u,y){const g=[],r=[];let T=!0;const B=S.getPropsValue(n.propss||[]),H=S.getEmitsValue(n.emitss||[]),U=S.getExposeValue(n.exposes||[]),z=S.getSlotValue(n.slots||[]);Object.keys(t).forEach(async i=>{let a=t[i];if(/^on[A-Z]/.test(i)&&typeof a=="function"){let c=i.substring(2);const f=i.split(":");let l;if(f.length>1?(l=f[0]+f.slice(1).map(m=>v.firstUpper(m)).join(""),c=A.firstLower(c)):(l=f[0],c=N.humpToLine(c)),f.includes("-")){let m=l.split("-");m=m.map((h,D)=>D!=0?v.firstUpper(h):h),l=m.join("")}g.push(" @"+c+'="'+l+'"');const p=q(H,c)||{},d=p.selectable||"",b=o.parseParamString(d),$=x(b);r.push(`// ${p.description} ${p.name}: (${p.selectable})`),r.push("function "+l+"("+$+") {"),b.forEach(m=>{const h=m.name||"arr";r.push(" console.log('"+m.label+"', "+h+")")}),r.push("}")}else{let c=i;o.allReservedWords.includes(i)&&(c=i+"1"),g.push(" :"+i+'="'+c+'"');const f=q(B,i)||{},l=w(f);if(r.push(`// ${f.description} ${f.name}: {${f.type}} (${f.selectable})`),typeof a=="function"||l.dataType.length==1&&l.type=="function"&&a)r.push("const "+i+" = "+await L(a,i,u));else if(T&&(T=!1,r.unshift("import { ref } from 'vue';")),typeof a>"u")if(l.type=="function"){const p=W(f);r.push("const "+c+" = "+p+";")}else{const p=o.getTypeValue(l.dataType);r.push("const "+c+" = ref("+(p==="undefined"?"":p)+");")}else{let p=E(a,i,u);r.push("const "+c+" = ref("+p+");")}}});const P=Object.values(y||{});P.length>0&&(T&&(T=!1,r.unshift("import { ref } from 'vue';")),g.unshift(' ref="refDom"'),r.push("const refDom = ref()"),P.forEach(i=>{const a=q(U,i.name)||{};r.push(`// ${a.description} ${a.name}:(${a.selectable}) ${a.type}`);const c=i.name+"Value",f=o.parseParamString(a?.selectable||""),l=[],p=i.params||[];f.forEach((d,b)=>{const $=d.name;if($){const m=$+i.name,h=p[b];if(r.push(`// ${d.label}`),typeof h=="function")r.push("const "+m+" = "+L(h,$,i.text));else if(typeof h>"u")r.push("const "+m+" = "+o.getTypeValue(d.dataType)+";");else{let D=E(h,$,i.text);r.push("const "+m+" = "+D+";")}l.push(m)}}),i.type==="function"?(a.return?r.push(`const ${c} = refDom.value?.${i.name}(${l.join(", ")})`):r.push(`refDom.value?.${i.name}(${l.join(", ")})`),a.return&&r.push(`console.log('${a.return}', ${c})`)):(r.push(`const ${c} = refDom.value?.${i.name}`),r.push(`console.log('${a.type||a.name}', ${c})`))})),g.length>0&&g.unshift("");const J=R(s,z);let V=`<template>
2
2
  <div>
3
3
  <${e}${g.join(`
4
4
  `)}>${J.join(`
@@ -10,11 +10,11 @@
10
10
  ${V}
11
11
  <script lang="ts" setup>
12
12
  ${j}
13
- <\/script>`}function G(e={},n){const t=[];return Object.keys(e).forEach(s=>{const u=q(n,s)||{},y=e[s];if(y){const g=` <!-- ${u.description} ${u.name}:(${u.selectable}) -->
13
+ <\/script>`}function R(e={},n){const t=[];return Object.keys(e).forEach(s=>{const u=q(n,s)||{},y=e[s];if(y){const g=` <!-- ${u.description} ${u.name}:(${u.selectable}) -->
14
14
  <template #${s}="scope">
15
15
  ${o.vueFormat(y," ")}
16
- </template>`;t.push(g)}}),t&&t.length>0&&t.unshift(""),t}function v(e,n,t){const s=t?t[n]:"";return s&&(s.includes("=>")||s.includes("function"))?s:F(e.toString())}async function F(e){const n=C.getFunctionFormat(e);if(n){let t=`{
16
+ </template>`;t.push(g)}}),t&&t.length>0&&t.unshift(""),t}function L(e,n,t){const s=t?t[n]:"";return s&&(s.includes("=>")||s.includes("function"))?s:F(e.toString())}async function F(e){const n=C.getFunctionFormat(e);if(n){let t=`{
17
17
  ${o.vueFormat(o.getFunBody(n.body)," ")}
18
- }`;return`function (${n.param.split(",").map(s=>s+":any").join(",")}) ${t}`}else return"undefined"}function I(e){const n=o.parseParamString(e.selectable),t=x(n);let s="";e.return&&(s="return ");let u=`{
18
+ }`;return`function (${n.param.split(",").map(s=>s+":any").join(",")}) ${t}`}else return"undefined"}function W(e){const n=o.parseParamString(e.selectable),t=x(n);let s="";e.return&&(s="return ");let u=`{
19
19
  ${o.vueFormat(o.getFunBody(s)," ")}
20
- }`;return`function (${t}) ${u}`}function K(e){const n=e.trim();return/^\(/.test(n)?F(n):JSON.stringify(e)}function w(e,n,t){const s=t?t[n]:"";return s||(typeof e=="string"?K(e+""):JSON.stringify(e))}function O(e){let n=o.getDataType(o.parseTypeDefinition(e?.type)),t=o.getDataTypeType(n);n.length>1&&(t="any");let s=(e?.selectable||"").trim(),u=[];return s&&t!="boolean"&&(s.includes("|")?s.split("|").forEach(y=>{if(y){let g=y.split(":");u.push({label:y,prop:E(g[0].trim())})}}):u=o.parseParamString(s),t=="array"?t="choice":t!="function"&&u.length>1&&(t="select")),{arr:u,type:t,dataType:n}}function E(e,n){try{if(n=="function")if(typeof e=="string"){if(/^\((.|\n|\r)*\)$/.test(e))return e=e.substring(1,e.length-1),new Function(`{ return ${e} }`)()}else return e;else return new Function(`{ return ${e} }`)()}catch{return""+e}}function Q(e,n=!0){const t=O(e),s=o.getTypeValue(t.dataType);if(n){const u=(e.default||"").trim();return E(u||s,o.getDataTypeType(t.dataType))}else{const u=(e.default||"").trim();return E(u,o.getDataTypeType(t.dataType))}}exports.getDefaultValue=Q;exports.getHmtl=Z;exports.getSpecType=O;exports.setValStringify=w;
20
+ }`;return`function (${t}) ${u}`}function Z(e){const n=e.trim();return/^\(/.test(n)?F(n):JSON.stringify(e)}function E(e,n,t){const s=t?t[n]:"";return s||(typeof e=="string"?Z(e+""):JSON.stringify(e))}function w(e){let n=o.getDataType(o.parseTypeDefinition(e?.type)),t=o.getDataTypeType(n);n.length>1&&(t="any");let s=(e?.selectable||"").trim(),u=[];return s&&t!="boolean"&&(s.includes("|")?s.split("|").forEach(y=>{if(y){let g=y.split(":");u.push({label:y,prop:O(g[0].trim())})}}):u=o.parseParamString(s),t=="array"?t="choice":t!="function"&&u.length>1&&(t="select")),{arr:u,type:t,dataType:n}}function O(e,n){try{if(n=="function")if(typeof e=="string"){if(/^\((.|\n|\r)*\)$/.test(e))return e=e.substring(1,e.length-1),new Function(`{ return ${e} }`)()}else return e;else return new Function(`{ return ${e} }`)()}catch{return""+e}}function G(e,n=!0){const t=w(e),s=o.getTypeValue(t.dataType);if(n){const u=(e.default||"").trim();return O(u||s,o.getDataTypeType(t.dataType))}else{const u=(e.default||"").trim();return O(u,o.getDataTypeType(t.dataType))}}exports.getDefaultValue=G;exports.getHmtl=M;exports.getSpecType=w;exports.setValStringify=E;
@@ -1,18 +1,25 @@
1
- import { ObjStr, ObjUnk } from '../../config';
2
- import { SpecObjs, Spec } from '../../utils/index';
3
- import { DataType } from './util';
4
- export declare function getHmtl(propsname: string, param: {
5
- [key: string]: SpecObjs[];
6
- }, value: ObjUnk, slotValue?: ObjStr, propsText?: ObjStr, exposeText?: ObjUnk): Promise<string>;
7
- export declare function setValStringify(v: unknown, key: string, propsText?: ObjStr): string | Promise<string>;
8
- type SelectsObj = {
9
- label: string;
10
- prop: unknown;
11
- };
12
- export declare function getSpecType(val: Spec): {
13
- arr: SelectsObj[];
14
- type: string;
15
- dataType: DataType[];
16
- };
17
- export declare function getDefaultValue(obj: Spec, is?: boolean): any;
18
- export {};
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ };
6
+ html: {
7
+ type: StringConstructor;
8
+ default(): string;
9
+ };
10
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ refresh: (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ html: {
17
+ type: StringConstructor;
18
+ default(): string;
19
+ };
20
+ }>> & Readonly<{
21
+ onRefresh?: ((...args: any[]) => any) | undefined;
22
+ }>, {
23
+ html: string;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
25
+ export default _default;