@fangzhongya/vue-archive 0.0.17 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/index.css +2 -2
  2. package/dist/node/index.cjs +230 -29
  3. package/dist/node/index.js +230 -29
  4. package/dist/packages/components/code/highlight.d.ts +1 -1
  5. package/dist/packages/components/compo/index.vue.cjs +1 -1
  6. package/dist/packages/components/compo/index.vue.js +42 -50
  7. package/dist/packages/components/compo/top.d.ts +1 -1
  8. package/dist/packages/components/test/top.d.ts +1 -1
  9. package/dist/packages/components/use/code.cjs +10 -10
  10. package/dist/packages/components/use/code.d.ts +4 -2
  11. package/dist/packages/components/use/code.js +101 -64
  12. package/dist/packages/components/use/codemirror.cjs +2 -2
  13. package/dist/packages/components/use/codemirror.js +11 -20
  14. package/dist/packages/components/use/index.cjs +1 -1
  15. package/dist/packages/components/use/index.d.ts +2 -1
  16. package/dist/packages/components/use/index.js +68 -59
  17. package/dist/packages/components/use/retrie/any/index.d.ts +1 -1
  18. package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -1
  19. package/dist/packages/components/use/retrie/any/index.vue.js +8 -8
  20. package/dist/packages/components/use/retrie/array/index.d.ts +1 -1
  21. package/dist/packages/components/use/retrie/array/index.vue.cjs +2 -2
  22. package/dist/packages/components/use/retrie/array/index.vue.js +5 -4
  23. package/dist/packages/components/use/retrie/boolean/index.d.ts +1 -1
  24. package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -1
  25. package/dist/packages/components/use/retrie/boolean/index.vue.js +17 -19
  26. package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
  27. package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
  28. package/dist/packages/components/use/retrie/choice/index.d.ts +1 -1
  29. package/dist/packages/components/use/retrie/expose/index.d.ts +7 -3
  30. package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
  31. package/dist/packages/components/use/retrie/expose/index.vue.js +38 -43
  32. package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
  33. package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
  34. package/dist/packages/components/use/retrie/form/index.d.ts +1 -1
  35. package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -1
  36. package/dist/packages/components/use/retrie/form/index.vue.js +7 -4
  37. package/dist/packages/components/use/retrie/function/index.d.ts +1 -1
  38. package/dist/packages/components/use/retrie/function/index.vue.cjs +2 -2
  39. package/dist/packages/components/use/retrie/function/index.vue.js +25 -31
  40. package/dist/packages/components/use/retrie/index.d.ts +1 -1
  41. package/dist/packages/components/use/retrie/index.vue.cjs +1 -1
  42. package/dist/packages/components/use/retrie/index.vue.js +13 -10
  43. package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
  44. package/dist/packages/components/use/retrie/index.vue3.js +5 -0
  45. package/dist/packages/components/use/retrie/input/codemirror.d.ts +27 -0
  46. package/dist/packages/components/use/retrie/input/codemirror.vue.cjs +1 -0
  47. package/dist/packages/components/use/retrie/input/codemirror.vue.js +43 -0
  48. package/dist/packages/components/use/retrie/input/codemirror.vue2.cjs +1 -0
  49. package/dist/packages/components/use/retrie/input/codemirror.vue2.js +4 -0
  50. package/dist/packages/components/use/retrie/input/index.d.ts +11 -4
  51. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
  52. package/dist/packages/components/use/retrie/input/index.vue.js +33 -37
  53. package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
  54. package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
  55. package/dist/packages/components/use/retrie/input/text.d.ts +25 -0
  56. package/dist/packages/components/use/retrie/input/text.vue.cjs +1 -0
  57. package/dist/packages/components/use/retrie/input/text.vue.js +33 -0
  58. package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
  59. package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
  60. package/dist/packages/components/use/retrie/number/index.d.ts +1 -1
  61. package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -1
  62. package/dist/packages/components/use/retrie/number/index.vue.js +10 -9
  63. package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
  64. package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
  65. package/dist/packages/components/use/retrie/object/index.d.ts +1 -1
  66. package/dist/packages/components/use/retrie/object/index.vue.cjs +2 -2
  67. package/dist/packages/components/use/retrie/object/index.vue.js +6 -5
  68. package/dist/packages/components/use/retrie/other/index.d.ts +1 -1
  69. package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -1
  70. package/dist/packages/components/use/retrie/other/index.vue.js +3 -2
  71. package/dist/packages/components/use/retrie/select/index.d.ts +1 -1
  72. package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -1
  73. package/dist/packages/components/use/retrie/select/index.vue.js +2 -1
  74. package/dist/packages/components/use/retrie/slot/index.d.ts +2 -4
  75. package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
  76. package/dist/packages/components/use/retrie/slot/index.vue.js +23 -37
  77. package/dist/packages/components/use/retrie/string/index.d.ts +1 -1
  78. package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -1
  79. package/dist/packages/components/use/retrie/string/index.vue.js +15 -14
  80. package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
  81. package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
  82. package/dist/packages/components/use/set-code.d.ts +18 -1
  83. package/dist/packages/components/use/set-code.vue.cjs +1 -1
  84. package/dist/packages/components/use/set-code.vue.js +78 -28
  85. package/dist/packages/components/use/set-emit.d.ts +1 -1
  86. package/dist/packages/components/use/set-emit.vue.cjs +1 -1
  87. package/dist/packages/components/use/set-emit.vue.js +24 -20
  88. package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
  89. package/dist/packages/components/use/set-emit.vue3.js +5 -0
  90. package/dist/packages/components/use/set-expose.d.ts +7 -3
  91. package/dist/packages/components/use/set-expose.vue.cjs +1 -1
  92. package/dist/packages/components/use/set-expose.vue.js +49 -24
  93. package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
  94. package/dist/packages/components/use/set-expose.vue3.js +5 -0
  95. package/dist/packages/components/use/set-props.d.ts +1 -1
  96. package/dist/packages/components/use/set-props.vue.cjs +1 -1
  97. package/dist/packages/components/use/set-props.vue.js +10 -9
  98. package/dist/packages/components/use/set-slot.d.ts +1 -1
  99. package/dist/packages/components/use/set-slot.vue.cjs +1 -1
  100. package/dist/packages/components/use/set-slot.vue.js +1 -1
  101. package/dist/packages/components/use/util.cjs +2 -3
  102. package/dist/packages/components/use/util.d.ts +9 -5
  103. package/dist/packages/components/use/util.js +73 -46
  104. package/dist/packages/config.d.ts +1 -1
  105. package/dist/packages/directives/adjust/index copy.d.ts +1 -1
  106. package/dist/packages/directives/adjust/index.d.ts +1 -1
  107. package/dist/packages/index/index.d.ts +1 -1
  108. package/dist/packages/index.cjs +1 -1
  109. package/dist/packages/index.d.ts +1 -1
  110. package/dist/packages/index.js +8 -8
  111. package/dist/packages/page/index/index.vue2.cjs +1 -1
  112. package/dist/packages/page/index/index.vue2.js +30 -27
  113. package/dist/packages/utils/common.d.ts +1 -1
  114. package/dist/packages/utils/glob.cjs +2 -2
  115. package/dist/packages/utils/glob.js +90 -80
  116. package/package.json +1 -1
  117. package/dist/packages/components/use/retrie/boolean/index.vue2.cjs +0 -1
  118. package/dist/packages/components/use/retrie/boolean/index.vue2.js +0 -4
  119. package/dist/packages/components/use/retrie/expose/index.vue2.cjs +0 -1
  120. package/dist/packages/components/use/retrie/expose/index.vue2.js +0 -4
  121. package/dist/packages/components/use/retrie/index.vue2.cjs +0 -1
  122. package/dist/packages/components/use/retrie/index.vue2.js +0 -4
  123. package/dist/packages/components/use/retrie/input/index.vue2.cjs +0 -1
  124. package/dist/packages/components/use/retrie/input/index.vue2.js +0 -4
  125. package/dist/packages/components/use/retrie/number/index.vue2.cjs +0 -1
  126. package/dist/packages/components/use/retrie/number/index.vue2.js +0 -4
  127. package/dist/packages/components/use/retrie/string/index.vue2.cjs +0 -1
  128. package/dist/packages/components/use/retrie/string/index.vue2.js +0 -4
  129. package/dist/packages/components/use/set-emit.vue2.cjs +0 -1
  130. package/dist/packages/components/use/set-emit.vue2.js +0 -4
  131. package/dist/packages/components/use/set-expose.vue2.cjs +0 -1
  132. package/dist/packages/components/use/set-expose.vue2.js +0 -4
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .form-select .form-select-box{position:absolute;z-index:100;background-color:#fff;text-align:center}.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}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
1
+ .form-input-text{padding:10px;width:100%;box-sizing:border-box}.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}.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
@@ -10,4 +10,4 @@
10
10
  Updated for @stackoverflow/stacks v0.64.0
