@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 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("../code/highlight.vue.cjs"),m=require("../../utils/index.cjs"),v=require("../../utils/util.cjs"),h={class:"set-code"},p={class:"but-div set-code-but"},f={class:"set-code-html"},C=e.defineComponent({__name:"code",props:{name:{type:String},html:{type:String,default(){return""}}},emits:["refresh"],setup(s,{emit:c}){const t=s,n=c,o=e.ref(!1);function l(){o.value=!o.value}function r(){m.copyCode(t.html)}function d(){v.exportStringToFile(t.html,t.name+".vue")}function u(){n("refresh")}return(_,i)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",{onClick:l,class:"set-code-buts"},[i[0]||(i[0]=e.createElementVNode("div",null,"代码",-1)),e.createElementVNode("div",p,e.toDisplayString(o.value?"显示":"隐藏"),1),e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:"but-div set-code-but"}," 复制 "),e.createElementVNode("div",{onClick:e.withModifiers(d,["stop"]),class:"but-div set-code-but"}," 下载 "),e.createElementVNode("div",{onClick:e.withModifiers(u,["stop"]),class:"but-div set-code-but"}," 刷新 ")]),e.withDirectives(e.createElementVNode("div",f,[e.createVNode(a,{language:"html",code:t.html},null,8,["code"])],512),[[e.vShow,o.value]])]))}});module.exports=C;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as m, ref as p, openBlock as v, createElementBlock as f, createElementVNode as e, toDisplayString as h, withModifiers as i, withDirectives as C, createVNode as _, vShow as b } from "vue";
|
|
2
|
+
import k from "../code/highlight.vue.js";
|
|
3
|
+
import { copyCode as g } from "../../utils/index.js";
|
|
4
|
+
import { exportStringToFile as S } from "../../utils/util.js";
|
|
5
|
+
const y = { class: "set-code" }, w = { class: "but-div set-code-but" }, x = { class: "set-code-html" }, F = /* @__PURE__ */ m({
|
|
6
|
+
__name: "code",
|
|
7
|
+
props: {
|
|
8
|
+
name: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
html: {
|
|
12
|
+
type: String,
|
|
13
|
+
default() {
|
|
14
|
+
return "";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["refresh"],
|
|
19
|
+
setup(c, { emit: n }) {
|
|
20
|
+
const t = c, l = n, o = p(!1);
|
|
21
|
+
function r() {
|
|
22
|
+
o.value = !o.value;
|
|
23
|
+
}
|
|
24
|
+
function d() {
|
|
25
|
+
g(t.html);
|
|
26
|
+
}
|
|
27
|
+
function u() {
|
|
28
|
+
S(t.html, t.name + ".vue");
|
|
29
|
+
}
|
|
30
|
+
function a() {
|
|
31
|
+
l("refresh");
|
|
32
|
+
}
|
|
33
|
+
return (D, s) => (v(), f("div", y, [
|
|
34
|
+
e("div", {
|
|
35
|
+
onClick: r,
|
|
36
|
+
class: "set-code-buts"
|
|
37
|
+
}, [
|
|
38
|
+
s[0] || (s[0] = e("div", null, "代码", -1)),
|
|
39
|
+
e("div", w, h(o.value ? "显示" : "隐藏"), 1),
|
|
40
|
+
e("div", {
|
|
41
|
+
onClick: i(d, ["stop"]),
|
|
42
|
+
class: "but-div set-code-but"
|
|
43
|
+
}, " 复制 "),
|
|
44
|
+
e("div", {
|
|
45
|
+
onClick: i(u, ["stop"]),
|
|
46
|
+
class: "but-div set-code-but"
|
|
47
|
+
}, " 下载 "),
|
|
48
|
+
e("div", {
|
|
49
|
+
onClick: i(a, ["stop"]),
|
|
50
|
+
class: "but-div set-code-but"
|
|
51
|
+
}, " 刷新 ")
|
|
52
|
+
]),
|
|
53
|
+
C(e("div", x, [
|
|
54
|
+
_(k, {
|
|
55
|
+
language: "html",
|
|
56
|
+
code: t.html
|
|
57
|
+
}, null, 8, ["code"])
|
|
58
|
+
], 512), [
|
|
59
|
+
[b, o.value]
|
|
60
|
+
])
|
|
61
|
+
]));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
F as default
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./code.vue.cjs");module.exports=e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),_=require("./code.vue.cjs"),f=require("./retrie/input/index.vue.cjs");;/* empty css */const g=require("./effect.vue.cjs"),d=require("./util.cjs");function b(c){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const i in c)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(c,i);Object.defineProperty(a,i,u.get?u:{enumerable:!0,get:()=>c[i]})}}return a.default=c,Object.freeze(a)}const y=b(t),j=t.defineComponent({props:{value:{type:Object},param:{type:Object}},data(){return{template:"",script:"",style:"",vueHtml:""}},setup(c){function a(s){const r=document.getElementsByTagName("head")[0],l="data-vite-dev-id",o=s+".css",p=r.querySelector(`style[${l}="${o}"]`);if(p)return p;{let e=document.createElement("style");return e.appendChild(document.createTextNode("")),e.setAttribute("type","text/css"),e.setAttribute(l,o),r.appendChild(e),e}}async function i(s,r="",l){const o=[],p=c.value?.name;let e="";Object.keys(y).forEach(h=>{r.includes(h+"(")&&o.push(h)}),o.length>0&&(e=`import { ${o.join(" , ")} } from 'vue';`);let m=`<template>
|
|
2
|
+
${s}
|
|
3
|
+
</template>`;m=await d.prettierHtml(m);let v=`${e}
|
|
4
|
+
export default {
|
|
5
|
+
setup(props, ctx) {
|
|
6
|
+
${r}
|
|
7
|
+
}
|
|
8
|
+
}`;return v=await d.prettierJs(v),`<!--${p}-->
|
|
9
|
+
${m}
|
|
10
|
+
<script>
|
|
11
|
+
${v}
|
|
12
|
+
<\/script>
|
|
13
|
+
<style>
|
|
14
|
+
${l}
|
|
15
|
+
</style>
|
|
16
|
+
`}function u(s,r,l){try{const o=Object.keys(y);return new Function("props","ctx","vue",` "use strict";
|
|
17
|
+
const { ${o.join(",")} } = vue;
|
|
18
|
+
${s}; `)(r,l,y)}catch(o){console.error("Code block execution failed:",o)}}const n=t.ref(null);return t.onMounted(()=>{n.value=a(c.value?.key)}),{getHmtlVue:i,getCodeBlock:u,style:n}},render(c,a,i,u,n){const s=i.value||{};let r="div";s.component?r=t.defineAsyncComponent(s.component):s.name&&(r=t.resolveComponent(s.name));const l={};l[s.name]=r;const o=async()=>{const e=await u.getHmtlVue(n.template,n.script,n.style);n.vueHtml=e},p=()=>{u.style.innerHTML=n.style,o()};return t.h("div",{class:"code-edit"},[t.h("div",{class:"edit-effect use"},[t.h(g,{class:"use-component"},{default:()=>t.h(t.defineComponent({components:l,setup(e,m){return u.getCodeBlock(n.script,e,m)},template:n.template||"<div></div>"}))}),t.h(_,{html:n.vueHtml,name:s.name+"_edit",onRefresh:o})]),t.h("div",{class:"edit-input"},[t.h("div",{class:"but-div",onClick:p},"运行"),t.h("div",{},[t.h("div",{},"template"),t.h("div",{},t.h(f,{format:"html",check:e=>e,options:[s.name],modelValue:n.template,"onUpdate:modelValue":async e=>{n.template=e,n.template=await d.prettierHtml(e)}}))]),t.h("div",{},[t.h("div",{},"script"),t.h("div",{},"setup(props, ctx)"),t.h("div",{},t.h(f,{format:"js",check:e=>e,options:["props","ctx"],modelValue:n.script,"onUpdate:modelValue":async e=>{n.script=e,n.script=await d.prettierJs(e)}}))]),t.h("div",{},[t.h("div",{},"style"),t.h("div",{},t.h(f,{format:"css",check:e=>e,modelValue:n.style,"onUpdate:modelValue":async e=>{n.style=e,n.style=await d.prettierCss(e)}}))])])])}});module.exports=j;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as d from "vue";
|
|
2
|
+
import { defineComponent as h, defineAsyncComponent as C, resolveComponent as g, h as n, ref as x, onMounted as b } from "vue";
|
|
3
|
+
import j from "./code.vue.js";
|
|
4
|
+
import f from "./retrie/input/index.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import H from "./effect.vue.js";
|
|
7
|
+
import { prettierHtml as $, prettierJs as k, prettierCss as V } from "./util.js";
|
|
8
|
+
const U = h({
|
|
9
|
+
/**
|
|
10
|
+
* @props {Stinrg} value 插入数据
|
|
11
|
+
*/
|
|
12
|
+
props: {
|
|
13
|
+
value: {
|
|
14
|
+
type: Object
|
|
15
|
+
},
|
|
16
|
+
param: {
|
|
17
|
+
type: Object
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
template: "",
|
|
23
|
+
script: "",
|
|
24
|
+
style: "",
|
|
25
|
+
vueHtml: ""
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
setup(u) {
|
|
29
|
+
function v(s) {
|
|
30
|
+
const c = document.getElementsByTagName("head")[0], r = "data-vite-dev-id", o = s + ".css", l = c.querySelector(`style[${r}="${o}"]`);
|
|
31
|
+
if (l)
|
|
32
|
+
return l;
|
|
33
|
+
{
|
|
34
|
+
let e = document.createElement("style");
|
|
35
|
+
return e.appendChild(document.createTextNode("")), e.setAttribute("type", "text/css"), e.setAttribute(r, o), c.appendChild(e), e;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function a(s, c = "", r) {
|
|
39
|
+
const o = [], l = u.value?.name;
|
|
40
|
+
let e = "";
|
|
41
|
+
Object.keys(d).forEach((y) => {
|
|
42
|
+
c.includes(y + "(") && o.push(y);
|
|
43
|
+
}), o.length > 0 && (e = `import { ${o.join(" , ")} } from 'vue';`);
|
|
44
|
+
let m = `<template>
|
|
45
|
+
${s}
|
|
46
|
+
</template>`;
|
|
47
|
+
m = await $(m);
|
|
48
|
+
let p = `${e}
|
|
49
|
+
export default {
|
|
50
|
+
setup(props, ctx) {
|
|
51
|
+
${c}
|
|
52
|
+
}
|
|
53
|
+
}`;
|
|
54
|
+
return p = await k(p), `<!--${l}-->
|
|
55
|
+
${m}
|
|
56
|
+
<script>
|
|
57
|
+
${p}
|
|
58
|
+
<\/script>
|
|
59
|
+
<style>
|
|
60
|
+
${r}
|
|
61
|
+
</style>
|
|
62
|
+
`;
|
|
63
|
+
}
|
|
64
|
+
function i(s, c, r) {
|
|
65
|
+
try {
|
|
66
|
+
const o = Object.keys(d);
|
|
67
|
+
return new Function(
|
|
68
|
+
"props",
|
|
69
|
+
"ctx",
|
|
70
|
+
"vue",
|
|
71
|
+
` "use strict";
|
|
72
|
+
const { ${o.join(",")} } = vue;
|
|
73
|
+
${s}; `
|
|
74
|
+
)(c, r, d);
|
|
75
|
+
} catch (o) {
|
|
76
|
+
console.error("Code block execution failed:", o);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const t = x(null);
|
|
80
|
+
return b(() => {
|
|
81
|
+
t.value = v(u.value?.key);
|
|
82
|
+
}), {
|
|
83
|
+
getHmtlVue: a,
|
|
84
|
+
getCodeBlock: i,
|
|
85
|
+
style: t
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
render(u, v, a, i, t) {
|
|
89
|
+
const s = a.value || {};
|
|
90
|
+
let c = "div";
|
|
91
|
+
s.component ? c = C(s.component) : s.name && (c = g(s.name));
|
|
92
|
+
const r = {};
|
|
93
|
+
r[s.name] = c;
|
|
94
|
+
const o = async () => {
|
|
95
|
+
const e = await i.getHmtlVue(
|
|
96
|
+
t.template,
|
|
97
|
+
t.script,
|
|
98
|
+
t.style
|
|
99
|
+
);
|
|
100
|
+
t.vueHtml = e;
|
|
101
|
+
}, l = () => {
|
|
102
|
+
i.style.innerHTML = t.style, o();
|
|
103
|
+
};
|
|
104
|
+
return n(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
class: "code-edit"
|
|
108
|
+
},
|
|
109
|
+
[
|
|
110
|
+
n(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
class: "edit-effect use"
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
n(
|
|
117
|
+
H,
|
|
118
|
+
{
|
|
119
|
+
class: "use-component"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
default: () => n(
|
|
123
|
+
h({
|
|
124
|
+
components: r,
|
|
125
|
+
setup(e, m) {
|
|
126
|
+
return i.getCodeBlock(
|
|
127
|
+
t.script,
|
|
128
|
+
e,
|
|
129
|
+
m
|
|
130
|
+
);
|
|
131
|
+
},
|
|
132
|
+
template: t.template || "<div></div>"
|
|
133
|
+
})
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
n(j, {
|
|
138
|
+
html: t.vueHtml,
|
|
139
|
+
name: s.name + "_edit",
|
|
140
|
+
onRefresh: o
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
),
|
|
144
|
+
n(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
class: "edit-input"
|
|
148
|
+
},
|
|
149
|
+
[
|
|
150
|
+
n(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
class: "but-div",
|
|
154
|
+
onClick: l
|
|
155
|
+
},
|
|
156
|
+
"运行"
|
|
157
|
+
),
|
|
158
|
+
n("div", {}, [
|
|
159
|
+
n("div", {}, "template"),
|
|
160
|
+
n(
|
|
161
|
+
"div",
|
|
162
|
+
{},
|
|
163
|
+
n(f, {
|
|
164
|
+
format: "html",
|
|
165
|
+
check: (e) => e,
|
|
166
|
+
options: [s.name],
|
|
167
|
+
modelValue: t.template,
|
|
168
|
+
"onUpdate:modelValue": async (e) => {
|
|
169
|
+
t.template = e, t.template = await $(e);
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
)
|
|
173
|
+
]),
|
|
174
|
+
n("div", {}, [
|
|
175
|
+
n("div", {}, "script"),
|
|
176
|
+
n("div", {}, "setup(props, ctx)"),
|
|
177
|
+
n(
|
|
178
|
+
"div",
|
|
179
|
+
{},
|
|
180
|
+
n(f, {
|
|
181
|
+
format: "js",
|
|
182
|
+
check: (e) => e,
|
|
183
|
+
options: ["props", "ctx"],
|
|
184
|
+
modelValue: t.script,
|
|
185
|
+
"onUpdate:modelValue": async (e) => {
|
|
186
|
+
t.script = e, t.script = await k(e);
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
)
|
|
190
|
+
]),
|
|
191
|
+
n("div", {}, [
|
|
192
|
+
n("div", {}, "style"),
|
|
193
|
+
n(
|
|
194
|
+
"div",
|
|
195
|
+
{},
|
|
196
|
+
n(f, {
|
|
197
|
+
format: "css",
|
|
198
|
+
check: (e) => e,
|
|
199
|
+
modelValue: t.style,
|
|
200
|
+
"onUpdate:modelValue": async (e) => {
|
|
201
|
+
t.style = e, t.style = await V(e);
|
|
202
|
+
}
|
|
203
|
+
})
|
|
204
|
+
)
|
|
205
|
+
])
|
|
206
|
+
]
|
|
207
|
+
)
|
|
208
|
+
]
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
U as default
|
|
214
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),c=require("../../../_virtual/_plugin-vue_export-helper.cjs"),r={},s={class:"use-effect"};function n(t,u){return e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(t.$slots,"default")])}const o=c(r,[["render",n]]);module.exports=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, renderSlot as c } from "vue";
|
|
2
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const s = {}, f = { class: "use-effect" };
|
|
4
|
+
function n(e, _) {
|
|
5
|
+
return t(), o("div", f, [
|
|
6
|
+
c(e.$slots, "default")
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const d = /* @__PURE__ */ r(s, [["render", n]]);
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),g=require("./set-props.vue.cjs"),y=require("./set-emit.vue.cjs");;/* empty css */const T=require("./set-code.vue.cjs"),C=require("./set-expose.vue.cjs");;/* empty css */const b=require("./set-slot.vue.cjs"),E=require("./code.cjs"),l=require("../../utils/props.cjs");require("@fangzhongya/utils/basic/object/mergeObject");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");const x=require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const j=s.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,U,v,D,u){const p=s.reactive({emitValue:{},slotValue:{}}),r=v.value||{};let c="div";r.component?c=s.defineAsyncComponent(r.component):r.name&&(c=s.resolveComponent(r.name));const i=v.param||{},f=l.getPropsValue(i.propss||[]),m=l.getEmitsValue(i.emitss||[]),V=l.getExposeValue(i.exposes||[]),h=l.getSlotValue(i.slots||[]),a={},q={};f.forEach(t=>{let e=t.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(a[e]=u.propsValue[e]??E.getDefaultValue(t,!1),o&&o.length>1&&m.push({name:"update:"+e,description:t.description,selectable:"value:["+t.type+"]"}))}}),m.forEach(t=>{let e=t.name;if(e.includes("-")){let n=e.split("-");n=n.map((_,P)=>x.firstUpper(_)),e=n.join("")}else e=x.firstUpper(e);const o="on"+e;a[o]=(...n)=>{const _={arr:n,_date_:new Date().getTime()};p.emitValue[t.name]=_}});let d;return h.forEach(t=>{const e=t.name||"default";q[e]=o=>{if(p.slotValue[e]){const n=p.slotValue[e];return s.h(s.defineComponent({props:{scope:{type:Object}},template:n}),{scope:o})}}}),s.h("div",{class:"use"},[s.h("div",{class:"use-component"},s.h(c,{...a,ref:t=>{d=t}},q)),s.h("div",{class:"use-code"},s.h(T,{name:r.name,param:i,value:a,propsText:u.propsText,exposeText:u.exposeText,slotValue:p.slotValue})),s.h("div",{class:"use-props"},s.h(g,{name:r.name,list:f,onChange:(t,e)=>{u.propsValue=t,u.propsText=e}})),s.h("div",{class:"use-emit"},s.h(y,{name:r.name,list:m,value:p.emitValue})),s.h("div",{class:"use-expose"},s.h(C,{name:r.name,list:V,getRef:()=>d,onChange:t=>{u.exposeText=t}})),s.h("div",{class:"use-slot"},s.h(b,{name:r.name,list:h,onChange:(t,e)=>{p.slotValue[t]=e}}))])},data(){return{propsValue:{},propsText:{},exposeText:{}}}});module.exports=j;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { defineComponent as _, reactive as T, defineAsyncComponent as b, resolveComponent as j, h as s } from "vue";
|
|
2
|
+
import C from "./set-props.vue.js";
|
|
3
|
+
import y from "./set-emit.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import E from "./set-code.vue.js";
|
|
6
|
+
import O from "./set-expose.vue.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import $ from "./set-slot.vue.js";
|
|
9
|
+
import { getDefaultValue as D } from "./code.js";
|
|
10
|
+
import { getPropsValue as U, getEmitsValue as k, getExposeValue as w, getSlotValue as A } from "../../utils/props.js";
|
|
11
|
+
import "@fangzhongya/utils/basic/object/mergeObject";
|
|
12
|
+
import "@fangzhongya/utils/basic/array/toggleArray";
|
|
13
|
+
import "@fangzhongya/utils/name/humpToLine";
|
|
14
|
+
import "@fangzhongya/utils/name/lineToLargeHump";
|
|
15
|
+
import "@fangzhongya/utils/basic/string/appearNum";
|
|
16
|
+
import "@fangzhongya/utils/basic/string/firstLower";
|
|
17
|
+
import "@fangzhongya/utils/basic/array/duplicateRemoval";
|
|
18
|
+
import "@fangzhongya/utils/basic/array/asyncMergeArray";
|
|
19
|
+
import { firstUpper as g } from "@fangzhongya/utils/basic/string/firstUpper";
|
|
20
|
+
import "@fangzhongya/utils/urls/getSuffix";
|
|
21
|
+
import "@fangzhongya/utils/basic/array/replaceAfter";
|
|
22
|
+
const me = _({
|
|
23
|
+
/**
|
|
24
|
+
* @props {Stinrg} value 插入数据
|
|
25
|
+
*/
|
|
26
|
+
props: {
|
|
27
|
+
value: {
|
|
28
|
+
type: Object
|
|
29
|
+
},
|
|
30
|
+
param: {
|
|
31
|
+
type: Object
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
render(P, R, f, S, r) {
|
|
35
|
+
const n = T({
|
|
36
|
+
emitValue: {},
|
|
37
|
+
slotValue: {}
|
|
38
|
+
}), o = f.value || {};
|
|
39
|
+
let l = "div";
|
|
40
|
+
o.component ? l = b(o.component) : o.name && (l = j(o.name));
|
|
41
|
+
const a = f.param || {}, d = U(a.propss || []), c = k(a.emitss || []), h = w(a.exposes || []), V = A(a.slots || []), i = {}, x = {};
|
|
42
|
+
d.forEach((t) => {
|
|
43
|
+
let e = t.name;
|
|
44
|
+
if (!e.includes(".")) {
|
|
45
|
+
let p = e.split("/");
|
|
46
|
+
e = (p[0] || "").trim(), e && (i[e] = r.propsValue[e] ?? D(t, !1), p && p.length > 1 && c.push({
|
|
47
|
+
name: "update:" + e,
|
|
48
|
+
description: t.description,
|
|
49
|
+
selectable: "value:[" + t.type + "]"
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
}), c.forEach((t) => {
|
|
53
|
+
let e = t.name;
|
|
54
|
+
if (e.includes("-")) {
|
|
55
|
+
let m = e.split("-");
|
|
56
|
+
m = m.map((u, q) => g(u)), e = m.join("");
|
|
57
|
+
} else
|
|
58
|
+
e = g(e);
|
|
59
|
+
const p = "on" + e;
|
|
60
|
+
i[p] = (...m) => {
|
|
61
|
+
const u = {
|
|
62
|
+
arr: m,
|
|
63
|
+
_date_: (/* @__PURE__ */ new Date()).getTime()
|
|
64
|
+
};
|
|
65
|
+
n.emitValue[t.name] = u;
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
let v;
|
|
69
|
+
return V.forEach((t) => {
|
|
70
|
+
const e = t.name || "default";
|
|
71
|
+
x[e] = (p) => {
|
|
72
|
+
if (n.slotValue[e]) {
|
|
73
|
+
const m = n.slotValue[e];
|
|
74
|
+
return s(
|
|
75
|
+
_({
|
|
76
|
+
props: {
|
|
77
|
+
scope: {
|
|
78
|
+
type: Object
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
template: m
|
|
82
|
+
}),
|
|
83
|
+
{
|
|
84
|
+
scope: p
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}), s(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
class: "use"
|
|
93
|
+
},
|
|
94
|
+
[
|
|
95
|
+
s(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
class: "use-component"
|
|
99
|
+
},
|
|
100
|
+
s(
|
|
101
|
+
l,
|
|
102
|
+
{
|
|
103
|
+
...i,
|
|
104
|
+
ref: (t) => {
|
|
105
|
+
v = t;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
x
|
|
109
|
+
)
|
|
110
|
+
),
|
|
111
|
+
s(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
class: "use-code"
|
|
115
|
+
},
|
|
116
|
+
s(E, {
|
|
117
|
+
name: o.name,
|
|
118
|
+
param: a,
|
|
119
|
+
value: i,
|
|
120
|
+
propsText: r.propsText,
|
|
121
|
+
exposeText: r.exposeText,
|
|
122
|
+
slotValue: n.slotValue
|
|
123
|
+
})
|
|
124
|
+
),
|
|
125
|
+
s(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
class: "use-props"
|
|
129
|
+
},
|
|
130
|
+
s(C, {
|
|
131
|
+
name: o.name,
|
|
132
|
+
list: d,
|
|
133
|
+
onChange: (t, e) => {
|
|
134
|
+
r.propsValue = t, r.propsText = e;
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
),
|
|
138
|
+
s(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
class: "use-emit"
|
|
142
|
+
},
|
|
143
|
+
s(y, {
|
|
144
|
+
name: o.name,
|
|
145
|
+
list: c,
|
|
146
|
+
value: n.emitValue
|
|
147
|
+
})
|
|
148
|
+
),
|
|
149
|
+
s(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
class: "use-expose"
|
|
153
|
+
},
|
|
154
|
+
s(O, {
|
|
155
|
+
name: o.name,
|
|
156
|
+
list: h,
|
|
157
|
+
getRef: () => v,
|
|
158
|
+
onChange: (t) => {
|
|
159
|
+
r.exposeText = t;
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
),
|
|
163
|
+
s(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
class: "use-slot"
|
|
167
|
+
},
|
|
168
|
+
s($, {
|
|
169
|
+
name: o.name,
|
|
170
|
+
list: V,
|
|
171
|
+
onChange: (t, e) => {
|
|
172
|
+
n.slotValue[t] = e;
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
)
|
|
176
|
+
]
|
|
177
|
+
);
|
|
178
|
+
},
|
|
179
|
+
data() {
|
|
180
|
+
return {
|
|
181
|
+
propsValue: {},
|
|
182
|
+
propsText: {},
|
|
183
|
+
exposeText: {}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
// watch: {
|
|
187
|
+
// 'value.name'() {
|
|
188
|
+
// console.log('value.name', this.value.name);
|
|
189
|
+
// this.propsValue = {};
|
|
190
|
+
// this.emitValue = {};
|
|
191
|
+
// },
|
|
192
|
+
// },
|
|
193
|
+
});
|
|
194
|
+
export {
|
|
195
|
+
me as default
|
|
196
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("prettier"),r=require("prettier/plugins/html"),e=require("prettier/plugins/postcss"),t=require("prettier/plugins/typescript"),n=require("prettier/plugins/babel"),s=require("prettier/plugins/estree"),c={js:{parser:"babel",plugins:[n,s]},ts:{parser:"typescript",plugins:[t,s]},css:{parser:"css",plugins:[e]},html:{parser:"html",plugins:[r]},json:{parser:"json5",plugins:[]},vue:{parser:"vue",plugins:[e,r,n,t,s]}};async function p(i,o){return await u.format(i,{...c[o]})}exports.getFormat=p;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { format as e } from "prettier";
|
|
2
|
+
import s from "prettier/plugins/html";
|
|
3
|
+
import t from "prettier/plugins/postcss";
|
|
4
|
+
import o from "prettier/plugins/typescript";
|
|
5
|
+
import p from "prettier/plugins/babel";
|
|
6
|
+
import r from "prettier/plugins/estree";
|
|
7
|
+
const n = {
|
|
8
|
+
js: {
|
|
9
|
+
parser: "babel",
|
|
10
|
+
plugins: [p, r]
|
|
11
|
+
},
|
|
12
|
+
ts: {
|
|
13
|
+
parser: "typescript",
|
|
14
|
+
plugins: [o, r]
|
|
15
|
+
},
|
|
16
|
+
css: {
|
|
17
|
+
parser: "css",
|
|
18
|
+
plugins: [t]
|
|
19
|
+
},
|
|
20
|
+
html: {
|
|
21
|
+
parser: "html",
|
|
22
|
+
plugins: [s]
|
|
23
|
+
},
|
|
24
|
+
json: {
|
|
25
|
+
parser: "json5",
|
|
26
|
+
plugins: []
|
|
27
|
+
},
|
|
28
|
+
vue: {
|
|
29
|
+
parser: "vue",
|
|
30
|
+
plugins: [t, s, p, o, r]
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
async function v(m, i) {
|
|
34
|
+
return await e(m, {
|
|
35
|
+
...n[i]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
v as getFormat
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),p=require("../../util.cjs"),v=require("../form/index.vue.cjs"),y=require("../select/index.vue.cjs");;/* empty css */const V={class:"form-any"},h=t.defineComponent({__name:"index",props:{selects:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}},modelValue:{type:null}},emits:["change"],setup(f,{emit:d}){const o=f,r=t.ref([]),u=t.ref({type:""}),m=d,s=t.ref(""),c=[{label:"string",prop:"string"},{label:"boolean",prop:"boolean"},{label:"number",prop:"number"},{label:"array",prop:"array"},{label:"object",prop:"object"},{label:"function",prop:"function"},{label:"其他",prop:""}];t.watch(()=>o.modelValue,()=>{_()},{immediate:!0});function i(e,l){let a=Object.assign({},o.config);l?a.type=l:a.type=e,a.dataType=r.value,u.value=a}function _(){let e=[];const l=o.config.dataType||[];l&&l.length>0?(e=l.map(n=>typeof n=="string"?{label:n,prop:n.toLowerCase()}:{label:n.label,prop:p.getDataTypeType([n])}),e.map(n=>n.prop).includes("any")&&(e=[...c])):e=[...c],r.value=e,i(e[0].prop,p.isDefaultType(o.modelValue)),s.value=o.modelValue}function b(e){i(e),s.value=""}function g(...e){m("change",...e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",V,[t.createElementVNode("div",null,[t.createVNode(y,{noValue:"",onChange:b,modelValue:u.value.type,list:r.value},null,8,["modelValue","list"])]),t.createVNode(v,{config:u.value,selects:o.selects,modelValue:s.value,onChange:g},null,8,["config","selects","modelValue"])]))}});module.exports=h;
|