@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.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/common.cjs +1 -0
- package/dist/_virtual/common.js +7 -0
- package/dist/_virtual/core.cjs +1 -0
- package/dist/_virtual/core.js +7 -0
- package/dist/index.css +1 -2
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -0
- package/dist/packages/components/aside/index.vue.js +98 -0
- package/dist/packages/components/aside/index.vue2.cjs +1 -0
- package/dist/packages/components/aside/index.vue2.js +4 -0
- package/dist/packages/components/boxurl/index.vue.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue.js +62 -0
- package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue2.js +4 -0
- package/dist/packages/components/choice/choice.vue.cjs +1 -0
- package/dist/packages/components/choice/choice.vue.js +46 -0
- package/dist/packages/components/choice/choice.vue2.cjs +1 -0
- package/dist/packages/components/choice/choice.vue2.js +4 -0
- package/dist/packages/components/choice/index.vue.cjs +1 -0
- package/dist/packages/components/choice/index.vue.js +87 -0
- package/dist/packages/components/choice/index.vue2.cjs +1 -0
- package/dist/packages/components/choice/index.vue2.js +4 -0
- package/dist/packages/components/code/highlight.vue.cjs +1 -0
- package/dist/packages/components/code/highlight.vue.js +16 -0
- package/dist/packages/components/code/highlight.vue2.cjs +1 -0
- package/dist/packages/components/code/highlight.vue2.js +20 -0
- package/dist/packages/components/code/index.vue.cjs +1 -0
- package/dist/packages/components/code/index.vue.js +115 -0
- package/dist/packages/components/code/index.vue2.cjs +1 -0
- package/dist/packages/components/code/index.vue2.js +4 -0
- package/dist/packages/components/compo/code.vue.cjs +1 -0
- package/dist/packages/components/compo/code.vue.js +21 -0
- package/dist/packages/components/compo/code.vue3.cjs +1 -0
- package/dist/packages/components/compo/code.vue3.js +5 -0
- package/dist/packages/components/compo/ftable.vue.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue.js +57 -0
- package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue2.js +4 -0
- package/dist/packages/components/compo/index.cjs +1 -0
- package/dist/packages/components/compo/index.js +127 -0
- package/dist/packages/components/compo/index.vue.cjs +1 -0
- package/dist/packages/components/compo/index.vue.js +79 -0
- package/dist/packages/components/compo/index.vue2.cjs +1 -0
- package/dist/packages/components/compo/index.vue2.js +4 -0
- package/dist/packages/components/compo/info-top.vue.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue.js +32 -0
- package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue2.js +4 -0
- package/dist/packages/components/compo/info.vue.cjs +1 -0
- package/dist/packages/components/compo/info.vue.js +41 -0
- package/dist/packages/components/compo/info.vue2.cjs +1 -0
- package/dist/packages/components/compo/info.vue2.js +4 -0
- package/dist/packages/components/compo/props.vue.cjs +1 -0
- package/dist/packages/components/compo/props.vue.js +87 -0
- package/dist/packages/components/compo/props.vue2.cjs +1 -0
- package/dist/packages/components/compo/props.vue2.js +4 -0
- package/dist/packages/components/compo/top.cjs +1 -0
- package/dist/packages/components/compo/top.js +148 -0
- package/dist/packages/components/header/index.vue.cjs +1 -0
- package/dist/packages/components/header/index.vue.js +10 -0
- package/dist/packages/components/main/index.vue.cjs +1 -0
- package/dist/packages/components/main/index.vue.js +68 -0
- package/dist/packages/components/main/index.vue2.cjs +1 -0
- package/dist/packages/components/main/index.vue2.js +4 -0
- package/dist/packages/components/md/index.vue.cjs +1 -0
- package/dist/packages/components/md/index.vue.js +56 -0
- package/dist/packages/components/md/index.vue2.cjs +1 -0
- package/dist/packages/components/md/index.vue2.js +4 -0
- package/dist/packages/components/test/index.cjs +1 -0
- package/dist/packages/components/test/index.js +105 -0
- package/dist/packages/components/test/index.vue.cjs +1 -0
- package/dist/packages/components/test/index.vue.js +75 -0
- package/dist/packages/components/test/index.vue2.cjs +1 -0
- package/dist/packages/components/test/index.vue2.js +4 -0
- package/dist/packages/components/test/top.cjs +1 -0
- package/dist/packages/components/test/top.js +148 -0
- package/dist/packages/components/use/code.cjs +20 -0
- package/dist/packages/components/use/code.js +212 -0
- package/dist/packages/components/use/code.vue.cjs +1 -0
- package/dist/packages/components/use/code.vue.js +66 -0
- package/dist/packages/components/use/code.vue2.cjs +1 -0
- package/dist/packages/components/use/code.vue2.js +4 -0
- package/dist/packages/components/use/edit.cjs +18 -0
- package/dist/packages/components/use/edit.js +214 -0
- package/dist/packages/components/use/effect.vue.cjs +1 -0
- package/dist/packages/components/use/effect.vue.js +12 -0
- package/dist/packages/components/use/index.cjs +1 -0
- package/dist/packages/components/use/index.js +196 -0
- package/dist/packages/components/use/prettier.cjs +1 -0
- package/dist/packages/components/use/prettier.js +40 -0
- package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
- package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
- package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue.js +103 -0
- package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
- package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
- package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
- package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
- package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
- package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
- package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
- package/dist/packages/components/use/set-code.vue.cjs +1 -0
- package/dist/packages/components/use/set-code.vue.js +63 -0
- package/dist/packages/components/use/set-code.vue2.cjs +1 -0
- package/dist/packages/components/use/set-code.vue2.js +4 -0
- package/dist/packages/components/use/set-emit.vue.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue.js +50 -0
- package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue3.js +5 -0
- package/dist/packages/components/use/set-expose.vue.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue.js +66 -0
- package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue3.js +5 -0
- package/dist/packages/components/use/set-props.vue.cjs +1 -0
- package/dist/packages/components/use/set-props.vue.js +71 -0
- package/dist/packages/components/use/set-props.vue2.cjs +1 -0
- package/dist/packages/components/use/set-props.vue2.js +4 -0
- package/dist/packages/components/use/set-slot.vue.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue.js +45 -0
- package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue2.js +4 -0
- package/dist/packages/components/use/util.cjs +3 -0
- package/dist/packages/components/use/util.js +294 -0
- package/dist/packages/config.cjs +1 -0
- package/dist/packages/config.js +14 -0
- package/dist/packages/directives/adjust/index.cjs +1 -0
- package/dist/packages/directives/adjust/index.js +246 -0
- package/dist/packages/index/index.vue.cjs +1 -0
- package/dist/packages/index/index.vue.js +4 -0
- package/dist/packages/index/index.vue2.cjs +1 -0
- package/dist/packages/index/index.vue2.js +14 -0
- package/dist/packages/index.cjs +1 -0
- package/dist/packages/index.d.ts +1 -0
- package/dist/packages/index.js +20 -0
- package/dist/packages/page/compon/index.vue.cjs +1 -0
- package/dist/packages/page/compon/index.vue.js +4 -0
- package/dist/packages/page/compon/index.vue2.cjs +1 -0
- package/dist/packages/page/compon/index.vue2.js +21 -0
- package/dist/packages/page/comprops/index.vue.cjs +1 -0
- package/dist/packages/page/comprops/index.vue.js +4 -0
- package/dist/packages/page/comprops/index.vue2.cjs +1 -0
- package/dist/packages/page/comprops/index.vue2.js +91 -0
- package/dist/packages/page/develop/index.vue.cjs +1 -0
- package/dist/packages/page/develop/index.vue.js +4 -0
- package/dist/packages/page/develop/index.vue2.cjs +1 -0
- package/dist/packages/page/develop/index.vue2.js +26 -0
- package/dist/packages/page/edit/index.vue.cjs +1 -0
- package/dist/packages/page/edit/index.vue.js +4 -0
- package/dist/packages/page/edit/index.vue2.cjs +1 -0
- package/dist/packages/page/edit/index.vue2.js +27 -0
- package/dist/packages/page/index/index.vue.cjs +1 -0
- package/dist/packages/page/index/index.vue.js +4 -0
- package/dist/packages/page/index/index.vue2.cjs +1 -0
- package/dist/packages/page/index/index.vue2.js +61 -0
- package/dist/packages/page/single/index.vue.cjs +1 -0
- package/dist/packages/page/single/index.vue.js +4 -0
- package/dist/packages/page/single/index.vue2.cjs +1 -0
- package/dist/packages/page/single/index.vue2.js +60 -0
- package/dist/packages/page/tests/index.vue.cjs +1 -0
- package/dist/packages/page/tests/index.vue.js +4 -0
- package/dist/packages/page/tests/index.vue2.cjs +1 -0
- package/dist/packages/page/tests/index.vue2.js +67 -0
- package/dist/packages/router/file.cjs +1 -0
- package/dist/packages/router/file.js +44 -0
- package/dist/packages/router/index.cjs +1 -0
- package/dist/packages/router/index.js +122 -0
- package/dist/packages/utils/annotat.cjs +1 -0
- package/dist/packages/utils/annotat.js +322 -0
- package/dist/packages/utils/common.cjs +1 -0
- package/dist/packages/utils/common.js +200 -0
- package/dist/packages/utils/glob.cjs +5 -0
- package/dist/packages/utils/glob.js +502 -0
- package/dist/packages/utils/index.cjs +1 -0
- package/dist/packages/utils/index.js +14 -0
- package/dist/packages/utils/props.cjs +1 -0
- package/dist/packages/utils/props.js +110 -0
- package/dist/packages/utils/storage.cjs +1 -0
- package/dist/packages/utils/storage.js +34 -0
- package/dist/packages/utils/util.cjs +1 -0
- package/dist/packages/utils/util.js +46 -0
- package/package.json +5 -5
- package/dist/config.cjs +0 -1
- package/dist/config.js +0 -11
- package/dist/index/index.cjs +0 -1
- package/dist/index/index.js +0 -5
- package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
- package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -15
- package/dist/router/file.cjs +0 -1
- package/dist/router/file.js +0 -32
- package/dist/router/index.cjs +0 -1
- package/dist/router/index.js +0 -45
- package/dist/utils/storage.cjs +0 -1
- package/dist/utils/storage.js +0 -23
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../config.cjs"),z=require("@fangzhongya/utils/html/getVueText"),p=require("./common.cjs"),F=require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const T=require("@fangzhongya/utils/name/humpToLine"),v=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const A=require("@fangzhongya/utils/basic/string/firstLower"),D=require("@fangzhongya/utils/basic/array/duplicateRemoval"),W=require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const h=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const J=require("./index.cjs"),w={},R={},M=[],$={},j={},m={};function Q(){return S.getConfig("example")}function X(t,e,n,r){const a=F.mergeObject(e,n||{},3,!0);a.exampless=a.exampless||[],a.examplessRaw=a.examplessRaw||[];const s=[],i=a.examples;i&&Object.keys(i).forEach(o=>{s.push(o),j[o]=i[o]});const l=a.examplesRaw,u=[];if(a.urls&&a.urls.length>0?(a.exampless=a.urls,a.urls.forEach(o=>{u.push(o),l&&(m[o]=N(l,o))})):(a.exampless=s,l&&Object.keys(l).forEach(o=>{u.push(o),m[o]=N(l,o)})),a.examples=void 0,e.tests&&r){const o=e.testsNanme||"/tests/";typeof o=="string"?Object.keys(r).forEach(f=>{f.includes(o)&&(a.exampless.push(f),u.push(f),m[f]=N(r,f))}):Object.keys(r).forEach(f=>{o.test(f)&&(a.exampless.push(f),u.push(f),m[f]=N(r,f))})}a.exampless=[...new Set(a.exampless)],a.examplessRaw=[...new Set(u)],a.examplesRaw=void 0,$[t]=a}function N(t,e){return typeof t=="function"?t:t&&(t[e]||t)}const q={};function Y(t){const e=S.getConfig("resolve");if(q[t])return q[t];for(let n of e)if(t.startsWith(n.find+"/")){const a=n.replacement.replaceAll("\\","/")+t.replace(n.find+"/","/");return q[t]=a,a}}async function Z(t,e){let n="";if(e=="vue"?n=z.getVueText(t).script:(e=="js"||e=="ts"||e=="")&&(n=t),n){const r=await J.getTextImport(n),a=[];return r&&r.length>0&&r.forEach(s=>{if(s)if(s.startsWith("./")||s.startsWith("../"))a.push(s);else{const i=Y(s);i&&a.push(i)}}),a}}function _(t){return new Promise(e=>{t?t.raw?e(t.raw):t.getRaw?t.getRaw(t).then(n=>{const r=C(n);t.raw=r,t.getRaw=null,e(r)}):e(""):e("")})}function K(t,e){t=(t||"")+"";let n="";switch(t){case"1":n=e.tdir+"/";break;case"2":n=e.adir+"/";break;case"3":n=e.tdir+"/"+e.adir+"/";break}return n}function y(t,e,n){t=(t||"")+"",n=(n||"")+"";let r=T.humpToLine(e.name),a=[];t==="1"?e.alias&&a.push(e.alias+"-"+r):t==="3"?e.alias&&e.alias+"":t==="4"?e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))}):t=="9"&&(a.push(r),e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))})),a.length==0&&a.push(r);let s=[];return n==="1"?a.forEach(i=>{let l=v.lineToLargeHump(i);s.push(l,A.firstLower(l))}):n==="2"?a.forEach(i=>{let l=v.lineToLargeHump(i);s.push(i,l,A.firstLower(l))}):s=[...a],s=[...new Set(s)],s}function k(t,e,n,r){const a=[];return n.examplessRaw.forEach(s=>{for(let i=0;i<e.length;i++){const l=e[i];if(s==t+l+n.md+".md"){a.push({cwd:n.cwd||r.cwd,topurl:t,comkey:r.key,suffix:h.getSuffix(s),name:r.name,value:l,key:s,raw:"",getRaw:p.getRawValue(m,s)});break}}}),a}function P(t){O();const e=w[t];if(e.tests&&Object.keys(e.tests).length>0)return e.tests;{const n=$[e.dir],r=n.dir+K(n.level||0,e),a=y(n.aliaslevel||0,e,n.componentName||0);e.mds=k(r,a,n,e);const s={};return n.exampless.forEach(i=>{for(let l=0;l<a.length;l++){const u=a[l];if(i.startsWith(r+u+"/")){const o=new RegExp("/([^/]+)/index\\."+p.defaultExtensions.join("|")+"$"),f=new RegExp("/([^/]+)\\."+p.defaultExtensions.join("|")+"$");let c=i.match(o)||i.match(f);if(c&&c.length>0){let g="";c&&c.length>1&&(g=c[1]),s[i]={topurl:r,name:u,value:g,suffix:h.getSuffix(i),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:i,dir:e.dir,url:i,component:j[i],raw:"",getRaw:p.getRawValue(m,i)};break}}}}),n.tests&&ee(s,e,n),e.tests=s,s}}function ee(t,e,n){const r=e.url.substring(0,e.url.lastIndexOf("/"+e.value+"/"))+"/"+e.value,a=n.testsNanme||"/tests/";typeof a=="string"?n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:h.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:p.getRawValue(m,s)});else if(s.startsWith(r+a)){const i=new RegExp("/([^/]+)/index\\."+p.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+p.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u[1]){let o="";u&&u.length>1&&(o=u[1]),t[s]={topurl:r,name:e.value,value:o,suffix:h.getSuffix(s),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:p.getRawValue(m,s)}}}}}):n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:h.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:p.getRawValue(m,s)});else if(a.test(s)){const i=new RegExp("/([^/]+)/index\\."+p.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+p.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u.length>0){let o="";u&&u.length>1&&(o=u[1]),t[s]={cwd:n.cwd||e.cwd,topurl:r,name:e.value,value:o,suffix:h.getSuffix(s),comname:e.name,comkey:e.key,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:p.getRawValue(m,s)}}}}})}function te(t){if(t){const e=P(t);return Object.values(e)}else return[]}function se(t,e,n){O();const r=P(n),a=[];if(e){let s=r[e];if(s)return a.push(s),a}return Object.values(r).forEach(s=>{s.name+"/"+s.value==t&&a.push(s)}),a}function ne(t){return P(t),w[t].mds}async function U(t,e,n){let r=t.key,a=t.dir,s=t.url,i=t.comprops,l=t.curprops,u=await Z(e,n||t.suffix)||[],o=s.split("/");return u.map(f=>{if(f.startsWith("./")){let c=o.slice(0,o.length-1).join("/"),g=f.substring(2);const d=c.replace(/^\.\/|((\.\.\/)+)/,"/");let x=r.indexOf(d)+d.length;return{key:r.substring(0,x)+"/"+g,name:f,cwd:t.cwd,comprops:i,curprops:l,value:g,suffix:h.getSuffix(f),head:c,dir:a,url:c+"/"+g}}else if(f.startsWith("../")){let c=f.split("/"),g=0;for(let L=0;L<c.length;L++)if(c[L]!=".."){g=L;break}let d=c.slice(g,c.length),x=o.slice(0,o.length-g-1).join("/"),E=d.join("/");const b=x.replace(/^\.\/|((\.\.\/)+)/,"/");let G=r.indexOf(b)+b.length;return{key:r.substring(0,G)+"/"+E,name:E,cwd:t.cwd,comprops:i,curprops:l,value:E,suffix:h.getSuffix(f),head:x,dir:a,url:x+"/"+E}}else{const c=a.replace(/^\.\/|((\.\.\/)+)/,"/");let g=f.indexOf(c)+c.length,d=f.substring(g),x=a.substring(0,a.length-1);return{key:f,name:d,comprops:i,curprops:l,value:d,suffix:h.getSuffix(f),head:x,dir:a,cwd:t.cwd,url:x+"/"+d}}})}function re(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>({...r,raw:"",suffix:h.getSuffix(r.key),getRaw:p.getRawValue(m,r.key)}));W.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(l=>{const u=C(l);s.raw=u,s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}function ae(){const t=Q();S.getConfig("components")?.forEach(n=>{const r=oe(n);let a=n.dir||"";X(a,t,n.example,r)})}const I="default";function ie(t){let e=T.humpToLine(t.name),n=[...t.aliasNames];n.push(e),n.forEach(r=>{M.push({name:r,value:t.key})})}function le(t,e){e?.forEach(n=>{w[n.key]=n,ie(n)})}function oe(t){let e,n;const r=t.resolver;r&&Object.keys(r).forEach(s=>{typeof t[s]>"u"&&(t[s]=r[s])}),e=t.alias||I;let a=t?.urls||Object.keys(t.componentsRaw);return n=p.getComponentsArr(a,t,t.componentsRaw,t.components),n&&n?.props&&n.props.forEach(s=>{R[s.url]=s}),le(e,n.components),t.componentsRaw}function ue(t){return O(),w[t]}function O(){return Object.keys(w).length==0&&ae(),Object.values(w)}function fe(){return O(),R}function ce(t,e,n){O();const r=[];if(n){let s=w[n];if(s&&s.key)return[s]}let a=T.humpToLine(t);return M.forEach(s=>{e?s.name.includes(a)&&r.push(w[s.value]):s.name==a&&r.push(w[s.value])}),D.duplicateRemoval(r,"key")}function pe(t){const e=t.url,n=t.key;return R[e]||R[e+".js"]||R[e+".ts"]||R[n]||R[n+".js"]||R[n+".ts"]}function H(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>pe(r)).filter(r=>!!r);W.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(async l=>{const u=C(l);s.raw=await B(u,t[i]),s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}const V=`
|
|
2
|
+
fangzhongya@vue-archive@glob@vue-archive@fangzhongya
|
|
3
|
+
`;function ge(t){const e=t.split(V);return[...new Set(e)].join(`
|
|
4
|
+
`)}async function me(t){return((await H(t))?.map(r=>r.raw)||[]).filter(r=>!!r).join(V)}async function B(t,e){if(t){if(t=`/**${e.url}**/
|
|
5
|
+
`+t,e.comprops||e.curprops){let n=(await U(e,t)).filter(r=>p.isComprops(r.key,e.comprops)||p.isCurprops(r.key,e.curprops));return t+V+await me(n)}return t}return""}function C(t){return t&&typeof t=="object"?t.default||"":(t||"")+""}function he(t){return new Promise(e=>{if(t){O();const n=w[t];n?n.raw?e(n.raw):n.getRaw?n.getRaw(n).then(r=>{const a=C(r);B(a,n).then(s=>{const i=ge(s);n.raw=i,n.getRaw=null,e(i)})}):e(""):e("")}else e("")})}exports.defaultName=I;exports.getCompoName=ce;exports.getCompoNameKey=ue;exports.getCompoNameObj=O;exports.getComponentPropsObjs=fe;exports.getGetRawValue=C;exports.getKeyMds=ne;exports.getLevelUrl=K;exports.getLocalTextArr=re;exports.getLocalTextComponents=he;exports.getLocalTextTests=_;exports.getPropsRaws=H;exports.getTestImportUrl=U;exports.getTestName=te;exports.getTestNameObj=se;
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
import { getConfig as v } from "../config.js";
|
|
2
|
+
import { getVueText as B } from "@fangzhongya/utils/html/getVueText";
|
|
3
|
+
import { getRawValue as R, isComprops as z, isCurprops as F, getComponentsArr as G, defaultExtensions as E } from "./common.js";
|
|
4
|
+
import { mergeObject as H } from "@fangzhongya/utils/basic/object/mergeObject";
|
|
5
|
+
import "@fangzhongya/utils/basic/array/toggleArray";
|
|
6
|
+
import { humpToLine as N } from "@fangzhongya/utils/name/humpToLine";
|
|
7
|
+
import { lineToLargeHump as S } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
8
|
+
import "@fangzhongya/utils/basic/string/appearNum";
|
|
9
|
+
import { firstLower as V } from "@fangzhongya/utils/basic/string/firstLower";
|
|
10
|
+
import { duplicateRemoval as D } from "@fangzhongya/utils/basic/array/duplicateRemoval";
|
|
11
|
+
import { asyncMergeArray as I } from "@fangzhongya/utils/basic/array/asyncMergeArray";
|
|
12
|
+
import "@fangzhongya/utils/basic/string/firstUpper";
|
|
13
|
+
import { getSuffix as g } from "@fangzhongya/utils/urls/getSuffix";
|
|
14
|
+
import "@fangzhongya/utils/basic/array/replaceAfter";
|
|
15
|
+
import { getTextImport as J } from "./index.js";
|
|
16
|
+
const h = {}, x = {}, K = [], U = {}, b = {}, m = {};
|
|
17
|
+
function Q() {
|
|
18
|
+
return v("example");
|
|
19
|
+
}
|
|
20
|
+
function X(t, e, n, r) {
|
|
21
|
+
const a = H(e, n || {}, 3, !0);
|
|
22
|
+
a.exampless = a.exampless || [], a.examplessRaw = a.examplessRaw || [];
|
|
23
|
+
const s = [], i = a.examples;
|
|
24
|
+
i && Object.keys(i).forEach((o) => {
|
|
25
|
+
s.push(o), b[o] = i[o];
|
|
26
|
+
});
|
|
27
|
+
const l = a.examplesRaw, f = [];
|
|
28
|
+
if (a.urls && a.urls.length > 0 ? (a.exampless = a.urls, a.urls.forEach((o) => {
|
|
29
|
+
f.push(o), l && (m[o] = C(l, o));
|
|
30
|
+
})) : (a.exampless = s, l && Object.keys(l).forEach((o) => {
|
|
31
|
+
f.push(o), m[o] = C(l, o);
|
|
32
|
+
})), a.examples = void 0, e.tests && r) {
|
|
33
|
+
const o = e.testsNanme || "/tests/";
|
|
34
|
+
typeof o == "string" ? Object.keys(r).forEach((c) => {
|
|
35
|
+
c.includes(o) && (a.exampless.push(c), f.push(c), m[c] = C(r, c));
|
|
36
|
+
}) : Object.keys(r).forEach((c) => {
|
|
37
|
+
o.test(c) && (a.exampless.push(c), f.push(c), m[c] = C(r, c));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
a.exampless = [...new Set(a.exampless)], a.examplessRaw = [...new Set(f)], a.examplesRaw = void 0, U[t] = a;
|
|
41
|
+
}
|
|
42
|
+
function C(t, e) {
|
|
43
|
+
return typeof t == "function" ? t : t && (t[e] || t);
|
|
44
|
+
}
|
|
45
|
+
const L = {};
|
|
46
|
+
function Y(t) {
|
|
47
|
+
const e = v("resolve");
|
|
48
|
+
if (L[t])
|
|
49
|
+
return L[t];
|
|
50
|
+
for (let n of e)
|
|
51
|
+
if (t.startsWith(n.find + "/")) {
|
|
52
|
+
const a = n.replacement.replaceAll("\\", "/") + t.replace(n.find + "/", "/");
|
|
53
|
+
return L[t] = a, a;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function Z(t, e) {
|
|
57
|
+
let n = "";
|
|
58
|
+
if (e == "vue" ? n = B(t).script : (e == "js" || e == "ts" || e == "") && (n = t), n) {
|
|
59
|
+
const r = await J(n), a = [];
|
|
60
|
+
return r && r.length > 0 && r.forEach((s) => {
|
|
61
|
+
if (s)
|
|
62
|
+
if (s.startsWith("./") || s.startsWith("../"))
|
|
63
|
+
a.push(s);
|
|
64
|
+
else {
|
|
65
|
+
const i = Y(s);
|
|
66
|
+
i && a.push(i);
|
|
67
|
+
}
|
|
68
|
+
}), a;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function Le(t) {
|
|
72
|
+
return new Promise((e) => {
|
|
73
|
+
t ? t.raw ? e(t.raw) : t.getRaw ? t.getRaw(t).then((n) => {
|
|
74
|
+
const r = P(n);
|
|
75
|
+
t.raw = r, t.getRaw = null, e(r);
|
|
76
|
+
}) : e("") : e("");
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function _(t, e) {
|
|
80
|
+
t = (t || "") + "";
|
|
81
|
+
let n = "";
|
|
82
|
+
switch (t) {
|
|
83
|
+
case "1":
|
|
84
|
+
n = e.tdir + "/";
|
|
85
|
+
break;
|
|
86
|
+
case "2":
|
|
87
|
+
n = e.adir + "/";
|
|
88
|
+
break;
|
|
89
|
+
case "3":
|
|
90
|
+
n = e.tdir + "/" + e.adir + "/";
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return n;
|
|
94
|
+
}
|
|
95
|
+
function y(t, e, n) {
|
|
96
|
+
t = (t || "") + "", n = (n || "") + "";
|
|
97
|
+
let r = N(e.name), a = [];
|
|
98
|
+
t === "1" ? e.alias && a.push(e.alias + "-" + r) : t === "3" ? e.alias && e.alias + "" : t === "4" ? e.aliasNames?.forEach((i) => {
|
|
99
|
+
a.push(N(i));
|
|
100
|
+
}) : t == "9" && (a.push(r), e.aliasNames?.forEach((i) => {
|
|
101
|
+
a.push(N(i));
|
|
102
|
+
})), a.length == 0 && a.push(r);
|
|
103
|
+
let s = [];
|
|
104
|
+
return n === "1" ? a.forEach((i) => {
|
|
105
|
+
let l = S(i);
|
|
106
|
+
s.push(l, V(l));
|
|
107
|
+
}) : n === "2" ? a.forEach((i) => {
|
|
108
|
+
let l = S(i);
|
|
109
|
+
s.push(i, l, V(l));
|
|
110
|
+
}) : s = [...a], s = [...new Set(s)], s;
|
|
111
|
+
}
|
|
112
|
+
function k(t, e, n, r) {
|
|
113
|
+
const a = [];
|
|
114
|
+
return n.examplessRaw.forEach((s) => {
|
|
115
|
+
for (let i = 0; i < e.length; i++) {
|
|
116
|
+
const l = e[i];
|
|
117
|
+
if (s == t + l + n.md + ".md") {
|
|
118
|
+
a.push({
|
|
119
|
+
cwd: n.cwd || r.cwd,
|
|
120
|
+
topurl: t,
|
|
121
|
+
comkey: r.key,
|
|
122
|
+
suffix: g(s),
|
|
123
|
+
name: r.name,
|
|
124
|
+
value: l,
|
|
125
|
+
key: s,
|
|
126
|
+
raw: "",
|
|
127
|
+
getRaw: R(m, s)
|
|
128
|
+
});
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}), a;
|
|
133
|
+
}
|
|
134
|
+
function $(t) {
|
|
135
|
+
T();
|
|
136
|
+
const e = h[t];
|
|
137
|
+
if (e.tests && Object.keys(e.tests).length > 0)
|
|
138
|
+
return e.tests;
|
|
139
|
+
{
|
|
140
|
+
const n = U[e.dir], r = n.dir + _(n.level || 0, e), a = y(
|
|
141
|
+
n.aliaslevel || 0,
|
|
142
|
+
e,
|
|
143
|
+
n.componentName || 0
|
|
144
|
+
);
|
|
145
|
+
e.mds = k(r, a, n, e);
|
|
146
|
+
const s = {};
|
|
147
|
+
return n.exampless.forEach((i) => {
|
|
148
|
+
for (let l = 0; l < a.length; l++) {
|
|
149
|
+
const f = a[l];
|
|
150
|
+
if (i.startsWith(r + f + "/")) {
|
|
151
|
+
const o = new RegExp(
|
|
152
|
+
"/([^/]+)/index\\." + E.join("|") + "$"
|
|
153
|
+
), c = new RegExp(
|
|
154
|
+
"/([^/]+)\\." + E.join("|") + "$"
|
|
155
|
+
);
|
|
156
|
+
let u = i.match(o) || i.match(c);
|
|
157
|
+
if (u && u.length > 0) {
|
|
158
|
+
let p = "";
|
|
159
|
+
u && u.length > 1 && (p = u[1]), s[i] = {
|
|
160
|
+
topurl: r,
|
|
161
|
+
name: f,
|
|
162
|
+
value: p,
|
|
163
|
+
suffix: g(i),
|
|
164
|
+
comname: e.name,
|
|
165
|
+
comkey: e.key,
|
|
166
|
+
cwd: n.cwd || e.cwd,
|
|
167
|
+
key: i,
|
|
168
|
+
dir: e.dir,
|
|
169
|
+
url: i,
|
|
170
|
+
component: b[i],
|
|
171
|
+
raw: "",
|
|
172
|
+
getRaw: R(m, i)
|
|
173
|
+
};
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}), n.tests && ee(s, e, n), e.tests = s, s;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function ee(t, e, n) {
|
|
182
|
+
const r = e.url.substring(0, e.url.lastIndexOf("/" + e.value + "/")) + "/" + e.value, a = n.testsNanme || "/tests/";
|
|
183
|
+
typeof a == "string" ? n.examplessRaw.forEach((s) => {
|
|
184
|
+
if (s.startsWith(r + "/")) {
|
|
185
|
+
if (s == r + n.md + ".md")
|
|
186
|
+
e.mds = e.mds || [], e.mds.push({
|
|
187
|
+
cwd: e.cwd,
|
|
188
|
+
topurl: r,
|
|
189
|
+
comkey: e.key,
|
|
190
|
+
suffix: g(s),
|
|
191
|
+
name: e.name,
|
|
192
|
+
value: e.value,
|
|
193
|
+
key: s,
|
|
194
|
+
raw: "",
|
|
195
|
+
getRaw: R(m, s)
|
|
196
|
+
});
|
|
197
|
+
else if (s.startsWith(r + a)) {
|
|
198
|
+
const i = new RegExp(
|
|
199
|
+
"/([^/]+)/index\\." + E.join("|") + "$"
|
|
200
|
+
), l = new RegExp(
|
|
201
|
+
"/([^/]+)\\." + E.join("|") + "$"
|
|
202
|
+
);
|
|
203
|
+
let f = s.match(i) || s.match(l);
|
|
204
|
+
if (f && f[1]) {
|
|
205
|
+
let o = "";
|
|
206
|
+
f && f.length > 1 && (o = f[1]), t[s] = {
|
|
207
|
+
topurl: r,
|
|
208
|
+
name: e.value,
|
|
209
|
+
value: o,
|
|
210
|
+
suffix: g(s),
|
|
211
|
+
comname: e.name,
|
|
212
|
+
comkey: e.key,
|
|
213
|
+
cwd: n.cwd || e.cwd,
|
|
214
|
+
key: s,
|
|
215
|
+
dir: e.dir,
|
|
216
|
+
url: s,
|
|
217
|
+
component: b[s],
|
|
218
|
+
raw: "",
|
|
219
|
+
getRaw: R(m, s)
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}) : n.examplessRaw.forEach((s) => {
|
|
225
|
+
if (s.startsWith(r + "/")) {
|
|
226
|
+
if (s == r + n.md + ".md")
|
|
227
|
+
e.mds = e.mds || [], e.mds.push({
|
|
228
|
+
cwd: e.cwd,
|
|
229
|
+
topurl: r,
|
|
230
|
+
comkey: e.key,
|
|
231
|
+
suffix: g(s),
|
|
232
|
+
name: e.name,
|
|
233
|
+
value: e.value,
|
|
234
|
+
key: s,
|
|
235
|
+
raw: "",
|
|
236
|
+
getRaw: R(m, s)
|
|
237
|
+
});
|
|
238
|
+
else if (a.test(s)) {
|
|
239
|
+
const i = new RegExp(
|
|
240
|
+
"/([^/]+)/index\\." + E.join("|") + "$"
|
|
241
|
+
), l = new RegExp(
|
|
242
|
+
"/([^/]+)\\." + E.join("|") + "$"
|
|
243
|
+
);
|
|
244
|
+
let f = s.match(i) || s.match(l);
|
|
245
|
+
if (f && f.length > 0) {
|
|
246
|
+
let o = "";
|
|
247
|
+
f && f.length > 1 && (o = f[1]), t[s] = {
|
|
248
|
+
cwd: n.cwd || e.cwd,
|
|
249
|
+
topurl: r,
|
|
250
|
+
name: e.value,
|
|
251
|
+
value: o,
|
|
252
|
+
suffix: g(s),
|
|
253
|
+
comname: e.name,
|
|
254
|
+
comkey: e.key,
|
|
255
|
+
key: s,
|
|
256
|
+
dir: e.dir,
|
|
257
|
+
url: s,
|
|
258
|
+
component: b[s],
|
|
259
|
+
raw: "",
|
|
260
|
+
getRaw: R(m, s)
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function ve(t) {
|
|
268
|
+
if (t) {
|
|
269
|
+
const e = $(t);
|
|
270
|
+
return Object.values(e);
|
|
271
|
+
} else
|
|
272
|
+
return [];
|
|
273
|
+
}
|
|
274
|
+
function $e(t, e, n) {
|
|
275
|
+
T();
|
|
276
|
+
const r = $(n), a = [];
|
|
277
|
+
if (e) {
|
|
278
|
+
let s = r[e];
|
|
279
|
+
if (s)
|
|
280
|
+
return a.push(s), a;
|
|
281
|
+
}
|
|
282
|
+
return Object.values(r).forEach((s) => {
|
|
283
|
+
s.name + "/" + s.value == t && a.push(s);
|
|
284
|
+
}), a;
|
|
285
|
+
}
|
|
286
|
+
function Ae(t) {
|
|
287
|
+
return $(t), h[t].mds;
|
|
288
|
+
}
|
|
289
|
+
async function te(t, e, n) {
|
|
290
|
+
let r = t.key, a = t.dir, s = t.url, i = t.comprops, l = t.curprops, f = await Z(e, n || t.suffix) || [], o = s.split("/");
|
|
291
|
+
return f.map((c) => {
|
|
292
|
+
if (c.startsWith("./")) {
|
|
293
|
+
let u = o.slice(0, o.length - 1).join("/"), p = c.substring(2);
|
|
294
|
+
const w = u.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
295
|
+
let d = r.indexOf(w) + w.length;
|
|
296
|
+
return {
|
|
297
|
+
key: r.substring(0, d) + "/" + p,
|
|
298
|
+
name: c,
|
|
299
|
+
cwd: t.cwd,
|
|
300
|
+
comprops: i,
|
|
301
|
+
curprops: l,
|
|
302
|
+
value: p,
|
|
303
|
+
suffix: g(c),
|
|
304
|
+
head: u,
|
|
305
|
+
dir: a,
|
|
306
|
+
url: u + "/" + p
|
|
307
|
+
};
|
|
308
|
+
} else if (c.startsWith("../")) {
|
|
309
|
+
let u = c.split("/"), p = 0;
|
|
310
|
+
for (let j = 0; j < u.length; j++)
|
|
311
|
+
if (u[j] != "..") {
|
|
312
|
+
p = j;
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
let w = u.slice(p, u.length), d = o.slice(0, o.length - p - 1).join("/"), O = w.join("/");
|
|
316
|
+
const W = d.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
317
|
+
let q = r.indexOf(W) + W.length;
|
|
318
|
+
return {
|
|
319
|
+
key: r.substring(0, q) + "/" + O,
|
|
320
|
+
name: O,
|
|
321
|
+
cwd: t.cwd,
|
|
322
|
+
comprops: i,
|
|
323
|
+
curprops: l,
|
|
324
|
+
value: O,
|
|
325
|
+
suffix: g(c),
|
|
326
|
+
head: d,
|
|
327
|
+
dir: a,
|
|
328
|
+
url: d + "/" + O
|
|
329
|
+
};
|
|
330
|
+
} else {
|
|
331
|
+
const u = a.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
332
|
+
let p = c.indexOf(u) + u.length, w = c.substring(p), d = a.substring(0, a.length - 1);
|
|
333
|
+
return {
|
|
334
|
+
key: c,
|
|
335
|
+
name: w,
|
|
336
|
+
comprops: i,
|
|
337
|
+
curprops: l,
|
|
338
|
+
value: w,
|
|
339
|
+
suffix: g(c),
|
|
340
|
+
head: d,
|
|
341
|
+
dir: a,
|
|
342
|
+
cwd: t.cwd,
|
|
343
|
+
url: d + "/" + w
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
function Se(t) {
|
|
349
|
+
return new Promise((e) => {
|
|
350
|
+
if (t && t.length > 0) {
|
|
351
|
+
let n = t.map((r) => ({
|
|
352
|
+
...r,
|
|
353
|
+
raw: "",
|
|
354
|
+
suffix: g(r.key),
|
|
355
|
+
getRaw: R(m, r.key)
|
|
356
|
+
}));
|
|
357
|
+
I(n, (r, a, s, i) => {
|
|
358
|
+
s.raw ? r() : s.getRaw ? s.getRaw(s).then((l) => {
|
|
359
|
+
const f = P(l);
|
|
360
|
+
s.raw = f, s.getRaw = null, r();
|
|
361
|
+
}) : r();
|
|
362
|
+
}).then(() => {
|
|
363
|
+
e(n);
|
|
364
|
+
});
|
|
365
|
+
} else
|
|
366
|
+
e([]);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
function se() {
|
|
370
|
+
const t = Q();
|
|
371
|
+
v("components")?.forEach((n) => {
|
|
372
|
+
const r = ie(n);
|
|
373
|
+
let a = n.dir || "";
|
|
374
|
+
X(a, t, n.example, r);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
const ne = "default";
|
|
378
|
+
function re(t) {
|
|
379
|
+
let e = N(t.name), n = [...t.aliasNames];
|
|
380
|
+
n.push(e), n.forEach((r) => {
|
|
381
|
+
K.push({
|
|
382
|
+
name: r,
|
|
383
|
+
value: t.key
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
function ae(t, e) {
|
|
388
|
+
e?.forEach((n) => {
|
|
389
|
+
h[n.key] = n, re(n);
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
function ie(t) {
|
|
393
|
+
let e, n;
|
|
394
|
+
const r = t.resolver;
|
|
395
|
+
r && Object.keys(r).forEach((s) => {
|
|
396
|
+
typeof t[s] > "u" && (t[s] = r[s]);
|
|
397
|
+
}), e = t.alias || ne;
|
|
398
|
+
let a = t?.urls || Object.keys(t.componentsRaw);
|
|
399
|
+
return n = G(a, t, t.componentsRaw, t.components), n && n?.props && n.props.forEach((s) => {
|
|
400
|
+
x[s.url] = s;
|
|
401
|
+
}), ae(e, n.components), t.componentsRaw;
|
|
402
|
+
}
|
|
403
|
+
function Ve(t) {
|
|
404
|
+
return T(), h[t];
|
|
405
|
+
}
|
|
406
|
+
function T() {
|
|
407
|
+
return Object.keys(h).length == 0 && se(), Object.values(h);
|
|
408
|
+
}
|
|
409
|
+
function Ie() {
|
|
410
|
+
return T(), x;
|
|
411
|
+
}
|
|
412
|
+
function Ke(t, e, n) {
|
|
413
|
+
T();
|
|
414
|
+
const r = [];
|
|
415
|
+
if (n) {
|
|
416
|
+
let s = h[n];
|
|
417
|
+
if (s && s.key)
|
|
418
|
+
return [s];
|
|
419
|
+
}
|
|
420
|
+
let a = N(t);
|
|
421
|
+
return K.forEach((s) => {
|
|
422
|
+
e ? s.name.includes(a) && r.push(h[s.value]) : s.name == a && r.push(h[s.value]);
|
|
423
|
+
}), D(r, "key");
|
|
424
|
+
}
|
|
425
|
+
function le(t) {
|
|
426
|
+
const e = t.url, n = t.key;
|
|
427
|
+
return x[e] || x[e + ".js"] || x[e + ".ts"] || x[n] || x[n + ".js"] || x[n + ".ts"];
|
|
428
|
+
}
|
|
429
|
+
function oe(t) {
|
|
430
|
+
return new Promise((e) => {
|
|
431
|
+
if (t && t.length > 0) {
|
|
432
|
+
let n = t.map((r) => le(r)).filter((r) => !!r);
|
|
433
|
+
I(n, (r, a, s, i) => {
|
|
434
|
+
s.raw ? r() : s.getRaw ? s.getRaw(s).then(async (l) => {
|
|
435
|
+
const f = P(l);
|
|
436
|
+
s.raw = await M(f, t[i]), s.getRaw = null, r();
|
|
437
|
+
}) : r();
|
|
438
|
+
}).then(() => {
|
|
439
|
+
e(n);
|
|
440
|
+
});
|
|
441
|
+
} else
|
|
442
|
+
e([]);
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
const A = `
|
|
446
|
+
fangzhongya@vue-archive@glob@vue-archive@fangzhongya
|
|
447
|
+
`;
|
|
448
|
+
function fe(t) {
|
|
449
|
+
const e = t.split(A);
|
|
450
|
+
return [...new Set(e)].join(`
|
|
451
|
+
`);
|
|
452
|
+
}
|
|
453
|
+
async function ce(t) {
|
|
454
|
+
return ((await oe(t))?.map((r) => r.raw) || []).filter((r) => !!r).join(A);
|
|
455
|
+
}
|
|
456
|
+
async function M(t, e) {
|
|
457
|
+
if (t) {
|
|
458
|
+
if (t = `/**${e.url}**/
|
|
459
|
+
` + t, e.comprops || e.curprops) {
|
|
460
|
+
let n = (await te(e, t)).filter((r) => z(r.key, e.comprops) || F(r.key, e.curprops));
|
|
461
|
+
return t + A + await ce(n);
|
|
462
|
+
}
|
|
463
|
+
return t;
|
|
464
|
+
}
|
|
465
|
+
return "";
|
|
466
|
+
}
|
|
467
|
+
function P(t) {
|
|
468
|
+
return t && typeof t == "object" ? t.default || "" : (t || "") + "";
|
|
469
|
+
}
|
|
470
|
+
function Ue(t) {
|
|
471
|
+
return new Promise((e) => {
|
|
472
|
+
if (t) {
|
|
473
|
+
T();
|
|
474
|
+
const n = h[t];
|
|
475
|
+
n ? n.raw ? e(n.raw) : n.getRaw ? n.getRaw(n).then((r) => {
|
|
476
|
+
const a = P(r);
|
|
477
|
+
M(a, n).then((s) => {
|
|
478
|
+
const i = fe(s);
|
|
479
|
+
n.raw = i, n.getRaw = null, e(i);
|
|
480
|
+
});
|
|
481
|
+
}) : e("") : e("");
|
|
482
|
+
} else
|
|
483
|
+
e("");
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
export {
|
|
487
|
+
ne as defaultName,
|
|
488
|
+
Ke as getCompoName,
|
|
489
|
+
Ve as getCompoNameKey,
|
|
490
|
+
T as getCompoNameObj,
|
|
491
|
+
Ie as getComponentPropsObjs,
|
|
492
|
+
P as getGetRawValue,
|
|
493
|
+
Ae as getKeyMds,
|
|
494
|
+
_ as getLevelUrl,
|
|
495
|
+
Se as getLocalTextArr,
|
|
496
|
+
Ue as getLocalTextComponents,
|
|
497
|
+
Le as getLocalTextTests,
|
|
498
|
+
oe as getPropsRaws,
|
|
499
|
+
te as getTestImportUrl,
|
|
500
|
+
ve as getTestName,
|
|
501
|
+
$e as getTestNameObj
|
|
502
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@fangzhongya/utils/basic/string/getImports");function n(t){return new Promise(async e=>{const o=r.getImports(t);e(o)})}function i(t){navigator.clipboard.writeText(t)}exports.copyCode=i;exports.getTextImport=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getImports as e } from "@fangzhongya/utils/basic/string/getImports";
|
|
2
|
+
function i(t) {
|
|
3
|
+
return new Promise(async (o) => {
|
|
4
|
+
const r = e(t);
|
|
5
|
+
o(r);
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function p(t) {
|
|
9
|
+
navigator.clipboard.writeText(t);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
p as copyCode,
|
|
13
|
+
i as getTextImport
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={name(e){return e.name?e.name.name+e.name.description:e.props?e.props.name:""},description(e){return e.description&&e.description.name?e.description.name+e.description.description:e.descriptions?e.descriptions:e.props?e.props.description:""},type(e){return e.type?e.type.type||e.type.name+e.type.description:e.props?e.props.type:""},selectable(e){return e.selectable?e.selectable.name+e.selectable.description:e.props?e.props.selectable:""},default(e){return e.default?e.default.name+e.default.description:e.props&&e.props.default||""},return(e){if(e.return){let r=e.return.type;return r&&(r=`[${r}]`),r+(e.return.name+e.return.description)}else return e.props?e.props.return:""},required(e){return e.required?e.required.name+e.required.description||"true":e.props?e.props.required:""},model(e){return e.model?e.model.name+e.model.description||"true":""}},i={name(e){return e.name?e.name.name+e.name.description:e.emits?e.emits.name:""},description(e){return e.description&&e.description.name?e.description.name+e.description.description:e.descriptions?e.descriptions:e.emits?e.emits.description:""},selectable(e){return e.selectable?e.selectable.name+e.selectable.description:e.emits?e.emits.selectable:""}},p={name(e){return e.name?e.name.name+e.name.description:e.expose?e.expose.name:""},description(e){return e.description&&e.description.name?e.description.name+e.description.description:e.descriptions?e.descriptions:e.expose?e.expose.description:""},selectable(e){return e.selectable?e.selectable.name+e.selectable.description:e.expose?e.expose.selectable:""},type(e){return e.type?e.type.type||e.type.name+e.type.description:e.expose?e.expose.type:""},return(e){if(e.return){let r=e.return.type;return r&&(r=`[${r}]`),r+(e.return.name+e.return.description)}else return e.expose?e.expose.return:""}},l={name(e){return e.name?e.name.name+e.name.description:e.slot?e.slot.name:""},description(e){return e.description&&e.description.name?e.description.name+e.description.description:e.descriptions?e.descriptions:e.slot?e.slot.description:""},selectable(e){return e.selectable?e.selectable.name+e.selectable.description:e.slot?e.slot.selectable:""}};function u(e){return e.map(r=>{const t={};return Object.keys(s).forEach(n=>{t[n]=s[n](r)}),t})}function c(e){return e.map(r=>{const t={};return Object.keys(i).forEach(n=>{t[n]=i[n](r)}),t})}function a(e){return e.map(r=>{const t={};return Object.keys(p).forEach(n=>{t[n]=p[n](r)}),t})}function d(e){return e.map(r=>{const t={};return Object.keys(l).forEach(n=>{t[n]=l[n](r)}),t})}exports.emits=i;exports.expose=p;exports.getEmitsValue=c;exports.getExposeValue=a;exports.getPropsValue=u;exports.getSlotValue=d;exports.props=s;exports.slot=l;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
name(e) {
|
|
3
|
+
return e.name ? e.name.name + e.name.description : e.props ? e.props.name : "";
|
|
4
|
+
},
|
|
5
|
+
description(e) {
|
|
6
|
+
return e.description && e.description.name ? e.description.name + e.description.description : e.descriptions ? e.descriptions : e.props ? e.props.description : "";
|
|
7
|
+
},
|
|
8
|
+
type(e) {
|
|
9
|
+
return e.type ? e.type.type || e.type.name + e.type.description : e.props ? e.props.type : "";
|
|
10
|
+
},
|
|
11
|
+
selectable(e) {
|
|
12
|
+
return e.selectable ? e.selectable.name + e.selectable.description : e.props ? e.props.selectable : "";
|
|
13
|
+
},
|
|
14
|
+
default(e) {
|
|
15
|
+
return e.default ? e.default.name + e.default.description : e.props && e.props.default || "";
|
|
16
|
+
},
|
|
17
|
+
return(e) {
|
|
18
|
+
if (e.return) {
|
|
19
|
+
let r = e.return.type;
|
|
20
|
+
return r && (r = `[${r}]`), r + (e.return.name + e.return.description);
|
|
21
|
+
} else return e.props ? e.props.return : "";
|
|
22
|
+
},
|
|
23
|
+
required(e) {
|
|
24
|
+
return e.required ? e.required.name + e.required.description || "true" : e.props ? e.props.required : "";
|
|
25
|
+
},
|
|
26
|
+
model(e) {
|
|
27
|
+
return e.model ? e.model.name + e.model.description || "true" : "";
|
|
28
|
+
}
|
|
29
|
+
}, i = {
|
|
30
|
+
name(e) {
|
|
31
|
+
return e.name ? e.name.name + e.name.description : e.emits ? e.emits.name : "";
|
|
32
|
+
},
|
|
33
|
+
description(e) {
|
|
34
|
+
return e.description && e.description.name ? e.description.name + e.description.description : e.descriptions ? e.descriptions : e.emits ? e.emits.description : "";
|
|
35
|
+
},
|
|
36
|
+
selectable(e) {
|
|
37
|
+
return e.selectable ? e.selectable.name + e.selectable.description : e.emits ? e.emits.selectable : "";
|
|
38
|
+
}
|
|
39
|
+
}, p = {
|
|
40
|
+
name(e) {
|
|
41
|
+
return e.name ? e.name.name + e.name.description : e.expose ? e.expose.name : "";
|
|
42
|
+
},
|
|
43
|
+
description(e) {
|
|
44
|
+
return e.description && e.description.name ? e.description.name + e.description.description : e.descriptions ? e.descriptions : e.expose ? e.expose.description : "";
|
|
45
|
+
},
|
|
46
|
+
selectable(e) {
|
|
47
|
+
return e.selectable ? e.selectable.name + e.selectable.description : e.expose ? e.expose.selectable : "";
|
|
48
|
+
},
|
|
49
|
+
type(e) {
|
|
50
|
+
return e.type ? e.type.type || e.type.name + e.type.description : e.expose ? e.expose.type : "";
|
|
51
|
+
},
|
|
52
|
+
return(e) {
|
|
53
|
+
if (e.return) {
|
|
54
|
+
let r = e.return.type;
|
|
55
|
+
return r && (r = `[${r}]`), r + (e.return.name + e.return.description);
|
|
56
|
+
} else return e.expose ? e.expose.return : "";
|
|
57
|
+
}
|
|
58
|
+
}, l = {
|
|
59
|
+
name(e) {
|
|
60
|
+
return e.name ? e.name.name + e.name.description : e.slot ? e.slot.name : "";
|
|
61
|
+
},
|
|
62
|
+
description(e) {
|
|
63
|
+
return e.description && e.description.name ? e.description.name + e.description.description : e.descriptions ? e.descriptions : e.slot ? e.slot.description : "";
|
|
64
|
+
},
|
|
65
|
+
selectable(e) {
|
|
66
|
+
return e.selectable ? e.selectable.name + e.selectable.description : e.slot ? e.slot.selectable : "";
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function u(e) {
|
|
70
|
+
return e.map((r) => {
|
|
71
|
+
const t = {};
|
|
72
|
+
return Object.keys(s).forEach((n) => {
|
|
73
|
+
t[n] = s[n](r);
|
|
74
|
+
}), t;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function c(e) {
|
|
78
|
+
return e.map((r) => {
|
|
79
|
+
const t = {};
|
|
80
|
+
return Object.keys(i).forEach((n) => {
|
|
81
|
+
t[n] = i[n](r);
|
|
82
|
+
}), t;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function a(e) {
|
|
86
|
+
return e.map((r) => {
|
|
87
|
+
const t = {};
|
|
88
|
+
return Object.keys(p).forEach((n) => {
|
|
89
|
+
t[n] = p[n](r);
|
|
90
|
+
}), t;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function d(e) {
|
|
94
|
+
return e.map((r) => {
|
|
95
|
+
const t = {};
|
|
96
|
+
return Object.keys(l).forEach((n) => {
|
|
97
|
+
t[n] = l[n](r);
|
|
98
|
+
}), t;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
i as emits,
|
|
103
|
+
p as expose,
|
|
104
|
+
c as getEmitsValue,
|
|
105
|
+
a as getExposeValue,
|
|
106
|
+
u as getPropsValue,
|
|
107
|
+
d as getSlotValue,
|
|
108
|
+
s as props,
|
|
109
|
+
l as slot
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r="__document";function i(e,n){return n?e:r+"."+e}function c(e,n="",o={},s=!1){try{n||(n=""),sessionStorage.setItem(i(e,s),JSON.stringify(n))}catch(t){console.log("存储数据失败,key为:"+e+"错误信息:"+t)}}function g(e,n={},o=!1){let s="";try{let t=sessionStorage.getItem(i(e,o));t&&t!=="null"&&t!=="undefined"&&(s=JSON.parse(t))}catch(t){console.log("獲取数据失败,key为:"+e+"错误信息:"+t)}return s}exports.getSession=g;exports.setSession=c;
|