@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,115 @@
1
+ import { defineComponent as V, ref as p, watch as _, openBlock as v, createElementBlock as h, createElementVNode as j, createVNode as u } from "vue";
2
+ import { getDataTypeType as T, isDefaultType as C } from "../../util.js";
3
+ import x from "../form/index.vue.js";
4
+ import O from "../select/index.vue.js";
5
+ /* empty css */
6
+ const k = { class: "form-any" }, N = /* @__PURE__ */ V({
7
+ __name: "index",
8
+ props: {
9
+ /**
10
+ * @props { Object } selects 选择数据集合
11
+ */
12
+ selects: {
13
+ type: Object,
14
+ default() {
15
+ return {};
16
+ }
17
+ },
18
+ /**
19
+ * @props { Object } config 默认展示数据
20
+ */
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ modelValue: {
28
+ type: null
29
+ }
30
+ },
31
+ emits: ["change"],
32
+ setup(m, { emit: f }) {
33
+ const o = m, n = p([]), r = p({
34
+ type: ""
35
+ }), d = f, c = p(""), s = [
36
+ {
37
+ label: "string",
38
+ prop: "string"
39
+ },
40
+ {
41
+ label: "boolean",
42
+ prop: "boolean"
43
+ },
44
+ {
45
+ label: "number",
46
+ prop: "number"
47
+ },
48
+ {
49
+ label: "array",
50
+ prop: "array"
51
+ },
52
+ {
53
+ label: "object",
54
+ prop: "object"
55
+ },
56
+ {
57
+ label: "function",
58
+ prop: "function"
59
+ },
60
+ {
61
+ label: "其他",
62
+ prop: ""
63
+ }
64
+ ];
65
+ _(
66
+ () => o.modelValue,
67
+ () => {
68
+ b();
69
+ },
70
+ {
71
+ immediate: !0
72
+ }
73
+ );
74
+ function i(e, l) {
75
+ let a = Object.assign({}, o.config);
76
+ l ? a.type = l : a.type = e, a.dataType = n.value, r.value = a;
77
+ }
78
+ function b() {
79
+ let e = [];
80
+ const l = o.config.dataType || [];
81
+ l && l.length > 0 ? (e = l.map((t) => typeof t == "string" ? {
82
+ label: t,
83
+ prop: t.toLowerCase()
84
+ } : {
85
+ label: t.label,
86
+ prop: T([t])
87
+ }), e.map((t) => t.prop).includes("any") && (e = [...s])) : e = [...s], n.value = e, i(e[0].prop, C(o.modelValue)), c.value = o.modelValue;
88
+ }
89
+ function g(e) {
90
+ i(e), c.value = "";
91
+ }
92
+ function y(...e) {
93
+ d("change", ...e);
94
+ }
95
+ return (e, l) => (v(), h("div", k, [
96
+ j("div", null, [
97
+ u(O, {
98
+ noValue: "",
99
+ onChange: g,
100
+ modelValue: r.value.type,
101
+ list: n.value
102
+ }, null, 8, ["modelValue", "list"])
103
+ ]),
104
+ u(x, {
105
+ config: r.value,
106
+ selects: o.selects,
107
+ modelValue: c.value,
108
+ onChange: y
109
+ }, null, 8, ["config", "selects", "modelValue"])
110
+ ]));
111
+ }
112
+ });
113
+ export {
114
+ N as default
115
+ };
@@ -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,3 @@
1
+ "use strict";const n=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),d={class:"form-array"},p=n.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(i,{emit:s}){const u=i,o=s,l=n.ref("");n.watch(()=>u.modelValue,async()=>{let e=u.modelValue;l.value=await a(e)||e},{immediate:!0});function c(e){return new Function("",`{return ${e}}`)}async function a(e){let r;if(e)try{let t=e;typeof e=="string"?(t=c(e)(),r=await f.prettierArrFormat(e)):r=JSON.stringify(e),t instanceof Array?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`[
2
+
3
+ ]`,o("value",void 0,r),o("error",!1);return r}return(e,r)=>(n.openBlock(),n.createElementBlock("div",d,[n.createVNode(m,{format:"json",modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=t=>l.value=t),check:a},null,8,["modelValue"])]))}});module.exports=p;
@@ -0,0 +1,55 @@
1
+ import { defineComponent as c, ref as s, watch as f, openBlock as p, createElementBlock as d, createVNode as v } from "vue";
2
+ import y from "../input/index.vue.js";
3
+ /* empty css */
4
+ import { prettierArrFormat as _ } from "../../util.js";
5
+ const V = { class: "form-array" }, A = /* @__PURE__ */ c({
6
+ __name: "index",
7
+ props: {
8
+ modelValue: {
9
+ type: null
10
+ }
11
+ },
12
+ emits: ["value", "error"],
13
+ setup(u, { emit: i }) {
14
+ const l = u, t = i, n = s("");
15
+ f(
16
+ () => l.modelValue,
17
+ async () => {
18
+ let e = l.modelValue;
19
+ n.value = await a(e) || e;
20
+ },
21
+ {
22
+ immediate: !0
23
+ }
24
+ );
25
+ function m(e) {
26
+ return new Function("", `{return ${e}}`);
27
+ }
28
+ async function a(e) {
29
+ let r;
30
+ if (e)
31
+ try {
32
+ let o = e;
33
+ typeof e == "string" ? (o = m(e)(), r = await _(e)) : r = JSON.stringify(e), o instanceof Array ? (t("value", o, r), t("error", !1)) : (t("error", !0), console.log("error", "类型不匹配"));
34
+ } catch (o) {
35
+ t("error", !0), console.log("error", o);
36
+ }
37
+ else
38
+ r = `[
39
+
40
+ ]`, t("value", void 0, r), t("error", !1);
41
+ return r;
42
+ }
43
+ return (e, r) => (p(), d("div", V, [
44
+ v(y, {
45
+ format: "json",
46
+ modelValue: n.value,
47
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
48
+ check: a
49
+ }, null, 8, ["modelValue"])
50
+ ]));
51
+ }
52
+ });
53
+ export {
54
+ A as default
55
+ };
@@ -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"),f={class:"form-boolean"},c=["disabled","checked"],m=["disabled","checked"],p=e.defineComponent({__name:"index",props:{modelValue:{type:null},list:{type:Array},disabled:Boolean,config:{type:Object,default(){return{}}}},emits:["value","error"],setup(i,{emit:s}){const r=i,a=s,o=e.ref(!1);e.watch(()=>r.modelValue,()=>{let t=r.modelValue;n(t)},{immediate:!0});function d(t){return typeof t=="string"?t==="true"||t==="1":typeof t=="boolean"&&t===!0?!0:typeof t=="number"&&t===1}function n(t){o.value=d(t)||!1,a("value",o.value,JSON.stringify(o.value))}return(t,l)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",{class:"form-boolean-div",onClick:l[0]||(l[0]=e.withModifiers(u=>n(!0),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"true",disabled:r.disabled,checked:o.value},null,8,c),l[2]||(l[2]=e.createElementVNode("label",{for:"true"},"true",-1))]),e.createElementVNode("div",{class:"form-boolean-div",onClick:l[1]||(l[1]=e.withModifiers(u=>n(!1),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"false",disabled:r.disabled,checked:!o.value},null,8,m),l[3]||(l[3]=e.createElementVNode("label",{for:"false"},"false",-1))])]))}});module.exports=p;
@@ -0,0 +1,68 @@
1
+ import { defineComponent as c, ref as p, watch as m, openBlock as v, createElementBlock as b, createElementVNode as t, withModifiers as i } from "vue";
2
+ const k = { class: "form-boolean" }, y = ["disabled", "checked"], h = ["disabled", "checked"], V = /* @__PURE__ */ c({
3
+ __name: "index",
4
+ props: {
5
+ modelValue: {
6
+ type: null
7
+ },
8
+ list: {
9
+ type: Array
10
+ },
11
+ disabled: Boolean,
12
+ config: {
13
+ type: Object,
14
+ default() {
15
+ return {};
16
+ }
17
+ }
18
+ },
19
+ emits: ["value", "error"],
20
+ setup(a, { emit: s }) {
21
+ const r = a, u = s, o = p(!1);
22
+ m(
23
+ () => r.modelValue,
24
+ () => {
25
+ let e = r.modelValue;
26
+ n(e);
27
+ },
28
+ {
29
+ immediate: !0
30
+ }
31
+ );
32
+ function d(e) {
33
+ return typeof e == "string" ? e === "true" || e === "1" : typeof e == "boolean" && e === !0 ? !0 : typeof e == "number" && e === 1;
34
+ }
35
+ function n(e) {
36
+ o.value = d(e) || !1, u("value", o.value, JSON.stringify(o.value));
37
+ }
38
+ return (e, l) => (v(), b("div", k, [
39
+ t("div", {
40
+ class: "form-boolean-div",
41
+ onClick: l[0] || (l[0] = i((f) => n(!0), ["stop"]))
42
+ }, [
43
+ t("input", {
44
+ type: "radio",
45
+ value: "true",
46
+ disabled: r.disabled,
47
+ checked: o.value
48
+ }, null, 8, y),
49
+ l[2] || (l[2] = t("label", { for: "true" }, "true", -1))
50
+ ]),
51
+ t("div", {
52
+ class: "form-boolean-div",
53
+ onClick: l[1] || (l[1] = i((f) => n(!1), ["stop"]))
54
+ }, [
55
+ t("input", {
56
+ type: "radio",
57
+ value: "false",
58
+ disabled: r.disabled,
59
+ checked: !o.value
60
+ }, null, 8, h),
61
+ l[3] || (l[3] = t("label", { for: "false" }, "false", -1))
62
+ ])
63
+ ]));
64
+ }
65
+ });
66
+ export {
67
+ V as default
68
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");;/* empty css */module.exports=e;
@@ -0,0 +1,5 @@
1
+ import o from "./index.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");require("@fangzhongya/utils/basic/object/mergeObject");const C=require("@fangzhongya/utils/basic/array/toggleArray");require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const v=require("../../util.cjs"),S={class:"form-select"},x=["value","disabled"],A={class:"form-select-list"},T={key:0,class:"form-select-list-div"},j=["onClick"],D={key:1,class:"no-data"},L=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(h,{emit:y}){const n=h,g=y,u=e.ref(),a=e.ref(!1),c=e.ref(!1),r=e.ref([]),_=e.computed(()=>r.value.map(t=>d(t)).join(",")),p=e.computed(()=>v.getDataTypeType(n.dataType||[]));e.watch(()=>n.modelValue,()=>{q()},{immediate:!0});function k(t=[]){return p.value=="string"?t.map(l=>v.getString(l)):p.value=="number"?t.map(l=>{let o=Number(l);return isNaN(o)&&(o=0),o}):t}function b(t){return new Function("",`{ return ${t}}`)}function q(){r.value=[];let t=n.modelValue,l=[];const o=b(t);if(o instanceof Array&&(l=o),n.list)for(let s=0;s<n.list.length;s++){const f=n.list[s];l.includes(i(f))&&r.value.push(f)}m()}function d(t){let l=n.config?.label;return l&&typeof t=="object"&&t?t[l]:t}function i(t){let l=n.config?.prop;return l&&typeof t=="object"&&t?t[l]:t}function B(t){return r.value.map(l=>i(l)).includes(i(t))}function w(){n.disabled||(a.value=!0)}function V(){c.value||(a.value=!1)}function E(){c.value=!0}function M(){c.value=!1}function N(t){u.value&&u.value.focus(),r.value=C.toggleArray(r.value,t,n.config.prop),m()}function m(){let t=k(r.value.map(l=>i(l)));g("value",t,JSON.stringify(t))}return(t,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("input",{value:_.value,readonly:"",placeholder:"请选择",type:"text",disabled:n.disabled,ref_key:"refInput",ref:u,onClick:e.withModifiers(w,["stop"]),onBlur:e.withModifiers(V,["stop"])},null,40,x),e.createElementVNode("div",{onMousemove:e.withModifiers(E,["stop"]),onMouseout:e.withModifiers(M,["stop"]),class:"form-select-box"},[e.withDirectives(e.createElementVNode("div",A,[n.list&&n.list.length>0?(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-select-list-li",{active:B(o)}]),onClick:e.withModifiers(f=>N(o),["stop"])},[e.createElementVNode("span",null,e.toDisplayString(d(o)),1)],10,j))),256))])):(e.openBlock(),e.createElementBlock("div",D,"暂无数据"))],512),[[e.vShow,a.value]])],32)]))}});module.exports=L;
@@ -0,0 +1,142 @@
1
+ import { defineComponent as D, ref as c, computed as _, watch as L, openBlock as i, createElementBlock as r, createElementVNode as p, withModifiers as s, withDirectives as z, Fragment as E, renderList as F, normalizeClass as I, toDisplayString as O, vShow as $ } from "vue";
2
+ import "@fangzhongya/utils/basic/object/mergeObject";
3
+ import { toggleArray as J } from "@fangzhongya/utils/basic/array/toggleArray";
4
+ import "@fangzhongya/utils/name/humpToLine";
5
+ import "@fangzhongya/utils/name/lineToLargeHump";
6
+ import "@fangzhongya/utils/basic/string/appearNum";
7
+ import "@fangzhongya/utils/basic/string/firstLower";
8
+ import "@fangzhongya/utils/basic/array/duplicateRemoval";
9
+ import "@fangzhongya/utils/basic/array/asyncMergeArray";
10
+ import "@fangzhongya/utils/basic/string/firstUpper";
11
+ import "@fangzhongya/utils/urls/getSuffix";
12
+ import "@fangzhongya/utils/basic/array/replaceAfter";
13
+ import { getDataTypeType as P, getString as q } from "../../util.js";
14
+ const G = { class: "form-select" }, H = ["value", "disabled"], K = { class: "form-select-list" }, Q = {
15
+ key: 0,
16
+ class: "form-select-list-div"
17
+ }, R = ["onClick"], U = {
18
+ key: 1,
19
+ class: "no-data"
20
+ }, ae = /* @__PURE__ */ D({
21
+ __name: "index",
22
+ props: {
23
+ modelValue: {
24
+ type: null
25
+ },
26
+ dataType: { type: [Array] },
27
+ disabled: Boolean,
28
+ list: {
29
+ type: Array
30
+ },
31
+ config: {
32
+ type: Object,
33
+ default() {
34
+ return {
35
+ label: "label",
36
+ prop: "prop"
37
+ };
38
+ }
39
+ }
40
+ },
41
+ emits: ["value", "change"],
42
+ setup(b, { emit: k }) {
43
+ const o = b, V = k, f = c(), m = c(!1), d = c(!1), l = c([]), w = _(() => l.value.map((e) => g(e)).join(",")), y = _(() => P(o.dataType || []));
44
+ L(
45
+ () => o.modelValue,
46
+ () => {
47
+ x();
48
+ },
49
+ {
50
+ immediate: !0
51
+ }
52
+ );
53
+ function C(e = []) {
54
+ return y.value == "string" ? e.map((t) => q(t)) : y.value == "number" ? e.map((t) => {
55
+ let n = Number(t);
56
+ return isNaN(n) && (n = 0), n;
57
+ }) : e;
58
+ }
59
+ function S(e) {
60
+ return new Function("", `{ return ${e}}`);
61
+ }
62
+ function x() {
63
+ l.value = [];
64
+ let e = o.modelValue, t = [];
65
+ const n = S(e);
66
+ if (n instanceof Array && (t = n), o.list)
67
+ for (let a = 0; a < o.list.length; a++) {
68
+ const v = o.list[a];
69
+ t.includes(u(v)) && l.value.push(v);
70
+ }
71
+ h();
72
+ }
73
+ function g(e) {
74
+ let t = o.config?.label;
75
+ return t && typeof e == "object" && e ? e[t] : e;
76
+ }
77
+ function u(e) {
78
+ let t = o.config?.prop;
79
+ return t && typeof e == "object" && e ? e[t] : e;
80
+ }
81
+ function A(e) {
82
+ return l.value.map((t) => u(t)).includes(u(e));
83
+ }
84
+ function B() {
85
+ o.disabled || (m.value = !0);
86
+ }
87
+ function M() {
88
+ d.value || (m.value = !1);
89
+ }
90
+ function N() {
91
+ d.value = !0;
92
+ }
93
+ function T() {
94
+ d.value = !1;
95
+ }
96
+ function j(e) {
97
+ f.value && f.value.focus(), l.value = J(l.value, e, o.config.prop), h();
98
+ }
99
+ function h() {
100
+ let e = C(
101
+ l.value.map((t) => u(t))
102
+ );
103
+ V("value", e, JSON.stringify(e));
104
+ }
105
+ return (e, t) => (i(), r("div", G, [
106
+ p("input", {
107
+ value: w.value,
108
+ readonly: "",
109
+ placeholder: "请选择",
110
+ type: "text",
111
+ disabled: o.disabled,
112
+ ref_key: "refInput",
113
+ ref: f,
114
+ onClick: s(B, ["stop"]),
115
+ onBlur: s(M, ["stop"])
116
+ }, null, 40, H),
117
+ p("div", {
118
+ onMousemove: s(N, ["stop"]),
119
+ onMouseout: s(T, ["stop"]),
120
+ class: "form-select-box"
121
+ }, [
122
+ z(p("div", K, [
123
+ o.list && o.list.length > 0 ? (i(), r("div", Q, [
124
+ (i(!0), r(E, null, F(o.list, (n, a) => (i(), r("div", {
125
+ class: I(["form-select-list-li", {
126
+ active: A(n)
127
+ }]),
128
+ onClick: s((v) => j(n), ["stop"])
129
+ }, [
130
+ p("span", null, O(g(n)), 1)
131
+ ], 10, R))), 256))
132
+ ])) : (i(), r("div", U, "暂无数据"))
133
+ ], 512), [
134
+ [$, m.value]
135
+ ])
136
+ ], 32)
137
+ ]));
138
+ }
139
+ });
140
+ export {
141
+ ae as default
142
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");;/* empty css */module.exports=e;
@@ -0,0 +1,5 @@
1
+ import o from "./index.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),d=require("../../../../utils/annotat.cjs"),g=require("../index.vue.cjs");;/* empty css */const y={class:"expose"},h={class:"expose-label"},x={class:"expose-return"},S=e.defineComponent({__name:"index",props:{getRef:{type:Function},name:String,value:{type:Object}},emits:["change"],setup(p,{emit:m}){const s=p,v=m,c=e.ref(""),o=e.ref(""),i=e.ref([]),f=e.computed(()=>{i.value=[];const n=s.value;if(n&&n.name){let l=(n.selectable+"").trim();if(c.value=n.name+": "+n.description+" 入参=("+l+") 返回值: "+n.type,l){let a=d.parseParamString(l);return a.forEach(t=>{t.prop=t.name,i.value.push(t.name)}),a}}return[]});function _(n,l){let a=s.getRef?s.getRef():void 0,t=s.value?.name;if(t){let u=i.value.map(r=>n[r]);if(a&&a[t]){if(typeof a[t]=="function"){let r=a[t](...u);o.value=JSON.stringify(r)}else{let r=a[t];r instanceof HTMLDivElement?o.value=r.outerHTML:o.value=JSON.stringify(r)}v("change",t,u,typeof a[t],l)}}else console.log("请选择方法")}return(n,l)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",h,e.toDisplayString(c.value||"请选择方法"),1),e.createVNode(g,{list:f.value,name:s.name,queryName:"调用",onQuery:_},null,8,["list","name"]),e.createElementVNode("div",x,e.toDisplayString(s.value?.type)+"返回值:"+e.toDisplayString(o.value),1)]))}});module.exports=S;
@@ -0,0 +1,63 @@
1
+ import { defineComponent as y, ref as i, computed as h, openBlock as x, createElementBlock as b, createElementVNode as p, toDisplayString as c, createVNode as N } from "vue";
2
+ import { parseParamString as S } from "../../../../utils/annotat.js";
3
+ import E from "../index.vue.js";
4
+ /* empty css */
5
+ const O = { class: "expose" }, R = { class: "expose-label" }, j = { class: "expose-return" }, J = /* @__PURE__ */ y({
6
+ __name: "index",
7
+ props: {
8
+ getRef: {
9
+ type: Function
10
+ },
11
+ name: String,
12
+ value: {
13
+ type: Object
14
+ }
15
+ },
16
+ emits: ["change"],
17
+ setup(f, { emit: v }) {
18
+ const o = f, d = v, m = i(""), r = i(""), s = i([]), _ = h(() => {
19
+ s.value = [];
20
+ const t = o.value;
21
+ if (t && t.name) {
22
+ let l = (t.selectable + "").trim();
23
+ if (m.value = t.name + ": " + t.description + " 入参=(" + l + ") 返回值: " + t.type, l) {
24
+ let n = S(l);
25
+ return n.forEach((e) => {
26
+ e.prop = e.name, s.value.push(e.name);
27
+ }), n;
28
+ }
29
+ }
30
+ return [];
31
+ });
32
+ function g(t, l) {
33
+ let n = o.getRef ? o.getRef() : void 0, e = o.value?.name;
34
+ if (e) {
35
+ let u = s.value.map((a) => t[a]);
36
+ if (n && n[e]) {
37
+ if (typeof n[e] == "function") {
38
+ let a = n[e](...u);
39
+ r.value = JSON.stringify(a);
40
+ } else {
41
+ let a = n[e];
42
+ a instanceof HTMLDivElement ? r.value = a.outerHTML : r.value = JSON.stringify(a);
43
+ }
44
+ d("change", e, u, typeof n[e], l);
45
+ }
46
+ } else
47
+ console.log("请选择方法");
48
+ }
49
+ return (t, l) => (x(), b("div", O, [
50
+ p("div", R, c(m.value || "请选择方法"), 1),
51
+ N(E, {
52
+ list: _.value,
53
+ name: o.name,
54
+ queryName: "调用",
55
+ onQuery: g
56
+ }, null, 8, ["list", "name"]),
57
+ p("div", j, c(o.value?.type) + "返回值:" + c(r.value), 1)
58
+ ]));
59
+ }
60
+ });
61
+ export {
62
+ J as default
63
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index.vue.cjs");;/* empty css */module.exports=e;
@@ -0,0 +1,5 @@
1
+ import o from "./index.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("vue"),p=require("../function/index.vue.cjs"),f=require("../object/index.vue.cjs"),g=require("../array/index.vue.cjs"),_=require("../select/index.vue.cjs");;/* empty css */const y=require("../choice/index.vue.cjs");;/* empty css */const m=require("../boolean/index.vue.cjs");;/* empty css */const b=require("../string/index.vue.cjs");;/* empty css */const k=require("../number/index.vue.cjs");;/* empty css */const V=require("../other/index.vue.cjs"),T=o.defineComponent({__name:"index",props:{selects:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}},modelValue:{type:null}},emits:["change"],setup(d,{emit:s}){const e=d,t=o.ref(!1),u=s;function c(l,...a){return l?typeof l.select=="string"?e.selects[l.select]:typeof l.select=="function"?l.select(l,...a):l.select:[]}function i(l,a){const r=e.config?.prop;u("change",r,l,a)}function n(l){t.value=l}return(l,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["form-item",{error:t.value}])},[e.config?.type=="select"?(o.openBlock(),o.createBlock(_,{key:0,modelValue:e.modelValue,class:"form-inp",disabled:e.config?.disabled,dataType:e.config.dataType,list:c(e.config),config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","disabled","dataType","list","config"])):e.config?.type=="choice"?(o.openBlock(),o.createBlock(y,{key:1,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,list:c(e.config),config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","list","config"])):e.config?.type=="boolean"?(o.openBlock(),o.createBlock(m,{key:2,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","config"])):e.config?.type=="string"?(o.openBlock(),o.createBlock(b,{key:3,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","config"])):e.config?.type=="number"?(o.openBlock(),o.createBlock(k,{key:4,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","config"])):e.config?.type=="object"?(o.openBlock(),o.createBlock(f,{key:5,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","config"])):e.config?.type=="array"?(o.openBlock(),o.createBlock(g,{key:6,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","disabled","config"])):e.config?.type=="function"?(o.openBlock(),o.createBlock(p,{key:7,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,list:c(e.config),disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","list","disabled","config"])):(o.openBlock(),o.createBlock(V,{key:8,modelValue:e.modelValue,class:"form-inp",dataType:e.config.dataType,list:c(e.config),disabled:e.config?.disabled,config:e.config?.config,onError:n,onValue:i},null,8,["modelValue","dataType","list","disabled","config"]))],2))}});module.exports=T;