11
11
  Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
12
12
  Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
13
- */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 20px 20px 10px}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .use .codemirror-div{background-color:var(--bg-code)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}
13
+ */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section,.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.expose .expose-label{padding:10px 0;font-size:18px}.expose .expose-return{padding:5px;background-color:azure}.set-expose .set-expose-li{position:relative}.set-expose .set-expose-li .set-expose-delete{color:red;position:absolute;right:20px;top:10px}:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 20px 20px 10px}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .use .codemirror-div{background-color:var(--bg-code)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}
@@ -2466,6 +2466,15 @@ function getEmitsValue(arr) {
2466
2466
  return v;
2467
2467
  });
2468
2468
  }
2469
+ function getExposeValue(arr) {
2470
+ return arr.map((obj) => {
2471
+ const v = {};
2472
+ Object.keys(expose).forEach((key) => {
2473
+ v[key] = expose[key](obj);
2474
+ });
2475
+ return v;
2476
+ });
2477
+ }
2469
2478
 
2470
2479
  // packages/components/test/index.ts
2471
2480
  function getObj(v) {
@@ -2957,6 +2966,74 @@ var top_default2 = (0, import_vue2.defineComponent)({
2957
2966
  }
2958
2967
  });
2959
2968
 
2969
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.25/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
2970
+ 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]*))$/;
2971
+ function getFunctionFormat(v) {
2972
+ if (!v) return;
2973
+ const str = typeof v === "function" ? v.toString() : v;
2974
+ const trimmed = str.trim();
2975
+ const match = trimmed.match(FUNCTION_REGEX);
2976
+ if (!match) {
2977
+ console.warn("Unsupported function format:", trimmed.slice(0, 100));
2978
+ return;
2979
+ }
2980
+ const [
2981
+ _,
2982
+ // 完整匹配
2983
+ asyncFlag,
2984
+ // 异步标志
2985
+ funcGenerator,
2986
+ // 函数生成器标志
2987
+ funcName,
2988
+ // 函数名称
2989
+ funcParams,
2990
+ // 函数参数
2991
+ methodGenerator,
2992
+ // 方法生成器标志
2993
+ methodName,
2994
+ // 方法名称
2995
+ methodParams,
2996
+ // 方法参数
2997
+ arrowParenParams,
2998
+ // 箭头函数括号参数
2999
+ arrowSingleParam,
3000
+ // 箭头函数单参数
3001
+ blockBody,
3002
+ // 块级函数体
3003
+ exprBody
3004
+ // 表达式函数体
3005
+ ] = match;
3006
+ let isAsync = !!asyncFlag;
3007
+ let isGenerator = false;
3008
+ let name = "";
3009
+ let param = "";
3010
+ let body = "";
3011
+ if (funcParams !== void 0) {
3012
+ isGenerator = funcGenerator === "*";
3013
+ name = funcName || "";
3014
+ param = funcParams;
3015
+ body = blockBody || exprBody || "";
3016
+ } else if (methodParams !== void 0) {
3017
+ isGenerator = methodGenerator?.includes("*") || false;
3018
+ name = methodName || "";
3019
+ param = methodParams;
3020
+ body = blockBody || exprBody || "";
3021
+ } else if (arrowParenParams !== void 0 || arrowSingleParam !== void 0) {
3022
+ param = arrowParenParams || arrowSingleParam || "";
3023
+ body = blockBody || exprBody || "";
3024
+ if (!blockBody && !/^\s*return\b/.test(body)) {
3025
+ body = `return ${body}`;
3026
+ }
3027
+ }
3028
+ return {
3029
+ isAsync,
3030
+ isGenerator,
3031
+ ...name && { name },
3032
+ param: param.trim(),
3033
+ body: body.trim()
3034
+ };
3035
+ }
3036
+
2960
3037
  // packages/components/use/util.ts
