@fangzhongya/vue-archive 0.1.21 → 0.1.23

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 (341) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
  4. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  5. package/dist/_virtual/common.cjs +1 -0
  6. package/dist/_virtual/common.js +7 -0
  7. package/dist/_virtual/core.cjs +1 -0
  8. package/dist/_virtual/core.js +7 -0
  9. package/dist/index.css +1 -2
  10. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
  11. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
  12. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
  13. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
  51. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
  52. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
  53. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
  54. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
  55. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
  56. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
  57. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
  58. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
  59. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
  60. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
  61. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
  62. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
  63. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
  64. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
  65. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
  66. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
  67. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
  68. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
  69. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
  70. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
  71. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
  72. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
  73. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
  74. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
  75. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
  76. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
  77. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
  78. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
  79. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
  80. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
  81. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
  82. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
  83. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
  84. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
  85. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
  86. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
  87. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
  88. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
  89. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
  90. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
  91. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
  92. package/dist/packages/components/aside/index.vue.cjs +1 -0
  93. package/dist/packages/components/aside/index.vue.js +98 -0
  94. package/dist/packages/components/aside/index.vue2.cjs +1 -0
  95. package/dist/packages/components/aside/index.vue2.js +4 -0
  96. package/dist/packages/components/boxurl/index.vue.cjs +1 -0
  97. package/dist/packages/components/boxurl/index.vue.js +62 -0
  98. package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
  99. package/dist/packages/components/boxurl/index.vue2.js +4 -0
  100. package/dist/packages/components/choice/choice.vue.cjs +1 -0
  101. package/dist/packages/components/choice/choice.vue.js +46 -0
  102. package/dist/packages/components/choice/choice.vue2.cjs +1 -0
  103. package/dist/packages/components/choice/choice.vue2.js +4 -0
  104. package/dist/packages/components/choice/index.vue.cjs +1 -0
  105. package/dist/packages/components/choice/index.vue.js +87 -0
  106. package/dist/packages/components/choice/index.vue2.cjs +1 -0
  107. package/dist/packages/components/choice/index.vue2.js +4 -0
  108. package/dist/packages/components/code/highlight.vue.cjs +1 -0
  109. package/dist/packages/components/code/highlight.vue.js +16 -0
  110. package/dist/packages/components/code/highlight.vue2.cjs +1 -0
  111. package/dist/packages/components/code/highlight.vue2.js +20 -0
  112. package/dist/packages/components/code/index.vue.cjs +1 -0
  113. package/dist/packages/components/code/index.vue.js +115 -0
  114. package/dist/packages/components/code/index.vue2.cjs +1 -0
  115. package/dist/packages/components/code/index.vue2.js +4 -0
  116. package/dist/packages/components/compo/code.vue.cjs +1 -0
  117. package/dist/packages/components/compo/code.vue.js +21 -0
  118. package/dist/packages/components/compo/code.vue3.cjs +1 -0
  119. package/dist/packages/components/compo/code.vue3.js +5 -0
  120. package/dist/packages/components/compo/ftable.vue.cjs +1 -0
  121. package/dist/packages/components/compo/ftable.vue.js +57 -0
  122. package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
  123. package/dist/packages/components/compo/ftable.vue2.js +4 -0
  124. package/dist/packages/components/compo/index.cjs +1 -0
  125. package/dist/packages/components/compo/index.js +127 -0
  126. package/dist/packages/components/compo/index.vue.cjs +1 -0
  127. package/dist/packages/components/compo/index.vue.js +79 -0
  128. package/dist/packages/components/compo/index.vue2.cjs +1 -0
  129. package/dist/packages/components/compo/index.vue2.js +4 -0
  130. package/dist/packages/components/compo/info-top.vue.cjs +1 -0
  131. package/dist/packages/components/compo/info-top.vue.js +32 -0
  132. package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
  133. package/dist/packages/components/compo/info-top.vue2.js +4 -0
  134. package/dist/packages/components/compo/info.vue.cjs +1 -0
  135. package/dist/packages/components/compo/info.vue.js +41 -0
  136. package/dist/packages/components/compo/info.vue2.cjs +1 -0
  137. package/dist/packages/components/compo/info.vue2.js +4 -0
  138. package/dist/packages/components/compo/props.vue.cjs +1 -0
  139. package/dist/packages/components/compo/props.vue.js +87 -0
  140. package/dist/packages/components/compo/props.vue2.cjs +1 -0
  141. package/dist/packages/components/compo/props.vue2.js +4 -0
  142. package/dist/packages/components/compo/top.cjs +1 -0
  143. package/dist/packages/components/compo/top.js +148 -0
  144. package/dist/packages/components/header/index.vue.cjs +1 -0
  145. package/dist/packages/components/header/index.vue.js +10 -0
  146. package/dist/packages/components/main/index.vue.cjs +1 -0
  147. package/dist/packages/components/main/index.vue.js +68 -0
  148. package/dist/packages/components/main/index.vue2.cjs +1 -0
  149. package/dist/packages/components/main/index.vue2.js +4 -0
  150. package/dist/packages/components/md/index.vue.cjs +1 -0
  151. package/dist/packages/components/md/index.vue.js +56 -0
  152. package/dist/packages/components/md/index.vue2.cjs +1 -0
  153. package/dist/packages/components/md/index.vue2.js +4 -0
  154. package/dist/packages/components/test/index.cjs +1 -0
  155. package/dist/packages/components/test/index.js +105 -0
  156. package/dist/packages/components/test/index.vue.cjs +1 -0
  157. package/dist/packages/components/test/index.vue.js +75 -0
  158. package/dist/packages/components/test/index.vue2.cjs +1 -0
  159. package/dist/packages/components/test/index.vue2.js +4 -0
  160. package/dist/packages/components/test/top.cjs +1 -0
  161. package/dist/packages/components/test/top.js +148 -0
  162. package/dist/packages/components/use/code.cjs +20 -0
  163. package/dist/packages/components/use/code.js +212 -0
  164. package/dist/packages/components/use/code.vue.cjs +1 -0
  165. package/dist/packages/components/use/code.vue.js +66 -0
  166. package/dist/packages/components/use/code.vue2.cjs +1 -0
  167. package/dist/packages/components/use/code.vue2.js +4 -0
  168. package/dist/packages/components/use/edit.cjs +18 -0
  169. package/dist/packages/components/use/edit.js +214 -0
  170. package/dist/packages/components/use/effect.vue.cjs +1 -0
  171. package/dist/packages/components/use/effect.vue.js +12 -0
  172. package/dist/packages/components/use/index.cjs +1 -0
  173. package/dist/packages/components/use/index.js +196 -0
  174. package/dist/packages/components/use/prettier.cjs +1 -0
  175. package/dist/packages/components/use/prettier.js +40 -0
  176. package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
  177. package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
  178. package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
  179. package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
  180. package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
  181. package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
  182. package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
  183. package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
  184. package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
  185. package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
  186. package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
  187. package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
  188. package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
  189. package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
  190. package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
  191. package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
  192. package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
  193. package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
  194. package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
  195. package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
  196. package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
  197. package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
  198. package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
  199. package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
  200. package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
  201. package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
  202. package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
  203. package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
  204. package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
  205. package/dist/packages/components/use/retrie/index.vue.js +103 -0
  206. package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
  207. package/dist/packages/components/use/retrie/index.vue3.js +5 -0
  208. package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
  209. package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
  210. package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
  211. package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
  212. package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
  213. package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
  214. package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
  215. package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
  216. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
  217. package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
  218. package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
  219. package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
  220. package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
  221. package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
  222. package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
  223. package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
  224. package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
  225. package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
  226. package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
  227. package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
  228. package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
  229. package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
  230. package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
  231. package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
  232. package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
  233. package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
  234. package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
  235. package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
  236. package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
  237. package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
  238. package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
  239. package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
  240. package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
  241. package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
  242. package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
  243. package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
  244. package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
  245. package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
  246. package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
  247. package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
  248. package/dist/packages/components/use/set-code.vue.cjs +1 -0
  249. package/dist/packages/components/use/set-code.vue.js +63 -0
  250. package/dist/packages/components/use/set-code.vue2.cjs +1 -0
  251. package/dist/packages/components/use/set-code.vue2.js +4 -0
  252. package/dist/packages/components/use/set-emit.vue.cjs +1 -0
  253. package/dist/packages/components/use/set-emit.vue.js +50 -0
  254. package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
  255. package/dist/packages/components/use/set-emit.vue3.js +5 -0
  256. package/dist/packages/components/use/set-expose.vue.cjs +1 -0
  257. package/dist/packages/components/use/set-expose.vue.js +66 -0
  258. package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
  259. package/dist/packages/components/use/set-expose.vue3.js +5 -0
  260. package/dist/packages/components/use/set-props.vue.cjs +1 -0
  261. package/dist/packages/components/use/set-props.vue.js +71 -0
  262. package/dist/packages/components/use/set-props.vue2.cjs +1 -0
  263. package/dist/packages/components/use/set-props.vue2.js +4 -0
  264. package/dist/packages/components/use/set-slot.vue.cjs +1 -0
  265. package/dist/packages/components/use/set-slot.vue.js +45 -0
  266. package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
  267. package/dist/packages/components/use/set-slot.vue2.js +4 -0
  268. package/dist/packages/components/use/util.cjs +3 -0
  269. package/dist/packages/components/use/util.js +294 -0
  270. package/dist/packages/config.cjs +1 -0
  271. package/dist/packages/config.js +14 -0
  272. package/dist/packages/directives/adjust/index.cjs +1 -0
  273. package/dist/packages/directives/adjust/index.js +246 -0
  274. package/dist/packages/index/index.vue.cjs +1 -0
  275. package/dist/packages/index/index.vue.js +4 -0
  276. package/dist/packages/index/index.vue2.cjs +1 -0
  277. package/dist/packages/index/index.vue2.js +14 -0
  278. package/dist/packages/index.cjs +1 -0
  279. package/dist/packages/index.d.ts +1 -0
  280. package/dist/packages/index.js +20 -0
  281. package/dist/packages/page/compon/index.vue.cjs +1 -0
  282. package/dist/packages/page/compon/index.vue.js +4 -0
  283. package/dist/packages/page/compon/index.vue2.cjs +1 -0
  284. package/dist/packages/page/compon/index.vue2.js +21 -0
  285. package/dist/packages/page/comprops/index.vue.cjs +1 -0
  286. package/dist/packages/page/comprops/index.vue.js +4 -0
  287. package/dist/packages/page/comprops/index.vue2.cjs +1 -0
  288. package/dist/packages/page/comprops/index.vue2.js +91 -0
  289. package/dist/packages/page/develop/index.vue.cjs +1 -0
  290. package/dist/packages/page/develop/index.vue.js +4 -0
  291. package/dist/packages/page/develop/index.vue2.cjs +1 -0
  292. package/dist/packages/page/develop/index.vue2.js +26 -0
  293. package/dist/packages/page/edit/index.vue.cjs +1 -0
  294. package/dist/packages/page/edit/index.vue.js +4 -0
  295. package/dist/packages/page/edit/index.vue2.cjs +1 -0
  296. package/dist/packages/page/edit/index.vue2.js +27 -0
  297. package/dist/packages/page/index/index.vue.cjs +1 -0
  298. package/dist/packages/page/index/index.vue.js +4 -0
  299. package/dist/packages/page/index/index.vue2.cjs +1 -0
  300. package/dist/packages/page/index/index.vue2.js +61 -0
  301. package/dist/packages/page/single/index.vue.cjs +1 -0
  302. package/dist/packages/page/single/index.vue.js +4 -0
  303. package/dist/packages/page/single/index.vue2.cjs +1 -0
  304. package/dist/packages/page/single/index.vue2.js +60 -0
  305. package/dist/packages/page/tests/index.vue.cjs +1 -0
  306. package/dist/packages/page/tests/index.vue.js +4 -0
  307. package/dist/packages/page/tests/index.vue2.cjs +1 -0
  308. package/dist/packages/page/tests/index.vue2.js +67 -0
  309. package/dist/packages/router/file.cjs +1 -0
  310. package/dist/packages/router/file.js +44 -0
  311. package/dist/packages/router/index.cjs +1 -0
  312. package/dist/packages/router/index.js +122 -0
  313. package/dist/packages/utils/annotat.cjs +1 -0
  314. package/dist/packages/utils/annotat.js +322 -0
  315. package/dist/packages/utils/common.cjs +1 -0
  316. package/dist/packages/utils/common.js +200 -0
  317. package/dist/packages/utils/glob.cjs +5 -0
  318. package/dist/packages/utils/glob.js +502 -0
  319. package/dist/packages/utils/index.cjs +1 -0
  320. package/dist/packages/utils/index.js +14 -0
  321. package/dist/packages/utils/props.cjs +1 -0
  322. package/dist/packages/utils/props.js +110 -0
  323. package/dist/packages/utils/storage.cjs +1 -0
  324. package/dist/packages/utils/storage.js +34 -0
  325. package/dist/packages/utils/util.cjs +1 -0
  326. package/dist/packages/utils/util.js +46 -0
  327. package/package.json +5 -5
  328. package/dist/config.cjs +0 -1
  329. package/dist/config.js +0 -11
  330. package/dist/index/index.cjs +0 -1
  331. package/dist/index/index.js +0 -5
  332. package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
  333. package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
  334. package/dist/index.cjs +0 -1
  335. package/dist/index.js +0 -15
  336. package/dist/router/file.cjs +0 -1
  337. package/dist/router/file.js +0 -32
  338. package/dist/router/index.cjs +0 -1
  339. package/dist/router/index.js +0 -45
  340. package/dist/utils/storage.cjs +0 -1
  341. package/dist/utils/storage.js +0 -23
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("../boxurl/index.vue.cjs"),u=require("../../../_virtual/common.cjs"),i=require("markdown-it"),_=require("../../utils/glob.cjs"),d={class:"md"},v={class:"md-top-name"},m=["innerHTML"],h=e.defineComponent({__name:"index",props:{value:Object},setup(a){const t=a,n=e.ref(""),l=new i({html:!0,xhtmlOut:!0,highlight:function(r,o){if(o&&u.getLanguage(o))try{return u.highlight(r,{language:o}).value}catch{}return""}});e.watch(()=>t.value,()=>{c()});function c(){t.value?.key&&_.getLocalTextTests(t.value).then(r=>{n.value=l.render(r)}).catch(()=>{n.value=""})}return c(),(r,o)=>(e.openBlock(),e.createElementBlock("div",d,[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,e.toDisplayString(t.value?.value)+" 说明文档",1)]),_:1},8,["value"]),e.createElementVNode("div",{innerHTML:n.value},null,8,m)],64)):e.createCommentVNode("",!0)]))}});module.exports=h;
@@ -0,0 +1,56 @@
1
+ import { defineComponent as s, ref as d, watch as h, openBlock as r, createElementBlock as i, Fragment as v, createVNode as _, withCtx as f, createElementVNode as l, toDisplayString as p, createCommentVNode as g } from "vue";
2
+ import x from "../boxurl/index.vue.js";
3
+ import u from "../../../_virtual/common.js";
4
+ import k from "markdown-it";
5
+ import { getLocalTextTests as w } from "../../utils/glob.js";
6
+ const y = { class: "md" }, L = { class: "md-top-name" }, T = ["innerHTML"], D = /* @__PURE__ */ s({
7
+ __name: "index",
8
+ props: {
9
+ value: Object
10
+ },
11
+ setup(c) {
12
+ const e = c, t = d(""), m = new k({
13
+ html: !0,
14
+ xhtmlOut: !0,
15
+ highlight: function(a, o) {
16
+ if (o && u.getLanguage(o))
17
+ try {
18
+ return u.highlight(a, {
19
+ language: o
20
+ }).value;
21
+ } catch {
22
+ }
23
+ return "";
24
+ }
25
+ });
26
+ h(
27
+ () => e.value,
28
+ () => {
29
+ n();
30
+ }
31
+ );
32
+ function n() {
33
+ e.value?.key && w(e.value).then((a) => {
34
+ t.value = m.render(a);
35
+ }).catch(() => {
36
+ t.value = "";
37
+ });
38
+ }
39
+ return n(), (a, o) => (r(), i("div", y, [
40
+ t.value ? (r(), i(v, { key: 0 }, [
41
+ _(x, {
42
+ value: e.value
43
+ }, {
44
+ default: f(() => [
45
+ l("div", L, p(e.value?.value) + " 说明文档", 1)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["value"]),
49
+ l("div", { innerHTML: t.value }, null, 8, T)
50
+ ], 64)) : g("", !0)
51
+ ]));
52
+ }
53
+ });
54
+ export {
55
+ D as default
56
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../utils/annotat.cjs");function E(t){return delete t.problems,delete t.source,t}function d(t,e){const s={descriptions:t?.description||""},a=[];return t?.tags&&t?.tags?.forEach((r,o)=>{let n=r.tag,l=E(r);if(!s.hasOwnProperty(n)&&e.includes(n))s[n]=l;else{let f={};f[n]=l,a.push({key:n,value:f})}}),{arr:a,obj:s}}let u=[];function T(t){const e=["title","author","date"],s=d(t,e),a={};e.forEach(r=>{a[r]=s.obj[r]}),c(a),s.arr.forEach(r=>{h(r.key,r.value)})}let i=[];function v(t){const e=["state","type"],s=d(t,e),a={};e.forEach(r=>{a[r]=s.obj[r]}),g(a),s.arr.forEach(r=>{h(r.key,r.value)})}function c(t){u.push(t)}function y(t){u.push(t)}function S(t){u.push(t)}function g(t){i.push(t)}function h(t,e){switch(t){case"title":return c(e),!0;case"proposal":return y(e),!0;case"error":return S(e),!0;case"state":return g(e),!0;case"text":return c(e),!0;case"html":return c(e),!0;default:return!1}}function m(t,e){switch(t){case"title":return T(e),!0;case"state":return v(e),!0;default:return!1}}function w(t){return u=[],i=[],p.getTextNotes(t)?.forEach(s=>{let a=s?.tags||[],r=a?.length||0;if(r>0)for(let o=0;o<r;o++){const n=a[o]||{};if(m(n.tag,s))break}}),{titles:u,states:i}}exports.getNotes=w;
@@ -0,0 +1,105 @@
1
+ import { getTextNotes as p } from "../../utils/annotat.js";
2
+ function E(t) {
3
+ return delete t.problems, delete t.source, t;
4
+ }
5
+ function d(t, e) {
6
+ const s = {
7
+ descriptions: t?.description || ""
8
+ }, a = [];
9
+ return t?.tags && t?.tags?.forEach((r, o) => {
10
+ let n = r.tag, l = E(r);
11
+ if (!s.hasOwnProperty(n) && e.includes(n))
12
+ s[n] = l;
13
+ else {
14
+ let f = {};
15
+ f[n] = l, a.push({
16
+ key: n,
17
+ value: f
18
+ });
19
+ }
20
+ }), {
21
+ arr: a,
22
+ obj: s
23
+ };
24
+ }
25
+ let u = [];
26
+ function T(t) {
27
+ const e = ["title", "author", "date"], s = d(t, e), a = {};
28
+ e.forEach((r) => {
29
+ a[r] = s.obj[r];
30
+ }), c(a), s.arr.forEach((r) => {
31
+ g(r.key, r.value);
32
+ });
33
+ }
34
+ let i = [];
35
+ function m(t) {
36
+ const e = ["state", "type"], s = d(t, e), a = {};
37
+ e.forEach((r) => {
38
+ a[r] = s.obj[r];
39
+ }), h(a), s.arr.forEach((r) => {
40
+ g(r.key, r.value);
41
+ });
42
+ }
43
+ function c(t) {
44
+ u.push(t);
45
+ }
46
+ function v(t) {
47
+ u.push(t);
48
+ }
49
+ function x(t) {
50
+ u.push(t);
51
+ }
52
+ function h(t) {
53
+ i.push(t);
54
+ }
55
+ function g(t, e) {
56
+ switch (t) {
57
+ case "title":
58
+ return c(e), !0;
59
+ case "proposal":
60
+ return v(e), !0;
61
+ case "error":
62
+ return x(e), !0;
63
+ case "state":
64
+ return h(e), !0;
65
+ case "text":
66
+ return c(e), !0;
67
+ case "html":
68
+ return c(e), !0;
69
+ default:
70
+ return !1;
71
+ }
72
+ }
73
+ function w(t, e) {
74
+ switch (t) {
75
+ case "title":
76
+ return T(e), !0;
77
+ // case 'proposal':
78
+ // setProposal(obj);
79
+ // return true;
80
+ // case 'error':
81
+ // setError(obj);
82
+ // return true;
83
+ case "state":
84
+ return m(e), !0;
85
+ default:
86
+ return !1;
87
+ }
88
+ }
89
+ function k(t) {
90
+ return u = [], i = [], p(t)?.forEach((s) => {
91
+ let a = s?.tags || [], r = a?.length || 0;
92
+ if (r > 0)
93
+ for (let o = 0; o < r; o++) {
94
+ const n = a[o] || {};
95
+ if (w(n.tag, s))
96
+ break;
97
+ }
98
+ }), {
99
+ titles: u,
100
+ states: i
101
+ };
102
+ }
103
+ export {
104
+ k as getNotes
105
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),m=require("./top.cjs"),f=require("../code/index.vue.cjs"),x=require("./index.cjs"),y=require("../../utils/glob.cjs"),N={class:"md-top-name"},h={class:"test-top"},k={class:"test-div"},V={class:"test-body"},g={key:0,class:"test-code"},B=e.defineComponent({__name:"index",props:{value:Object,read:{type:Boolean,default:!0}},emits:["state"],setup(i,{emit:d}){const t=i,v=d,s=e.ref(""),c=e.ref([]),o=e.ref("1");e.watch([()=>t.value,()=>t.read],()=>{r()});let u;function r(){t.read&&t.value?.key&&y.getLocalTextTests(t.value).then(l=>{s.value=l;let{titles:a,states:_}=x.getNotes(l);c.value=a;const n=_[0];n&&n.type&&(o.value=n.type.type),v("state",o.value,t.value?.key)}).catch(()=>{s.value=""}),t.value?.component&&(u=e.defineAsyncComponent(t.value.component))}return r(),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["test","state-"+o.value])},[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(t.value?.value)+" 文件 示例代码 ",1)]),_:1},8,["value"]),e.createElementVNode("div",h,[e.createVNode(e.unref(m.default),{value:c.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",V,[(e.openBlock(),e.createBlock(e.Suspense,null,{fallback:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode(" 示例加载中... ",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(u))]),_:1}))]),t.read?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(f,{value:t.value,text:s.value},null,8,["value","text"])])):e.createCommentVNode("",!0)])],2))}});module.exports=B;
@@ -0,0 +1,75 @@
1
+ import { defineComponent as k, ref as u, watch as g, defineAsyncComponent as C, openBlock as i, createElementBlock as p, normalizeClass as N, createVNode as a, withCtx as r, createElementVNode as o, toDisplayString as B, unref as f, createBlock as T, Suspense as V, createTextVNode as b, createCommentVNode as w } from "vue";
2
+ import A from "../boxurl/index.vue.js";
3
+ import D from "./top.js";
4
+ import E from "../code/index.vue.js";
5
+ import { getNotes as S } from "./index.js";
6
+ import { getLocalTextTests as $ } from "../../utils/glob.js";
7
+ const j = { class: "md-top-name" }, z = { class: "test-top" }, L = { class: "test-div" }, O = { class: "test-body" }, P = {
8
+ key: 0,
9
+ class: "test-code"
10
+ }, K = /* @__PURE__ */ k({
11
+ __name: "index",
12
+ props: {
13
+ value: Object,
14
+ read: {
15
+ type: Boolean,
16
+ default: !0
17
+ }
18
+ },
19
+ emits: ["state"],
20
+ setup(_, { emit: y }) {
21
+ const e = _, h = y, s = u(""), d = u([]), l = u("1");
22
+ g([() => e.value, () => e.read], () => {
23
+ m();
24
+ });
25
+ let v;
26
+ function m() {
27
+ e.read && e.value?.key && $(e.value).then((n) => {
28
+ s.value = n;
29
+ let { titles: t, states: x } = S(n);
30
+ d.value = t;
31
+ const c = x[0];
32
+ c && c.type && (l.value = c.type.type), h("state", l.value, e.value?.key);
33
+ }).catch(() => {
34
+ s.value = "";
35
+ }), e.value?.component && (v = C(e.value.component));
36
+ }
37
+ return m(), (n, t) => (i(), p("div", {
38
+ class: N(["test", "state-" + l.value])
39
+ }, [
40
+ a(A, {
41
+ value: e.value
42
+ }, {
43
+ default: r(() => [
44
+ o("div", j, B(e.value?.value) + " 文件 示例代码 ", 1)
45
+ ]),
46
+ _: 1
47
+ }, 8, ["value"]),
48
+ o("div", z, [
49
+ a(f(D), { value: d.value }, null, 8, ["value"])
50
+ ]),
51
+ o("div", L, [
52
+ o("div", O, [
53
+ (i(), T(V, null, {
54
+ fallback: r(() => [...t[0] || (t[0] = [
55
+ b(" 示例加载中... ", -1)
56
+ ])]),
57
+ default: r(() => [
58
+ a(f(v))
59
+ ]),
60
+ _: 1
61
+ }))
62
+ ]),
63
+ e.read ? (i(), p("div", P, [
64
+ a(E, {
65
+ value: e.value,
66
+ text: s.value
67
+ }, null, 8, ["value", "text"])
68
+ ])) : w("", !0)
69
+ ])
70
+ ], 2));
71
+ }
72
+ });
73
+ export {
74
+ K as default
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("@fangzhongya/utils/html/htmlEscape");function v(d,e,f){let i=[],m=[],p=[];const n=t=>t,r=()=>{p.length>0&&(i.push(e("div",{class:"test-top-list"},p)),p=[])},c=()=>{i.length>0&&(m.push(e("div",{class:"test-top-division"},i)),i=[])};return d.forEach(t=>{const o=[];let a=!1;if(t.date&&(a=!0,o.push(e("div",{class:"test-top-date"},[e("span",{},"更新时间:"),e("span",{},[n(t.date.name+" "+t.date.description)])]))),t.author&&(a=!0,o.push(e("div",{class:"test-top-author"},[e("span",{},"作者:"),e("span",{},[n(t.author.name+" "+t.author.description)])]))),t.title&&(t.title.type||t.title.name||t.title.description)){r(),a&&c();let s=(t.title.type||"div").split("."),l=s[1]||"";s[0]=="html"?i.push(e("div",{class:"test-top-title "+l,innerHTML:t.title.name+" "+t.title.description})):i.push(e(s[0],{class:"test-top-title "+l},[e("span",{},[n(t.title.name+" "+t.title.description)])]))}if(a&&(p.length>0&&(r(),c()),i.push(e("div",{class:"test-top-info"},o))),t.html){let s=(t.html.type||"div").split("."),l=s[1]||"";p.push(e(s[0],{class:"test-top-html "+l,innerHTML:t.html.name+" "+t.html.description}))}["text","proposal","error"].forEach(s=>{if(t[s]){let l=(t[s].type||"div").split("."),h=l[1]||"";l[0]=="html"?p.push(e("div",{class:"test-top-"+s+" "+h,innerHTML:t[s].name+" "+t[s].description})):p.push(e(l[0],{class:"test-top-"+s+" "+h},[e("span",{},[n(t[s].name+" "+t[s].description)])]))}})}),r(),c(),m}const y=u.defineComponent({props:{value:Array},render(d,e,f){const i=v(f.value,u.h);return i&&i.length>0?u.h("div",{class:"test-top-top"},i):""}});exports.default=y;exports.getTestTopDom=v;
@@ -0,0 +1,148 @@
1
+ import { defineComponent as y, h } from "vue";
2
+ import "@fangzhongya/utils/html/htmlEscape";
3
+ function v(o, e, u) {
4
+ let i = [], m = [], l = [];
5
+ const n = (t) => t, r = () => {
6
+ l.length > 0 && (i.push(
7
+ e(
8
+ "div",
9
+ {
10
+ class: "test-top-list"
11
+ },
12
+ l
13
+ )
14
+ ), l = []);
15
+ }, c = () => {
16
+ i.length > 0 && (m.push(
17
+ e(
18
+ "div",
19
+ {
20
+ class: "test-top-division"
21
+ },
22
+ i
23
+ )
24
+ ), i = []);
25
+ };
26
+ return o.forEach((t) => {
27
+ const d = [];
28
+ let a = !1;
29
+ if (t.date && (a = !0, d.push(
30
+ e(
31
+ "div",
32
+ {
33
+ class: "test-top-date"
34
+ },
35
+ [
36
+ e("span", {}, "更新时间:"),
37
+ e("span", {}, [
38
+ n(
39
+ t.date.name + " " + t.date.description
40
+ )
41
+ ])
42
+ ]
43
+ )
44
+ )), t.author && (a = !0, d.push(
45
+ e(
46
+ "div",
47
+ {
48
+ class: "test-top-author"
49
+ },
50
+ [
51
+ e("span", {}, "作者:"),
52
+ e("span", {}, [
53
+ n(
54
+ t.author.name + " " + t.author.description
55
+ )
56
+ ])
57
+ ]
58
+ )
59
+ )), t.title && (t.title.type || t.title.name || t.title.description)) {
60
+ r(), a && c();
61
+ let s = (t.title.type || "div").split("."), p = s[1] || "";
62
+ s[0] == "html" ? i.push(
63
+ e("div", {
64
+ class: "test-top-title " + p,
65
+ innerHTML: t.title.name + " " + t.title.description
66
+ })
67
+ ) : i.push(
68
+ e(
69
+ s[0],
70
+ {
71
+ class: "test-top-title " + p
72
+ },
73
+ [
74
+ e("span", {}, [
75
+ n(
76
+ t.title.name + " " + t.title.description
77
+ )
78
+ ])
79
+ ]
80
+ )
81
+ );
82
+ }
83
+ if (a && (l.length > 0 && (r(), c()), i.push(
84
+ e(
85
+ "div",
86
+ {
87
+ class: "test-top-info"
88
+ },
89
+ d
90
+ )
91
+ )), t.html) {
92
+ let s = (t.html.type || "div").split("."), p = s[1] || "";
93
+ l.push(
94
+ e(s[0], {
95
+ class: "test-top-html " + p,
96
+ innerHTML: t.html.name + " " + t.html.description
97
+ })
98
+ );
99
+ }
100
+ ["text", "proposal", "error"].forEach((s) => {
101
+ if (t[s]) {
102
+ let p = (t[s].type || "div").split("."), f = p[1] || "";
103
+ p[0] == "html" ? l.push(
104
+ e("div", {
105
+ class: "test-top-" + s + " " + f,
106
+ innerHTML: t[s].name + " " + t[s].description
107
+ })
108
+ ) : l.push(
109
+ e(
110
+ p[0],
111
+ {
112
+ class: "test-top-" + s + " " + f
113
+ },
114
+ [
115
+ e("span", {}, [
116
+ n(
117
+ t[s].name + " " + t[s].description
118
+ )
119
+ ])
120
+ ]
121
+ )
122
+ );
123
+ }
124
+ });
125
+ }), r(), c(), m;
126
+ }
127
+ const H = y({
128
+ /**
129
+ * @props {Stinrg} value 插入数据
130
+ */
131
+ props: {
132
+ value: Array
133
+ },
134
+ render(o, e, u) {
135
+ const i = v(u.value, h);
136
+ return i && i.length > 0 ? h(
137
+ "div",
138
+ {
139
+ class: "test-top-top"
140
+ },
141
+ i
142
+ ) : "";
143
+ }
144
+ });
145
+ export {
146
+ H as default,
147
+ v as getTestTopDom
148
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const A=require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const C=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 c=require("./util.cjs"),S=require("../../utils/props.cjs"),V=require("../../utils/annotat.cjs"),M=require("@fangzhongya/utils/basic/string/toFunction");function q(e,n){return e.filter(t=>t.name==n)[0]}function B(e){return e.map(n=>(n.prop||"...arr")+":"+c.setDataType(n.dataType)).join(",")}async function R(e,n,t,s,o,y){const g=[],r=[];let T=!0;const H=S.getPropsValue(n.propss||[]),U=S.getEmitsValue(n.emitss||[]),z=S.getExposeValue(n.exposes||[]),J=S.getSlotValue(n.slots||[]);Object.keys(t).forEach(async i=>{let u=t[i];if(/^on[A-Z]/.test(i)&&typeof u=="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=C.firstLower(a)):(l=f[0],a=A.humpToLine(a)),f.includes("-")){let m=l.split("-");m=m.map((h,F)=>F!=0?L.firstUpper(h):h),l=m.join("")}g.push(" @"+a+'="'+l+'"');const p=q(U,a)||{},d=p.selectable||"",b=V.parseParamString(d),$=B(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;c.allReservedWords.includes(i)&&(a=i+"1"),g.push(" :"+i+'="'+a+'"');const f=q(H,i)||{},l=P(f);if(r.push(`// ${f.description} ${f.name}: {${f.type}} (${f.selectable})`),typeof u=="function"||l.dataType.length==1&&l.type=="function"&&u)r.push("const "+i+" = "+await x(u,i,o));else if(T&&(T=!1,r.unshift("import { ref } from 'vue';")),typeof u>"u")if(l.type=="function"){const p=Z(f);r.push("const "+a+" = "+p+";")}else{const p=c.getTypeValue(l.dataType);r.push("const "+a+" = ref("+(p==="undefined"?"":p)+");")}else{let p=O(u,i,o);r.push("const "+a+" = ref("+p+");")}}});const v=Object.values(y||{});v.length>0&&(T&&(T=!1,r.unshift("import { ref } from 'vue';")),g.unshift(' ref="refDom"'),r.push("const refDom = ref()"),v.forEach(i=>{const u=q(z,i.name)||{};r.push(`// ${u.description} ${u.name}:(${u.selectable}) ${u.type}`);const a=i.name+"Value",f=V.parseParamString(u?.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+" = "+x(h,$,i.text));else if(typeof h>"u")r.push("const "+m+" = "+c.getTypeValue(d.dataType)+";");else{let F=O(h,$,i.text);r.push("const "+m+" = "+F+";")}l.push(m)}}),i.type==="function"?(u.return?r.push(`const ${a} = refDom.value?.${i.name}(${l.join(", ")})`):r.push(`refDom.value?.${i.name}(${l.join(", ")})`),u.return&&r.push(`console.log('${u.return}', ${a})`)):(r.push(`const ${a} = refDom.value?.${i.name}`),r.push(`console.log('${u.type||u.name}', ${a})`))})),g.length>0&&g.unshift("");const N=W(s,J);let j=`<template>
2
+ <div>
3
+ <${e}${g.join(`
4
+ `)}>${N.join(`
5
+ `)}
6
+ </${e}>
7
+ </div>
8
+ </template>`;j=await c.prettierHtml(j);let D=r.join(`
9
+ `);return D=await c.prettierTs(D),`<!--${e}-->
10
+ ${j}
11
+ <script lang="ts" setup>
12
+ ${D}
13
+ <\/script>`}function W(e={},n){const t=[];return Object.keys(e).forEach(s=>{const o=q(n,s)||{},y=e[s];if(y){const g=` <!-- ${o.description} ${o.name}:(${o.selectable}) -->
14
+ <template #${s}="scope">
15
+ ${c.vueFormat(y," ")}
16
+ </template>`;t.push(g)}}),t&&t.length>0&&t.unshift(""),t}function x(e,n,t){const s=t?t[n]:"";return s&&(s.includes("=>")||s.includes("function"))?s:E(e.toString())}async function E(e){const n=M.getFunctionFormat(e);if(n){let t=`{
17
+ ${c.vueFormat(c.getFunBody(n.body)," ")}
18
+ }`;return`function (${n.param.split(",").map(s=>s+":any").join(",")}) ${t}`}else return"undefined"}function Z(e){const n=V.parseParamString(e.selectable),t=B(n);let s="";e.return&&(s="return ");let o=`{
19
+ ${c.vueFormat(c.getFunBody(s)," ")}
20
+ }`;return`function (${t}) ${o}`}function G(e){const n=e.trim();return/^\(/.test(n)?E(n):JSON.stringify(e)}function O(e,n,t){const s=t?t[n]:"";return s||(typeof e=="string"?G(e+""):JSON.stringify(e))}function P(e){let n=c.getDataType(c.parseTypeDefinition(e?.type)),t=c.getDataTypeType(n);n.length>1&&(t="any");let s=(e?.selectable||"").trim(),o=[];return s&&t!="boolean"&&(s.includes("|")?s.split("|").forEach(y=>{if(y){let g=y.split(":");o.push({label:y,prop:w(g[0].trim())})}}):o=V.parseParamString(s),t=="array"?t="choice":t!="function"&&o.length>1&&(t="select")),{arr:o,type:t,dataType:n}}function w(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 I(e,n=!0){const t=P(e),s=c.getTypeValue(t.dataType);if(n){const o=(e.default||"").trim();return w(o||s,c.getDataTypeType(t.dataType))}else{const o=(e.default||"").trim();return w(o,c.getDataTypeType(t.dataType))}}exports.getDefaultValue=I;exports.getHmtl=R;exports.getSpecType=P;exports.setValStringify=O;
@@ -0,0 +1,212 @@
1
+ import "@fangzhongya/utils/basic/object/mergeObject";
2
+ import "@fangzhongya/utils/basic/array/toggleArray";
3
+ import { humpToLine as W } from "@fangzhongya/utils/name/humpToLine";
4
+ import "@fangzhongya/utils/name/lineToLargeHump";
5
+ import "@fangzhongya/utils/basic/string/appearNum";
6
+ import { firstLower as Z } from "@fangzhongya/utils/basic/string/firstLower";
7
+ import "@fangzhongya/utils/basic/array/duplicateRemoval";
8
+ import "@fangzhongya/utils/basic/array/asyncMergeArray";
9
+ import { firstUpper as z } from "@fangzhongya/utils/basic/string/firstUpper";
10
+ import "@fangzhongya/utils/urls/getSuffix";
11
+ import "@fangzhongya/utils/basic/array/replaceAfter";
12
+ import { getTypeValue as E, getDataTypeType as F, prettierHtml as q, prettierTs as G, getDataType as I, parseTypeDefinition as K, setDataType as M, vueFormat as x, getFunBody as J, allReservedWords as Q } from "./util.js";
13
+ import { getPropsValue as X, getEmitsValue as Y, getExposeValue as _, getSlotValue as k } from "../../utils/props.js";
14
+ import { parseParamString as j } from "../../utils/annotat.js";
15
+ import { getFunctionFormat as tt } from "@fangzhongya/utils/basic/string/toFunction";
16
+ function T(t, n) {
17
+ return t.filter((e) => e.name == n)[0];
18
+ }
19
+ function L(t) {
20
+ return t.map((n) => (n.prop || "...arr") + ":" + M(n.dataType)).join(",");
21
+ }
22
+ async function Tt(t, n, e, s, i, $) {
23
+ const m = [], r = [];
24
+ let d = !0;
25
+ const v = X(n.propss || []), A = Y(n.emitss || []), C = _(n.exposes || []), R = k(n.slots || []);
26
+ Object.keys(e).forEach(async (o) => {
27
+ let c = e[o];
28
+ if (/^on[A-Z]/.test(o) && typeof c == "function") {
29
+ let u = o.substring(2);
30
+ const a = o.split(":");
31
+ let l;
32
+ if (a.length > 1 ? (l = a[0] + a.slice(1).map((p) => z(p)).join(""), u = Z(u)) : (l = a[0], u = W(u)), a.includes("-")) {
33
+ let p = l.split("-");
34
+ p = p.map((h, V) => V != 0 ? z(h) : h), l = p.join("");
35
+ }
36
+ m.push(" @" + u + '="' + l + '"');
37
+ const f = T(A, u) || {}, y = f.selectable || "", b = j(y), g = L(b);
38
+ r.push(`// ${f.description} ${f.name}: (${f.selectable})`), r.push("function " + l + "(" + g + ") {"), b.forEach((p) => {
39
+ const h = p.name || "arr";
40
+ r.push(" console.log('" + p.label + "', " + h + ")");
41
+ }), r.push("}");
42
+ } else {
43
+ let u = o;
44
+ Q.includes(o) && (u = o + "1"), m.push(" :" + o + '="' + u + '"');
45
+ const a = T(v, o) || {}, l = N(a);
46
+ if (r.push(
47
+ `// ${a.description} ${a.name}: {${a.type}} (${a.selectable})`
48
+ ), typeof c == "function" || l.dataType.length == 1 && l.type == "function" && c)
49
+ r.push(
50
+ "const " + o + " = " + await B(
51
+ c,
52
+ o,
53
+ i
54
+ )
55
+ );
56
+ else if (d && (d = !1, r.unshift("import { ref } from 'vue';")), typeof c > "u")
57
+ if (l.type == "function") {
58
+ const f = nt(a);
59
+ r.push("const " + u + " = " + f + ";");
60
+ } else {
61
+ const f = E(l.dataType);
62
+ r.push(
63
+ "const " + u + " = ref(" + (f === "undefined" ? "" : f) + ");"
64
+ );
65
+ }
66
+ else {
67
+ let f = H(c, o, i);
68
+ r.push("const " + u + " = ref(" + f + ");");
69
+ }
70
+ }
71
+ });
72
+ const P = Object.values($ || {});
73
+ P.length > 0 && (d && (d = !1, r.unshift("import { ref } from 'vue';")), m.unshift(' ref="refDom"'), r.push("const refDom = ref()"), P.forEach((o) => {
74
+ const c = T(C, o.name) || {};
75
+ r.push(
76
+ `// ${c.description} ${c.name}:(${c.selectable}) ${c.type}`
77
+ );
78
+ const u = o.name + "Value", a = j(c?.selectable || ""), l = [], f = o.params || [];
79
+ a.forEach((y, b) => {
80
+ const g = y.name;
81
+ if (g) {
82
+ const p = g + o.name, h = f[b];
83
+ if (r.push(`// ${y.label}`), typeof h == "function")
84
+ r.push(
85
+ "const " + p + " = " + B(h, g, o.text)
86
+ );
87
+ else if (typeof h > "u")
88
+ r.push(
89
+ "const " + p + " = " + E(y.dataType) + ";"
90
+ );
91
+ else {
92
+ let V = H(h, g, o.text);
93
+ r.push("const " + p + " = " + V + ";");
94
+ }
95
+ l.push(p);
96
+ }
97
+ }), o.type === "function" ? (c.return ? r.push(
98
+ `const ${u} = refDom.value?.${o.name}(${l.join(
99
+ ", "
100
+ )})`
101
+ ) : r.push(`refDom.value?.${o.name}(${l.join(", ")})`), c.return && r.push(`console.log('${c.return}', ${u})`)) : (r.push(`const ${u} = refDom.value?.${o.name}`), r.push(`console.log('${c.type || c.name}', ${u})`));
102
+ })), m.length > 0 && m.unshift("");
103
+ const U = et(s, R);
104
+ let S = `<template>
105
+ <div>
106
+ <${t}${m.join(`
107
+ `)}>${U.join(`
108
+ `)}
109
+ </${t}>
110
+ </div>
111
+ </template>`;
112
+ S = await q(S);
113
+ let D = r.join(`
114
+ `);
115
+ return D = await G(D), `<!--${t}-->
116
+ ${S}
117
+ <script lang="ts" setup>
118
+ ${D}
119
+ <\/script>`;
120
+ }
121
+ function et(t = {}, n) {
122
+ const e = [];
123
+ return Object.keys(t).forEach((s) => {
124
+ const i = T(n, s) || {}, $ = t[s];
125
+ if ($) {
126
+ const m = ` <!-- ${i.description} ${i.name}:(${i.selectable}) -->
127
+ <template #${s}="scope">
128
+ ${x($, " ")}
129
+ </template>`;
130
+ e.push(m);
131
+ }
132
+ }), e && e.length > 0 && e.unshift(""), e;
133
+ }
134
+ function B(t, n, e) {
135
+ const s = e ? e[n] : "";
136
+ return s && (s.includes("=>") || s.includes("function")) ? s : O(t.toString());
137
+ }
138
+ async function O(t) {
139
+ const n = tt(t);
140
+ if (n) {
141
+ let e = `{
142
+ ${x(J(n.body), " ")}
143
+ }`;
144
+ return `function (${n.param.split(",").map((s) => s + ":any").join(",")}) ${e}`;
145
+ } else
146
+ return "undefined";
147
+ }
148
+ function nt(t) {
149
+ const n = j(t.selectable), e = L(n);
150
+ let s = "";
151
+ t.return && (s = "return ");
152
+ let i = `{
153
+ ${x(J(s), " ")}
154
+ }`;
155
+ return `function (${e}) ${i}`;
156
+ }
157
+ function st(t) {
158
+ const n = t.trim();
159
+ return /^\(/.test(n) ? O(n) : JSON.stringify(t);
160
+ }
161
+ function H(t, n, e) {
162
+ const s = e ? e[n] : "";
163
+ return s || (typeof t == "string" ? st(t + "") : JSON.stringify(t));
164
+ }
165
+ function N(t) {
166
+ let n = I(K(t?.type)), e = F(n);
167
+ n.length > 1 && (e = "any");
168
+ let s = (t?.selectable || "").trim(), i = [];
169
+ return s && e != "boolean" && (s.includes("|") ? s.split("|").forEach(($) => {
170
+ if ($) {
171
+ let m = $.split(":");
172
+ i.push({
173
+ label: $,
174
+ prop: w(m[0].trim())
175
+ });
176
+ }
177
+ }) : i = j(s), e == "array" ? e = "choice" : e != "function" && i.length > 1 && (e = "select")), {
178
+ arr: i,
179
+ type: e,
180
+ dataType: n
181
+ };
182
+ }
183
+ function w(t, n) {
184
+ try {
185
+ if (n == "function")
186
+ if (typeof t == "string") {
187
+ if (/^\((.|\n|\r)*\)$/.test(t))
188
+ return t = t.substring(1, t.length - 1), new Function(`{ return ${t} }`)();
189
+ } else
190
+ return t;
191
+ else
192
+ return new Function(`{ return ${t} }`)();
193
+ } catch {
194
+ return "" + t;
195
+ }
196
+ }
197
+ function jt(t, n = !0) {
198
+ const e = N(t), s = E(e.dataType);
199
+ if (n) {
200
+ const i = (t.default || "").trim();
201
+ return w(i || s, F(e.dataType));
202
+ } else {
203
+ const i = (t.default || "").trim();
204
+ return w(i, F(e.dataType));
205
+ }
206
+ }
207
+ export {
208
+ jt as getDefaultValue,
209
+ Tt as getHmtl,
210
+ N as getSpecType,
211
+ H as setValStringify
212
+ };