@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 o=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const c=require("../../util.cjs"),f={class:"form-other"},v=o.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","error"],setup(i,{emit:p}){const a=i,t=p,n=o.ref("");o.watch(()=>a.modelValue,async()=>{let e=a.modelValue;n.value=await u(e)||e},{immediate:!0});function d(e){return new Function("",`{ return ${e} }`)}async function u(e){let r;if(e)try{const s=d(e)();c.isTypeEqual(s,a.dataType||[])?(r=await c.prettierFormat(e),t("value",s,r),t("error",!1)):(t("error",!0),console.log("error","类型不匹配"))}catch(l){t("error",!0),console.log("error",l)}else r="",t("value",void 0,r),t("error",!1);return r}return(e,r)=>(o.openBlock(),o.createElementBlock("div",f,[o.createVNode(m,{format:"js",modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),check:u},null,8,["modelValue"])]))}});module.exports=v;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as m, ref as p, watch as d, openBlock as f, createElementBlock as y, createVNode as v } from "vue";
|
|
2
|
+
import _ from "../input/index.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { isTypeEqual as V, prettierFormat as g } from "../../util.js";
|
|
5
|
+
const h = { class: "form-other" }, B = /* @__PURE__ */ m({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: null
|
|
10
|
+
},
|
|
11
|
+
dataType: { type: [Array] },
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
list: {
|
|
14
|
+
type: Array
|
|
15
|
+
},
|
|
16
|
+
config: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default() {
|
|
19
|
+
return {
|
|
20
|
+
label: "label",
|
|
21
|
+
prop: "prop"
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["value", "error"],
|
|
27
|
+
setup(i, { emit: c }) {
|
|
28
|
+
const a = i, o = c, l = p("");
|
|
29
|
+
d(
|
|
30
|
+
() => a.modelValue,
|
|
31
|
+
async () => {
|
|
32
|
+
let e = a.modelValue;
|
|
33
|
+
l.value = await n(e) || e;
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
immediate: !0
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
function s(e) {
|
|
40
|
+
return new Function("", `{ return ${e} }`);
|
|
41
|
+
}
|
|
42
|
+
async function n(e) {
|
|
43
|
+
let r;
|
|
44
|
+
if (e)
|
|
45
|
+
try {
|
|
46
|
+
const u = s(e)();
|
|
47
|
+
V(u, a.dataType || []) ? (r = await g(e), o("value", u, r), o("error", !1)) : (o("error", !0), console.log("error", "类型不匹配"));
|
|
48
|
+
} catch (t) {
|
|
49
|
+
o("error", !0), console.log("error", t);
|
|
50
|
+
}
|
|
51
|
+
else
|
|
52
|
+
r = "", o("value", void 0, r), o("error", !1);
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
return (e, r) => (f(), y("div", h, [
|
|
56
|
+
v(_, {
|
|
57
|
+
format: "js",
|
|
58
|
+
modelValue: l.value,
|
|
59
|
+
"onUpdate:modelValue": r[0] || (r[0] = (t) => l.value = t),
|
|
60
|
+
check: n
|
|
61
|
+
}, null, 8, ["modelValue"])
|
|
62
|
+
]));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
B as default
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.vue.cjs");module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p=require("../../util.cjs"),b={class:"form-select"},g=["value","disabled"],B={class:"form-select-box"},V={class:"form-select-list"},E={key:0,class:"form-select-list-div"},N=["onClick"],w={key:1,class:"no-data"},C=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:Array},disabled:Boolean,list:{type:Array},noValue:Boolean,config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(f,{emit:m}){const o=f,r=m,a=e.ref(!1),s=e.ref({});e.watch(()=>o.modelValue,()=>{h()},{immediate:!0});function h(){if(o.list)for(let t=0;t<o.list.length;t++){const l=o.list[t];if(i(l)===o.modelValue){s.value=l,o.noValue||d();break}}}function u(t){let l=o.config?.label;return l&&typeof t=="object"&&t?t[l]:t}function i(t){let l=o.config?.prop;return l&&typeof t=="object"&&t?t[l]:t}function y(t){return i(t)===i(s.value)}function _(){o.disabled||(a.value=!0)}function v(){setTimeout(()=>{a.value=!1},300)}function k(t){s.value=t,d()}function d(){const t=i(s.value);let l;if(o.dataType&&o.dataType.length==1){let n=p.getDataTypeType(o.dataType);if(n=="string")l=p.getString(t);else if(n=="number"){const c=Number(t);isNaN(c)?l=0:l=c}else l=t}else l=t;r("value",l,JSON.stringify(t)),r("change",l,s.value)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("input",{class:"form-select-input",value:u(s.value),readonly:"",placeholder:"请选择",type:"text",disabled:o.disabled,onClick:e.withModifiers(_,["stop"]),onBlur:e.withModifiers(v,["stop"])},null,40,g),e.createElementVNode("div",B,[e.withDirectives(e.createElementVNode("div",V,[o.list&&o.list.length>0?(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.list,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-select-list-li",{active:y(n)}]),onClick:e.withModifiers(T=>k(n),["stop"])},[e.createElementVNode("span",null,e.toDisplayString(u(n)),1)],10,N))),256))])):(e.openBlock(),e.createElementBlock("div",w,"暂无数据"))],512),[[e.vShow,a.value]])])]))}});module.exports=C;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as C, ref as y, watch as T, openBlock as s, createElementBlock as i, createElementVNode as c, withModifiers as d, withDirectives as x, Fragment as B, renderList as S, normalizeClass as w, toDisplayString as N, vShow as j } from "vue";
|
|
2
|
+
import { getDataTypeType as A, getString as D } from "../../util.js";
|
|
3
|
+
const z = { class: "form-select" }, E = ["value", "disabled"], L = { class: "form-select-box" }, O = { class: "form-select-list" }, F = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "form-select-list-div"
|
|
6
|
+
}, J = ["onClick"], M = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "no-data"
|
|
9
|
+
}, G = /* @__PURE__ */ C({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: null
|
|
14
|
+
},
|
|
15
|
+
dataType: { type: Array },
|
|
16
|
+
disabled: Boolean,
|
|
17
|
+
list: {
|
|
18
|
+
type: Array
|
|
19
|
+
},
|
|
20
|
+
noValue: Boolean,
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {
|
|
25
|
+
label: "label",
|
|
26
|
+
prop: "prop"
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ["value", "change"],
|
|
32
|
+
setup(h, { emit: _ }) {
|
|
33
|
+
const l = h, f = _, r = y(!1), n = y({});
|
|
34
|
+
T(
|
|
35
|
+
() => l.modelValue,
|
|
36
|
+
() => {
|
|
37
|
+
v();
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
immediate: !0
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
function v() {
|
|
44
|
+
if (l.list)
|
|
45
|
+
for (let e = 0; e < l.list.length; e++) {
|
|
46
|
+
const t = l.list[e];
|
|
47
|
+
if (a(t) === l.modelValue) {
|
|
48
|
+
n.value = t, l.noValue || m();
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function p(e) {
|
|
54
|
+
let t = l.config?.label;
|
|
55
|
+
return t && typeof e == "object" && e ? e[t] : e;
|
|
56
|
+
}
|
|
57
|
+
function a(e) {
|
|
58
|
+
let t = l.config?.prop;
|
|
59
|
+
return t && typeof e == "object" && e ? e[t] : e;
|
|
60
|
+
}
|
|
61
|
+
function b(e) {
|
|
62
|
+
return a(e) === a(n.value);
|
|
63
|
+
}
|
|
64
|
+
function g() {
|
|
65
|
+
l.disabled || (r.value = !0);
|
|
66
|
+
}
|
|
67
|
+
function k() {
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
r.value = !1;
|
|
70
|
+
}, 300);
|
|
71
|
+
}
|
|
72
|
+
function V(e) {
|
|
73
|
+
n.value = e, m();
|
|
74
|
+
}
|
|
75
|
+
function m() {
|
|
76
|
+
const e = a(n.value);
|
|
77
|
+
let t;
|
|
78
|
+
if (l.dataType && l.dataType.length == 1) {
|
|
79
|
+
let o = A(l.dataType);
|
|
80
|
+
if (o == "string")
|
|
81
|
+
t = D(e);
|
|
82
|
+
else if (o == "number") {
|
|
83
|
+
const u = Number(e);
|
|
84
|
+
isNaN(u) ? t = 0 : t = u;
|
|
85
|
+
} else
|
|
86
|
+
t = e;
|
|
87
|
+
} else
|
|
88
|
+
t = e;
|
|
89
|
+
f("value", t, JSON.stringify(e)), f("change", t, n.value);
|
|
90
|
+
}
|
|
91
|
+
return (e, t) => (s(), i("div", z, [
|
|
92
|
+
c("input", {
|
|
93
|
+
class: "form-select-input",
|
|
94
|
+
value: p(n.value),
|
|
95
|
+
readonly: "",
|
|
96
|
+
placeholder: "请选择",
|
|
97
|
+
type: "text",
|
|
98
|
+
disabled: l.disabled,
|
|
99
|
+
onClick: d(g, ["stop"]),
|
|
100
|
+
onBlur: d(k, ["stop"])
|
|
101
|
+
}, null, 40, E),
|
|
102
|
+
c("div", L, [
|
|
103
|
+
x(c("div", O, [
|
|
104
|
+
l.list && l.list.length > 0 ? (s(), i("div", F, [
|
|
105
|
+
(s(!0), i(B, null, S(l.list, (o, u) => (s(), i("div", {
|
|
106
|
+
class: w(["form-select-list-li", {
|
|
107
|
+
active: b(o)
|
|
108
|
+
}]),
|
|
109
|
+
onClick: d((P) => V(o), ["stop"])
|
|
110
|
+
}, [
|
|
111
|
+
c("span", null, N(p(o)), 1)
|
|
112
|
+
], 10, J))), 256))
|
|
113
|
+
])) : (s(), i("div", M, "暂无数据"))
|
|
114
|
+
], 512), [
|
|
115
|
+
[j, r.value]
|
|
116
|
+
])
|
|
117
|
+
])
|
|
118
|
+
]));
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
export {
|
|
122
|
+
G as default
|
|
123
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.vue.cjs");;/* empty css */module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),u=require("../input/index.vue.cjs");;/* empty css */const a=require("../../util.cjs"),p={class:"slot"},_=t.defineComponent({__name:"index",props:{value:{type:Object}},emits:["change","error"],setup(d,{emit:s}){const o=t.ref(""),n=s;async function c(){const r=o.value.toString();try{const e=await a.prettierHtml(r);n("change",e,e),n("error",!1)}catch(e){n("error",!0),console.log("error",e)}}function l(r){return r}return(r,e)=>(t.openBlock(),t.createElementBlock("div",p,[t.createVNode(u,{format:"html",modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=i=>o.value=i),check:l},null,8,["modelValue"]),t.createElementVNode("div",{onClick:t.withModifiers(c,["stop"]),class:"but-div"},"插入")]))}});module.exports=_;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as i, ref as s, openBlock as m, createElementBlock as u, createVNode as p, createElementVNode as d, withModifiers as f } from "vue";
|
|
2
|
+
import _ from "../input/index.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { prettierHtml as v } from "../../util.js";
|
|
5
|
+
const h = { class: "slot" }, C = /* @__PURE__ */ i({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: Object
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["change", "error"],
|
|
13
|
+
setup(k, { emit: n }) {
|
|
14
|
+
const o = s(""), r = n;
|
|
15
|
+
async function l() {
|
|
16
|
+
const t = o.value.toString();
|
|
17
|
+
try {
|
|
18
|
+
const e = await v(t);
|
|
19
|
+
r("change", e, e), r("error", !1);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
r("error", !0), console.log("error", e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function c(t) {
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
return (t, e) => (m(), u("div", h, [
|
|
28
|
+
p(_, {
|
|
29
|
+
format: "html",
|
|
30
|
+
modelValue: o.value,
|
|
31
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
|
|
32
|
+
check: c
|
|
33
|
+
}, null, 8, ["modelValue"]),
|
|
34
|
+
d("div", {
|
|
35
|
+
onClick: f(l, ["stop"]),
|
|
36
|
+
class: "but-div"
|
|
37
|
+
}, "插入")
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
C as default
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.vue.cjs");module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),m=require("../../util.cjs"),p={class:"form-string"},d=t.defineComponent({__name:"index",props:{modelValue:{type:null},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value"],setup(u,{emit:s}){const o=u,r=s,l=t.ref("");t.watch(()=>o.modelValue,()=>{let e=o.modelValue;l.value=i(e)},{immediate:!0});function a(e){const n=l.value;i(n)}function i(e){return e?(e=m.getString(e),r("value",e,JSON.stringify(e)),e):(r("value",void 0,JSON.stringify("")),"")}return(e,n)=>(t.openBlock(),t.createElementBlock("div",p,[t.withDirectives(t.createElementVNode("textarea",{class:"form-string-text",rows:"3","onUpdate:modelValue":n[0]||(n[0]=c=>l.value=c),onBlur:t.withModifiers(a,["stop"])},null,544),[[t.vModelText,l.value]])]))}});module.exports=d;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as c, ref as m, watch as p, openBlock as d, createElementBlock as f, withDirectives as v, createElementVNode as g, withModifiers as x, vModelText as _ } from "vue";
|
|
2
|
+
import { getString as V } from "../../util.js";
|
|
3
|
+
const h = { class: "form-string" }, B = /* @__PURE__ */ c({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: null
|
|
8
|
+
},
|
|
9
|
+
config: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default() {
|
|
12
|
+
return {
|
|
13
|
+
label: "label",
|
|
14
|
+
prop: "prop"
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["value"],
|
|
20
|
+
setup(i, { emit: a }) {
|
|
21
|
+
const l = i, r = a, t = m("");
|
|
22
|
+
p(
|
|
23
|
+
() => l.modelValue,
|
|
24
|
+
() => {
|
|
25
|
+
let e = l.modelValue;
|
|
26
|
+
t.value = n(e);
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
immediate: !0
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
function u(e) {
|
|
33
|
+
const o = t.value;
|
|
34
|
+
n(o);
|
|
35
|
+
}
|
|
36
|
+
function n(e) {
|
|
37
|
+
return e ? (e = V(e), r("value", e, JSON.stringify(e)), e) : (r("value", void 0, JSON.stringify("")), "");
|
|
38
|
+
}
|
|
39
|
+
return (e, o) => (d(), f("div", h, [
|
|
40
|
+
v(g("textarea", {
|
|
41
|
+
class: "form-string-text",
|
|
42
|
+
rows: "3",
|
|
43
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
|
|
44
|
+
onBlur: x(u, ["stop"])
|
|
45
|
+
}, null, 544), [
|
|
46
|
+
[_, t.value]
|
|
47
|
+
])
|
|
48
|
+
]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
B as default
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.vue.cjs");;/* empty css */module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),c=require("./code.vue.cjs"),n=require("./code.cjs"),p={class:"set-code"},r=t.defineComponent({__name:"set-code",props:{name:{type:String},param:{type:Object},value:{type:Object},slotValue:{type:Object},propsText:{type:Object},exposeText:{type:Object}},setup(a){const e=a,s=t.ref("");t.watch([()=>e.name,()=>e.param,()=>e.value,()=>e.slotValue,()=>e.propsText,()=>e.exposeText],()=>{o()},{deep:!0});async function o(){s.value=await n.getHmtl(e.name||"",e.param||{},e.value||{},e.slotValue,e.propsText,e.exposeText)}return(l,u)=>(t.openBlock(),t.createElementBlock("div",p,[t.createVNode(c,{name:e.name,html:s.value,onRefresh:o},null,8,["name","html"])]))}});module.exports=r;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as p, ref as n, watch as s, openBlock as r, createElementBlock as c, createVNode as m } from "vue";
|
|
2
|
+
import l from "./code.vue.js";
|
|
3
|
+
import { getHmtl as u } from "./code.js";
|
|
4
|
+
const i = { class: "set-code" }, y = /* @__PURE__ */ p({
|
|
5
|
+
__name: "set-code",
|
|
6
|
+
props: {
|
|
7
|
+
name: {
|
|
8
|
+
type: String
|
|
9
|
+
},
|
|
10
|
+
param: {
|
|
11
|
+
type: Object
|
|
12
|
+
},
|
|
13
|
+
value: {
|
|
14
|
+
type: Object
|
|
15
|
+
},
|
|
16
|
+
slotValue: {
|
|
17
|
+
type: Object
|
|
18
|
+
},
|
|
19
|
+
propsText: {
|
|
20
|
+
type: Object
|
|
21
|
+
},
|
|
22
|
+
exposeText: {
|
|
23
|
+
type: Object
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(a) {
|
|
27
|
+
const e = a, t = n("");
|
|
28
|
+
s(
|
|
29
|
+
[
|
|
30
|
+
() => e.name,
|
|
31
|
+
() => e.param,
|
|
32
|
+
() => e.value,
|
|
33
|
+
() => e.slotValue,
|
|
34
|
+
() => e.propsText,
|
|
35
|
+
() => e.exposeText
|
|
36
|
+
],
|
|
37
|
+
() => {
|
|
38
|
+
o();
|
|
39
|
+
},
|
|
40
|
+
{ deep: !0 }
|
|
41
|
+
);
|
|
42
|
+
async function o() {
|
|
43
|
+
t.value = await u(
|
|
44
|
+
e.name || "",
|
|
45
|
+
e.param || {},
|
|
46
|
+
e.value || {},
|
|
47
|
+
e.slotValue,
|
|
48
|
+
e.propsText,
|
|
49
|
+
e.exposeText
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
return (f, x) => (r(), c("div", i, [
|
|
53
|
+
m(l, {
|
|
54
|
+
name: e.name,
|
|
55
|
+
html: t.value,
|
|
56
|
+
onRefresh: o
|
|
57
|
+
}, null, 8, ["name", "html"])
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
y as default
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./set-code.vue.cjs");module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),p={key:0,class:"set-emit"},d={class:"set-emit-name"},_={class:"set-emit-value"},E=e.defineComponent({__name:"set-emit",props:{list:Array,value:{type:Object}},setup(a){const l=a;function o(t){return t.name+": ("+t.selectable+") "+t.description}function c(t){let r=t.name;if(l.value){let n=l.value[r];return n?n.arr||[]:[]}else return[]}function i(t){let r=t.name;return l.value&&l.value[r]?._date_||""}return(t,r)=>l.list&&l.list.length>0?(e.openBlock(),e.createElementBlock("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(n,u)=>(e.openBlock(),e.createElementBlock("div",{class:"set-emit-li",key:u},[e.createElementVNode("div",d,e.toDisplayString(o(n)),1),e.createElementVNode("div",_,[e.createElementVNode("span",null,"事件返回数据:"+e.toDisplayString(i(n)),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c(n),(m,s)=>(e.openBlock(),e.createElementBlock("div",{key:s},[e.createElementVNode("span",null,e.toDisplayString(n.selectable.split(",")[s]),1),e.createElementVNode("span",null,"参数"+e.toDisplayString(s+1)+":",1),e.createElementVNode("span",null,e.toDisplayString(JSON.stringify(m)),1)]))),128))])]))),128))])):e.createCommentVNode("",!0)}});module.exports=E;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as h, openBlock as r, createElementBlock as a, Fragment as o, renderList as c, createElementVNode as s, toDisplayString as i, createCommentVNode as b } from "vue";
|
|
2
|
+
const g = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "set-emit"
|
|
5
|
+
}, y = { class: "set-emit-name" }, N = { class: "set-emit-value" }, k = /* @__PURE__ */ h({
|
|
6
|
+
__name: "set-emit",
|
|
7
|
+
props: {
|
|
8
|
+
list: Array,
|
|
9
|
+
value: {
|
|
10
|
+
type: Object
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(m) {
|
|
14
|
+
const n = m;
|
|
15
|
+
function p(e) {
|
|
16
|
+
return e.name + ": (" + e.selectable + ") " + e.description;
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
let l = e.name;
|
|
20
|
+
if (n.value) {
|
|
21
|
+
let t = n.value[l];
|
|
22
|
+
return t ? t.arr || [] : [];
|
|
23
|
+
} else
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
function _(e) {
|
|
27
|
+
let l = e.name;
|
|
28
|
+
return n.value && n.value[l]?._date_ || "";
|
|
29
|
+
}
|
|
30
|
+
return (e, l) => n.list && n.list.length > 0 ? (r(), a("div", g, [
|
|
31
|
+
(r(!0), a(o, null, c(n.list, (t, f) => (r(), a("div", {
|
|
32
|
+
class: "set-emit-li",
|
|
33
|
+
key: f
|
|
34
|
+
}, [
|
|
35
|
+
s("div", y, i(p(t)), 1),
|
|
36
|
+
s("div", N, [
|
|
37
|
+
s("span", null, "事件返回数据:" + i(_(t)), 1),
|
|
38
|
+
(r(!0), a(o, null, c(d(t), (v, u) => (r(), a("div", { key: u }, [
|
|
39
|
+
s("span", null, i(t.selectable.split(",")[u]), 1),
|
|
40
|
+
s("span", null, "参数" + i(u + 1) + ":", 1),
|
|
41
|
+
s("span", null, i(JSON.stringify(v)), 1)
|
|
42
|
+
]))), 128))
|
|
43
|
+
])
|
|
44
|
+
]))), 128))
|
|
45
|
+
])) : b("", !0);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
k as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./set-emit.vue.cjs");;/* empty css */module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),f=require("./retrie/select/index.vue.cjs");;/* empty css */const g=require("./retrie/expose/index.vue.cjs");;/* empty css */const k={key:0,class:"set-expose"},x={class:"set-expose-li"},C=["onClick"],V=e.defineComponent({__name:"set-expose",props:{list:Array,name:String,getRef:{type:Function}},emits:["change"],setup(u,{emit:a}){const s=u,p=a,m=e.computed(()=>s.list?.map((t,n)=>({label:t.name,prop:n}))),o=e.ref([]),i=e.ref(0);function d(t){s.list&&(i.value=t)}function _(){if(s.list){const t=s.list[i.value];o.value.map(n=>n.name).includes(t.name)||o.value.push(t)}}const c={};function v(t,n,l,r){c[t]={params:n,type:l,name:t,text:r},p("change",c)}return(t,n)=>s.list&&s.list.length>0?(e.openBlock(),e.createElementBlock("div",k,[n[1]||(n[1]=e.createTextVNode(" 请先选择要执行的方法 ",-1)),e.createVNode(f,{onChange:d,list:m.value},null,8,["list"]),e.createElementVNode("div",{class:"but-div com-retrie-but",onClick:e.withModifiers(_,["stop"])},[...n[0]||(n[0]=[e.createElementVNode("span",null,"添加",-1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(l,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("span",{class:"set-expose-delete",onClick:h=>o.value.splice(r,1)}," 删除 ",8,C),e.createVNode(g,{name:s.name,value:l,getRef:s.getRef,onChange:v},null,8,["name","value","getRef"])]))),256))])):e.createCommentVNode("",!0)}});module.exports=V;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as x, computed as k, ref as m, openBlock as l, createElementBlock as a, createTextVNode as V, createVNode as p, createElementVNode as r, withModifiers as b, Fragment as N, renderList as R, createCommentVNode as y } from "vue";
|
|
2
|
+
import $ from "./retrie/select/index.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import B from "./retrie/expose/index.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const E = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "set-expose"
|
|
9
|
+
}, F = { class: "set-expose-li" }, L = ["onClick"], T = /* @__PURE__ */ x({
|
|
10
|
+
__name: "set-expose",
|
|
11
|
+
props: {
|
|
12
|
+
list: Array,
|
|
13
|
+
name: String,
|
|
14
|
+
getRef: {
|
|
15
|
+
type: Function
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["change"],
|
|
19
|
+
setup(f, { emit: d }) {
|
|
20
|
+
const n = f, v = d, g = k(() => n.list?.map((e, t) => ({
|
|
21
|
+
label: e.name,
|
|
22
|
+
prop: t
|
|
23
|
+
}))), s = m([]), c = m(0);
|
|
24
|
+
function _(e) {
|
|
25
|
+
n.list && (c.value = e);
|
|
26
|
+
}
|
|
27
|
+
function C() {
|
|
28
|
+
if (n.list) {
|
|
29
|
+
const e = n.list[c.value];
|
|
30
|
+
s.value.map((t) => t.name).includes(e.name) || s.value.push(e);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const u = {};
|
|
34
|
+
function h(e, t, o, i) {
|
|
35
|
+
u[e] = { params: t, type: o, name: e, text: i }, v("change", u);
|
|
36
|
+
}
|
|
37
|
+
return (e, t) => n.list && n.list.length > 0 ? (l(), a("div", E, [
|
|
38
|
+
t[1] || (t[1] = V(" 请先选择要执行的方法 ", -1)),
|
|
39
|
+
p($, {
|
|
40
|
+
onChange: _,
|
|
41
|
+
list: g.value
|
|
42
|
+
}, null, 8, ["list"]),
|
|
43
|
+
r("div", {
|
|
44
|
+
class: "but-div com-retrie-but",
|
|
45
|
+
onClick: b(C, ["stop"])
|
|
46
|
+
}, [...t[0] || (t[0] = [
|
|
47
|
+
r("span", null, "添加", -1)
|
|
48
|
+
])]),
|
|
49
|
+
(l(!0), a(N, null, R(s.value, (o, i) => (l(), a("div", F, [
|
|
50
|
+
r("span", {
|
|
51
|
+
class: "set-expose-delete",
|
|
52
|
+
onClick: (j) => s.value.splice(i, 1)
|
|
53
|
+
}, " 删除 ", 8, L),
|
|
54
|
+
p(B, {
|
|
55
|
+
name: n.name,
|
|
56
|
+
value: o,
|
|
57
|
+
getRef: n.getRef,
|
|
58
|
+
onChange: h
|
|
59
|
+
}, null, 8, ["name", "value", "getRef"])
|
|
60
|
+
]))), 256))
|
|
61
|
+
])) : y("", !0);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
T as default
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./set-expose.vue.cjs");;/* empty css */module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("vue"),T=require("./retrie/index.vue.cjs");;/* empty css */const o=require("./code.cjs"),x={class:"set-props"},j=s.defineComponent({__name:"set-props",props:{name:String,list:Array},emits:["change"],setup(i,{emit:p}){const r=i,f=p,a=s.ref({}),m=s.ref(0),l=s.ref({}),c=s.ref([]);function _(){l.value={};const n=[];r.list?.forEach(t=>{let e=t.name;if(!e.includes(".")&&(e=(e.split("/")[0]||"").trim(),e)){const b=o.getDefaultValue(t,!1);l.value[e]=b;const{arr:g,type:v,dataType:V}=o.getSpecType(t);a.value[e]=g;let q={label:d(e,t),prop:e,type:v,dataType:V,select:e};n.push(q)}}),c.value=n}function d(n,t){let e=n+": { "+(t.type||"any")+" } "+t.description;return t.default&&(e+=" 默认值="+t.default),t.selectable&&(e+=" 可选值="+t.selectable),e}function h(n,t){let e=Object.assign({},n);f("change",e,t)}let u;function y(){clearTimeout(u),u=setTimeout(()=>{_()},400)}return s.watch(()=>r.name,()=>{c.value=[],y()},{immediate:!0}),(n,t)=>(s.openBlock(),s.createElementBlock("div",x,[s.createVNode(T,{refresh:m.value,modelValue:l.value,selects:a.value,list:c.value,name:r.name,onQuery:h},null,8,["refresh","modelValue","selects","list","name"])]))}});module.exports=j;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as T, ref as l, watch as j, openBlock as k, createElementBlock as x, createVNode as B } from "vue";
|
|
2
|
+
import E from "./retrie/index.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { getDefaultValue as S, getSpecType as w } from "./code.js";
|
|
5
|
+
const A = { class: "set-props" }, Q = /* @__PURE__ */ T({
|
|
6
|
+
__name: "set-props",
|
|
7
|
+
props: {
|
|
8
|
+
name: String,
|
|
9
|
+
list: Array
|
|
10
|
+
},
|
|
11
|
+
emits: ["change"],
|
|
12
|
+
setup(i, { emit: u }) {
|
|
13
|
+
const n = i, m = u, r = l({}), p = l(0), a = l({}), o = l([]);
|
|
14
|
+
function f() {
|
|
15
|
+
a.value = {};
|
|
16
|
+
const s = [];
|
|
17
|
+
n.list?.forEach((t) => {
|
|
18
|
+
let e = t.name;
|
|
19
|
+
if (!e.includes(".") && (e = (e.split("/")[0] || "").trim(), e)) {
|
|
20
|
+
const b = S(t, !1);
|
|
21
|
+
a.value[e] = b;
|
|
22
|
+
const { arr: y, type: g, dataType: V } = w(t);
|
|
23
|
+
r.value[e] = y;
|
|
24
|
+
let v = {
|
|
25
|
+
label: d(e, t),
|
|
26
|
+
prop: e,
|
|
27
|
+
type: g,
|
|
28
|
+
dataType: V,
|
|
29
|
+
select: e
|
|
30
|
+
};
|
|
31
|
+
s.push(v);
|
|
32
|
+
}
|
|
33
|
+
}), o.value = s;
|
|
34
|
+
}
|
|
35
|
+
function d(s, t) {
|
|
36
|
+
let e = s + ": { " + (t.type || "any") + " } " + t.description;
|
|
37
|
+
return t.default && (e += " 默认值=" + t.default), t.selectable && (e += " 可选值=" + t.selectable), e;
|
|
38
|
+
}
|
|
39
|
+
function h(s, t) {
|
|
40
|
+
let e = Object.assign({}, s);
|
|
41
|
+
m("change", e, t);
|
|
42
|
+
}
|
|
43
|
+
let c;
|
|
44
|
+
function _() {
|
|
45
|
+
clearTimeout(c), c = setTimeout(() => {
|
|
46
|
+
f();
|
|
47
|
+
}, 400);
|
|
48
|
+
}
|
|
49
|
+
return j(
|
|
50
|
+
() => n.name,
|
|
51
|
+
() => {
|
|
52
|
+
o.value = [], _();
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
immediate: !0
|
|
56
|
+
}
|
|
57
|
+
), (s, t) => (k(), x("div", A, [
|
|
58
|
+
B(E, {
|
|
59
|
+
refresh: p.value,
|
|
60
|
+
modelValue: a.value,
|
|
61
|
+
selects: r.value,
|
|
62
|
+
list: o.value,
|
|
63
|
+
name: n.name,
|
|
64
|
+
onQuery: h
|
|
65
|
+
}, null, 8, ["refresh", "modelValue", "selects", "list", "name"])
|
|
66
|
+
]));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
Q as default
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./set-props.vue.cjs");module.exports=e;
|