2961
3038
  function prettierFormat(st) {
2962
3039
  return st.replace(/\;(\s|\n\r)*$/, "");
@@ -2982,37 +3059,112 @@ function getFunBody(sr = "") {
2982
3059
  return sr;
2983
3060
  }
2984
3061
  }
2985
- function getFunctionFormat(v) {
2986
- if (v) {
2987
- let st = v.toString();
2988
- st = st.trim();
2989
- let name = "([a-z|A-Z|_|$][a-z|A-Z|_|$|0-9]*)?";
2990
- let fun = "(function\\s*" + name + "\\s*)?";
2991
- let param = "(\\([^\\(|\\)]*\\)\\s*)?";
2992
- let body = "[\\s|\\n|\\r]*\\{((.|\n|\r)+?)\\}[\\s|\\n|\\r]*";
2993
- let reg = new RegExp("^" + fun + param + body + "$");
2994
- let vts = reg.exec(st);
2995
- let obj = {
2996
- body: st,
2997
- name: "",
2998
- param: ""
3062
+ var jctypes = [
3063
+ "Boolean",
3064
+ "Any",
3065
+ "String",
3066
+ "Number",
3067
+ "Array",
3068
+ "Object",
3069
+ "Function"
3070
+ ];
3071
+ function conversionType(type) {
3072
+ if (jctypes.includes(type)) {
3073
+ return firstLower(type);
3074
+ } else {
3075
+ return type;
3076
+ }
3077
+ }
3078
+ function sonType(type) {
3079
+ let reg = new RegExp("^([a-z|A-Z]+)\\<(.+)\\>$");
3080
+ let vts = reg.exec(type);
3081
+ if (vts && vts.length > 0) {
3082
+ return {
3083
+ own: conversionType(vts[1]),
3084
+ son: vts[2]
2999
3085
  };
3000
- if (vts && vts.length > 0) {
3001
- obj.name = vts[2];
3002
- obj.param = vts[3];
3003
- obj.body = `{${vts[4]}}`;
3086
+ }
3087
+ }
3088
+ function sonTypes(type, arr) {
3089
+ let obj = sonType(type);
3090
+ if (obj) {
3091
+ arr.push(obj.own);
3092
+ if (obj.son) {
3093
+ sonTypes(obj.son, arr);
3004
3094
  }
3005
- obj.body = prettierFormat(obj.body);
3006
- return obj;
3095
+ } else {
3096
+ arr.push(type);
3097
+ }
3098
+ }
3099
+ function getSonType(type) {
3100
+ if (type instanceof Array) {
3101
+ type = type[0];
3007
3102
  }
3103
+ const arr = [];
3104
+ if (type) {
3105
+ sonTypes(type, arr);
3106
+ }
3107
+ return arr;
3108
+ }
3109
+ function getType(str) {
3110
+ let arr = [];
3111
+ if (str) {
3112
+ str = (str + "").trim();
3113
+ if (str.startsWith("[")) {
3114
+ str = str.substring(1, str.lastIndexOf("]"));
3115
+ arr = str.split(",");
3116
+ } else {
3117
+ const reg = /^\<([a-z|\<|\>|\|]+)\>/;
3118
+ let rts = reg.exec(str);
3119
+ if (rts && rts.length > 0) {
3120
+ let ass = rts[1];
3121
+ arr = ass.split("|");
3122
+ } else {
3123
+ arr = ["any"];
3124
+ }
3125
+ }
3126
+ } else {
3127
+ arr = ["any"];
3128
+ }
3129
+ return arr.map((o) => conversionType(o));
3130
+ }
3131
+ function setDataType(arr) {
3132
+ return arr.join("|");
3133
+ }
3134
+ function getParametersObj(cs) {
3135
+ let arrs = cs.split(",");
3136
+ return arrs.map((key) => {
3137
+ let vs = key.split(":");
3138
+ let name = vs[0];
3139
+ let t = vs[1] || "";
3140
+ let tarr = getSonType(getType(t));
3141
+ return {
3142
+ label: key,
3143
+ prop: name,
3144
+ type: tarr[0],
3145
+ dataType: tarr,
3146
+ description: t.substring(t.lastIndexOf("]") + 1)
3147
+ };
3148
+ });
3008
3149
  }
3009
3150
 
3010
3151
  // packages/components/use/code.ts
3011
3152
  var keywords = ["class"];
3012
- function getHmtl(propsname, value, slotValue, propsText) {
3153
+ function getSpecObjs(specs, name) {
3154
+ return specs.filter((o) => o.name == name)[0];
3155
+ }
3156
+ function getParameStr(css) {
3157
+ return css.map((o) => {
3158
+ const name = o.prop || "...arr";
3159
+ return name + ":" + setDataType(o.dataType);
3160
+ }).join(",");
3161
+ }
3162
+ function getHmtl(propsname, param, value, slotValue, propsText, exposeText) {
3013
3163
  const tarr = [];
3014
3164
  const sarr = [];
3015
3165
  let is = true;
3166
+ const es = getEmitsValue(param.emitss || []);
3167
+ const res = getExposeValue(param.exposes || []);
3016
3168
  Object.keys(value).forEach((key) => {
3017
3169
  let val = value[key];
3018
3170
  if (/^on[A-Z]/.test(key) && typeof val == "function") {
@@ -3038,8 +3190,16 @@ function getHmtl(propsname, value, slotValue, propsText) {
3038
3190
  strs = arr.join("");
3039
3191
  }
3040
3192
  tarr.push(" @" + name + '="' + strs + '"');
3041
- sarr.push("function " + strs + "(...arr) {");
3042
- sarr.push(" console.log('" + strs + "', arr)");
3193
+ const s = getSpecObjs(es, name)?.selectable || "";
3194
+ const css = getParametersObj(s);
3195
+ const cs = getParameStr(css);
3196
+ sarr.push("function " + strs + "(" + cs + ") {");
3197
+ css.forEach((o) => {
3198
+ const name2 = o.prop || "arr";
3199
+ sarr.push(
3200
+ " console.log('" + o.description + name2 + "', " + name2 + ")"
3201
+ );
3202
+ });
3043
3203
  sarr.push("}");
3044
3204
  } else {
3045
3205
  let z = key;
@@ -3065,6 +3225,47 @@ function getHmtl(propsname, value, slotValue, propsText) {
3065
3225
  }
3066
3226
  }
3067
3227
  });
3228
+ const ev = Object.values(exposeText || {});
3229
+ if (ev.length > 0) {
3230
+ if (is) {
3231
+ is = false;
3232
+ sarr.unshift("import { ref } from 'vue';");
3233
+ }
3234
+ tarr.unshift(' ref="refDom"');
3235
+ sarr.push("const refDom = ref()");
3236
+ ev.forEach((v) => {
3237
+ sarr.push(`-------${v.name}--------`);
3238
+ const s = getSpecObjs(res, v.name);
3239
+ const m = v.name + "Value";
3240
+ const css = getParametersObj(s?.selectable || "");
3241
+ const cs = [];
3242
+ v.params?.forEach((val, index) => {
3243
+ const prop = css[index].prop;
3244
+ const key = prop + v.name;
3245
+ if (typeof val == "function") {
3246
+ sarr.push(
3247
+ "const " + key + " = " + getFunctionBody(val, prop, v.text)
3248
+ );
3249
+ } else {
3250
+ if (typeof val == "undefined") {
3251
+ sarr.push("const " + key + " = undefined;");
3252
+ } else {
3253
+ let st2 = setValStringify(val, prop, v.text);
3254
+ sarr.push("const " + key + " = " + st2 + ";");
3255
+ }
3256
+ }
3257
+ cs.push(key);
3258
+ });
3259
+ if (v.type === "function") {
3260
+ sarr.push(
3261
+ `const ${m} = refDom.value?.${v.name}(${cs.join(", ")})`
3262
+ );
3263
+ } else {
3264
+ sarr.push(`const ${m} = refDom.value?.${v.name}`);
3265
+ }
3266
+ sarr.push(`console.log('"${s.description}"', ${m})`);
3267
+ });
3268
+ }
3068
3269
  if (tarr.length > 0) {
3069
3270
  tarr.unshift("");
3070
3271
  }
@@ -3101,7 +3302,7 @@ ${vueFormat(v, " ")}
3101
3302
  function getFunctionBody(v, key, propsText) {
3102
3303
  const text = propsText ? propsText[key] : "";
3103
3304
  if (text) {
3104
- return "function " + text;
3305
+ return text;
3105
3306
  } else {
3106
3307
  return funstr(v.toString());
3107
3308
  }
@@ -3138,7 +3339,7 @@ function setValStringify(v, key, propsText) {
3138
3339
  }
3139
3340
  }
3140
3341
  function getSpecType(val) {
3141
- let tarr = getType(val.type);
3342
+ let tarr = getType2(val.type);
3142
3343
  let type = "any";
3143
3344
  if (tarr.length == 1) {
3144
3345
  type = tarr[0].split("<")[0];
@@ -3171,7 +3372,7 @@ function getSpecType(val) {
3171
3372
  dataType: tarr
3172
3373
  };
3173
3374
  }
3174
- function getType(value) {
3375
+ function getType2(value) {
3175
3376
  let arr = [];
3176
3377
  let str = (value || "").trim().toLowerCase();
3177
3378
  str.split(",").forEach((v) => {
@@ -3674,8 +3875,8 @@ function getDefaultValue(obj) {
3674
3875
  }
3675
3876
  }
3676
3877
  function setVue(propsname, param, url) {
3677
- const ps = getPropsValue2(param.propss);
3678
- const es = getEmitsValue(param.emitss);
3878
+ const ps = getPropsValue2(param.propss || []);
3879
+ const es = getEmitsValue(param.emitss || []);
3679
3880
  const propsObj = {};
3680
3881
  ps.forEach((val) => {
3681
3882
  let name = val.name;
@@ -3709,7 +3910,7 @@ function setVue(propsname, param, url) {
3709
3910
  propsObj[name] = () => {
3710
3911
  };
3711
3912
  });
3712
- const html = getHmtl(propsname, propsObj);
3913
+ const html = getHmtl(propsname, param, propsObj);
3713
3914
  Fang.fileOpen(url, html);
3714
3915
  }
3715
3916
  function getMdurl(obj) {